@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 200 1000;
}

:root {
  color-scheme: light;
  --canvas: #f7f7f8;
  --surface: #ffffff;
  --surface-soft: #efeff3;
  --text: #0b0b12;
  --muted: #666572;
  --line: #e2e1e8;
  --accent: #6d4aff;
  --accent-soft: #eee9ff;
  --shadow: 0 10px 28px rgb(22 18 45 / 8%);
  --shadow-hover: 0 16px 36px rgb(22 18 45 / 14%);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --page: min(100% - 2rem, 75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 6rem; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: "Nunito", system-ui, sans-serif; font-size: 1rem; line-height: 1.55; text-rendering: optimizeLegibility; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 0.2rem solid var(--accent); outline-offset: 0.2rem; border-radius: 0.35rem; }

.skip-link { position: fixed; z-index: 100; inset-block-start: 0.75rem; inset-inline-start: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--text); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 30; inset-block-start: 0; border-block-end: 1px solid color-mix(in srgb, var(--line) 76%, transparent); background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(18px); }
.nav-shell { inline-size: var(--page); min-block-size: 4.5rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); font-size: 1.08rem; font-weight: 900; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { inline-size: 2.2rem; block-size: 2.2rem; border-radius: 0.7rem; }
.primary-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); font-weight: 850; }
.primary-nav a { text-decoration: none; }
.language-link { padding: 0.45rem 0.72rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

h1, h2, h3 { margin-block: 0; line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); font-weight: 950; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.8rem); font-weight: 950; }
h3 { font-size: 1.25rem; font-weight: 900; }

.hero-line { margin-block: 1rem 1.25rem; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.15rem); font-weight: 650; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.store-badge { display: inline-flex; min-block-size: 2.5rem; align-items: center; }
.store-badge img { inline-size: auto; block-size: 2.5rem; }
.store-badge--google img { block-size: 3rem; margin-inline: -0.52rem; }

.art-scrim { position: absolute; inset: auto 0 0; min-block-size: 58%; padding: clamp(1rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to top, rgb(8 8 14 / 92%), rgb(8 8 14 / 58%) 55%, transparent); }
.art-scrim h2, .art-scrim h3 { max-inline-size: 21ch; color: #fff; }
.art-scrim p { max-inline-size: 38ch; margin-block: 0.35rem 0.75rem; color: rgb(255 255 255 / 88%); font-weight: 700; }
.art-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.art-chip { padding: 0.3rem 0.62rem; border: 1px solid rgb(255 255 255 / 28%); border-radius: 999px; background: rgb(0 0 0 / 28%); color: #fff; font-size: 0.76rem; font-weight: 900; backdrop-filter: blur(8px); }

.catalogue { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.shelf-section { inline-size: var(--page); margin-inline: auto; }
.shelf-section + .shelf-section, .shelf-category + .shelf-category { margin-block-start: clamp(4rem, 8vw, 7rem); }
.shelf-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-block-end: 1.35rem; }
.shelf-heading p { max-inline-size: 34rem; margin-block: 0.45rem 0; color: var(--muted); font-weight: 650; }
.section-link { flex: none; color: var(--accent); font-weight: 900; }
.one-phone-head { margin-block-end: clamp(2.5rem, 5vw, 4rem); padding-block-end: 1.5rem; border-block-end: 1px solid var(--line); }
.one-phone-head p { margin-block: 0.45rem 0; color: var(--muted); font-weight: 650; }
.category-title { margin-block-end: 1.15rem; font-size: clamp(1.55rem, 3vw, 2.15rem); }

.poster-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 16.5rem); gap: 1rem; overflow-x: auto; padding-block: 0.25rem 1.25rem; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.poster-track--compact { grid-auto-columns: minmax(15rem, 1fr); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: initial; overflow: visible; }
.poster-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; scroll-snap-align: start; transition: transform 180ms ease, box-shadow 180ms ease; }
.poster-card:hover { color: var(--text); box-shadow: var(--shadow-hover); transform: translateY(-0.2rem); }
.poster-art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-soft); }
.poster-art img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.poster-copy { padding: 1rem; }
.poster-copy h3 { font-size: 1.15rem; }
.poster-copy p { display: -webkit-box; min-block-size: 3em; margin-block: 0.4rem 0.8rem; overflow: hidden; color: var(--muted); font-size: 0.9rem; font-weight: 650; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { display: inline-flex; min-block-size: 1.85rem; align-items: center; padding-inline: 0.65rem; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 0.76rem; font-weight: 900; }
.chip--accent { background: var(--accent-soft); color: var(--accent); }
.age-badge { position: absolute; z-index: 2; inset-block-start: 0.7rem; inset-inline-end: 0.7rem; padding: 0.3rem 0.58rem; border: 1px solid rgb(255 255 255 / 45%); border-radius: 999px; background: rgb(11 11 18 / 86%); color: #fff; font-size: 0.75rem; font-weight: 1000; backdrop-filter: blur(8px); }

.square-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.square-card { position: relative; min-block-size: 15rem; overflow: hidden; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); background: #242331; box-shadow: var(--shadow); color: #fff; text-decoration: none; }
.square-card:hover { color: #fff; box-shadow: var(--shadow-hover); }
.square-card img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.square-card .art-scrim { padding: 1.25rem; }

.strip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.strip-card { position: relative; min-block-size: 10.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.strip-card:hover { color: var(--text); box-shadow: var(--shadow-hover); }
.strip-copy { position: relative; z-index: 2; inline-size: 62%; padding: 1.35rem; }
.strip-copy p { margin-block: 0.4rem 0.8rem; color: var(--muted); font-size: 0.92rem; font-weight: 650; }
.strip-art { position: absolute; z-index: 1; inset-block: 0; inset-inline-end: 0; inline-size: 52%; block-size: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 28%); mask-image: linear-gradient(to right, transparent, #000 28%); }

.site-footer { margin-block-start: clamp(4rem, 8vw, 7rem); border-block-start: 1px solid var(--line); background: var(--surface); }
.footer-shell { inline-size: var(--page); margin-inline: auto; padding-block: 2.75rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
.footer-brand { margin-block-end: 0.85rem; }
.footer-note, .footer-meta { color: var(--muted); }
.footer-note { margin-block: 0 1rem; font-weight: 650; }
.footer-links { display: grid; align-content: start; justify-content: end; grid-template-columns: repeat(2, minmax(8rem, auto)); gap: 0.7rem 2rem; }
.footer-links a { font-weight: 800; }
.footer-meta { inline-size: var(--page); margin-inline: auto; padding-block: 1rem 1.5rem; border-block-start: 1px solid var(--line); font-size: 0.9rem; }

.game-main { inline-size: var(--page); margin-inline: auto; padding-block: clamp(2rem, 5vw, 4.5rem); }
.game-hero { position: relative; overflow: hidden; min-block-size: clamp(22rem, 53vw, 42rem); border-radius: clamp(1.25rem, 3vw, 2.25rem); background: #242331; box-shadow: var(--shadow); color: #fff; }
.game-hero > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.game-hero__copy { position: absolute; inset: auto 0 0; z-index: 2; padding: clamp(1.35rem, 4vw, 3rem); background: linear-gradient(to top, rgb(8 8 14 / 94%), rgb(8 8 14 / 62%) 62%, transparent); }
.game-hero__copy h1 { max-inline-size: 18ch; color: #fff; }
.game-hero__copy p { margin-block: 0.5rem 1rem; color: rgb(255 255 255 / 88%); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; }
.game-info { max-inline-size: 46rem; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 5rem); }
.game-info h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.game-info p { margin-block: 1rem 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.game-info .game-mode-tagline { color: var(--ink); font-weight: 800; }
.game-info__mode + .game-info__mode { margin-block-start: 2.25rem; padding-block-start: 2.25rem; border-block-start: 1px solid var(--line); }
.game-download { margin-block-start: 2.25rem; padding: 1.5rem; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.game-download h2 { margin-block-end: 1rem; font-size: 1.45rem; }

.document-main { inline-size: var(--page); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); }
.document-hero { max-inline-size: 48rem; margin-block-end: clamp(3rem, 6vw, 5rem); }
.document-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.eyebrow { margin-block: 0 0.65rem; color: var(--accent); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.updated { margin-block: 0.9rem 0; color: var(--muted); font-weight: 750; }
.document-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 42rem); align-items: start; gap: clamp(2.5rem, 7vw, 7rem); }
.toc { position: sticky; inset-block-start: 6.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.toc h2 { font-size: 1rem; letter-spacing: 0; }
.toc ol { margin-block: 0.75rem 0; padding-inline-start: 1.35rem; }
.toc li + li { margin-block-start: 0.45rem; }
.toc a { color: var(--muted); font-size: 0.92rem; font-weight: 750; }
.legal-copy section + section { margin-block-start: 3rem; }
.legal-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.legal-copy p, .legal-copy li { color: var(--muted); }
.legal-copy h2 + p, .legal-copy h2 + ul, .legal-copy h2 + ol { margin-block-start: 0.9rem; }
.legal-copy h3 { margin-block: 1.75rem 0.5rem; font-size: 1.1rem; }
.legal-copy p { margin-block: 0.75rem 0; }
.legal-copy ul, .legal-copy ol { margin-block: 0.5rem 0; padding-inline-start: 1.25rem; }
.legal-copy li + li { margin-block-start: 0.5rem; }
.legal-copy strong { color: var(--text); font-weight: 800; }
.legal-copy a { overflow-wrap: anywhere; }
.document-hero .lede { margin-block: 1rem 0; color: var(--muted); font-size: 1.1rem; }
.contact-card { margin-block-start: 2rem; padding: 1.5rem; border-radius: var(--radius-md); background: var(--surface-soft); }
.contact-card h2 { font-size: 1.45rem; }

.not-found { inline-size: var(--page); min-block-size: 64vh; margin-inline: auto; padding-block: clamp(4rem, 12vw, 8rem); display: grid; place-items: center; text-align: center; }
.not-found__code { margin: 0; color: var(--accent); font-size: clamp(4.5rem, 18vw, 9rem); font-weight: 950; line-height: 0.85; }
.not-found h1 { margin-block-start: 1.25rem; font-size: clamp(2rem, 5vw, 3.4rem); }
.not-found p { max-inline-size: 34rem; margin-inline: auto; color: var(--muted); font-size: 1.08rem; }
.button { display: inline-flex; min-block-size: 3rem; align-items: center; justify-content: center; padding-inline: 1.2rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 900; text-decoration: none; }
.button:hover { color: #fff; }

@media (max-width: 56rem) {
  .poster-track--compact { grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
  .document-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 42rem) {
  :root { --page: min(100% - 1.25rem, 75rem); }
  .nav-shell { min-block-size: 4.1rem; }
  .primary-nav > a:not(.language-link) { display: none; }
  .hero-line { margin-block: 0.75rem 1rem; }
  .art-scrim { padding: 1rem; }
  .art-scrim p { margin-block-end: 0.55rem; font-size: 0.84rem; }
  .shelf-heading { align-items: start; flex-direction: column; gap: 0.35rem; }
  .poster-track, .poster-track--compact { grid-auto-columns: minmax(11.75rem, 72vw); }
  .square-grid, .strip-grid { grid-template-columns: 1fr; }
  .square-card { min-block-size: 13.5rem; aspect-ratio: 4 / 3; }
  .strip-card { min-block-size: 9.5rem; }
  .strip-copy { inline-size: 66%; padding: 1.1rem; }
  .footer-links { grid-template-columns: 1fr; }
  .game-main { padding-block-start: 0.75rem; }
  .game-hero { min-block-size: 29rem; }
  .game-hero > img { object-position: center; }
}


@media (prefers-reduced-motion: reduce) {
}
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .document-layout { grid-template-columns: 1fr; }
  .toc { position: static; box-shadow: none; }
}

/* ---- Revision 2 ---------------------------------------------------------------- */

/* The two badges sat touching: the Play badge's art carries its own padding, which the
   negative margin took back, and the row's gap was smaller than that. */
.store-row { gap: 1rem; }

/* Online rooms on a wide window: a grid of four rather than a row cut off at the edge
   with nothing saying it scrolls. */
@media (min-width: 56.01rem) {
  .poster-track:not(.poster-track--compact) {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}

/* Phones: a taller banner so the words fit, chips on one line, and no arrows over the
   names — a finger swipes, and the dots say where it is. */
@media (max-width: 42rem) {
  .art-chip { white-space: nowrap; }
}
@media (hover: none) {
}

/* The game page: what the game is, where to get it, and what else there is. */
.game-download { display: grid; gap: 1rem; }
.game-download h2 { margin: 0; }
.game-download p { margin: 0; }
.more-games { inline-size: var(--page); margin-inline: auto; padding-block-end: 1rem; }
.more-games h2 { margin-block-end: 1rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* The footer's badges at the size they are everywhere else. */
.site-footer .store-badge img { block-size: 2.75rem; }
.site-footer .store-badge--google img { block-size: 3.3rem; }
@media (min-width: 56.01rem) {
  .more-games .poster-track--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ---- Revision 3: the stage, the tray, a floating bar ---------------------------
   The page opens on one game at a time, full width, the way a game is shown on a store's
   front page — art first, words over it, and the row of icons that picks the next one.
   Everything below it stays quiet and light so the art is the colour. */

:root {
  --stage-ink: #ffffff;
  --stage-ink-soft: rgb(255 255 255 / 82%);
  --stage-glass: rgb(16 12 34 / 46%);
  --stage-line: rgb(255 255 255 / 22%);
  --bar-glass: rgb(255 255 255 / 82%);
}

/* The bar floats as a pill over whatever is under it, so the stage can run to the top. */
.site-header { position: sticky; inset-block-start: 0; z-index: 30; border: 0; background: none; backdrop-filter: none; padding-block: 0.75rem; pointer-events: none; }
.nav-shell { pointer-events: auto; min-block-size: 3.5rem; padding-inline: 0.6rem 0.5rem; border: 1px solid rgb(255 255 255 / 60%); border-radius: 999px; background: var(--bar-glass); box-shadow: 0 8px 30px rgb(22 18 45 / 12%); backdrop-filter: blur(18px) saturate(1.4); }
.brand img { inline-size: 2.4rem; block-size: 2.4rem; }
.language-link { background: var(--surface-soft); border-color: transparent; }
.home .site-header { margin-block-end: -5rem; }

.stage { position: relative; isolation: isolate; overflow: hidden; display: grid; min-block-size: clamp(32rem, 74vh, 46rem); background: #15121f; color: var(--stage-ink); }
.stage-slide { grid-area: 1 / 1; position: relative; display: grid; align-items: end; animation: stage-in 700ms ease both; }
.stage-slide[hidden] { display: none !important; }
@keyframes stage-in { from { opacity: 0.35; } to { opacity: 1; } }
.stage-art { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center 35%; z-index: -1; }
.stage-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(12 9 24 / 92%) 0%, rgb(12 9 24 / 55%) 38%, rgb(12 9 24 / 0%) 70%), linear-gradient(to right, rgb(12 9 24 / 55%), rgb(12 9 24 / 0%) 55%); }
.stage-copy { inline-size: var(--page); margin-inline: auto; padding-block: 8rem 8.5rem; display: grid; gap: 0.6rem; justify-items: start; }
.stage-kicker { margin: 0; color: var(--stage-ink-soft); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.stage-copy h2 { max-inline-size: 14ch; color: var(--stage-ink); font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 950; line-height: 1; text-wrap: balance; }
.stage-tagline { margin: 0; max-inline-size: 34ch; color: var(--stage-ink-soft); font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 750; }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-block-start: 0.6rem; }
.pill-button { display: inline-flex; align-items: center; min-block-size: 3rem; padding-inline: 1.4rem; border-radius: 999px; background: var(--stage-ink); color: #15121f; font-weight: 900; text-decoration: none; transition: transform 160ms ease; }
.pill-button:hover { color: var(--accent); transform: translateY(-1px); }
.stage .art-chip { min-block-size: 3rem; display: inline-flex; align-items: center; padding-inline: 1rem; font-size: 0.9rem; }

/* The picker: the five featured games as their app icons, the chosen one lit and running. */
.stage-picker { position: absolute; inset-inline: 0; inset-block-end: 1.5rem; inline-size: var(--page); margin-inline: auto; display: flex; gap: 0.5rem; justify-content: flex-end; }
.stage-pick { position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.9rem 0.35rem 0.35rem; border: 1px solid var(--stage-line); border-radius: 999px; background: var(--stage-glass); color: var(--stage-ink-soft); font-weight: 850; font-size: 0.88rem; cursor: pointer; backdrop-filter: blur(12px); transition: background 160ms ease, color 160ms ease; }
.stage-pick img { inline-size: 2.25rem; block-size: 2.25rem; border-radius: 0.7rem; }
.stage-pick:hover { color: var(--stage-ink); background: rgb(16 12 34 / 66%); }
.stage-pick[aria-selected="true"] { color: #15121f; background: var(--stage-ink); }
.stage-pick::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0; block-size: 3px; inline-size: 0; background: var(--accent); }
.stage.is-running .stage-pick[aria-selected="true"]::after { animation: stage-run var(--step, 6000ms) linear forwards; }
@keyframes stage-run { from { inline-size: 0; } to { inline-size: 100%; } }

/* The intro: what Aura is, the badges, and every game at a glance as its icon. */
.intro { inline-size: var(--page); margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 4rem) 0.5rem; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.intro h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 950; text-wrap: balance; }
.intro .hero-line { max-inline-size: 36ch; }
.tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.9rem 0.6rem; }
.tray-game { display: grid; justify-items: center; gap: 0.35rem; color: var(--text); text-align: center; text-decoration: none; font-size: 0.74rem; font-weight: 850; line-height: 1.2; }
.tray-game img { inline-size: 100%; max-inline-size: 4.25rem; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 6px 16px rgb(22 18 45 / 14%); transition: transform 160ms ease; }
.tray-game:hover img { transform: translateY(-3px) rotate(-2deg); }
.tray-game span { overflow-wrap: anywhere; }

/* "There's a liar among us": three wide banners side by side. */
.banner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.banner-card { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius-md); background: #15121f; color: #fff; box-shadow: var(--shadow); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.banner-card:hover { color: #fff; box-shadow: var(--shadow-hover); transform: translateY(-0.2rem); }
.banner-card > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.banner-card h4 { margin: 0; color: #fff; font-size: 1.3rem; font-weight: 900; }

@media (max-width: 56rem) {
  .intro { grid-template-columns: 1fr; }
  .tray { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .banner-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(16rem, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block-end: 0.5rem; }
  .banner-card { scroll-snap-align: start; }
}

@media (max-width: 42rem) {
  .site-header { padding-block: 0.5rem; }
  .stage { min-block-size: 36rem; }
  .stage-copy { padding-block: 6.5rem 7.5rem; }
  .stage-copy h2 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .stage-picker { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; inline-size: 100%; padding-inline: 0.625rem; inset-block-end: 1rem; }
  .stage-pick { flex: none; }
  .stage-pick span { display: none; }
  .stage-pick { padding: 0.3rem; }
  .stage-pick[aria-selected="true"] span { display: inline; }
  .stage-pick[aria-selected="true"] { padding-inline-end: 0.9rem; }
  .tray { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .stage-slide { animation: none; }
  .stage-pick::after { display: none; }
}

/* The width and height attributes set a height that beat aspect-ratio and stretched the icons. */
.tray-game img { block-size: auto; object-fit: cover; }

/* On a phone the tray is one row that scrolls, not five rows of icons before the first game. */
@media (max-width: 42rem) {
  .tray { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -0.625rem; padding-inline: 0.625rem; padding-block-end: 0.4rem; }
  .tray::-webkit-scrollbar { display: none; }
  .tray-game { flex: 0 0 4.4rem; scroll-snap-align: start; }
}

/* Seven online games in a grid of four left a hole; the first one takes two columns as a
   banner, so the shelf is two full rows. */
.banner-card--wide { aspect-ratio: auto; min-block-size: 100%; }
@media (min-width: 56.01rem) {
  .poster-track .banner-card--wide { grid-column: span 2; }
}
@media (max-width: 56rem) {
  .poster-track .banner-card--wide { scroll-snap-align: start; }
}
.banner-card--wide h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* ---- Phones ----------------------------------------------------------------------- */
@media (max-width: 42rem) {
  /* A 16px gutter, not 10. */
  :root { --page: min(100% - 2rem, 75rem); }

  /* Rows that scroll sideways run to the screen edge instead of stopping at the gutter with
     a card cut in half there, and still start in line with the text above them. */
  .poster-track--compact, .banner-row, .tray {
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
  }
  .stage-picker { padding-inline: 1rem; }

  /* Online rooms: two columns, the first game a banner across both, so all seven are on
     the page rather than six of them behind a swipe. */
  .poster-track:not(.poster-track--compact) {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    overflow: visible;
  }
  .poster-track .banner-card--wide { grid-column: span 2; aspect-ratio: 16 / 10; min-block-size: 0; }
  .poster-track:not(.poster-track--compact) .poster-copy { padding: 0.75rem; }
  .poster-track:not(.poster-track--compact) .poster-copy h3 { font-size: 1rem; }
  .poster-track:not(.poster-track--compact) .poster-copy p { font-size: 0.82rem; min-block-size: 2.6em; }

  .store-badge img { block-size: 2.6rem; }
  .store-badge--google img { block-size: 3.1rem; }
}

/* Very small phones: the stage words and the two badges must still fit. */
@media (max-width: 22rem) {
  .stage-copy h2 { font-size: 2.1rem; }
  .stage-actions .art-chip { display: none; }
  .tray-game { flex-basis: 3.9rem; }
}

/* ---- Tablets and small laptops (42–56rem) ------------------------------------------ */
.stage-pick span { white-space: nowrap; }
@media (min-width: 42.01rem) and (max-width: 56rem) {
  /* Online rooms as the desktop grid of four, rather than a row cut off at the edge. */
  .poster-track:not(.poster-track--compact) {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    overflow: visible;
  }
  .poster-track .banner-card--wide { grid-column: span 2; }
  .poster-track:not(.poster-track--compact) .poster-copy { padding: 0.75rem; }
  .poster-track:not(.poster-track--compact) .poster-copy h3 { font-size: 1rem; }
  /* The picker shows names only on the chosen game, so five fit on one line. */
  .stage-pick span { display: none; }
  .stage-pick { padding: 0.3rem; }
  .stage-pick[aria-selected="true"] span { display: inline; }
  .stage-pick[aria-selected="true"] { padding-inline-end: 0.9rem; }
  .poster-track--compact, .banner-row { margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
}

/* The brand keeps its name on the smallest phones. */
@media (max-width: 22rem) {
  .brand { font-size: 0.98rem; gap: 0.5rem; }
  .brand img { inline-size: 2rem; block-size: 2rem; }
}
