/*
  Phyx Games site styles: paper-cut colour fields.
  Ink and cream are the constant pair; each game owns a field of stacked
  paper rings in its own colour; headlines are Luckiest Guy with an ink
  stroke and a straight-down ink shadow, as in the games' promo reels.
*/

@font-face {
  font-family: "Luckiest Guy";
  src: url("/fonts/luckiest-guy.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #10141f;
  --ink-2: #1c2232;
  --cream: #fff6e0;
  --cream-2: #f6e8c6;
  --red: #c83942;
  --sun: #ffc531;
  --lime: #b7f34a;
  --ink-soft: #4a4f5c; /* secondary text on cream cards, whatever field they sit in */

  --font-display: "Luckiest Guy", "Fredoka", system-ui, sans-serif;
  --font: "Fredoka", ui-rounded, system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1280px;
  --gap: clamp(20px, 2.6vw, 36px);
  --r-lg: clamp(24px, 3vw, 36px);

  --lift: 0 6px 0 var(--ink);
  --lift-lo: 0 2px 0 var(--ink);
  --soft: 0 28px 48px -18px rgb(16 20 31 / 0.55);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.32, 0.64, 1);

  /* default field: the cream page */
  --bg: var(--cream);
  --fg: var(--ink);
  --head: var(--ink);
  --head-stroke: transparent;
  --muted: var(--ink-soft);
  --accent: var(--red);
  --r1: #f6e8c6;
  --r2: #f0d9a6;
  --r3: #f7c96b;
  --r4: #ffb44a;
  --r5: #ff8f3a;

  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---------- Fields: each sets the ground, the five ring colours and the text ---------- */
[data-field] { background: var(--bg); color: var(--fg); }
[data-field="red"] {
  --bg: #b32e38; --fg: var(--cream); --head: var(--cream); --head-stroke: var(--ink); --muted: #ffe2d6; --accent: var(--sun);
  --r1: #8f1f2b; --r2: #a82734; --r3: #c83942; --r4: #e3564f; --r5: #f57d62;
}
[data-field="impostor"] {
  --bg: #9e2430; --fg: var(--cream); --head: var(--cream); --head-stroke: var(--ink); --muted: #ffe0d8; --accent: var(--sun);
  --r1: #7a1623; --r2: #94202d; --r3: #b32e38; --r4: #d4434a; --r5: #ef6a5c;
}
/* cobalt is the same blue under a neutral name, for guide tiles that are not about Majority Rules */
[data-field="majority-rules"], [data-field="cobalt"] {
  --bg: #2238b8; --fg: var(--cream); --head: var(--cream); --head-stroke: var(--ink); --muted: #e1e6ff; --accent: var(--sun);
  --r1: #172784; --r2: #1d309f; --r3: #2a43cc; --r4: #4562ea; --r5: #7590ff;
}
[data-field="wiretap"] {
  --bg: #0e1a14; --fg: var(--cream); --head: var(--lime); --head-stroke: #030806; --muted: #cfe3d6; --accent: var(--lime);
  --r1: #10241a; --r2: #143222; --r3: #1a452f; --r4: #22603f; --r5: #2f8052;
}
[data-field="heads-up-charades"] {
  --em: #ffe14d;
  --bg: #ff7a1a; --fg: var(--ink); --head: var(--cream); --head-stroke: var(--ink); --muted: #3b2412; --accent: var(--ink);
  --r1: #e85f0a; --r2: #f26c10; --r3: #ff8a2e; --r4: #ffa457; --r5: #ffc289;
}
[data-field="guess-my-number"] {
  --bg: #0b6b64; --fg: var(--cream); --head: var(--sun); --head-stroke: var(--ink); --muted: #d8f4ef; --accent: var(--sun);
  --r1: #08514c; --r2: #0a5f59; --r3: #0d7a72; --r4: #14998e; --r5: #2cbcab;
}
[data-field="pocket-arcade"] {
  --em: #ff5a5f;
  --bg: #ffc531; --fg: var(--ink); --head: var(--cream); --head-stroke: var(--ink); --muted: #3d2c00; --accent: var(--ink);
  --r1: #f0a800; --r2: #f7b500; --r3: #ffcf4d; --r4: #ffdb75; --r5: #ffe9a6;
}
[data-field="ink"] {
  --bg: var(--ink); --fg: var(--cream); --head: var(--cream); --head-stroke: #000; --muted: #c9cbd3; --accent: var(--sun);
  --r1: #151a28; --r2: #1b2133; --r3: #222a40; --r4: #2b3550; --r5: #364262;
}
[data-field="cream"] {
  --bg: var(--cream); --fg: var(--ink); --head: var(--ink); --head-stroke: transparent; --muted: var(--ink-soft); --accent: var(--red);
  --r1: #f6e8c6; --r2: #f2dcaa; --r3: #f6c868; --r4: #ffb347; --r5: #ff8f3a;
}
[data-field="sun"] {
  --bg: #ffc531; --fg: var(--ink); --head: var(--ink); --head-stroke: transparent; --muted: #3d2c00; --accent: var(--red);
  --r1: #f0a800; --r2: #f7b500; --r3: #ffcf4d; --r4: #ffdb75; --r5: #ffe9a6;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, table { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
::selection { background: var(--sun); color: var(--ink); }
/* Focus ring: ink on light grounds, sun on dark ones. The page, the nav bar and
   its menu are cream, so ink is the default and the dark grounds opt in. The
   second pair covers a field inside a field, such as a game's tile on a cream
   section, where the inner one decides. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
:is([data-field="red"], [data-field="impostor"], [data-field="majority-rules"], [data-field="cobalt"], [data-field="wiretap"],
  [data-field="guess-my-number"], [data-field="ink"], .marquee, .closing__links) :focus-visible { outline-color: var(--sun); }
:is([data-field="sun"], [data-field="pocket-arcade"], [data-field="heads-up-charades"], [data-field="cream"]) :focus-visible { outline-color: var(--ink); }
[data-field] :is([data-field="red"], [data-field="impostor"], [data-field="majority-rules"], [data-field="cobalt"], [data-field="wiretap"],
  [data-field="guess-my-number"], [data-field="ink"]) :focus-visible { outline-color: var(--sun); }
[data-field] :is([data-field="sun"], [data-field="pocket-arcade"], [data-field="heads-up-charades"], [data-field="cream"]) :focus-visible { outline-color: var(--ink); }
html { scrollbar-color: var(--red) var(--cream); }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  color: var(--head);
  text-wrap: balance;
  -webkit-text-stroke: 0.11em var(--head-stroke);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--head-stroke);
}
h1 { font-size: clamp(2.9rem, 7.2vw, 6rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
@media (max-width: 560px) { h1 { font-size: clamp(2.5rem, 11.5vw, 3.4rem); } }
h1 em, h2 em { font-style: normal; color: var(--em, var(--accent)); }
h3 { font-family: var(--font); font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.005em; }
p { text-wrap: pretty; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
/* the skip link can land on any ground: a sun ring against its ink pill, with an ink edge outside it */
.skip-link:focus-visible { outline: 3px solid var(--sun); outline-offset: 0; box-shadow: 0 0 0 6px var(--ink); }

.t-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; }
.t-small { font-size: 0.95rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid--top { align-items: start; }
.grid--center { align-items: center; }
.span-2 { grid-column: auto / span 2; } .span-3 { grid-column: auto / span 3; } .span-4 { grid-column: auto / span 4; }
.span-5 { grid-column: auto / span 5; } .span-6 { grid-column: auto / span 6; } .span-7 { grid-column: auto / span 7; }
.span-8 { grid-column: auto / span 8; } .span-12 { grid-column: 1 / -1; }
.start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; }
@media (max-width: 960px) {
  .grid > [class*="span-"] { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
main > section, .section { position: relative; isolation: isolate; }
.section { padding-block: clamp(88px, 11vw, 168px); overflow: clip; }
.section--flow { padding-block: clamp(64px, 8vw, 112px); }
.section-head { display: grid; gap: 20px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 40rem; }
.section-head .link { justify-self: start; }

/* ---------- Paper rings ---------- */
.rings { position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; }
.rings svg { width: 100%; height: 100%; overflow: visible; }
.rings path { transform-box: fill-box; transform-origin: center; }
.rings .r1 { fill: var(--r1); } .rings .r2 { fill: var(--r2); } .rings .r3 { fill: var(--r3); }
.rings .r4 { fill: var(--r4); } .rings .r5 { fill: var(--r5); }

/* ---------- Buttons, chips, stickers ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.btn {
  --b-bg: var(--cream); --b-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px 12px;
  font-family: var(--font); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; line-height: 1;
  color: var(--b-fg); background: var(--b-bg);
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: var(--lift);
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: var(--lift-lo); transition-duration: 0.06s; }
.btn--primary { --b-bg: var(--sun); }
.btn--secondary { --b-bg: var(--cream); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.2s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--lift-lo); }
.store-icon { width: 22px; height: 22px; object-fit: contain; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 5px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
  color: var(--ink); background: var(--cream); border: 2.5px solid var(--ink); border-radius: 999px;
}
.chip svg { width: 16px; height: 16px; }

.sticker {
  position: absolute; z-index: 4;
  font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.45rem); line-height: 1; letter-spacing: 0.02em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--ink); background: var(--sun); padding: 12px 18px 8px;
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--lift);
  rotate: var(--rot, -6deg);
}

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: inherit;
  text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s, gap 0.2s var(--ease-out);
}
.link::after { content: ""; width: 16px; height: 16px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h10M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.link:hover { gap: 12px; text-decoration-color: var(--accent); }

/* ---------- Devices: every capture and store slide stands in a phone ----------
   Titanium edge, black bezel, Dynamic Island and side buttons. Every measure is a
   fraction of --w, the phone's width, so a phone keeps its proportions at any size.
   The frame's aspect ratio is set inline by the Device component from the image. */
.device {
  --w: 240px;
  position: relative; flex: none; width: var(--w); aspect-ratio: 640 / 1391;
  padding: calc(var(--w) * 0.014); border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(140deg, #9a9ea8 0%, #3a3d44 12%, #1b1c20 45%, #2c2e34 80%, #a4a8b2 100%);
  box-shadow: 0 0 0 1px #08080a, inset 0 0 0 1px rgb(255 255 255 / 0.28), inset 0 0 0 2px rgb(0 0 0 / 0.5), var(--soft);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.6s var(--ease-out), translate 0.6s var(--ease-out);
}
.device__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border: calc(var(--w) * 0.022) solid #040405; border-radius: calc(var(--w) * 0.155); background: #040405;
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: calc(var(--w) * 0.13); }
/* the island sits on every upright phone */
.device--tall .device__screen::before, .device--fold .device__screen::before, .device--slide .device__screen::before {
  content: ""; position: absolute; z-index: 2; top: 1.6%; left: 50%; width: 30%; height: calc(var(--w) * 0.085); translate: -50% 0;
  border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
/* side buttons: power on the right, two volume keys on the left */
.device::before {
  content: ""; position: absolute; right: calc(var(--w) * -0.012); top: 27%; width: calc(var(--w) * 0.014); height: 13%;
  border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #2a2c31, #8d919b);
}
.device::after {
  content: ""; position: absolute; left: calc(var(--w) * -0.012); top: 22%; width: calc(var(--w) * 0.014); height: 7%; pointer-events: none;
  border-radius: 3px 0 0 3px; background: linear-gradient(90deg, #8d919b, #2a2c31);
  box-shadow: 0 calc(var(--w) * 0.19) 0 0 #5c6069;
}
/* glare across the glass */
.device__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / 0) 40%, rgb(255 255 255 / 0.12) 47%, rgb(255 255 255 / 0) 54%) no-repeat;
}
/* a phone on its side (Heads Up is played that way): thinner edge, the island on the left, no side buttons */
.device--wide { --w: 420px; padding: calc(var(--w) * 0.009); border-radius: calc(var(--w) * 0.075); }
.device--wide .device__screen { border-width: calc(var(--w) * 0.015); border-radius: calc(var(--w) * 0.066); }
.device--wide .device__screen img { border-radius: calc(var(--w) * 0.052); }
.device--wide::before, .device--wide::after { display: none; }
.device--wide .device__screen::before {
  content: ""; position: absolute; z-index: 2; left: 1.6%; top: 50%; height: 30%; width: calc(var(--w) * 0.04); translate: 0 -50%; border-radius: 999px; background: #000;
}

/* a stand of phones that overlap and fan */
.stand { position: relative; display: flex; align-items: center; justify-content: center; }
.stand > * + * { margin-left: calc(var(--w, 240px) * -0.22); }
.stand > :nth-child(1) { --tilt: -7deg; z-index: 1; translate: 0 4%; }
.stand > :nth-child(2) { --tilt: 4deg; z-index: 2; }
.stand > :nth-child(3) { --tilt: 10deg; z-index: 1; translate: 0 7%; }

/* ---------- Header: a floating cream bar ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding-top: 14px; margin-bottom: -86px; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 10px 0 22px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  transition: box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.nav__logo { display: flex; align-items: center; flex: none; margin-right: auto; border-radius: 10px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; background: transparent; border: 0; color: inherit; font-family: inherit; cursor: pointer;
  transition: background-color 0.2s;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--cream-2); }
.nav__link[aria-current="page"] { background: var(--ink); color: var(--cream); }
.nav__link .chev { width: 12px; height: 12px; transition: rotate 0.25s var(--ease-out); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__actions .btn { min-height: 50px; padding: 10px 22px 9px; box-shadow: 0 4px 0 var(--ink); }
.nav__toggle { display: none; }

.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -38% 0; width: min(760px, 86vw);
  padding: 18px; background: var(--cream); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top center;
  transition: opacity 0.2s, transform 0.3s var(--ease-out), visibility 0s 0.3s;
}
/* site.js opens and closes the menu with .is-open, so Escape and a second press
   can close it. Until that script is ready, hover and focus open it instead. */
.nav__item--menu.is-open .nav__menu,
html:not(.js-ready) .nav__item--menu:hover .nav__menu, html:not(.js-ready) .nav__item--menu:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.3s var(--ease-out);
}
.nav__item--menu.is-open .chev, html:not(.js-ready) .nav__item--menu:hover .chev { rotate: 180deg; }
.menu-game {
  display: grid; grid-template-columns: 52px 1fr; gap: 2px 12px; align-items: center; padding: 10px; border-radius: 18px;
  text-decoration: none; transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.menu-game img { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; border: 2.5px solid var(--ink); transition: rotate 0.3s var(--ease-pop); }
.menu-game b { font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.menu-game span { font-size: 0.88rem; line-height: 1.25; color: var(--ink-soft); }
.menu-game:hover { background: var(--cream-2); }
.menu-game:hover img { rotate: -8deg; }
.menu-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; margin-top: 4px; border-radius: 18px; background: var(--ink); color: var(--cream); font-weight: 600; text-decoration: none; }
.menu-all:hover { background: var(--ink-2); }

@media (max-width: 1023px) {
  .nav { padding-top: 10px; margin-bottom: -76px; }
  .nav__bar { height: 62px; padding: 0 8px 0 16px; }
  .nav__logo img { height: 26px; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; flex: none;
    border: 2.5px solid var(--ink); background: var(--ink); color: var(--cream); cursor: pointer;
  }
  .nav__toggle svg { width: 20px; height: 20px; }
  .nav__actions .btn { min-height: 46px; padding: 8px 16px 7px; font-size: 1rem; }
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; background: var(--cream); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 6px 0 var(--ink);
    max-height: calc(100svh - 110px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.3s var(--ease-out); }
  .nav__link { font-size: 1.2rem; padding: 14px 16px; justify-content: space-between; width: 100%; }
  .nav__menu { position: static; translate: none; width: auto; opacity: 1; visibility: visible; transform: none; display: none; grid-template-columns: 1fr 1fr; box-shadow: none; border-width: 2px; padding: 8px; margin: 4px 0 8px; }
  .nav__item--menu.is-open .nav__menu { display: grid; }
}
@media (max-width: 560px) {
  .nav__actions .btn { display: none; }
  .nav__menu { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(130px, 14vw, 170px); padding-bottom: clamp(72px, 8vw, 120px); min-height: min(100svh, 1000px); display: flex; align-items: center; overflow: clip; }
.hero > .wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 34rem; }
.hero__stage { position: relative; min-height: clamp(380px, 46vw, 620px); display: grid; place-items: center; }
.hero__stage .rings { width: 128%; left: -14%; top: 50%; translate: 0 -50%; }
.hero__stage .stand { --w: clamp(170px, 19vw, 260px); }
.hero__stage .stand > .device--wide { --w: clamp(300px, 34vw, 460px); }
.hero__icon { width: min(280px, 60%); border-radius: 28%; border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink), var(--soft); rotate: -6deg; }
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { min-height: 0; padding-block: 24px 8px; }
  .hero__stage .rings { width: 150%; left: -25%; }
}
@media (max-width: 560px) {
  .hero__stage .stand { --w: 42vw; }
  .hero__stage .stand > :nth-child(3) { display: none; }
  .hero__stage .stand:has(> .device--wide) > .device--fold { display: none; }
  .hero__stage .stand > .device--wide { --w: 80vw; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- The games: bento of game fields ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: var(--gap); }
.gcard {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 2.6vw, 36px); min-height: 520px;
  border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 8px 0 var(--ink);
  text-decoration: none; color: var(--fg);
  --hover-t: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  transition: var(--hover-t);
}
.gcard:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 12px 0 var(--ink); }
.gcard:active { transform: translateY(3px); box-shadow: 0 4px 0 var(--ink); }
.gcard .rings { width: 115%; right: -40%; bottom: -46%; }
.b-big .rings { width: 140%; right: -20%; bottom: -30%; }
.gcard__top { display: flex; align-items: center; gap: 14px; padding-right: 60px; }
.gcard__top img { width: 64px; height: 64px; border-radius: 18px; border: 3px solid var(--ink); flex: none; transition: rotate 0.4s var(--ease-pop); }
.gcard:hover .gcard__top img { rotate: -10deg; }
.gcard h3 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1;
  color: var(--head); -webkit-text-stroke: 0.1em var(--head-stroke); paint-order: stroke fill; text-shadow: 0 0.07em 0 var(--head-stroke);
}
.b-third h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.gcard__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.gcard p { max-width: 30rem; font-size: 1.08rem; }
/* the picture area at the foot of a card; third-width cards size it to its content */
.gcard__shots { margin-top: auto; padding-top: 12px; display: flex; justify-content: center; align-items: flex-end; min-height: 0; }
.b-big .gcard__shots { flex: 1; align-items: center; padding-top: 24px; }
.b-third .gcard__shots { flex: 0 0 auto; padding-top: 18px; }
/* the phones on a card: --w is how wide each stands, translate how far the stand sinks below the card's edge */
.gcard__shots .stand { --w: clamp(150px, 14vw, 205px); translate: 0 18%; transition: translate 0.5s var(--ease-out); }
.gcard__shots .stand:has(> .device--wide) { translate: 0 8%; }
.b-big .gcard__shots .stand { --w: clamp(190px, 16.5vw, 250px); translate: 0 4%; }
.b-side .gcard__shots .stand { --w: clamp(160px, 14vw, 210px); }
.b-third .gcard__shots .stand { --w: clamp(140px, 12.5vw, 185px); translate: 0 14%; }
.gcard__shots .stand > .device--wide { --w: clamp(240px, 23vw, 330px); --tilt: -5deg; translate: 0 0; }
/* Wiretap's title slide stands in front on the left, with the second slide behind it on the right */
.gcard[data-field="wiretap"] .gcard__shots .stand > :nth-child(1) { z-index: 3; }
.gcard:hover .gcard__shots .stand { translate: 0 10%; }
.b-big:hover .gcard__shots .stand { translate: 0 2%; }
.gcard:hover .stand > :nth-child(1) { --tilt: -10deg; }
.gcard:hover .stand > :nth-child(2) { --tilt: 7deg; }
.gcard:hover .gcard__shots .stand > .device--wide { --tilt: -1deg; }
.gcard__go {
  position: absolute; top: clamp(24px, 2.6vw, 36px); right: clamp(24px, 2.6vw, 36px);
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.3s var(--ease-pop), background-color 0.2s;
}
.gcard__go svg { width: 20px; height: 20px; }
.gcard:hover .gcard__go { transform: rotate(-45deg) scale(1.08); background: var(--sun); }
.gcard--icon .gcard__shots img { width: min(220px, 60%); border-radius: 26%; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); rotate: -6deg; margin-bottom: 10px; transition: rotate 0.5s var(--ease-pop); }
.gcard--icon:hover .gcard__shots img { rotate: 4deg; }
/* card sizes in the 12-column bento: big is 7 wide and two rows tall, side 5, third 4 */
.b-big { grid-column: span 7; grid-row: span 2; }
.b-side { grid-column: span 5; min-height: 440px; }
.b-third { grid-column: span 4; min-height: 0; }
.bento > .b-side:only-child, .bento > .b-big:only-child { grid-column: 1 / -1; grid-row: auto; }
/* side cards with no big card beside them (two or four games in a guide) pair up, six columns each */
.bento:not(:has(> .b-big)) > .b-side { grid-column: span 6; }
@media (max-width: 1100px) {
  .b-third { grid-column: span 6; }
  .b-third:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .b-big, .b-side, .b-third, .b-third:last-child:nth-child(odd) { grid-column: 1 / -1; grid-row: auto; }
  .bento:not(:has(> .b-big)) > .b-side { grid-column: 1 / -1; }
  .b-big, .b-side { min-height: 480px; }
}
@media (max-width: 560px) {
  .b-big, .b-side { min-height: 0; }
  .gcard__shots { min-height: 300px; }
  .gcard__shots .stand, .b-big .gcard__shots .stand, .b-side .gcard__shots .stand, .b-third .gcard__shots .stand { --w: 40vw; }
  .b-big .gcard__shots .stand > :nth-child(3) { display: none; }
}

/* The All games card: every game's icon as a tilted sticker, three by two,
   filling the card's picture area; hover swaps each sticker's tilt. */
.gcard--all .gcard__shots { flex: 1; align-items: center; padding-block: 8px 12px; }
.icon-fan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); width: min(100%, 340px); }
.icon-fan li { rotate: -7deg; transition: rotate 0.5s var(--ease-pop), translate 0.5s var(--ease-pop); }
.icon-fan li:nth-child(even) { rotate: 6deg; translate: 0 10px; }
.icon-fan li:nth-child(3n) { rotate: -3deg; }
.icon-fan img { display: block; width: 100%; height: auto; border-radius: 24%; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.gcard--all:hover .icon-fan li { rotate: 6deg; translate: 0 -4px; }
.gcard--all:hover .icon-fan li:nth-child(even) { rotate: -7deg; translate: 0 6px; }
@media (prefers-reduced-motion: reduce) { .icon-fan li { transition: none; } }

/* ---------- Marquee band ---------- */
.marquee { position: relative; z-index: 2; background: var(--ink); color: var(--cream); padding-block: 20px; overflow: hidden; border-block: 3px solid var(--ink); rotate: -1.5deg; margin-block: -12px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
/* paused under the pointer, while a link in it has focus, and by the hero's pause button (site.js sets .is-paused) */
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__item { display: inline-flex; align-items: center; gap: 16px; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; white-space: nowrap; line-height: 1; padding-top: 0.12em; text-decoration: none; }
.marquee__item img { width: 52px; height: 52px; border-radius: 14px; border: 2.5px solid var(--cream); }
.marquee__item:nth-child(3n + 1) { color: var(--sun); }
.marquee__item:nth-child(3n + 2) { color: #ff8b8b; }
.marquee__star { width: 26px; height: 26px; color: var(--sun); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .marquee__item img { width: 40px; height: 40px; } }

/* ---------- Ways to play ---------- */
.ways { display: grid; gap: 14px; }
.way {
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; align-items: start; padding: 20px 22px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 #000;
  --hover-t: transform 0.3s var(--ease-out);
  transition: var(--hover-t);
}
.way:hover { transform: translateX(6px) rotate(-0.5deg); }
.way__icon { grid-row: span 2; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--sun); border: 2.5px solid var(--ink); }
.way:nth-child(2) .way__icon { background: #ff9a9a; }
.way:nth-child(3) .way__icon { background: #8fd6ff; }
.way__icon svg { width: 34px; height: 34px; }
.way__icon .paper { fill: var(--cream); }
.way b { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1; padding-top: 6px; }
.way p { font-size: 1.02rem; }
.ways--plain .way { grid-template-columns: 1fr; }
.play-stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.play-stage .rings { width: 120%; left: -10%; top: 50%; translate: 0 -50%; }
.play-stage .stand { --w: clamp(180px, 18vw, 250px); }
.play-stage .hero__icon { width: min(240px, 55%); }
/* on a game page the stage is a framed card in the game's own field */
.play-stage[data-field] { border: 3px solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 8px 0 var(--ink); overflow: hidden; isolation: isolate; min-height: 580px; }
@media (max-width: 760px) { .play-stage[data-field] { min-height: 460px; } }

/* ---------- Statement: the one inversion ---------- */
.statement { text-align: center; }
.statement h2 { font-size: clamp(3.2rem, 10vw, 8.5rem); line-height: 0.9; max-width: 12ch; margin-inline: auto; }
.statement p { margin: 28px auto 0; max-width: 34rem; font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.statement__icons { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(12px, 2vw, 24px); margin-top: clamp(36px, 5vw, 56px); }
.statement__icons a { display: block; border-radius: 26px; transition: transform 0.4s var(--ease-pop); }
.statement__icons li:nth-child(odd) a { rotate: -6deg; }
.statement__icons li:nth-child(even) a { rotate: 5deg; translate: 0 10px; }
.statement__icons a:hover { transform: translateY(-10px) rotate(-6deg) scale(1.06); }
.statement__icons img { width: clamp(76px, 9vw, 116px); height: auto; border-radius: 26%; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink); }
.statement .rings { width: min(1200px, 140vw); left: 50%; top: 50%; translate: -50% -50%; opacity: 0.9; }
.rings--guides { width: min(1000px, 130vw); left: -22%; top: -18%; }
.rings--studio { width: min(900px, 120vw); right: -20%; bottom: -30%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  padding: 22px 24px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink);
}
.faq__item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.faq__item p { font-size: 1.02rem; color: #3a3f4c; }
[data-field="cream"] .faq__item { background: #fffbf0; }

/* ---------- Studio and stats ---------- */
.photo {
  position: relative; padding: 14px 14px 56px; background: #fffdf6; border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: var(--soft); rotate: 2.5deg;
  --hover-t: rotate 0.6s var(--ease-out);
  transition: var(--hover-t);
}
.photo:hover { rotate: 0.5deg; }
.photo img { width: 100%; border-radius: 4px; }
.photo .sticker { right: -14px; top: -18px; --rot: 8deg; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 7vw, 96px); }
.stat { padding: 24px 26px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); }
.stat:nth-child(2) { rotate: -1.2deg; } .stat:nth-child(3) { rotate: 1deg; }
.t-stat { font-family: var(--font-display); font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: 1; color: var(--red); padding-top: 0.08em; font-variant-numeric: tabular-nums; }
.stat .t-small { color: var(--ink-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { position: relative; isolation: isolate; overflow: clip; }
.closing__cta { position: relative; padding-block: clamp(110px, 13vw, 190px) clamp(80px, 9vw, 130px); text-align: center; }
.closing__cta h2 { font-size: clamp(2.8rem, 7vw, 6rem); max-width: 14ch; margin-inline: auto; }
.closing__cta .t-lead { margin: 22px auto 34px; max-width: 32rem; color: var(--muted); }
.closing__cta .btn { min-height: 64px; padding: 16px 36px 14px; font-size: 1.3rem; }
.closing__cta .rings { width: min(1400px, 170vw); left: 50%; top: 52%; translate: -50% -50%; }
.closing__links { position: relative; z-index: 1; padding: clamp(40px, 5vw, 64px) 0 28px; background: var(--ink); color: var(--cream); }
.closing__links .grid { row-gap: 36px; }
.footer__brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.footer__brand .nav__logo { border-radius: 8px; }
.footer__brand img { height: 84px; width: auto; }
@media (max-width: 560px) { .footer__brand img { height: 72px; } }
.footer__lede { color: #c9cbd3; max-width: 22rem; }
.footer__col h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; color: var(--sun); margin-bottom: 12px; padding-top: 0.1em; }
.footer__col ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.footer__col--games ul { grid-template-columns: repeat(2, max-content); column-gap: 32px; }
.footer__col a { text-decoration: none; color: #e9e9ee; transition: color 0.2s; }
.footer__col a:hover { color: var(--sun); text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 22px; border-top: 2px solid #2b3142; font-size: 0.92rem; color: #a9adb9; }
.footer__legal a { color: #e9e9ee; }
.socials { display: flex; gap: 10px; }
.socials a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--cream); color: var(--ink); transition: transform 0.3s var(--ease-pop); }
.socials a:hover { transform: rotate(-10deg) scale(1.08); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding-top: clamp(140px, 15vw, 190px); padding-bottom: clamp(56px, 7vw, 96px); overflow: clip; }
.page-head .rings { width: min(900px, 120vw); right: -18%; top: 50%; translate: 0 -50%; }
.page-head h1 { max-width: 16ch; }
.page-head p { max-width: 40rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); margin-top: 22px; }
.page-head .btn-row { margin-top: 30px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 22px; font-weight: 600; }
.meta-line a { text-decoration: none; }
.meta-line a:hover { text-decoration: underline; }
.page-head .game-icon--lg { width: 104px; height: 104px; border-radius: 28px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); rotate: -6deg; margin-bottom: 26px; }

/* ---------- Rows (lists of links) ---------- */
.rows { display: grid; gap: 12px; }
.rows > li { padding: 18px 22px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 4px 0 var(--ink); }
.rows > li > p { font-size: 1rem; color: var(--ink-soft); margin-top: 4px; }
.rows__name { font-weight: 700; font-size: 1.15rem; }
.guide-row { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.guide-row:hover .rows__name, .guide-row:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.game-icon { width: 48px; height: 48px; border-radius: 14px; border: 2.5px solid var(--ink); flex: none; }
.game-icon--hero { width: 92px; height: 92px; border-radius: 26px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); rotate: -6deg; }
.game-icon--all { display: grid; place-items: center; background: var(--cream); color: var(--ink); }
.game-icon--all svg { width: 55%; height: 55%; }
.rows.related { margin-top: 28px; }
.rows.related > li { padding: 14px 18px; }
/* two columns of rows, each in its own game's field (More games on a game page) */
.rows--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rows--grid > li[data-field] { background: var(--bg); color: var(--fg); }
.rows--grid > li[data-field] p { color: var(--muted); }
.rows--grid .game-icon { width: 56px; height: 56px; border-radius: 16px; transition: rotate 0.4s var(--ease-pop); }
/* the link's own box stays the name row, so its accessible name stays short; ::after stretches the click area over the tile */
.rows--grid > li { position: relative; --hover-t: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); transition: var(--hover-t); }
.rows--grid .guide-row::after { content: ""; position: absolute; inset: 0; border-radius: 19px; }
.rows--grid > li:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }
.rows--grid > li:hover .game-icon { rotate: -8deg; }
@media (max-width: 760px) { .rows--grid { grid-template-columns: 1fr; } }
[data-field="ink"] .rows > li { background: var(--ink-2); color: var(--cream); border-color: #000; box-shadow: 0 4px 0 #000; }

/* ---------- Prose (guides, legal, about) ---------- */
.prose { max-width: 44rem; font-size: 1.15rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 1.8em; -webkit-text-stroke: 0; text-shadow: none; color: var(--ink); }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red); font-weight: 600; }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 2px solid #e8d9b5; vertical-align: top; }
.prose th { font-weight: 700; }
.table-scroll { overflow-x: auto; border: 3px solid var(--ink); border-radius: 18px; background: #fffbf0; }
.legal-date { font-weight: 600; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.feature-grid > li {
  padding: 24px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink);
  --hover-t: transform 0.3s var(--ease-out);
  transition: var(--hover-t);
}
.feature-grid > li:nth-child(odd) { rotate: -0.8deg; } .feature-grid > li:nth-child(even) { rotate: 0.8deg; }
.feature-grid > li:hover { transform: translateY(-4px); }
.feature-grid h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-grid p { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 1100px) { .feature-grid > .span-3 { grid-column: auto / span 6; } }
@media (max-width: 640px) { .feature-grid > [class*="span-"] { grid-column: 1 / -1; } }

/* ---------- Screens strip (game pages) ---------- */
.shots-row { display: flex; gap: 48px clamp(14px, 2.4vw, 32px); justify-content: center; flex-wrap: wrap; }
.shots-row > * { --w: clamp(140px, 15vw, 220px); }
.shots-row > :nth-child(odd) { --tilt: -3deg; } .shots-row > :nth-child(even) { --tilt: 3deg; translate: 0 24px; }
.shots-row > :hover { --tilt: 0deg; translate: 0 -8px; }

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 28px; background: var(--cream); box-shadow: 0 6px 0 var(--ink); }
.compare { width: 100%; border-collapse: collapse; color: var(--ink); font-size: 1.05rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 2px solid #ead9b0; white-space: nowrap; }
.compare thead th { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; padding-top: 20px; background: var(--sun); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr { transition: background-color 0.2s; }
.compare tbody tr:hover { background: #fff0cc; }
.compare .yes, .compare .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.compare .yes::before, .compare .no::before { content: ""; width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--ink); flex: none; }
.compare .yes::before { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='%2310141f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.compare .no { color: #6a6e7a; }
.compare .no::before { background: #eee2c4; }
/* The Game column stays put while the other columns scroll sideways under it. It
   needs its own background to cover them, and a shadow for its edge, since a
   collapsed border does not travel with a sticky cell. */
.compare tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--cream); box-shadow: inset -2px 0 0 #ead9b0; }
.compare thead tr > :first-child { background: var(--sun); }
.compare tbody tr:hover > :first-child { background: #fff0cc; }
@media (max-width: 767px) {
  .compare th, .compare td { padding: 14px 12px; }
  .compare tbody th .guide-row { gap: 10px; }
  .compare tbody th .rows__name { white-space: normal; font-size: 1rem; line-height: 1.2; max-width: 6.5em; }
}

/* ---------- Small pages: contact, download, redeem, 404 ---------- */
.contact-cta { margin-top: 18px; }
.download-h { margin-top: 8px; }
.redeem { display: grid; gap: 14px; justify-items: start; }
.icons-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.6vw, 20px); }
.icons-row img { width: clamp(72px, 8vw, 120px); border-radius: 26%; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); transition: transform 0.4s var(--ease-pop); }
.icons-row img:nth-child(odd) { rotate: -6deg; } .icons-row img:nth-child(even) { rotate: 5deg; translate: 0 14px; }
.icons-row a:hover img, .icons-row img:hover { transform: translateY(-8px) scale(1.05); }
/* the games page hero: every icon scattered over the rings, three to a row */
.icons-row--hero { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(14px, 2.4vw, 30px); justify-content: center; }
.icons-row--hero img { width: clamp(96px, 11vw, 150px); border-width: 4px; box-shadow: 0 8px 0 var(--ink), var(--soft); }
.icons-row--hero li:nth-child(3n + 2) { translate: 0 28px; }
@media (max-width: 560px) { .icons-row--hero img { width: 25vw; } }

/* ---------- Motion: reveals, rings rising, parallax ---------- */
/* A revealed element keeps its own hover transition: a component names it in
   --hover-t, and this rule appends it, since a second `transition` would replace it. */
.js [data-reveal] {
  opacity: 0; translate: 0 36px;
  transition: opacity 0.8s var(--ease-out) calc(var(--d, 0) * 90ms), translate 0.9s var(--ease-out) calc(var(--d, 0) * 90ms), var(--hover-t, visibility 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .rings path { scale: 0.55; opacity: 0; transition: scale 1.1s var(--ease-pop), opacity 0.5s ease; }
.js .rings path:nth-child(1) { transition-delay: 0ms; } .js .rings path:nth-child(2) { transition-delay: 90ms; }
.js .rings path:nth-child(3) { transition-delay: 180ms; } .js .rings path:nth-child(4) { transition-delay: 270ms; }
.js .rings path:nth-child(5) { transition-delay: 360ms; }
.js .rings.is-in path { scale: 1; opacity: 1; }
.js [data-pop] { scale: 0.4; opacity: 0; transition: scale 0.6s var(--ease-pop), opacity 0.3s; transition-delay: calc(500ms + var(--d, 0) * 120ms); }
.js .is-in [data-pop], .js [data-pop].is-in { scale: 1; opacity: 1; }
.js .stand[data-settle] > * { translate: 0 60px; opacity: 0; transition: translate 1s var(--ease-out), opacity 0.6s, rotate 0.6s var(--ease-out); }
.js .stand[data-settle] > :nth-child(2) { transition-delay: 120ms; } .js .stand[data-settle] > :nth-child(3) { transition-delay: 240ms; }
.js .stand[data-settle].is-in > * { opacity: 1; translate: 0 0; }
.js .stand[data-settle].is-in > :nth-child(1) { translate: 0 4%; }
.js .stand[data-settle].is-in > :nth-child(3) { translate: 0 7%; }

/* Above the fold: the hero and the page heads make the same entrance with CSS
   alone, starting at first paint. They never wait for site.js, so the heading,
   lead and buttons are not held back on a slow connection. */
.js :is(.hero, .page-head) [data-reveal] { opacity: 1; translate: none; transition: var(--hover-t, none); }
:is(.hero, .page-head) [data-reveal] { animation: enter-rise 0.9s var(--ease-out) calc(var(--d, 0) * 90ms) backwards; }
.js :is(.hero, .page-head) .rings path { scale: 1; opacity: 1; }
:is(.hero, .page-head) .rings path { animation: enter-ring 1.1s var(--ease-pop) backwards; }
:is(.hero, .page-head) .rings path:nth-child(2) { animation-delay: 90ms; } :is(.hero, .page-head) .rings path:nth-child(3) { animation-delay: 180ms; }
:is(.hero, .page-head) .rings path:nth-child(4) { animation-delay: 270ms; } :is(.hero, .page-head) .rings path:nth-child(5) { animation-delay: 360ms; }
.js .hero [data-pop] { scale: 1; opacity: 1; transition: none; }
.hero [data-pop] { animation: enter-pop 0.6s var(--ease-pop) calc(500ms + var(--d, 0) * 120ms) backwards; }
.js .hero .stand[data-settle] > * { opacity: 1; translate: 0 0; }
.js .hero .stand[data-settle] > :nth-child(1) { translate: 0 4%; }
.js .hero .stand[data-settle] > :nth-child(3) { translate: 0 7%; }
.hero .stand[data-settle] > * { animation: enter-settle 1s var(--ease-out) backwards; }
.hero .stand[data-settle] > :nth-child(2) { animation-delay: 120ms; } .hero .stand[data-settle] > :nth-child(3) { animation-delay: 240ms; }
/* Text and phones start at 0.01, not 0: a browser does not count a fully
   transparent element as painted, so starting at 0 would report the heading
   as appearing only when the animation ends (a worse Largest Contentful Paint). */
@keyframes enter-rise { from { opacity: 0.01; translate: 0 36px; } }
@keyframes enter-ring { from { scale: 0.55; opacity: 0; } }
@keyframes enter-pop { from { scale: 0.4; opacity: 0; } }
@keyframes enter-settle { from { opacity: 0.01; translate: 0 60px; } }

@supports (animation-timeline: view()) {
  .parallax-slow { animation: drift-slow linear both; animation-timeline: view(); animation-range: cover; }
  .hero .parallax-slow { animation-range: exit; }
  @keyframes drift-slow { from { transform: translateY(6%) rotate(-4deg); } to { transform: translateY(-6%) rotate(4deg); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .js [data-reveal], .js [data-pop], .js .rings path, .js .stand[data-settle] > * { opacity: 1 !important; translate: none; scale: 1 !important; }
}

/* ---------- Homepage hero: every game in turn ---------- */
/* the stage changes field with each slide: its ground, heading and rings cross-fade */
[data-show] { transition: background-color 0.8s var(--ease-out), color 0.6s; }
[data-show] h1 { transition: color 0.6s; }
[data-show] .rings path { transition: fill 0.8s var(--ease-out); }
.show { display: grid; grid-template-rows: 1fr auto; gap: 22px; align-items: center; }
.show__slides { display: grid; place-items: center; min-height: clamp(400px, 44vw, 600px); }
.show__slide { grid-area: 1 / 1; position: relative; display: grid; place-items: center; width: 100%; min-height: inherit; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.show__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.5s 0.15s; }
.show__slide .stand { --w: clamp(165px, 17vw, 240px); }
.show__slide .stand > .device--wide { --w: clamp(280px, 28vw, 400px); }
.show__slide .stand > * { transition: rotate 0.8s var(--ease-out), translate 0.8s var(--ease-out), scale 0.8s var(--ease-out), opacity 0.5s; }
.show__slide:not(.is-active) .stand > * { scale: 0.86; opacity: 0; }
.show__slide:not(.is-active) .stand > :nth-child(1) { translate: -30% 12%; rotate: -16deg; }
.show__slide:not(.is-active) .stand > :nth-child(3) { translate: 30% 14%; rotate: 18deg; }
.show__slide.is-active .stand > :nth-child(2) { transition-delay: 0.08s; }
.show__slide.is-active .stand > :nth-child(3) { transition-delay: 0.16s; }
.show__slide .hero__icon { width: min(280px, 55%); }
.show__tag {
  position: absolute; left: 0; bottom: 4%; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--lift);
  text-decoration: none; rotate: -3deg; transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.show__tag img { width: 48px; height: 48px; border-radius: 14px; border: 2.5px solid var(--ink); }
.show__tag b { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; line-height: 1; padding-top: 0.1em; }
.show__tag small { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.show__tag svg { width: 20px; height: 20px; }
.show__tag:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.show__slide:not(.is-active) .show__tag { translate: 0 20px; }
.show__slide .show__tag { transition: translate 0.6s var(--ease-out) 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s; }
.show__controls { position: relative; z-index: 5; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.show__tab, .show__pause {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; overflow: hidden;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.show__tab img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; filter: saturate(0.6); transition: opacity 0.2s, filter 0.2s; }
.show__tab:hover img { opacity: 1; filter: none; }
.show__tab:hover, .show__pause:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.show__tab[aria-current="true"] { transform: translateY(-4px) scale(1.08); box-shadow: 0 7px 0 var(--ink); }
.show__tab[aria-current="true"] img { opacity: 1; filter: none; }
.show__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--sun); }
.show.is-playing .show__tab[aria-current="true"]::after { animation: show-progress var(--show-ms, 5200ms) linear forwards; }
@keyframes show-progress { to { width: 100%; } }
.show__pause svg { width: 20px; height: 20px; }
.show__pause .i-play { display: none; }
.show__pause[aria-pressed="true"] .i-play { display: block; }
.show__pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 960px) { .show__tag { left: 4%; } }
@media (max-width: 560px) {
  .show__slides { min-height: 420px; }
  .show__slide .stand { --w: 40vw; }
  .show__slide .stand > :nth-child(3) { display: none; }
  .show__slide .stand:has(> .device--wide) > .device--wide { display: none; }
  .show__slide .stand:has(> .device--wide) > :nth-child(3) { display: block; }
  .show__tab, .show__pause { width: 46px; height: 46px; border-radius: 13px; }
  .show__tag { bottom: 0; }
}

/* ---------- Guide tiles: a varied wall of colour ---------- */
.gwall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.gwall > li { grid-column: span 4; display: flex; }
.gwall > li.is-wide { grid-column: span 8; }
.gwall--home > li { grid-column: span 6; }
.gtile {
  position: relative; isolation: isolate; overflow: hidden; flex: 1; display: flex; flex-direction: column; gap: 12px;
  padding: 26px 26px 28px; min-height: 260px;
  border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 7px 0 var(--ink);
  text-decoration: none; color: var(--fg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.gwall > li:nth-child(3n + 1) .gtile { rotate: -0.8deg; }
.gwall > li:nth-child(3n + 2) .gtile { rotate: 0.6deg; }
.gtile:hover { transform: translateY(-4px); box-shadow: 0 11px 0 var(--ink); }
.gtile__icon {
  position: absolute; right: -10px; bottom: -14px; z-index: -1; width: 128px; height: 128px; border-radius: 30px;
  border: 3px solid var(--ink); rotate: -12deg; opacity: 0.95; transition: rotate 0.4s var(--ease-pop), translate 0.4s var(--ease-out);
}
.gtile:hover .gtile__icon { rotate: -4deg; translate: -6px -6px; }
.gtile__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.02;
  color: var(--head); -webkit-text-stroke: 0.09em var(--head-stroke); paint-order: stroke fill; text-shadow: 0 0.06em 0 var(--head-stroke);
  padding-right: 52px; text-wrap: balance;
}
.gtile__title span { display: block; margin-top: 8px; font-family: var(--font); font-weight: 700; text-transform: none; font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; -webkit-text-stroke: 0; text-shadow: none; color: var(--fg); }
.gtile p { font-size: 1rem; color: var(--muted); max-width: 32rem; padding-right: 96px; margin-top: auto; }
.gtile--wide .gtile__title { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.gtile--wide { min-height: 300px; }
.gtile__go {
  position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform 0.3s var(--ease-pop);
}
.gtile__go svg { width: 18px; height: 18px; }
.gtile:hover .gtile__go { transform: rotate(-45deg) scale(1.08); background: var(--sun); }
@media (max-width: 1100px) { .gwall > li, .gwall > li.is-wide { grid-column: span 6; } }
@media (max-width: 700px) { .gwall > li, .gwall > li.is-wide, .gwall--home > li { grid-column: 1 / -1; } .gtile p { padding-right: 70px; } .gtile__icon { width: 96px; height: 96px; } }

/* ---------- Legal pages: contents on the left, the text wide on the right ---------- */
.legal-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-layout .prose { max-width: 50rem; }
.legal-toc {
  position: sticky; top: 112px; max-height: calc(100svh - 140px); overflow-y: auto;
  padding: 20px 18px; background: #fffbf0; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink);
}
.legal-toc__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; padding-top: 0.1em; margin-bottom: 10px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a {
  display: block; padding: 7px 10px; border-radius: 12px; font-size: 0.98rem; font-weight: 500; line-height: 1.3;
  text-decoration: none; color: #3a3f4c; transition: background-color 0.2s, color 0.2s;
}
.legal-toc a:hover { background: var(--cream-2); color: var(--ink); }
.legal-toc a[aria-current] { background: var(--ink); color: var(--cream); }
.legal h2 { scroll-margin-top: 110px; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; }
}
