/* Terminal typeface: Roboto (text) + Roboto Condensed (headings, odds, numbers).
   Overrides the shared Barlow tokens for this link only. */
:root {
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Roboto Condensed', 'Arial Narrow', sans-serif;
}

/* =====================================================================
   BETROX Shop · Link 1 · Booking terminal · CORE styles (terminal/css/core.css)
   ---------------------------------------------------------------------
   Layout modes (set on <body> by core.js):
     .is-landscape  width ≥ 1200: header · main · RIGHT COLUMN (Wettschein + code box)
     .is-portrait   761–1199 (1080×1920 kiosk, tablets): bottom nav + yellow summary bar
     .is-phone      ≤ 760: like portrait, compact
     .is-narrow     = portrait or phone      .is-kiosk = ?t=T01 (touch, 64 px targets)
   Shared pieces for the views: .vh (view header), .mt-* (4-column market table),
   .mcol (one market column), .ko/.teams/.score/.lmin, .cbox, .bcard, .plist, .ssum.
   Tokens and base components come from ../shared/tokens.css.
   ===================================================================== */

:root {
  --hdr-h: 96px;
  --rcol-w: clamp(400px, 24vw, 480px);
  --pad: 24px;
  --bnav-h: 0px;          /* bottom nav height (narrow layouts) */
  --sumbar-h: 0px;        /* floating summary bar height incl. gap (when visible) */
  --mt-odd-h: var(--bx-tap);
  --mt-info-w: minmax(240px, 1.15fr);
  --bx-tabbar-h: var(--bnav-h);
  --bx-sheet-bar-h: 76px;
}
body.is-portrait { --hdr-h: 92px; --bnav-h: 100px; --pad: 24px; --bx-sheet-bar-h: 84px; }
body.is-phone { --hdr-h: 60px; --bnav-h: 64px; --pad: 12px; --mt-info-w: minmax(0, 1fr); --bx-sheet-bar-h: 60px; }
body.has-sumbar { --sumbar-h: calc(var(--bx-sheet-bar-h) + 12px); }
@media (max-width: 1500px) { :root { --rcol-w: 400px; --mt-info-w: minmax(200px, 1fr); } }

html, body { height: 100%; }
body.term {
  overflow: hidden;
  display: grid; grid-template-rows: var(--hdr-h) minmax(0, 1fr);
  height: 100vh; height: 100dvh;
  background: var(--bg);
}

/* =====================================================================
   Header
   ===================================================================== */
.hdr {
  position: relative; z-index: 950;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad); min-width: 0;
  background: linear-gradient(180deg, #151926 0%, var(--bar) 100%);
  border-bottom: 1px solid var(--line);
}
.hdr-brand { display: flex; align-items: center; min-height: 64px; text-decoration: none; flex-shrink: 0; }
.hdr-brand .bx-brand { font-size: 46px; }
.hdr-nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; min-width: 0; }
.nav-a {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 0 18px;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: .05em; text-transform: uppercase;
  touch-action: manipulation;
}
.nav-a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px;
  border-radius: 4px 4px 0 0; background: transparent;
}
.nav-a:hover { color: var(--ink); }
.nav-a.is-active { color: var(--accent); }
.nav-a.is-active::after { background: var(--accent); }
.nav-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--live); color: #FFF; font-weight: 800; font-size: 16px; letter-spacing: 0;
}
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.hdr-check {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 0 24px; border: 0; border-radius: var(--r);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  touch-action: manipulation;
}
.hdr-check:hover { background: var(--accent-hover); }
.hdr-check[aria-expanded="true"] { background: var(--accent-press); box-shadow: inset 0 0 0 3px rgba(11, 13, 18, .25); }
.lang > button { min-width: 64px; min-height: 64px; font-size: 22px; }

body.is-portrait .hdr { gap: 18px; }
body.is-portrait .hdr-brand .bx-brand { font-size: 38px; }
body.is-portrait .nav-a { padding: 0 11px; font-size: 22px; }
body.is-portrait .hdr-check { padding: 0 16px; font-size: 18px; }
body.is-portrait .hdr-right { gap: 12px; }
@media (max-width: 999px) { body.is-portrait .hdr-nav { display: none; } }

body.is-phone .hdr { gap: 10px; }
body.is-phone .hdr-brand { min-height: 44px; }
body.is-phone .hdr-brand .bx-brand { font-size: 30px; }
body.is-phone .hdr-nav { display: none; }
body.is-phone .hdr-right { gap: 8px; }
body.is-phone .hdr-check { min-height: 44px; padding: 0 12px; font-size: 15px; letter-spacing: .03em; }
body.is-phone .hdr-check-l { max-width: 0; overflow: hidden; }
body.is-phone .hdr-check .bx-ic { width: 24px; height: 24px; }
body.is-phone .lang > button { min-width: 44px; min-height: 44px; font-size: 16px; padding: 0 8px; }
body.is-phone .bx-conn { display: none; }
@media (min-width: 440px) { body.is-phone .hdr-check-l { max-width: none; } }

/* =====================================================================
   Body: main column + right column
   ===================================================================== */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--rcol-w);
  min-height: 0; min-width: 0;
}
.main {
  position: relative; min-height: 0; min-width: 0;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; outline: none;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--line-3) transparent;
}
.view { flex: 1 0 auto; padding: var(--pad) var(--pad) 32px; min-width: 0; }
.ftr {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px;
  padding: 18px var(--pad); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px; font-weight: 600;
}
.ftr-links { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.ftr-links .sep { color: #3A4052; }
.ftr-links .age { padding: 1px 8px; border: 2px solid var(--muted); border-radius: 6px; font-weight: 700; }
.ftr .bx-legal { font-size: 15px; }
.ftr-term { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
body.is-narrow .layout { grid-template-columns: minmax(0, 1fr); }
body.is-narrow .main { padding-bottom: calc(var(--bnav-h) + var(--sumbar-h) + env(safe-area-inset-bottom, 0px)); }

.rcol {
  display: flex; flex-direction: column; gap: 16px;
  min-height: 0; padding: 16px 16px 16px 0;
}
body.is-narrow .rcol { display: contents; }
body.is-narrow .rcheck { display: none; }

/* =====================================================================
   Wettschein panel
   ===================================================================== */
.slip {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.slip > .bx-sheet-handle { display: none; }
.slip-head {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 8px 12px 8px 20px;
  background: var(--bar); border-bottom: 1px solid var(--line);
}
.slip-title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--cond); font-weight: 800; font-size: 26px; letter-spacing: .08em; text-transform: uppercase;
}
.slip-clear {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 48px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--muted); font-size: 16px; font-weight: 700;
}
.slip-clear:hover { color: var(--ink); background: var(--tile); }
.slip-close { display: none; margin-left: auto; }
.slip-clear + .slip-close { margin-left: 0; }
.slip-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 12px; display: flex; flex-direction: column; gap: 12px; }
.slip-foot { flex-shrink: 0; padding: 14px 20px 20px; border-top: 1px solid var(--line); background: var(--bar); }
.slip.is-empty .slip-foot { display: none; }

/* tabs Einzel · Kombi · System */
.stabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; background: var(--card); }
.stab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; padding: 6px 4px; border: 0; background: transparent; color: var(--muted);
  font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase;
  touch-action: manipulation;
}
.stab::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 4px; border-radius: 4px 4px 0 0; background: transparent; }
.stab[aria-selected="true"] { color: var(--ink); }
.stab[aria-selected="true"]::after { background: var(--accent); }
.stab.is-off { color: var(--muted-2); cursor: not-allowed; }
.stab small { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0; text-transform: none; line-height: 1.1; text-align: center; }

.slip-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 12px; text-align: center; color: var(--muted); }
.slip-empty svg { color: var(--line-3); margin-bottom: 8px; }
.slip-empty b { color: var(--ink-2); font-size: 22px; }
.slip-empty span { font-size: 17px; }

.slip-items { list-style: none; margin: 0; padding: 0; }
.si {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.si:last-child { border-bottom: 0; }
.si-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.si-top { display: flex; align-items: baseline; gap: 12px; }
.si-pick { font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-odds { margin-left: auto; font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent); }
.si-top .bx-delta { margin-left: auto; font-size: 26px; }
.si-sus, .si-gone { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; color: var(--warn); white-space: nowrap; }
.si-gone { color: var(--error); }
.si-mk { font-size: 16px; font-weight: 600; color: var(--muted); }
.si-ev { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.si-win { font-size: 15px; font-weight: 600; color: var(--muted); }
.si-win b { color: var(--ink); }
.si-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--tile); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.si-acts { display: flex; flex-direction: column; gap: 6px; }
.si-btn {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r); background: var(--tile); color: var(--ink-2);
}
.si-btn:hover { background: var(--tile-hover); color: var(--ink); }
.si-btn[aria-expanded="true"] { color: var(--accent); }
.si-rm:hover { color: var(--error); }
.si.is-sus .si-pick, .si.is-gone .si-pick { color: var(--muted); }
.slip-body > .bx-notice { margin-top: 4px; }
.slip-body > .bx-notice .bx-btn { margin-top: 8px; }

/* summary (slip foot, booking dialog, check result) */
.ssum { display: flex; flex-direction: column; gap: 8px; }
.ssum-stake { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 19px; font-weight: 600; color: var(--ink-2); }
.stake-box {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 150px; justify-content: flex-end; padding: 8px 14px;
  border: 1px solid var(--line-3); border-radius: var(--r-sm); background: var(--tile);
  font-family: var(--cond); font-weight: 700; font-size: 26px; color: var(--ink);
}
.stake-box svg { color: var(--muted-2); margin-right: auto; }
.ssum-note { margin: -2px 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: right; }
.ssum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 19px; font-weight: 600; color: var(--ink-2); }
.ssum-row b { font-family: var(--cond); font-weight: 700; font-size: 24px; color: var(--ink); }
.ssum-win b { font-size: 34px; font-weight: 800; color: var(--accent); }
.book-btn {
  margin-top: 14px; min-height: 84px;
  font-family: var(--cond); font-weight: 800; font-size: 32px; letter-spacing: .06em; text-transform: uppercase;
}

/* narrow: the slip is a bottom sheet (bx-sheet added by core.js) */
body.is-narrow .slip.bx-sheet {
  border: 0; border-top: 1px solid var(--line-3); border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--card); max-height: 90vh; max-height: 90dvh; z-index: 960;
}
body.is-narrow .slip.bx-sheet > .bx-sheet-handle { display: block; }
body.is-narrow .slip-head { background: transparent; border-bottom: 0; padding-top: 0; }
body.is-narrow .slip-title { flex: 1; justify-content: center; color: var(--accent); }
body.is-narrow .slip-close { display: flex; }
body.is-narrow .slip-clear { margin-left: 0; order: -1; }
body.is-narrow .slip.is-empty .slip-body { min-height: 360px; }
body.is-narrow .bx-sheet-backdrop { z-index: 955; }
body.is-phone .slip-body { padding: 0 14px 10px; }
body.is-phone .stabs { margin: 0 -14px; }
body.is-phone .slip-foot { padding: 10px 14px 14px; }
body.is-phone .si-pick { font-size: 22px; }
body.is-phone .si-odds { font-size: 26px; }
body.is-phone .si-btn { width: 44px; height: 44px; }
body.is-phone .book-btn { min-height: 60px; font-size: 26px; margin-top: 10px; }
body.is-phone .ssum-row, body.is-phone .ssum-stake { font-size: 16px; }
body.is-phone .ssum-win b { font-size: 28px; }
body.is-phone .stake-box { font-size: 22px; min-width: 120px; padding: 6px 10px; }

/* =====================================================================
   Right column: "Buchungscode prüfen" box (also used on the Tickets page)
   ===================================================================== */
.rcheck { flex-shrink: 0; }
.cbox {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.cbox-title { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.cbox-row { display: flex; gap: 10px; }
.cbox-input { flex: 1; min-width: 0; min-height: var(--bx-tap); font-family: var(--cond); font-weight: 700; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; }
.cbox .bx-btn { min-height: var(--bx-tap); padding: 0 22px; font-family: var(--cond); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .05em; }
body.is-kiosk .cbox-input { cursor: pointer; }

/* =====================================================================
   "WETTSCHEIN PRÜFEN" dropdown (ref 13)
   ===================================================================== */
.checker {
  position: absolute; top: calc(100% + 1px); right: var(--pad); z-index: 970;
  width: min(640px, calc(100vw - 2 * var(--pad)));
  max-height: calc(100vh - var(--hdr-h) - 16px); max-height: calc(100dvh - var(--hdr-h) - 16px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line-3); border-top: 0;
  border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--shadow);
}
body.is-narrow .checker { left: 0; right: 0; width: auto; border-radius: 0 0 var(--r-lg) var(--r-lg); max-height: calc(100dvh - var(--hdr-h) - var(--bnav-h)); }
body.checker-open .layout { opacity: .45; transition: opacity .15s ease; }   /* not filter: it would trap the fixed sheet */
.ck { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px 24px; }
.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-head h2 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; }
.ck-form { display: flex; gap: 12px; }
.ck-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .12em; }
.ck-form .bx-btn { min-height: 72px; font-family: var(--cond); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .05em; }
.ck-hint { margin: -4px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.ck-keys { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ck-key {
  min-height: var(--bx-tap); border: 1px solid var(--line-3); border-radius: var(--r-sm);
  background: var(--tile); color: var(--ink);
  font-family: var(--cond); font-weight: 700; font-size: 28px; touch-action: manipulation;
  display: flex; align-items: center; justify-content: center;
}
.ck-key:hover { background: var(--tile-hover); }
.ck-key:active { background: var(--accent); color: var(--on-accent); }
.ck-wide { grid-column: span 4; font-size: 20px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.ck-result:empty { display: none; }
body.is-phone .ck { padding: 14px 12px 16px; gap: 10px; }
body.is-phone .ck-head h2 { font-size: 22px; }
body.is-phone .ck-keys { gap: 5px; }
body.is-phone .ck-key { min-height: 46px; font-size: 22px; }
body.is-phone .ck-wide { font-size: 16px; }
body.is-phone .ck-form .bx-btn { min-height: 56px; font-size: 20px; padding: 0 16px; }
body.is-phone .ck-input { min-height: 56px; font-size: 24px; }

/* check result card + pick list */
.bcard { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line-3); }
.bcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bcard-code { font-family: var(--cond); font-weight: 800; font-size: 36px; letter-spacing: .08em; color: var(--accent); }
.bcard-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; font-weight: 600; color: var(--muted); }
.bcard-sub { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bcard-hint { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.bcard .ssum { padding-top: 10px; border-top: 1px solid var(--line-3); }
.st { font-size: 14px; }
.st-ok { background: var(--ok-tint); color: var(--ok); }
.st-off { background: var(--line-2); color: var(--muted); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.plist li:last-child { border-bottom: 0; }
.pl-ev { font-size: 17px; font-weight: 700; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pl-pick { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 16px; color: var(--ink-2); }
.pl-pick .si-odds { font-size: 24px; }
.pl-pick .bx-delta { font-size: 20px; }

/* =====================================================================
   Narrow layouts: floating yellow summary bar + bottom nav
   ===================================================================== */
.sumbar {
  position: fixed; left: 12px; right: 12px; z-index: 820;
  bottom: calc(var(--bnav-h) + 10px + env(safe-area-inset-bottom, 0px));
}
.sumbar-btn {
  width: 100%; min-height: var(--bx-sheet-bar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 18px; border: 0; border-radius: var(--r-lg);
  background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  touch-action: manipulation; text-align: left;
}
.sumbar-btn .bx-badge { background: var(--on-accent); color: var(--accent); min-width: 34px; height: 34px; font-size: 20px; }
.sumbar-l { font-family: var(--cond); font-weight: 800; font-size: 28px; white-space: nowrap; }
.sumbar-r { margin-left: auto; font-family: var(--cond); font-weight: 700; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sumbar.bump .sumbar-btn { animation: sumbar-bump .35s var(--ease); }
@keyframes sumbar-bump { 40% { transform: scale(1.03); } }
body.is-phone .sumbar { left: 8px; right: 8px; bottom: calc(var(--bnav-h) + 6px + env(safe-area-inset-bottom, 0px)); }
body.is-phone .sumbar-btn { gap: 10px; padding: 0 12px; }
body.is-phone .sumbar-l { font-size: 20px; }
body.is-phone .sumbar-r { font-size: 16px; }
body.is-phone .sumbar-btn .bx-badge { min-width: 26px; height: 26px; font-size: 16px; }
body.is-phone .sumbar-btn > .bx-ic { display: none; }

.bnav { display: none; }
body.is-narrow .bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 830;
  display: flex; height: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bar); border-top: 1px solid var(--line-3);
}
.bn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: transparent; color: var(--ink-2); text-decoration: none;
  font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase;
  touch-action: manipulation;
}
.bn.is-active { color: var(--accent); }
.bn-ic { position: relative; display: flex; }
.bn-badge { position: absolute; top: -8px; right: -16px; }
body.is-phone .bn { font-size: 13px; gap: 3px; }
body.is-phone .bn .bx-ic { width: 24px; height: 24px; }

/* =====================================================================
   Shared view pieces
   ===================================================================== */
.loading { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 48px 16px; color: var(--muted); font-size: 18px; font-weight: 600; }
.bx-empty b { color: var(--ink-2); font-size: 20px; }

/* view header: back arrow + title */
.vh { display: flex; align-items: center; gap: 14px; min-height: 64px; margin: 0 0 16px; }
.vh-back {
  flex-shrink: 0; width: var(--bx-tap); height: var(--bx-tap); display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r); background: var(--tile); color: var(--ink);
}
.vh-back:hover { background: var(--tile-hover); }
.vh-ic { display: flex; color: var(--accent); }
.vh-title { margin: 0; min-width: 0; font-family: var(--cond); font-weight: 800; font-size: 36px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.05; }
.vh-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
body.is-phone .vh { gap: 10px; min-height: 48px; margin-bottom: 10px; }
body.is-phone .vh-title { font-size: 26px; }

/* kickoff / teams / live bits used in rows */
.ko { display: flex; flex-direction: column; line-height: 1.05; min-width: 64px; }
.ko small { font-size: 14px; font-weight: 600; color: var(--muted); }
.ko b { font-family: var(--cond); font-weight: 700; font-size: 24px; }
.teams { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.teams .tm { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 22px; }
.score b { font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1.05; color: var(--accent); }
.lmin { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 56px; }
.ltag { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--live-ink); }
.ltag.ht { color: var(--ht); }
.flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); flex-shrink: 0; }

/* "+N" more markets */
.more {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 64px; min-height: var(--mt-odd-h); padding: 0 6px;
  border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2);
  font-family: var(--cond); font-weight: 700; font-size: 18px; white-space: nowrap;
}
.more:hover { background: var(--tile); color: var(--ink); }
.more svg { color: var(--muted); }

/* =====================================================================
   4-column market table (sports list + live list)
     <div class="mt">
       <div class="mt-row mt-headrow"><div class="mt-info">…</div>{T.colHeads()}<div class="mt-more"></div></div>
       {T.groupHead(league, cols)}
       <div class="mt-row"><div class="mt-info">…</div>{T.oddsCols(ev, cols)}<div class="mt-more">{T.moreBtn(ev)}</div></div>
     </div>
   ===================================================================== */
.mt { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: clip; }   /* clip (not hidden): keeps the sticky header row working */
.mt-row {
  --row-bg: var(--card);
  display: grid; grid-template-columns: var(--mt-info-w) minmax(0, var(--mt-cols-w, 4fr)) 72px;
  align-items: center; gap: 12px; padding: 8px 12px 8px 16px;
  background: var(--row-bg); border-top: 1px solid var(--line);
}
.mt-row:first-child { border-top: 0; }
.mt-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mt-more { display: flex; justify-content: flex-end; }
.mt-headrow { --row-bg: var(--bar); position: sticky; top: 0; z-index: 2; padding-top: 10px; padding-bottom: 10px; }
.mt-group { --row-bg: var(--board-head); padding-top: 6px; padding-bottom: 6px; }
.mt-group .mt-info { gap: 10px; }
.mt-gname { font-size: 15px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-cols { display: grid; grid-template-columns: repeat(var(--ncols, 4), minmax(0, 1fr)); gap: 12px; min-width: 0; }
.mcol { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; min-width: 0; align-items: center; }
.mcol.has-line { grid-template-columns: 42px repeat(var(--n, 3), minmax(0, 1fr)); }
.mcol .bx-odd { min-height: var(--mt-odd-h); padding: 0 4px; justify-content: center; }
.mcol .bx-odd .vv { margin-left: 0; }
.mcol .bx-odd .v { font-size: 24px; }
.mcol .bx-odd .bx-lock { margin-left: 0; }
.mline { font-family: var(--cond); font-weight: 700; font-size: 17px; color: var(--muted); text-align: center; white-space: nowrap; }
.mna { display: flex; align-items: center; justify-content: center; min-height: var(--mt-odd-h); border-radius: var(--r); background: var(--tile-off); color: var(--muted-2); font-weight: 700; }
.msub { text-align: center; font-family: var(--cond); font-weight: 700; font-size: 17px; color: var(--muted); }
.mcol-head { position: relative; display: flex; align-items: center; min-width: 0; }
.mcol-sel {
  width: 100%; min-height: 52px; padding: 0 36px 0 14px; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line-3); border-radius: var(--r-sm); background: var(--tile); color: var(--ink);
  font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: .02em; cursor: pointer;
  text-overflow: ellipsis;
}
.mcol-sel:focus { outline: none; border-color: var(--accent); }
.mcol-head .bx-ic { position: absolute; right: 10px; pointer-events: none; color: var(--accent); }
.mcol-sel option { background: var(--card); color: var(--ink); }
.mt-row .bx-sus { grid-column: 2; }
.mstrip { margin: 0 0 12px; }

/* narrow: one column; phone: info on top, odds below */
body.is-narrow .mt-row { --mt-cols-w: 1.4fr; }
body.is-phone .mt-row {
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info more" "cols cols";
  gap: 8px 8px; padding: 10px 10px;
}
body.is-phone .mt-row > .mt-info { grid-area: info; }
body.is-phone .mt-row > .mt-more { grid-area: more; }
body.is-phone .mt-row > .mt-cols, body.is-phone .mt-row > .bx-sus { grid-area: cols; grid-column: 1 / -1; }
body.is-phone .mt-group { grid-template-areas: "info info" "cols cols"; }
body.is-phone .more { min-height: 44px; min-width: 52px; }
body.is-phone .mcol .bx-odd .v { font-size: 22px; }

/* =====================================================================
   Booking success dialog
   ===================================================================== */
.bx-dialog.booked { width: min(1400px, calc(100vw - 48px)); padding: 0; }
.bk { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr); }
.bk-main { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 40px; text-align: center; }
.bk-head { display: flex; align-items: center; gap: 16px; }
.bk-head h2 { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 48px; line-height: 1; }
.bk-ic { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ok-tint); color: var(--ok); }
.bk-code { font-size: 120px; letter-spacing: .06em; }
.bk-bar { padding: 16px 24px; max-width: 100%; }
.bk-valid { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 20px; font-weight: 600; color: var(--ink-2); }
.bk-instr { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 30px; line-height: 1.15; }
.bk-print {
  display: flex; align-items: center; gap: 16px; width: 100%; max-width: 760px; min-height: 76px; padding: 12px 16px 12px 20px;
  border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line-3);
  font-size: 19px; font-weight: 600; text-align: left;
}
.bk-print > span:not(.ps-ic) { flex: 1; }
.bk-print .bx-btn { flex-shrink: 0; }
.bk-print.is-offline, .bk-print.is-failed { background: var(--error-tint); border-color: #5A2328; }
.bk-print.is-done { background: var(--ok-tint); border-color: #1F5A37; }
.ps-ic { display: flex; flex-shrink: 0; }
.ps-ic.ok { color: var(--ok); }
.ps-ic.err { color: var(--error); }
.bk-help { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 64px; font-size: 18px; font-weight: 700; color: var(--accent); }
.bx-dialog a.bx-link { min-height: 64px; }
.bk-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 8px; }
.bk-auto { font-size: 18px; font-weight: 600; color: var(--muted); }
.bk-sum { padding: 32px 28px; background: var(--bar); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.bk-sum h3 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: .04em; }
.bk-sum .ssum { padding-top: 12px; border-top: 1px solid var(--line-3); }
.bk-term { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.bk-mobile { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; padding: 16px; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line-3); }
.bk-mobile p { margin: 0; color: var(--ink-2); font-size: 16px; }
.bk-mobile-h { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--cond); font-weight: 700; font-size: 24px !important; color: var(--accent) !important; }
.bk-hint { font-size: 14px !important; color: var(--muted) !important; }
body.is-narrow .bx-dialog.booked { width: calc(100vw - 32px); }
body.is-narrow .bk { grid-template-columns: 1fr; }
body.is-narrow .bk-sum { border-left: 0; border-top: 1px solid var(--line); }
body.is-phone .bx-dialog.booked { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
body.is-phone .bk-main { padding: 22px 16px; gap: 12px; }
body.is-phone .bk-head h2 { font-size: 32px; }
body.is-phone .bk-ic { width: 48px; height: 48px; }
body.is-phone .bk-code { font-size: 54px; }
body.is-phone .bk-bar { padding: 12px 14px; }
body.is-phone .bk-instr { font-size: 22px; }
body.is-phone .bk-sum { padding: 18px 16px; }
body.is-phone .bk-actions .bx-btn { width: 100%; }
body.is-phone .bk-help, body.is-phone .bx-dialog a.bx-link { min-height: 44px; }

/* idle prompt */
.idle-count { margin: 0 0 22px; text-align: center; line-height: 1; font-family: var(--cond); font-weight: 800; font-size: 104px; color: var(--warn); }

/* toasts above the bottom bars */
body.is-narrow .bx-toasts { bottom: calc(var(--bnav-h) + var(--sumbar-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  .sumbar.bump .sumbar-btn { animation: none; }
  body.checker-open .layout { transition: none; }
}
body.is-phone .slip-clear span { display: none; }
