/*
| A Game of Friends — public information page at https://agameoffriends.com/ (package 040, splash slice; D-180).
| The approved kit's tokens and type (design/UI_DESIGN_SPEC_v1.md §§1–3, 6): Void/Panel backgrounds, cyan primary
| action, restrained magenta/yellow/green accents, self-hosted Chakra Petch (display) and Barlow (body), latin subset,
| SIL OFL 1.1 (assets/licenses). Standalone: nothing here is shared with the play application's stylesheets, nothing is
| loaded from another origin, and no rule can reach the game or welcome pages.
|
| Accessibility: text on Void/Panel at ≥ 4.5:1 (muted #AAB4C3 on #0C1626 is 8.3:1), status in words, visible focus,
| targets of at least 52 px, wrapping instead of clipping from 320 px, and no animation at all (the only transitions are
| hover colours, disabled under prefers-reduced-motion).
*/

@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/chakra-petch-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/chakra-petch-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/barlow-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/barlow-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/barlow-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/barlow-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --void: #050914;
    --panel: #0c1626;
    --raised: #13233a;
    --line: #1e3a5f;
    --cyan: #22d3ee;
    --blue: #2f80ed;
    --magenta: #ff2bb5;
    --warm: #f9c74f;
    --green: #00e676;
    --text: #f5f7fa;
    --muted: #aab4c3;
    --display: 'Chakra Petch', ui-sans-serif, system-ui, sans-serif;
    --body: 'Barlow', ui-sans-serif, system-ui, sans-serif;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --measure: 68rem;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--void); color: var(--text); font: 400 1.0625rem/1.5 var(--body); overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--cyan); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; display: inline-flex; align-items: center; min-height: 52px; padding: .5rem 1.125rem; border-radius: 12px; background: var(--cyan); color: var(--void); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { max-width: var(--measure); margin: 0 auto; padding: 1rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; }
.brand { display: inline-flex; align-items: center; min-height: 52px; border-radius: 8px; }
.brand img { width: auto; height: 56px; aspect-ratio: 750 / 400; border-radius: 6px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.nav-link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 .5rem; color: var(--text); font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav-link:hover { color: var(--cyan); text-decoration: underline; }

/* ---------- Buttons (kit gof-btn / gof-btn-primary) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .5rem 1.375rem; border-radius: 14px; border: 1px solid var(--blue); background: transparent; color: var(--text); font: 600 1.0625rem/1.2 var(--body); text-align: center; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.btn:hover { border-color: var(--cyan); }
.btn-primary { border: 0; background: var(--cyan); color: var(--void); font: 700 1.25rem/1.2 var(--display); min-height: 60px; padding-left: 1.75rem; padding-right: 1.75rem; }
.btn-primary:hover { background: #4ee0f5; }
.btn-outline { border-color: var(--blue); }
/* D-195: the standard anonymous account entry (a neutral ringed avatar and a visible label), linking to the play site's
   sign-in. The root never shows a personal identity: signed-in menus live on the play site. */
.account-entry { display: inline-flex; align-items: center; gap: .625rem; min-height: 52px; padding: .25rem .875rem .25rem .25rem; border: 2px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-weight: 700; text-decoration: none; }
.account-entry:hover { border-color: var(--cyan); }
.account-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 3px solid var(--line); background: var(--raised); color: var(--muted); }

/* ---------- Main ---------- */
main { max-width: var(--measure); margin: 0 auto; padding: 1rem var(--gutter) 3rem; display: flex; flex-direction: column; gap: 3.5rem; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem); line-height: 1.08; max-width: 18ch; margin-top: .75rem; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); line-height: 1.15; }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.hero { padding-top: 1.5rem; }
.lead { margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 1.75rem; }
.actions .btn { flex: 1 1 14rem; max-width: 22rem; }
.status { margin-top: 1rem; display: inline-flex; align-items: flex-start; gap: .5rem; padding: .5rem .875rem; border-radius: 18px; border: 1px solid var(--warm); color: var(--warm); font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.status::before { content: ''; width: .5rem; height: .5rem; margin-top: .45rem; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- The illustration: shared screen and phone (sample data only) ---------- */
.demo { display: flex; flex-direction: column; gap: .75rem; }
.demo-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 1.25rem; align-items: start; }
.screen, .phone { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; display: flex; flex-direction: column; gap: .875rem; }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.screen-kicker { font-family: var(--display); font-weight: 600; font-size: .9375rem; letter-spacing: .05em; text-transform: uppercase; color: var(--cyan); }
.screen-timer { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 5px solid var(--cyan); display: grid; place-items: center; font: 700 1.25rem var(--display); font-variant-numeric: tabular-nums; }
.screen-question { padding: 1rem 1.125rem; border-radius: 14px; background: var(--raised); font-weight: 700; font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); line-height: 1.2; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tile { display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .375rem .875rem; border-radius: 14px; border: 3px solid var(--c); background: var(--cbg); font-weight: 600; font-size: 1.0625rem; line-height: 1.15; }
.tile b { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--c); color: var(--void); display: grid; place-items: center; font: 700 1.375rem var(--display); }
[data-letter='A'] { --c: var(--cyan); --cbg: #0a2530; }
[data-letter='B'] { --c: var(--magenta); --cbg: #2a0c22; }
[data-letter='C'] { --c: var(--warm); --cbg: #2b2410; }
[data-letter='D'] { --c: var(--green); --cbg: #0b2a1e; }
.screen-foot { color: var(--muted); font-size: .9375rem; }
.phone { max-width: 22rem; width: 100%; justify-self: center; }
.phone-head { display: flex; align-items: center; gap: .625rem; }
.avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 3px solid var(--magenta); background: var(--raised); display: grid; place-items: center; font: 700 .875rem var(--display); }
.phone-name { font-weight: 700; }
.phone-score { margin-left: auto; color: var(--warm); font: 700 1rem var(--display); font-variant-numeric: tabular-nums; }
.phone-hint { color: var(--muted); font-size: .9375rem; }
.pad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
.pad-btn { min-height: 4.5rem; border-radius: 16px; border: 3px solid var(--c); background: var(--cbg); color: var(--c); display: grid; place-items: center; font: 700 2.25rem/1 var(--display); }
.pad-btn.is-chosen { background: var(--c); color: var(--void); }
.phone-foot { color: var(--muted); font-size: .875rem; }
figcaption { color: var(--muted); font-size: .9375rem; }

/* ---------- How it works ---------- */
.how { display: flex; flex-direction: column; gap: 1.5rem; scroll-margin-top: 1rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.step-number { position: absolute; left: 1.125rem; top: 1.125rem; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--cyan); color: var(--void); display: grid; place-items: center; font: 700 1.25rem var(--display); }
.step p { color: var(--muted); }
.note { max-width: 60ch; color: var(--muted); }

/* ---------- Hosts and venues ---------- */
.hosts { padding: 2rem; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hosts p { max-width: 56ch; color: var(--muted); font-size: 1.125rem; }
.hosts .btn { margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { max-width: var(--measure); margin: 0 auto; padding: 1.75rem var(--gutter) 2.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .125rem; color: var(--muted); font-size: .9375rem; }
.footer-brand { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }
/* Footer links are full-height targets (packet criterion 5: at least 52 px), left-aligned in the column. */
.site-footer p { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 52px; padding: 0; }

/* ---------- Widths ---------- */
@media (max-width: 900px) {
    .demo-inner { grid-template-columns: minmax(0, 1fr); }
    .phone { justify-self: start; }
    .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .site-header { padding-top: .75rem; }
    .brand img { height: 48px; }
    .actions .btn { flex-basis: 100%; max-width: none; }
    .screen, .phone, .hosts { padding: 1rem; }
    .tiles { grid-template-columns: minmax(0, 1fr); }
    .tile { min-height: 3.25rem; }
    .pad-btn { min-height: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
