/* ============ DIGITS — studio light ============ */
:root {
  --bg: #f3efe7;
  --bg-deep: #eae4d7;
  --card: #faf8f2;
  --ink: #2a251e;
  --muted: #837a6d;
  --line: rgba(42, 37, 30, 0.1);
  --accent: #b3892f;
  --accent-ink: #fff;
  --radius: 28px;
  --font: "Archivo", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 50% -100px, #fdfaf3 0%, rgba(253, 250, 243, 0) 60%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { user-select: none; -webkit-user-drag: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- type ---------- */
.display {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.92;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.sub { font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.gold { color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo sup { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.x-link {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  transition: transform 0.15s;
}
.x-link:hover { transform: translateY(-2px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--ink);
  color: #f6f2ea;
  box-shadow: 0 10px 24px -10px rgba(42, 37, 30, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(42, 37, 30, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---------- hero shared ---------- */
.hero { position: relative; padding: 32px 0 0; }
.hero-variant { display: none; }
body[data-hero="lineup"] .hv-lineup,
body[data-hero="solo"] .hv-solo,
body[data-hero="float"] .hv-float { display: block; }

.char { filter: drop-shadow(0 30px 22px rgba(42, 37, 30, 0.22)); }

.bubble {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px -14px rgba(42, 37, 30, 0.35);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 3;
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 24px;
  width: 10px; height: 10px;
  background: var(--card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

/* ---------- hero: lineup ---------- */
.hv-lineup .hero-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.hv-lineup h1 { font-size: clamp(48px, 7.5vw, 96px); margin: 18px 0 16px; }
.hv-lineup .sub { max-width: 540px; margin: 0 auto 28px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stage {
  position: relative;
  max-width: 1240px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.stage-arch {
  position: absolute;
  inset: auto 0 0;
  height: 86%;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #fdfaf2 0%, var(--bg-deep) 78%);
  box-shadow: inset 0 -40px 60px -40px rgba(42, 37, 30, 0.18);
}
.lineup {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}
.lineup img {
  height: clamp(150px, 22vw, 270px);
  margin: 0 clamp(-20px, -1.2vw, -6px);
}
.stage-floor {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0 -24px;
}
.hv-lineup .bubble-1 { top: -8px; left: 12%; transform: rotate(-4deg); }
.hv-lineup .bubble-2 { top: -22px; right: 10%; transform: rotate(3deg); }

/* ---------- hero: solo ---------- */
.hv-solo .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}
.hv-solo h1 { font-size: clamp(48px, 6.5vw, 88px); margin: 18px 0 16px; }
.hv-solo .sub { max-width: 460px; margin-bottom: 28px; }
.hv-solo .hero-ctas { justify-content: flex-start; }
.solo-arch {
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, #fdfaf2 0%, var(--bg-deep) 80%);
  box-shadow: inset 0 -36px 50px -36px rgba(42, 37, 30, 0.2);
  padding: 56px 32px 0;
  text-align: center;
}
.solo-arch img { height: clamp(320px, 34vw, 460px); position: relative; z-index: 2; }
.solo-arch .bubble { top: 14%; right: 8%; transform: rotate(4deg); }
.solo-floor { height: 1px; background: var(--line); }

/* ---------- hero: float ---------- */
.hv-float { position: relative; padding-bottom: 90px; }
.hv-float .hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 44px auto 0;
  position: relative;
  z-index: 2;
}
.hv-float h1 { font-size: clamp(52px, 8vw, 110px); margin: 18px 0 16px; }
.hv-float .sub { max-width: 520px; margin: 0 auto 28px; }
.float-char { position: absolute; z-index: 1; }
.float-char img { height: 100%; }
.fc-1 { left: 4%; top: 12%; height: clamp(180px, 22vw, 300px); animation: floaty 7s ease-in-out -2.6s infinite; }
.fc-5 { right: 4%; top: 18%; height: clamp(190px, 23vw, 310px); animation: floaty 8s ease-in-out -5.1s infinite; }
.fc-2 { left: 16%; bottom: -4%; height: clamp(120px, 13vw, 180px); transform: rotate(-5deg); animation: floaty 9s ease-in-out -1.3s infinite; }
.fc-3 { right: 17%; bottom: -7%; height: clamp(124px, 14vw, 190px); transform: rotate(4deg); animation: floaty 7.5s ease-in-out -6.4s infinite; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-char { animation: none !important; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  padding: 14px 0;
  margin-top: 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll 30s linear infinite;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span { display: flex; align-items: center; gap: 48px; }
.marquee-track .dot { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(36px, 4.5vw, 60px); margin: 16px 0 14px; }

/* ---------- rule (concept) ---------- */
.rule-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.rule-grid .section-head { margin-bottom: 32px; }
.rule-points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rule-point {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rule-point b { font-size: 17px; font-weight: 800; white-space: nowrap; }
.rule-point span { color: var(--muted); font-size: 15px; }
.rule-num {
  font-weight: 900;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.rule-card {
  position: relative;
  border-radius: var(--radius);
  background: radial-gradient(130% 100% at 50% 0%, #fdfaf2 0%, var(--bg-deep) 85%);
  border: 1px solid var(--line);
  padding: 48px 32px 0;
  text-align: center;
  overflow: hidden;
}
.rule-card img { height: clamp(280px, 26vw, 360px); position: relative; z-index: 2; }
.rule-card .tag {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  background: var(--ink);
  color: #f6f2ea;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 999px;
  transform: rotate(-3deg);
}
.rule-card .tag.gold-tag {
  top: auto; left: auto;
  bottom: 28px; right: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(2deg);
}

/* ---------- rarity ---------- */
.rarity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.rarity-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 240px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.rarity-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(42, 37, 30, 0.3); }
.rarity-card .big {
  font-weight: 900;
  font-size: clamp(44px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: auto;
}
.rarity-card h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 20px; }
.rarity-card p { font-size: 14px; color: var(--muted); }
.count-chip {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink);
  margin-bottom: 18px;
}
.rarity-card.special {
  background: linear-gradient(160deg, #2f2920 0%, #211d16 100%);
  border-color: transparent;
  color: #f1ead9;
}
.rarity-card.special .big { color: var(--accent); }
.rarity-card.special p { color: rgba(241, 234, 217, 0.65); }
.rarity-card.special .count-chip { background: rgba(241, 234, 217, 0.12); color: #f1ead9; }

/* ---------- specials ---------- */
.specials { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.special-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
}
.special-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(42, 37, 30, 0.3); }
.special-card img { height: 190px; margin-bottom: 18px; filter: drop-shadow(0 18px 14px rgba(42, 37, 30, 0.18)); }
.special-card .num {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.special-card .meaning { font-size: 14px; color: var(--muted); margin-top: 4px; }
.special-card.mystery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, var(--bg) 0 14px, var(--bg-deep) 14px 28px);
}
.special-card.mystery .num { font-size: 56px; color: var(--accent); }

/* ---------- phases ---------- */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: phase;
}
.phase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
}
.phase-card .phase-num {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.phase-card h3 { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; margin: 10px 0 8px; }
.phase-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.phase-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  justify-content: center;
}
.meta-chip {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}
.meta-chip.hot { background: var(--ink); color: #f6f2ea; border-color: var(--ink); }

/* ---------- raffle ---------- */
.raffle { background: linear-gradient(160deg, #2f2920 0%, #1f1b15 100%); color: #f1ead9; }
.raffle .section-head h2 { color: #f6f0e0; }
.raffle .eyebrow { color: rgba(241, 234, 217, 0.6); }
.raffle .sub { color: rgba(241, 234, 217, 0.65); }
.raffle-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.raffle-char { text-align: center; position: relative; }
.raffle-char img { height: clamp(280px, 28vw, 400px); filter: drop-shadow(0 30px 26px rgba(0, 0, 0, 0.45)); }
.raffle-char .bubble { top: 0; right: 10%; color: var(--ink); transform: rotate(3deg); }
.raffle-form {
  background: rgba(246, 240, 224, 0.06);
  border: 1px solid rgba(246, 240, 224, 0.14);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(6px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 234, 217, 0.55);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: #f6f0e0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(246, 240, 224, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s;
}
.field input::placeholder { color: rgba(241, 234, 217, 0.3); font-weight: 500; }
.field input:focus { border-color: var(--accent); }
.field input.invalid { border-color: #c4524e; }
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.task {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(246, 240, 224, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: #f1ead9;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.task:hover { transform: translateY(-2px); border-color: rgba(246, 240, 224, 0.4); }
.task svg { width: 22px; height: 22px; }
.task.done { border-color: var(--accent); background: rgba(179, 137, 47, 0.14); }
.task .check { display: none; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); }
.task.done .check { display: block; }
.task.done .task-label { display: none; }
.btn-enter {
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  padding: 17px;
  box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--accent) 70%, black);
}
.btn-enter:hover { transform: translateY(-2px); }
.btn-enter:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.raffle-note { font-size: 13px; color: rgba(241, 234, 217, 0.45); text-align: center; margin-top: 14px; }
.raffle-success { text-align: center; padding: 40px 10px; display: none; }
.raffle-success .big-check { font-size: 52px; }
.raffle-success h3 { font-size: 30px; font-weight: 900; text-transform: uppercase; margin: 14px 0 8px; }
.raffle-success p { color: rgba(241, 234, 217, 0.65); }
.raffle-form.entered .raffle-fields { display: none; }
.raffle-form.entered .raffle-success { display: block; }
.form-error { color: #e08784; font-size: 13.5px; font-weight: 600; margin-top: 12px; text-align: center; display: none; }

/* ---------- footer ---------- */
.footer { padding: 90px 0 48px; text-align: center; }
.footer .giant {
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, var(--ink) 30%, rgba(42, 37, 30, 0.25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer .tagline { font-size: 17px; font-weight: 700; margin-top: 14px; }
.footer-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
  font-size: 13px;
  color: var(--muted);
}
.footer-meta a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-meta a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .rule-grid, .raffle-grid, .hv-solo .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .rarity-grid { grid-template-columns: repeat(2, 1fr); }
  .specials-grid { grid-template-columns: repeat(2, 1fr); }
  .phases-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .fc-2, .fc-3 { display: none; }
  .raffle-char { display: none; }
}
@media (max-width: 700px) {
  .rule-point { flex-wrap: wrap; row-gap: 4px; }
  .rule-point span { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .specials-grid { grid-template-columns: 1fr; }
  .rarity-grid { grid-template-columns: 1fr 1fr; }
  .lineup img:nth-child(2), .lineup img:nth-child(4) { display: none; }
  .lineup img { height: clamp(150px, 30vw, 220px); }
  .tasks { grid-template-columns: 1fr; }
  .bubble { display: none; }
}
