:root {
  --page: #fffefb;
  --ink: #292647;
  --ink-soft: #45405e;
  --ink-quiet: #656177;
  --line: #e6e2ee;
  --panel: #ffffff;
  --accent: #5b3fa6;
  --accent-deep: #3f2a7a;
  --accent-tint: #f3edff;
  --on-accent: #ffffff;
  --on-accent-quiet: #e9dffc;
  --fortune-ink: #a8432b;
  --marker: #c4553a;
  --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans",
    "Yu Gothic", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Microsoft JhengHei", "Noto Sans CJK KR",
    "Noto Sans", "Geeza Pro", "Segoe UI Historic", Tahoma, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
html[lang="ko"] body { word-break: keep-all; }
h1, h2, h3, p, ol { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
a:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.bar, .hero, .inner {
  max-width: 1200px;
  margin: 0 auto;
}
.bar {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.logo { height: 30px; width: auto; }
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-quiet);
}
.lang select {
  min-height: 44px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

/* Hero */
.hero {
  padding: 40px 40px 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.hero-copy { flex: 1 1 460px; min-width: 0; }
h1 {
  font-size: 48px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: pre-line;
}
.intro {
  margin: 20px 0 32px;
  max-width: 480px;
  font-size: 17px;
  color: var(--ink-soft);
  white-space: pre-line;
}
.button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 60px;
  max-width: 100%;
  padding: 12px 32px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
}
.button:hover { background: var(--accent-deep); color: var(--on-accent); }
.button:focus-visible { outline-color: var(--ink); }
.button-title { font-size: 19px; font-weight: 800; }
.button-sub { font-size: 13px; color: var(--on-accent-quiet); }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: 15px;
}
.links a { display: inline-flex; align-items: center; min-height: 44px; }
.note { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.phone-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-tint);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-deep);
}

/* The two example cards */
.cards { flex: 1 1 440px; min-width: 0; position: relative; height: 440px; }
.card {
  position: absolute;
  width: 280px;
  max-width: 68%;
  padding: 18px 20px;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(41, 38, 71, 0.16);
}
.fortune {
  inset-inline-start: 0;
  top: 0;
  background: linear-gradient(160deg, #fff4e0, #fdeede 55%, #f6e7ff);
  transform: rotate(-4deg);
}
.acti {
  inset-inline-end: 0;
  top: 80px;
  background: linear-gradient(160deg, #e9dffc 0%, #f3edff 55%, #fff2ac 140%);
  transform: rotate(3deg);
}
.card-kicker { font-size: 12px; font-weight: 800; }
.fortune .card-kicker { color: var(--fortune-ink); }
.acti .card-kicker { color: var(--accent); }
.fortune-headline { margin-top: 12px; font-size: 18px; font-weight: 800; line-height: 1.45; }
.fortune-body { margin-top: 10px; font-size: 13.5px; line-height: 1.75; color: #38344f; }
.lucky { margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.78); }
.lucky-label { font-size: 11.5px; font-weight: 800; color: var(--ink-quiet); }
.lucky-text { margin-top: 2px; font-size: 14px; font-weight: 700; }
.acti-code { margin: 10px 0 2px; font-size: 36px; font-weight: 900; letter-spacing: 2px; line-height: 1.1; }
.acti-name { margin-bottom: 12px; font-size: 15px; font-weight: 800; }
.ends { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-quiet); }
.track { position: relative; height: 6px; margin: 4px 0 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.7); }
.mark {
  position: absolute;
  top: -3px;
  width: 12px;
  height: 12px;
  background: var(--marker);
  transform: rotate(45deg);
}
.at-30 { inset-inline-start: 30%; }
.at-38 { inset-inline-start: 38%; }
.at-60 { inset-inline-start: 60%; }
.card-mark { margin-top: 12px; text-align: end; font-size: 12px; font-weight: 700; color: var(--ink-quiet); }

/* Sections */
.band { border-top: 1px solid var(--line); }
.inner { padding: 56px 40px; }
h2 { margin-bottom: 24px; font-size: 26px; font-weight: 800; }
.boxes { display: flex; flex-wrap: wrap; gap: 20px; }
.box {
  flex: 1 1 260px;
  min-width: 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.box h3 { margin-bottom: 8px; font-size: 17px; }
.box p, .box ol { font-size: 15px; color: var(--ink-soft); }
.box ol { padding-inline-start: 20px; }
.after { margin-top: 20px; font-size: 15px; color: var(--ink-soft); }

.foot { border-top: 1px solid var(--line); }
.foot-inner {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-quiet);
}
.noscript { padding: 16px 40px; color: var(--ink-soft); }

/* Phone layout */
@media (max-width: 720px) {
  .bar { padding: 12px 16px; gap: 12px; flex-wrap: nowrap; }
  .brand { font-size: 20px; }
  .logo { height: 24px; }
  .lang { font-size: 13px; gap: 6px; min-width: 0; }
  .lang select { padding: 0 10px; min-width: 0; }
  .hero { padding: 20px 16px 36px; gap: 24px; }
  .hero-copy { flex-basis: 100%; }
  h1 { font-size: 30px; line-height: 1.25; letter-spacing: 0; }
  .intro { margin: 14px 0 20px; font-size: 15px; }
  .button { padding: 12px 24px; }
  .cards { flex-basis: 100%; height: 380px; }
  .card { width: 230px; padding: 16px; border-radius: 22px; box-shadow: 0 10px 24px rgba(41, 38, 71, 0.16); }
  .acti { top: 120px; }
  .fortune-headline { margin-top: 10px; font-size: 16px; }
  .lucky { margin-top: 12px; padding: 10px 12px; border-radius: 12px; }
  .lucky-text { font-size: 13.5px; }
  .acti-code { margin-top: 8px; font-size: 30px; }
  .acti-name { margin-bottom: 0; font-size: 14px; }
  .card-detail { display: none; }
  .inner { padding: 32px 16px; }
  h2 { margin-bottom: 16px; font-size: 21px; }
  .boxes { flex-direction: column; gap: 12px; }
  .box { flex-basis: auto; padding: 18px; border-radius: 16px; }
  .box h3 { margin-bottom: 6px; font-size: 16px; }
  .after { margin-top: 16px; }
  .foot-inner { padding: 20px 16px; }
  .noscript { padding: 16px; }
}
