/* funaudiogames.com: the one stylesheet every page links. Fonts, theme tokens, the top bar with its menu, buttons,
   the home page (what the games are, the Alien Customs demo in a phone, where to get the app, the games, the
   accessibility and the questions people ask), the text pages (accessibility, privacy, terms, support) and the footer.

   Themes. Every colour is a token. Dark (the brand's navy and gold) is the default; Light and High contrast (black,
   white and yellow) come from the device's settings (prefers-color-scheme, prefers-contrast), as do less motion
   (prefers-reduced-motion) and Windows' forced colours. Text sizes are in rem, so the browser's text size and zoom
   scale everything. In every theme, text keeps a contrast of at least 7:1 on --bg and --surface:
   test/pages.test.js checks --ink, --muted, --faint, --lilac, --accent and --accent-hover there, --accent-ink on
   --accent, --play-ink on --play (the demo's green Play button, yellow in high contrast), and every literal `color:`
   in this file. The purples (--purple, --purple-deep) are for surfaces and glows only, never for text. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- theme: dark (the default) ---------- */
:root {
  color-scheme: dark;
  --bg: #0b1430;
  --bg-deep: #070d22;
  --surface: #0f1a3d;
  --surface-2: #15214a;
  --ink: #f6f8ff;
  --muted: #c5cfee;
  --faint: #b3bee2;
  --accent: #ffd54f;
  --accent-hover: #ffe58a;
  --accent-ink: #241a00;
  --lilac: #cdb9ff;
  --on-purple: #ffffff;
  --purple: #7a4ce0;
  --purple-deep: #2c1263;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.075);
  --field: #081028;
  --bar: #47279a;
  --bar-ink: #ffffff;
  --glow: rgba(122, 76, 224, 0.42);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --frame-1: #2b3466;
  --frame-2: #0a1029;
  --screen: #0a1129;
  --icon-1: #7a4ce0;
  --icon-2: #2c1263;
  --qr-frame: #ffffff;
  --play: #3ddc84;
  --play-hover: #6be7a3;
  --play-ink: #0b1430;
  --play-edge: #3ddc84;
  --play-glow: rgba(61, 220, 132, 0.45);
  --border-w: 1px;
  --motif: url("/brand/motif-dark.webp");
  --glass: rgba(12, 21, 50, 0.74);
  --glass-line: rgba(255, 255, 255, 0.11);
  --go: #ffd54f;
  --go-hover: #ffe27a;
  --go-ink: #1a1400;
  --go-glow: rgba(255, 213, 79, 0.34);
  /* the raised buttons' edges and their light from above (the home page's Play and games) */
  --go-edge: #b38a12;
  --pick-edge: rgba(255, 255, 255, 0.16);
  --raise-light: rgba(255, 255, 255, 0.22);
  --pick-light: rgba(255, 255, 255, 0.08);
  --provider: #ffffff;
  --provider-hover: #e9edfa;
  --provider-ink: #0b1430;
  --provider-line: #ffffff;
  --quiet: rgba(255, 255, 255, 0.07);
  --quiet-hover: rgba(255, 255, 255, 0.13);
}

/* ---------- theme: light ---------- */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f5fb;
    --bg-deep: #ebe9f5;
    --surface: #ffffff;
    --surface-2: #f2f0fa;
    --ink: #0b1430;
    --muted: #323d5c;
    --faint: #3d4767;
    --accent: #47279a;
    --accent-hover: #351b7a;
    --accent-ink: #ffffff;
    --lilac: #47279a;
    --on-purple: #ffffff;
    --purple: #7a4ce0;
    --purple-deep: #4a2a9c;
    --line: rgba(11, 20, 48, 0.14);
    --line-strong: rgba(11, 20, 48, 0.3);
    --card: #ffffff;
    --card-hover: #fbfaff;
    --field: #ffffff;
    --bar: #47279a;
  --bar-ink: #ffffff;
    --glow: rgba(122, 76, 224, 0.2);
    --shadow: 0 1px 2px rgba(11, 20, 48, 0.06), 0 18px 40px -26px rgba(11, 20, 48, 0.35);
    --shadow-lg: 0 40px 80px -36px rgba(11, 20, 48, 0.45);
    --frame-1: #2b3466;
    --frame-2: #0b1430;
    --screen: #ffffff;
    --icon-1: #7a4ce0;
    --icon-2: #4a2a9c;
    --qr-frame: #ffffff;
    --play: #3ddc84;
    --play-hover: #2fc874;
    --play-ink: #0b1430;
    --play-edge: #138a4a;
    --play-glow: rgba(19, 138, 74, 0.3);
    --border-w: 1px;
    --motif: url("/brand/motif-light.webp");
    --glass: rgba(255, 255, 255, 0.8);
    --glass-line: rgba(11, 20, 48, 0.1);
    --go: #47279a;
    --go-hover: #351b7a;
    --go-ink: #ffffff;
    --go-glow: rgba(71, 39, 154, 0.3);
    --go-edge: #26115e;
    --pick-edge: #cbc3ea;
    --raise-light: rgba(255, 255, 255, 0.2);
    --pick-light: rgba(71, 39, 154, 0.04);
    --provider: #ffffff;
    --provider-hover: #f3f2fa;
    --provider-ink: #0b1430;
    --provider-line: rgba(11, 20, 48, 0.24);
    --quiet: rgba(11, 20, 48, 0.05);
    --quiet-hover: rgba(11, 20, 48, 0.09);
  }
}
/* ---------- theme: high contrast (black, white and yellow), also for prefers-contrast: more ---------- */
@media (prefers-contrast: more) {
  :root {
    color-scheme: dark;
    --bg: #000000;
    --bg-deep: #000000;
    --surface: #000000;
    --surface-2: #000000;
    --ink: #ffffff;
    --muted: #ffffff;
    --faint: #ffffff;
    --accent: #ffff00;
    --accent-hover: #ffff8c;
    --accent-ink: #000000;
    --lilac: #ffff00;
    --on-purple: #ffffff;
    --purple: #000000;
    --purple-deep: #000000;
    --line: #ffffff;
    --line-strong: #ffffff;
    --card: #000000;
    --card-hover: #000000;
    --field: #000000;
    --bar: #000000;
  --bar-ink: #ffffff;
    --glow: transparent;
    --shadow: none;
    --shadow-lg: none;
    --frame-1: #000000;
    --frame-2: #000000;
    --screen: #000000;
    --icon-1: #000000;
    --icon-2: #000000;
    --qr-frame: #ffffff;
    --play: #ffff00;
    --play-hover: #ffff8c;
    --play-ink: #000000;
    --play-edge: #ffffff;
    --play-glow: transparent;
    --border-w: 2px;
    --motif: none;
    --glass: #000000;
    --glass-line: #ffffff;
    --go: #ffff00;
    --go-hover: #ffff8c;
    --go-ink: #000000;
    --go-glow: transparent;
    /* flat here: plain edges read clearest */
    --go-edge: transparent;
    --pick-edge: transparent;
    --raise-light: transparent;
    --pick-light: transparent;
    --provider: #000000;
    --provider-hover: #000000;
    --provider-ink: #ffffff;
    --provider-line: #ffffff;
    --quiet: #000000;
    --quiet-hover: #000000;
  }
}
/* ---------- sizes ---------- */
:root {
  --radius: 20px;
  --radius-sm: 14px;
  --gutter: 16px;
  --max: 1160px;
  --bar-h: 68px;
  --measure: 68ch;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  /* the background, on every page: the character, faint, in rows over the night (Shout Out Games' own background, with
     our character in it), purple over pale in the light theme, and nothing but black in high contrast. It stays still:
     no drift behind what's being read */
  background-color: var(--bg);
  background-image: var(--motif);
  background-size: 1000px 557px;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* the apps' keyboard focus ring: 3px, gold (yellow in high contrast, purple in light) */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: underline;
  z-index: 100;
}
.skip:focus { left: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: var(--border-w) solid transparent;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-gold {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-gold:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
/* the main buttons: flat pills, lifted a little by a soft shadow of their own colour */
.btn-gold { box-shadow: 0 10px 26px -14px var(--accent); }

.btn-ghost {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--card-hover); border-color: var(--ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar);
  border-bottom: var(--border-w) solid var(--line);
}

/* On a narrow or short screen (a phone, or a page zoomed in a long way) the top bar scrolls away with the page: there
   its links wrap onto more lines, and kept on screen it would cover a quarter of it, and what's under it. (Relative,
   not static, so it stays above the page: the account menu hangs over what's under it.) */
@media (max-width: 599px), (max-height: 599px) {
  .topbar { position: relative; }
  html { scroll-padding-top: 16px; }
}

.topbar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: var(--bar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: 12px;
}
.brand img { width: auto; height: 40px; flex: none; }

/* the logo in white on dark themes, navy on light: one of the pair is shown (and read) at a time */
.on-light { display: none; }
@media (prefers-color-scheme: light) {
  .on-dark { display: none; }
  .on-light { display: block; }
}
@media (prefers-contrast: more) {
  .on-dark { display: block; }
  .on-light { display: none; }
}
/* the top bar is purple in every theme but high contrast (the Play button's purple; the owner: "make the navbar on top a
   purple to match button"), so its logo is the white one, and its words and focus rings white */
.topbar .brand .on-dark { display: block; }
.topbar .brand .on-light { display: none; }
.topbar :focus-visible { outline-color: var(--bar-ink); }
.topbar :is(.lang-menu, .account-menu) :focus-visible { outline-color: var(--accent); }

/* the site's links: plain words in a row beside the logo (Speak Balkan's way), on every screen, wrapping under the
   logo when there isn't room: no menu of the links, nothing hidden (the profile icon's little menu is the account's,
   below). The current page in the accent colour, underlined. At the right end: the logo and the language are on the
   left. */
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--bar-ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] {
  color: var(--bar-ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* The account is a word, last in the row, as the other links are (8 November 2026, the owner: "remove profile icon and
   put Login or Profile (text) since this is for blind people"): Login, or Profile once signed in (src/site/nav.js) */

@media (max-width: 600px) {
  .topbar-inner { padding-top: 6px; padding-bottom: 6px; }
  .site-nav { width: 100%; }
  .site-nav a, .site-nav .nav-account-button { padding: 8px 10px; }
}

/* Login (Profile) opens a little menu (src/site/nav.js makes its link a button; without the script it's the link to
   the account page): who's signed in, their Unlimited and Sign out, or the two ways to sign in. It hangs under the top
   bar at its right end, under the button, on any screen (where the links wrap, too), never off the screen. The button
   looks as the links beside it do: the same words' size and weight, underlined on hover, and on the account page. */
.topbar-inner { position: relative; }
.site-nav .nav-account-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--bar-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.site-nav .nav-account-button:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .nav-account-button[aria-expanded="true"] { background: rgba(255, 255, 255, 0.16); }
.site-nav .nav-account-button[data-current] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.account-menu {
  position: absolute;
  top: 100%;
  right: var(--gutter);
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(21rem, calc(100% - 2 * var(--gutter)));
  margin-top: 4px;
  padding: 16px;
  border: var(--border-w) solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color: var(--ink);
  text-align: left;
}
.account-menu[hidden] { display: none; }
.account-menu p { margin: 0; }
.menu-title { font-weight: 800; }
.menu-who { color: var(--muted); font-size: 0.92rem; line-height: 1.4; overflow-wrap: anywhere; }
.menu-text { font-size: 0.95rem; line-height: 1.45; }
.menu-note { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.menu-message { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 0.95rem; font-weight: 700; line-height: 1.4; }
.menu-message[hidden] { display: none; }
.menu-ways, .menu-part { display: grid; gap: 8px; }
.menu-part, .menu-foot { padding-top: 12px; border-top: var(--border-w) solid var(--line); }
.account-menu .btn { width: 100%; min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.menu-foot .btn { width: auto; }
.account-menu a:not(.btn) { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.menu-foot a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* The language (src/site/nav.js, src/site/i18n.js): "Language: English" in words, next to the logo on the left (8
   November 2026: words, no globe, the same shown and read), opening a little list of the languages, each in its own
   language; the one in use marked. Picking one loads the page in it. Hangs under the button, from its left edge. */
.nav-lang { position: relative; }
.nav-lang-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--bar-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
}
.nav-lang-button:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-lang-button[aria-expanded="true"] { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 480px) { .nav-lang-button { font-size: 0.9rem; padding: 8px 6px; } }
.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: grid;
  gap: 4px;
  min-width: 11rem;
  margin: 4px 0 0;
  padding: 8px;
  border: var(--border-w) solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  list-style: none;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--surface-2); }
.lang-menu button[aria-current="true"] { color: var(--accent); }
.lang-menu button[aria-current="true"]::after { content: "✓"; }
/* ---------- small parts ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card {
  border-radius: var(--radius);
  background: var(--card);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* ---------- home. What it is (with the demo's Play near it), the demo in a phone, where to get the app, the games,
   the accessibility, the questions. On a wide screen the words on the left and the phone beside them, staying in view
   while the page scrolls (on a screen tall enough to show all of it); on a narrow one, one column in that order. ---------- */
.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  grid-template-areas: "intro demo" "get demo" "games demo" "access demo" "faq demo";
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 48px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 16px;
}
.intro { grid-area: intro; }
.demo { grid-area: demo; }
.get { grid-area: get; }
.games-block { grid-area: games; }
.access { grid-area: access; }
.faq { grid-area: faq; }
@media (min-width: 901px) and (min-height: 720px) {
  .demo { position: sticky; top: calc(var(--bar-h) + 16px); }
}
.home h2:not(.demo-title) { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }

/* ---------- home: what it is ---------- */
.intro h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; }
.intro-lede { margin-top: 16px; font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 700; line-height: 1.4; max-width: 36ch; }
.intro-who { margin-top: 10px; color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.intro-offer {
  margin-top: 18px;
  padding: 12px 16px;
  max-width: 60ch;
  border-left: 4px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  background: var(--card);
  font-weight: 700;
  line-height: 1.5;
}
.btn-play {
  background: var(--play);
  color: var(--play-ink);
  border: 2px solid var(--play-edge);
  box-shadow: 0 14px 34px -12px var(--play-glow);
}
.btn-play:hover { background: var(--play-hover); }
.btn-play svg { width: 22px; height: 22px; }
/* on a wide screen the phone's own Play is beside the words */
.intro-play { display: none; margin-top: 20px; min-height: 56px; font-size: 1.15rem; }
/* the four ways in, as Shout Out Games' splash has them: signed in, a guest, the demo; then the stores */
.intro-choices { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.intro-choices li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.intro-choices .btn { min-height: 56px; min-width: 15rem; font-size: 1.1rem; }
.intro-choices .intro-play { display: inline-flex; margin-top: 0; }
.choice-note { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.status-title { margin-top: 22px; font-weight: 800; }

/* the sign-in and account pages */
.signin-choices { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.signin-choices .btn { min-width: 16rem; min-height: 56px; font-size: 1.1rem; }
.account-message {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: var(--border-w) solid var(--accent);
  font-weight: 700;
}
.account-message[hidden], .account-page section[hidden] { display: none; }
.account-page section { display: grid; gap: 12px; }
.account-page h3 { margin-top: 12px; }
.account-add { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.account-add a, .account-page section > p > a:not(.btn) { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.account-page form { display: grid; gap: 10px; justify-items: start; }
/* Contact (contact.html, src/site/contact.js): a column of labelled fields, each one's problem under it in words (the
   accent bar beside it only marks it), the robots' field off the page, and the address to email under the form */
.contact-page { max-width: 42rem; }
.contact-form { display: grid; gap: 18px; margin-top: 8px; }
.contact-form[hidden], .contact-sent[hidden], .field-error[hidden] { display: none; }
.contact-field { display: grid; gap: 8px; margin: 0; }
.contact-field label { font-weight: 700; font-size: 1.05rem; }
.contact-field input, .contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}
.contact-field textarea { min-height: 11rem; resize: vertical; line-height: 1.5; }
.contact-field [aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field-error { padding-left: 12px; border-left: 4px solid var(--accent); font-weight: 700; line-height: 1.45; }
.contact-form .btn { min-width: 10rem; min-height: 52px; font-size: 1.1rem; }
.contact-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { display: grid; gap: 12px; margin-top: 8px; }
.contact-sent h2:focus { outline: none; }
.contact-or { margin-top: 28px; color: var(--muted); }
.contact-or a { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
@media (forced-colors: active) {
  .contact-field input, .contact-field textarea { border: 1px solid CanvasText; }
  .contact-field [aria-invalid="true"] { border: 3px solid CanvasText; }
  .field-error { border-left-color: CanvasText; }
}
/* Mini Games on Alexa (src/site/account.js): a monthly subscriber's code, large, in two threes */
.emails-part { display: grid; gap: 8px; }
.emails-part[hidden], .emails-part [hidden] { display: none; }
.emails-part h3 { margin: 12px 0 0; }
.emails-part p { margin: 0; }
.alexa-part { display: grid; gap: 12px; }
.alexa-part[hidden], .alexa-part [hidden] { display: none; }
.alexa-part h3 { margin: 12px 0 0; }
.alexa-code { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
/* Fun Audio Games Unlimited: get it, or manage it (the page's script shows the one that fits) */
.unlimited-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.unlimited-actions .btn[hidden], .shop-note[hidden] { display: none; }
.unlimited-actions .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
/* packs: what each is, whether it's yours, and its button (shown by the page's script to someone signed in) */
.pack-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pack { display: grid; gap: 8px; justify-items: start; }
.pack [hidden], .shop-note[hidden], #shop-signin[hidden] { display: none; }
.pack-owned { font-weight: 700; }
.pack-owned a, .shop-note a { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.buy-form { display: grid; justify-items: start; }
.buy-form .btn { min-height: 48px; }
.end-actions .buy-form { display: inline-flex; }
.status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.97rem;
}
.status li { display: flex; align-items: flex-start; gap: 8px; }
.status a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.status a:hover { color: var(--accent-hover); }
.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.5em;
  border-radius: 50%;
  border: 2px solid var(--muted);
}
.status-dot.is-live { background: var(--play); border-color: var(--play-edge); }

/* ---------- home: the phone and the demo ---------- */
.phone {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(150deg, var(--frame-1), var(--frame-2) 60%);
  border: var(--border-w) solid var(--line-strong);
  box-shadow: var(--shadow-lg), 0 0 120px -20px var(--glow);
}
.phone::before {
  /* the glow behind it */
  content: "";
  position: absolute;
  inset: 12% -8% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  border-radius: 20px;
  background: #02040c;
  box-shadow: inset 0 0 0 1px var(--line);
  z-index: 3;
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(560px, calc(100vh - 190px), 680px);
  border-radius: 43px;
  overflow: hidden;
  background: var(--screen);
  border: var(--border-w) solid var(--line);
}

/* the game's header bar, as the app's */
.demo-title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 50px 18px 12px;
  background: var(--surface-2);
  border-bottom: var(--border-w) solid var(--line);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
}

/* the start: the talking circle (the game's cover in its ring) and Play */
.demo-cover {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 0;
  padding: 20px 22px 36px;
  text-align: center;
}
.talk-circle {
  position: relative;
  width: 172px;
  height: 172px;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 0 70px -12px var(--glow);
}
.talk-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--accent);
}
.talk-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  min-width: 200px;
  padding: 10px 38px 10px 30px;
  border-radius: 999px;
  border: 2px solid var(--play-edge);
  background: var(--play);
  color: var(--play-ink);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px var(--play-glow);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.play-button:hover { background: var(--play-hover); transform: translateY(-1px); }
.play-button svg { width: 1.25em; height: 1.25em; flex: none; }
.cover-how { font-size: 0.97rem; line-height: 1.45; max-width: 32ch; margin-top: -8px; }
.cover-note { color: var(--muted); font-size: 0.92rem; line-height: 1.45; max-width: 30ch; margin-top: -12px; }
.demo-cover[hidden], .player[hidden] { display: none; }
.demo-foot { margin: 12px auto 0; max-width: 44ch; color: var(--muted); font-size: 0.88rem; text-align: center; }

/* the player */
.player {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 12px 14px;
  gap: 8px;
}
.player-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 14px;
  border: var(--border-w) solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}
.tool svg { width: 1.55em; height: 1.55em; flex: none; }
.tool:hover:not([aria-disabled="true"]) { background: var(--card-hover); border-color: var(--line-strong); }
.tool[aria-disabled="true"] { cursor: default; color: var(--muted); border-style: dashed; }
.tool .i-play { display: none; }
.tool[data-paused] .i-play { display: block; }
.tool[data-paused] .i-pause { display: none; }
.tool[data-paused] { border-color: var(--accent); color: var(--accent); }

.player-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.player-state::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--muted);
}
.player-state[data-state="speaking"]::before { background: var(--lilac); animation: pulse 1.2s ease-in-out infinite; }
.player-state[data-state="turn"]::before, .player-state[data-state="listening"]::before { background: var(--accent); }
.player-state[data-state="listening"]::before { animation: pulse 0.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.6; } }

.captions {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 6px 10px;
  border-radius: 16px;
  scroll-behavior: smooth;
}
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feed li { line-height: 1.45; font-size: 1rem; }
.feed .line { padding: 8px 12px; border-radius: 14px; border: var(--border-w) solid transparent; transition: background-color 0.2s ease; }
.feed .line.is-now { background: var(--card-hover); border-color: var(--line); }
.feed .who {
  display: block;
  color: var(--lilac);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feed .reply {
  align-self: flex-end;
  max-width: 85%;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.feed .note {
  align-self: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

/* the end: under the captions (which shrink to make room), where the answer box was, so it's always in view */
.end-panel {
  flex: none;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: var(--surface-2);
  border: var(--border-w) solid var(--line-strong);
  text-align: center;
}
.end-panel[hidden] { display: none; }
.end-panel h3 { font-size: 1.1rem; margin-bottom: 4px; }
.end-panel h3:focus { outline: none; }
.player[data-state="ended"] .answer-bar, .player[data-state="ended"] .mic-note { display: none; }
.end-panel p { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.end-actions, .end-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.end-stores[hidden] { display: none; }
.end-stores + .end-actions { margin-top: 8px; }
.end-actions .btn, .store-mini { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }
.store-mini {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: var(--border-w) solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
}
.store-mini:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty { display: none; }
.chip {
  min-height: 44px;
  min-width: 64px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}
.chip:hover { background: var(--accent); color: var(--accent-ink); }

.answer-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}
.answer-bar input {
  min-width: 0;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 14px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
  font-size: 1rem;
}
.answer-bar input::placeholder { color: var(--faint); opacity: 1; }
.answer-bar input:focus-visible { outline-offset: 1px; }
.send, .mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 14px;
  border-radius: 14px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}
.send { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mic svg { width: 1.3em; height: 1.3em; }
.mic[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mic[data-listening] { background: var(--accent); color: var(--accent-ink); }
.mic[hidden] { display: none; }
.mic-note { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.mic-note[hidden] { display: none; }
@media (max-width: 380px) {
  .mic span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- home: the games, each with what it's like, its story and what's free (not links: nothing to open) ---------- */
.games-lede { margin-top: 6px; color: var(--muted); }
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.game {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  border: var(--border-w) solid var(--line);
}
.game .cover {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface-2);
  border: var(--border-w) solid var(--line-strong);
}
.game h3 { font-size: 1.05rem; line-height: 1.25; letter-spacing: 0; }
.game-type {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game-about { margin-top: 8px; font-size: 0.95rem; line-height: 1.45; }
.game-free { margin-top: 8px; color: var(--muted); font-size: 0.88rem; font-weight: 700; line-height: 1.4; }

/* ---------- the games in the browser (/play/, made by scripts/build-play.js): the list, and each game's page with
   its stage (the demo's player, full size), its settings, and what more the app has ---------- */
.play-page { display: grid; gap: 22px; max-width: 860px; margin: 0 auto; padding-top: 28px; padding-bottom: 64px; }
.play-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
.play-back a { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.play-lede { font-size: 1.1rem; line-height: 1.5; max-width: 62ch; }
.play-page > .game-free { margin-top: -12px; }
.play-list { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.play-list .game { grid-template-columns: 120px minmax(0, 1fr); }
.play-list .game .cover { width: 120px; height: 120px; }
.play-list .game h2 { font-size: 1.3rem; line-height: 1.25; }
.play-list .btn { margin-top: 12px; }
.play-cover { width: min(100%, 420px); height: auto; border-radius: 20px; border: var(--border-w) solid var(--line-strong); }
.game-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(520px, calc(100vh - 220px), 720px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--screen);
  border: var(--border-w) solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.game-cover {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 0;
  padding: 24px;
  text-align: center;
}
.game-cover[hidden] { display: none; }
.game-cover .cover { width: min(100%, 380px); height: auto; border-radius: 20px; border: var(--border-w) solid var(--line-strong); }
.game-cover .cover-note { margin-top: 0; max-width: 42ch; }
/* the hub, the home page (hub.html, made by scripts/build-pages.js): the same player, with the skill's games in it. Two
   phases, data-phase on .hub-page (main.js sets "playing" at Play). The cover: the heading, a big Play across the top and
   every game under it (below). Playing: the card is the player, filling the screen below the top bar, the heading kept
   for screen readers only. */
.hub-page {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 12px;
}
/* the home page is one screen, with nothing to scroll: the top bar, the start or the player in all the room there is,
   and the footer as one slim row of links (Terms, Privacy, Accessibility, Contact, Support). Only a page zoomed in past what
   fits grows, and scrolls, as it must */
body:has(.hub-page) > main { display: flex; flex: 1 0 auto; flex-direction: column; padding-bottom: 0; }
/* (the footer's row right under the player: every page's footer is that row now, "footer" below) */
body:has(.hub-page) > footer { margin-top: 0; }
.stage-head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.hub-page h1 { font-size: clamp(1.5rem, 3.6vw, 1.85rem); line-height: 1.15; max-width: 20ch; }
.hub-page[data-phase="playing"] .stage-head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* playing: the player takes the room between the top bar and the footer's row (at the least, room for a few lines of
   captions), all of it in view, the answer bar too, without scrolling; on a phone too */
.hub-page[data-phase="playing"] .game-stage {
  flex: 1 1 0px;
  height: auto;
  min-height: min(20rem, calc(100vh - var(--bar-h) - 96px));
  min-height: min(20rem, calc(100svh - var(--bar-h) - 96px));
  scroll-margin-bottom: 16px;
}
/* for limited vision: the captions a size up, the line being said marked with the accent, and the state in full ink */
.hub-page .player { padding: 12px 16px 16px; gap: 10px; }
.hub-page .feed { gap: 12px; }
.hub-page .feed li { font-size: 1.125rem; line-height: 1.5; }
.hub-page .feed .line { max-width: 62ch; }
.hub-page .feed .line.is-now { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
/* the state, and Skip and Stop beside it, in one row: the captions get the room */
.hub-page .player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.hub-page .player-state { justify-content: flex-start; font-size: 1rem; color: var(--ink); }
.hub-page .player-tools { display: flex; gap: 8px; margin-left: auto; }
.hub-page .tool { flex-direction: row; gap: 6px; min-height: 44px; padding: 6px 14px; font-size: 0.95rem; }
.hub-page .tool svg { width: 1.2em; height: 1.2em; }
/* Speak first, it's a talking game: filled with the accent, Send beside it plain; listening, its ring pulses */
.hub-page .mic { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hub-page .mic[data-listening] { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); animation: listening 1.2s ease-in-out infinite; }
@keyframes listening { 50% { box-shadow: inset 0 0 0 4px var(--accent); } }
.hub-page .send { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.hub-page .chip, .hub-page .send, .hub-page .mic { font-weight: 700; }
.mic-note a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.player-state[data-state="paused"]::before { background: var(--accent); }
/* the cover (21 November 2026, the owner: "play online shows the game list and then has a big play button at the top.
   Thats it"): no card, nothing in the middle of the screen; the heading, a big Play across the top, then every game, one
   press to play it, as many to a row as fit. The page scrolls as long as the list is. */
.hub-page[data-phase="cover"] { justify-content: flex-start; align-items: stretch; }
.hub-page[data-phase="cover"] .game-stage {
  flex: none;
  width: min(100%, 60rem);
  margin: 0 auto;
  height: auto;
  min-height: 0;
  padding: 4px 0 24px;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hub-page[data-phase="cover"] .stage-bar { display: none; }
.hub-page .game-cover { flex: none; align-items: stretch; gap: 14px; padding: 16px 0 0; justify-content: flex-start; overflow: visible; text-align: left; }
.hub-page .game-cover .play-button { width: 100%; min-width: 0; min-height: 88px; padding: 14px 24px; border-radius: 24px; font-size: clamp(1.5rem, 4vw, 2rem); }
.cover-games-title { margin-top: 14px; font-size: 1.25rem; line-height: 1.3; }
.cover-games { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 10px; }
.cover-games li { display: flex; }
.cover-games .pick { align-content: start; background: var(--card); }
/* The App page's QR code, at its card's top, on a computer only: a phone or a tablet can't scan its own screen. The
   home page has no code or stores' buttons under its card (15 November 2026, the owner: "move all of it include app
   store and play buttons to the app section"). */
.app-card .app-qr { display: none; }
@media (min-width: 700px) {
  .app-card .app-qr { display: grid; order: -1; }
  .app-card .app-qr .qr-code { width: 180px; height: 180px; padding: 8px; }
  .app-card .app-qr figcaption { font-size: 1rem; }
}
@media (hover: none) and (pointer: coarse) {
  .app-card .app-qr { display: none; }
}
.cover-qr { display: grid; justify-items: center; gap: 8px; margin: 0; }
.qr-code {
  display: block;
  width: 108px;
  height: 108px;
  padding: 4px;
  border-radius: 12px;
  background: var(--qr-frame);
  forced-color-adjust: none;
}
.cover-qr figcaption { color: var(--muted); font-size: 0.88rem; line-height: 1.35; text-align: center; }
/* on a phone, the four tools in a row of their own, each its icon over its word */
@media (max-width: 479px) {
  .hub-page .player-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin-left: 0; }
  .hub-page .tool { flex-direction: column; gap: 2px; min-height: 52px; padding: 6px 4px; font-size: 0.8rem; }
}
/* above the game: the player's team (once they've one), and What can I say? and Settings */
.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 12px 8px 16px;
  border-bottom: var(--border-w) solid var(--line);
  background: var(--surface);
}
.team-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.25em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.4;
  /* (a line that wraps starts without its dot: the dot before each part sits in the gap, out of sight at a line's start) */
  overflow: hidden;
}
.team-bar[hidden] { display: none; }
.team-bar li + li { margin-left: -1.25em; }
.team-bar li + li::before { content: "·"; content: "·" / ""; display: inline-block; width: 1.25em; text-align: center; color: var(--muted); }
.team-bar li:first-child::before {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--team, var(--accent));
  vertical-align: -0.05em;
}
.team-bar[data-team="fire"] { --team: #e4572e; }
.team-bar[data-team="water"] { --team: #2f7dd1; }
.team-bar[data-team="grass"] { --team: #3c9d4f; }
.team-bar[data-team="electric"] { --team: #e9b310; }
.stage-links { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.stage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 14px;
  border: var(--border-w) solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.stage-link:hover { background: var(--card-hover); border-color: var(--line-strong); }
.stage-link svg { width: 1.25em; height: 1.25em; flex: none; }
/* What can I say?, and Settings: dialogs over the page */
.game-dialog {
  width: min(34rem, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  padding: 0;
  border-radius: 20px;
  border: var(--border-w) solid var(--line-strong);
  /* solid, in every theme: a dialog is read over the page, and dark's --card is nearly see-through */
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.game-dialog::backdrop { background: rgb(10 8 30 / 0.6); }
.dialog-body { display: grid; gap: 14px; padding: 24px; }
.dialog-body h2 { font-size: 1.4rem; }
.dialog-body h2:focus { outline: none; }
.dialog-body h3 { font-size: 1.1rem; margin-top: 4px; }
.say-list { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; line-height: 1.45; }
.setting { display: grid; gap: 8px; }
.setting > label { font-weight: 700; }
.volume-row { display: flex; align-items: center; gap: 12px; }
.volume-row input { flex: 1; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--accent); }
.volume-value { min-width: 3.5em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 1.3em; height: 1.3em; margin: 0.05em 0 0; accent-color: var(--accent); }
.setting-note { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.dialog-body form { margin: 4px 0 0; }
.end-panel h2 { font-size: 1.1rem; margin-bottom: 4px; }
.end-panel h2:focus { outline: none; }
.game-settings, .play-more {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
}
.game-settings h2, .play-more h2 { font-size: 1.25rem; }
.settings-note { color: var(--muted); font-size: 0.92rem; }
.game-settings label { display: grid; gap: 6px; max-width: 22rem; font-weight: 700; }
.game-settings select {
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 12px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.play-more .end-stores { justify-content: flex-start; margin-top: 0; }
@media (max-width: 600px) {
  .play-list .game { grid-template-columns: 64px minmax(0, 1fr); }
  .play-list .game .cover { width: 64px; height: 64px; }
  .game-stage { height: clamp(500px, calc(100vh - 140px), 680px); border-radius: 20px; }
}

/* ---------- home: accessibility and questions ---------- */
.access {
  padding: 24px;
  border-radius: 22px;
  background: var(--card);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow);
}
.access .checks { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.access-more { margin-top: 18px; color: var(--muted); }
.access-more a, .faq a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.access-more a:hover, .faq a:hover { color: var(--accent-hover); }
.faq h3 { margin: 22px 0 6px; font-size: 1.1rem; color: var(--lilac); }
.faq h2 + h3 { margin-top: 16px; }
.faq p { max-width: var(--measure); }

/* ---------- home: download ---------- */
.get {
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--card);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow);
}
.get-lede { margin-top: 2px; color: var(--muted); font-size: 0.95rem; }
.get-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.get-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "qr store" "qr for";
  align-content: center;
  align-items: center;
  gap: 4px 14px;
}
.qr {
  grid-area: qr;
  display: block;
  width: 84px;
  height: 84px;
  padding: 4px;
  border-radius: 12px;
  background: var(--qr-frame);
  forced-color-adjust: none;
}
.store {
  grid-area: store;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 18px 6px 14px;
  border-radius: 14px;
  background: var(--ink);
  border: var(--border-w) solid var(--ink);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
}
.store:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; font-weight: 700; }
.store strong { display: block; font-size: 1.1rem; font-weight: 800; }
.get-for { grid-area: for; align-self: start; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.get-live { color: var(--ink); }

/* ---------- text pages ---------- */
.page-head { max-width: var(--measure); margin: 0 auto; padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); margin: 14px 0; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); font-size: 1.12rem; }
.page-head .eyebrow {
  padding: 6px 14px;
  border-radius: 999px;
  border: var(--border-w) solid var(--accent);
}

.doc { max-width: var(--measure); margin: 0 auto; }

.summary { margin-bottom: 44px; border-color: var(--line-strong); }
.summary h2 { font-size: 1.4rem; margin-bottom: 16px; color: var(--accent); }

.doc .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--icon-1), var(--icon-2));
  border: var(--border-w) solid var(--line-strong);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2.5px solid var(--on-purple);
  border-bottom: 2.5px solid var(--on-purple);
  transform: rotate(-45deg);
}

.doc section { margin: 0 0 40px; padding-top: 4px; }
.doc section:last-child { margin-bottom: 0; }
.doc section + section { border-top: var(--border-w) solid var(--line); padding-top: 36px; }
.doc h2 { font-size: clamp(1.45rem, 3.6vw, 1.8rem); margin-bottom: 14px; }
.doc h3 { font-size: 1.15rem; margin: 26px 0 8px; color: var(--lilac); }
.doc p + p, .doc p + ul, .doc ul + p, .doc p + .table, .doc .table + p, .doc p + dl, .doc dl + p { margin-top: 12px; }
.doc section > p, .doc section > ul, .doc section > dl { color: var(--ink); }
.doc ul { padding-left: 22px; margin: 0; }
.doc ul li + li { margin-top: 8px; }
.doc ul li::marker { color: var(--lilac); }
.doc a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--accent-hover); }
.doc strong { color: var(--ink); }
.doc kbd {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 0.92em;
  font-weight: 700;
}
.doc dl { margin: 0; display: grid; gap: 10px; }
.doc dt { font-weight: 800; }
.doc dd { margin: 2px 0 0; color: var(--muted); }

.note { color: var(--muted); font-size: 0.97rem; }
main { padding-bottom: 32px; }

/* support */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-color: var(--line-strong);
}
.contact h2 { font-size: 1.4rem; margin-bottom: 6px; color: var(--accent); }
.contact p { color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.doc .button, .doc .button:hover { color: var(--accent-ink); }
.button:hover { background: var(--accent-hover); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 44px; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--card);
  border: var(--border-w) solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}
.doc .toc a { color: var(--ink); }
.toc a:hover { background: var(--card-hover); border-color: var(--line-strong); text-decoration: underline; }

.table {
  margin: 14px 0;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--line);
  background: var(--card);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 14px; vertical-align: top; }
th { color: var(--accent); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody tr { border-top: var(--border-w) solid var(--line); }
td small { display: block; color: var(--muted); font-size: 0.82rem; }
td:first-child { font-weight: 700; }

/* 404 */
.lost { text-align: center; padding: 96px 0 64px; }
.lost img { width: 160px; margin: 0 auto 24px; }
.lost h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 12px; }
.lost p { color: var(--muted); margin-bottom: 28px; }

/* ---------- footer (the same on every page) ---------- */
/* at the bottom of the screen however short the page: the page's own room takes up what's left */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > main { flex: 1 0 auto; }
/* One slim row of small links in the middle, Terms, Privacy, Accessibility, Contact and Support, on every page as on
   the home page (8 November 2026, the owner: "can we make the footer the same as the home page on all pages ... keep it
   simple"). Hugo FM's logo and the company's name and number stay in the page, unshown: the company's details are on
   the Terms page, which the row links to. */
footer { margin-top: 32px; padding: 0 0 4px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: center; }
footer :is(.foot-main, .foot-base) { display: contents; }
footer .foot-brand { display: none; }
.foot-legal, .foot-help { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; }
.foot-legal a, .foot-help a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.foot-legal a:hover, .foot-help a:hover { text-decoration: underline; text-underline-offset: 4px; background: var(--card-hover); }
/* (on a phone, closer together, so the five keep to one row: each still 44 high and wider than that) */
@media (max-width: 420px) {
  .foot-legal, .foot-help { gap: 0; }
  .foot-legal a, .foot-help a { padding: 6px 5px; font-size: 0.85rem; }
}

/* ---------- the hub's look ----------
   The start and the player are one frosted panel over the site's background (the character in rows); inside it, flat
   pills and quiet controls, and one bright button: Play (and, playing, Speak). In high contrast the panel is black with
   a white line. */
body:has(.hub-page) .topbar { background: var(--bar); border-bottom-color: transparent; }
.hub-page .game-stage {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: var(--border-w) solid var(--glass-line);
  border-radius: 32px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.75);
}
.hub-page h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.hub-page .cover-title { color: var(--muted); font-weight: 700; }
/* the ways in: white pills with each provider's mark, then the one bright button */
.btn-provider {
  background: var(--provider);
  color: var(--provider-ink);
  border: var(--border-w) solid var(--provider-line);
  font-weight: 700;
}
.btn-provider:hover { background: var(--provider-hover); }
.provider-mark { width: 20px; height: 20px; flex: none; }
/* Play and the games raised, like keys you press (21 November 2026, the owner: "add a bit of 3d effect / class to the
   buttons"): an edge under each (a solid shadow in a darker shade), light from above, a lift on hover, and pressed
   down to its edge while held. Flat in high contrast (the tokens are transparent there); forced colours drop shadows. */
.hub-page .game-cover .play-button {
  border: var(--border-w) solid var(--go);
  background-color: var(--go);
  background-image: linear-gradient(180deg, var(--raise-light), transparent 60%);
  color: var(--go-ink);
  box-shadow: 0 8px 0 var(--go-edge), 0 22px 40px -16px var(--go-glow);
  margin-bottom: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.18s ease;
}
.hub-page .game-cover .play-button:hover {
  background-color: var(--go-hover);
  border-color: var(--go-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 0 var(--go-edge), 0 26px 44px -16px var(--go-glow);
}
.hub-page .game-cover .play-button:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 var(--go-edge), 0 10px 20px -12px var(--go-glow);
}
.hub-page .cover-games { gap: 14px; }
.hub-page .cover-games .pick {
  background-color: var(--card);
  background-image: linear-gradient(180deg, var(--pick-light), transparent 70%);
  box-shadow: 0 5px 0 var(--pick-edge), 0 12px 22px -16px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.18s ease;
}
.hub-page .cover-games .pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--pick-edge), 0 16px 26px -16px rgba(0, 0, 0, 0.45);
}
.hub-page .cover-games .pick:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--pick-edge), 0 4px 10px -8px rgba(0, 0, 0, 0.45);
}
/* playing: the controls quiet (no boxes), the line being said lit, the answer bar in pills */
.hub-page .stage-bar { background: transparent; border-bottom: var(--border-w) solid var(--glass-line); }
.hub-page .stage-link, .hub-page .tool, .hub-page .send {
  border-color: transparent;
  background: var(--quiet);
  border-radius: 999px;
}
.hub-page .stage-link:hover, .hub-page .tool:hover:not([aria-disabled="true"]), .hub-page .send:hover { background: var(--quiet-hover); border-color: transparent; }
.hub-page .tool[aria-disabled="true"] { border-style: solid; border-color: transparent; }
.hub-page .tool[data-paused] { background: var(--go); border-color: var(--go); color: var(--go-ink); }
.hub-page .feed .line { border-radius: 16px; }
.hub-page .feed .line.is-now { background: var(--quiet); border-color: transparent; box-shadow: inset 3px 0 0 var(--accent); }

/* A chat, as a messenger's: the game's lines are bubbles on the left, beside the character (Shouty), and the player's
   replies on the right, beside the profile icon; each picture once, at the end of a run of them. The pictures are
   decorative: nothing is read for them. The line being said keeps its accent bar. */
.hub-page .feed .line, .hub-page .feed .reply { position: relative; }
.hub-page .feed .line { align-self: flex-start; margin-left: 46px; background: var(--quiet); }
.hub-page .feed .line.is-now { background: var(--quiet-hover); }
.hub-page .feed .reply { margin-right: 46px; }
.hub-page .feed .line:not(:has(+ .line))::before,
.hub-page .feed .reply:not(:has(+ .reply))::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.hub-page .feed .line:not(:has(+ .line))::before {
  left: -46px;
  background: var(--quiet) url("/emblem.png") center / 92% no-repeat;
}
.hub-page .feed .reply:not(:has(+ .reply))::after {
  right: -46px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Ccircle cx='12' cy='10' r='3.25'/%3E%3Cpath d='M6.2 18.4c1.2-2.3 3.4-3.6 5.8-3.6s4.6 1.3 5.8 3.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Ccircle cx='12' cy='10' r='3.25'/%3E%3Cpath d='M6.2 18.4c1.2-2.3 3.4-3.6 5.8-3.6s4.6 1.3 5.8 3.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 420px) {
  .hub-page .feed .line { margin-left: 36px; }
  .hub-page .feed .reply { margin-right: 36px; }
  .hub-page .feed .line:not(:has(+ .line))::before,
  .hub-page .feed .reply:not(:has(+ .reply))::after { width: 28px; height: 28px; }
  .hub-page .feed .line:not(:has(+ .line))::before { left: -36px; }
  .hub-page .feed .reply:not(:has(+ .reply))::after { right: -36px; }
}
@media (prefers-contrast: more) {
  .hub-page .feed .line { border-color: var(--line-strong); }
}
@media (forced-colors: active) {
  .hub-page .feed .line { border: 1px solid CanvasText; }
  .hub-page .feed .reply:not(:has(+ .reply))::after { forced-color-adjust: none; background: CanvasText; }
}
.hub-page .answer-bar { gap: 8px; }
.hub-page .answer-bar input { border-radius: 999px; padding: 8px 20px; }
.hub-page .mic { border-radius: 999px; border-color: var(--go); background: var(--go); color: var(--go-ink); padding: 8px 18px; }
.hub-page .mic:hover { background: var(--go-hover); border-color: var(--go-hover); }
.hub-page .mic[data-listening] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--go); }
.hub-page .chip { border-width: var(--border-w); border-color: var(--line-strong); background: var(--quiet); font-weight: 700; }
.hub-page .chip:hover { background: var(--go); border-color: var(--go); color: var(--go-ink); }
/* The options once answered (main.js hold, as in the apps' 2.0.3): they stay where they are, paler, and pressing one does
   nothing, until the next turn's replace them. All games under the lobby's options: a row of its own, not an answer. */
.chips[data-held] .chip { opacity: 0.55; cursor: default; }
.hub-page .chips[data-held] .chip:hover { background: var(--quiet); border-color: var(--line-strong); color: var(--ink); }
.chips-games[hidden] { display: none; }
.chip-games { display: inline-flex; align-items: center; gap: 8px; }
.chip-games svg { width: 1.2em; height: 1.2em; flex: none; }
/* All games: its heading and Close at the top, the games under them, scrolling on their own */
.games-dialog { width: min(40rem, calc(100vw - 32px)); overflow: hidden; }
.games-dialog[open] { display: flex; flex-direction: column; }
.games-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 14px 24px;
  border-bottom: var(--border-w) solid var(--line);
}
.games-head h2 { font-size: 1.4rem; }
.games-head h2:focus { outline: none; }
.games-head form { margin: 0; }
.games-close { min-height: 44px; padding: 6px 18px; }
.games-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 20px; }
.games-note { line-height: 1.45; }
.games-note[hidden], .games-retry[hidden], .pick-list[hidden] { display: none; }
.games-retry { margin: 12px 0 0; }
.pick-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pick {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 14px;
  border: var(--border-w) solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pick:hover { border-color: var(--go); }
.pick-name { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.pick-about { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
@media (forced-colors: active) {
  .pick { border: 1px solid ButtonText; }
  .chips[data-held] .chip { opacity: 1; border-style: dashed; }
}
@media (prefers-contrast: more) {
  .hub-page .game-stage { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .hub-page .stage-link, .hub-page .tool, .hub-page .send, .hub-page .chip { border-color: #ffffff; }
}
/* a computer's screen that isn't tall: the card tighter, so it and the footer's row are in view */
@media (min-width: 700px) and (max-height: 860px) {
  .hub-page { gap: 10px; padding-top: 12px; padding-bottom: 8px; }
  .hub-page[data-phase="cover"] .game-stage { padding: 16px 20px 14px; }
  .hub-page .game-cover { gap: 8px; padding-top: 12px; }
  .hub-page .stage-head { gap: 6px; }
  .hub-page h1 { font-size: clamp(1.45rem, 3.4vw, 1.8rem); }
  .cover-ways .btn { min-height: 48px; }
}
/* a short screen (a laptop's, or a phone's under its browser's own bars): the start card tighter, so all of it and the
   footer's row are in view. On a short phone the emblem goes too, and the line under the heading and the one over the
   sign-in buttons are kept for screen readers only (the heading and the buttons still say what's here) */
@media (max-height: 720px) {
  .hub-page { gap: 10px; padding-top: 12px; padding-bottom: 8px; }
  .hub-page[data-phase="cover"] .game-stage { padding: 16px 20px 14px; }
  .hub-page .game-cover { gap: 8px; padding-top: 12px; }
  .hub-page .stage-head { gap: 6px; }
  .hub-page h1 { font-size: clamp(1.45rem, 3.4vw, 1.8rem); }
  .cover-ways .btn { min-height: 48px; }
}
@media (max-height: 600px) {
  .hub-page { padding-top: 8px; }
  .hub-page[data-phase="cover"] .game-stage { padding: 12px 16px; }
  .hub-page .game-cover { gap: 6px; padding-top: 8px; }
  .hub-page h1 { font-size: 1.35rem; }
}
@media (max-width: 599px) and (max-height: 820px), (max-height: 560px) {
  .hub-page[data-phase="cover"] :is(.play-lede, .cover-title) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hub-page .game-cover .play-button { font-size: 1.1rem; }
  .hub-page .game-cover .cover-note { font-size: 0.85rem; line-height: 1.4; }
}
/* The Games tab (games.html, made by build-pages.js): every game in one frosted panel like the home page's card, each a
   row with its name (a link to the game's own page: the whole row is the link), the kind of game it is, and a line
   about it, the rows divided by a line. The page scrolls. */
.games-list {
  display: grid;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: var(--border-w) solid var(--glass-line);
  border-radius: 32px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.75);
}
.games-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  padding: 16px 18px;
  border-radius: 24px;
}
.games-item + .games-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  border-top: var(--border-w) solid var(--glass-line);
}
.games-item:hover { background: var(--quiet-hover); }
.games-name { font-size: 1.2rem; line-height: 1.3; }
.games-name a { color: var(--ink); text-decoration: none; }
.games-name a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.games-item:hover .games-name a { text-decoration: underline; text-underline-offset: 4px; }
.games-name a:focus-visible { outline: none; }
.games-name a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; }
.games-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
/* (a game not out yet has two: on a row of their own, under its name, so the name keeps its line) */
.games-item:has(.games-soon) .games-tags { grid-column: 1 / -1; justify-content: flex-start; }
.games-type, .games-soon {
  padding: 2px 10px;
  border: var(--border-w) solid var(--glass-line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.games-type { background: var(--quiet); color: var(--lilac); }
.games-soon { color: var(--accent); }
.games-about { grid-column: 1 / -1; max-width: 62ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }
/* The Games tab itself: each game in full (21 November 2026: "way more detailed description of each game"), top to
   bottom: its name (the link, underlined: the row isn't one now, there's text to read), "Type of game:" and its type,
   its line, then How it works and the steps. */
.games-full .games-item { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; padding: 22px 24px; }
.games-full .games-item:hover { background: none; }
.games-full .games-name { font-size: 1.35rem; }
.games-full .games-name a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.games-full .games-name a:hover { color: var(--lilac); }
.games-full .games-name a::after { content: none; }
.games-full .games-name a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.games-full .games-tags { justify-content: flex-start; align-items: baseline; gap: 6px 8px; }
.games-kind { color: var(--muted); font-size: 0.92rem; font-weight: 700; }
.games-full .games-about { color: var(--ink); font-size: 1.05rem; }
.games-how-title { margin-top: 6px; font-size: 1rem; line-height: 1.3; }
.games-how { display: grid; gap: 6px; max-width: 68ch; margin: 0; padding-left: 1.4em; color: var(--muted); line-height: 1.55; }
@media (prefers-contrast: more) {
  .games-list { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
}
@media (max-width: 599px) {
  .games-list { padding: 4px; border-radius: 24px; }
  .games-item { padding: 14px; border-radius: 20px; }
  .games-item + .games-item::before { left: 14px; right: 14px; }
  .games-full .games-item { padding: 18px 14px; }
}
/* A game's own page (/games/trivia-war: build-pages.js gamePage): its name, kind, line and Play, then how to play, the
   game in other languages, and more like it in the Games tab's own panel. */
.game-head { display: grid; gap: 12px; justify-items: start; }
.game-head .games-tags { justify-content: flex-start; }
.game-go { margin-top: 6px; }
.game-go .btn { min-height: 56px; min-width: 15rem; font-size: 1.1rem; }
.game-how ol { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 1.5em; max-width: 62ch; line-height: 1.5; }
.game-langs ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 0; padding: 0; list-style: none; }
.game-langs a { display: inline-block; padding: 6px 0; }
.game-more .games-list { margin-top: 12px; }
.game-all { margin-top: 14px; }
/* The blog (/blog and /blog/<post>: build-pages.js blogIndex, blogPage): the list in the Games tab's panel, each post's
   day under its name; a post as the long pages are (page-head, then .doc), then Play and more posts */
.blog-day { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.blog-page .page-head { padding-bottom: 28px; }
.blog-post .doc h2 a, .blog-post .doc h3 a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.blog-play, .blog-more { max-width: var(--measure); margin: 40px auto 0; }
.blog-play {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: var(--border-w) solid var(--glass-line);
  border-radius: 24px;
  background: var(--glass);
}
.blog-play h2, .blog-more h2 { font-size: 1.35rem; }
.blog-play-go { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-more ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 1.2em; }
.blog-more a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.blog-more p { margin-top: 12px; }
/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .get-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "qr" "store" "for"; align-content: start; }
  .get-card .qr { margin-bottom: 8px; }
  .games { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .home {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "intro" "demo" "get" "games" "access" "faq";
    row-gap: 40px;
    padding-top: 24px;
  }
  .intro-play { display: inline-flex; }
  /* before Play, the phone is only as tall as what's in it */
  .phone-screen:has(.player[hidden]) { height: auto; }
  .get-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "qr store" "qr for"; align-content: center; }
  .get-card .qr { margin-bottom: 0; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* a phone can't scan its own screen: just the store buttons */
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) {
  .qr { display: none; }
  .get-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "store" "for"; }
}

@media (max-width: 760px) {
  .card { padding: 22px 20px; }
  .page-head { padding: 40px 0 28px; }
  .foot-legal { margin-right: 0; margin-left: -12px; }
}

@media (max-width: 600px) {
  .games { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .game { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .game .cover { width: 56px; height: 56px; border-radius: 14px; }
  .get, .access { padding: 18px 16px; }
  .get-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .store { justify-self: stretch; }
}

@media (max-width: 560px) {
  .contact .button { width: 100%; }
  th, td { padding: 9px 10px; }
  td:nth-child(2), td:nth-child(3) { white-space: nowrap; }
  td small { white-space: normal; }
}

@media (max-width: 440px) {
  .phone::before { inset: 10% 0; }
  .phone { padding: 8px; border-radius: 44px; }
  .phone-screen { border-radius: 36px; }
  .topbar-inner { gap: 8px; }
  .brand img { height: 34px; }
}
@media (max-width: 380px) {
  body { font-size: 1rem; }
  .player { padding: 0 8px 10px; }
  .tool { font-size: 0.72rem; }
}

/* ---------- less motion, from the device's setting ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .play-button:hover, .hub-page .game-cover .play-button:hover, .hub-page .cover-games .pick:hover { transform: none; }
}
/* ---------- Windows high contrast and other forced colours ---------- */
@media (forced-colors: active) {
  .topbar, footer { border-color: CanvasText; }
  .btn, .store, .store-mini, .tool, .chip, .send, .mic, .play-button, .card,
  .get, .game, .access, .phone, .phone-screen, .end-panel, .answer-bar input, .stage-link { border: 1px solid ButtonText; }
  .game-dialog { border: 2px solid CanvasText; }
  .team-bar li:first-child::before { background: CanvasText; }
  .intro-offer { border-left-color: CanvasText; }
  .status-dot { border-color: CanvasText; }
  .status-dot.is-live, .player-state::before { background: CanvasText; }
  .talk-circle::after { border-color: CanvasText; }
  .phone::before { display: none; }
  .feed .reply { border: 1px solid CanvasText; }
  .feed .line.is-now { border-color: Highlight; }
  .mic[aria-pressed="true"] { border: 3px solid Highlight; }
  .site-nav a[aria-current="page"] { text-decoration: underline; }
}

/* The App tab: a card like the home page's, "Get the app" and the two stores' buttons, big and square side by side (8
   November 2026, the owner: "Just do the 2 big buttons. and gert the app title. they can be like square shapre"); on a
   computer, the code to scan at its top */
.app-page { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 40px; }
.app-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 30rem);
  padding: 28px;
  border: var(--border-w) solid var(--line-strong);
  border-radius: 28px;
  background: var(--screen);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.app-card h1 { margin: 0; font-size: clamp(1.8rem, 4.4vw, 2.3rem); line-height: 1.1; }
.app-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; justify-self: stretch; margin: 0; }
.app-stores .store {
  grid-area: auto;
  justify-self: stretch;
  aspect-ratio: 1;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  text-align: center;
  white-space: normal;
}
.app-stores .store svg { width: 64px; height: 64px; }
.app-stores .store small { font-size: 0.95rem; }
.app-stores .store strong { font-size: 1.5rem; }
@media (max-width: 480px) {
  .app-card { padding: 22px 18px; }
  .app-stores { gap: 12px; }
  .app-stores .store { gap: 10px; padding: 12px; border-radius: 20px; }
  .app-stores .store svg { width: 48px; height: 48px; }
  .app-stores .store small { font-size: 0.8rem; }
  .app-stores .store strong { font-size: 1.15rem; }
}
@media (max-width: 359px) {
  .app-stores .store { padding: 8px; }
  .app-stores .store svg { width: 40px; height: 40px; }
  .app-stores .store small { font-size: 0.72rem; }
  .app-stores .store strong { font-size: 1rem; white-space: nowrap; }
}

/* The Store: Unlimited two ways, a card each (the yearly pass's ringed in the accent, with its promotion code's box),
   what the account has now above them, and for a guest the two ways to sign in first */
.store-page { display: grid; gap: 18px; padding-top: 28px; padding-bottom: 40px; }
.store-page h1 { margin: 0; }
.store-page .play-lede { margin: 0; }
.store-now {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: var(--border-w) solid var(--line-strong);
  font-weight: 700;
}
.store-now[hidden], .store-signin[hidden], .store-card[hidden], .store-page .account-message[hidden] { display: none; }
.store-signin { display: grid; gap: 12px; }
.store-signin h2 { margin: 0; }
.store-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; }
.store-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: var(--border-w) solid var(--line-strong);
  border-radius: 24px;
  background: var(--screen);
  box-shadow: var(--shadow-lg);
}
.store-card-main { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.store-card h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.store-card p { margin: 0; }
.store-price { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.store-price:empty { display: none; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.store-actions .btn[hidden], .store-code[hidden], .store-error[hidden] { display: none; }
.store-actions .btn[aria-disabled="true"], .store-code .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
/* (the pass's promotion code: its box and button side by side where there's room, what it does under them) */
.store-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.store-code label, .store-code .store-error, .store-code-ok { flex-basis: 100%; }
.store-code-ok { margin: 0; font-weight: 700; }
.store-code label { font-weight: 700; }
.store-code input {
  flex: 1 1 14rem;
  max-width: 24rem;
  min-height: 48px;
  padding: 8px 12px;
  border: var(--border-w) solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.store-code input[aria-invalid="true"] { border-color: var(--accent); border-width: 3px; }
.store-error { padding-left: 10px; border-left: 4px solid var(--accent); font-weight: 700; }

/* The top bar on a phone: the logo and the language on the first row, every link and Login (Profile) on the next, as
   "Play Online" is the longest yet. The links keep their 44 px height, and still wrap on the narrowest screens rather
   than shrink further. With the Store's link too (8 November 2026), the links are a little closer; on the narrowest
   screens closer still. With Contact as well (12 November 2026, the owner: "can we add contact in the header. so its
   easy to find"), the English links take a second row under 390 px, and the other languages' under 430 to 768 px:
   3 px beside each kept them on one row at 360 px, but the words then read as one line, so they wrap instead. */
@media (max-width: 480px) {
  .site-nav ul { column-gap: 0; }
  .site-nav a, .site-nav .nav-account-button { padding: 8px 6px; min-width: 44px; justify-content: center; font-size: 0.9rem; }
}
@media (max-width: 359px) {
  .site-nav a, .site-nav .nav-account-button { padding-left: 3px; padding-right: 3px; font-size: 0.85rem; }
}
