/* Components. From the mockup: skewed primitives, tags, buttons, chips, rails,
 * game cards, odds, tabs, event rows, widgets, search dialog. Added in the same
 * language (not drawn in the mockup): fields and forms, modals, cookie banner,
 * age gate, prose, accordion, info cards, notices, pagination of states. */

/* ---------- skewed primitives (12°) ---------- */
.skew { display: inline-flex; align-items: center; gap: .4em; transform: skewX(calc(-1 * var(--angle))); }
.skew > * { display: inline-flex; align-items: center; gap: .4em; transform: skewX(var(--angle)); }
.tag { font: 700 var(--fs-xs)/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; padding: .5em .85em; border-radius: 4px; background: var(--surface-3); color: var(--text); }
.tag--casino { background: var(--casino-soft); color: var(--casino-text); box-shadow: inset 0 0 0 1px var(--casino-line); }
.tag--sports { background: var(--sports-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--sports-line); }
.tag--live { background: color-mix(in oklab, #ff5a6a 18%, transparent); color: #ffb3ba; box-shadow: inset 0 0 0 1px color-mix(in oklab, #ff5a6a 45%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; display: inline-block; }
.dot--live { background: #ff5a6a; box-shadow: 0 0 0 3px color-mix(in oklab, #ff5a6a 30%, transparent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* ---------- buttons ---------- */
.btn { --h: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; height: var(--h); padding: 0 1.6em; border-radius: var(--radius-1); font: 700 1rem/1 var(--font-text); white-space: nowrap; transform: skewX(calc(-1 * var(--angle))); transition: transform .22s var(--spring), background-color .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; }
.btn > span { display: inline-flex; align-items: center; gap: .55em; transform: skewX(var(--angle)); }
.btn:hover { transform: translateY(-3px) skewX(calc(-1 * var(--angle))); }
.btn:active { transform: translateY(0) skewX(calc(-1 * var(--angle))); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: progress; transform: skewX(calc(-1 * var(--angle))); }
.btn--casino, .btn--primary { background: var(--casino-ink); color: #fff; box-shadow: 0 10px 28px -12px var(--brand); }
.btn--casino:hover, .btn--primary:hover { background: color-mix(in oklab, var(--brand), #000 6%); }
.btn--sports { background: var(--accent); color: var(--on-sports); box-shadow: 0 10px 28px -12px var(--accent); }
.btn--sports:hover { background: color-mix(in oklab, var(--accent), #fff 12%); }
.btn--ghost { background: color-mix(in oklab, #fff 6%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn--ghost:hover { background: color-mix(in oklab, #fff 11%, transparent); }
.btn--sm { --h: 38px; padding: 0 1.1em; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--casino-text); transition: color .2s; }
.link:hover { color: #fff; }
.link .ic { transition: transform .2s var(--ease); }
.link:hover .ic { transform: translateX(3px); }
.link--sports { color: var(--accent); }
.link--sports:hover { color: color-mix(in oklab, var(--accent), #fff 30%); }

/* ---------- chips & rails ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); font: 600 var(--fs-sm)/1 var(--font-text); color: var(--text-2); transition: background-color .2s var(--ease), color .2s, box-shadow .2s; }
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); }
.chip .count { font-size: 11px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--casino-ink); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"] .count { color: color-mix(in oklab, #fff 75%, transparent); }
.is-sports .chip[aria-pressed="true"] { background: var(--accent); color: var(--on-sports); }
.is-sports .chip[aria-pressed="true"] .count { color: color-mix(in oklab, var(--on-sports) 70%, transparent); }
.rail-nav { display: flex; gap: 8px; flex: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 21vw, 296px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 12px; margin: -4px; }
.rail::-webkit-scrollbar { display: none; }

/* ---------- game cards ---------- */
.gcard { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; padding: 10px 10px 16px; border-radius: var(--radius-3); background: var(--surface-2); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair); transition: transform .25s var(--spring), box-shadow .25s var(--ease); }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--casino-line); }
.gcard__img { position: relative; aspect-ratio: 1; border-radius: var(--radius-2); overflow: hidden; background: var(--surface-3); }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gcard:hover .gcard__img img { transform: scale(1.05); }
.gcard__badge { position: absolute; left: 12px; top: 12px; }
.gcard__badge .tag { background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--hair-2); }
.gcard__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(16 19 28 / .55); opacity: 0; transition: opacity .25s var(--ease); }
.gcard:hover .gcard__play, .gcard:focus-within .gcard__play { opacity: 1; }
.gcard__body { padding: 14px 6px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gcard__name { font: 700 1.08rem/1.2 var(--font-display); letter-spacing: -.01em; }
.gcard__prov { font-size: var(--fs-sm); color: var(--text-2); }
.gcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.gcard__cat { font-size: var(--fs-xs); color: var(--casino-text); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.gcard__cat .dot { width: 6px; height: 6px; color: var(--brand); }
.details { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--casino-soft); color: #fff; font: 700 var(--fs-sm)/1 var(--font-text); box-shadow: inset 0 0 0 1px var(--casino-line); transition: background-color .2s, transform .2s var(--spring); }
.details:hover { background: var(--casino-ink); }
.details .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.details:hover .ic { transform: translate(2px, -2px); }
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.grid-games .gcard__name { font-size: 1rem; }
.empty { padding: 40px; border-radius: var(--radius-3); background: var(--surface-2); color: var(--text-2); text-align: center; grid-column: 1 / -1; }

/* ---------- widgets, crests, odds ---------- */
.widget { padding: 14px; border-radius: var(--radius-3); background: color-mix(in oklab, var(--surface-1) 88%, transparent); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.crest { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; flex: none; font: 800 10px/1 var(--font-display); background: var(--surface-3); color: var(--text-2); }
.odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.odds--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odd { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: var(--radius-1); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--hair); font: 700 var(--fs-sm)/1 var(--font-text); font-variant-numeric: tabular-nums; text-align: left; transition: background-color .18s var(--ease), color .18s, box-shadow .18s, transform .18s var(--spring); }
.odd small { font-size: 11px; line-height: 1.35; color: var(--text-2); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--sports-line); transform: translateY(-1px); }
.odd[aria-pressed="true"] { background: var(--accent); color: var(--on-sports); box-shadow: none; }
.odd[aria-pressed="true"] small { color: color-mix(in oklab, var(--on-sports) 70%, transparent); }
.odd:disabled { opacity: .45; cursor: default; }

/* ---------- sport tabs & event rows ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); font: 600 var(--fs-sm)/1 var(--font-text); color: var(--text-2); transition: background-color .2s, color .2s; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"], .tab[aria-current] { background: var(--accent); color: var(--on-sports); }
.tab .count { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tab .ic { width: 16px; height: 16px; }
.events { border-radius: var(--radius-3); background: var(--surface-2); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair); padding: 6px; display: flex; flex-direction: column; }
.events__head, .ev { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) 64px 228px; gap: 16px; align-items: center; }
.events__head { padding: 12px 16px 10px; font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.events__head > span:last-child { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ev { padding: 14px 16px; border-radius: var(--radius-2); transition: background-color .2s var(--ease); }
.ev + .ev { box-shadow: 0 -1px 0 var(--hair); }
.ev:hover { background: color-mix(in oklab, #fff 3%, transparent); }
.ev__league { font: 700 var(--fs-sm)/1.25 var(--font-text); }
.ev__when { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }
.ev__when .day { font-weight: 700; color: var(--accent); }
.ev__teams { display: grid; gap: 6px; font: 600 .95rem/1.2 var(--font-text); }
.ev__teams a { display: grid; gap: 6px; transition: color .2s; }
.ev__teams a:hover { color: var(--accent); }
.ev__teams span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev__teams span i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__mk { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 10px; border-radius: var(--radius-pill); font: 700 12px/1 var(--font-text); color: var(--text-2); background: var(--surface-3); font-variant-numeric: tabular-nums; transition: color .2s, background-color .2s; }
.ev__mk:hover { color: var(--on-sports); background: var(--accent); }
.events__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 10px; font-size: var(--fs-sm); color: var(--text-2); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font: 800 10px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #ffb3ba; }

/* ---------- search dialog ---------- */
.search { width: min(640px, calc(100% - 32px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: var(--radius-3); background: var(--surface-1); color: var(--text); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair-2); }
.search::backdrop { background: rgb(8 10 16 / .6); backdrop-filter: blur(4px); }
.search[open] { animation: pop .25s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.search__field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--hair); }
.search__field > .ic { width: 20px; height: 20px; color: var(--text-2); }
.search__field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 1.05rem/1.4 var(--font-text); }
.search__field input::placeholder { color: var(--text-2); }
.search__list { padding: 8px; max-height: min(420px, 55vh); overflow: auto; }
.search__list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-2); transition: background-color .15s; }
.search__list a:hover, .search__list a:focus-visible, .search__list a.is-active { background: var(--surface-3); }
.search__list img { width: 40px; height: 40px; border-radius: var(--radius-1); object-fit: cover; }
.search__list .crest { width: 40px; height: 40px; border-radius: var(--radius-1); color: var(--accent); }
.search__list small { display: block; color: var(--text-2); font-size: var(--fs-xs); }
.search__group { padding: 10px 10px 4px; font: 700 11px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.search__empty { padding: 24px; text-align: center; color: var(--text-2); }

/* ---------- fields & forms (added; same surfaces and radius scale) ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; align-content: start; }
.field__label { font: 700 var(--fs-sm)/1.2 var(--font-text); color: var(--text); }
.field__hint { font-size: var(--fs-xs); color: var(--text-2); }
.field input:not([type=checkbox]):not([type=radio]):not(.visually-hidden), .field select, .field textarea { width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: var(--radius-2); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--text); font: 500 1rem/1.4 var(--font-text); transition: box-shadow .2s var(--ease), background-color .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; padding: 14px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--text-2) 70%, transparent); }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px color-mix(in oklab, #fff 26%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--casino-soft); background: var(--surface-2); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--color-error); }
.field__error { color: var(--color-error); font-size: var(--fs-sm); font-weight: 600; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check .field__error { grid-column: 1 / -1; }
.field--check .field__label { font-weight: 500; color: var(--text-2); line-height: 1.5; }
.field--check .field__label a { color: var(--casino-text); text-decoration: underline; text-underline-offset: 3px; }
.field input[type=checkbox] { appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; background: var(--surface-1); box-shadow: inset 0 0 0 1.5px var(--hair-2); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.field 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 .18s var(--spring); }
.field input[type=checkbox]:checked { background: var(--brand); box-shadow: none; }
.field input[type=checkbox]:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.pass { position: relative; }
.pass input { padding-right: 52px !important; }
.pass__toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-1); color: var(--text-2); transition: color .2s, background-color .2s; }
.pass__toggle:hover { color: var(--text); background: var(--surface-3); }
.form__error { padding: 12px 14px; border-radius: var(--radius-2); background: color-mix(in oklab, var(--color-error) 14%, transparent); color: var(--color-error); font-weight: 600; font-size: var(--fs-sm); }
.form__done { padding: 18px; border-radius: var(--radius-2); background: color-mix(in oklab, var(--color-success) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-success) 40%, transparent); color: var(--text); }
.form__done strong { color: var(--color-success); display: block; margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- overlays: modal (kit core contract: .overlay / .overlay__panel / .is-open) ---------- */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: rgb(8 10 16 / .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-slow) var(--ease); overflow-y: auto; }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; width: min(100%, 460px); padding: 32px 28px 28px; border-radius: var(--radius-3); background: var(--surface-1); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair-2); transform: translateY(10px) scale(.98); transition: transform var(--dur-slow) var(--spring); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__panel::before { content: ""; position: absolute; left: 50%; top: -1px; width: 120px; height: 3px; margin-left: -60px; border-radius: 2px; background: linear-gradient(90deg, var(--brand) 50%, var(--accent) 50%); transform: skewX(calc(-1 * var(--angle))); }
.overlay__close { position: absolute; top: 14px; right: 14px; }
.modal__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: var(--radius-2); background: var(--casino-soft); color: var(--casino-text); box-shadow: inset 0 0 0 1px var(--casino-line); }
.modal__icon .ic { width: 26px; height: 26px; }
.modal__icon--sports { background: var(--sports-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--sports-line); }
.overlay__panel h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-stretch: 86%; font-weight: 800; }
.overlay__panel > p, .modal__text { margin-top: 10px; color: var(--text-2); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.modal__actions .btn { flex: 1 1 160px; }
.modal__ref { margin-top: 16px; font-size: var(--fs-xs); color: var(--text-2); }

/* ---------- age gate (server-rendered open) ---------- */
.overlay--gate { background: rgb(8 10 16 / .9); }
.overlay--gate .overlay__panel { width: min(100%, 520px); text-align: center; }
.overlay--gate .age { width: 64px; height: 64px; margin: 0 auto 18px; font-size: 18px; box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.overlay--gate .modal__actions { flex-direction: column; }
.overlay--gate .modal__actions .btn { flex: none; }
.gate-denied { margin-top: 18px; padding: 14px; border-radius: var(--radius-2); background: color-mix(in oklab, var(--color-error) 12%, transparent); color: var(--text); font-size: var(--fs-sm); }

/* ---------- cookie banner ---------- */
.cookie { position: fixed; z-index: var(--z-overlay); left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 980px; padding: 20px 22px; border-radius: var(--radius-3); background: color-mix(in oklab, var(--surface-1) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair-2); display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cookie.is-closing { opacity: 0; transform: translateY(12px); }
.cookie p { font-size: var(--fs-sm); color: var(--text-2); }
.cookie p strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; font-family: var(--font-display); }
.cookie p a { color: var(--casino-text); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie__prefs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--radius-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; }
.toggle input { appearance: none; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--hair-2); position: relative; cursor: pointer; transition: background-color .2s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { transform: translateX(16px); }
.toggle input:disabled { opacity: .6; cursor: not-allowed; }
.toggle b { display: block; font-size: var(--fs-sm); }
.toggle small { color: var(--text-2); font-size: var(--fs-xs); }
.body-cookie { padding-bottom: 0; }

/* ---------- prose (legal / info pages) ---------- */
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--text); font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); font-stretch: 88%; font-weight: 800; margin-top: 0; }
.prose h3 { color: var(--text); font-size: 1.15rem; font-weight: 700; margin-top: 1.5em; }
.prose strong { color: var(--text); }
.prose a { color: var(--casino-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.1em; top: .7em; width: 8px; height: 3px; border-radius: 1px; background: var(--brand); transform: skewX(calc(-1 * var(--angle))); }
.prose ol li { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { color: var(--text); font-weight: 700; }

/* ---------- info card, notice, accordion ---------- */
.card { position: relative; padding: 24px; border-radius: var(--radius-3); background: var(--surface-2); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair); transition: transform .25s var(--spring), box-shadow .25s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair-2); }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-2); background: var(--sports-soft); box-shadow: inset 0 0 0 1px var(--sports-line); color: var(--text); font-size: var(--fs-sm); }
.notice .ic { color: var(--accent); width: 20px; height: 20px; margin-top: 1px; }
.notice--casino { background: var(--casino-soft); box-shadow: inset 0 0 0 1px var(--casino-line); }
.notice--casino .ic { color: var(--casino-text); }
.acc { border-radius: var(--radius-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.acc + .acc { margin-top: 10px; }
.acc__q { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font: 700 1.04rem/1.35 var(--font-text); color: var(--text); border-radius: var(--radius-3); transition: color .2s; }
.acc__q:hover { color: var(--casino-text); }
.acc__q .ic { flex: none; width: 20px; height: 20px; color: var(--text-2); transition: transform .3s var(--ease); }
.acc__q[aria-expanded="true"] .ic { transform: rotate(45deg); color: var(--accent); }
.acc__a > div > div { padding: 0 22px 22px; }

/* ---------- game details modal ---------- */
.game-modal { width: min(100%, 520px); }
.game-modal__top { display: flex; gap: 18px; align-items: center; }
.game-modal__top img { width: 112px; height: 112px; border-radius: var(--radius-2); object-fit: cover; box-shadow: var(--shadow-1); }
.game-modal__top h2 { margin-top: 10px; }
.game-modal__top p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-sm); }
.game-modal__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; }
.game-modal__facts div { padding: 12px; border-radius: var(--radius-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.game-modal__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.game-modal__facts dd { margin: 4px 0 0; font-weight: 700; font-size: var(--fs-sm); }

/* ---------- bet slip (floating) ---------- */
.slip { position: fixed; z-index: var(--z-tabbar); right: 20px; bottom: 20px; width: min(360px, calc(100vw - 32px)); border-radius: var(--radius-3); background: var(--surface-1); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--sports-line); animation: pop .3s var(--spring); }
.slip__bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 800; }
.slip__bar span { display: inline-flex; align-items: center; gap: 8px; }
.slip__bar .ic { color: var(--accent); }
.slip__bar b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-sports); font-variant-numeric: tabular-nums; transition: transform .25s var(--spring); }
.slip__bar b.bump { transform: scale(1.25); }
.slip__body { padding: 0 12px 14px; }
.slip__list { display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.slip__list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: var(--fs-sm); }
.slip__list small { display: block; color: var(--text-2); font-size: var(--fs-xs); }
.slip__list b { color: var(--accent); font-variant-numeric: tabular-nums; }
.slip__list button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--text-2); transition: background-color .2s, color .2s; }
.slip__list button:hover { background: var(--surface-3); color: var(--text); }
.slip__foot { display: grid; gap: 10px; margin-top: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.slip__foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.slip__clear { position: relative; justify-self: center; color: var(--text-2); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.slip__clear:hover { color: var(--text); }
@media (max-width: 900px) { .slip { right: 12px; left: 12px; width: auto; bottom: 84px; } }
@media (max-width: 900px) {
  .cookie { grid-template-columns: 1fr; bottom: 84px; padding: 16px; }
  .cookie__actions { justify-content: stretch; }
  .cookie__actions .btn { flex: 1 1 auto; }
  .form__row { grid-template-columns: 1fr; }
  .game-modal__facts { grid-template-columns: 1fr 1fr; }
  .events__head { display: none; }
  .ev { grid-template-columns: 1fr auto; grid-template-areas: "meta mk" "teams teams" "odds odds"; gap: 12px; padding: 16px 12px; }
  .ev__meta { grid-area: meta; } .ev__teams { grid-area: teams; } .ev__mk { grid-area: mk; } .ev .odds { grid-area: odds; }
  .ev .odd { min-height: 46px; }
  .rail { grid-auto-columns: 76vw; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .chips { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .rail-nav { display: none; }
  .tabs { border-radius: var(--radius-2); width: auto; }
}

/* Inline links/emphasis must not wrap across lines: a wrapped inline box spans the
   full line width and overlaps its neighbour (flow.js "наезд"). Texts are ≤ 20 chars. */
.prose a, .field__label a, main p a { white-space: nowrap; }
.prose strong { display: inline-block; }
/* no-draw markets: an empty cell keeps the 1·X·2 grid, without a dead button */
.odd--na { display: grid; place-items: center; min-height: 40px; border-radius: var(--radius-1); background: color-mix(in oklab, var(--surface-3) 50%, transparent); color: var(--text-2); font-weight: 700; }
.chip .count, .tab .count { opacity: 1; }
.skip-link { background: var(--casino-ink); }
.logo:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.o-k { color: var(--text-2); }
/* event row: three cells — meta · teams · actions (markets link + prices) */
.events__head, .ev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) 308px; }
.events__head > span:last-child { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); gap: 16px; }
.ev__act { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; }
.ev__act .ev__mk { justify-self: start; }
.chip[aria-pressed="true"] .count { color: #fff; }
.crumbs { flex-wrap: nowrap; overflow: hidden; }
.crumbs li { flex: none; white-space: nowrap; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
main p a.link { white-space: normal; }
@media (max-width: 900px) {
  .ev { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 12px; }
  .ev__meta, .ev__teams { grid-area: auto; }
  .ev__act { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 900px) { .ev__act > *, .ev .odds, .ev__mk { grid-area: auto; } }
/* text links keep a transparent outline at rest (visible in forced-colors mode);
   on keyboard focus it turns solid — also covers links inside collapsed answers */
.prose a { outline: 2px solid transparent; outline-offset: 3px; }
.prose a:focus-visible { outline-color: var(--text); }
/* cookie banner on short screens: never taller than the space above the tab bar */
.cookie { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 900px) { .cookie { max-height: calc(100dvh - 84px - 16px); } }
