/* Page-level layout shared by every page. Brand tokens come from tokens.css. */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--vo-font, system-ui, sans-serif); line-height: 1.55; color: var(--vo-text, #1a2733); background: var(--vo-surface, #f4f7fa); }
[hidden] { display: none !important; }
a { color: var(--vo-blue-dark, #2278a0); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--vo-blue-dark, #2278a0); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--vo-font-heading, serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 10; background: #fff; padding: 0.5rem 0.75rem; border-radius: 6px; }
.skip:focus { top: 0.5rem; }
main { padding-block: 2rem 4rem; }
main:focus { outline: none; }
section + section { margin-top: 3rem; }
.lede { font-size: 1.15rem; color: var(--vo-text-muted, #627385); max-width: 40rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.button { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; font: inherit; font-weight: 600; padding: 0.6rem 1.4rem; border-radius: 999px; border: 0; background: var(--vo-blue-dark, #2278a0); color: #fff; text-decoration: none; cursor: pointer; }
.button.secondary { background: transparent; color: var(--vo-blue-dark, #2278a0); border: 2px solid currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
/* A pill whose label wraps on a narrow screen keeps it centred. */
.actions .button { justify-content: center; text-align: center; }
/* For unbroken strings (an email) that would otherwise overflow a narrow panel. */
.break-anywhere { overflow-wrap: anywhere; }
/* Read by screen readers, not shown: e.g. "(opens in a new tab)". */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.banner { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1.5rem; background: var(--vo-blue-light, #e6f4fb); }
.banner.error { background: var(--vo-red-light, #fdecec); color: var(--vo-red-dark, #8a1f1f); }
/* Alert regions ship empty and stay in the page, so filling one is announced. */
.banner:empty { display: none; }
.signin-panel { max-width: 34rem; padding: 1.5rem; border-radius: 14px; background: var(--vo-bg, #fff); border: 1px solid var(--vo-border, #dde6ee); }
.signin-panel h2 { margin-top: 0; }
.signin-panel h2:focus { outline: none; }
.fine { font-size: 0.9rem; color: var(--vo-text-muted, #627385); }
/* Reserve the header's height before its module loads, so the page doesn't jump. */
arcade-header:not(:defined) { display: block; min-height: 52px; background: #13233a; }
.loading { color: var(--vo-text-muted, #627385); }
footer { padding: 2rem 0 max(2rem, calc(1rem + env(safe-area-inset-bottom, 0px))); color: var(--vo-text-muted, #627385); font-size: 0.9rem; border-top: 1px solid var(--vo-border, #dde6ee); }
.game-notes { max-width: 46rem; margin-top: 2rem; }
/* Reserve the game's height before its module loads, so the notes below don't jump. */
arcade-calorie-cannon:not(:defined) { display: block; min-height: 34rem; }
/* Reserve the game's height before its module loads, so the footer doesn't jump. */
arcade-name-that-ingredient:not(:defined) { display: block; min-height: 22rem; }
arcade-fuel-run:not(:defined) { display: block; min-height: 24rem; }
