/* Components — moved from the approved mockup (A · Affiche) and extended in
 * its language: hard ink borders, offset ink shadows, Anton labels, paper cards.
 * Every interactive piece covers hover / focus / active / disabled. */

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 22px; border: 2px solid var(--color-ink); border-radius: var(--radius-md);
  background: transparent; color: var(--color-ink);
  font: 700 var(--fs-small)/1 var(--font-body); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; position: relative;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--brand { background: var(--color-brand); border-color: var(--color-brand); color: #fff; box-shadow: var(--shadow-hard); }
.btn--brand:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
.btn--brand:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--color-ink); background: var(--color-brand-active); border-color: var(--color-brand-active); }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-on-ink); }
.btn--ghost:active { transform: translateY(1px); }
.btn--ink { background: var(--color-ink); color: var(--color-on-ink); }
.btn--ink:hover { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.btn--teal { background: var(--color-teal); border-color: var(--color-teal); color: #fff; box-shadow: var(--shadow-hard); }
.btn--teal:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-busy { pointer-events: none; opacity: .75; }

.more {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: .08em; min-height: 44px; border-bottom: 2px solid var(--color-ink);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}
.more:hover { color: var(--color-brand-ink); border-color: var(--color-brand); gap: 12px; }
.more .icon { width: 16px; height: 16px; }

.link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.link:hover { color: var(--color-brand-ink); }

/* ── section head with No. ────────────────────────────────────────────── */
.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px 24px; margin-bottom: 28px; }
.no { font: 400 15px/1 var(--font-display); letter-spacing: .12em; background: var(--color-ink); color: var(--color-on-ink); padding: 8px 10px 6px; border-radius: var(--radius-sm); white-space: nowrap; }
.sec-head h2 { font: 400 var(--fs-h2)/.92 var(--font-display); text-transform: uppercase; }
.sec-head h2 em { font-style: normal; color: var(--color-brand); }
.sec-head p { grid-column: 2; color: var(--color-text-2); max-width: 64ch; margin-top: -6px; }
.sec-head--plain { grid-template-columns: 1fr auto; }
.sec-head--plain p { grid-column: 1; }

.h3 { font: 400 var(--fs-h3)/var(--lh-head) var(--font-display); text-transform: uppercase; }
.label { font-size: var(--fs-micro); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.label--teal { color: var(--color-teal); }
.label--brand { color: var(--color-brand-ink); }

/* ── chips (filters / tabs) ───────────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--color-ink); border-radius: var(--radius-pill); background: transparent;
  font-weight: 700; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip:hover { background: var(--color-bg-2); }
.chip[aria-pressed="true"], .chip[aria-current], .chip[aria-selected="true"] { background: var(--color-ink); color: var(--color-on-ink); }
.chip small { font-weight: 600; opacity: .7; }

/* ── ticket: game card (square cover, perforation, stub) ──────────────── */
.ticket {
  background: var(--color-surface); border: 2px solid var(--color-ink); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; position: relative; min-width: 0;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.ticket:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 6px 8px 0 var(--color-ink); }
.ticket__img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px 4px 0 0; background: var(--color-bg-2); }
.ticket__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ticket:hover .ticket__img img { transform: scale(1.05); }
.ticket__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.ticket .btn { position: relative; z-index: 2; }
.tag {
  position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--color-mustard); color: var(--color-ink);
  font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--color-ink);
}
.tag--new { background: var(--color-bg); }
.tag--live { background: var(--color-teal); color: #fff; border-color: var(--color-teal); }
.tag--right { left: auto; right: 10px; }
.perf { position: relative; height: 0; border-top: 2px dashed var(--color-ink); margin: 0 14px; }
.perf::before, .perf::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-bg); border: 2px solid var(--color-ink); }
.perf::before { left: -27px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -27px; clip-path: inset(0 50% 0 0); }
.ticket__stub { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ticket__title { font: 400 22px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.ticket__meta { font-size: 13px; color: var(--color-text-2); display: flex; gap: 6px; flex-wrap: wrap; }
.ticket__meta span + span::before { content: "·"; margin-right: 6px; color: var(--color-muted); }
.ticket__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.ticket__no { font: 400 13px/1 var(--font-display); letter-spacing: .14em; color: var(--color-muted); }
.ticket--compact .ticket__title { font-size: 18px; }
.ticket--compact .ticket__stub { padding: 12px; }

/* shelf: horizontal row of tickets */
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 19vw, 246px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 6px 18px; margin: 0 -6px;
  scrollbar-width: thin; scrollbar-color: var(--color-ink) transparent;
}
.shelf > * { scroll-snap-align: start; }
.shelf-nav { display: flex; gap: 8px; }
.shelf-nav button { width: 44px; height: 44px; display: grid; place-items: center; border: var(--border); border-radius: var(--radius-md); background: var(--color-surface); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.shelf-nav button:hover { background: var(--color-ink); color: var(--color-on-ink); }
.shelf-nav button:disabled { opacity: .35; cursor: default; background: var(--color-surface); color: var(--color-ink); }
.shelf-nav .icon { width: 20px; height: 20px; }

/* grid of tickets (catalogue) */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px; }

/* ── rows: bill list (live tables, jackpots) ──────────────────────────── */
.rows { border-top: 2px solid var(--color-ink); }
.row {
  display: grid; grid-template-columns: 64px 72px 1fr auto auto; align-items: center; gap: 18px;
  padding: 14px 0; border-bottom: 1.5px solid var(--color-line); position: relative;
  transition: background-color var(--dur-fast) var(--ease);
}
.row:hover { background: var(--color-bg-2); }
.row__no { font: 400 30px/1 var(--font-display); color: var(--color-muted); text-align: center; }
.row__img { width: 72px; height: 72px; border: 2px solid var(--color-ink); border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-2); }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.row__name { font: 400 26px/1 var(--font-display); text-transform: uppercase; }
.row__name a::before { content: ""; position: absolute; inset: 0; }
.row__sub { font-size: 13px; color: var(--color-text-2); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.row__stake { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
.row__stake small { display: block; font-weight: 500; color: var(--color-muted); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.row .btn { position: relative; z-index: 1; }

.live { display: inline-flex; align-items: center; gap: 6px; color: var(--color-teal); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(31, 95, 91, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31, 95, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 95, 91, 0); } }

/* ── aside card (teal shadow) ─────────────────────────────────────────── */
.panel { border: 2px solid var(--color-ink); background: var(--color-surface); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px); }
.panel--teal { box-shadow: var(--shadow-teal); }
.panel--ink { box-shadow: var(--shadow-hard-xl); }
.panel--dark { background: var(--color-ink); color: var(--color-on-ink); }
.panel h3 { font: 400 clamp(26px, 2.6vw, 34px)/1 var(--font-display); text-transform: uppercase; margin: 10px 0 12px; }
.panel p { color: var(--color-text-2); }
.panel--dark p { color: var(--color-on-ink-2); }

.steps { margin: 18px 0 22px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-top: 1.5px dashed var(--color-line); font-weight: 600; font-size: 15px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 18px/1.2 var(--font-display); color: var(--color-brand-ink); }

/* ── stamp ────────────────────────────────────────────────────────────── */
.stamp {
  width: 132px; height: 132px; border-radius: 50%; border: 2px solid var(--color-teal); color: var(--color-teal);
  display: grid; place-items: center; text-align: center; transform: rotate(-12deg); position: relative;
  font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35;
}
.stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed currentColor; }
.stamp b { display: block; font: 400 22px/1 var(--font-display); letter-spacing: .04em; }
.stamp--sm { width: 96px; height: 96px; font-size: 9px; }
.stamp--sm b { font-size: 18px; }

/* ── status badges (verification, transactions) ───────────────────────── */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid currentColor; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--color-teal); background: var(--color-success-bg); }
.status--pending { color: var(--color-warn); background: var(--color-warn-bg); }
.status--blocked { color: var(--color-error); background: var(--color-error-bg); }
.status--todo { color: var(--color-text-2); background: var(--color-bg-2); }

/* ── notices ──────────────────────────────────────────────────────────── */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 2px solid var(--color-ink); border-radius: var(--radius-md); background: var(--color-surface); font-size: 15px; }
.notice .icon { width: 22px; height: 22px; margin-top: 1px; }
.notice--info { border-color: var(--color-teal); background: var(--color-success-bg); }
.notice--info .icon { color: var(--color-teal); }
.notice--warn { border-color: var(--color-warn); background: var(--color-warn-bg); }
.notice--warn .icon { color: var(--color-warn); }
.notice--error { border-color: var(--color-error); background: var(--color-error-bg); }
.notice--error .icon { color: var(--color-error); }
.notice strong { display: block; }
.notice a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ── fields ───────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--space-16); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--color-ink); }
.field__label .opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--color-muted); }
.field__hint { font-size: 13px; color: var(--color-text-2); }
.field input:not(.visually-hidden):not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 2px solid var(--color-ink); border-radius: var(--radius-md); background: var(--color-surface);
  font-size: 16px; transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--color-ink) 50%), linear-gradient(135deg, var(--color-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--color-teal); transform: translate(-1px, -1px); }
.field input:disabled, .field select:disabled { opacity: .6; cursor: not-allowed; }
.field input[readonly] { background: var(--color-bg-2); }
.field__error { color: var(--color-error); font-size: 14px; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); background: #FFF6F3; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check .field__error { grid-column: 1 / -1; }
.field--check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--color-ink); flex: none; }
.field--check .field__label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; }
.field--check .field__label a { text-decoration: underline; }
.input-affix { position: relative; }
.input-affix > span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-weight: 800; pointer-events: none; }
.input-affix input { padding-left: 34px !important; }

.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__opt > span {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border: 2px solid var(--color-ink); border-radius: var(--radius-md);
  background: var(--color-surface); font-weight: 700; transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.choice__opt > span img { height: 24px; width: auto; }
.choice__opt input:checked + span { background: var(--color-ink); color: var(--color-on-ink); }
.choice__opt input:focus-visible + span { box-shadow: 4px 4px 0 var(--color-teal); }
.choice__opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.choice__opt small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }

.form__error { color: var(--color-error); font-weight: 700; padding: 10px 14px; border: 2px solid var(--color-error); border-radius: var(--radius-md); background: var(--color-error-bg); }
.form__done { display: grid; gap: 10px; padding: 18px; border: 2px solid var(--color-teal); border-radius: var(--radius-md); background: var(--color-success-bg); }
.form__done strong { font: 400 24px/1.1 var(--font-display); text-transform: uppercase; }

/* ── search ───────────────────────────────────────────────────────────── */
.search {
  display: flex; align-items: stretch; border: 2px solid var(--color-ink); background: var(--color-surface);
  border-radius: var(--radius-md); box-shadow: var(--shadow-hard-lg); transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.search:focus-within { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--color-brand); }
.search label { display: flex; align-items: center; padding-left: 16px; color: var(--color-text-2); }
.search label .icon { width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 12px; font-size: 17px; outline: none; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search button { border: 0; background: var(--color-ink); color: var(--color-on-ink); padding: 0 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; transition: background-color var(--dur-fast) var(--ease); }
.search button:hover { background: var(--color-brand); }
.search button .icon { width: 18px; height: 18px; }

/* ── tables ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 2px solid var(--color-ink); border-radius: var(--radius-md); background: var(--color-surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 12px 14px; background: var(--color-ink); color: var(--color-on-ink); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1.5px solid var(--color-line); vertical-align: top; }
.table tbody tr:hover td { background: var(--color-bg-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── tabs ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--color-ink); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 48px; padding: 0 18px; font-weight: 800; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; border: 2px solid transparent; border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; margin-bottom: -2px; transition: background-color var(--dur-fast) var(--ease); white-space: nowrap; display: inline-flex; align-items: center; }
.tab:hover { background: var(--color-bg-2); }
.tab[aria-selected="true"], .tab[aria-current] { background: var(--color-surface); border-color: var(--color-ink); }
.tab-panel { padding-top: var(--space-24); }

/* ── accordion (FAQ) ──────────────────────────────────────────────────── */
.acc { border-top: 2px solid var(--color-ink); }
.acc__item { border-bottom: 1.5px solid var(--color-line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; text-align: left; font-weight: 700; font-size: 18px; transition: color var(--dur-fast) var(--ease); }
.acc__btn:hover { color: var(--color-brand-ink); }
.acc__btn .icon { width: 22px; height: 22px; flex: none; transition: transform var(--dur-base) var(--ease); }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc__body > div > div { padding: 0 0 20px; color: var(--color-text-2); max-width: 75ch; display: grid; gap: 10px; }
.acc__body a { text-decoration: underline; text-underline-offset: 3px; color: var(--color-ink); font-weight: 600; }

/* ── stepper (registration) ───────────────────────────────────────────── */
.stepper { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; counter-reset: st; }
.stepper li { counter-increment: st; display: grid; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.stepper li::before { content: counter(st, decimal-leading-zero); display: grid; place-items: center; height: 40px; border: 2px solid var(--color-line); border-radius: var(--radius-md); font: 400 18px/1 var(--font-display); color: var(--color-muted); background: transparent; }
.stepper li.is-done::before { content: "✓"; border-color: var(--color-teal); background: var(--color-teal); color: #fff; font-family: var(--font-body); font-weight: 800; }
.stepper li.is-pending::before { border-color: var(--color-warn); background: var(--color-warn-bg); color: var(--color-warn); }
.stepper li.is-current { color: var(--color-ink); }
.stepper li.is-current::before { border-color: var(--color-ink); background: var(--color-brand); color: #fff; box-shadow: var(--shadow-hard); }

/* ── empty state ──────────────────────────────────────────────────────── */
.empty { border: 2px dashed var(--color-ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty strong { font: 400 28px/1 var(--font-display); text-transform: uppercase; }
.empty p { color: var(--color-text-2); max-width: 52ch; }

/* ── pagination ───────────────────────────────────────────────────────── */
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: var(--space-32); flex-wrap: wrap; }
.pager__info { font-size: var(--fs-small); color: var(--color-text-2); }

/* ── prose (legal, info pages) ────────────────────────────────────────── */
.prose { max-width: 76ch; display: grid; gap: 14px; }
.prose h2 { font: 400 clamp(26px, 2.8vw, 38px)/1 var(--font-display); text-transform: uppercase; margin-top: var(--space-24); scroll-margin-top: 24px; }
.prose h3 { font-weight: 800; font-size: 19px; margin-top: var(--space-8); }
.prose p, .prose li { color: var(--color-text-2); }
.prose ul { display: grid; gap: 6px; padding-left: 0; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: "✶"; position: absolute; left: 0; top: 0; color: var(--color-brand); font-size: 13px; }
.prose ol { counter-reset: p; display: grid; gap: 6px; }
.prose ol li { counter-increment: p; padding-left: 30px; position: relative; }
.prose ol li::before { content: counter(p) "."; position: absolute; left: 0; font-weight: 800; color: var(--color-ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--color-ink); font-weight: 600; }
.prose a:hover { color: var(--color-brand-ink); }
.prose strong { color: var(--color-ink); }
.prose .table-wrap { margin-block: 6px; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: 20px; border: 2px solid var(--color-ink); border-radius: var(--radius-lg); background: var(--color-surface); padding: 18px; }
.toc ol { display: grid; gap: 2px; margin-top: 10px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 6px 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.toc a::before { content: counter(t, decimal-leading-zero); font: 400 14px/1.35 var(--font-display); color: var(--color-brand-ink); }
.toc a:hover { color: var(--color-brand-ink); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--color-text-2); margin-bottom: var(--space-16); }

/* ── fact list (licence etc.) ─────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--color-ink); }
.facts > div { padding: 14px 16px 14px 0; border-bottom: 1.5px solid var(--color-line); }
.facts dt { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.facts dd { margin-top: 4px; font-weight: 700; }

/* ── overlays (modal, age gate, cookie banner) ────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--space-16);
  background: rgb(26 23 20 / .62); opacity: 0; transition: opacity var(--dur-slow) var(--ease); overflow-y: auto;
}
.overlay.is-open { opacity: 1; }
.overlay__panel {
  width: min(100%, 520px); max-height: calc(100vh - 32px); overflow: auto; background: var(--color-bg);
  border: 2px solid var(--color-ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-hard-xl); transform: translateY(10px); transition: transform var(--dur-slow) var(--ease);
}
.overlay.is-open .overlay__panel { transform: none; }
.overlay__close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: var(--border); border-radius: var(--radius-md); background: var(--color-surface); }
.overlay__close:hover { background: var(--color-ink); color: var(--color-on-ink); }
.overlay__close .icon { width: 20px; height: 20px; }
.overlay__panel { position: relative; }
.overlay__title { font: 400 clamp(30px, 4vw, 44px)/.95 var(--font-display); text-transform: uppercase; padding-right: 52px; }
.overlay__lead { color: var(--color-text-2); margin-top: 8px; }

.overlay--gate { z-index: var(--z-gate); background: rgb(26 23 20 / .9); }
.gate { text-align: center; width: min(100%, 560px); }
.gate .word { font-size: clamp(56px, 12vw, 96px); justify-self: center; }
.gate__q { font: 400 clamp(34px, 6vw, 56px)/.95 var(--font-display); text-transform: uppercase; margin-top: 18px; }
.gate__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.gate__rg { margin-top: 22px; padding-top: 16px; border-top: 2px dashed var(--color-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-small); }
.gate__note { margin-top: 10px; font-size: 13px; color: var(--color-text-2); }
.gate__no { margin-top: 16px; padding: 14px; border: 2px solid var(--color-ink); border-radius: var(--radius-md); background: var(--color-surface); text-align: left; font-size: 15px; display: grid; gap: 6px; }
.gate__no a { text-decoration: underline; font-weight: 700; }

.cookie-bar {
  position: fixed; left: var(--space-16); right: var(--space-16); bottom: var(--space-16); z-index: var(--z-overlay);
  max-width: 980px; margin-inline: auto; background: var(--color-surface); border: 2px solid var(--color-ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard-xl); padding: 20px clamp(18px, 3vw, 28px);
  display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center;
}
.cookie-bar__title { font: 400 26px/1 var(--font-display); text-transform: uppercase; }
.cookie-bar p { font-size: 14.5px; color: var(--color-text-2); margin-top: 6px; }
.cookie-bar p a { text-decoration: underline; color: var(--color-ink); font-weight: 600; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-cats { display: grid; gap: 10px; margin-top: 16px; }
.cookie-cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 14px; border: 2px solid var(--color-ink); border-radius: var(--radius-md); background: var(--color-surface); }
.cookie-cat strong { font-weight: 800; }
.cookie-cat p { grid-column: 1; font-size: 13.5px; color: var(--color-text-2); }
.cookie-cat input { grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 24px; appearance: none; border-radius: 999px; background: var(--color-line); border: 2px solid var(--color-ink); position: relative; cursor: pointer; transition: background-color var(--dur-fast) var(--ease); }
.cookie-cat input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-ink); transition: transform var(--dur-fast) var(--ease); }
.cookie-cat input:checked { background: var(--color-teal); }
.cookie-cat input:checked::after { transform: translateX(20px); background: #fff; }
.cookie-cat input:disabled { opacity: .7; cursor: not-allowed; }

/* ── logos & icons ────────────────────────────────────────────────────── */
.icon { width: 1em; height: 1em; flex: none; }
.icon--missing { display: inline-block; width: 1em; height: 1em; outline: 1px dashed var(--color-error); }
.pay-logos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pay-logo { display: inline-grid; place-items: center; height: 44px; min-width: 72px; padding: 0 12px; border: 2px solid var(--color-ink); border-radius: var(--radius-md); background: #fff; }
.pay-logo img { height: 26px; width: auto; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .row { grid-template-columns: 44px 60px 1fr auto; }
  .row__stake { display: none; }
  .row__img { width: 60px; height: 60px; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .stepper { grid-template-columns: repeat(7, minmax(36px, 1fr)); }
  .stepper li span { display: none; }
}
@media (max-width: 720px) {
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-head .more, .sec-head .shelf-nav { grid-column: 1 / -1; justify-self: start; }
  .sec-head p { grid-column: 1 / -1; margin-top: 0; }
  .row { grid-template-columns: 52px 1fr auto; gap: 12px; }
  .row__no { display: none; }
  .row__img { width: 52px; height: 52px; }
  .row__name { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .search button span { display: none; }
  .search button { padding: 0 16px; }
  .cookie-bar { grid-template-columns: 1fr; left: 8px; right: 8px; bottom: 8px; }
  .cookie-bar__actions { justify-content: stretch; }
  .cookie-bar__actions .btn { flex: 1 1 100%; }
  .ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ticket-grid .ticket__title { font-size: 18px; }
  .ticket-grid .ticket__stub { padding: 12px 10px; }
  .ticket-grid .ticket:hover { transform: none; box-shadow: none; }
}
.cookie-bar__actions--modal { margin-top: 16px; }
@media (max-width: 460px) { .hide-xs { display: none; } }

/* ── launch dialog ────────────────────────────────────────────────────── */
.launch__body { display: grid; gap: 10px; margin-top: 14px; color: var(--color-text-2); }
.launch__list { display: grid; gap: 6px; }
.launch__list li { padding-left: 22px; position: relative; color: var(--color-ink); font-weight: 600; }
.launch__list li::before { content: "✶"; position: absolute; left: 0; color: var(--color-brand); }
.launch__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.launch__actions:empty { display: none; }
.launch__rg { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 2px dashed var(--color-ink); font-weight: 700; font-size: 14px; }
.mt { margin-top: 14px; }
.choice__opt > span img { background: #fff; border-radius: 3px; padding: 2px; }

/* ── flow fixes: Anton's tall glyph box must not spill over neighbours ── */
.ticket__link, .row__name a { display: block; }
.search input { width: 100%; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }
.prose h2, .prose h3 { overflow-wrap: break-word; hyphens: auto; }
.sec-head h2 em { display: inline-block; }
.sec-head p { margin-top: 0; }
/* facts: column count fixed per variant, so 4 or 6 items never leave one alone */
.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
@media (min-width: 961px) { .facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }
.toc a, .site-footer__legal a, .prose a { overflow-wrap: anywhere; }
/* focus: the search field shows its own ring too, not only the container shadow */
.search input:focus-visible { outline: 3px solid var(--color-teal); outline-offset: -3px; }
.faq-cats__nav a:focus-visible, .acc-nav a:focus-visible { outline-offset: -3px; }
/* rows: every cell is as tall as the row and centres its own content */
.row { align-items: stretch; }
.row > .row__no, .row > .row__main, .row > .row__stake, .row > .row__act { display: flex; flex-direction: column; justify-content: center; }
.row > .row__no { align-items: center; }
.row > .row__stake { align-items: flex-end; }
.row__act { position: relative; z-index: 1; }
.prose p a { white-space: nowrap; }
@media (max-width: 960px) { .row > .row__stake { display: none; } }
@media (max-width: 720px) { .row > .row__no { display: none; } }

/* final QA: minimum 12px for labels, 24px checkboxes */
.tag, .chip small, .facts dt, .row__stake small, .status { font-size: 12px; }
.field--check input { width: 24px; height: 24px; margin-top: 0; }
.facts dd a, .prose li > a:only-child { position: relative; }
.facts dd a::after, .prose li > a:only-child::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
.stamp { font-size: 12px; }
.steps li > a:only-child { position: relative; }
.steps li > a:only-child::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }
