/* Quiz Goblins — sketchbook paper, heavy ink, crayon fills, hard offset shadows. */
@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/Caveat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f4efe5;
  --paper-deep: #eae3d5;
  --cream: #fffbf2;
  --ink: #171717;
  --muted: #6f6a61;
  --line: #d7d0c4;
  --sky: #58aeef;
  --tomato: #ef5b4c;
  --mustard: #e7b544;
  --leaf: #6c9b72;
  --blush: #f08fa8;
  --plum: #9b6bd3;
  --marker: #ffd84d;
  --right: #57b36b;
  --teal: #3fb8a0;
  --orange: #f39c3d;

  --display: Impact, "Haettenschweiler", "Arial Narrow Bold", "Franklin Gothic Heavy", sans-serif;
  --hand: "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wobble: 22px 16px 24px 14px / 16px 24px 14px 22px;
  --wobble-2: 14px 24px 16px 22px / 22px 14px 24px 16px;
  --shadow: 6px 7px 0 var(--ink);
  --shadow-sm: 3px 4px 0 var(--ink);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.025) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.03) 0 1px, transparent 1.5px);
  background-size: 7px 7px, 11px 11px;
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 4px solid #2f8df5; outline-offset: 4px; border-radius: 10px; }

.hand { font-family: var(--hand); font-weight: 500; }
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- reusable sketch bits ---------- */
.card {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em;
  padding: .55em 1.1em .5em;
  background: var(--marker);
  border: 4px solid var(--ink);
  border-radius: var(--wobble-2);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s var(--bounce), box-shadow .18s;
}
.btn:hover { transform: translate(-2px, -3px) rotate(-1deg); box-shadow: 9px 10px 0 var(--ink); }
.btn:active { transform: translate(4px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--cream); }
.btn.small { font-size: 1.05rem; padding: .4em .8em .35em; box-shadow: var(--shadow-sm); border-width: 3px; }

.marker {
  position: relative; display: inline-block; z-index: 0;
}
.marker::before {
  content: ""; position: absolute; z-index: -1;
  left: -.25em; right: -.3em; top: .12em; bottom: .02em;
  background: var(--marker);
  border-radius: 40% 12% 46% 10% / 30% 60% 20% 70%;
  transform: rotate(-2deg) scaleX(var(--mk, 1));
  transform-origin: left;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal-on .marker::before, .marker.drawn::before { --mk: 1; }

.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0; }
.section-head p { margin: .4em 0 0; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--muted); }
.squiggle { display: block; margin: 6px auto 0; width: 220px; height: 22px; }
.squiggle path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.1s ease .2s; }
.in .squiggle path { stroke-dashoffset: 0; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(40px) rotate(var(--r, 0deg)); transition: opacity .6s ease, transform .7s var(--bounce); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(244, 239, 229, .92); backdrop-filter: blur(8px); box-shadow: 0 3px 0 var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 24px; }
.logo {
  font-family: var(--display); text-transform: uppercase; font-size: 1.7rem; text-decoration: none;
  position: relative; padding: 0 .3em; line-height: 1;
}
.logo::before {
  content: ""; position: absolute; inset: .1em -.1em -.05em; z-index: -1;
  background: var(--marker); border-radius: 30% 8% 40% 10% / 50% 30% 60% 40%; transform: rotate(-3deg);
}
.logo .crown { position: absolute; right: -12px; top: -16px; width: 26px; transform: rotate(14deg); transition: transform .3s var(--bounce); }
.logo:hover .crown { transform: rotate(-10deg) translateY(-4px) scale(1.2); }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; font-weight: 800; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--ink);
  border-radius: 4px; transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.sound-toggle {
  flex: none;
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream);
  box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s var(--bounce);
}
.sound-toggle:hover { transform: rotate(-12deg) scale(1.08); }
.sound-toggle[aria-pressed="false"] .on, .sound-toggle[aria-pressed="true"] .off { display: none; }

/* ---------- hop progress (the board) ---------- */
.board-progress {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: end; gap: 6px;
  padding: 8px 12px; background: var(--cream); border: 3px solid var(--ink); border-radius: 18px 12px 20px 10px;
  box-shadow: var(--shadow-sm);
  transition: opacity .3s, transform .4s var(--bounce);
}
.board-progress.hide { opacity: 0; transform: translate(-50%, 40px); pointer-events: none; }
.tile { width: 18px; height: 14px; border: 2.5px solid var(--ink); border-radius: 5px 3px 6px 3px; background: var(--paper-deep); transition: background .3s; }
.tile.lit { background: var(--c, var(--mustard)); }
.tile.goal { width: 22px; background: var(--marker); }
.pawn {
  position: absolute; bottom: 22px; width: 34px; left: 0;
  transition: left .35s cubic-bezier(.5,0,.4,1);
  pointer-events: none;
}
.pawn.hop { animation: hop .35s ease; }
@keyframes hop { 0%,100% { transform: translateY(0) } 45% { transform: translateY(-16px) rotate(-8deg) } }

/* ---------- hero ---------- */
.hero { padding: 40px 0 120px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 30px; padding: 4px 14px 4px 8px;
  box-shadow: var(--shadow-sm); transform: rotate(-2deg);
}
.kicker .dot { width: 12px; height: 12px; background: var(--right); border-radius: 50%; border: 2px solid var(--ink); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3 } }
.title {
  position: relative; display: inline-block; margin: 30px 0 0; padding-right: .25em; font-size: clamp(4.2rem, 11vw, 9rem);
}
.title .line { display: block; }
.title .ch { display: inline-block; transform-origin: bottom center; animation: drop .7s var(--bounce) both; animation-delay: calc(var(--i) * 55ms + .1s); }
.title .ch:hover { animation: jiggle .5s ease; }
@keyframes drop { from { transform: translateY(-120px) rotate(-20deg); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes jiggle { 0%,100% { transform: none } 25% { transform: rotate(-12deg) translateY(-8px) } 60% { transform: rotate(8deg) } }
.title-swoosh {
  position: absolute; z-index: -1; left: -5%; top: 2%; width: 112%; height: 100%;
}
.title-swoosh path { transform-origin: left; animation: swoosh .9s cubic-bezier(.2,.8,.2,1) .05s both; }
@keyframes swoosh { from { transform: scaleX(0) } }
.title .crown-big { position: absolute; width: clamp(54px, 7vw, 90px); right: 2%; top: -42px; animation: crown-in 1s var(--bounce) .9s both, crown-bob 3s ease-in-out 2s infinite; cursor: pointer; }
@keyframes crown-in { from { transform: translateY(-200px) rotate(-90deg); opacity: 0 } }
@keyframes crown-bob { 0%,100% { transform: rotate(12deg) } 50% { transform: rotate(-4deg) translateY(-8px) } }
.tagline { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 14px 0 0; line-height: 1.1; transform: rotate(-2deg); }
.tagline sup { font-size: .6em; }
.allegedly { display: block; font-size: .7em; color: var(--muted); margin-left: 52%; transform: rotate(-4deg); opacity: 0; animation: fadein .6s ease 1.6s forwards; }
@keyframes fadein { to { opacity: 1 } }
.hero-copy { font-size: 1.15rem; max-width: 30em; margin: 26px 0 30px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.chip { font-weight: 800; font-size: .95rem; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 12px 8px 14px 6px; background: var(--cream); }
.chip:nth-child(1) { background: #f8d5cf; transform: rotate(-2deg); }
.chip:nth-child(2) { background: #cfe5f8; transform: rotate(1.5deg); }
.chip:nth-child(3) { background: #d6e6d2; transform: rotate(-1deg); }

/* goblin crowd */
.crowd { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.crowd .blob {
  position: absolute; inset: 8%; border: 4px solid var(--ink); background: var(--sky);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  box-shadow: 10px 12px 0 var(--ink);
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  33% { border-radius: 56% 44% 60% 40% / 42% 58% 44% 56%; }
  66% { border-radius: 40% 60% 48% 52% / 58% 40% 60% 42%; }
}
.crowd .rays { position: absolute; inset: -4%; animation: spin 40s linear infinite; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg) } }
.goblin {
  position: absolute; width: var(--w, 30%);
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0;
  z-index: var(--z, 2);
}
.goblin .bob { display: block; animation: bob var(--dur, 3s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.goblin .par { display: block; transition: transform .25s ease-out; }
.goblin img { width: 100%; filter: drop-shadow(4px 5px 0 rgba(23,23,23,.25)); transition: transform .3s var(--bounce); user-select: none; -webkit-user-drag: none; }
.goblin:hover img { transform: scale(1.08) rotate(-4deg); }
.goblin.poked img { animation: poke .5s var(--bounce); }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes poke { 0% { transform: scale(1) } 30% { transform: scale(.82, 1.15) } 60% { transform: scale(1.15, .9) rotate(6deg) } 100% { transform: scale(1) } }
.bubble {
  position: absolute; z-index: 20; left: 50%; bottom: 100%;
  font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; white-space: nowrap;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 18px 14px 20px 12px;
  padding: 6px 14px 8px; box-shadow: var(--shadow-sm);
  transform: translate(-50%, 10px) scale(.4); opacity: 0; pointer-events: none;
  transition: transform .35s var(--bounce), opacity .2s;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 18px; background: var(--cream);
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateX(-50%) rotate(45deg) skew(10deg, 10deg);
}
.bubble.show { transform: translate(-50%, -6px) scale(1); opacity: 1; }
.poke-hint { position: absolute; right: -2%; bottom: -2%; font-size: 1.7rem; transform: rotate(-8deg); color: var(--ink); }
.poke-hint svg { display: inline-block; width: 60px; vertical-align: middle; transform: scaleX(-1) rotate(20deg); }

/* floating doodles */
.doodle { position: absolute; pointer-events: none; color: var(--ink); opacity: .22; animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-22px) rotate(14deg) } }

/* ---------- marquee ---------- */
.marquee { border-block: 4px solid var(--ink); background: var(--ink); overflow: hidden; padding: 6px 0; transform: rotate(-1.5deg); margin: -20px -20px 0; }
.marquee + .marquee { transform: rotate(1deg); margin-top: -8px; background: var(--marker); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%) } }
.topic {
  font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; white-space: nowrap;
  padding: 6px 18px 4px; border: 3px solid var(--ink); border-radius: 12px 8px 14px 6px; background: var(--c);
  color: var(--ink); transition: transform .2s var(--bounce);
}
.topic:hover { transform: rotate(-4deg) scale(1.08); }
.marquee .star { color: var(--cream); font-size: 1.6rem; align-self: center; }
.marquee.rev .star { color: var(--ink); }

/* ---------- try a question ---------- */
.quiz { display: grid; grid-template-columns: 1fr 260px; gap: 34px; align-items: start; }
.quiz-main { padding: 28px; position: relative; }
.quiz-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.topic-tag {
  font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; padding: 6px 16px 4px;
  border: 3px solid var(--ink); border-radius: 12px 8px 14px 6px; background: var(--c, var(--tomato)); transform: rotate(-2deg);
  box-shadow: var(--shadow-sm); transition: background .4s;
}
.fuse { flex: 1; min-width: 140px; height: 26px; border: 3px solid var(--ink); border-radius: 20px; background: var(--paper-deep); position: relative; overflow: visible; }
.fuse-fill { position: absolute; inset: 0; right: auto; width: 100%; background: var(--mustard); border-radius: 16px; transition: width .1s linear; }
.fuse-spark { position: absolute; top: 50%; left: 100%; width: 34px; height: 34px; transform: translate(-50%, -50%); animation: spark .2s steps(2) infinite; }
@keyframes spark { 50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.2) } }
.fuse-num { font-family: var(--display); font-size: 2.2rem; min-width: 1.6em; text-align: right; }
.q-text { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.18; margin: 4px 0 24px; min-height: 2.4em; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.answer {
  display: flex; align-items: center; gap: 14px; text-align: left;
  font-weight: 800; font-size: 1.15rem; padding: 12px 16px; min-height: 76px;
  border: 4px solid var(--ink); border-radius: var(--wobble-2); background: var(--bg);
  box-shadow: 4px 5px 0 var(--ink); transition: transform .18s var(--bounce), box-shadow .18s, opacity .3s, filter .3s;
}
.answer .letter {
  flex: none; font-family: var(--display); font-size: 1.7rem; width: 48px; height: 52px; display: grid; place-items: center;
  border: 3px solid var(--ink); border-radius: 10px 6px 12px 5px; background: var(--fg); color: var(--ink); transform: rotate(-4deg);
}
.answer:nth-child(1) { --bg: #f8c8c1; --fg: var(--tomato); }
.answer:nth-child(2) { --bg: #cbe3f8; --fg: var(--sky); }
.answer:nth-child(3) { --bg: #f5e6c4; --fg: var(--mustard); }
.answer:nth-child(4) { --bg: #cfdccd; --fg: var(--leaf); }
.answer:not(:disabled):hover { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 7px 8px 0 var(--ink); }
.answer:disabled { cursor: default; }
.answer.dim { opacity: .4; filter: grayscale(.7); }
.answer.right { background: #bfe5c8; animation: win .6s var(--bounce); }
.answer.right .letter { background: var(--right); }
.answer.wrong { animation: shake .45s ease; background: #f6b3ab; }
@keyframes win { 40% { transform: scale(1.06) rotate(-1.5deg) } }
@keyframes shake { 20%,60% { transform: translateX(-10px) rotate(-1deg) } 40%,80% { transform: translateX(10px) rotate(1deg) } }
.stamp {
  position: absolute; right: 26px; top: 44%; z-index: 5;
  font-family: var(--display); text-transform: uppercase; font-size: 2.4rem; line-height: 1;
  padding: 8px 18px 6px; border: 5px solid currentColor; border-radius: 10px; background: rgba(255,251,242,.92);
  transform: rotate(-12deg) scale(3); opacity: 0; pointer-events: none;
}
.stamp.show { animation: stamp .45s cubic-bezier(.2,1.6,.4,1) forwards; }
.stamp.good { color: var(--right); } .stamp.bad { color: var(--tomato); }
@keyframes stamp { to { transform: rotate(-12deg) scale(1); opacity: 1 } }
.explain {
  margin-top: 22px; padding: 14px 18px; border: 3px dashed var(--ink); border-radius: 14px; background: var(--paper);
  font-size: 1.05rem; display: none;
}
.explain.show { display: block; animation: pop-in .4s var(--bounce); }
.explain b { font-family: var(--hand); font-size: 1.7rem; font-weight: 500; margin-right: 6px; }
@keyframes pop-in { from { transform: scale(.85); opacity: 0 } }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 14px; flex-wrap: wrap; }
.score { font-family: var(--hand); font-size: 1.7rem; }
.score b { font-family: var(--display); font-weight: 400; font-size: 2rem; }

.peanut-gallery { display: flex; flex-direction: column; gap: 14px; }
.heckler { display: flex; align-items: center; gap: 10px; }
.heckler img { width: 78px; flex: none; transition: transform .3s var(--bounce); }
.heckler.react img { animation: poke .5s var(--bounce); }
.heckler .say {
  position: relative; font-family: var(--hand); font-size: 1.35rem; line-height: 1.1;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 16px 12px 18px 10px; padding: 6px 12px 8px;
  box-shadow: var(--shadow-sm); min-height: 44px;
}
.heckler .say::before {
  content: ""; position: absolute; left: -11px; top: 14px; width: 14px; height: 14px; background: var(--cream);
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg);
}
.dots span { display: inline-block; width: 8px; height: 8px; margin: 0 2px; background: var(--ink); border-radius: 50%; animation: dot 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .15s } .dots span:nth-child(3) { animation-delay: .3s }
@keyframes dot { 30% { transform: translateY(-6px) } }

/* ---------- how it plays ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps-path { position: absolute; left: 4%; right: 4%; top: 48px; height: 40px; width: 92%; z-index: 0; }
.steps-path path { stroke-dasharray: 10 12; }
.step { position: relative; z-index: 1; padding: 22px 18px 20px; text-align: center; }
.step:nth-child(odd) { --r: -1.5deg; } .step:nth-child(even) { --r: 1.5deg; }
.step .num {
  width: 60px; height: 60px; margin: -50px auto 10px; display: grid; place-items: center;
  font-family: var(--display); font-size: 2rem; border: 4px solid var(--ink); border-radius: 50%; background: var(--c);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--bounce);
}
.step:hover .num { transform: rotate(-360deg) scale(1.1); }
.step h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.6rem; margin: 0 0 6px; line-height: 1; }
.step p { margin: 0; font-size: 1rem; }
.step .where { display: inline-block; margin-top: 10px; font-family: var(--hand); font-size: 1.35rem; color: var(--muted); }

/* devices */
.devices { position: relative; margin-top: 90px; display: grid; grid-template-columns: 1fr; justify-items: center; }
.tv {
  width: min(900px, 92%); position: relative;
  border: 5px solid var(--ink); border-radius: 22px 18px 24px 16px; background: var(--ink); padding: 14px;
  box-shadow: 12px 14px 0 rgba(23,23,23,.18);
}
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--paper); }
.tv-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s, transform 1.2s ease; }
.tv-screen img.on { opacity: 1; transform: scale(1); }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -38px; width: 160px; height: 34px; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 20px 20px; clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.phone {
  position: absolute; right: max(2%, calc(50% - 560px)); bottom: -60px; width: clamp(130px, 18vw, 210px);
  border: 5px solid var(--ink); border-radius: 30px; background: var(--ink); padding: 8px;
  box-shadow: 8px 10px 0 rgba(23,23,23,.2); transform: rotate(8deg);
  transition: transform .4s var(--bounce);
}
.phone:hover { transform: rotate(0deg) translateY(-10px); }
.phone-screen { aspect-ratio: 393 / 852; overflow: hidden; border-radius: 22px; position: relative; background: var(--paper); }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.phone-screen img.on { opacity: 1; }
.screen-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 70px; }
.screen-tabs button { background: var(--cream); }
.screen-tabs button[aria-selected="true"] { background: var(--marker); transform: rotate(-2deg) translateY(-3px); }
.screen-caption { text-align: center; font-family: var(--hand); font-size: 1.8rem; margin-top: 16px; min-height: 1.4em; }

/* ---------- rounds ---------- */
.rounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.round { perspective: 1000px; height: 250px; background: none; border: 0; padding: 0; text-align: left; }
.round:nth-child(5) { grid-column: 1 / span 1; }
.round-inner { display: block; position: relative; width: 100%; height: 100%; transition: transform .7s var(--bounce); transform-style: preserve-3d; }
.round.flipped .round-inner { transform: rotateY(180deg); }
@media (hover: hover) { .round:hover .round-inner { transform: rotateY(180deg); } }
.round-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 4px solid var(--ink); border-radius: var(--wobble); box-shadow: var(--shadow); padding: 20px;
  display: flex; flex-direction: column;
}
.round-front { background: var(--c); align-items: center; justify-content: center; text-align: center; }
.round-front .icon { font-size: 3.6rem; line-height: 1; margin-bottom: 12px; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.25)); }
.round-front h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.9rem; margin: 0; line-height: 1; }
.round-front .flip-hint { position: absolute; bottom: 10px; right: 14px; font-family: var(--hand); font-size: 1.2rem; opacity: .7; }
.round-back { background: var(--cream); transform: rotateY(180deg); justify-content: center; }
.round-back h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.4rem; margin: 0 0 8px; }
.round-back p { margin: 0; font-size: 1.02rem; }
.round-back .note { margin-top: 10px; font-family: var(--hand); font-size: 1.3rem; color: var(--muted); }
.round.wide { grid-column: span 1; }
.demo-note { grid-column: span 1; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--hand); font-size: 1.8rem; line-height: 1.15; padding: 20px; transform: rotate(2deg); }
.demo-note b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; display: block; }

/* ---------- cast ---------- */
.moods { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: -20px 0 40px; }
.moods button { background: var(--cream); }
.moods button[aria-pressed="true"] { background: var(--ink); color: var(--cream); transform: rotate(-2deg) translateY(-3px); }
.cast { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.member {
  position: relative; padding: 16px 10px 14px; text-align: center; background: var(--c); border: 4px solid var(--ink);
  border-radius: var(--wobble); box-shadow: var(--shadow-sm); transition: transform .3s var(--bounce), box-shadow .3s;
}
.member:nth-child(3n) { --r: 1.5deg } .member:nth-child(3n+1) { --r: -1.2deg }
.member:hover { transform: translateY(-8px) rotate(calc(var(--r, 0deg) * -2)) !important; box-shadow: 7px 9px 0 var(--ink); z-index: 3; }
.member .pic { height: 120px; display: flex; align-items: end; justify-content: center; margin-bottom: 8px; position: relative; }
.member img { max-height: 120px; width: auto; transition: transform .35s var(--bounce), opacity .15s; }
.member:hover img { transform: scale(1.12) rotate(-5deg); }
.member img.swap { opacity: 0; transform: scale(.6); }
.member h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.35rem; margin: 0; line-height: 1; }
.member p { margin: 4px 0 0; font-family: var(--hand); font-size: 1.25rem; line-height: 1.05; }
.member .bubble { font-size: 1.25rem; white-space: normal; width: 190px; bottom: calc(100% - 14px); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { padding: 26px 24px; position: relative; }
.feature:nth-child(odd) { --r: -1deg } .feature:nth-child(even) { --r: 1.2deg }
.feature .ico { width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem; border: 3px solid var(--ink); border-radius: 16px 10px 18px 8px; background: var(--c); margin-bottom: 14px; box-shadow: var(--shadow-sm); transform: rotate(-4deg); }
.feature h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.6rem; margin: 0 0 6px; line-height: 1; }
.feature p { margin: 0; font-size: 1.02rem; }
.feature:hover .ico { animation: jiggle .6s ease; }

/* sticker wall */
.honk-zone { text-align: center; margin-top: 70px; }
.honk-btn { font-size: 2rem; background: var(--tomato); color: var(--ink); }
.sticker {
  position: fixed; z-index: 100; pointer-events: none;
  font-family: var(--display); text-transform: uppercase; font-size: 2.4rem; line-height: 1;
  padding: 10px 18px 6px; border: 4px solid var(--ink); border-radius: 14px 8px 16px 6px; background: var(--c);
  box-shadow: var(--shadow-sm); white-space: nowrap; will-change: transform;
}
.sticker.emoji { font-size: 3.2rem; padding: 4px 10px; border-radius: 50%; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 90px 0 150px; }
.cta-card { padding: 60px 30px; position: relative; overflow: visible; background: var(--marker); }
.cta-card h2 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 0; }
.cta-card p { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 10px 0 30px; }
.cta-card .peek { position: absolute; width: 130px; transition: transform .4s var(--bounce); }
.cta-card .peek.l { left: -40px; bottom: -30px; transform: rotate(-12deg); }
.cta-card .peek.r { right: -30px; top: -60px; transform: rotate(10deg); }
.cta-card:hover .peek.l { transform: rotate(-4deg) translate(10px, -14px); }
.cta-card:hover .peek.r { transform: rotate(18deg) translate(-10px, 10px); }
.notify { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.notify input {
  font: inherit; font-weight: 700; padding: 12px 18px; min-width: min(320px, 100%);
  border: 4px solid var(--ink); border-radius: var(--wobble-2); background: var(--cream); box-shadow: var(--shadow-sm);
}
.notify-msg { font-family: var(--hand); font-size: 1.6rem; margin-top: 14px; min-height: 1.3em; }

/* ---------- footer ---------- */
.footer { border-top: 4px solid var(--ink); background: var(--ink); color: var(--cream); padding: 50px 0 110px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--cream); font-weight: 800; }
.footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer small { color: #b9b2a5; display: block; margin-top: 8px; }
.footer .logo { color: var(--ink); }

/* confetti canvas */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100%; height: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hero-copy { margin-inline: auto; }
  .allegedly { margin-left: 60%; }
  .crowd { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 60px; }
  .steps-path { display: none; }
  .step:last-child { grid-column: span 2; }
  .rounds { grid-template-columns: repeat(2, 1fr); }
  .cast { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .quiz { grid-template-columns: 1fr; }
  .peanut-gallery { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .nav-links { display: none; }
  .sound-toggle { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .section { padding: 80px 0; }
  .answers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:last-child { grid-column: auto; }
  .rounds, .features { grid-template-columns: 1fr; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .phone { position: relative; right: auto; bottom: auto; margin-top: 50px; transform: rotate(4deg); }
  .cta-card .peek { width: 90px; }
  .board-progress .tile { width: 12px; }
  .stamp { top: 70px; font-size: 1.8rem; }
  .logo { font-size: 1.4rem; }
  .title { margin-top: 52px; }
  .title .crown-big { top: -34px; right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legal / privacy page ---------- */
.legal { padding: 40px 0 140px; }
.legal-head { text-align: center; margin-bottom: 40px; position: relative; }
.legal-head h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin: 0; }
.legal-head .hand { font-size: 1.9rem; color: var(--muted); margin: 6px 0 0; }
.legal-head img { position: absolute; width: 120px; right: 4%; top: -10px; transform: rotate(10deg); animation: bob 3s ease-in-out infinite; }
.tldr { padding: 28px 30px; margin-bottom: 40px; background: #d6e6d2; --r: -.8deg; }
.tldr h2 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 2rem; margin: 0 0 12px; }
.tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tldr li { display: flex; gap: 12px; align-items: baseline; font-weight: 700; }
.tldr li::before { content: "✓"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--right); font-size: .95rem; transform: translateY(4px); }
.legal-body { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 100px; padding: 20px; font-size: .98rem; }
.toc h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; margin: 0 0 8px; font-size: 1.3rem; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { text-decoration: none; font-weight: 700; }
.toc a:hover, .toc a.active { text-decoration: underline wavy; text-underline-offset: 4px; }
.prose { padding: 34px 38px; }
.prose h2 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.9rem; margin: 40px 0 10px; line-height: 1; }
.prose h2:first-child { margin-top: 0; }
.prose h2 span { background: var(--marker); padding: 0 .2em; border-radius: 6px; }
.prose p, .prose li { font-size: 1.05rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .98rem; }
.prose th, .prose td { border: 2.5px solid var(--ink); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-deep); font-weight: 900; }
.aside { font-family: var(--hand); font-size: 1.45rem; color: var(--muted); display: block; margin: 6px 0 0; transform: rotate(-1deg); }
.draft-banner {
  margin: 0 auto 30px; max-width: 760px; padding: 12px 18px; text-align: center; font-weight: 800;
  border: 3px dashed var(--tomato); border-radius: 14px; background: #fde4e0;
}
@media (max-width: 860px) { .legal-body { grid-template-columns: 1fr; } .toc { position: static; } .prose { padding: 24px 20px; } .legal-head img { width: 80px; right: 0; } }

/* highlighter strokes draw in when their section scrolls into view */
.rv:not(.in) .marker::before { --mk: 0; }

/* ---------- trailer ---------- */
.play-ico { width: 0; height: 0; border-style: solid; border-width: .42em 0 .42em .7em; border-color: transparent transparent transparent currentColor; display: inline-block; }
.play-trailer { background: var(--tomato); }
.play-trailer .play-ico { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px) } }

.trailer-section { padding-top: 120px; }
.trailer-stage { position: relative; width: min(980px, 100%); margin: 0 auto; }
.trailer-tv {
  display: block; width: 100%; padding: 16px; background: var(--ink); border: 5px solid var(--ink);
  border-radius: 26px 20px 28px 18px; box-shadow: 14px 16px 0 rgba(23,23,23,.2);
  position: relative; transform: rotate(-1deg); transition: transform .4s var(--bounce), box-shadow .4s;
}
.trailer-tv::after { content: ""; position: absolute; left: 50%; bottom: -42px; width: 180px; height: 38px; transform: translateX(-50%); background: var(--ink); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); border-radius: 0 0 20px 20px; }
.trailer-tv:hover { transform: rotate(0deg) scale(1.015); box-shadow: 18px 22px 0 rgba(23,23,23,.22); }
.trailer-screen { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--paper); }
.trailer-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trailer-shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(23,23,23,.05), rgba(23,23,23,.38)); transition: background .4s; }
.trailer-tv:hover .trailer-shade { background: radial-gradient(circle at 50% 50%, rgba(23,23,23,0), rgba(23,23,23,.2)); }
.big-play { position: absolute; left: 50%; top: 50%; width: clamp(140px, 22vw, 220px); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.play-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; overflow: visible; }
.play-ring text { font-family: var(--display); font-size: 15.5px; letter-spacing: 2.4px; fill: var(--cream); paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; }
.play-disc {
  width: 54%; aspect-ratio: 1; border-radius: 50%; background: var(--marker); border: 5px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink); display: grid; place-items: center; position: relative;
  transition: transform .35s var(--bounce);
}
.play-disc svg { width: 48%; margin-left: 9%; }
.play-disc::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 4px solid var(--marker); animation: ping 1.8s cubic-bezier(0,.6,.4,1) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9 } to { transform: scale(1.7); opacity: 0 } }
.trailer-tv:hover .play-disc { transform: scale(1.12) rotate(-8deg); }
.trailer-tv:active .play-disc { transform: scale(.94); }
.trailer-badge { position: absolute; right: 16px; bottom: 14px; font-family: var(--display); font-size: 1.1rem; padding: 4px 12px 2px; background: var(--cream); border: 3px solid var(--ink); border-radius: 10px 6px 12px 5px; transform: rotate(3deg); }
.trailer-peek { position: absolute; width: clamp(80px, 13vw, 150px); z-index: 2; pointer-events: none; transition: transform .5s var(--bounce); }
.trailer-peek.l { left: -5%; bottom: -8%; transform: rotate(-14deg); }
.trailer-peek.r { right: -4%; top: -12%; transform: rotate(12deg); }
.trailer-stage:hover .trailer-peek.l { transform: rotate(-4deg) translate(14px, -16px); }
.trailer-stage:hover .trailer-peek.r { transform: rotate(20deg) translate(-10px, 12px); }
.trailer-note { text-align: center; font-size: 1.8rem; margin: 64px 0 0; color: var(--muted); }

.trailer-modal {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%;
  display: none; place-items: center; align-content: center; gap: 12px; overflow: hidden;
}
.trailer-modal[open] { display: grid; }
.trailer-modal::backdrop { background: rgba(23, 23, 23, .82); backdrop-filter: blur(6px); }
.trailer-modal[open]::backdrop { animation: fade-bd .3s ease; }
@keyframes fade-bd { from { opacity: 0 } }
.trailer-frame {
  position: relative; width: min(1100px, 92vw, calc((100vh - 120px) * 16 / 9));
  background: var(--ink); border: 5px solid var(--cream); border-radius: 22px 16px 24px 14px; padding: 10px;
  box-shadow: 10px 12px 0 rgba(0,0,0,.4);
}
.trailer-modal[open] .trailer-frame { animation: tv-on .5s var(--bounce); }
@keyframes tv-on { 0% { transform: scale(.4, .02); opacity: 0 } 45% { transform: scale(1, .03); opacity: 1 } 100% { transform: none } }
.trailer-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.trailer-close {
  position: absolute; right: -22px; top: -22px; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: var(--marker); border: 4px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); font-size: 1.3rem; font-weight: 900;
  transition: transform .25s var(--bounce);
}
.trailer-close:hover { transform: rotate(90deg) scale(1.1); }
.trailer-hint { color: var(--cream); font-size: 1.4rem; margin: 0; text-align: center; opacity: .8; }

@media (orientation: portrait) and (max-width: 700px) {
  .trailer-frame { width: min(92vw, calc((100vh - 140px) * 9 / 16)); }
  .trailer-frame video { aspect-ratio: 9 / 16; }
  .trailer-close { right: -10px; top: -18px; }
}
@media (max-width: 620px) {
  .trailer-tv { padding: 9px; border-radius: 18px; }
  .trailer-badge { font-size: .9rem; right: 10px; bottom: 8px; }
}
.big-play::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; background: rgba(23, 23, 23, .6); backdrop-filter: blur(3px); }

/* footer credit */
.footer .credit { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 14px; row-gap: 2px; max-width: 360px; }
.footer .credit small { grid-column: 1 / -1; }
.made-by { margin: 0; font-family: var(--hand); font-size: 1.7rem; line-height: 1; }
.made-by a { font-family: var(--display); font-weight: 400; font-size: 1.15em; letter-spacing: .03em; text-decoration: none; background: var(--marker); color: var(--ink); padding: .05em .3em 0; border-radius: 8px 4px 10px 3px; display: inline-block; transform: rotate(-3deg); transition: transform .25s var(--bounce); }
.made-by a:hover { transform: rotate(2deg) scale(1.08); }
.linkedin { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px 8px 14px 6px; background: #0a66c2; color: #fff !important; border: 3px solid var(--cream); box-shadow: 3px 4px 0 rgba(255,251,242,.35); transition: transform .25s var(--bounce); }
.linkedin svg { width: 22px; height: 22px; }
.linkedin:hover { transform: rotate(-8deg) translateY(-3px); }
