/* Bunny Warriors × Bunny Gala site, 2026-11 redesign.
   The site now wears the game's own clothes: velvet plum, warm gold, voxel bunnies.
   Rules (see REDESIGN-2026-11.md):
   - Gold means "do this now". One gold action per screen; gold stays off decoration.
   - Pictures before words. Explanations hide behind "How it works" (.g-more) until asked for.
   - Materials have jobs: glass = the floating nav, lacquer = content panels, bare type = marquees. */

:root {
  /* Overrides of the old tokens so every inner page (story, roadmap, $CARROT, stickers) shifts with the home page */
  --bg: #0c0612;
  --bg-2: #160b20;
  --card: #1a0d24;
  --line: #3a2146;
  --text: #fff6ea;
  --muted: #c3aec4;
  /* Legacy tokens: the old components (share, stickers, story, menus, FAQ, secrets) all paint their accents with
     --pink and their labels with --font-pixel. Pointing them at gold and the display face restyles every one of them
     at once to match the home page. New code uses --magenta for the few deliberate pink touches. */
  --pink: #d8a444;
  --pink-2: #ffe7a3;
  --pink-dim: #3a2a12;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --font-pixel: "Readex Pro", var(--font-ui);
  --magenta: #ff4fc8;
  --magenta-2: #ff8ad9;

  /* New tokens */
  --velvet: #2a0f38;
  --plum: #4b1c5c;
  --gold: #f6c75c;
  --gold-hi: #ffe7a3;
  --gold-lo: #b67a22;
  --gold-grad: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  --lacquer: linear-gradient(180deg, #24112f 0%, #170a20 100%);
  --edge: 1px solid rgba(246, 199, 92, 0.28);
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --font-display: "Readex Pro", var(--font-ui);
  --t-big: clamp(32px, 5vw, 76px);
  --t-mega: clamp(44px, 8.5vw, 140px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  background: radial-gradient(120% 60% at 50% 0%, #2a0f38 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Nav: glass, because it floats over everything ---------- */
.nav {
  background: rgba(20, 8, 28, 0.55) !important;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(246, 199, 92, 0.12) !important;
}
.nav-links a, .nav-links .share-btn { font-family: var(--font-display); font-weight: 500; }
.nav-links a.is-current { color: var(--gold); }
.nav-mh::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); vertical-align: middle; }
.nav-cta {
  background: var(--gold-grad) !important;
  color: #3a1d00 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 22px rgba(246, 199, 92, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.15) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}
/* The hero already shows a big Play pill; the nav one appears once it scrolls away (html.g-past-hero, js/site.js) */
html.has-hero:not(.g-past-hero) .nav-cta { opacity: 0 !important; pointer-events: none; transform: translateY(-6px); }
.nav-cta { transition: opacity 0.3s, transform 0.3s; }

/* ---------- Shared bits ---------- */
.g-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-big);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.g-kicker {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--magenta-2);
  margin-bottom: 14px;
}
.g-gold, .g-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 34px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #3a1d00;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(246, 199, 92, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.5);
  transition: translate 0.25s var(--ease-out), scale 0.25s var(--ease-out), box-shadow 0.25s;
}
.g-gold:hover, .g-play:hover { translate: 0 -2px; scale: 1.03; box-shadow: 0 16px 40px rgba(246, 199, 92, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.g-gold:active, .g-play:active { scale: 0.98; }

/* "How it works": the explanation waits until someone asks for it */
.g-more { margin-top: 18px; }
.g-more > summary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; cursor: pointer; list-style: none;
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.g-more > summary::-webkit-details-marker { display: none; }
.g-more > summary::before {
  content: "?"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 12px; font-weight: 700;
}
.g-more[open] > summary { color: var(--text); }
.g-more > p { max-width: 46ch; margin-top: 6px; color: var(--muted); line-height: 1.65; font-size: 15px; animation: g-fade 0.3s var(--ease-out); }
@keyframes g-fade { from { opacity: 0; transform: translateY(-4px); } }

/* Marquee: type as a moving banner (Lando Norris / Slosh). Bare type, no panel. */
.g-marquee { overflow: hidden; padding: 6px 0; user-select: none; }
.g-marquee-track {
  display: flex; width: max-content; align-items: center; gap: 0.35em;
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-mega); line-height: 1;
  letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap;
  animation: g-marquee 38s linear infinite;
}
.g-marquee-track span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-marquee-track span:nth-of-type(even) { background: none; color: transparent; -webkit-text-stroke: 2px rgba(246, 199, 92, 0.6); }
.g-marquee-track i { font-style: normal; font-size: 0.4em; color: var(--magenta); }
.g-marquee-rev .g-marquee-track { animation-direction: reverse; }
@keyframes g-marquee { to { transform: translateX(-50%); } }

/* ---------- 1. Hero ---------- */
.g-hero {
  position: relative;
  /* The film is 16:9; on wide screens show all of it, on tall screens crop to the logo and the crew */
  height: clamp(560px, 56.25vw, 100svh);
  margin-top: calc(-1 * var(--nav-h, 72px));
  overflow: hidden; isolation: isolate;
  display: grid; align-items: end; justify-items: center;
}
.g-hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; z-index: -2; }
/* Fades the film's own "GAME START" line and floor into the page; our Play pill takes its place */
.g-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 6, 18, 0.55) 0%, rgba(12, 6, 18, 0) 18%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 6, 18, 0.85) 14%, rgba(12, 6, 18, 0) 38%);
}
.g-hero-ui { display: grid; justify-items: center; gap: 18px; padding: 0 16px clamp(64px, 9vh, 110px); }
.g-play { min-height: 64px; padding: 0 46px; font-size: 22px; }
.g-play svg { width: 22px; height: 22px; }
.g-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.g-store {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 8, 28, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 246, 234, 0.75); font-size: 14px; font-weight: 600; text-decoration: none;
}
.g-store svg { width: 18px; height: 18px; }
/* Out now: a live chip reads brighter than the "soon" ones, but stays glass (gold belongs to Play) */
a.g-store:not([data-soon]) { color: #fff6ea; border-color: rgba(255, 255, 255, 0.42); background: rgba(20, 8, 28, 0.66); transition: border-color 0.2s, background 0.2s; }
a.g-store:not([data-soon]):hover, a.g-store:not([data-soon]):focus-visible { border-color: var(--gold-hi); background: rgba(20, 8, 28, 0.82); }
/* Not out yet: a quiet "soon" tag instead of a sentence under the buttons */
.g-store[data-soon] { cursor: default; }
.g-store[data-soon]::after {
  content: attr(data-soon-label);
  position: absolute; top: -9px; inset-inline-end: -6px;
  padding: 2px 7px; border-radius: 999px; background: var(--plum); color: var(--gold-hi);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.g-scroll { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 14px; }
.g-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: g-scroll 1.8s infinite; }
@keyframes g-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- 2. Games ---------- */
.g-games { padding: clamp(40px, 8vw, 100px) 0 clamp(60px, 9vw, 120px); overflow-x: clip; } /* dealt cards fly in from off-screen; in RTL that would add page scroll */
.g-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 36px);
  max-width: 1080px; margin-top: 0; position: relative; perspective: 1200px;
}
/* A card is a room. The host stands in it and leans out over the top edge (breaking the frame).
   `transform` belongs to the scroll animation (js/motion.js deals the cards), so the resting tilt, hover lift
   and pointer depth use the separate rotate/translate/scale properties and never fight it. */
.g-card {
  position: relative; display: block; aspect-ratio: 3 / 5; margin-top: 22%;
  border-radius: var(--r-m);
  rotate: var(--tilt);
  transition: rotate 0.5s var(--ease-out), translate 0.5s var(--ease-out);
}
.g-card-room {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit; border: 2px solid rgba(246, 199, 92, 0.55);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
/* height: auto matters: the <img> carries width/height attributes, and without it the host was stretched to ~2x tall */
.g-card-host {
  position: absolute; left: 50%; bottom: 20%; width: 92%; height: auto;
  translate: calc(-50% + var(--mx, 0) * 16px) calc(var(--my, 0) * 10px);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  transition: translate 0.4s var(--ease-out), scale 0.5s var(--ease-out);
  transform-origin: 50% 100%;
}
.g-card-logo { position: absolute; left: 6%; right: 6%; bottom: 6%; width: 88%; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.g-card:hover { rotate: 0deg; translate: 0 -10px; }
.g-card:hover .g-card-host { scale: 1.07; }

/* ---------- 3. Mission Hub ---------- */
.g-mh { padding: clamp(40px, 7vw, 100px) 0; }
.g-mh-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 5vw, 72px); border-radius: var(--r-l);
  background: var(--lacquer); border: var(--edge);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.g-mh-copy .g-big { margin-bottom: 28px; }
.g-mh-art { position: relative; display: block; aspect-ratio: 1; }
.g-mh-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 199, 92, 0.35), rgba(255, 79, 200, 0.12) 50%, transparent 70%);
}
.g-mh-host { position: relative; width: 100%; height: 100%; object-fit: contain; transition: rotate 0.6s var(--ease-out), scale 0.6s var(--ease-out); }
.g-mh-art:hover .g-mh-host { rotate: -3deg; scale: 1.04; }
/* Reward chips float around the host: missions → carrots, told with pictures */
.g-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 8px;
  border-radius: 999px; background: rgba(20, 8, 28, 0.85); border: var(--edge);
  font-family: var(--font-display); font-weight: 700; color: var(--gold-hi); font-size: 15px;
  animation: g-bob 4s ease-in-out infinite;
}
.g-chip img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.g-chip.c1 { top: 10%; inset-inline-start: 0; }
.g-chip.c2 { top: 46%; inset-inline-end: -2%; animation-delay: -1.3s; }
.g-chip.c3 { bottom: 6%; inset-inline-start: 10%; animation-delay: -2.6s; }
@keyframes g-bob { 50% { transform: translateY(-10px); } }

/* ---------- 4. Community ---------- */
.g-comm { padding: clamp(40px, 7vw, 100px) 0 0; overflow: hidden; }
.g-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(20px, 3vw, 40px) auto clamp(30px, 5vw, 60px); }
.g-door {
  display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 96px;
  border-radius: var(--r-m); background: var(--lacquer); border: var(--edge);
  color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 26px);
  transition: translate 0.3s var(--ease-out), background 0.3s, color 0.3s;
}
.g-door svg { width: 34px; height: 34px; transition: transform 0.4s var(--ease-out); }
.g-door:hover { translate: 0 -4px; }
.g-door:hover svg { transform: rotate(-12deg) scale(1.15); }
.g-door.is-tg:hover { background: #229ed9; color: #fff; }
.g-door.is-x:hover { background: #fff; color: #000; }
.g-door.is-ig:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }
/* The NFT wall from the old closing section, now the floor of the community scene */
/* Old closing panel, now a tilted band of real holders' bunnies. Bunny #6500 (the peeker egg) hides in it. */
.g-wall { padding: 10px 0 40px; }
.g-wall .join-panel { height: clamp(220px, 26vw, 340px); padding: 0; border: 0; background: none; box-shadow: none; }
.g-wall .join-panel::after { background: linear-gradient(90deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%); }
.g-wall .join-wall { opacity: 0.92; grid-template-columns: repeat(auto-fill, minmax(clamp(84px, 9vw, 128px), 1fr)); -webkit-mask-image: none; mask-image: none; transform: rotate(-3deg) scale(1.1); }
.g-wall .join-wall img { border-radius: 10px; }

/* ---------- 5. Explore bento ---------- */
.g-explore { padding: clamp(60px, 8vw, 120px) 0; }
.g-bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.g-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-m);
  background: var(--lacquer); border: var(--edge); text-decoration: none; color: var(--text);
  transition: translate 0.4s var(--ease-out), border-color 0.3s;
}
.g-tile:hover { translate: 0 -4px; border-color: var(--gold); }
.t-story { grid-row: span 2; }
.t-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease-out); }
.t-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 6, 18, 0.9), transparent 55%); }
.t-story:hover img { scale: 1.06; }
.t-stickers { grid-column: span 2; }
.g-tile-sprite { position: absolute; inset-inline-end: 8%; top: 50%; translate: 0 -50%; height: 62%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); transition: transform 0.5s var(--ease-out); }
.g-tile:hover .g-tile-sprite { transform: rotate(-8deg) scale(1.12); }
.g-tile-name { position: absolute; inset-inline-start: 24px; bottom: 20px; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.02em; }
.g-tile-name::after { content: " →"; color: var(--gold); opacity: 0; transition: opacity 0.3s, margin 0.3s; }
.g-tile:hover .g-tile-name::after { opacity: 1; margin-inline-start: 6px; }
.t-roadmap { background: linear-gradient(160deg, #2a1240, #140820); }
.t-carrot { background: linear-gradient(160deg, #3b1d0c, #170a12); }
.t-stickers { background: linear-gradient(120deg, #3a1236, #170a20); }

/* ---------- Sub-page header ---------- */
.g-page-head { padding: clamp(120px, 16vw, 200px) 0 clamp(20px, 3vw, 40px); text-align: center; }
.g-page-head .g-big { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-page-art { display: block; height: clamp(72px, 9vw, 120px); width: auto; margin: 0 auto 14px; image-rendering: pixelated; animation: g-bob 4s ease-in-out infinite; }
main[data-page]:not([data-page=""]) > section { padding-top: 0; }

/* FAQ now sits quietly at the end of the home page */
#faq { padding-bottom: 60px; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .g-cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    /* A side-scrolling row clips anything above it, so leave headroom for the hosts leaning out */
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 34vw 16px 20px; margin-top: -14vw;
    scrollbar-width: none;
  }
  .g-cards::-webkit-scrollbar { display: none; }
  .g-card { scroll-snap-align: center; rotate: 0deg; margin-top: 0; }
  .g-mh-inner { grid-template-columns: 1fr; text-align: center; }
  .g-mh-art { max-width: 320px; margin: 0 auto; order: -1; }
  .g-doors { grid-template-columns: 1fr; }
  .g-door { min-height: 72px; }
  .g-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; }
  .t-story { grid-column: span 2; grid-row: auto; }
  .t-stickers { grid-column: span 2; }
  .t-roadmap .g-tile-sprite, .t-carrot .g-tile-sprite { inset-inline-end: 50%; translate: 50% 0; top: 14%; height: 48%; }
  .g-tile-name { font-size: 22px; inset-inline-start: 16px; bottom: 14px; }
  .g-play { min-height: 58px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-marquee-track, .g-chip, .g-page-art, .g-scroll span { animation: none; }
}

/* Stickers tile: three bunnies fanned out like a sticker sheet (placeholder until the Codex sticker art lands) */
.g-stickers { position: absolute; inset-inline-end: 6%; top: 50%; translate: 0 -50%; display: flex; }
.g-stickers img { width: clamp(70px, 8vw, 110px); aspect-ratio: 1; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45); margin-inline-start: -18px; transition: transform 0.4s var(--ease-out); }
.g-stickers img:nth-child(1) { rotate: -10deg; }
.g-stickers img:nth-child(2) { rotate: 4deg; translate: 0 -10px; }
.g-stickers img:nth-child(3) { rotate: 12deg; }
.g-tile:hover .g-stickers img:nth-child(1) { transform: translate(-10px, -6px); }
.g-tile:hover .g-stickers img:nth-child(3) { transform: translate(10px, -6px); }

/* Old pink action buttons (.submit) become the gold action, so every page uses one action colour */
.submit, a.submit {
  background: var(--gold-grad) !important; color: #3a1d00 !important; border: 0 !important;
  border-radius: 999px !important; box-shadow: 0 8px 24px rgba(246, 199, 92, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.18) !important;
  font-family: var(--font-display) !important; font-weight: 700 !important; text-shadow: none !important;
}

/* ---------- 2026-11-14: Codex art in place ---------- */
/* Hero: hall, props and hosts are separate layers so they can drift apart with the pointer (js/site.js) */
.g-layer { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; object-position: 50% 30%; z-index: -2; pointer-events: none;
  translate: calc(var(--px, 0) * var(--depth, 0) * 1px) calc(var(--py, 0) * var(--depth, 0) * 1px); transition: translate 0.6s var(--ease-out); }
.g-layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.g-l-bg { --depth: 6; }
.g-l-mid { --depth: 16; }
.g-l-hosts { --depth: 26; }
/* Logo sits in the calm top quarter the art left for it */
.g-hero-logo { position: absolute; top: calc(var(--nav-h, 72px) + 1vh); left: 50%; translate: -50% 0; width: clamp(220px, 26vw, 420px); height: auto;
  filter: drop-shadow(0 10px 30px rgba(255, 79, 200, 0.35)); z-index: 1; }
/* Phones: one tall scene, so the separate prop and host layers step aside */
@media (max-aspect-ratio: 4/5) {
  .g-wide-only { display: none; }
  .g-hero { height: min(100svh, 177vw); }
  .g-layer { object-position: 50% 40%; }
  .g-layer img { object-position: 50% 40%; }
  .g-hero-logo { width: 62vw; top: calc(var(--nav-h, 64px) + 2vh); }
}

/* Community: the voxel crowd stands on the section floor; bunny #6500 still hides at the edge */
.g-wall .g-crowd { height: auto; display: block; overflow: visible; }
.g-wall .g-crowd::after { content: none; }
.g-crowd-img { display: block; width: min(100%, 1600px); height: auto; margin: 0 auto; }

/* Explore: each tile is a full scene; a dark fade under the name keeps it readable on any art */
.g-tile-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease-out); }
.g-tile:hover .g-tile-art { scale: 1.05; }
.g-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(12, 6, 18, 0.85) 0%, rgba(12, 6, 18, 0) 45%); pointer-events: none; }
.t-story::after { background: linear-gradient(20deg, rgba(12, 6, 18, 0.85) 0%, rgba(12, 6, 18, 0) 45%); }
.g-tile-name { z-index: 2; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.g-bento { grid-template-rows: 300px 300px; }
.t-stickers { grid-column: span 2; }
@media (max-width: 860px) {
  .g-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 200px 220px; }
}

/* Sub-page icons: voxel art now, so no pixel scaling */
.g-page-art { image-rendering: auto; height: clamp(90px, 10vw, 128px); }

@media (prefers-reduced-motion: reduce) {
  .g-layer { translate: none !important; transition: none; }
}
/* Phones: 12 bunnies at 375px are too small to read; show the middle of the crowd larger and crop the ends */
@media (max-width: 860px) {
  .g-wall { overflow: hidden; }
  .g-crowd-img { width: 190%; max-width: none; margin-inline-start: -45%; }
}
/* Phones: the tall art's empty band is too short for nav + logo, so the scene starts lower
   and the logo gets its own strip above the hosts' heads (decoration never covers faces) */
@media (max-aspect-ratio: 4/5) {
  .g-hero { height: calc(177.8vw + var(--logo-room)); --logo-room: 64px; min-height: 0; }
  .g-layer { inset: var(--logo-room) 0 0 0; width: 100%; height: calc(100% - var(--logo-room)); translate: none; }
  .g-layer img { object-position: 50% 100%; }
  .g-hero-logo { width: 50vw; top: calc(var(--nav-h, 64px) + 6px); }
  .g-hero-ui { padding-bottom: 28px; }
}

/* ---------- Scroll motion (js/motion.js) ---------- */
/* Black veil the hero fades into at the end of its pinned push-in, so the statement rises out of the dark */
.g-hero-veil { position: absolute; inset: 0; background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; z-index: 2; }
.g-hero-logo, .g-hero-ui { will-change: transform, opacity; }
.g-layer { will-change: transform; transform-origin: 50% 45%; }

/* The one statement on the page. Words start dim and fill in as you scroll; game names fill gold. */
.g-say { padding: clamp(48px, 7vw, 110px) 0 clamp(80px, 12vw, 180px); }
.g-say-text {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  font-size: clamp(28px, 3.8vw, 60px); max-width: 1000px; text-wrap: balance;
}
.g-say-text strong { font-weight: 700; color: var(--gold); }
.g-say-text .w { display: inline-block; }
html:not(.has-motion) .g-say-text .w { opacity: 1; }

/* Warm gold wash behind the Mission Hub; js/motion.js fades it in and out with scroll */
.g-tint { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(80% 70% at 70% 40%, rgba(246, 199, 92, 0.22), rgba(120, 50, 10, 0.18) 45%, transparent 75%), linear-gradient(180deg, #2a140a, #160a12); }

/* Explore art is a little larger than its tile so the slow drift never shows an edge */
.g-tile-art { height: 116%; top: -8%; }

/* ---------- Games, round 2 (user review 11-14) ----------
   1. With the stretch bug fixed the hosts shrank back inside their rooms. Bigger and higher, so the head
      breaks out over the top edge again, like the in-game cards.
   2. While the section is pinned the whole hand must fit one screen: card size follows the viewport height,
      and this marquee is smaller than the others. */
/* max-width: none: the global img { max-width: 100% } rule was capping the host at the card width */
.g-card-host { width: 114%; max-width: none; bottom: 21%;
  /* The art is a bust cut flat at the waist: fade that cut into the room instead of showing a hard line */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 97%); mask-image: linear-gradient(180deg, #000 72%, transparent 97%); }
@media (min-width: 861px) {
  .g-games { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h, 72px) + 8px) 0 24px; }
  .g-games .g-marquee-track { font-size: clamp(44px, 6vw, 96px); }
  .g-cards { grid-template-columns: repeat(3, min(26vw, 31vh)); justify-content: center; max-width: none; gap: clamp(18px, 3vw, 48px); }
  .g-card { margin-top: 15vh; }
}

/* No hard edge where the pinned hero hands over to the statement: the hero dissolves into the page */
.g-hero { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }

/* Hidden carrot #3 on the $CARROT page header (moved from the removed roadmap) */
.g-page-head .wrap { position: relative; }
.egg-shop { position: absolute; inset-inline-end: 6%; top: 10%; }

/* Explore with three tiles: story tall on the left, $CARROT and stickers stacked on the right */
.g-bento { grid-template-columns: 1.15fr 1fr; grid-template-rows: 280px 280px; }
.t-story { grid-row: span 2; grid-column: auto; }
.t-stickers { grid-column: auto; }
@media (max-width: 860px) {
  .g-bento { grid-template-columns: 1fr; grid-template-rows: 300px 220px 220px; }
  .t-story { grid-row: auto; }
}

/* ---------- Tap targets (review P1): at least 44px to hit, without changing how the links look ---------- */
.footer-explore a, .footer-legal a, .footer-legal .ach-open, .footer-social a {
  min-height: 44px; display: inline-flex; align-items: center;
}
.footer-explore, .footer-legal { row-gap: 0; }
/* The scroll hint stays a slim mouse outline, but the hit area around it is 44x56 */
.g-scroll::before { content: ""; position: absolute; inset: -8px -10px; }

/* ---------- $CARROT page: the in-game shop's six packs ---------- */
.g-packs { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; margin: 10px 0 0; padding: 0; }
.g-pack {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 10px 16px; border-radius: var(--r-m);
  background: var(--lacquer); border: var(--edge); text-align: center;
}
.g-pack > img { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 12px; }
.g-pack-amt { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); color: var(--gold-hi); }
.g-pack-amt img { width: 18px; height: auto; }
.g-pack-price { color: var(--muted); font-weight: 600; font-size: 14px; }
/* Bonus: a magenta tab on the card's top edge, as in the game */
.g-pack-bonus { position: absolute; top: -11px; inset-inline-start: 10px; padding: 3px 9px; border-radius: 999px; background: var(--magenta); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 4px 12px rgba(255, 79, 200, 0.35); }
/* The biggest pack is the one framed in gold (the game frames it the same way) */
.g-pack.is-best { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(246, 199, 92, 0.12), 0 20px 50px rgba(246, 199, 92, 0.18); padding-top: 22px; }
.g-pack.is-best .g-pack-amt { font-size: clamp(20px, 2vw, 28px); }
.g-packs-foot { display: grid; justify-items: center; gap: 4px; margin: 36px 0 20px; }
@media (max-width: 860px) {
  .g-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}

/* ---------- Sub-page ending: next page as a giant name + its scene (Lando Norris "next" pattern) ---------- */
.g-next { padding: clamp(40px, 6vw, 90px) 0 20px; border-top: 1px solid rgba(246, 199, 92, 0.14); margin-top: 40px; }
.g-next-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.g-next-link { position: relative; display: grid; align-content: center; min-height: clamp(180px, 22vw, 300px); padding-inline-start: 4px; text-decoration: none; color: var(--text); overflow: hidden; border-radius: var(--r-l); }
.g-next-name { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: var(--t-big); line-height: 1; letter-spacing: -0.03em; transition: color 0.3s; }
.g-next-name::after { content: " →"; color: var(--gold); display: inline-block; transition: translate 0.4s var(--ease-out); }
/* The next page's scene slides in behind the name on hover, so the link previews where it goes */
.g-next-art { position: absolute; inset-inline-end: 0; top: 50%; width: min(46%, 420px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m);
  translate: 12% -50%; opacity: 0.55; transition: translate 0.6s var(--ease-out), opacity 0.4s; border: var(--edge); }
.g-next-link:hover .g-next-art { translate: 0 -50%; opacity: 1; }
.g-next-link:hover .g-next-name { color: var(--gold-hi); }
.g-next-link:hover .g-next-name::after { translate: 10px 0; }
@media (max-width: 860px) {
  .g-next-inner { grid-template-columns: 1fr; justify-items: start; }
  .g-next-art { position: relative; inset: auto; translate: none; width: 100%; opacity: 1; margin-top: 14px; top: auto; }
  .g-next-link { min-height: 0; }
}

/* ---------- Legacy components, shape pass (review P1) ----------
   The colour pass came from the tokens; this gives the old square, hard-shadowed boxes the home page's shapes:
   lacquer panels with rounded corners and soft depth, pill-shaped controls, a hairline gold edge. */
.modal, .nav-links.is-open {
  border-radius: var(--r-l) !important; border: var(--edge) !important;
  background: var(--lacquer) !important; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6) !important;
}
.modal-overlay { background: rgba(8, 3, 12, 0.72) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-close, .nav-toggle { border-radius: 999px !important; border: var(--edge) !important; background: rgba(255, 255, 255, 0.04) !important; }
.modal-badge, .sticker-tag, .share-preview-tag { border-radius: 999px !important; box-shadow: none !important; }
.share-preview, .sticker-preview { border-radius: var(--r-m) !important; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important; overflow: hidden; }
.share-preview::after, .sticker-preview::after { box-shadow: none !important; }
.share-pick-img { border-radius: 12px !important; overflow: hidden; }
/* Secondary actions: quiet gold-edged pills, so the gold-filled one stays the single "do it now" */
.share-more button, .share-more a, .sticker-app, .sticker-store-btn, .player-btn, .footer-social a {
  border-radius: 999px !important; border: var(--edge) !important; box-shadow: none !important;
}
.share-more button:hover, .sticker-app:hover, .footer-social a:hover { background: rgba(246, 199, 92, 0.1) !important; color: var(--gold-hi) !important; }
.sticker-lang span, .sticker-tab { border-radius: 999px !important; box-shadow: none !important; }
.sticker-lang input:checked + span, .sticker-tab[aria-selected="true"] { box-shadow: none !important; }
.story-tile, .story-node-cta { border-radius: 12px !important; }
.story-node-cta { box-shadow: none !important; }
.faq-item { border-radius: 0; }
#bw-toast { border-radius: 999px !important; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important; }
.nav-links.is-open > a, .nav-links.is-open > button, .nav-links.is-open .lang-toggle { border-radius: 14px !important; }
/* Phones: the next link stacks, and the clip that hides the sliding art on desktop was cutting the kicker's first letter */
@media (max-width: 860px) { .g-next-link { overflow: visible; padding-inline-start: 0; } }

/* ---------- Hosts come alive (P2 #9): hop with a squash, and their game's pieces burst out behind them ---------- */
.g-card-fx { position: absolute; left: 50%; top: 22%; width: 60%; height: 30%; translate: -50% 0; pointer-events: none; z-index: 0; }
.g-card-host { z-index: 1; }
.g-card-logo { z-index: 2; }
.g-card-fx i {
  position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 5 / 7; margin: -18% 0 0 -13%;
  display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: clamp(14px, 1.6vw, 22px);
  border-radius: 6px; opacity: 0; transform: translate(0, 0) rotate(0) scale(0.4);
}
/* Playing card: white face with a suit; red suits in red; the back is the gala plum with a gold rim */
.fx-card { background: #fffaf0; color: #1b1020; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(0, 0, 0, 0.08); }
.fx-card.red { color: #d22a3a; }
.fx-card.back { background: repeating-linear-gradient(45deg, #5b1f6e 0 5px, #4a1859 5px 10px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 2px var(--gold); }
/* Mahjong tile: ivory face with a green or red mark, thick green back edge */
.fx-tile { background: #f6efdc; box-shadow: 0 4px 0 #2f7a4a, 0 10px 16px rgba(0, 0, 0, 0.45); aspect-ratio: 4 / 5 !important; }
.fx-tile::after { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #2f7a4a; }
.fx-tile.r::after { border-color: #c8323b; background: radial-gradient(circle, #c8323b 0 30%, transparent 32%); }
.fx-tile.g::after { border-radius: 3px; width: 18%; aspect-ratio: 1 / 2.4; background: #2f7a4a; border: 0; box-shadow: 9px 0 0 #2f7a4a, -9px 0 0 #2f7a4a; }
.fx-chip { width: 22% !important; aspect-ratio: 1 !important; border-radius: 50% !important; background: radial-gradient(circle, var(--gold-hi) 0 30%, var(--gold) 31% 55%, #fff 56% 62%, var(--gold-lo) 63%); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45); }

.g-card.is-reacting .g-card-host { animation: g-host-hop 0.9s var(--ease-out); }
.g-card.is-reacting .g-card-fx i { animation: g-fx-burst 1s cubic-bezier(0.2, 0.9, 0.3, 1) var(--d) both; }
.g-card.is-small .g-card-host { animation-name: g-host-nod; }
.g-card.is-small .g-card-fx i:nth-child(n + 4) { animation: none; }
/* The hop animates only scale, rotate and bottom: GSAP keeps the host's centring (xPercent -50) inside transform,
   so a transform keyframe here would knock the host half a card sideways. */
@keyframes g-host-hop {
  0% { scale: 1; bottom: 21%; }
  18% { scale: 1.04 0.95; bottom: 21%; }
  42% { scale: 0.97 1.04; bottom: 27%; }
  70% { scale: 1.03 0.97; bottom: 21%; }
  100% { scale: 1; bottom: 21%; }
}
@keyframes g-host-nod { 0%, 100% { rotate: 0deg; bottom: 21%; } 35% { rotate: -2deg; bottom: 23%; } 65% { rotate: 1.5deg; bottom: 21%; } }
@keyframes g-fx-burst {
  0% { opacity: 0; transform: translate(0, 30%) rotate(0) scale(0.4); }
  25% { opacity: 1; }
  55% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.1), calc(var(--dy) * 0.4)) rotate(calc(var(--rot) * 1.4)) scale(0.85); }
}
@media (prefers-reduced-motion: reduce) { .g-card.is-reacting .g-card-host, .g-card.is-reacting .g-card-fx i { animation: none; } }

/* ---------- Nav: World menu (P2 #12) and the sound toggle (P2 #10) ---------- */
.nav-world { position: relative; }
.nav-world-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; font: inherit; font-family: var(--font-display); font-weight: 500; cursor: pointer; padding: 6px 0; }
.nav-world-btn .lang-caret { font-size: 10px; transition: rotate 0.25s; }
.nav-world.is-open .nav-world-btn .lang-caret { rotate: 180deg; }
.nav-world.has-current > .nav-world-btn { color: var(--gold); }
/* Desktop: a small lacquer panel with the three pages as pictures */
@media (min-width: 861px) {
  .nav-world-menu {
    position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% -6px; display: grid; grid-template-columns: repeat(3, 120px); gap: 8px;
    padding: 10px; border-radius: var(--r-m); background: var(--lacquer); border: var(--edge); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0; visibility: hidden; transition: opacity 0.2s, translate 0.25s var(--ease-out), visibility 0s 0.25s; z-index: 50;
  }
  .nav-world-menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; } /* bridge so the pointer can travel down to the panel */
  .nav-world.is-open .nav-world-menu { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity 0.2s, translate 0.25s var(--ease-out); }
}
.nav-world-menu a { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14px; transition: background 0.2s; }
.nav-world-menu a:hover, .nav-world-menu a.is-current { background: rgba(246, 199, 92, 0.1); color: var(--gold-hi); }
.nav-world-menu img { width: 64px; height: 64px; object-fit: contain; transition: scale 0.3s var(--ease-out), rotate 0.3s var(--ease-out); }
.nav-world-menu a:hover img { scale: 1.12; rotate: -6deg; }
/* Phone drawer: no dropdown, the three pages sit as picture tiles in the list */
@media (max-width: 860px) {
  .nav-world-btn { display: none; }
  .nav-world-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nav-world-menu a { border: var(--edge); background: rgba(255, 255, 255, 0.03); }
  .nav-world-menu img { width: 52px; height: 52px; }
}

.nav-sound {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; margin-inline-end: 6px;
  border-radius: 999px; border: var(--edge); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav-sound svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.nav-sound .snd-on, .sound-on .nav-sound .snd-off { display: none; }
.sound-on .nav-sound .snd-on { display: block; }
.sound-on .nav-sound { color: var(--gold-hi); border-color: var(--gold); }
.nav-sound:hover { color: var(--text); }
/* Three tiny bars dance while music plays, so the state reads without a label */
.snd-bars { position: absolute; bottom: 7px; left: 50%; translate: -50% 0; display: none; gap: 2px; align-items: end; height: 6px; }
.sound-on .snd-bars { display: flex; }
.snd-bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; animation: snd-bar 0.9s ease-in-out infinite; }
.snd-bars i:nth-child(2) { animation-delay: -0.3s; }
.snd-bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes snd-bar { 50% { height: 6px; } }
.sound-on .nav-sound svg { translate: 0 -2px; }
@media (prefers-reduced-motion: reduce) { .snd-bars i { animation: none; height: 5px; } }

/* Reaction pose (CODEX-SITE-ART.md item 7): during the full hop the host swaps to its reaction art, then back.
   Both images share the host's box and hop together. The idle art carries GSAP's inline opacity from the deal,
   hence !important. The small idle nod keeps the idle pose, so the big reaction stays a surprise. */
.g-host-react { opacity: 0; transition: opacity 0.12s; }
.g-card.is-reacting:not(.is-small) .g-host-react { opacity: 1; transition-delay: 0.08s; }
.g-card.is-reacting:not(.is-small) .g-card-host:not(.g-host-react) { opacity: 0 !important; transition: opacity 0.12s 0.08s; }
@media (prefers-reduced-motion: reduce) { .g-host-react { display: none; } }


/* Voxel #6500 (CODEX item 8). The art has empty eye whites; each .eye sits on a white (centre/radius from the
   delivery) and draws a square pupil about 45% of the white, so the gaze is visible at ~110px.
   js/fun.js sets --ex/--ey to ±100%; the pupil travels 30% of its own size, which stays inside the white. */
.join-peeker.is-voxel .eye { left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); translate: -50% -50%; background: none; }
.join-peeker.is-voxel .eye::after { inset: 27.5%; background: #14101c; border-radius: 1px; translate: calc(var(--ex, 0%) * 0.3) calc(var(--ey, 0%) * 0.3); transition: translate 0.08s linear; }

/* ---------- Bunny #6500 peeks in from behind the right edge of the screen (Explore section) ----------
   The art's paw grips its right side, so the screen edge is the wall it hides behind. At rest only the face and paw
   show; when the pointer comes near (or it is tapped) it leans further in. overflow-x: clip keeps the hidden half
   from making the page scroll sideways. */
.g-explore { position: relative; overflow-x: clip; }
.g-explore > .join-peeker {
  position: absolute; top: 4%; right: 0; z-index: 5; width: clamp(110px, 10vw, 150px);
  padding: 0; border: 0; background: none; cursor: pointer;
  translate: 34% 0; rotate: -6deg; transform-origin: 100% 60%;
  transition: translate 0.45s var(--ease-out), rotate 0.45s var(--ease-out);
}
.g-explore > .join-peeker:hover, .g-explore > .join-peeker:focus-visible, .g-explore > .join-peeker.is-near { translate: 10% 0; rotate: 0deg; }
.g-explore > .join-peeker img { filter: drop-shadow(-6px 10px 14px rgba(0, 0, 0, 0.45)); }
@media (max-width: 860px) {
  .g-explore > .join-peeker { width: 88px; top: -34px; translate: 38% 0; } /* sits above the Story tile, clear of its corner */
  .g-explore > .join-peeker.is-near { translate: 16% 0; }
}
/* While #6500 holds the right edge, the scroll-progress bunny on that edge steps aside */
html.peeker-in-view .scroll-bunny { opacity: 0; pointer-events: none; }

/* ---------- Narrow phones (≤400px, e.g. iPhone SE / 320px Androids): logo + sound + Play + menu must share one row ---------- */
@media (max-width: 400px) {
  .nav .nav-inner { width: calc(100% - 24px); }
  .nav-right { gap: 6px; }
  .nav-sound { margin-inline-end: 0; }
  .nav-cta { padding-inline: 10px; font-size: 13px; }
  .nav-inner .logo { height: 30px; }
}

/* Touch screens wide enough for the desktop bar (iPad landscape, touch laptops): give each bar item a 44px target */
@media (pointer: coarse) and (min-width: 861px) {
  .nav-links > a, .nav-links > button, .nav-world-btn, .lang-toggle { min-height: 44px; display: inline-flex; align-items: center; }
  .lang-toggle { min-width: 44px; justify-content: center; }
}
.sticker-more { min-height: 44px; padding-block: 8px; }
/* Longest translated "Play now" (id/ms "Main sekarang") needs a little more room at 320px */
@media (max-width: 360px) { .nav-cta { padding-inline: 8px; font-size: 12px; } .nav-right { gap: 5px; } }

/* Language button: on the desktop bar a bare 16px globe was easy to miss. Make it a pill with the language code. */
.lang-code { display: none; }
@media (min-width: 861px) {
  .nav-links .lang-toggle {
    gap: 6px; min-height: 36px; padding: 0 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important; border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 13px; letter-spacing: 0.04em;
  }
  .nav-links .lang-toggle:hover, .nav-links .lang.is-open .lang-toggle { border-color: var(--gold) !important; color: var(--gold-hi); background: rgba(246, 199, 92, 0.1); }
  .nav-links .lang-code { display: inline; }
  .nav-links .lang-globe { width: 18px; height: 18px; }
  .nav-links .lang-caret { font-size: 11px; }
}

/* Big screens: campaign.css zooms the whole old page from 1700px (html { zoom }). The scroll pins in js/motion.js
   measure zoomed pixels and write them back as CSS pixels, so the zoom got applied twice: at 1920×1080 the hero
   was 1355px tall, the Play button sat on the bottom edge and the store buttons fell below the fold.
   Only the home page has pins, so only there the zoom moves off <html> onto the parts that aren't pinned. */
@media (min-width: 1700px) {
  html:has(#hero) { zoom: 1 !important; }
  /* Home only: zoom everything except the two pinned sections (hero, games), which already scale with vw/vh */
  html:has(#hero) .nav, html:has(#hero) main > section:not(#hero):not(#games), html:has(#hero) .site-footer { zoom: var(--z, 1); }
  html:has(#hero) .g-hero { margin-top: calc(-1 * var(--nav-h, 72px) * var(--z, 1)); } /* the bar it slides under is zoomed now */
}
