/* Games pages, r1 lane 2 (proposal for Mo). Page layout only: every component style comes from the Core
   (tokens.css, ambi-theme.css) and the games costume (../assets/games-costume.css).
   Copyright (c) 2026 Slate HQ Ltd. All rights reserved and asserted. */

html, body { margin: 0; }
body { font-family: var(--aos-font); color: var(--aos-ink); }
.icon { display: contents; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The page column sits between the Core rails; the bar floats below. */
.gp { max-width: 980px; margin: 0 auto; padding: 48px 40px 220px; display: flex; flex-direction: column; gap: 40px; box-sizing: border-box; }

/* Top strip on every game page: home, the today ring, hear it again. */
.gp-top { display: flex; align-items: center; gap: 16px; }
.gp-top .g-ring--small { margin-left: auto; }
.gp-top a { text-decoration: none; color: inherit; }

/* The guide speaking: guide, then the cue bubble. Words are for the grown-up; the sound is the instruction. */
.gp-say { display: flex; align-items: center; gap: 22px; }
.gp-say .g-guide { width: 150px; flex: none; }
.gp-say .g-cue { font-size: 24px; padding: 14px 26px 14px 14px; }
.gp-say .g-cue__sound { width: 60px; height: 60px; }
.gp-say .g-cue__sound svg { width: 30px; height: 30px; }
.gp-say--center { justify-content: center; }

/* The stage: the play itself, centred and generous. */
.gp-stage { position: relative; display: grid; justify-items: center; gap: 28px; padding: 44px 40px; border-radius: var(--g-radius-sheet); }
.aos-glass.gp-stage { display: grid; box-sizing: border-box; }
.gp-row { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.gp-row .g-letter-tile { width: 200px; }
.gp-note { font: 500 var(--g-text-small)/1.45 var(--g-font); color: var(--aos-ink-3); margin: 0; text-align: center; }

/* Step dots: how far through this game (a picture of progress, never a number to read). */
.gp-dots { display: flex; gap: 10px; justify-content: center; }
.gp-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--g-ring-track); }
.gp-dots i.on { background: var(--g-ring); }
.gp-dots i.now { box-shadow: 0 0 0 3px var(--aos-ground), 0 0 0 6px var(--g-ring); background: var(--g-ring); }

@media (max-width: 860px) {
  .gp { padding: 28px calc(var(--aos-rail-inset) + 6px) 200px; gap: 28px; }
  .gp-stage { padding: 28px 18px; gap: 22px; }
  .gp-row { gap: 14px; }
  .gp-row .g-letter-tile { width: 132px; }
  .gp-say { gap: 12px; }
  .gp-say .g-guide { width: 92px; }
  .gp-say .g-cue { font-size: 19px; white-space: normal; padding: 10px 18px 10px 10px; }
  .gp-say .g-cue__sound { width: 48px; height: 48px; }
}
@media (max-width: 420px) {
  /* Phone: the clean PLΔY mark takes its own centred line above Home, the ring and replay, so every target stays 72px. */
  .gp-top { flex-wrap: wrap; row-gap: 6px; }
  .gp-stage { grid-template-columns: minmax(0, 1fr); }  /* the stage never grows past the phone frame */
  .gp-top .g-wordmark { order: -1; flex-basis: 100%; height: 34px; aspect-ratio: auto; }
  .gp-row .g-letter-tile { width: 96px; padding: 6px; }
  .g-ring--small { width: 72px; height: 72px; font-size: 20px; }
  .g-ring--small::before { -webkit-mask: radial-gradient(circle, transparent 26px, #000 27px); mask: radial-gradient(circle, transparent 26px, #000 27px); }
}
