/* Brand FAQ remake.
   Brand kept from the live site: deep slate-teal ink + lime action colour.
   Added on purpose: one warm tangerine for "look here" moments, replacing the
   purple glow. Type: Bricolage Grotesque for headings (chunky, a little odd,
   suits a games studio), Atkinson Hyperlegible for body (built for readability,
   the audience is 13+). Radius scale: 4 / 10 / 22, used per element, not blanket. */

:root {
  --ink: #111c21;
  --ink-2: #172630;
  --ink-3: #20333e;
  --line: #2b4250;
  --chalk: #eef3f1;
  --mute: #93a8b0;
  --lime: #6fd21a;
  --lime-deep: #4a9a06;
  --tang: #ffb02e;
  --tang-deep: #c9780a;
  --r1: 4px;
  --r2: 10px;
  --r3: 22px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 72px;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint graph-paper grid: a creator's planning sheet, not a glow */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--ink-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-2) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(#000 0, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--tang); outline-offset: 3px; border-radius: var(--r1); }

/* ---------- buttons: chunky, physically press down ---------- */
.btn {
  --face: var(--lime); --edge: var(--lime-deep); --txt: #10200a;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font: 800 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt);
  background: var(--face);
  border-radius: var(--r2);
  box-shadow: 0 5px 0 var(--edge);
  transform: translateY(0);
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), filter .2s;
  user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); filter: brightness(1.06); }
.btn:active, .btn.is-pressed { transform: translateY(5px); box-shadow: 0 0 0 var(--edge); transition-duration: .05s; }
.btn--sm { padding: 10px 16px; font-size: 13px; box-shadow: 0 4px 0 var(--edge); }
.btn--sm:active { transform: translateY(4px); }
.btn--ink { --face: var(--ink); --edge: #000; --txt: var(--chalk); }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17, 28, 33, .86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink-3);
  transition: border-color .3s;
}
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar__in { max-width: 1160px; margin: 0 auto; padding: 12px var(--s3); display: flex; align-items: center; gap: var(--s3); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 44px; height: 44px; display: block; transition: transform .35s var(--ease-pop); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__word { font: 800 20px/1 var(--display); letter-spacing: -.01em; }
.brand__word small { display: block; margin-top: 3px; font: 700 10px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; font-weight: 700; font-size: 15px; color: var(--mute); border-radius: var(--r1); transition: color .2s; }
.nav a:hover { color: var(--chalk); }
.nav a.is-here { color: var(--tang); }
/* one hand-drawn squiggle per link: chalk, drawn in on hover; tangerine and drawn on load for the current page */
.nav__t { position: relative; }
.squig { position: absolute; left: -4px; bottom: -10px; width: calc(100% + 8px); height: 7px; overflow: visible; color: var(--chalk); stroke-width: 2.25; clip-path: inset(-4px 100% -4px -4px); transition: clip-path .3s var(--ease-out); }
.nav a:hover .squig { clip-path: inset(-4px -4px -4px -4px); }
.nav a.is-here .squig { color: var(--tang); transition: none; animation: reveal .6s .3s var(--ease-out) forwards; }
.burger { display: none; width: 42px; height: 42px; border-radius: var(--r2); border: 2px solid var(--line); place-items: center; transition: transform .15s; }
.burger:active { transform: scale(.9); }

/* ---------- intro: asymmetric, copy left + ticket stub right ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 var(--s3); }
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s4); align-items: end; padding: var(--s5) 0 var(--s4); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s2); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kicker__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--lime); transform: rotate(45deg); }
.intro__title { margin: 0; font: 800 clamp(64px, 11vw, 148px)/.86 var(--display); letter-spacing: -.045em; }
.intro__title .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(6deg); animation: chIn .6s var(--ease-pop) forwards; }
.intro__title .ch--q { color: var(--tang); transform-origin: 50% 90%; }
.intro__title .ch--q.is-wobble { animation: chIn .6s var(--ease-pop) forwards, wobble .6s var(--ease-out); }
.intro__lede { max-width: 30ch; margin: var(--s3) 0 0; font-size: 21px; color: #c7d4d8; }
.ink-link { color: var(--chalk); font-weight: 700; background: linear-gradient(var(--tang), var(--tang)) 0 100% / 100% 2px no-repeat; transition: background-size .25s var(--ease-out), color .2s; padding-bottom: 1px; }
.ink-link:hover { background-size: 100% 100%; color: var(--ink); }

.stub {
  position: relative;
  background: var(--chalk); color: var(--ink);
  border-radius: var(--r2);
  padding: var(--s3);
  transform: rotate(1.6deg);
  box-shadow: 8px 8px 0 var(--ink-3);
  transition: transform .4s var(--ease-pop);
}
.stub:hover { transform: rotate(0deg) translateY(-3px); }
/* perforation notches */
.stub::before, .stub::after { content: ""; position: absolute; top: 62px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.stub::before { left: -10px; }
.stub::after { right: -10px; }
.stub__top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--s2); margin-bottom: var(--s1); border-bottom: 2px dashed #b9c5c3; }
.stub__label { font: 800 24px/1 var(--display); }
.stub__no { font: 700 12px/1 var(--body); letter-spacing: .12em; color: #6b7c80; }
.stub__row { display: flex; align-items: center; gap: 14px; padding: 12px 10px; margin: 0 -10px; border-radius: var(--r1); transition: background .2s; }
.stub__row span { flex: 1; font-size: 14px; color: #556469; }
.stub__row b { display: block; font: 800 17px/1.2 var(--display); color: var(--ink); }
.stub__row:hover { background: #dde6e3; }
.stub__row > .ic:first-child { width: 32px; height: 32px; }
.ic--go { transition: transform .25s var(--ease-pop); }
.stub__row:hover .ic--go { transform: translateX(5px); }
.stub__foot { margin: var(--s1) 0 0; font-size: 13px; color: #6b7c80; }

/* ---------- quick numbers ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); margin-bottom: var(--s5); }
.fact { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; display: flex; flex-direction: column; gap: 4px; position: relative; transition: transform .2s var(--ease-out); }
.fact + .fact { padding-left: var(--s3); border-left: 2px solid var(--ink-3); }
.fact__n { font: 800 44px/1 var(--display); letter-spacing: -.03em; color: var(--chalk); transition: color .2s, transform .3s var(--ease-pop); transform-origin: left bottom; }
.fact__n small { font-size: 18px; margin-left: 4px; letter-spacing: 0; color: var(--mute); }
.fact__t { font-size: 14px; color: var(--mute); }
.fact:hover .fact__n { color: var(--lime); transform: scale(1.08) rotate(-2deg); }
.fact:active .fact__n { transform: scale(.94); }

/* ---------- FAQ: sticky index + list ---------- */
.faq { display: grid; grid-template-columns: 280px 1fr; gap: var(--s5); align-items: start; padding-bottom: var(--s5); }
.faq__side { position: sticky; top: 96px; }
.find { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 48px; border: 2px solid var(--line); border-radius: var(--r2); background: var(--ink-2); color: var(--mute); transition: border-color .2s, box-shadow .2s; }
.find:focus-within { border-color: var(--tang); box-shadow: 4px 4px 0 var(--tang-deep); color: var(--tang); }
.find input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--chalk); font: inherit; font-size: 16px; }
.find input::placeholder { color: var(--mute); }
.find kbd { font: 700 12px/1 var(--body); padding: 4px 7px; border: 2px solid var(--line); border-bottom-width: 3px; border-radius: var(--r1); color: var(--mute); }
.index { list-style: none; margin: var(--s3) 0 0; padding: 0; counter-reset: i; }
.index li { counter-increment: i; }
.index a { display: flex; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: var(--r1); font-size: 15px; color: var(--mute); transition: color .2s, background .2s, transform .2s var(--ease-out); }
.index a::before { content: counter(i, decimal-leading-zero); font: 800 13px/1.6 var(--display); color: var(--line); min-width: 20px; font-variant-numeric: tabular-nums; transition: color .2s; }
.index a:hover { color: var(--chalk); transform: translateX(4px); }
.index a.is-open { color: var(--chalk); background: var(--ink-2); }
.index a.is-open::before { color: var(--lime); }
.index li.is-hidden { display: none; }

.faq__list { border-top: 2px solid var(--ink-3); }
.qa { border-bottom: 2px solid var(--ink-3); position: relative; }
.qa::before { /* left marker that grows in when open */
  content: ""; position: absolute; left: -20px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; background: var(--lime);
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease-out);
}
.qa.is-open::before { transform: scaleY(1); }
.qa h2 { margin: 0; }
.qa__q { width: 100%; display: flex; align-items: center; gap: var(--s2); padding: 22px 0; text-align: left; }
.qa__n { font: 800 15px/1 var(--display); color: var(--line); width: 26px; transition: color .25s; }
.qa__t { flex: 1; font: 700 23px/1.25 var(--display); letter-spacing: -.01em; transition: transform .3s var(--ease-out), color .2s; }
.qa__tag { font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 6px 8px; border: 2px solid var(--ink-3); border-radius: var(--r1); transition: border-color .2s, color .2s; }
.qa__pm { width: 34px; height: 34px; padding: 6px; border-radius: var(--r2); background: var(--ink-3); color: var(--chalk); transition: transform .45s var(--ease-pop), background .2s, color .2s; }
.qa__q:hover .qa__t { transform: translateX(6px); }
.qa__q:hover .qa__n { color: var(--mute); }
.qa__q:hover .qa__pm { background: var(--line); transform: rotate(-12deg); }
.qa__q:active .qa__pm { transform: scale(.82); transition-duration: .08s; }
.qa.is-open .qa__n { color: var(--lime); }
.qa.is-open .qa__tag { border-color: var(--lime-deep); color: var(--lime); }
.qa.is-open .qa__pm { background: var(--lime); color: #10200a; transform: rotate(180deg); }
/* the pack's plus folds its vertical stroke through these inherited vars */
.qa.is-open .qa__pm { --pw-plus-vertical-opacity: 0; --pw-plus-vertical-scale: 0; }
.qa.is-open .qa__q:hover .qa__pm { transform: rotate(168deg); }

.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.qa__a > div { overflow: hidden; padding-left: 42px; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a p, .qa__a dl, .qa__a ul { margin: 0 0 var(--s2); max-width: 62ch; color: #c7d4d8; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .35s var(--ease-out); }
.qa.is-open .qa__a p, .qa.is-open .qa__a dl, .qa.is-open .qa__a ul { opacity: 1; transform: none; transition-delay: .12s; }
.qa__a mark { background: var(--tang); color: var(--ink); font-weight: 700; padding: 0 5px; border-radius: var(--r1); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.pair > div { padding: 12px 14px; background: var(--ink-2); border-left: 4px solid var(--tang); border-radius: 0 var(--r1) var(--r1) 0; }
.pair dt { font: 800 13px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--tang); }
.pair dd { margin: 4px 0 0; color: var(--chalk); font-weight: 700; }
.dos { list-style: none; padding: 0; }
.dos li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.dos li::before { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; display: grid; place-items: center; font: 800 13px/1 var(--display); border-radius: var(--r1); }
.dos .do::before { content: "\2713"; background: var(--lime); color: #10200a; }
.dos .dont::before { content: "\2715"; background: #ff6b57; color: #2a0b06; }
.copy { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--s3); padding: 6px 10px; border-radius: var(--r1); font-size: 13px; font-weight: 700; color: var(--mute); border: 2px solid var(--ink-3); opacity: 0; transition: opacity .25s .15s, color .2s, border-color .2s, transform .1s; }
.copy .ic { width: 16px; height: 16px; }
.qa.is-open .copy { opacity: 1; }
.copy:hover { color: var(--chalk); border-color: var(--line); }
.copy:active { transform: scale(.94); }
.qa.is-flash { animation: flash 1s var(--ease-out); }
.empty { padding: var(--s4) 0; color: var(--mute); }

/* staggered first-load rise, list only */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-pop); }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: var(--s3);
  margin: 0 0 var(--s5);
  padding: var(--s4) var(--s4) var(--s4) var(--s5);
  background: var(--lime);
  color: #10200a;
  border-radius: var(--r3);
  box-shadow: 0 10px 0 var(--lime-deep);
  overflow: hidden;
}
/* hand-cut zigzag strip on the left edge */
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: linear-gradient(135deg, var(--lime-deep) 25%, transparent 25%) 0 0 / 22px 22px, linear-gradient(45deg, transparent 75%, var(--lime-deep) 75%) 0 0 / 22px 22px; }
.cta h2 { margin: 0; font: 800 clamp(34px, 5vw, 58px)/.95 var(--display); letter-spacing: -.035em; max-width: 13ch; }
.cta p { margin: var(--s2) 0 var(--s3); font-size: 19px; font-weight: 700; }
.cta__mascot { width: 100%; height: auto; cursor: pointer; transform-origin: 50% 95%; transform: rotate(4deg); transition: transform .4s var(--ease-pop); user-select: none; -webkit-user-drag: none; }
.cta__mascot:hover { transform: rotate(-3deg) scale(1.05); }
.cta__mascot.is-boing { animation: boing .6s var(--ease-out); }
[data-letters] .word { display: inline-block; white-space: nowrap; }
[data-letters] .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(6deg); animation: chIn .6s var(--ease-pop) forwards; }
[data-letters] .ch--q { color: var(--tang); transform-origin: 50% 90%; }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--ink-3); }
.foot__in { max-width: 1160px; margin: 0 auto; padding: var(--s3); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 14px; color: var(--mute); }
.foot__word { display: flex; align-items: center; gap: 8px; font: 800 18px/1 var(--display); color: var(--chalk); }
.foot__nav { display: flex; gap: var(--s2); flex-wrap: wrap; margin: 0 auto; }
.foot__nav a { transition: color .2s; }
.foot__nav a:hover { color: var(--tang); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50;
  padding: 12px 18px; border-radius: var(--r2);
  background: var(--chalk); color: var(--ink); font-weight: 700;
  box-shadow: 5px 5px 0 var(--tang);
  transform: translate(-50%, 140%) rotate(-3deg);
  opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease-pop), opacity .2s, visibility 0s .45s;
  pointer-events: none;
}
.toast.is-up { transform: translate(-50%, 0) rotate(-1.5deg); opacity: 1; visibility: visible; transition: transform .45s var(--ease-pop), opacity .15s; }

@keyframes reveal { to { clip-path: inset(-4px -4px -4px -4px); } }
@keyframes chIn { to { opacity: 1; transform: none; } }
@keyframes wobble { 0%,100% { rotate: 0deg; } 25% { rotate: -14deg; } 55% { rotate: 10deg; } 80% { rotate: -4deg; } }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(1.12, .86); } 55% { transform: scale(.92, 1.1) translateY(-14px); } 80% { transform: scale(1.03, .97); } 100% { transform: scale(1); } }
@keyframes flash { 0% { background: rgba(255, 176, 46, .22); } 100% { background: transparent; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; gap: var(--s3); }
  .faq__side { position: static; }
  .index { display: none; }
  .intro { grid-template-columns: 1fr; }
  .stub { max-width: 420px; }
  .qa::before { left: -12px; }
}
@media (max-width: 820px) {
  .bar { backdrop-filter: none; background: var(--ink); }
  .nav { z-index: 30; }
  .nav { position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; padding: var(--s2) var(--s3) var(--s3); background: var(--ink); border-bottom: 2px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease-pop), opacity .2s; }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 20px; padding: 12px 4px; }
  .burger { display: grid; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 2px solid var(--ink-3); }
  .cta { grid-template-columns: 1fr; padding: var(--s4) var(--s3) var(--s4) var(--s4); }
  .cta__mascot { width: 170px; justify-self: end; margin-top: -10px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar__in, main { padding-left: var(--s2); padding-right: var(--s2); }
  .bar__in { gap: 10px; }
  .brand__word small { display: none; }
  .intro { padding-top: var(--s4); }
  .intro__lede { font-size: 18px; }
  .qa__tag { display: none; }
  .qa__t { font-size: 19px; }
  .qa__a > div { padding-left: 0; }
  .pair { grid-template-columns: 1fr; }
  .fact__n { font-size: 34px; }
  .fact { padding-right: var(--s2); }
  .fact + .fact { padding-left: var(--s2); }
  .fact:nth-child(3) { padding-left: 0; }
  .foot__nav { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, [data-letters] .ch { opacity: 1; transform: none; }
}
