@font-face {
  font-family: 'Baloo 2';
  src: url(/play/fonts/baloo2-latin-vi.woff2) format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  size-adjust: 110%;
  ascent-override: 82%;
  descent-override: 24%;
  line-gap-override: 0%;
}
:root {
  /* Theme tokens */
  --wall: #2f67ae; /* uiBackdrop: screen background */
  --seat: #4a80c6; /* uiRaised: raised surface on the wall */
  --panel: #fff7e8; /* uiPanel: HUD and menu panels */
  --ink: #2a2148; /* uiInk: text and icons on panels */
  --accent: #a33a5a; /* uiAccent: selected tab, badges */
  --gold: #ffc53a; /* uiPrimary: primary actions, highlights */
  --sky: #2f67ae; /* uiFocus: focus ring, info */
  --side-a: #d2452e; /* uiSideA: side A score and markers */
  --side-b: #2e5fc8; /* uiSideB: side B score and markers */
  --scrim: #2a2148b8; /* uiScrim: overlay behind dialogs */
  --trim: #2c5c9e; /* wallTrim: bars on the wall (top bar, tab bar, disabled chips) */
  --court: #a33a5a; /* courtMat: accent shadow of titles */

  /* Tints of the theme tokens: secondary text, dividers, glass over the court. */
  --glass: color-mix(in srgb, var(--panel) 50%, transparent); /* touch controls must not hide the court */
  --ink-soft: color-mix(in srgb, var(--ink) 62%, transparent); /* secondary text on --panel */
  --ink-faint: color-mix(in srgb, var(--ink) 12%, transparent); /* dividers and tracks on --panel */
  --panel-soft: color-mix(in srgb, var(--panel) 72%, transparent); /* secondary text on --wall */
  --panel-faint: color-mix(in srgb, var(--panel) 14%, transparent); /* dividers on --wall */

  /* Fixed tokens */
  --coin: #ffc53a; /* ui_gold: currency never takes the theme's primary colour */
  --gem: #4cc4ff; /* ui_sky */
  --grey-light: #d6d2cb; /* grey_light */
  --grey-mid: #8b8891; /* grey_mid */
  --good: #3e9c46; /* springy_green: a change that helps */
  --bad: #e23b3b; /* ninja_red: a change that hurts */

  /* Character signature colours */
  --student-blue: #2e6bdb;
  --courier-yellow: #f4c02e;
  --muscle-purple: #8b4fc9;
  --springy-lime: #93cf3c;
  --runner-teal: #2fb5ae;
  --ninja-red: #e23b3b;
  --uncle-khaki: #c2aa7c;
  --ribbon-coral: #f2a094; /* cheek_blush: the closest palette colour to her coral kit */
  --granny-silver: #bdb9b4; /* hair_silver */
  --gamer-sky: #4cc4ff; /* ui_sky */
  --kitty-auburn: #a3492b; /* hair_auburn */
  --office-navy: #28335e; /* navy: her skirt */
  --snow-ice: #4cc4ff; /* ui_sky: the palette's only ice blue, for her beanie and jersey */

  /* Rank tiers, Newbie to National team */
  --tier-0: #8b8891; /* grey_mid */
  --tier-1: #c2aa7c; /* uncle_khaki */
  --tier-2: #2fb5ae; /* runner_teal */
  --tier-3: #3e9c46; /* springy_green */
  --tier-4: #93cf3c; /* springy_lime */
  --tier-5: #f4c02e; /* courier_yellow */
  --tier-6: #f2873a; /* ponytail_orange */
  --tier-7: #e23b3b; /* ninja_red */
  --tier-8: #8b4fc9; /* muscle_purple */

  /* Sizing: touch targets are at least 44 px, primary actions 56 px. */
  --tap: 44px;
  --tap-primary: 56px;
  --pad: 12px;
  --gap: 8px;
  --radius: 14px;
  --fs-s: 12px;
  --fs-m: 14px;
  --fs-l: 18px;

  /* Hue turns of the kit skins for the current theme (see HUE_VARS in theme.ts); Candy Sky needs none. */
  --hue-raised: 0deg;
  --hue-accent: 0deg;
  --hue-primary: 0deg;

  /* UI kit art (art/ui/kit_v1, built into public/ui by tools/ui-assets.py) */
  --src-primary: url(/play/ui/skins/btn_primary.webp);
  --src-secondary: url(/play/ui/skins/btn_secondary.webp);
  --src-on: url(/play/ui/skins/chip_on.webp);
  --src-off: url(/play/ui/skins/chip_off.webp);
  --src-toast: url(/play/ui/skins/toast.webp);
  --src-counter: url(/play/ui/skins/counter.webp);
  --src-top: url(/play/ui/skins/top_bar.webp);
  --src-tabbar: url(/play/ui/skins/tab_bar.webp);
  --src-card: url(/play/ui/skins/card.webp);
  --src-modal: url(/play/ui/skins/modal.webp);
  --src-gauge: url(/play/ui/skins/hud_gauge.webp);
  --src-ribbon: url(/play/ui/skins/call_ribbon.webp);
  /* A theme other than Candy Sky points these two at its own painting (ui/backdrop.ts). */
  --bg-home: var(--bg-home-960, url(/play/ui/bg/home_960.webp));
  --bg-loadout: url(/play/ui/bg/loadout_960.webp);
  --bg-net: url(/play/ui/bg/net_960.webp);

  /* Whole-UI scale, set by ui/scale.ts. Every UI root carries `zoom: var(--ui)`; inside one, viewport units are
     multiplied by it too, so layouts read the screen size through these two instead of vw / vh. */
  --ui: 1;
  --vw: calc(1vw / var(--ui));
  --vh: calc(1dvh / var(--ui));

  --font-ui: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--font-ui);
}
/*
 * The website's look. The build puts the game's own font face and :root tokens (src/style.css) in front of this file;
 * the website paints its surfaces with its own pastel tokens below (app icon B and the logo), so the game's themes never
 * change the site and the site never changes the game. Only the gold primary button keeps the game's 9-slice skin.
 */

:root {
  /* Pastel pink. Text on every surface is plum: white on these pastels is under 1.6:1. */
  --site-bg1: #fff3f7; /* page background, top */
  --site-bg2: #fde3ee; /* page background, bottom */
  --site-bar: #ffd6e5; /* header and footer; also the theme-color meta (build.ts) */
  --site-hero1: #ffc9dc; /* big panels: pastel pink to... */
  --site-hero2: #e3d2f7; /* ...pastel lilac */
  --site-card: #fffafc; /* cards and reading panels */
  --site-ink: #3f2c4e; /* plum: text and outlines, 8.7:1 or more on every surface above */
  --site-ink-soft: #6b5a7c; /* secondary text: 4.7:1 on the bar, 6.0:1 on cards; never on the hero gradient */
  --site-pink: #f48fb6; /* accent: active nav, open menu button, hovers; plum text on it is 5.6:1 */
  --site-blue: #7fb3ea; /* info tags and the focus ring (racket blue) */
  --site-pink-faint: color-mix(in srgb, var(--site-pink) 22%, transparent); /* hover wash, tracks, quiet boxes */
  --site-line: color-mix(in srgb, var(--site-pink) 45%, transparent); /* dividers and card drop shadows */
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px; /* the sticky header's bar plus a little air */
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--site-bg1), var(--site-bg2));
  color: var(--site-ink);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: break-word;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--site-blue);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--site-ink);
  font-weight: 800;
}
.skip:focus {
  top: 12px;
}

/* ---- Buttons and cards ------------------------------------------------------------------- */
/* The kit's blue button and cream card skins clash with the pink page, so those are drawn in CSS (plum outline, card
   fill); the gold primary keeps its 9-slice skin, which already has the logo's plum outline. */
.btn,
.sk-card {
  position: relative;
  isolation: isolate;
}
.btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 0 solid transparent;
  border-image-source: var(--src);
  border-image-slice: var(--slice) fill;
  border-image-width: var(--bw);
  border-image-repeat: stretch;
  pointer-events: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 24px;
  border: 3px solid var(--site-ink);
  border-radius: 16px;
  background: var(--site-card);
  box-shadow: 0 4px 0 var(--site-ink);
  color: var(--site-ink);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: color-mix(in srgb, var(--site-pink) 22%, var(--site-card));
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--site-ink);
}
.btn img {
  flex: none;
}
.btn.primary {
  --src: var(--src-primary);
  --k: 0.58;
  --slice: 47 58 47 58;
  --bw: calc(47px * var(--k)) calc(58px * var(--k));
  min-height: var(--tap-primary);
  padding: 0 32px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--site-ink);
  font-size: 20px;
}
.btn.primary:active {
  transform: none;
}
.btn.primary.small {
  --k: 0.48;
  min-height: 48px;
  padding: 0 22px;
  font-size: 17px;
}
.btn.big {
  --k: 0.66;
  min-height: 64px;
  padding: 0 40px;
  font-size: 23px;
}
.btn.primary:hover::before {
  filter: brightness(1.06);
}
.btn.primary:active::before {
  filter: brightness(0.9);
}
.sk-card {
  border: 3px solid var(--site-ink);
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 6px 0 var(--site-line);
  color: var(--site-ink);
}

/* ---- Header ------------------------------------------------------------------------------ */
/* A roomy bar with the logo as a tilted sticker hanging over its lower edge, the way game sites carry their brand.
   The bar keeps one height in every state, so nothing below it ever moves: once the page scrolls, site.js sets
   .stuck (an IntersectionObserver on .top-sentinel) and the sticker tucks into the bar with transforms only.
   Hierarchy: quiet links, outlined Support, the gold Play last and largest. */
.top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 32px;
  pointer-events: none;
}
.top {
  --bar-h: 76px;
  --logo-h: 112px;
  --logo-top: 6px;
  --tuck: 0.62; /* the sticker's scale once tucked into the bar */
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--site-bar);
  border-bottom: 3px solid var(--site-ink);
  box-shadow: 0 4px 0 var(--site-line);
}
.top-in {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--bar-h);
  padding: 0 20px;
}
/* The negative bottom margin lets the sticker hang below the bar without making the bar taller. */
.brand {
  flex: none;
  align-self: flex-start;
  margin: var(--logo-top) 16px calc(var(--bar-h) - var(--logo-h) - var(--logo-top)) -6px;
  border-radius: 18px;
  transform-origin: 0 0;
  transition:
    translate 0.25s ease,
    scale 0.25s ease,
    opacity 0.2s ease,
    visibility 0.2s;
}
.brand img {
  display: block;
  width: auto;
  height: var(--logo-h);
  rotate: -4deg;
  filter: drop-shadow(0 4px 0 color-mix(in srgb, var(--site-ink) 35%, transparent));
  transition:
    rotate 0.2s ease,
    scale 0.2s ease;
}
/* Tucked while scrolled, and while the menu is open so its panel never covers the sticker. */
.top.stuck .brand,
.top:has(.menu[open]) .brand {
  translate: 0 calc((var(--bar-h) - var(--logo-h) * var(--tuck)) / 2 - var(--logo-top));
  scale: var(--tuck);
}
/* Home: the hero carries the big logo right below, so the bar's sticker waits until that logo has gone under the bar
   (site.js watches it). Without script the sticker simply stays. */
@media (scripting: enabled) {
  .top.handoff:not(.stuck) .brand {
    visibility: hidden;
    opacity: 0;
    scale: calc(var(--tuck) * 0.6);
  }
}
@media (hover: hover) {
  .brand:hover img {
    rotate: -1deg;
    scale: 1.05;
  }
}
.nav {
  margin-left: auto;
}
.nav ul,
.menu-list ul,
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav ul {
  display: flex;
  gap: 2px;
}
.nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--site-ink-soft);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover {
  background: var(--site-pink-faint);
  color: var(--site-ink);
}
.nav a[aria-current='page'] {
  color: var(--site-ink);
  font-weight: 800;
}
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 4px;
  border-radius: 2px;
  background: var(--site-pink);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 8px;
  border-radius: 999px;
  color: var(--site-ink);
  font-weight: 700;
  text-decoration: none;
}
.lang img {
  width: 26px;
  height: 26px;
}
.lang:hover {
  background: var(--site-pink-faint);
}
.top .support-btn {
  gap: 6px;
  min-height: 46px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--site-ink);
  font-size: 16px;
}
.top .btn.primary {
  --k: 0.52;
  min-height: 54px;
  padding: 0 28px;
  font-size: 19px;
}
.play [data-play-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22ch;
}
.play .who {
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border: 2px solid var(--site-ink);
  border-radius: 50%;
  background: var(--site-card);
}
.btn.big .who {
  width: 46px;
  height: 46px;
}
.menu {
  display: none;
}
.menu summary {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--site-ink);
  border-radius: 14px;
  background: var(--site-card);
  box-shadow: 0 3px 0 var(--site-ink);
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary:hover {
  background: color-mix(in srgb, var(--site-pink) 22%, var(--site-card));
}
.menu[open] summary {
  background: var(--site-pink);
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--site-ink);
}
.burger {
  position: relative;
}
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger::before {
  top: -7px;
}
.burger::after {
  top: 7px;
}
.menu[open] .burger {
  background: transparent;
}
.menu[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}
.menu[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}
/* Anchored to the bar (.top-in), not the button, so on a phone it spans the screen less the gutters. */
.menu-list {
  position: absolute;
  right: 12px;
  top: calc(100% + 12px);
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--bar-h) - 28px);
  overflow-y: auto;
  padding: 10px;
  border: 3px solid var(--site-ink);
  border-radius: 22px;
  background: var(--site-card);
  color: var(--site-ink);
  box-shadow: 0 6px 0 var(--site-line);
}
.menu-list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: 12px;
  color: var(--site-ink);
  text-decoration: none;
}
.menu-main a {
  font-size: 18px;
  font-weight: 800;
}
/* The info pages are the quieter half of the menu. */
.menu-more {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 2px solid var(--site-line);
}
.menu-more a {
  color: var(--site-ink-soft);
  font-size: 15px;
  font-weight: 700;
}
.menu-list a:hover {
  background: var(--site-pink-faint);
  color: var(--site-ink);
}
.menu-list a[aria-current='page'] {
  background: var(--site-pink);
  color: var(--site-ink);
}
.menu-list .lang {
  margin-top: 6px;
  border-top: 2px solid var(--site-line);
  border-radius: 0 0 12px 12px;
  gap: 8px;
  font-weight: 800;
}
/* Phones, and screens just wide enough for the full nav: Support goes icon-only (its label stays in aria-label). */
@media (max-width: 639px), (min-width: 1024px) and (max-width: 1199px) {
  .support-btn span {
    display: none;
  }
  .top .support-btn {
    width: 46px;
    padding: 0;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav a {
    padding: 8px 10px;
  }
  .nav a[aria-current='page']::after {
    left: 10px;
    right: 10px;
  }
}
@media (max-width: 1023px) {
  .top {
    --bar-h: 66px;
    --logo-h: 92px;
    --tuck: 0.66;
  }
  .nav,
  .wide-only {
    display: none;
  }
  .menu {
    display: block;
  }
  .top .support-btn {
    margin-left: auto;
  }
  .top .btn.primary {
    --k: 0.48;
    min-height: 50px;
    padding: 0 22px;
    font-size: 17px;
  }
}
@media (max-width: 639px) {
  .top {
    --bar-h: 62px;
    --logo-h: 78px;
    --logo-top: 5px;
    --tuck: 0.7;
  }
  .top-in {
    gap: 6px;
    padding: 0 12px;
  }
  .brand {
    margin-right: 4px;
  }
  .top .btn.primary {
    min-height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }
}
@media (max-width: 420px) {
  .top .play [data-play-label] {
    max-width: 8ch;
  }
}
@media (max-width: 374px) {
  .top {
    --logo-h: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand,
  .brand img {
    transition: none;
  }
}

/* ---- Home: hero ----------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-in {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 16px 36px;
}
.hero-logo {
  display: block;
  width: min(300px, 72vw);
  margin: -64px 0 4px -6px;
  filter: drop-shadow(0 4px 0 color-mix(in srgb, var(--site-ink) 35%, transparent));
}
.kicker {
  display: inline-block;
  justify-self: start;
  align-self: flex-start;
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--site-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(30px, 6.4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  text-shadow: 0 2px 0 var(--site-card);
}
.hero .lead {
  max-width: min(34em, 560px);
  text-shadow: 0 0 6px var(--site-bg1);
  margin: 0 0 22px;
  font-size: 19px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cta .btn.ghost {
  min-height: var(--tap-primary);
  padding: 0 28px;
  font-size: 18px;
}
/* "How to play" is a plain link so the hero keeps at most two buttons (Play, and CrazyGames when it is set). */
.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 6px;
  color: var(--site-ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration-color: var(--site-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.cta-link:hover {
  text-decoration-thickness: 3px;
}
.note {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
}
/* Wide or landscape screens (800x450 included) lay the words over the scene so the first screen holds the Play button. */
@media (min-width: 900px), (min-width: 640px) and (orientation: landscape) {
  .hero {
    /* The words' column (h1 and lead), so the wash behind them follows the text rather than a share of the width:
       plum on the washed scene stays at 6:1 or more wherever the text lands. */
    --hero-col: 560px;
    --hero-edge: calc(max(0px, 50% - 600px) + 24px + var(--hero-col));
    min-height: min(86vh, 760px);
    display: flex;
  }
  .hero-art {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    object-position: 68% 40%;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, transparent 78%, var(--site-bg1) 100%),
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--site-bg1) 94%, transparent) 0,
        color-mix(in srgb, var(--site-bg1) 90%, transparent) calc(var(--hero-edge) + 16px),
        transparent calc(var(--hero-edge) + 220px)
      );
  }
  .hero-in {
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 24px 64px;
  }
  .hero-in > * {
    max-width: 560px;
  }
  /* The button row may run past the words' column: Play, CrazyGames and "How to play" stay on one line. */
  .hero-in > .cta {
    max-width: 720px;
  }
  .hero-logo {
    width: 340px;
    margin: 0 0 8px -8px;
  }
}
@media (min-width: 640px) and (max-height: 600px) and (orientation: landscape) {
  .hero {
    --hero-col: 520px;
  }
  .hero-in {
    padding: 12px 24px 24px;
  }
  .hero-in > * {
    max-width: 420px;
  }
  /* Play and "Play on CrazyGames" share the first row, so both stay in the first screen. */
  .hero-in > .cta {
    max-width: 640px;
  }
  .btn.big {
    min-height: 56px;
    padding: 0 30px;
    font-size: 20px;
  }
  .cta .btn.ghost {
    min-height: 48px;
    padding: 0 20px;
    font-size: 16px;
  }
  .hero-logo {
    width: 150px;
    margin-bottom: 4px;
  }
  .hero h1 {
    margin-bottom: 6px;
    font-size: 27px;
  }
  .hero .lead {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.45;
  }
  .note {
    display: none;
  }
}
@media (max-width: 899px) and (orientation: portrait), (max-width: 639px) {
  .hero-art {
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
}
/* Phones: the buttons stack, so they are a little lower and closer, keeping Play and CrazyGames in the first screen. */
@media (max-width: 639px) {
  .hero .lead {
    margin-bottom: 16px;
    font-size: 17px;
  }
  .cta {
    gap: 10px;
  }
  .btn.big {
    min-height: 56px;
  }
  .cta .btn.ghost {
    min-height: 48px;
  }
}

/* ---- Home: sections ------------------------------------------------------------------------ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px;
}
.section > h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 2px 0 var(--site-card);
}
.section > p {
  max-width: 44em;
  margin: 0 0 18px;
  font-size: 18px;
}
.band,
.band-dark {
  background: linear-gradient(135deg, var(--site-hero1), var(--site-hero2));
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-item {
  padding: 22px 22px 24px;
}
.card-item h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  line-height: 1.2;
  color: var(--site-ink);
}
.card-item p {
  margin: 0;
}
@media (max-width: 599px) {
  .card-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 18px 18px 20px;
  }
  .card-item img {
    grid-row: span 2;
    width: 52px;
    height: 52px;
  }
  .card-item h3 {
    margin-top: 2px;
  }
}
.card-item a {
  color: var(--site-ink);
  text-decoration: none;
}
.card-item a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card-item:hover {
  background: color-mix(in srgb, var(--site-pink) 10%, var(--site-card));
}
.cast-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cast-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--site-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.cast-strip img,
.cast-card .portrait {
  display: block;
  border-radius: 50%;
  border: 4px solid var(--ring);
  outline: 3px solid var(--site-ink);
  background: var(--site-card);
}
.cast-strip img {
  width: 80px;
  height: 80px;
}
@media (min-width: 480px) {
  .cast-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 760px) {
  .cast-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}
.cast-strip a:hover img {
  transform: translateY(-3px);
}
.devices {
  display: grid;
  gap: 20px;
  align-items: center;
}
.device-art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 20px;
  border: 3px solid var(--site-ink);
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 6px 0 var(--site-line);
}
.device-art img {
  max-width: 42%;
}
@media (min-width: 860px) {
  .devices {
    grid-template-columns: 1.2fr 1fr;
  }
}
.news-card {
  display: block;
  max-width: 760px;
  padding: 22px 24px;
  text-decoration: none;
}
.news-card h3 {
  margin: 4px 0 6px;
  color: var(--site-ink);
  font-size: 22px;
  line-height: 1.2;
}
.news-card p {
  margin: 0;
}
.date {
  color: var(--site-ink-soft);
  font-size: 15px;
  font-weight: 700;
}

/* ---- Info pages: art band + panel --------------------------------------------------------- */
.page-art {
  position: relative;
  height: 170px;
  overflow: hidden;
}
.page-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
/* Where each cover scene's characters sit, so a short band shows faces rather than ceiling. */
.art-dive img {
  object-position: center 22%;
}
.art-cheer img {
  object-position: center 66%;
}
.page-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--site-bg1) 100%);
}
.panel {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: -64px 12px 36px;
  border: 3px solid var(--site-ink);
  border-radius: 22px;
  background: var(--site-card);
  color: var(--site-ink);
  box-shadow: 0 6px 0 var(--site-line);
}
.panel.wide {
  max-width: 1120px;
}
@media (min-width: 904px) {
  .page-art {
    height: 280px;
  }
  .panel {
    margin: -110px auto 48px;
  }
}
@media (min-width: 904px) and (max-width: 1143px) {
  .panel.wide {
    margin-left: 12px;
    margin-right: 12px;
  }
}
.panel-head {
  padding: 18px 22px 16px;
  border-bottom: 3px solid var(--site-ink);
  border-radius: 19px 19px 0 0;
  background: linear-gradient(135deg, var(--site-hero1), var(--site-hero2));
  color: var(--site-ink);
  box-shadow: inset 0 5px 0 color-mix(in srgb, var(--site-card) 45%, transparent);
}
.panel-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12;
  font-weight: 800;
}
.panel-head p {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 600;
}
.panel-body {
  padding: 22px 22px 30px;
}
@media (min-width: 640px) {
  .panel-head {
    padding: 22px 34px 20px;
  }
  .panel-body {
    padding: 28px 34px 38px;
  }
}
.panel :focus-visible {
  outline-color: var(--site-blue);
}
.panel a {
  color: var(--site-ink);
  font-weight: 700;
  text-decoration-color: var(--site-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.panel a:not(.btn):hover {
  background: var(--site-pink-faint);
  text-decoration-thickness: 3px;
}
.panel a.btn {
  color: var(--site-ink);
}

/* Long text */
.prose h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 10px;
  color: var(--site-ink);
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 8px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
}
.prose h4 {
  margin: 18px 0 6px;
  font-size: 18px;
}
.h-icon {
  flex: none;
  width: 40px;
  height: 40px;
}
.prose p {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.prose li {
  margin: 0 0 8px;
}
.prose li::marker {
  color: var(--site-ink);
  font-weight: 800;
}
/* Bullets are decoration, so they may take the pink; list numbers are text and stay plum. */
.prose ul > li::marker {
  color: var(--site-pink);
}
.prose strong {
  font-weight: 800;
}
.tip {
  margin: 18px 0;
  padding: 14px 18px;
  border: 2px solid var(--site-ink);
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 26%, var(--site-card));
}
.tip p {
  margin: 0;
}
.toc {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--site-pink-faint);
}
.toc p {
  margin: 0 0 8px;
  font-weight: 800;
}
.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li {
  margin: 0;
}
.panel .toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 2px 14px;
  border: 2px solid var(--site-ink);
  border-radius: 999px;
  background: var(--site-card);
  color: var(--site-ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.panel .toc a:hover {
  background: var(--site-pink);
}
.stamp {
  margin-top: 26px;
  color: var(--site-ink-soft);
  font-size: 15px;
}

/* Tables */
.table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
}
th,
td {
  padding: 9px 12px;
  border-bottom: 2px solid var(--site-line);
  text-align: left;
  vertical-align: middle;
}
thead th {
  border-bottom: 0;
  background: var(--site-ink);
  color: var(--site-card);
  font-weight: 800;
}
thead th:first-child {
  border-radius: 12px 0 0 12px;
}
thead th:last-child {
  border-radius: 0 12px 12px 0;
}
tbody th {
  font-weight: 800;
}

/* Key tables */
.action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.action img {
  width: 32px;
  height: 32px;
}
.keys {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.or {
  color: var(--site-ink-soft);
  font-size: 13px;
  font-weight: 700;
}
kbd.cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  height: 34px;
  padding: 0 10px 3px;
  border: 0 solid transparent;
  border-image: url(/play/ui/keys/key_blank.webp) 47 37 47 37 fill / 17px 13px stretch;
  color: var(--site-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.key-art {
  position: relative;
  display: inline-flex;
}
.key-art img {
  display: block;
}
.key-art .badge {
  position: absolute;
  right: -5px;
  bottom: -4px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--site-ink);
  color: var(--site-card);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}
@media (max-width: 639px) {
  .controls thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .controls table,
  .controls tbody,
  .controls tr,
  .controls th,
  .controls td {
    display: block;
  }
  .controls tr {
    padding: 10px 0;
    border-bottom: 2px solid var(--site-line);
  }
  .controls th,
  .controls td {
    padding: 3px 0;
    border: 0;
  }
  .controls td {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 8px;
  }
  .controls td::before {
    content: attr(data-label);
    color: var(--site-ink-soft);
    font-size: 14px;
    font-weight: 700;
  }
  .controls.telex td {
    grid-template-columns: 1fr;
  }
  .controls.telex td::before {
    display: none;
  }
}

/* The cast */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin: 8px 0 28px;
}
.cast-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 14px;
  align-content: start;
  padding: 20px;
  scroll-margin-top: 90px;
}
.cast-card .portrait {
  width: 96px;
  height: 96px;
}
.cast-head {
  align-self: center;
}
.prose .cast-head h2 {
  margin: 0;
  color: var(--site-ink);
  font-size: 22px;
  line-height: 1.15;
}
.focus {
  margin: 2px 0 4px;
  color: var(--site-ink);
  font-weight: 800;
}
.pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.starter {
  background: var(--gold);
  color: var(--site-ink);
}
.limited {
  background: var(--site-blue);
  color: var(--site-ink);
}
.bio {
  grid-column: 1 / -1;
  margin: 10px 0 8px;
  font-size: 16px;
}
.stats {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats li {
  display: grid;
  grid-template-columns: 9.5em 1fr 1.6em;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.stat-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stat-name img {
  width: 24px;
  height: 24px;
}
.meter {
  position: relative;
  height: 14px;
  border: 2px solid var(--site-ink);
  border-radius: 999px;
  background: var(--site-pink-faint);
  overflow: hidden;
}
.meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--fill);
}
.stat-value {
  font-weight: 800;
  text-align: right;
}
@media (max-width: 479px) {
  .panel {
    margin-left: 8px;
    margin-right: 8px;
  }
  .panel-body {
    padding: 18px 16px 26px;
  }
  .cast-card {
    grid-template-columns: 80px 1fr;
    padding: 18px 16px;
  }
  .cast-card .portrait {
    width: 80px;
    height: 80px;
  }
  .stats li {
    grid-template-columns: 7.4em 1fr 1.2em;
    gap: 6px;
  }
  .gear-specs div {
    grid-template-columns: 7.2em 1fr;
  }
  .prose table {
    font-size: 14px;
  }
  .prose tbody th[scope='row'] {
    min-width: 7.2em;
  }
  .prose th,
  .prose td {
    padding: 8px 6px;
  }
}

/* The gear catalogue (cast page, [[gear rackets]] and [[gear shoes]]) */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}
.gear-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 12px;
  align-content: start;
  padding: 16px 18px;
  scroll-margin-top: 90px;
}
.gear-icon {
  width: 64px;
  height: 64px;
}
.gear-head {
  align-self: center;
}
.prose .gear-head h4 {
  margin: 0 0 2px;
  color: var(--site-ink);
  font-size: 20px;
  line-height: 1.15;
}
.new {
  background: var(--site-pink);
  color: var(--site-ink);
}
.gear-desc {
  grid-column: 1 / -1;
  margin: 8px 0 6px;
  font-size: 15px;
}
.gear-specs {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 14px;
}
.gear-specs div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 8px;
}
.gear-specs dt {
  color: var(--site-ink-soft);
  font-weight: 700;
}
.gear-specs dd {
  margin: 0;
  font-weight: 800;
}
.gear-specs .nowrap {
  white-space: nowrap;
}
/* .prose sets list padding and item margins; the bars line up with the card's text instead. */
.prose .traits {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .traits li {
  margin: 0;
  display: grid;
  grid-template-columns: 4.5em 1fr 1.8em;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
/* A track from -1 to +2 with its zero marked; the fill runs from zero to the value, blue above and pink below. */
.trait {
  position: relative;
  height: 14px;
  border: 2px solid var(--site-ink);
  border-radius: 999px;
  background: var(--site-pink-faint);
  overflow: hidden;
}
.trait::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--zero);
  width: 2px;
  margin-left: -1px;
  background: var(--site-ink);
}
.trait i {
  position: absolute;
  top: 0;
  bottom: 0;
}
.trait .plus {
  background: var(--site-blue);
}
.trait .minus {
  background: var(--site-pink);
}
.trait-value {
  font-weight: 800;
  text-align: right;
}

/* Badges (ranks, career) */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 14px 6px;
  margin: 8px 0 22px;
  padding: 16px 12px;
  border-radius: 16px;
  background: var(--site-pink-faint);
  list-style: none;
}
.badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.badges img {
  width: 56px;
  height: 56px;
}

/* Donate and install popups: a native <dialog> in the panel's frame. Its content fills the box so a click on the
   dimmed area (the dialog element itself) can close it; a short landscape screen lays the QR beside the words. */
.support-dialog,
.install-dialog {
  width: min(92vw, 440px);
  max-width: none;
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 3px solid var(--site-ink);
  border-radius: 22px;
  background: var(--site-card);
  color: var(--site-ink);
  box-shadow: 0 6px 0 var(--site-line);
}
.support-dialog::backdrop,
.install-dialog::backdrop {
  background: color-mix(in srgb, var(--site-ink) 62%, transparent);
}
.support-dialog :focus-visible,
.install-dialog :focus-visible {
  outline-color: var(--site-blue);
}
body:has(.support-dialog[open]),
body:has(.install-dialog[open]) {
  overflow: hidden;
}
.sd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-bottom: 3px solid var(--site-ink);
  background: linear-gradient(135deg, var(--site-hero1), var(--site-hero2));
  color: var(--site-ink);
  box-shadow: inset 0 5px 0 color-mix(in srgb, var(--site-card) 45%, transparent);
}
.sd-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}
.sd-head form {
  margin: 0;
}
.sd-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 3px solid var(--site-ink);
  border-radius: 14px;
  background: var(--site-card);
  cursor: pointer;
}
.sd-close:hover {
  background: var(--site-pink);
}
.sd-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 24px;
}
/* A paragraph, not a one-liner: left-aligned reads easier; the tip button stays centred under it. */
.sd-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-text p {
  margin: 0;
  font-weight: 600;
}
.sd-text .btn {
  align-self: center;
}
/* A phone in portrait: a smaller QR keeps the whole popup on a 360x780 screen without scrolling. */
@media (max-width: 479px) {
  .sd-body {
    gap: 12px;
    padding: 14px 16px 18px;
  }
  .sd-body .qr {
    padding: 10px;
  }
  .sd-body .qr img {
    width: 196px;
    height: 196px;
  }
}
.sd-body a.btn {
  color: var(--site-ink);
}
@media (max-height: 560px) and (min-width: 560px) {
  .support-dialog {
    width: min(92vw, 620px);
  }
  .sd-body {
    flex-direction: row;
    gap: 20px;
    padding: 14px 20px 16px;
  }
  .sd-text .btn {
    align-self: flex-start;
  }
  .sd-body .qr {
    flex: none;
    padding: 10px;
  }
  .sd-body .qr img {
    width: 176px;
    height: 176px;
  }
}

/* Support, credits, contact */
.support {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}
@media (min-width: 640px) {
  .support {
    grid-template-columns: auto 1fr;
  }
  .home-support .support {
    grid-template-columns: auto minmax(0, 40em);
    justify-content: center;
  }
}
.qr {
  justify-self: center;
  margin: 0;
  padding: 14px;
}
.qr img {
  display: block;
  width: 232px;
  height: 232px;
  border-radius: 8px;
}
.support-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.support-side p {
  margin: 0;
}
/* "No gift is fine too": smaller and softer than the ask above it (6.0:1 on cards, 5.2:1 on the page). */
.support-aside {
  color: var(--site-ink-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.support-side h2 {
  margin: 0;
  color: var(--site-ink);
  font-size: 26px;
}
.home-support {
  padding-top: 8px;
}
/* A card as wide as the page column, like the sections above it; its QR and words sit centred inside, the words
   kept to a readable line length. */
.home-support .support {
  margin: 0;
  padding: 20px;
  border: 3px solid var(--site-ink);
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 6px 0 var(--site-line);
  font-weight: 600;
}
.credits-hero,
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 26px;
  text-align: center;
}
.contact-card {
  padding: 24px 18px 28px;
}
.contact-card .btn {
  max-width: 100%;
}
@media (max-width: 420px) {
  /* The address is long; keep the button inside the card on a phone. */
  .contact-card .btn.primary {
    padding: 0 14px;
    font-size: 17px;
  }
}
.contact-label {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}
.contact-subject {
  margin: 10px 0 0;
  color: var(--site-ink-soft);
  font-size: 15px;
  font-weight: 700;
}

/* Advertise page: picture sizes stay on one line (the table scrolls inside its frame on a phone if it must). */
td.nowrap {
  white-space: nowrap;
}
/* Advertise page: in-game pictures of the boards, two to a row where there is room. */
.shots {
  display: grid;
  gap: 16px;
  margin: 0 0 26px;
}
@media (min-width: 720px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }
}
.shot {
  margin: 0;
  padding: 8px 8px 10px;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.shot figcaption {
  margin-top: 8px;
  color: var(--site-ink-soft);
  font-size: 15px;
  font-weight: 700;
}
.credits-hero .label {
  margin: 0;
  color: var(--site-ink-soft);
}
.credits-hero .author {
  margin: 0 0 8px;
  color: var(--site-ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}
.thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 800;
}
.post-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-list .news-card {
  max-width: none;
}

/* ---- Footer ---------------------------------------------------------------------------- */
.foot {
  background: var(--site-bar);
  color: var(--site-ink);
  font-size: 16px;
}
.foot-in {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 36px 16px 40px;
}
@media (min-width: 760px) {
  .foot-in {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot-brand img {
  display: block;
  width: 150px;
}
.foot-brand p {
  margin: 8px 0 14px;
}
.foot h2 {
  margin: 0 0 8px;
  color: var(--site-ink-soft);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--site-ink);
  font-weight: 700;
}
/* The bottom line: copyright on the left, the other language on the right, under a thin divider. */
.foot-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 16px 20px;
  border-top: 2px solid var(--site-line);
}
.foot .lang {
  padding: 0;
}
.copy {
  margin: 0;
  color: var(--site-ink-soft);
  font-size: 14px;
}

/* ---- 404 --------------------------------------------------------------------------------- */
.lost {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Anonymous counts: the light ask and the privacy page's switch (site/analytics.js) ----------------------- */
/* Floats in the bottom-right corner (the hero's Play buttons are on the left, the key art on the right), so it moves
   nothing on the page; small enough to leave the content readable. */
.consent {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  width: min(320px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 18px;
  animation: consent-pop 0.3s ease-out;
}
.consent-ask {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.consent-ask img {
  flex: none;
}
.consent-ask small {
  display: block;
  margin-top: 2px;
  color: var(--site-ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.consent-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.consent-acts .btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
}
.consent-yes {
  background: var(--site-pink);
}
.consent-yes:hover {
  background: color-mix(in srgb, var(--site-pink) 80%, var(--site-card));
}
/* Phones: the home page's Play buttons fill the lower half of the first screen, so the card docks under the header,
   over the key art, instead. */
@media (max-width: 560px) {
  .consent {
    top: 78px;
    bottom: auto;
  }
}
@keyframes consent-pop {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent {
    animation: none;
  }
}
.consent-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--site-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.consent-switch[hidden] {
  display: none;
}
.consent-track {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border: 3px solid var(--site-ink);
  border-radius: 999px;
  background: var(--site-card);
}
.consent-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--site-ink);
  transition: transform 0.15s ease-out;
}
.consent-switch[aria-checked='true'] .consent-track {
  background: var(--site-pink);
}
.consent-switch[aria-checked='true'] .consent-track::after {
  transform: translateX(20px);
}

/* ---- Install the game (site/install.ts) ------------------------------------------------- */
/* The head script marks <html> before the first paint: `app-installed` swaps the words to "Open the game", `in-app`
   (a site page inside the installed app) hides the buttons, and the CrazyGames one with them. */
.install .i-open,
.app-installed .install .i-get {
  display: none;
}
.app-installed .install .i-open {
  display: inline;
}
.in-app .install,
.in-app .portal {
  display: none;
}
.install img {
  border-radius: 50%;
}
/* Header: a round icon beside Play, its words kept for screen readers; the narrow menu has the full row instead. */
.top .top-install {
  width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--site-ink);
}
.top .top-install span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.top .top-install img {
  width: 34px;
  height: 34px;
}
@media (max-width: 639px) {
  .top .top-install {
    display: none;
  }
}
/* Just wide enough for the full nav: the icon's room comes from the language link, which keeps only its globe there
   (its words stay for screen readers, like Support's in the same range). */
@media (min-width: 1024px) and (max-width: 1099px) {
  .top .lang.wide-only span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* A signed-in player's "Continue, {name}" chip needs the room on the full-width row: the icon steps aside there
   (site.js marks the bar); the hero, the FAQ and the narrow menu still offer Install. */
@media (min-width: 1024px) {
  .top.known .top-install {
    display: none;
  }
}
.menu-list .menu-install {
  justify-content: center;
  gap: 10px;
  margin: 10px 2px 8px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 800;
}
.menu-list .menu-install:hover {
  background: color-mix(in srgb, var(--site-pink) 22%, var(--site-card));
}
.install-cta {
  margin: 4px 0 18px;
}
.panel a.btn.install {
  color: var(--site-ink);
}
.install-body {
  padding: 18px 20px 22px;
}
.install-part {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.install-part[hidden] {
  display: none;
}
.install-part p {
  margin: 0;
  font-weight: 600;
}
.install-part > .btn {
  align-self: center;
}
.install-body a.btn {
  color: var(--site-ink);
}
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.install-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid var(--site-line);
  border-radius: 16px;
  background: var(--site-bg1);
  font-weight: 600;
  line-height: 1.4;
  counter-increment: step;
}
.install-steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--site-pink);
  color: var(--site-ink);
  font-weight: 800;
}
.step-art {
  flex: none;
  display: flex;
  gap: 4px;
}
.step-art img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--site-line);
}
.install-note {
  color: var(--site-ink-soft);
  font-size: 15px;
}
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.copy-row code {
  flex: 1 1 12em;
  min-width: 0;
  padding: 10px 12px;
  border: 2px dashed var(--site-line);
  border-radius: 12px;
  background: var(--site-bg1);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  user-select: all;
}
.copy-row .btn {
  flex: none;
  min-width: 10em;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 479px) {
  .install-body {
    padding: 14px 14px 18px;
  }
  .install-steps li {
    gap: 8px;
    padding: 8px 10px;
    font-size: 16px;
  }
  .step-art img {
    width: 38px;
    height: 38px;
  }
}
