/* generated by css_links() from fonts.css, tokens.css, base.css, layout.css, components.css, pages/home.css, wide.css, motion.css — edit the sources, not this file */

/* ── fonts.css ── */
/* self-hosted fonts of the approved mockup (Google Fonts, OFL) — node tools/fonts-pull.js; variable ranges (wght/wdth) set by hand — the script writes a single weight.
   Archivo: subset (Latin + Polish + typography) and instanced to wght 800–900 / wdth 108–125 — the only
   range the design uses — with harfbuzz (subset-font): 172 KB → 31 KB. Re-pulling fonts undoes this. */
@font-face{font-family:'Archivo';font-style:normal;font-weight:800 900;font-stretch:108% 125%;font-display:swap;src:url('../fonts/archivo-d-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-weight:800 900;font-stretch:108% 125%;font-display:swap;src:url('../fonts/archivo-d-latin.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:'Figtree';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/figtree-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/figtree-400-latin.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}

/* ── tokens.css ── */
/* Design tokens — WetArena.
 * Source: <kit>/mockups/wetarena.pl/a2-arena.html (approved 2026-10-19, round 1:
 * A «Arena» with the cool concrete background instead of the beige one).
 * Mockup values moved as they are; anything the mockup did not define is marked «added».
 */
:root {
  /* ── Colour: from the mockup ─────────────────────────────────────────── */
  --color-bg: #ECEFF3;              /* concrete — page background */
  --color-surface-1: #F5F7FA;       /* zigzag band, list rows */
  --color-surface-2: #E1E6EC;       /* tinted band, chips counters, icon tiles */
  --color-surface-3: #D3DAE2;       /* range track */
  --color-card: #FBFCFD;            /* cards, inputs */
  --color-ink: #121417;             /* text, dark bands, footer */
  --color-ink-2: #24272B;           /* lead text, cards on dark */
  --color-muted: #575A5B;           /* secondary text — 6.1:1 on --color-bg */
  --color-line: color-mix(in oklab, var(--color-ink) 14%, transparent);
  --color-brand: #FF4F1F;           /* signal orange — fills only, ink text on it */
  --color-brand-deep: #C8340C;      /* orange for text on light backgrounds (4.8:1) */
  --color-accent: #0F6B4F;          /* field green */
  --color-accent-soft: color-mix(in oklab, var(--color-accent) 12%, var(--color-bg));
  --color-brand-soft: color-mix(in oklab, var(--color-brand) 14%, var(--color-bg));
  /* on dark (ink) bands */
  --color-on-dark: #E8ECF1;
  --color-on-dark-muted: #B4BCC6;
  --color-on-dark-line: rgba(255, 255, 255, .12);

  /* ── Colour: added ───────────────────────────────────────────────────── */
  --color-error: #B3261E;
  --color-success: var(--color-accent);
  --color-warn: #7A5300;
  --color-warn-soft: color-mix(in oklab, #B57B00 14%, var(--color-bg));
  --focus-ring: 0 0 0 4px color-mix(in oklab, var(--color-brand) 22%, transparent);

  /* ── Typography: from the mockup ─────────────────────────────────────── */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.2rem, 1rem + 4vw, 4.6rem);
  --fs-h1-page: clamp(2.1rem, 1.2rem + 3vw, 3.8rem);   /* added: inner pages */
  --fs-h2: clamp(1.9rem, 1.1rem + 2.4vw, 3.3rem);
  --fs-h2-article: clamp(1.6rem, 1.15rem + 1.4vw, 2.35rem);  /* added: long-read H2 */
  --fs-h3: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  --fs-lead: clamp(1.02rem, .95rem + .3vw, 1.18rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-tag: .78rem;
  --stretch-display: 118%;
  --stretch-hero: 122%;
  --lh-tight: .98;
  --lh-base: 1.6;
  --tracking-display: -.03em;

  /* ── Space: from the mockup (8px rhythm) ─────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --sec: clamp(56px, 7vw, 104px);   /* section padding */
  --cut: clamp(28px, 4vw, 64px);    /* diagonal section cut */

  /* ── Shape, depth ────────────────────────────────────────────────────── */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 1px rgba(18,20,23,.05), 0 2px 6px rgba(18,20,23,.06), 0 10px 24px -12px rgba(18,20,23,.14);
  --shadow-2: 0 2px 4px rgba(18,20,23,.06), 0 14px 30px -10px rgba(18,20,23,.22), 0 36px 60px -30px rgba(18,20,23,.28);

  /* ── Container: from the mockup ──────────────────────────────────────── */
  --wrap: 1240px;
  --gut: clamp(16px, 3vw, 32px);
  --measure: 720px;                 /* added: long-read column, TZ 680–760 */
  --util-h: 36px;

  /* ── Motion: ease from the mockup, durations added ───────────────────── */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 300ms;
  --dur-reveal: 600ms;

  /* ── Layers: added ───────────────────────────────────────────────────── */
  --z-header: 50;
  --z-tabbar: 40;
  --z-menu: 60;
  --z-overlay: 90;
  --z-modal: 100;
  --z-toast: 110;
}

/* Breakpoints cannot be custom properties in media queries. Reference widths
   live in kit.config.json → breakpoints; the mockup switches at:
   --bp-small: 480px  --bp-phone: 700px  --bp-tablet: 900px  --bp-laptop: 1100px  --bp-desktop: 1440px */

/* ── base.css ── */
/* Reset, document defaults, accessibility basics. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;         /* anchors land below the sticky header (TZ §8.4) */
}

body {
  background-color: var(--color-bg);
  /* concrete grain: a 5px dot grid from the mockup */
  background-image: radial-gradient(color-mix(in oklab, var(--color-ink) 7%, transparent) .6px, transparent .8px);
  background-size: 5px 5px;
  color: var(--color-ink);
  font: 400 var(--fs-body)/var(--lh-base) var(--font-body);
  -webkit-font-smoothing: antialiased;
  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; }
button { cursor: pointer; }

/* Headings share the display face of the mockup; size comes from the component. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: var(--stretch-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
/* pretty wrapping only on short leads — on a 3000-word long read it costs ~0.5 s of layout */
.lead, .sec-head p, .hero-lead p { text-wrap: pretty; }

a { color: inherit; }

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

/* Visible focus is not optional. */
:focus-visible { outline: 2.5px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  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(--radius-s);
  background: var(--color-ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.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 added 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;
}

.nw { white-space: nowrap; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── layout.css ── */
/* Page-level structure: container, header (centered split), mobile menu,
 * zigzag sections, inner-page head, footer, mobile tab bar.
 * Moved from the approved mockup (a2-arena.html). */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ── header ───────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: var(--z-header); transition: transform var(--dur-slow) var(--ease); }
.util { height: var(--util-h); background: var(--color-ink); color: #E4E9EE; font-size: .8rem; }
.util .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.util-l { display: flex; align-items: center; gap: 10px; letter-spacing: .02em; min-width: 0; }
.util-l span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.util-r { display: flex; align-items: center; gap: 6px; }
.util-r .btn { --h: 26px; padding: 0 12px; font-size: .78rem; }
.util-r .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.util-r .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.util-r .btn:hover { transform: none; }
.util-r .btn::before { content: ""; position: absolute; inset: -9px 0; }   /* 44px tap zone without growing the bar */
.util-user { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.util-user .icon { width: 1em; height: 1em; }

.mainbar {
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-slow), border-color var(--dur-slow);
}
.mainbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: var(--space-5); }
.nav { display: flex; gap: 4px; }
.nav-r { justify-content: flex-end; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color var(--dur-base), color var(--dur-base);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px;
  background: var(--color-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current]::after { transform: scaleX(1); }

/* logo: source/logo.png (trimmed wordmark) */
.logo { display: inline-flex; align-items: center; text-decoration: none; transition: transform var(--dur-slow) var(--ease); transform-origin: center; }
.logo picture { display: block; }
.logo-img { display: block; width: auto; height: 30px; }
.mmenu-top .logo-img { height: 24px; }
.ftr .logo-img { height: 34px; }

.mainbar .burger { display: none; }
.hdr.is-shrunk { transform: translateY(calc(-1 * var(--util-h))); }
.hdr.is-shrunk .mainbar { box-shadow: 0 10px 30px -18px rgba(18, 20, 23, .35); border-bottom-color: var(--color-line); }
.hdr.is-shrunk .logo { transform: scale(.86); }

/* ── mobile menu (full-screen sheet) ─────────────────────────────────── */
.mmenu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; padding: var(--space-4) var(--gut) var(--space-5);
  background: var(--color-bg); overflow-y: auto;
  /* hidden by the [hidden] attribute (app.js); no visibility:hidden here — it would
     block focus() into the sheet in the frame before .is-open is added */
  opacity: 0; transform: translateY(-12px);
  transition: opacity .25s, transform .25s var(--ease);
}
.mmenu.is-open { opacity: 1; transform: none; }
.mmenu-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.mmenu-nav { display: flex; flex-direction: column; margin-top: var(--space-5); border-top: 1px solid var(--color-line); }
.mmenu-nav a {
  display: flex; justify-content: space-between; align-items: center; min-height: 64px;
  border-bottom: 1px solid var(--color-line); text-decoration: none;
  font: 800 1.6rem/1 var(--font-display); font-stretch: 115%; letter-spacing: -.02em;
  opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mmenu.is-open .mmenu-nav a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu-nav a:nth-child(2) { transition-delay: 40ms; }
.mmenu.is-open .mmenu-nav a:nth-child(3) { transition-delay: 80ms; }
.mmenu.is-open .mmenu-nav a:nth-child(4) { transition-delay: 120ms; }
.mmenu-nav .num { flex: none; white-space: nowrap; margin-left: 12px; font: 600 .8rem/1 var(--font-body); color: var(--color-muted); letter-spacing: .06em; }
.mmenu-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.mmenu-sub a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--color-card); border: 1px solid var(--color-line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.mmenu-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }
.mmenu-cta .btn { --h: 52px; font-size: 1rem; }
.mmenu-note { margin-top: 14px; font-size: .85rem; color: var(--color-muted); display: flex; gap: 8px; align-items: center; }

/* ── zigzag sections (signature: diagonal cuts) ──────────────────────── */
/* the band paints its own background and is clipped itself — so the colour behind
   the text is a real background (measurable contrast), not a pseudo-element */
.zz {
  position: relative; isolation: isolate; padding-block: calc(var(--sec) + var(--cut) * .5);
  background-color: var(--zz-bg, var(--color-surface-1));
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.zz--r { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); }
.zz--tint { --zz-bg: var(--color-surface-2); }
.zz--plain { background-color: transparent; clip-path: none; }
.zz--tight { padding-block: var(--sec); }

/* ── inner page head ─────────────────────────────────────────────────── */
.page-head { position: relative; overflow-x: clip; padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
.page-head .rings { width: min(820px, 110vw); right: -18%; top: -30%; }
.page-head .wrap { position: relative; z-index: 1; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--color-muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 14px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .6; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; font-weight: 600; color: var(--color-ink); }
.crumbs a:hover { color: var(--color-brand-deep); }
.page-head h1 { margin-top: var(--space-4); max-width: 18ch; font-size: var(--fs-h1-page); font-stretch: var(--stretch-hero); letter-spacing: -.04em; line-height: .95; }
.page-head .lead { margin-top: var(--space-4); max-width: 62ch; font-size: var(--fs-lead); color: var(--color-ink-2); }
.page-head .fact { margin-top: var(--space-5); }

/* inner page body: reading column + sticky side index */
.article { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.article-side { position: sticky; top: 110px; display: grid; gap: var(--space-4); }

/* ── footer ───────────────────────────────────────────────────────────── */
.ftr {
  position: relative; overflow: hidden; margin-top: var(--space-8);
  padding: 120px 0 28px; background: var(--color-ink); color: #CBD2DA;
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}
.ftr::before {
  content: ""; position: absolute; width: 1000px; height: 440px; left: 50%; top: -300px; transform: translateX(-50%);
  border-radius: 50%; border: 1.5px solid rgba(255, 79, 31, .45); outline: 1.5px solid rgba(255, 255, 255, .08); outline-offset: 40px;
}
.ftr .wrap { position: relative; }
.ftr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 48px; flex-wrap: wrap; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--color-on-dark-line); }
.ftr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.ftr h2 { font: 700 .85rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.ftr ul { display: grid; gap: 4px; }
.ftr ul a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: #CBD2DA; transition: color var(--dur-base); }
.ftr ul a:hover { color: #fff; }
.ftr-about { margin-top: 18px; max-width: 42ch; font-size: .92rem; }
.ftr-cookie { margin-top: var(--space-4); }
.ftr-cookie .btn { --h: 40px; color: #fff; border-color: rgba(255, 255, 255, .25); }
.ftr-cookie .btn:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.ftr-data {
  margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px;
  padding: 20px 0; border-top: 1px solid var(--color-on-dark-line); font-size: .86rem;
}
.ftr-data dt { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.ftr-data dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.ftr-data a { color: #fff; }
.ftr-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  padding: 20px 0; border-block: 1px solid var(--color-on-dark-line); font-size: .86rem;
}
.ftr-band div { display: flex; gap: 10px; align-items: flex-start; }
.ftr-band .icon { color: var(--color-brand); margin-top: 2px; }
.ftr-band a { color: #fff; font-weight: 600; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: .8rem; color: #97A0AB; }

/* ── back to top ──────────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: var(--z-tabbar);
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--color-ink); color: #fff; box-shadow: var(--shadow-2);
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base);
}
.to-top:hover { transform: translateY(-3px); }
.to-top .icon { width: 1.2em; height: 1.2em; }

/* ── mobile tab bar ───────────────────────────────────────────────────── */
.tabbar { display: none; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav a { padding: 0 10px; font-size: .9rem; }
}
@media (max-width: 900px) {
  .util { display: none; }
  .hdr.is-shrunk { transform: none; }
  .hdr.is-shrunk .logo { transform: none; }
  .mainbar .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .nav { display: none; }
  .mainbar .burger { display: inline-grid; }
  .logo { justify-self: start; }
  .logo-img { height: 24px; }
  .article { grid-template-columns: minmax(0, 1fr); }
  .article-side { position: static; order: -1; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: var(--z-tabbar); left: 10px; right: 10px; bottom: 10px; padding: 6px;
    border-radius: 20px; background: color-mix(in oklab, var(--color-ink) 94%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    border: 0; border-radius: 14px; background: transparent; color: #D5DBE2; text-decoration: none;
    font-size: .7rem; font-weight: 600; transition: background-color var(--dur-base), color var(--dur-base);
  }
  .tabbar .icon { width: 1.25em; height: 1.25em; }
  .tabbar [aria-current], .tabbar a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .tabbar .tb-cta { background: var(--color-brand); color: var(--color-ink); }
  body { padding-bottom: 84px; }
  .to-top { bottom: 88px; right: 14px; }
}
@media (max-width: 1100px) { .ftr-data { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid > div:last-child { grid-column: 1 / -1; }
}

/* ── inner page body & closing CTA ───────────────────────────────────── */
.page-body { padding-block: clamp(32px, 5vw, 64px); }
.page-body .zz { margin-inline: calc(-1 * var(--gut)); }
.page-cta { padding-block: 0 clamp(16px, 3vw, 32px); }
.page-body--flush { padding-top: 0; }
/* how-it-works: 5 steps + live card scheme */
.hiw-actions { margin-top: 24px; }
.hiw-fig-head { margin-bottom: 20px; }
.hiw-card { max-width: 250px; }
.hiw-notes { margin-top: 18px; }

/* ── components.css ── */
/* Reusable pieces. From the mockup: buttons, sector tags & rings, stats, chips,
 * search, game card, ribbon card, calculator, sector card, FAQ, dialog, tabs,
 * fields, success. Added in the same language (S3.2): table, prose, steps,
 * checklist, notice, tiles, pagination, toast, cookie banner, age gate. */

/* ── icons ────────────────────────────────────────────────────────────── */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 18px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  background: transparent; color: inherit;
  font: 700 .95rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-base), color var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-brand { background: var(--color-brand); color: var(--color-ink); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 8px 18px -8px color-mix(in oklab, var(--color-brand) 80%, transparent); }
.btn-brand:hover { box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 26px -10px color-mix(in oklab, var(--color-brand) 90%, transparent); }
.btn-ink { background: var(--color-ink); color: #fff; }
.btn-ink:hover { background: var(--color-ink-2); }
.btn-ghost { border-color: var(--color-line); color: var(--color-ink); }
.btn-ghost:hover { border-color: var(--color-ink); background: var(--color-card); }
.btn-light { background: var(--color-bg); color: var(--color-ink); }
.btn-sm { --h: 34px; padding: 0 14px; font-size: .85rem; }
.btn-sm::before { content: ""; position: absolute; inset: -5px 0; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .spin { display: none; animation: spin .8s linear infinite; }
.btn.is-busy .spin { display: inline-block; }
.btn.is-busy { pointer-events: none; opacity: .85; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--color-line); background: var(--color-card); color: var(--color-ink);
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base), background-color var(--dur-base);
}
.icon-btn:hover { border-color: var(--color-ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--color-brand-deep); }
.link-arrow .icon { transition: transform var(--dur-base) var(--ease); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* ── age badge ────────────────────────────────────────────────────────── */
.age { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-brand); color: inherit; font: 800 .72rem/1 var(--font-display); font-stretch: 110%; }

/* ── sector tag & ring (signature: arena rings, «Sektor» labels) ─────── */
.sector-tag, .sector {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 var(--fs-tag)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted);
}
.sector-tag .dot { width: 22px; height: 14px; border-radius: 50%; border: 2px solid var(--color-brand); display: inline-block; }
.sector-ring {
  position: relative; display: grid; place-items: center; width: 48px; height: 32px; flex: none;
  border: 2px solid var(--color-ink); border-radius: 50%;
  font: 900 .95rem/1 var(--font-display); font-stretch: 125%; color: var(--color-ink); letter-spacing: 0;
}
.sector-ring::before { content: ""; position: absolute; inset: -6px -8px; border-radius: 50%; border: 1.5px solid var(--color-brand); transform: rotate(-12deg); transition: transform .6s var(--ease); }
.sec-head:hover .sector-ring::before { transform: rotate(168deg); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head-l { max-width: 680px; }
.sec-head h2 { margin-top: 16px; font-size: var(--fs-h2); }
.sec-head p { margin-top: 14px; color: var(--color-muted); max-width: 60ch; }

/* ── arena rings (hero/page-head background) ─────────────────────────── */
.rings { position: absolute; z-index: 0; pointer-events: none; width: min(1100px, 120vw); aspect-ratio: 1.7; right: -22%; top: 6%; }
.rings i { position: absolute; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--color-ink) 13%, transparent); animation: spin var(--d, 140s) linear infinite; }
.rings i:nth-child(1) { inset: 0; --d: 220s; }
.rings i:nth-child(2) { inset: 7%; --d: 180s; animation-direction: reverse; border-style: dashed; border-color: color-mix(in oklab, var(--color-ink) 18%, transparent); }
.rings i:nth-child(3) { inset: 14%; border-width: 2px; border-color: color-mix(in oklab, var(--color-brand) 55%, transparent); --d: 150s; }
.rings i:nth-child(4) { inset: 21%; animation: breathe 9s ease-in-out infinite; }
.rings i:nth-child(5) { inset: 28%; border-color: color-mix(in oklab, var(--color-accent) 40%, transparent); border-width: 2px; --d: 120s; animation-direction: reverse; }
.rings i:nth-child(6) { inset: 35%; background: radial-gradient(closest-side, color-mix(in oklab, var(--color-brand) 14%, transparent), transparent); border: 0; animation: breathe 7s ease-in-out infinite; }

/* ── stats ────────────────────────────────────────────────────────────── */
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--color-card); box-shadow: var(--shadow-1); border: 1px solid var(--color-line); }
.stat b { font: 800 1.35rem/1 var(--font-display); font-stretch: 118%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--color-muted); }

/* ── chips & search ───────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--color-line); background: var(--color-card);
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base), transform var(--dur-base) var(--ease);
}
.chip:hover { border-color: var(--color-ink); }
.chip .icon { width: 1.1em; height: 1.1em; }
.chip .c { font-variant-numeric: tabular-nums; font-size: .75rem; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--color-surface-2); color: var(--color-muted); transition: background-color var(--dur-base), color var(--dur-base); }
.chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.chip[aria-pressed="true"] .c { background: var(--color-brand); color: var(--color-ink); }
.search { position: relative; flex: 0 1 280px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 14px 0 42px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-line); background: var(--color-card); font: 500 .92rem var(--font-body); color: var(--color-ink);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.search input:focus { outline: none; border-color: var(--color-ink); box-shadow: var(--focus-ring); }

/* ── game card ────────────────────────────────────────────────────────── */
.ggrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.gc {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-card); border-radius: var(--radius-l); border: 1px solid var(--color-line); box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.gc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.gc.is-entering { animation: cardIn .4s var(--ease) both; }
.gc-media { position: relative; margin: 8px 8px 0; border-radius: calc(var(--radius-l) - 6px); overflow: hidden; aspect-ratio: 1; background: var(--color-surface-2); isolation: isolate; }
.gc-media picture, .gc-media img { width: 100%; height: 100%; }
.gc-media img { object-fit: cover; transition: transform .5s var(--ease); }
.gc:hover .gc-media img { transform: scale(1.05); }
.gc-media::after {
  content: ""; position: absolute; width: 140%; aspect-ratio: 1.5; left: -20%; bottom: -62%;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.8); outline: 1.5px solid rgba(255,255,255,.45); outline-offset: 10px;
  transform: translateY(30%) scale(.9); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none;
}
.gc:hover .gc-media::after { transform: none; opacity: 1; }
.gc-fav {
  position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: color-mix(in oklab, var(--color-card) 88%, transparent); color: var(--color-ink);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); transition: transform var(--dur-base) var(--ease), color var(--dur-base);
}
.gc-fav::before { content: ""; position: absolute; inset: -2px; }
.gc-fav:hover { transform: scale(1.08); }
.gc-fav[aria-pressed="true"] { color: var(--color-brand-deep); }
.gc-fav[aria-pressed="true"] .icon { fill: currentColor; }
.gc-fav.pop .icon { animation: pop .45s var(--ease); }
.gc-cat {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--radius-pill); background: var(--color-ink); color: #fff;
  font: 700 .75rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 0 0 2px var(--color-card), 0 0 0 3.5px var(--color-ink);
}
.gc-seat {
  position: absolute; left: 8px; top: 8px; z-index: 2; padding: 6px 8px; border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-card) 88%, transparent);
  font: 800 .75rem/1 var(--font-display); font-stretch: 118%; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.gc-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.gc-body h3 { font-size: 1.02rem; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.1; }
.gc-body p { font-size: .82rem; color: var(--color-muted); }
.gc-info {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin-top: auto;
  border-radius: var(--radius-pill); border: 1.5px solid var(--color-line); background: transparent; font-weight: 700; font-size: .82rem;
  transition: background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.gc-body .gc-info { margin-top: 10px; }
.gc-info:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.gc-info .icon { width: 1.05em; height: 1.05em; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--color-muted); border: 1.5px dashed var(--color-line); border-radius: var(--radius-l); }
.empty .btn { margin-top: var(--space-4); }
.more-row { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.more-row .btn .icon { transition: transform .25s var(--ease); }
.more-row .btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.fav-count { font-size: .9rem; color: var(--color-muted); display: inline-flex; gap: 6px; align-items: center; }
.fav-count b { color: var(--color-ink); font-variant-numeric: tabular-nums; }

/* ── dark band + ribbon ───────────────────────────────────────────────── */
.band { --zz-bg: var(--color-ink); color: var(--color-on-dark); }
.band .sector { color: var(--color-on-dark-muted); }
.band .sector-ring { border-color: #fff; color: #fff; }
.band .sec-head p { color: var(--color-on-dark-muted); }
.band .sec-head .disc { color: var(--color-ink); }
.disc { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-m); background: var(--color-brand); color: var(--color-ink); font-weight: 800; font-size: .95rem; line-height: 1.3; }
.sec-head .disc { margin-top: 18px; }
.rib-wrap { position: relative; }
.rib { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: none; outline-offset: 6px; }
.rib::-webkit-scrollbar { display: none; }
.rc {
  position: relative; overflow: hidden; flex: 0 0 280px; scroll-snap-align: start;
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 14px;
  border-radius: var(--radius-l); background: var(--color-ink-2); border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s var(--ease), border-color .25s;
}
.rc:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.22); }
.rc::after { content: ""; position: absolute; right: -50px; top: -36px; width: 150px; height: 96px; border-radius: 50%; border: 1.5px solid rgba(255,79,31,.4); outline: 1px solid rgba(255,255,255,.08); outline-offset: 10px; }
.rc img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.rc-n { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--av, var(--color-brand)); color: var(--color-ink); font: 800 .75rem/1 var(--font-display); }
.rc-g { font-size: .86rem; color: #C5CCD5; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-m { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: .75rem; }
.rc-t { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; color: var(--color-on-dark); }
.rc-t .icon { width: 1em; height: 1em; }
.rc-p { padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.25); color: #D5DBE2; letter-spacing: .04em; }
.rib-ctl { display: flex; gap: 8px; align-items: center; }
.band .icon-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.band .icon-btn:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.rib-progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 8px; }
.rib-progress i { display: block; height: 100%; background: var(--color-brand); transform-origin: left; transform: scaleX(.2); transition: transform var(--dur-base); }

/* three-pillar strip under the ribbon (TZ §5.6) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: var(--space-7); }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: var(--radius-l); border: 1px solid var(--color-on-dark-line); background: rgba(255,255,255,.03); }
.pillar .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--color-brand); }
.pillar b { display: block; color: #fff; font: 800 1.05rem/1.2 var(--font-display); font-stretch: 112%; }
.pillar span { display: block; margin-top: 4px; font-size: .9rem; color: var(--color-on-dark-muted); }

/* ── calculator (range sliders) ───────────────────────────────────────── */
.calc { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-l); background: var(--color-card); box-shadow: var(--shadow-2); border: 1px solid var(--color-line); overflow: hidden; isolation: isolate; }
.calc::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 170px; right: -120px; top: -96px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--color-brand) 50%, transparent); outline: 1.5px solid var(--color-line); outline-offset: 20px; }
.calc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.calc-top h3 { font-size: 1.25rem; font-stretch: 112%; }
.lvl { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); font-weight: 700; font-size: .8rem; background: var(--color-accent-soft); color: var(--color-accent); transition: background-color .25s, color .25s; }
.lvl[data-l="mid"] { background: var(--color-warn-soft); color: var(--color-warn); }
.lvl[data-l="high"] { background: var(--color-brand-soft); color: var(--color-brand-deep); }
.field-r { margin-top: 24px; }
.field-r label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: .95rem; }
.field-r output { font: 800 1.3rem/1 var(--font-display); font-stretch: 115%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 6px 0 0; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--color-ink) var(--p), var(--color-surface-3) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--color-surface-3); }
.range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--color-ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 22px; margin-top: -7px; border-radius: 50%; background: var(--color-brand); border: 3px solid var(--color-card); box-shadow: 0 0 0 1.5px var(--color-ink), 0 4px 10px rgba(0,0,0,.25); transition: transform .15s; }
.range::-moz-range-thumb { width: 26px; height: 18px; border-radius: 50%; background: var(--color-brand); border: 3px solid var(--color-card); box-shadow: 0 0 0 1.5px var(--color-ink), 0 4px 10px rgba(0,0,0,.25); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--color-ink), 0 0 0 6px color-mix(in oklab, var(--color-accent) 35%, transparent); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1.5px var(--color-ink), 0 0 0 6px color-mix(in oklab, var(--color-accent) 35%, transparent); }
.scale-l { display: flex; justify-content: space-between; font-size: .75rem; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.res { position: relative; overflow: hidden; margin-top: 28px; padding: 22px; border-radius: var(--radius-m); background: var(--color-ink); color: #fff; }
.res::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 150px; border-radius: 50%; border: 1.5px solid rgba(255,79,31,.5); outline: 1px solid rgba(255,255,255,.1); outline-offset: 14px; }
.res-k { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-on-dark-muted); font-weight: 700; }
.res-v { margin-top: 8px; font: 800 clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem)/1 var(--font-display); font-stretch: 122%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.res-v small { font-size: .45em; letter-spacing: 0; margin-left: .15em; color: var(--color-brand); }
.res-f { margin-top: 10px; font-size: .88rem; color: #C5CCD5; font-variant-numeric: tabular-nums; }
.meter { margin-top: 18px; position: relative; }
.meter-t { height: 12px; border-radius: 12px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter-t i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--color-accent), #4FB08A 40%, var(--color-brand)); transform-origin: left; transform: scaleX(.1); transition: transform .45s var(--ease); }
.meter-s { display: flex; justify-content: space-between; margin-top: 6px; font-size: .75rem; color: #97A0AB; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--color-muted); }
.calc-note .icon { color: var(--color-accent); margin-top: 2px; }

/* ── numbered rows (calculator copy, steps) ───────────────────────────── */
.rows { display: grid; gap: 12px; }
.rows li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: var(--radius-m); background: var(--color-surface-1); border: 1px solid var(--color-line); }
.rows .n, .ring-n { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 50%; border: 1.5px solid var(--color-ink); font: 800 .75rem/1 var(--font-display); font-stretch: 115%; font-variant-numeric: tabular-nums; }
.rows li b { display: block; margin-bottom: 2px; }
.rows li span { font-size: .92rem; color: var(--color-muted); }

/* ── sector card ──────────────────────────────────────────────────────── */
.sgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.sc {
  grid-column: span 4; position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-radius: var(--radius-l); background: var(--color-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.sc:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.sc::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -50px; width: 180px; height: 116px; border-radius: 50%; border: 1.5px solid var(--color-line); outline: 1.5px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: 12px; transition: transform .5s var(--ease); }
.sc:hover::after { transform: rotate(-12deg) scale(1.08); }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--color-surface-2); }
.sc-num { font: 800 .72rem/1 var(--font-display); font-stretch: 115%; letter-spacing: .1em; color: var(--color-muted); text-transform: uppercase; }
.sc h3 { font-size: 1.35rem; font-stretch: 112%; margin-top: 6px; }
.sc p { color: var(--color-muted); font-size: .95rem; }
.sc .link-arrow { margin-top: auto; padding-top: 6px; }
.sc--wide { grid-column: span 6; }
.sc--third { grid-column: span 4; }
.sc--brand { background: var(--color-brand); border-color: transparent; }
.sc--brand p, .sc--brand .sc-num { color: color-mix(in oklab, var(--color-ink) 82%, var(--color-brand)); }
.sc--brand .sc-ic { background: rgba(18,20,23,.12); }
.sc--brand .link-arrow { color: var(--color-ink); }
.sc--brand::after { border-color: rgba(18,20,23,.22); outline-color: rgba(18,20,23,.12); }
.sc--green { background: var(--color-accent); color: #fff; border-color: transparent; }
.sc--green p, .sc--green .sc-num { color: #D4E8E0; }
.sc--green .sc-ic { background: rgba(255,255,255,.14); }
.sc--green .link-arrow { color: #fff; }
.sc--green::after { border-color: rgba(255,255,255,.3); outline-color: rgba(255,255,255,.15); }
.sc ul { display: grid; gap: 6px; margin-top: 4px; font-size: .92rem; }
.sc ul li { display: flex; gap: 8px; align-items: flex-start; }
.sc ul li .icon { width: 1.05em; height: 1.05em; margin-top: 3px; color: var(--color-accent); }
.sc--green ul li .icon { color: #fff; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-m); background: var(--color-card); border: 1px solid var(--color-line); transition: box-shadow .25s, border-color .25s; scroll-margin-top: 110px; }
.faq details[open] { box-shadow: var(--shadow-1); border-color: color-mix(in oklab, var(--color-ink) 30%, transparent); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 18px; cursor: pointer; font-weight: 700; font-size: 1.02rem; border-radius: var(--radius-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; display: grid; place-items: center; width: 40px; height: 28px; border-radius: 50%; border: 1.5px solid var(--color-ink); transition: transform var(--dur-slow) var(--ease), background-color var(--dur-base), border-color var(--dur-base); }
.faq summary .pm .icon { width: 1em; height: 1em; }
.faq details[open] summary .pm { background: var(--color-brand); border-color: var(--color-brand); }
.faq summary .pm .icon { transition: transform var(--dur-slow) var(--ease); }
.faq details[open] summary .pm .icon { transform: rotate(45deg); }
.faq .ans { padding: 0 18px 18px; color: var(--color-muted); animation: fadeUp .3s var(--ease); }
.faq .ans p + p { margin-top: 10px; }
.faq .ans a { color: var(--color-brand-deep); font-weight: 600; }

/* ── notices ──────────────────────────────────────────────────────────── */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-m); background: var(--color-accent-soft); color: var(--color-accent); font-weight: 600; font-size: .95rem; }
.note .icon { margin-top: 1px; }
.note--warn { background: var(--color-warn-soft); color: var(--color-warn); }
.note--brand { background: var(--color-brand); color: var(--color-ink); font-weight: 800; }
.note--ink { background: var(--color-ink); color: #fff; }
.note--ink .icon { color: var(--color-brand); }
.note--legal { background: var(--color-warn-soft); color: var(--color-warn); border: 1.5px dashed color-mix(in oklab, var(--color-warn) 40%, transparent); }
.note p + p { margin-top: 6px; }
.ph { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--color-warn-soft); color: var(--color-warn); overflow-wrap: anywhere; }

/* ── table (semantic, horizontal scroll on phones with an indicator) ──── */
.tbl { position: relative; margin-block: var(--space-5); border-radius: var(--radius-l); border: 1px solid var(--color-line); background: var(--color-card); box-shadow: var(--shadow-1); }
.tbl-scroll { overflow-x: auto; border-radius: inherit; }
.tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.tbl caption { padding: 16px 18px 0; text-align: left; font-weight: 700; color: var(--color-muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.tbl thead th { font: 800 .8rem/1.2 var(--font-display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); background: var(--color-surface-1); }
.tbl tbody th { font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr { transition: background-color var(--dur-base); }
.tbl tbody tr:hover { background: var(--color-surface-1); }
.tbl-hint { display: none; align-items: center; gap: 6px; padding: 10px 18px; font-size: .8rem; color: var(--color-muted); border-top: 1px solid var(--color-line); }
.tbl-hint .icon { width: 1em; height: 1em; animation: nudge 1.6s var(--ease) infinite; }
.tbl.is-scrollable .tbl-hint { display: flex; }

/* ── prose (long-read column) ─────────────────────────────────────────── */
.prose { max-width: var(--measure); color: var(--color-ink-2); font-size: 1.05rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: var(--fs-h2-article); color: var(--color-ink); scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: var(--fs-h3); color: var(--color-ink); font-stretch: 110%; scroll-margin-top: 110px; }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose a { color: var(--color-brand-deep); font-weight: 600; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-ink); }
.prose strong { color: var(--color-ink); }
.prose ul, .prose ol { display: grid; gap: .55em; }
.prose ul > li { position: relative; padding-left: 28px; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 10px; border-radius: 50%; border: 2px solid var(--color-brand); }
.prose ol { counter-reset: n; }
.prose ol > li { position: relative; padding-left: 52px; counter-increment: n; min-height: 28px; }
.prose ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: -.05em; display: grid; place-items: center; width: 40px; height: 28px; border-radius: 50%; border: 1.5px solid var(--color-ink); font: 800 .72rem/1 var(--font-display); font-stretch: 115%; }
.prose .tbl, .prose .note, .prose .checklist, .prose .tiles, .prose .steps { margin-top: 1.4em; }
.prose .sec-label { display: block; margin-top: 3em; }
.prose .sec-label + h2 { margin-top: .5em; }

/* checklist card */
.checklist { padding: 20px 22px; border-radius: var(--radius-l); background: var(--color-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-1); }
.checklist h3, .checklist .checklist-t { margin: 0 0 12px; font: 800 1.1rem/1.2 var(--font-display); font-stretch: 112%; color: var(--color-ink); }
.checklist ul { display: grid; gap: 10px; }
.prose .checklist ul > li { padding-left: 34px; }
.prose .checklist ul > li::before { width: 22px; height: 22px; top: .1em; border-radius: 7px; border: 0; background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* tiles (3 info cards inside the long read) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { position: relative; overflow: hidden; isolation: isolate; padding: 18px; border-radius: var(--radius-l); background: var(--color-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tile::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -34px; width: 120px; height: 78px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--color-brand) 45%, transparent); }
.tile .icon { color: var(--color-brand-deep); width: 1.5em; height: 1.5em; }
.tile b { display: block; margin-top: 10px; font: 800 1.08rem/1.2 var(--font-display); font-stretch: 112%; color: var(--color-ink); }
.tile p { margin-top: 6px; font-size: .92rem; color: var(--color-muted); }
.prose .tile p { margin-top: 6px; }

/* game mini-cards inside the long read */
.mini-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-game { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-m); background: var(--color-card); border: 1px solid var(--color-line); text-decoration: none; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base); }
.mini-game:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.mini-game img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.mini-game b { display: block; font-size: .92rem; line-height: 1.2; color: var(--color-ink); }
.mini-game span { font-size: .78rem; color: var(--color-muted); }

/* side index (sticky TOC on inner pages) */
.side-toc { padding: 18px; border-radius: var(--radius-l); background: var(--color-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-1); }
.side-toc-t { display: flex; align-items: center; gap: 8px; font: 800 .85rem/1 var(--font-display); font-stretch: 115%; letter-spacing: .06em; text-transform: uppercase; }
.side-toc ol { margin-top: 12px; display: grid; gap: 2px; counter-reset: s; }
.side-toc li { counter-increment: s; }
.side-toc a { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; min-height: 40px; padding: 4px 8px; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--color-ink-2); transition: background-color var(--dur-base), color var(--dur-base); }
.side-toc a::before { content: counter(s, decimal-leading-zero); font: 800 .7rem/1 var(--font-display); font-stretch: 115%; color: var(--color-muted); }
.side-toc a:hover { background: var(--color-surface-1); }
.side-toc a.is-active { background: var(--color-ink); color: #fff; }
.side-toc a.is-active::before { color: var(--color-brand); }
.side-card { padding: 20px; border-radius: var(--radius-l); background: var(--color-ink); color: var(--color-on-dark); position: relative; overflow: hidden; isolation: isolate; }
.side-card::after { content: ""; position: absolute; z-index: -1; right: -50px; bottom: -60px; width: 200px; height: 130px; border-radius: 50%; border: 1.5px solid rgba(255,79,31,.5); outline: 1px solid rgba(255,255,255,.1); outline-offset: 12px; }
.side-card b { display: block; color: #fff; font: 800 1.15rem/1.2 var(--font-display); font-stretch: 112%; }
.side-card p { margin-top: 8px; font-size: .9rem; color: var(--color-on-dark-muted); }
.side-card .btn { margin-top: 14px; }

/* CTA band at the end of a page */
.cta-band { position: relative; overflow: hidden; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-l); background: var(--color-brand); color: var(--color-ink); clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 100%); }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -80px; top: -90px; width: 380px; height: 220px; border-radius: 50%; border: 2px solid rgba(18,20,23,.22); outline: 1.5px solid rgba(18,20,23,.12); outline-offset: 22px; }
.cta-band h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); max-width: 22ch; }
.cta-band p { margin-top: 8px; max-width: 52ch; }

/* ── pagination ───────────────────────────────────────────────────────── */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: var(--space-5); }
.pager button { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 50%/50%; border-radius: var(--radius-pill); border: 1.5px solid var(--color-line); background: var(--color-card); font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base); }
.pager button:hover { border-color: var(--color-ink); }
.pager button[aria-current="page"] { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .next { display: inline-flex; gap: 6px; padding: 0 16px; }

/* ── overlays & dialogs ───────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: 12px;
  background: rgba(18, 20, 23, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .28s var(--ease);
}
.overlay.is-open { opacity: 1; }
.overlay__panel {
  position: relative; overflow: auto; isolation: isolate;
  width: min(500px, 100%); max-height: calc(100dvh - 24px);
  background: var(--color-bg); color: var(--color-ink);
  border-radius: var(--radius-l); box-shadow: var(--shadow-2);
  transform: translateY(16px) scale(.97); transition: transform .28s var(--ease);
}
.overlay.is-open .overlay__panel { transform: none; }
.overlay__panel::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 200px; right: -150px; top: -120px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--color-brand) 45%, transparent); outline: 1.5px solid var(--color-line); outline-offset: 18px; pointer-events: none; }
.dlg-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.dlg-in { padding: 28px 28px 26px; }
.dlg-in h2 { font-size: 1.7rem; font-stretch: 118%; margin-top: 14px; }
.dlg-in > p { margin-top: 10px; color: var(--color-muted); }
.dlg-lead { color: var(--color-muted); font-size: .95rem; }
.dlg-foot { margin-top: 14px; font-size: .82rem; color: var(--color-muted); display: flex; gap: 8px; align-items: flex-start; }
.dlg-foot .icon { width: 1.05em; height: 1.05em; margin-top: 2px; }

/* segmented tabs with a sliding pill */
.tabs { position: relative; display: flex; padding: 4px; margin-top: 18px; border-radius: var(--radius-pill); background: var(--color-surface-2); }
.tabs [role="tab"] { position: relative; z-index: 1; flex: 1; min-height: 42px; border: 0; border-radius: var(--radius-pill); background: transparent; font-weight: 700; font-size: .92rem; transition: color var(--dur-base); }
.tabs .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-pill); background: var(--color-ink); transition: transform var(--dur-slow) var(--ease); }
.tabs[data-active="1"] .pill { transform: translateX(100%); }
.tabs [aria-selected="true"] { color: #fff; }
.tab-panel { margin-top: 20px; animation: fadeUp .3s var(--ease); }

/* ── fields (contract of assets/js/forms.js) ──────────────────────────── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: .9rem; color: var(--color-ink); }
.field__hint { font-size: .8rem; color: var(--color-muted); }
.inp { position: relative; }
.inp > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
.field input:not([type="checkbox"]):not([type="radio"]):not(.visually-hidden), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--radius-m);
  border: 1.5px solid var(--color-line); background: var(--color-card);
  font: 500 1rem var(--font-body); color: var(--color-ink);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.field .inp input:not([type="checkbox"]):not([type="radio"]):not(.visually-hidden) { padding: 0 48px 0 44px; }
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--color-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121417' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-ink); box-shadow: var(--focus-ring); }
.field.has-error input:not([type="checkbox"]), .field.has-error select, .field.has-error textarea { border-color: var(--color-error); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.field__error { font-size: .82rem; color: var(--color-error); font-weight: 600; }
.peek { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--color-muted); border-radius: 10px; }
.peek:hover { color: var(--color-ink); }
.peek .e-off, .peek[aria-pressed="true"] .e-on { display: none; }
.peek[aria-pressed="true"] .e-off { display: block; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--color-surface-3); transition: background-color var(--dur-base); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--color-error); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #B57B00; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #4FB08A; }
.pw-meter[data-s="4"] i { background: var(--color-accent); }

/* checkbox row */
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; row-gap: 4px; }
.field--check .field__label { font-weight: 500; font-size: .9rem; cursor: pointer; }
.field--check .field__label a { font-weight: 600; }
.field--check .field__error { grid-column: 2; }
.field--check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0;
  border-radius: 7px; border: 1.5px solid color-mix(in oklab, var(--color-ink) 40%, transparent); background: var(--color-card);
  display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-base), border-color var(--dur-base);
  position: relative;
}
.field--check input[type="checkbox"]::before { content: ""; position: absolute; inset: -11px; }   /* 44px tap zone */
.field--check input[type="checkbox"]::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--dur-base) var(--ease); }
.field--check input[type="checkbox"]:checked { background: var(--color-accent); border-color: var(--color-accent); }
.field--check input[type="checkbox"]:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field--check.has-error input[type="checkbox"] { border-color: var(--color-error); }

/* switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 30px; border-radius: var(--radius-pill); background: var(--color-surface-3); transition: background-color var(--dur-base); cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform var(--dur-base) var(--ease); }
.switch input:checked { background: var(--color-accent); }
.switch input:checked::after { transform: translateX(22px); }
.switch input:disabled { opacity: .55; cursor: not-allowed; }
.switch b { display: block; font-weight: 700; }
.switch small { display: block; color: var(--color-muted); font-size: .85rem; }

.form__error { padding: 12px 14px; border-radius: var(--radius-m); background: rgba(179, 38, 30, .08); color: var(--color-error); font-weight: 600; font-size: .9rem; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.text-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-brand-deep); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--color-ink); }

/* success state */
.success { text-align: center; padding: 24px 0 8px; animation: fadeUp .35s var(--ease); }
.success-ring { position: relative; display: grid; place-items: center; width: 96px; height: 64px; margin: 0 auto 16px; border-radius: 50%; border: 2.5px solid var(--color-accent); color: var(--color-accent); animation: popIn .5s var(--ease); }
.success-ring::before { content: ""; position: absolute; inset: -9px -12px; border-radius: 50%; border: 1.5px solid var(--color-brand); transform: rotate(-12deg); }
.success-ring .icon { width: 30px; height: 30px; }
.success h3 { font-size: 1.6rem; }
.success p { margin-top: 8px; color: var(--color-muted); }
.success .btn { margin-top: 20px; }

/* game dialog */
.gd-media { position: relative; height: 200px; overflow: hidden; background: var(--color-ink); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.gd-media img { position: absolute; width: 150px; height: 150px; border-radius: 16px; object-fit: cover; left: 28px; bottom: -24px; border: 3px solid var(--color-bg); transform: rotate(-6deg); box-shadow: var(--shadow-2); }
.gd-media .blur { inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); left: -20px; bottom: auto; border: 0; border-radius: 0; transform: none; filter: blur(28px) saturate(1.2); opacity: .65; }
.gd-media::after { content: ""; position: absolute; right: -60px; top: -50px; width: 280px; height: 180px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); outline: 1.5px solid rgba(255,255,255,.2); outline-offset: 18px; }
.gd-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gd-meta span { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--color-surface-2); font-size: .82rem; font-weight: 600; }
.gd-desc { margin-top: 14px; color: var(--color-ink-2); }
.gd-note { margin-top: 16px; }
.gd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ── toast ────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; bottom: 24px; width: min(520px, calc(100vw - 24px));
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--radius-m); background: var(--color-ink); color: #fff; box-shadow: var(--shadow-2);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast .icon { color: var(--color-brand); margin-top: 1px; }
.toast p { flex: 1; font-size: .92rem; font-weight: 600; }
.toast .icon-btn { position: relative; width: 36px; height: 36px; background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.toast .icon-btn::before { content: ""; position: absolute; inset: -4px; }
.toast .icon-btn .icon { color: inherit; margin: 0; }
.dlg-actions { margin-top: 20px; }

/* ── cookie banner ────────────────────────────────────────────────────── */
.cookie {
  position: fixed; z-index: var(--z-overlay); left: 16px; bottom: 16px; width: min(460px, calc(100vw - 32px));
  padding: 22px; border-radius: var(--radius-l); background: var(--color-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-2);
  overflow: hidden; isolation: isolate;
  opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.cookie.is-open { opacity: 1; transform: none; }
.cookie::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 220px; height: 140px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--color-brand) 50%, transparent); outline: 1px solid var(--color-line); outline-offset: 14px; }
.cookie h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-stretch: 112%; }
.cookie h2 .icon { color: var(--color-brand-deep); }
.cookie p { margin-top: 8px; font-size: .9rem; color: var(--color-muted); }
.cookie p a { color: var(--color-ink); font-weight: 600; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { --h: 44px; font-size: .88rem; padding: 0 12px; }
.cookie-actions .btn-settings { grid-column: 1 / -1; }
.cookie-cats { display: grid; gap: 4px; margin-top: 14px; padding: 6px 14px; border-radius: var(--radius-m); background: var(--color-surface-1); border: 1px solid var(--color-line); }
.cookie-cats .switch + .switch { border-top: 1px solid var(--color-line); }

/* ── age gate ─────────────────────────────────────────────────────────── */
.overlay--gate { background: rgba(18, 20, 23, .82); }
.gate { text-align: left; }
.gate .gate-ring { position: relative; display: grid; place-items: center; width: 110px; height: 72px; border-radius: 50%; border: 3px solid var(--color-ink); font: 900 1.7rem/1 var(--font-display); font-stretch: 125%; }
.gate .gate-ring::before { content: ""; position: absolute; inset: -10px -14px; border-radius: 50%; border: 2px solid var(--color-brand); transform: rotate(-12deg); animation: spin 30s linear infinite; }
.gate h2 { margin-top: 22px; font-size: 1.8rem; }
.gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.gate-no { margin-top: 18px; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sc, .sc--wide, .sc--third { grid-column: span 6; }
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .mini-games { grid-template-columns: 1fr; }
  .toast { bottom: 96px; }
  .cookie { bottom: 96px; }
}
@media (max-width: 700px) {
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gc-body { padding: 10px 12px 12px; }
  .gc-body h3 { font-size: .95rem; }
  .sc, .sc--wide, .sc--third { grid-column: 1 / -1; }
  .sec-head { align-items: flex-start; }
  .rc { flex-basis: 260px; }
  .cookie { left: 12px; right: 12px; width: auto; bottom: 92px; }
  .cta-band { clip-path: none; }
}
@media (max-width: 480px) {
  .dlg-in { padding: 24px 18px 20px; }
  .stat { padding: 8px 12px; }
  .stat b { font-size: 1.15rem; }
  .gate-actions { grid-template-columns: 1fr; }
}

/* ── self-test quiz (responsible gambling) ───────────────────────────── */
.quiz { display: grid; gap: 14px; margin-top: 1.4em; }
.quiz-q { margin: 0; padding: 18px 20px; border: 1px solid var(--color-line); border-radius: var(--radius-l); background: var(--color-card); box-shadow: var(--shadow-1); }
.quiz-q legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-weight: 700; color: var(--color-ink); }
.quiz-q legend .ring-n { float: left; margin: -2px 12px 0 0; }
.quiz-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-line); background: var(--color-bg); font-weight: 600; font-size: .92rem; cursor: pointer; transition: background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base); }
.quiz-opt:hover { border-color: var(--color-ink); }
.quiz-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.quiz-opt:has(input:checked) { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.quiz-opt:has(input:focus-visible) { outline: 2.5px solid var(--color-accent); outline-offset: 3px; }
.quiz-q.has-error { border-color: var(--color-error); }
.quiz-progress { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--color-muted); }
.quiz-progress .bar { flex: 1; height: 8px; border-radius: 8px; background: var(--color-surface-3); overflow: hidden; }
.quiz-progress .bar i { display: block; height: 100%; background: var(--color-accent); transform-origin: left; transform: scaleX(0); transition: transform var(--dur-slow) var(--ease); }
.quiz-result { padding: 22px; border-radius: var(--radius-l); background: var(--color-ink); color: var(--color-on-dark); animation: fadeUp .35s var(--ease); }
.quiz-result b { display: block; color: #fff; font: 800 1.35rem/1.2 var(--font-display); font-stretch: 112%; }
.quiz-result p { margin-top: 8px; color: var(--color-on-dark-muted); }
.quiz-result .gauge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.quiz-result .gauge i { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); }
.quiz-result[data-level="1"] .gauge i:nth-child(-n+1) { background: #4FB08A; }
.quiz-result[data-level="2"] .gauge i:nth-child(-n+2) { background: #E0A100; }
.quiz-result[data-level="3"] .gauge i { background: var(--color-brand); }
.quiz-result .btn { margin-top: 16px; }

/* ── account (konto) ──────────────────────────────────────────────────── */
.article.account { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
.account-main { display: grid; gap: 20px; min-width: 0; }
.acc-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-l); background: var(--color-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-1); scroll-margin-top: 110px; }
.acc-card::after { content: ""; position: absolute; z-index: -1; right: -90px; top: -80px; width: 260px; height: 160px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--color-brand) 40%, transparent); outline: 1px solid var(--color-line); outline-offset: 14px; }
.acc-card--break { background: var(--color-surface-1); }
.acc-head h2 { margin-top: 14px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-count { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 50%/50%; border-radius: var(--radius-pill); background: var(--color-brand); font: 800 .9rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.acc-lead { margin-top: 10px; color: var(--color-muted); max-width: 62ch; }
.acc-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.acc-data div { padding: 12px 14px; border-radius: var(--radius-m); background: var(--color-surface-1); border: 1px solid var(--color-line); }
.acc-data dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.acc-data dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.acc-form { margin-top: 18px; max-width: 560px; }
.acc-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; align-items: start; }
.acc-period { border: 0; padding: 0; margin: 0; min-width: 0; }
.acc-period legend, .acc-form fieldset legend { padding: 0; margin-bottom: 6px; }
.acc-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.acc-form .chips { flex-wrap: wrap; overflow: visible; }
.acc-status { display: grid; gap: 8px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--color-accent-soft); color: var(--color-accent); font-weight: 600; }
.acc-status p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.acc-status b { color: var(--color-ink); }
.acc-pending { color: var(--color-warn); }
.acc-pending .text-btn { min-height: 32px; }
.acc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.acc-guest-cta { margin-top: 32px; }
@media (max-width: 1100px) { .acc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .article.account { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acc-row { grid-template-columns: 1fr; } }
.reset-card { max-width: 600px; }

/* components dropped into a long read keep their own look */
.prose a.btn, .prose a.btn:hover { color: inherit; font-weight: 700; text-decoration: none; }
.prose a.btn-ink, .prose a.btn-ink:hover { color: #fff; }
.prose a.btn-brand, .prose a.btn-brand:hover, .prose a.btn-ghost, .prose a.btn-light { color: var(--color-ink); }
.prose ul.rows > li, .prose ul.rows > li::before { padding-left: 16px; }
.prose ul.rows > li::before { display: none; }
.prose .mini-game, .prose .mini-game:hover { color: inherit; font-weight: 400; text-decoration: none; }
.note strong, .prose .note strong { color: inherit; }
.ph--nw { white-space: nowrap; }
.page-tag { margin-top: 18px; }
.form-card { margin-top: 1.4em; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-l); background: var(--color-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-1); scroll-margin-top: 110px; }
.prose .sector + h2, .prose .sector + h3 { margin-top: 16px; }
.faq details:not([open]) > .ans { display: none; }
@media (max-width: 480px) { .quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .quiz-opt { justify-content: center; } }
.side-card .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.2; padding-block: 8px; }
.acc-break-done { margin-bottom: 24px; }
.note--ink a { color: #fff; }

/* ── pages/home.css ── */
/* Home: hero (diagonal / off-grid with cover fans), banners, Spis treści,
 * catalogue tools, calculator, sport module, long read, FAQ.
 * Hero, banners, TOC, catalogue, ribbon, calculator, FAQ — moved from the mockup;
 * intro table, long read and sport module — new, in the mockup's language. */

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow-x: clip; padding: clamp(32px, 4.5vw, 64px) 0 clamp(48px, 5vw, 72px); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(20px, 2.6vw, 36px); }
.hero-h { grid-column: 1 / span 11; }
.hero h1 { margin-top: 18px; font-size: var(--fs-h1); font-stretch: var(--stretch-hero); letter-spacing: -.045em; line-height: .93; hyphens: manual; }
/* signature typographic move: one accent word on a tilted orange plate */
.plate { position: relative; display: inline-block; padding: .02em .2em .08em; margin: 0 .04em; color: var(--color-ink); transform: rotate(-2.2deg); isolation: isolate; }
.plate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-brand); clip-path: polygon(2% 6%, 100% 0, 98% 96%, 0 100%); }
.hero-h .sub { color: color-mix(in oklab, var(--color-ink) 82%, var(--color-bg)); }
.hero-lead { grid-column: 1 / span 5; align-self: start; display: grid; gap: 16px; padding-top: 8px; }
.hero-lead p { font-size: var(--fs-lead); color: var(--color-ink-2); max-width: 52ch; }
.hero-lead p + p { color: var(--color-muted); font-size: 1rem; }
.hero-lead .stats { margin-top: 10px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-ctas .btn { --h: 50px; padding: 0 22px; }

/* banners: two independent cards, diagonal clip, cover fans breaking out */
.bn-col { grid-column: 6 / span 7; min-width: 0; }
.bn-track { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 56px; }
.bn { position: relative; display: flex; flex-direction: column; min-height: 450px; color: var(--color-ink); isolation: isolate; transition: transform var(--dur-slow) var(--ease); }
.bn:nth-child(2) { margin-top: 64px; color: #fff; }
.bn:hover { transform: translateY(-4px); }
.bn-bg { position: relative; z-index: 0; isolation: isolate; flex: 1; display: flex; flex-direction: column; padding: 176px 26px 26px; overflow: hidden; background-color: var(--color-brand); clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%); border-radius: 4px; }
.bn:nth-child(2) .bn-bg { background-color: var(--color-accent); clip-path: polygon(0 0, 100% 9%, 100% 92%, 0 100%); padding-bottom: 44px; }
.bn-bg::before { content: ""; position: absolute; z-index: -1; width: 150%; aspect-ratio: 1.6; left: -25%; top: -46%; border-radius: 50%; border: 2px solid rgba(18,20,23,.22); outline: 1.5px solid rgba(18,20,23,.14); outline-offset: 22px; }
.bn:nth-child(2) .bn-bg::before { border-color: rgba(255,255,255,.3); outline-color: rgba(255,255,255,.18); }
.bn-bg::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.bn:hover .bn-bg::after { transform: translateX(120%); }
.fan { position: absolute; z-index: 2; left: 50%; top: -52px; width: 250px; height: 190px; transform: translateX(-50%); pointer-events: none; }
.fan img { position: absolute; left: 50%; bottom: 0; width: 118px; height: 118px; margin-left: -59px; border-radius: 12px; object-fit: cover; border: 3px solid var(--color-card); box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 16px 28px -10px rgba(0,0,0,.45); transform-origin: 50% 140%; transition: transform .45s var(--ease); }
.fan picture:nth-child(1) img { transform: rotate(-20deg) translateY(4px); }
.fan picture:nth-child(2) img { transform: rotate(0deg) translateY(-26px); z-index: 2; width: 128px; height: 128px; margin-left: -64px; }
.fan picture:nth-child(3) img { transform: rotate(20deg) translateY(4px); }
.bn:hover .fan picture:nth-child(1) img { transform: rotate(-28deg) translateY(0); }
.bn:hover .fan picture:nth-child(3) img { transform: rotate(28deg) translateY(0); }
.bn:hover .fan picture:nth-child(2) img { transform: translateY(-36px); }
.bn-k { font: 700 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.bn h2 { margin-top: 12px; font-size: clamp(1.55rem, 1.1rem + 1vw, 2.05rem); font-stretch: 115%; line-height: 1; }
.bn p { margin-top: 12px; font-size: .98rem; line-height: 1.5; opacity: .92; }
.bn-foot { margin-top: auto; padding-top: 22px; display: flex; }
.bn:nth-child(1) .btn { background: var(--color-ink); color: #fff; }
.bn:nth-child(2) .btn { background: var(--color-bg); color: var(--color-ink); }
.bn-dots { display: none; }

/* Spis treści */
.toc { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 24px); }
.toc-head { border-top: 1.5px solid var(--color-ink); padding-top: 16px; }
.toc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.toc-title { display: flex; align-items: center; gap: 10px; font: 800 1rem/1 var(--font-display); font-stretch: 118%; text-transform: uppercase; letter-spacing: .02em; }
.toc-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-line); background: var(--color-card); font-weight: 700; font-size: .88rem; }
.toc-toggle:hover { border-color: var(--color-ink); }
.toc-toggle .icon { transition: transform .25s var(--ease); }
.toc-toggle[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.toc-list { margin: 14px 0 0; padding: 4px 2px 10px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.toc-list li { flex: none; scroll-snap-align: start; }
.toc-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 6px; border-radius: var(--radius-pill); background: var(--color-card); border: 1px solid var(--color-line); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: transform var(--dur-base) var(--ease), background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base); }
.toc-list a .n { display: inline-grid; place-items: center; min-width: 52px; height: 32px; padding: 0 8px; border-radius: 50%; border: 1.5px solid var(--color-ink); font: 800 .75rem/1 var(--font-display); font-stretch: 112%; letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base); }
.toc-list a:hover { transform: translateY(-2px); border-color: var(--color-ink); }
.toc-list a:hover .n { background: var(--color-brand); border-color: var(--color-brand); }

/* ── catalogue tools ─────────────────────────────────────────────────── */
.games-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.games-tools .chips { flex: 1 1 auto; min-width: 0; }

/* ── intro: table + bonus explainer ──────────────────────────────────── */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.intro-grid .prose { max-width: none; }
.explainer { position: relative; overflow: hidden; isolation: isolate; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l); background: var(--color-ink); color: var(--color-on-dark); box-shadow: var(--shadow-2); }
.explainer::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 260px; right: -170px; top: -150px; border-radius: 50%; border: 2px solid rgba(255,79,31,.55); outline: 1.5px solid rgba(255,255,255,.1); outline-offset: 22px; }
.explainer .sector { color: var(--color-on-dark-muted); }
.explainer .sector-ring { border-color: #fff; color: #fff; }
.explainer h3 { margin-top: 16px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); color: #fff; }
.explainer > p { margin-top: 12px; color: var(--color-on-dark-muted); }
.ex-sample { position: relative; margin-top: 20px; padding: 18px; border-radius: var(--radius-m); background: var(--color-brand); color: var(--color-ink); clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%); }
.ex-sample .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--color-ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ex-sample b { display: block; margin-top: 12px; font: 900 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1 var(--font-display); font-stretch: 122%; letter-spacing: -.04em; }
.ex-sample span { display: block; margin-top: 6px; font-weight: 600; font-size: .9rem; }
.ex-terms { display: grid; gap: 2px; margin-top: 18px; }
.ex-terms div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--color-on-dark-line); }
.ex-terms .icon { color: var(--color-brand); margin-top: 2px; }
.ex-terms b { display: block; color: #fff; }
.ex-terms span { font-size: .9rem; color: var(--color-on-dark-muted); }
.explainer .btn { margin-top: 20px; }

/* ── calculator section ───────────────────────────────────────────────── */
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.calc-copy .sec-head { margin-bottom: 24px; }
.calc-copy h2 { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.8rem); }

/* ── long read with side navigator ───────────────────────────────────── */
.longread .article-side { top: 104px; }
.longread .side-toc ol { max-height: calc(100vh - 300px); overflow-y: auto; }

/* ── sport module (demo feed) ─────────────────────────────────────────── */
.sport { position: relative; overflow: hidden; isolation: isolate; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-l); background: var(--color-card); border: 1px solid var(--color-line); box-shadow: var(--shadow-2); }
.sport::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 300px; right: -220px; top: -190px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--color-accent) 45%, transparent); outline: 1.5px solid var(--color-line); outline-offset: 24px; }
.sport-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sport-top h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-stretch: 112%; }
.sport-top h3 .icon { color: var(--color-accent); }
.sport-cats { margin-top: 18px; }
.sport-disc { margin-top: 16px; }
.ev-list { display: grid; gap: 10px; margin-top: 18px; min-height: 100px; }
.ev {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px 18px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius-m); background: var(--color-surface-1); border: 1px solid var(--color-line);
  animation: cardIn .35s var(--ease) both; transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.ev:hover { border-color: color-mix(in oklab, var(--color-ink) 30%, transparent); box-shadow: var(--shadow-1); }
.ev-ic { display: grid; place-items: center; width: 52px; height: 36px; border-radius: 50%; border: 1.5px solid var(--color-ink); color: var(--color-ink); }
.ev-ic .icon { width: 1.1em; height: 1.1em; }
.ev-teams { min-width: 0; }
.ev-teams b { display: block; font-weight: 700; line-height: 1.3; }
.ev-teams b span { color: var(--color-muted); font-weight: 500; padding-inline: 4px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .8rem; color: var(--color-muted); }
.ev-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ev-meta .icon { width: 1em; height: 1em; }
.odds { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.odd { display: grid; justify-items: center; gap: 2px; min-height: 48px; padding: 6px 4px; border-radius: 12px; border: 1.5px dashed color-mix(in oklab, var(--color-ink) 28%, transparent); background: var(--color-card); font-variant-numeric: tabular-nums; transition: border-color var(--dur-base), background-color var(--dur-base); }
.odd small { font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--color-muted); }
.odd b { font: 800 .98rem/1 var(--font-display); font-stretch: 110%; }
.odd:hover { border-color: var(--color-ink); background: var(--color-surface-2); }
.ev-more { width: 44px; height: 44px; }
.ev-more .icon { transition: transform var(--dur-base) var(--ease); }
.ev-more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.ev-detail { grid-column: 2 / -1; font-size: .88rem; color: var(--color-muted); }
.ev-detail p + p { margin-top: 4px; }
.sport .empty { margin-top: 18px; }

/* ── FAQ grid ─────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .sec-head { margin: 0; position: sticky; top: 110px; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-h { grid-column: 1 / -1; }
  .bn-bg { padding-inline: 20px; }
  .ev { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .ev .odds { grid-column: 2 / 3; }
}
@media (max-width: 900px) {
  .hero-grid { display: block; }
  .hero-lead { margin-top: 24px; }
  .bn-col { margin-top: 20px; margin-inline: calc(-1 * var(--gut)); }
  .bn-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 58px var(--gut) 8px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .bn-track::-webkit-scrollbar { display: none; }
  .bn { flex: 0 0 min(86%, 380px); scroll-snap-align: start; min-height: 420px; }
  .bn-bg { padding-top: 168px; }
  .bn:nth-child(2) { margin-top: 0; }
  .hero-ctas { display: none; }
  .hero-lead .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-lead .stat { flex-direction: column; align-items: flex-start; gap: 4px; border-radius: var(--radius-m); padding: 10px 12px; }
  .hero-lead .stat span { font-size: .78rem; line-height: 1.2; }
  .bn-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
  .bn-dots button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
  .bn-dots button::before { content: ""; width: 22px; height: 10px; border-radius: 50%; border: 1.5px solid var(--color-ink); transition: background-color var(--dur-base), transform .25s var(--ease); }
  .bn-dots button[aria-current="true"]::before { background: var(--color-brand); border-color: var(--color-brand); transform: scaleX(1.5); }
  .toc { margin-top: 28px; }
  .toc-list { margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .intro-grid, .calc-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
  .calc-copy { order: -1; }
}
@media (max-width: 700px) {
  .games-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .games-tools .search { flex: none; width: 100%; min-width: 0; }
  .games-tools .chips, .sport-cats { margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .sport { margin-inline: calc(-1 * var(--gut) + 6px); border-radius: var(--radius-m); }
  .sport-top .search { flex: 1 1 100%; }
  .ev { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px 12px; padding: 12px; }
  .ev-ic { width: 44px; height: 30px; }
  .ev .odds { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ev-detail { grid-column: 1 / -1; }
  .ev-more { grid-column: 3; grid-row: 1; }
  .sport-top h3 { align-items: flex-start; font-size: 1.2rem; }
}
@media (max-width: 480px) {
  :root { --fs-h1: 2.3rem; }
  .hero h1 { font-stretch: 108%; letter-spacing: -.04em; }
}
.intro-grid > * { min-width: 0; }
/* below the 390 reference width only: the longest word of the H1 («bezpieczeństwie») must fit 288px */
@media (max-width: 389px) {
  .hero h1 { font-size: 1.95rem; }
}

/* ── wide.css ── */
/* Шире 1440: раскладка стоит по центру, фоны секций — во всю ширину. Каждой
 * секции верхнего уровня — её боковой паддинг плюс половина «лишней» ширины
 * окна. Абсолютные декорации, привязанные к краю секции, сдвигаются margin'ом на
 * ту же величину. Ниже 1441 не срабатывает. Проверка на 1920 — обязательная часть
 * S6 (flow.js включает 1920). См. site-task/S5-build.md, «Ширины шире 1440». */
@media (min-width: 1441px) {
  :root { --edge: calc((100vw - 1440px) / 2); }
  /* .wrap is already centred (max-width + auto margins) and every band paints its
     background on ::before with inset:0, so backgrounds run edge to edge with no
     extra padding. Only the off-canvas decorations need pinning to the layout. */
  .hero .rings { right: calc(-22% + var(--edge) * .6); }
}

/* ── motion.css ── */
/* Motion, loaded last: keyframes, reveal, collapsibles and the reduced-motion block.
 *   · only opacity, transform, colour, shadow and filter are animated;
 *   · the first screen does not animate in (LCP) — hero text has no data-reveal;
 *   · the end state is the resting layout. */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: .7; } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 60% { transform: scale(.88); } 100% { transform: scale(1); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }

/* reveal on scroll (app.js adds .is-in once) */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-group] > * { transition-delay: 0ms; }
[data-reveal-group] > *:nth-child(2) { transition-delay: 70ms; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 140ms; }
[data-reveal-group] > *:nth-child(4) { transition-delay: 210ms; }
[data-reveal-group] > *:nth-child(5) { transition-delay: 280ms; }
[data-reveal-group] > *:nth-child(6) { transition-delay: 350ms; }

.shake { animation: shake .45s var(--ease); }

/* Height is never animated: a row expands through grid-template-rows. */
.collapsible { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease); }
.collapsible.is-open { grid-template-rows: 1fr; }
.collapsible > * { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s var(--dur-base); }
.collapsible.is-open > * { visibility: visible; transition-delay: 0s; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .rings i, .gate .gate-ring::before, .tbl-hint .icon { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
