/* Reset, document defaults, accessibility basics + the mockup's type rules (b-tribun.html). */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-canvas);
  color: var(--color-text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font);
  font-feature-settings: "cv11";
  min-height: 100vh;
  overflow-x: hidden;          /* nothing may scroll the page sideways */
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

a { color: var(--brand-ink); }

ul, ol { list-style: none; padding: 0; }

/* Headings: from the mockup (TZ §3 scale) */
h1, h2, h3, h4 { color: var(--color-navy); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 800; letter-spacing: -.018em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 17px; line-height: 24px; font-weight: 700; }
p { text-wrap: pretty; }

.num, .odd, .seat, .chip-count { font-variant-numeric: tabular-nums; }

/* Visible focus is not optional, whatever the mockup shows (TZ §3: 3px focus ring). */
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-modal);
  padding: 10px 14px; border-radius: var(--r8);
  background: #fff; color: var(--color-navy); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* A hidden control inside a component must stay hidden even when the component
   sizes its inputs (`.field input { width:100% }`): the doubled class wins. */
.visually-hidden.visually-hidden { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }

/* A hidden element must stay hidden even when a component sets display. */
[hidden][hidden] { display: none !important; }

/* Tap targets: 24×24 minimum (WCAG 2.2 AA, 2.5.8) by a pseudo-element, never by padding. */
.tap-target { position: relative; }
.tap-target::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%;
  height: 100%; min-height: 24px; z-index: 1;
}

/* Lucide icons inline via icon(): inherit colour, size from CSS */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }

/* age gate declined: game content hidden, a safe info view instead (TZ §6) */
body.age-declined main { display: none; }
.age-declined-note { padding: 72px 0; }
.age-declined-note .card { max-width: 640px; }
.age-declined-note h2 { margin-top: 16px; }
.age-declined-note p { color: var(--color-muted); margin-top: 10px; }
.age-declined-note form { margin-top: 20px; }
