/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; gap: 24px; padding: 20px 0; }
.top-nav { display: flex; gap: 8px; margin-left: auto; }
.top-nav a {
  text-decoration: none; font-weight: 800; padding: .45em .9em; border-radius: 999px;
  color: var(--ink-soft); transition: background .2s, color .2s, transform .2s var(--spring);
}
.top-nav a:hover { background: var(--bg-3); color: var(--ink); transform: rotate(-3deg); }
@media (max-width: 720px) { .top-nav { display: none; } .site-header .icon-btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 40px 0 80px; min-height: min(760px, calc(100vh - 90px));
}
.hero-title { font-size: clamp(3rem, 7.4vw, 5.8rem); margin: 18px 0 18px; }
.hero-title .line { display: block; }
.hero-title .accent { color: var(--a); position: relative; }
.hero-title .ch {
  display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg) scale(.6);
  animation: chIn .6s var(--spring) forwards;
}
.hero-title .word { display: inline-block; white-space: nowrap; }
@keyframes chIn { to { opacity: 1; transform: none; } }
.hero-title .ch:hover { animation: chHover .5s var(--spring); }
@keyframes chHover { 0% { transform: none; } 40% { transform: translateY(-14px) rotate(-8deg) scale(1.15); } 100% { transform: none; } }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; margin: 0 0 30px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.join-box {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px;
  border-radius: 999px; position: relative;
}
.join-label { font-weight: 800; color: var(--ink-soft); font-size: .95rem; max-width: 7em; line-height: 1.15; }
.code-tiles { display: flex; gap: 6px; }
.code-tiles span {
  width: 40px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--line);
  background: var(--ink); border: var(--stroke) solid var(--line);
  transition: transform .25s var(--spring), background .2s;
}
.code-tiles span.filled { animation: tileIn .35s var(--spring); background: var(--a-soft); }
.code-tiles span.cursor { box-shadow: 0 0 0 3px var(--b); }
@keyframes tileIn { 0% { transform: scale(.6) rotate(-10deg); } 100% { transform: none; } }
.code-input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: text; font-size: 16px; }
.join-box .btn { position: relative; z-index: 2; }
.join-box.bad { animation: shake .45s; }

/* Hero stage */
.hero-stage { position: relative; }
.demo-q { padding: 22px 22px 18px; transform: rotate(-1.5deg); z-index: 2; }
.demo-kicker {
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--grape); margin-bottom: 12px; text-align: center;
}
.demo-options { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.demo-opt {
  position: relative; border-radius: 16px; padding: 16px 14px 34px; min-height: 120px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2;
  border: var(--stroke) solid var(--line); box-shadow: 0 5px 0 var(--line);
  display: flex; align-items: flex-start; transition: transform .4s var(--spring);
}
.demo-opt.a { background: var(--a); }
.demo-opt.b { background: var(--b); }
.demo-opt.win { transform: scale(1.05) rotate(-1deg); }
.demo-opt span { transition: opacity .25s; }
.demo-opt .pct {
  position: absolute; right: 10px; bottom: 6px; font-family: var(--f-display); font-size: 1.6rem;
  opacity: 0; transform: scale(.4); transition: opacity .2s, transform .45s var(--spring);
}
.demo-opt .pct.show { opacity: 1; transform: none; }
.demo-or {
  align-self: center; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: var(--line); font-family: var(--f-display); font-weight: 700;
  border: var(--stroke) solid var(--line); box-shadow: 0 4px 0 var(--line);
  animation: orSpin 3.2s var(--spring) infinite;
}
@keyframes orSpin { 0%, 70% { transform: rotate(0) scale(1); } 80% { transform: rotate(-20deg) scale(1.2); } 90% { transform: rotate(12deg) scale(.95); } 100% { transform: rotate(0); } }

.demo-floor {
  position: relative; height: 230px; margin-top: -10px; border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.demo-floor .zone { position: absolute; bottom: 0; width: 48%; height: 70%; border-radius: 50% 50% 18px 18px / 30% 30% 18px 18px; opacity: 0; transition: opacity .5s; }
.demo-floor .za { left: 0; background: radial-gradient(closest-side, rgba(255,178,31,.35), transparent); }
.demo-floor .zb { right: 0; background: radial-gradient(closest-side, rgba(46,230,208,.35), transparent); }
.demo-floor.split .zone { opacity: 1; }
.demo-floor .blob {
  position: absolute; transform: translate(-50%, -100%);
  transition: left .9s var(--snap), top .9s var(--snap);
}
.demo-floor .blob .tag { font-size: .72rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; min-height: 0; }
  .hero-stage { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .demo-opt { font-size: 1rem; min-height: 104px; }
  .join-box { width: 100%; justify-content: space-between; }
  .join-label { display: none; }
  .hero-actions .btn.big { width: 100%; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 20px; }
.section-title { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 28px; }
.how, .modes, .decks, .cta { padding: 56px 0; }

.reveal-on-scroll { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .6s var(--ease), transform .7s var(--spring); }
.reveal-on-scroll.in { opacity: 1; transform: none; }

.tilt { transition: transform .35s var(--spring), box-shadow .3s; transform-style: preserve-3d; will-change: transform; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-card { padding: 22px 22px 26px; }
.how-card h3 { font-size: 1.45rem; margin: 14px 0 8px; }
.how-card p { margin: 0; color: var(--ink-soft); }
.how-art { height: 120px; display: grid; place-items: center; background: var(--bg-3); border-radius: 14px; border: 2px solid var(--line); overflow: hidden; }
.how-art svg { height: 96px; width: auto; }
.how-card:hover .art-screen svg { animation: wiggle .6s ease-in-out 2; }
.how-card:hover .art-phone svg { animation: phoneBuzz .4s linear 2; }
.how-card:hover .art-boom svg { animation: boom .6s var(--spring); }
@keyframes phoneBuzz { 0%, 100% { transform: none; } 25% { transform: translateX(-3px) rotate(-3deg); } 75% { transform: translateX(3px) rotate(3deg); } }
@keyframes boom { 0% { transform: scale(.6) rotate(-20deg); } 100% { transform: none; } }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }

.modes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.mode-card {
  grid-column: span 2; padding: 22px; text-decoration: none; overflow: hidden; min-height: 190px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 22%, var(--bg-2)) 0%, var(--bg-2) 60%);
}
.mode-card.live { grid-column: span 2; min-height: 230px; background: var(--mc); color: var(--line); }
.mode-card:not(.live) { grid-column: span 3; }
.mode-card h3 { font-size: 1.7rem; margin: 14px 0 6px; }
.mode-card.live h3 { font-size: 2.1rem; }
.mode-card p { margin: 0; max-width: 30ch; font-weight: 700; color: inherit; opacity: .85; }
.mode-card:not(.live) p { color: var(--ink-soft); }
.live-chip { background: var(--line); color: var(--ink); border-color: var(--line); }
.mode-top { display: flex; gap: 8px; flex-wrap: wrap; }
.chip.age { background: var(--pink); color: var(--line); border-color: var(--line); }
.mode-card .mode-sub { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; opacity: 1; margin: -2px 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.mode-card:not(.live) .mode-sub { color: var(--muted); }
.mode-blobs { position: absolute; right: 14px; bottom: 6px; display: flex; gap: 4px; align-items: flex-end; }
.mode-card.live:hover { box-shadow: 0 10px 0 var(--line); }
.mode-card.live:hover .mode-blobs .blob { animation: none; }
.mode-card.live:hover .mode-blobs .blob .bob { animation: dance .6s ease-in-out infinite; }
@media (max-width: 900px) {
  .modes-grid { grid-template-columns: 1fr 1fr; }
  .mode-card, .mode-card.live, .mode-card:not(.live) { grid-column: span 1; }
}
@media (max-width: 560px) { .modes-grid { grid-template-columns: 1fr; } .mode-blobs { opacity: .9; } }

.deck-cloud { display: flex; flex-wrap: wrap; gap: 14px; }
.deck-pill {
  --c: var(--a);
  display: inline-flex; align-items: center; gap: 10px; padding: .7em 1.2em; border-radius: 999px;
  text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem;
  background: var(--bg-2); border: var(--stroke) solid var(--line); box-shadow: 0 5px 0 var(--line);
  transition: transform .25s var(--spring), background .2s, color .2s;
}
.deck-pill i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 2px solid var(--line); transform: rotate(12deg); transition: transform .3s var(--spring); }
.deck-pill:hover { background: var(--c); color: var(--line); transform: translateY(-4px) rotate(var(--r, -2deg)); }
.deck-pill:hover i { transform: rotate(-200deg) scale(1.3); background: var(--ink); }

.cta-card { text-align: center; padding: 120px 24px 56px; overflow: hidden; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.cta-card h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-card p { color: var(--ink-soft); font-size: 1.15rem; margin: 10px 0 26px; }
.cta-crowd { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: center; gap: 6px; }
.cta-crowd .blob { margin-top: calc(var(--y, 0) * 1px); }

/* Question lists + good to know */
.decks-intro { margin: -14px 0 22px; font-weight: 700; color: var(--ink-soft); max-width: 60ch; }
.deck-group { margin-bottom: 20px; }
.deck-group h3 { font-size: 1.3rem; margin-bottom: 12px; }
.deck-group h3 a { text-decoration: none; }
.deck-group h3 a:hover { color: var(--a); }
.know { padding: 56px 0; }
.know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.know-card { padding: 20px 22px; }
.know-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.know-card p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.know-card a { color: var(--b); }
@media (max-width: 900px) { .know-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .know-grid { grid-template-columns: 1fr; } }
