/* ───────────────────────── Fonts ───────────────────────── */
@font-face {
  font-family: "Allo";
  src: url("/assets/fonts/AlloVariable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215;
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --bg: #111111;
  --card: #1b1c1f;
  --card-2: #212226;
  --card-3: #24252a;
  --input-drop: #16171a;
  --divider: #2a2b30;
  --row-line: #2e3036;
  --card-border: #27282c;
  --btn-border: #3a3c43;
  --text: #d6dbf0;
  --text-2: #c3c8da;
  --muted: #b4b9cc;
  --muted-2: #a4a9bd;
  --placeholder: #8a8fa3;
  --ink: #131415;
  --lime: #c9f191;
  --pink: #ff8fb0;
  --cream: #f3e6cf;
  --red: #e5473b;
  --ink-black: #141311;
  --ink-base: #1e1c1b;

  --f-allo: "Allo", "DM Sans", system-ui, sans-serif;
  --f-dm: "DM Sans", system-ui, sans-serif;
  --f-inter: "Inter", system-ui, sans-serif;
  --f-comic: "Barlow Condensed", "Arial Narrow", sans-serif;

  --page-w: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-allo);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.dm { font-family: var(--f-dm); }

/* ───────────────────────── Page shell ───────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-height: 100vh;
  padding: 56px 100px 40px;
}
.page > * { width: 100%; max-width: var(--page-w); }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 13px;
  line-height: normal;
}
.footer__copy { color: var(--muted-2); }
.footer__links { display: flex; gap: 16px; color: var(--text); white-space: nowrap; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__links [aria-current="page"] { cursor: default; text-decoration: none; }

.card { background: var(--card); border-radius: 32px; }

/* ───────────────────────── Wordmark ───────────────────────── */
.wordmark {
  display: flex;
  align-items: center;
  gap: 8.737px;
  height: 56.304px;
  font-family: var(--f-allo);
  font-weight: 900;
  font-size: 46.682px;
  letter-spacing: -0.9336px;
  line-height: normal;
  color: var(--text);
  white-space: nowrap;
}
.wordmark__mark { position: relative; width: 40.99px; height: 37.575px; flex-shrink: 0; }
.wordmark__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wordmark__mark i {
  position: absolute;
  width: 5.693px; height: 14.802px;
  border-radius: 2.232px;
  background: #18191c;
}
.wordmark__mark i:nth-of-type(1) { left: 13.62px; top: 13.83px; }
.wordmark__mark i:nth-of-type(2) { left: 22.45px; top: 13.45px; }

.logo-tile { position: relative; width: 100%; height: 101.192px; }
.logo-tile::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  background: #18191c;
  border-radius: 23px;
  transform: rotate(-1.59deg) skewX(0.12deg);
}
.logo-tile .wordmark { position: absolute; left: 6.37%; top: 21.7px; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--f-dm);
  font-weight: 600;
  font-size: 15px;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--text); color: var(--ink); border: 0; }
.btn--primary:hover { background: #e6eaff; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--btn-border); }
.btn--outline:hover { border-color: #5a5d66; background: #222327; }
.btn--lime { background: var(--lime); color: var(--ink); border: 0; }
.btn--lime:hover { background: #d7f7a9; }
.btn img { width: 16px; height: 16px; }

/* App Store badge, built from the four Figma vectors */
.badge {
  position: relative;
  display: block;
  width: 119.664px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
}
.badge img { position: absolute; width: auto; height: auto; }
.badge .b-bg { inset: 0; width: 100%; height: 100%; }
.badge .b-apple { inset: 19.62% 76.57% 23.77% 8.03%; width: 15.4%; height: 56.61%; }
.badge .b-store { inset: 44.68% 8.5% 16.27% 28.77%; width: 62.73%; height: 39.05%; }
.badge .b-dl { inset: 21.09% 12.41% 63.01% 29.81%; width: 57.78%; height: 15.9%; }
.badge--sm { width: 67px; height: 22.396px; }

/* ───────────────────────── Landing ───────────────────────── */
.landing { display: flex; gap: 20px; align-items: flex-start; }

.studio {
  flex: 0 0 380px;
  /* Sticks while the game column scrolls; shrinks on short screens so it never clips. */
  position: sticky;
  top: 56px;
  height: clamp(600px, calc(100vh - 112px), 900px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
.studio { position: sticky; overflow: hidden; }
/* Night scene (Figma "Frame 09", 20% opacity) fills the card. The SVG is 1878×900 with the card's 380px
   window starting 504px in, so cover + 33.6% (504 / (1878 − 380)) lines it up exactly at 380×900 and scales with the card. */
.studio__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 33.6% 50%; pointer-events: none; user-select: none; }
.studio > :not(.studio__bg) { position: relative; z-index: 1; }
.studio__top { display: flex; flex-direction: column; gap: 14px; }
.divider { height: 1px; background: var(--divider); width: 100%; }
.studio__intro { font-size: 15px; line-height: 1.5; color: var(--muted); text-align: center; }

.status {
  background: var(--card-2);
  border-radius: 22px;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
}
.status__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  line-height: normal;
  white-space: nowrap;
  color: var(--muted-2);
}
.status__row + .status__row { border-top: 0; }
.status__row--line { border-bottom: 1px solid var(--row-line); }
.status__row b { font-family: var(--f-dm); font-weight: 600; color: var(--text); }
.status__row--line .confetti { left: auto; right: 43px; } /* centre of "Eyes on Spy", wherever the row ends */
.status__row span.dm { font-weight: 500; }
.status .btn--play { height: 50px; width: 100%; font-size: 16px; margin-top: 4px; padding: 0 18px; }
.status__secondary { display: flex; gap: 8px; margin-top: 18px; }
.status__secondary .btn { flex: 1 1 0; min-width: 0; }

.games { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.game {
  position: relative;
  height: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.game__art { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.art-stage {
  position: absolute;
  left: 50%;
  top: 0;
  width: 720px;
  height: 367px;
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--art-scale, 1));
}
.game__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 16px 28px;
  border-top: 1px solid var(--card-border);
  background: var(--card);
  position: relative;
}
.game__bar p { font-size: 15px; color: var(--muted); white-space: nowrap; }
.game__actions { display: flex; align-items: center; gap: 12px; }
.chip-btn {
  background: var(--card-3);
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-family: var(--f-allo);
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.chip-btn:hover { background: #2e3036; color: var(--text); }
.game__privacy { font-family: var(--f-dm); font-size: 13px; color: var(--muted-2); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.game__privacy:hover { color: var(--text); }

/* Hero card hover (Figma: State=Hover). The card, footer bar and app icon stay put;
   only the artwork zooms to 106% and turns 2° around the centre of the 720×365 art area. */
.game--hero { background: #1a1817; }
.game--hero .game__bar { background: #1a1817; }
.art-zoom {
  position: absolute; inset: 0;
  transform-origin: 360px 182.5px;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) {
  .game--hero:hover .art-zoom, .game--hero:focus-within .art-zoom { transform: rotate(2deg) scale(1.06); }
}

/* "Next game" classified panel */
.classified {
  position: absolute; left: calc(50% - 110px); top: calc(50% + 8px - 109.5px);
  width: 219px; height: 219px; padding: 32px; border-radius: 22px;
  background: rgba(27, 28, 31, .98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  overflow: hidden;
}
.stamp {
  transform: rotate(8deg);
  border: 3px solid var(--lime); border-radius: 6px; padding: 4px; opacity: .92;
}
.stamp div {
  border: 1px solid var(--lime); border-radius: 3px; padding: 6px 10px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--lime); line-height: normal; white-space: nowrap;
}
.stamp small { font-family: "Special Elite", monospace; font-size: 8px; letter-spacing: .64px; }
.stamp strong { font-family: "Black Ops One", var(--f-comic); font-weight: 400; font-size: 20px; letter-spacing: .8px; }
.classified__copy { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: normal; white-space: nowrap; font-family: var(--f-dm); }
.classified__copy b { font-weight: 600; font-size: 14px; color: var(--text); }
.classified__copy span { font-size: 13px; color: var(--muted-2); }

/* Confetti burst from "Eyes on Spy" (pieces are built and animated in main.js) */
.status__row { position: relative; }
.confetti { position: absolute; left: 257px; top: 22.5px; width: 1px; height: 1px; pointer-events: none; z-index: 3; }
.confetti .cf-x, .confetti .cf-p { position: absolute; left: 0; top: 0; }
.confetti .cf-p { opacity: 0; border-radius: 1.5px; }
.confetti .cf-p.dot { border-radius: 0; }
.confetti .cf-p img { width: 100%; height: 100%; }

.game--soon .game__actions { opacity: .5; }
.game--soon .chip-btn { cursor: not-allowed; }
.game--soon .chip-btn:hover { background: var(--card-3); color: var(--muted); }

/* Hero art pieces (absolute in a 720×367 stage, values from Figma) */
.speed-lines { position: absolute; left: -306px; top: -252px; width: 862px; height: 860.302px; }
.party {
  position: absolute; left: 297px; top: -84.82px; width: 423px; height: 497.647px; overflow: hidden;
}
.party img { position: absolute; left: -48.57%; top: -8.27%; width: 205.65%; height: 116.55%; }

.phone {
  position: absolute;
  background: var(--ink-black);
  border: 0.7px solid #494540;
  border-radius: 19.5px;
  padding: 1.8px;
}
.phone img { width: 100%; object-fit: cover; object-position: top; border-radius: 16.6px; }
.phone--a { left: 543px; top: 136px; width: 161px; }
.phone--a img { height: 279.5px; }
.phone--b { left: 221px; top: 150px; width: 149.4px; padding: 2.26px; border-radius: 17.7px; }
.phone--b img { height: 296px; border-radius: 15.2px; }
.phone--c {
  left: 313px; top: 125px; width: 164.85px; padding: 2.5px;
  filter: drop-shadow(0 16px 16px rgba(12, 12, 13, .4));
}
.phone--c img { height: 281px; }
.phone--d { left: 421px; top: 91px; }
.phone--d img { width: 158.44px; height: 343.4px; }

.spy { position: absolute; left: 81.1px; top: 86px; width: 121.537px; height: 106.345px; }
.spy img, .spy .flip { position: absolute; }
.spy .s-head { left: 29.53px; top: 30.59px; width: 62.363px; height: 62.363px; }
.spy .flip { transform: scaleX(-1) rotate(-0.64deg); }
.spy .flip img { position: static; width: 100%; height: 100%; }
.spy .s-eye-r { left: 63.3px; top: 57.77px; width: 19.24px; height: 6.6px; }
.spy .s-eye-l { left: 34.21px; top: 58.1px; width: 19.25px; height: 6.6px; }
.spy .s-hat { left: 22.64px; top: 6.77px; width: 70.93px; height: 45.35px; }
.spy .s-brim { left: 8.2px; top: 45.75px; width: 108.9px; height: 9.524px; transform: scaleY(-1) rotate(179.36deg); }
.spy .s-coat { left: 4.6px; top: 67.09px; width: 111.985px; height: 40.683px; transform: scaleY(-1) rotate(179.36deg); }

.spy-title {
  position: absolute;
  left: 51px;
  top: 145px;
  width: 140px;
  height: 110px;
  font-family: var(--f-comic);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: normal;
  white-space: nowrap;
}
.spy-title p { position: absolute; left: 0; top: 0; }
.spy-title .t1 { font-size: 36.142px; color: var(--cream); }
.spy-title .t2 { left: 10px; top: 2.51px; text-shadow: 3.969px 3.969px 0 var(--ink-black); color: var(--cream); }
.spy-title .t2 .s { font-size: 95.256px; color: var(--red); }
.spy-title .t2 .py { font-size: 75.411px; }

.app-icon {
  position: absolute; right: 22px; top: 21px; width: 45px; height: 45px;
  border-radius: 10px; overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; }

.blur-photo { position: absolute; left: 0; top: -85px; width: 720px; height: 498px; filter: blur(9px); }
.blur-photo img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.barricade { position: absolute; left: calc(50% - 110px); top: calc(50% + 8px - 109.5px); width: 219px; height: 219px; }

/* ───────────────────────── How it plays (modal) ───────────────────────── */
.modal {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(1120px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100vh - 48px);
  background: var(--card);
  color: var(--text);
  border-radius: 32px;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(10, 10, 11, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.modal__inner { position: relative; padding: 80px 48px 80px; display: flex; flex-direction: column; gap: 57px; }
.modal__close {
  position: absolute; top: 26px; right: 26px;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--row-line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.modal__close:hover { background: #3a3c43; }
.modal__close img { width: 11px; height: 11px; }
.modal__title {
  font-family: var(--f-allo);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.78px;
  color: var(--text);
  padding-right: 40px;
}

.steps { background: var(--card-2); border-radius: 20px; padding: 68px; display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.step__copy { width: 616.74px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; }
.step__copy h3 { font-family: var(--f-allo); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--text); padding-left: 6px; }
.step__copy h3 .n { display: inline-block; min-width: 21px; }
.step__copy p { font-family: var(--f-allo); font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--muted); }
.step__photo { width: 155.26px; height: 162.21px; flex-shrink: 0; border-radius: 8.65px; overflow: hidden; margin-right: -6px; }
.step__photo img { width: 100%; height: 100%; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature { background: var(--card-2); border-radius: 20px; padding: 28px 20px; display: flex; flex-direction: column; gap: 20px; }
.feature__icon { height: 32px; position: relative; }
.feature h4 { margin: 0; font-family: var(--f-allo); font-weight: 700; font-size: 22px; line-height: 1.4; color: var(--text); }
.feature p { font-family: var(--f-allo); font-size: 13px; line-height: 1.4; color: var(--text); margin-top: 12px; }

/* feature icon 1: redaction bar */
.redaction {
  position: absolute; left: 0; top: 4px;
  width: 58px; height: 19.593px;
  background: var(--ink-base);
  box-shadow: 0.922px 0.922px 0 0 var(--red);
  overflow: hidden;
  transform: rotate(-2.58deg);
}
.redaction img { position: absolute; left: -0.2px; top: 1.1px; width: 64px; height: 17.9px; }
.redaction span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 2px;
  font-family: var(--f-comic); font-weight: 900; font-style: italic;
  font-size: 10px; letter-spacing: .4px; text-transform: uppercase; line-height: 1;
  color: var(--cream);
}
/* feature icon 2: SPIES setting */
.setting {
  position: absolute; left: 0; top: 0; width: 101px; height: 20px;
  background: #2f2c29; border: 0.123px solid var(--ink-black);
}
.setting__panel { position: absolute; left: 0; top: 0; width: 18px; height: 20px; background: #f4d53a; overflow: hidden; }
.setting__panel img { position: absolute; left: 2.58px; top: 6.54px; width: 11.791px; height: 5.312px; }
.setting__label {
  position: absolute; left: 22px; top: 6.3px;
  font-family: var(--f-comic); font-weight: 900; font-style: italic;
  font-size: 8.6px; line-height: .92; text-transform: uppercase; color: var(--cream);
}
.stepper { position: absolute; left: 56.88px; top: 3.88px; width: 41.04px; height: 13.52px; }
.stepper i { position: absolute; width: 11.796px; height: 11.796px; }
.stepper .sh { background: var(--ink-base); top: .98px; }
.stepper .fc { background: var(--red); top: .25px; border: .123px solid var(--ink-base); }
.stepper .sh.l { left: .74px; } .stepper .fc.l { left: 0; }
.stepper .sh.r { left: 29.24px; } .stepper .fc.r { left: 28.51px; }
.stepper img { position: absolute; }
.stepper .minus { left: 2.45px; top: 5.4px; width: 6.88px; height: 1.48px; }
.stepper .plus { left: 30.96px; top: 2.7px; width: 6.88px; height: 6.88px; }
.stepper b {
  position: absolute; left: 12.78px; top: .49px; width: 14.745px; height: 11.796px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-comic); font-weight: 900; font-style: italic; font-size: 9.34px; line-height: 1;
  color: var(--cream);
}
/* feature icon 3: timer dial */
.dial { position: absolute; left: 0; top: 0; width: 32px; height: 32px; }
.dial img { position: absolute; }
.dial .d-dial { inset: 0; width: 32px; height: 32px; }
.dial .d-ring { left: 1.14px; top: 1.14px; width: 29.714px; height: 29.714px; }
.dial b {
  position: absolute; left: 0; right: 0; top: 9.77px; text-align: center; padding-left: .6px;
  font-family: var(--f-comic); font-weight: 900; font-style: italic; font-size: 13.143px; line-height: 1;
  color: var(--ink-base);
}
.dial small {
  position: absolute; left: 0; right: 0; top: 22.86px; text-align: center;
  font-family: var(--f-comic); font-weight: 900; font-style: italic; font-size: 2.3px; line-height: 1;
  color: var(--red);
}
/* feature icon 4: start button */
.start-btn { position: absolute; left: 0; top: 0; width: 90.5px; height: 27.03px; }
.start-btn img { position: absolute; }
.start-btn .sb-shadow { left: 4.1px; top: 4.1px; width: 85.995px; height: 22.523px; }
.start-btn .sb-bottom { left: 0; top: 22.52px; width: 84.767px; height: 2.867px; }
.start-btn .sb-right { left: 81.9px; top: 0; width: 6.962px; height: 25.389px; }
.start-btn .sb-face { left: 0; top: 0; width: 85.995px; height: 22.523px; }
.start-btn span {
  position: absolute; left: 3.5px; top: 0; width: 77.8px; height: 21.3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-comic); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1;
  color: var(--cream); font-size: 11.878px; white-space: nowrap;
}
.start-btn span .s { color: var(--red); font-size: 13.716px; }

.modal__footer {
  background: var(--card-2);
  border-radius: 20px;
  padding: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.modal__footer p { font-family: var(--f-allo); font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ───────────────────────── Privacy (studio + per-game) ───────────────────────── */
.page--policy { padding-top: 88px; padding-bottom: 56px; gap: 56px; }
.pp { display: flex; gap: 40px; align-items: flex-start; font-family: var(--f-dm); }
.pp-side {
  flex: 0 0 320px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 24px;
  /* Taller than the window? Let the sidebar scroll on its own so nothing gets cut off. */
  max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; border-radius: 28px;
}
.pp-side::-webkit-scrollbar { display: none; }
.pp-title {
  background: var(--card); border-radius: 28px; padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; line-height: normal;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px 0 14px;
  border-radius: 999px; background: var(--row-line); color: var(--text);
  font-weight: 600; font-size: 14px; margin-bottom: 8px;
  transition: background-color .15s;
}
.back-btn:hover { background: #3a3c43; }
.back-btn img { width: 16px; height: 16px; }
.pp-title .crumb { font-size: 14px; color: var(--muted-2); }
.pp-title .crumb:hover { color: var(--text); }
.pp-title h1 { font-weight: 600; font-size: 32px; letter-spacing: -0.64px; color: var(--text); }
.pp-title h1.bold { font-weight: 700; }
.pp-title .sub { font-weight: 500; font-size: 15px; color: var(--lime); }
.pp-title .date { font-size: 13px; color: var(--muted-2); }

.pp-toc { background: var(--card); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.pp-toc a {
  padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: normal; color: var(--text);
  transition: background-color .15s, color .15s;
}
.pp-toc a:hover { background: #222327; }
.pp-toc a.is-active { background: var(--card-border); color: var(--lime); }

.pp-aside { background: var(--card-2); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; line-height: normal; }
.eyebrow-caps { font-weight: 600; font-size: 12px; letter-spacing: 1.2px; color: var(--muted-2); text-transform: uppercase; }
.pp-aside .game-link {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--row-line); border-radius: 14px; padding: 12px 14px; font-size: 15px;
  transition: background-color .15s;
}
.pp-aside .game-link:hover { background: #3a3c43; }
.pp-aside .game-link b { font-weight: 600; color: var(--text); }
.pp-aside .game-link span { color: var(--lime); transition: transform .15s; }
.pp-aside .game-link:hover span { transform: translateX(3px); }
.pp-aside p { font-size: 13px; line-height: 1.45; color: var(--muted-2); }
.glance-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.glance-row span { color: var(--muted-2); }
.glance-row b { font-weight: 600; color: var(--text); }

.pp-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pp-short { background: var(--card); border-radius: 28px; padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; color: var(--lime); }
.pp-short h2 { font-weight: 600; font-size: 22px; line-height: normal; }
.pp-short ul { padding-left: 24px; font-size: 16px; line-height: 1.55; }
.pp-sections { background: var(--card); border-radius: 28px; padding: 48px 52px; display: flex; flex-direction: column; gap: 36px; }
.pp-sections section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.pp-sections section + section { border-top: 1px solid var(--divider); padding-top: 36px; }
.pp-sections h2 { font-weight: 600; font-size: 22px; line-height: normal; color: var(--text); }
.pp-sections p, .pp-sections ul { font-size: 16px; line-height: 1.65; color: var(--text-2); }
.pp-sections ul { padding-left: 24px; }
.pp-sections strong { font-weight: 600; color: var(--text); }
.pp-sections a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ───────────────────────── About ───────────────────────── */
.about-head { display: flex; align-items: center; gap: 24px; margin-bottom: 12px; }
.about-head .tagline {
  flex: 1 1 0; min-width: 0; text-align: right;
  font-family: var(--f-dm); font-weight: 500; font-size: 22px; line-height: 1.25; color: var(--text);
}
.story { display: flex; flex-direction: column; gap: 24px; }
.story__main { background: var(--card); border-radius: 28px; padding: 72px; }
.story__row { display: flex; gap: 72px; align-items: flex-start; }
.story__text { flex: 1 1 0; min-width: 0; max-width: 500px; display: flex; flex-direction: column; gap: 64px; padding-top: 8px; }
.story__intro { display: flex; flex-direction: column; gap: 24px; }
.story__text h1 { font-family: var(--f-allo); font-weight: 600; font-size: 34px; line-height: 1.2; letter-spacing: -0.4px; color: var(--text); text-wrap: balance; }
.story__text p { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.story__side { flex: 0 0 436px; margin-left: auto; display: flex; flex-direction: column; gap: 20px; }
.facts { background: var(--card-2); border-radius: 24px; padding: 8px 20px 20px; display: flex; flex-direction: column; }
.facts__row {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px;
  padding: 14px 0; border-bottom: 1px solid var(--row-line);
  font-family: var(--f-dm); font-size: 15px; line-height: normal; white-space: nowrap;
}
.facts__row:last-of-type { border-bottom: 0; }
.facts__row span { color: var(--muted-2); }
.facts__row b { font-weight: 600; color: var(--text); }
.facts__row .with-badge { display: flex; align-items: center; gap: 12px; }
.facts .btn { width: 100%; height: 50px; margin-top: 12px; }

.solo { display: flex; flex-direction: column; gap: 16px; }
.solo h2 { font-family: var(--f-allo); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: .02em; color: var(--text); }
.solo p { font-size: 16px; line-height: 1.7; color: var(--muted); }

.shelf { display: flex; gap: 20px; }
.shelf a {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 216px;
  border-radius: 24px; padding: 24px; gap: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .15s;
}
.shelf a:hover { transform: translateY(-2px); }
.shelf p { font-size: 14px; line-height: 1.5; }
.shelf .arrow { position: absolute; right: 18px; top: 18px; width: 29.5px; height: 29.5px; transform: rotate(180deg); }
.shelf .obsession { background: var(--text); }
.shelf .obsession p { color: #3b4a22; }
.shelf .fav { background: var(--card-2); }
.shelf .fav p { color: var(--muted); }
.shelf .logo-crop { position: relative; overflow: hidden; }
.shelf .gloschli { width: 136px; height: 49px; }
.shelf .gloschli img { position: absolute; left: -12.29%; top: .62%; width: 112.81%; height: 100%; }
.shelf .catan { width: 104px; height: 44px; margin-bottom: 5px; }
.shelf .catan img { position: absolute; left: -19.23%; top: -83.85%; width: 119.23%; height: 280%; }

.say-hi {
  background: var(--card); border-radius: 28px; padding: 32px 32px 32px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.say-hi h2 { font-family: var(--f-allo); font-weight: 600; font-size: 22px; line-height: normal; color: var(--text); }
.say-hi p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ───────────────────────── Support ───────────────────────── */
.support-layout { display: flex; gap: 20px; align-items: flex-start; }
.support-card {
  flex: 0 0 380px; background: var(--card); border-radius: 28px; padding: 24px;
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 56px; /* left cards stay in view while the right side scrolls */
}
.support-card h1 { font-family: var(--f-allo); font-weight: 600; font-size: 32px; letter-spacing: -0.5px; line-height: 1.15; color: var(--text); }
.support-card .intro { display: flex; flex-direction: column; gap: 12px; }
.support-card .intro p { font-family: var(--f-dm); font-size: 16px; line-height: 1.6; color: var(--muted); }
.support-card .email { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-dm); line-height: normal; }
.support-card .email span { font-size: 14px; color: var(--muted-2); }
.support-card .email a { font-weight: 600; font-size: 16px; color: var(--lime); }
.support-card .email a:hover { text-decoration: underline; text-underline-offset: 3px; }

.report {
  flex: 1 1 0; min-width: 0; background: var(--card); border-radius: 28px; padding: 40px;
  display: flex; flex-direction: column; gap: 28px; font-family: var(--f-dm);
}
.report__title { font-family: var(--f-allo); font-weight: 600; font-size: 34px; letter-spacing: -0.5px; line-height: 1.15; color: var(--text); margin-bottom: 4px; }

.row2 { display: flex; gap: 16px; }
.row2 > * { flex: 1 1 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend {
  padding: 0; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--text);
  display: flex; gap: 6px; align-items: baseline;
}
.field legend { float: left; width: 100%; margin-bottom: 0; } /* the field's 10px gap already spaces it, like <label> */
.field legend + * { clear: both; }
.field .opt { font-weight: 400; font-size: 13px; color: var(--placeholder); }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--card-2); border: 1px solid transparent; border-radius: 14px;
  font-family: var(--f-dm); font-size: 16px; color: var(--text);
  outline: none; transition: border-color .15s, background-color .15s;
}
.input::placeholder { color: #9196aa; opacity: 1; }
.input:hover { background: #25262b; }
.input:focus { border-color: #50535d; background: var(--card-2); }
.input:user-invalid { border-color: var(--pink); }
textarea.input { height: 168px; padding: 15px 16px; resize: vertical; line-height: 1.55; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; }
.select img { position: absolute; right: 18px; top: 50%; width: 10px; height: 6px; transform: translateY(-50%); pointer-events: none; }

.segmented { display: flex; gap: 4px; height: 52px; padding: 4px; background: var(--card-2); border-radius: 14px; }
.segmented label { flex: 1 1 0; position: relative; }
.segmented input, .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--text); cursor: pointer; transition: background-color .15s;
}
.segmented input:checked + span { background: var(--text); color: var(--ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips span {
  display: flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--card-2); font-weight: 500; font-size: 15px; color: var(--text);
  cursor: pointer; white-space: nowrap; transition: background-color .15s;
}
.chips span:hover { background: #2a2b30; }
.chips input:checked + span { background: var(--lime); color: var(--ink); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px;
  background: var(--input-drop); border: 1.5px dashed var(--btn-border); border-radius: 14px;
  cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--lime); background: #191a1d; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img { width: 24px; height: 24px; }
.dropzone strong { font-weight: 600; font-size: 15px; color: var(--text); }
.dropzone small { font-size: 13px; color: var(--placeholder); }
.dropzone .files { font-size: 13px; color: var(--lime); }

.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 4px; }
.submit-row p { font-size: 14px; line-height: 1.5; color: var(--muted-2); max-width: 360px; }
.submit-row p a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.submit-row .btn { height: 52px; padding: 0 26px; font-size: 16px; }
.form-note { font-size: 14px; line-height: 1.5; color: var(--lime); }
.form-note[hidden] { display: none; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1200px) {
  .page { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 980px) {
  .page { padding: 24px var(--gutter) 32px; gap: 20px; }
  .landing, .pp, .support-layout { flex-direction: column; align-items: stretch; }
  .studio, .support-card, .pp-side { flex: none; width: 100%; }
  .studio { height: auto; gap: 32px; }
  .pp-side { position: static; max-height: none; overflow: visible; }
  .studio, .support-card { position: relative; top: auto; }
  .page--policy { padding-top: 24px; gap: 32px; }
  .games { width: 100%; }
  .game { height: auto; }
  .game__art { flex: none; height: calc(367px * var(--art-scale, 1)); }
  .story__main { padding: 32px 24px; }
  .story__row { flex-direction: column; gap: 48px; }
  .story__text { gap: 48px; max-width: none; padding-top: 0; }
  .story__text h1 { font-size: 28px; }
  .say-hi { padding: 24px; }
  .story__side { flex: none; width: 100%; margin-left: 0; }
  .about-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .about-head .tagline { text-align: left; font-size: 18px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal__inner { padding: 64px 24px 32px; gap: 32px; }
  .modal__close { top: 16px; right: 16px; }
  .modal__title { font-size: 34px; }
  .steps { padding: 28px 24px; gap: 32px; }
}
@media (max-width: 640px) {
  .footer { flex-direction: column; gap: 12px; }
  .game__bar { padding: 14px 16px; flex-wrap: wrap; }
  .game__bar p { flex-basis: 100%; }
  .game__actions { width: 100%; justify-content: space-between; }
  .row2 { flex-direction: column; }
  .report { padding: 24px 20px; }
  .report__title { font-size: 28px; }
  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-row .btn { width: 100%; }
  .say-hi { flex-direction: column; align-items: flex-start; }
  .step { flex-direction: column; }
  .step__photo { margin: 0; }
  .features { grid-template-columns: 1fr; }
  .modal__footer { flex-direction: column; align-items: flex-start; }
  .modal__title { font-size: 28px; }
  .shelf { flex-direction: column; }
  .shelf a { flex: none; min-height: 0; gap: 28px; }
  .shelf .arrow { left: auto; right: 20px; }
  .wordmark { font-size: 40px; }
  .facts__row { white-space: normal; gap: 12px; }
  .pp-sections { padding: 28px 20px; gap: 28px; }
  .pp-sections section + section { padding-top: 28px; }
  .pp-short { padding: 24px 20px; }
  .status__secondary { flex-direction: column; }
  .status__secondary .btn { flex: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ───────────────────────── Logo animation (Landing, Figma nodes 16:4510–16:4515) ─────────────────────────
   Same 3.8s one-shot timeline as the confetti. main.js adds .is-playing so both start together.
   The clock hops and wobbles, the wordmark nods, then the eyes glance left/right and blink. */
.wordmark .wm-text, .wordmark .wm-eyes { display: inline-block; }
.wordmark .wm-eyes { position: absolute; inset: 0; }
.wordmark--animated .wm-text { transform-origin: 50% 50%; }
.wordmark--animated .wordmark__mark { transform-origin: 50% 50%; }
.wordmark--animated .wm-eyes i { transform-origin: 50% 50%; }

.wordmark--animated.is-playing .wm-text { animation: logo-text-y 3.8s linear both, logo-text-rot 3.8s linear both; }
.wordmark--animated.is-playing .wordmark__mark { animation: logo-mark-y 3.8s linear both, logo-mark-rot 3.8s linear both; }
.wordmark--animated.is-playing .wm-eyes { animation: logo-eyes-x 3.8s linear both; }
.wordmark--animated.is-playing .wm-eyes i { animation: logo-blink 3.8s linear both; }

@keyframes logo-text-y {
  0%      { translate: 0 0; }
  7.895%  { translate: 0 0;      animation-timing-function: ease-out; }
  10%     { translate: 0 -2.5px; animation-timing-function: ease-in-out; }
  13.684%, 100% { translate: 0 0; }
}
@keyframes logo-text-rot {
  0%      { rotate: 0deg; }
  7.895%  { rotate: 0deg;  animation-timing-function: ease-out; }
  10%     { rotate: -1deg; animation-timing-function: ease-in-out; }
  13.158% { rotate: .6deg; animation-timing-function: ease-out; }
  16.316%, 100% { rotate: 0deg; }
}
@keyframes logo-mark-y {
  0%      { translate: 0 0; }
  5.263%  { translate: 0 0;    animation-timing-function: ease-out; }
  8.421%  { translate: 0 -7px; animation-timing-function: ease-in; }
  13.158% { translate: 0 0;    animation-timing-function: ease-out; }
  16.316% { translate: 0 -2px; animation-timing-function: ease-in; }
  18.947%, 100% { translate: 0 0; }
}
@keyframes logo-mark-rot {
  0%      { rotate: 0deg; }
  7.895%  { rotate: 0deg;   animation-timing-function: ease-out; }
  10%     { rotate: -14deg; animation-timing-function: ease-in-out; }
  12.632% { rotate: 12deg;  animation-timing-function: ease-in-out; }
  15.263% { rotate: -10deg; animation-timing-function: ease-in-out; }
  17.895% { rotate: 8deg;   animation-timing-function: ease-in-out; }
  20.526% { rotate: -5deg;  animation-timing-function: ease-in-out; }
  23.158% { rotate: 3deg;   animation-timing-function: ease-out; }
  26.316%, 100% { rotate: 0deg; }
}
@keyframes logo-eyes-x {
  0%      { translate: 0 0; }
  27.632% { translate: 0 0; animation-timing-function: ease-out; }
  31.579% { translate: -2.5px 0; }
  36.842% { translate: -2.5px 0; animation-timing-function: ease-in-out; }
  40.789% { translate: 2.5px 0; }
  44.737% { translate: 2.5px 0;  animation-timing-function: ease-in-out; }
  47.895%, 100% { translate: 0 0; }
}
@keyframes logo-blink {
  0%      { scale: 1 1; }
  48.421% { scale: 1 1;   animation-timing-function: ease-in; }
  50%     { scale: 1 .12; animation-timing-function: ease-out; }
  52.105%, 100% { scale: 1 1; }
}

/* "Eyes on Spy" pops just before the confetti bursts out of it (Figma node 5:54, same 3.8s timeline) */
.eos-pop { display: inline-block; transform-origin: 50% 50%; }
.eos-pop.is-playing { animation: eos-pop 3.8s linear both; }
@keyframes eos-pop {
  0%      { scale: 1; }
  55.263% { scale: 1;    animation-timing-function: ease-out; }
  59.211% { scale: 1.12; animation-timing-function: ease-in-out; }
  65.789%, 100% { scale: 1; }
}

/* Game privacy page (Eyes on Spy!) */
.pp-short { scroll-margin-top: 24px; }
.pp-short--lime { background: var(--lime); color: var(--ink); }
.pp-short--lime strong { font-weight: 600; }
.pp-intro { font-size: 17px; line-height: 1.6; color: var(--text); }
.pp-intro + section { padding-top: 36px; } /* Figma keeps the top padding on the first section, without the rule */
.pp--game .pp-sections a { color: var(--lime); }

/* Logo eyes follow the cursor (main.js sets --look-x / --look-y) */
.wm-eyes { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .18s ease-out; }

/* Logo hover: a small playful tilt and shrink, with a slight springy overshoot on the way back.
   Works on every page; the intro/eye animations run on the logo's children, so they don't clash.
   Where the logo sits on its dark tile (Landing, Support) the tile moves with it, background included;
   elsewhere (About, 404) the logo moves on its own. */
.wordmark, .logo-tile { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.wordmark { transform-origin: 30% 55%; }
.logo-tile { transform-origin: 50% 50%; }
@media (hover: hover) {
  .wordmark:not(.logo-tile .wordmark):hover, .logo-tile:hover { transform: rotate(-3deg) scale(.94); }
}
a.wordmark:active, a.logo-tile:active { transform: rotate(-3deg) scale(.9); transition-duration: .12s; }

/* Logo hover pose for the eyes (from the design reference): shorter (14.8px → 8.6px, tops stay put)
   and looking toward the wordmark (3.4px left). Overrides cursor-follow while hovered. */
.wm-eyes i { transition: height .25s cubic-bezier(.34, 1.56, .64, 1); }
@media (hover: hover) {
  .logo-tile:hover .wm-eyes,
  .wordmark:not(.logo-tile .wordmark):hover .wm-eyes { transform: translate(-3.4px, 0); transition-duration: .25s; }
  .logo-tile:hover .wm-eyes i,
  .wordmark:not(.logo-tile .wordmark):hover .wm-eyes i { height: 8.6px; }
}

/* The Eyes on Spy artwork opens "How it plays" */
.game--hero .game__art { cursor: pointer; }
.game--hero .game__art:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; border-radius: 32px 32px 0 0; }

/* "Coming soon" note for App Store buttons while the game isn't live */
[data-app-store][role="button"] { cursor: pointer; }
.toast {
  position: fixed; z-index: 100; transform: translate(-50%, calc(-100% + 6px)); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--ink); border-radius: 999px; padding: 9px 16px;
  font-family: var(--f-dm); font-weight: 600; font-size: 14px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: opacity .18s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, -100%); }
