/* Reference palette: the locally saved Betano design tokens. */
:root {
  --bg: #f3f5fb;
  --surface: #fff;
  --raised: #eaeefb;
  --line: #e2e8f8;
  --muted: #59657a;
  --orange: #ff3c00;
  --orange-light: #ff6333;
  --ink: #202938;
  color: var(--ink);
  color-scheme: light;
  scrollbar-color: #a9b9d1 var(--bg);
}
body { background: var(--bg); font-size: 14px; }
::selection { background: #ffddd1; color: #6b1900; }
.demo-strip { height: 28px; background: #20252d; color: #e1e5ed; font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.demo-pulse { background: #ff825c; box-shadow: none; }
.topbar { height: 76px; background: var(--orange); border: 0; padding: 0 28px; gap: 64px; box-shadow: none; }
.brand { color: white; font-size: 30px; letter-spacing: -.035em; }
.brand-mark { background: white; color: var(--orange); border-radius: 6px; clip-path: none; width: 34px; height: 34px; }
.brand-dot { color: inherit; }
.main-nav { gap: 32px; }
.main-nav a { color: #fff; font-size: 14px; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: white; }
.main-nav a:hover { color: #fff; background: #0000000a; }
.live-dot { background: #ff6333; box-shadow: none; }
.main-nav .live-dot { background: white; }
.demo-account { font-size: 12px; border-color: #ffffff70; color: white; padding: 11px 14px; border-radius: 6px; }
.demo-account span { color: white; }
.layout { width: min(1600px,100%); margin: 20px auto 40px; padding: 0 20px; grid-template-columns: 200px minmax(0,1fr) 306px; gap: 16px; }
.sidebar { background: white; border-radius: 8px; padding: 8px; overflow: hidden; }
.side-heading { margin: 12px 12px 16px; color: #59657a; font-size: 11px; letter-spacing: .06em; }
.sport { color: #303b4c; font-size: 13px; min-height: 48px; padding: 12px; gap: 12px; border-radius: 6px; }
.sport:hover { background: #f3f5fb; color: #202938; }
.sport.active { background: #fff0ea; color: #b82b00; box-shadow: none; }
.sport b,.sport.active b { color: #677287; font-size: 11px; }
.sport svg { width: 20px; height: 20px; display: block; }
.side-promo { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; margin: 22px 4px 0; min-height: auto; padding: 24px 8px 8px; }
.side-promo strong { font-size: 24px; line-height: 1.1; color: #202938; letter-spacing: -.03em; }
.side-promo small { color: #59657a; font-size: 12px; }
.promo-icon { display: none; }
.responsible { font-size: 11px; color: #59657a; margin: 16px 12px; }
.responsible a { color: #b82b00; }
.welcome { min-height: 236px; padding: 28px; background: #ff4800; border: 0; border-radius: 8px; }
.welcome::after { display: none; }
.welcome-copy { width: 56%; }
.welcome h1 { color: white; font-size: clamp(28px,2.9vw,42px); line-height: 1.04; letter-spacing: -.035em; font-weight: 850; text-wrap: balance; }
.welcome h1 span { color: white; }
.subtitle { color: white; font-size: 12px; line-height: 1.5; margin-top: 12px; max-width: 270px; }
.welcome-link { background: white; color: #b82b00; border: 0; padding: 11px 14px; border-radius: 6px; margin-top: 16px; font-size: 11px; letter-spacing: .025em; gap: 16px; }
.welcome-link span { color: inherit; }
.welcome-link:hover { background: #fff0ea; color: #992400; gap: 16px; }
.hero-players { position: absolute; right: 0; bottom: 0; height: 100%; width: 48%; object-fit: cover; object-position: center; z-index: 0; }
.event-toolbar { margin: 24px 0 0; padding: 0 0 16px; border: 0; gap: 12px; }
.event-heading { flex-wrap: wrap; gap: 10px; }
.event-heading h2 { font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.live-badge { color: #b82b00; font-size: 10px; letter-spacing: .02em; }
.toolbar-note { color: #59657a; font-size: 9px; text-align: right; }
.league-head { background: #e2e8f8; border-radius: 6px 6px 0 0; margin: 0; padding: 13px 14px; gap: 8px; }
.league-head strong { font-size: 11px; color: #303b4c; letter-spacing: .02em; }
.league-icon { color: #48576f; }
.league-label { font-size: 9px; color: #59657a; }
.league-label i { color: #59657a; }
.match-count { color: #59657a; font-size: 9px; }
.matches { gap: 0; border-radius: 0 0 8px 8px; overflow: hidden; }
.matches:empty { display: none; }
.match { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: white; padding: 14px; }
.match:hover { background: #fcfcfd; border-color: var(--line); }
.match:has(.odd.selected) { border-color: var(--line); }
.match-meta { color: #59657a; font-size: 10px; gap: 8px; margin-bottom: 12px; }
.live-label { color: #b82b00; }
.match-main { grid-template-columns: minmax(130px,1fr) repeat(3,minmax(48px,76px)); gap: 6px; }
.teams { color: #202938; font-size: 12px; font-weight: 650; gap: 9px; }
.team { white-space: normal; line-height: 1.3; }
.team-icon { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 4px; background: #eaeefb; color: #48576f; font-size: 8px; font-weight: 800; }
.odds-label { color: #59657a; font-size: 10px; margin-bottom: 5px; }
.odd { background: #eaeefb; color: #233752; border: 1px solid transparent; border-radius: 6px; min-height: 42px; font-size: 14px; font-weight: 750; box-shadow: none; }
.odd:hover { background: #dce3f5; color: #202938; border-color: #b7c4dc; transform: none; }
.odd.selected { background: var(--orange); border-color: var(--orange); color: white; box-shadow: none; }
.bet-panel { background: white; border: 0; border-radius: 8px; box-shadow: none; }
.coupon-head { background: #252d3a; color: white; border: 0; padding: 18px 16px; }
.coupon-head h2 { font-size: 18px; }
.count { background: #ffffff20; color: white; border-radius: 4px; font-size: 11px; }
.clear { color: #e0e5ee; font-size: 11px; padding: 8px 0 8px 6px; }
.clear span { color: inherit; }
.coupon-mode { height: 48px; gap: 24px; border-color: var(--line); }
.coupon-mode .mode-button { color: #59657a; font-size: 12px; }
.coupon-mode .mode-button:hover { color: #202938; }
.coupon-mode .mode-button.mode-active { color: #b82b00; border-color: var(--orange); }
.demo-tag { color: #59657a; border-color: #d1d9eb; font-size: 8px; border-radius: 4px; }
.coupon-body { min-height: 198px; padding: 30px 20px; }
.empty-icon { border: 1px solid #d1d9eb; border-radius: 8px; color: #677287; width: 42px; height: 48px; font-size: 24px; margin-bottom: 14px; }
.coupon-body > strong { font-size: 14px; color: #303b4c; }
.coupon-body p { color: #59657a; font-size: 12px; line-height: 1.6; }
.coupon-selection { border-color: var(--line); }
.selection-top { font-size: 12px; line-height: 1.5; color: #303b4c; }
.selection-detail { font-size: 11px; color: #59657a; }
.remove-selection { color: #59657a; padding: 4px; min-width: 24px; }
.coupon-summary { padding: 16px; border-color: var(--line); }
.coupon-summary label { font-size: 12px; color: #303b4c; }
.coupon-summary label span,.stake-currency { font-size: 10px; color: #59657a; }
.stake-input { height: 44px; background: #fff; border-color: #a9b9d1; border-radius: 6px; color: #59657a; }
.stake-input input { color: #202938; caret-color: var(--orange); font-size: 14px; }
.stake-input input::placeholder { color: #59657a; }
.input-help { font-size: 10px; color: #59657a; line-height: 1.5; }
.summary-row { color: #59657a; font-size: 12px; margin: 14px 0; }
.summary-row strong { color: #303b4c; font-variant-numeric: tabular-nums; }
.summary-row.return { color: #303b4c; border-color: var(--line); }
.summary-row.return strong { color: #202938; font-size: 19px; }
.place-bet { min-height: 48px; align-items: center; justify-content: center; background: #0b8a3e; color: white; border-radius: 6px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.place-bet:not(:disabled):hover { background: #087033; transform: none; }
.coupon-summary .summary-row.return { margin: 12px 0 0; border: 0; }
.summary-row.return span, .summary-row.return strong { color: #0b8a3e; }
.place-bet:disabled { background: #e2e8f8; color: #59657a; }
.coupon-note { font-size: 10px; color: #59657a; }
.coupon-security { border-color: var(--line); color: #59657a; background: #f7f9fc; font-size: 10px; }
.coupon-security span { color: #59657a; }
.disclaimer { color: #59657a; font-size: 10px; border-color: #d1d9eb; line-height: 1.7; }
.promo-info { background: white; border-color: var(--line); border-radius: 8px; padding: 16px; }
.promo-info-icon { background: #fff0ea; color: #b82b00; }
.promo-info h2 { font-size: 12px; color: #303b4c; }
.promo-info p { font-size: 11px; color: #59657a; line-height: 1.5; }
.empty-events { border: 0; background: white; color: #303b4c; }
.empty-events p { color: #59657a; font-size: 12px; }
.empty-events button { background: var(--orange); color: white; border: 0; font-size: 12px; }
footer { background: #252d3a; color: #c2cee5; border: 0; font-size: 11px; padding: 24px; }
footer span:first-child { color: white; font-size: 12px; }
footer i { font-size: 9px; color: #c2cee5; }
footer a { color: #fff; }
.toast { max-width: calc(100% - 32px); background: #252d3a; color: white; border-radius: 8px; font-size: 13px; line-height: 1.5; }
[hidden] { display: none !important; }
:where(a,button,input):focus-visible { outline: 2px solid #b82b00; outline-offset: 3px; }
.topbar :focus-visible { outline-color: white; }
@media (max-width: 1150px) {
  .layout { grid-template-columns: 164px minmax(0,1fr) 280px; gap: 12px; padding: 0 12px; }
  .topbar { gap: 40px; }
  .league-label { display: none; }
  .match-main { grid-template-columns: minmax(100px,1fr) repeat(3,52px); }
  .welcome { padding: 24px; }
  .welcome h1 { font-size: 30px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 156px minmax(0,1fr); }
  .bet-panel { grid-column: 2; position: static; }
  .sidebar { grid-row: 1 / span 2; }
  .welcome h1 { font-size: 36px; }
  .match-main { grid-template-columns: minmax(130px,1fr) repeat(3,76px); }
}
@media (max-width: 620px) {
  .demo-strip { font-size: 9px; height: 28px; letter-spacing: 0; gap: 5px; }
  .topbar { height: auto; min-height: 64px; padding: 14px 16px 0; gap: 0; flex-wrap: wrap; background: var(--orange); backdrop-filter: none; }
  .brand { font-size: 27px; }
  .demo-account { font-size: 9px; padding: 8px; }
  .main-nav { display: flex; order: 3; width: 100%; height: 44px; gap: 26px; margin-top: 8px; }
  .main-nav a { font-size: 12px; }
  .layout { display: flex; padding: 0 10px; margin: 12px auto 24px; gap: 12px; }
  .sidebar { display: flex; padding: 6px; border-radius: 8px; gap: 6px; }
  .side-heading,.side-promo,.responsible { display: none; }
  .sport { flex: 1; justify-content: center; font-size: 13px; min-height: 44px; }
  .sport b { display: block; margin-left: 0; }
  .content { width: 100%; }
  .welcome { min-height: 208px; padding: 20px; }
  .welcome-copy { width: 52%; }
  .welcome h1 { font-size: 27px; }
  .subtitle { font-size: 11px; margin-top: 10px; }
  .hero-players { width: 44%; object-position: 47% center; }
  .welcome-link { padding: 10px 12px; font-size: 10px; margin-top: 12px; }
  .event-toolbar { margin-top: 22px; padding-bottom: 12px; }
  .event-heading h2 { font-size: 18px; }
  .live-badge { font-size: 9px; }
  .toolbar-note { display: none; }
  .league-head { padding: 12px; }
  .league-head strong { font-size: 10px; }
  .match { padding: 12px; }
  .match-meta { font-size: 9px; }
  .match-main { grid-template-columns: minmax(100px,1fr) repeat(3,minmax(43px,56px)); gap: 5px; }
  .teams { font-size: 11px; }
  .team-icon { width: 20px; height: 20px; flex-basis: 20px; font-size: 7px; }
  .odd { font-size: 13px; min-height: 44px; }
  .bet-panel { width: 100%; }
  .coupon-body { min-height: 160px; padding: 24px; }
  .coupon-summary { padding: 16px; }
  footer { gap: 12px; padding: 20px 16px; font-size: 10px; flex-wrap: wrap; }
}
@media (max-width: 370px) {
  .welcome { padding: 16px; }
  .welcome h1 { font-size: 25px; }
  .match { padding: 10px; }
  .match-main { grid-template-columns: minmax(94px,1fr) repeat(3,43px); }
}

/* Floating ticket follows the newly supplied cart reference. */
.layout { grid-template-columns: 200px minmax(0,1fr) 340px; }
.team-crest { position: relative; display: inline-grid; place-items: center; width: 26px; height: 28px; flex: 0 0 26px; vertical-align: middle; }
.team-crest > span { font-size: 8px; font-weight: 800; color: #48576f; padding: 3px; border-radius: 3px; background: #eaeefb; }
.team-crest img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; background: white; }
.bet-panel { position: fixed; z-index: 6; right: max(20px,calc((100vw - 1560px)/2)); bottom: 16px; top: auto; width: 340px; border-radius: 12px; box-shadow: 0 8px 32px #20293824; overflow: hidden; }
.cart-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; border: 0; background: var(--orange); color: white; padding: 12px 16px; cursor: pointer; font: 700 13px inherit; font-family: inherit; font-size: 13px; font-weight: 700; text-align: left; }
.cart-toggle:hover { background: #db3300; }
.cart-toggle small { font-size: 8px; opacity: .9; margin-left: 4px; }
.cart-toggle .count { padding: 4px 6px; background: white; color: #b82b00; min-width: 24px; }
.cart-toggle > strong { margin-left: auto; font-size: 16px; font-variant-numeric: tabular-nums; }
.cart-icon svg { display: block; width: 20px; height: 24px; }
.cart-chevron { width: 18px; height: 18px; transition: transform .2s ease-out; }
.cart-toggle[aria-expanded="false"] .cart-chevron { transform: rotate(180deg); }
.cart-toggle:focus-visible { outline-color: #fff; outline-offset: -5px; }
.cart-content { max-height: min(680px,calc(100dvh - 180px)); overflow-y: auto; overscroll-behavior: contain; background: #f6f8f9; }
.coupon-head { background: white; color: #303b4c; padding: 16px 14px 10px; }
.coupon-head h2 { font-size: 15px; font-weight: 750; }
.clear { color: #59657a; min-height: 32px; }
.clear:hover { color: #b82b00; }
.coupon-mode { background: white; height: 44px; padding: 0 14px; }
.coupon-mode .mode-button { font-size: 12px; }
.coupon-body:has(.coupon-selection) { padding: 10px; gap: 8px; }
.coupon-selection { padding: 12px; background: white; border: 1px solid #e0e4ea; border-radius: 8px; }
.selection-top { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.selection-top > strong { flex: 1; line-height: 1.45; }
.selection-odd { color: #202938; font-weight: 800; font-variant-numeric: tabular-nums; }
.remove-selection { padding: 0; min-width: 20px; min-height: 24px; font-size: 20px; }
.selection-detail { margin: 2px 0 9px; font-size: 11px; }
.selection-teams { display: grid; gap: 4px; }
.selection-teams > span { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #59657a; }
.selection-teams .team-crest { width: 18px; height: 20px; flex-basis: 18px; }
.selection-teams img { width: 18px; height: 18px; }
.selection-teams .team-crest > span { font-size: 6px; }
.coupon-summary { border-top: 1px solid #e0e4ea; background: white; padding: 14px; }
.coupon-summary .summary-row { margin: 10px 0; }
.coupon-note { margin-top: 8px; }
.toast { z-index: 8; }
.simulation-note { margin: -3px 0 14px; color: #59657a; font-size: 11px; line-height: 1.5; }
.match-meta { justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.match-status { display: flex; align-items: center; gap: 5px; font-size: 10px; text-transform: none; letter-spacing: 0; }
.match-status i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.team { display: grid; grid-template-columns: 26px minmax(0,1fr) 22px; }
.team-score { text-align: center; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; color: #303b4c; }
.team-name { min-width: 0; }
.match-main { align-items: center; }
.teams { padding-right: 12px; }
.odd strong { font-size: inherit; }
.match-details { margin-top: 14px; border-top: 1px solid #edf0f6; }
.match-details > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0 0; color: #48576f; font-size: 11px; font-weight: 650; cursor: pointer; list-style: none; }
.match-details > summary::-webkit-details-marker { display: none; }
.match-details > summary span { color: #677287; font-size: 10px; font-weight: 400; margin-left: auto; }
.match-details > summary svg { width: 16px; height: 16px; flex: 0 0 16px; transition: transform .18s ease-out; }
.match-details[open] > summary svg { transform: rotate(90deg); }
.match-details > summary:hover { color: #b82b00; }
.match-details > summary:focus-visible { outline: 2px solid #b82b00; outline-offset: 3px; border-radius: 3px; }
.detail-content { padding: 12px 0 4px; }
.detail-switch { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.detail-switch button { flex: 1; min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #59657a; font-family: inherit; font-size: 12px; cursor: pointer; font-weight: 600; padding: 8px; }
.detail-switch button:hover { background: #f7f9fc; color: #202938; }
.detail-switch button[aria-pressed="true"] { border-bottom-color: var(--orange); color: #b82b00; }
.detail-note { color: #59657a; font-size: 11px; line-height: 1.6; margin: 0 0 16px; }
.detail-market + .detail-market { margin-top: 18px; }
.detail-market h3 { font-size: 12px; color: #303b4c; font-weight: 650; margin: 0 0 8px; }
.market-options { display: flex; gap: 6px; }
.market-options .odd { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; min-width: 0; }
.market-options .odd > span { font-size: 11px; font-weight: 500; }
.market-options .odd strong { font-size: 13px; }
.stat-team-labels { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; margin-bottom: 16px; color: #48576f; }
.stat-team-labels strong:last-child { text-align: right; }
.stat-row { margin: 16px 0; }
.stat-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #59657a; }
.stat-row strong { color: #303b4c; font-variant-numeric: tabular-nums; }
.stat-bar { display: flex; height: 5px; border-radius: 4px; overflow: hidden; background: #a9b9d1; margin-top: 8px; }
.stat-bar > span { background: #ff6333; border-right: 3px solid white; }
.pre-match-state { padding: 20px; text-align: center; color: #48576f; background: #f7f9fc; border-radius: 6px; }
.pre-match-state strong { font-size: 13px; }
.pre-match-state p { font-size: 12px; line-height: 1.6; margin-bottom: 0; }
.formations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.formation h3 { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 0 0 4px; min-height: 30px; }
.formation-name { display: block; color: #59657a; font-size: 11px; margin-bottom: 10px; }
.pitch { position: relative; display: grid; grid-template-rows: repeat(4,1fr); gap: 18px; padding: 18px 6px; border: 1px solid #2e7356; background: #245d46; border-radius: 6px; overflow: hidden; }
.pitch::before { content: ''; position: absolute; inset: 10px; border: 1px solid #ffffff45; pointer-events: none; }
.pitch::after { content: ''; position: absolute; top: 50%; left: 10px; right: 10px; border-top: 1px solid #ffffff45; pointer-events: none; }
.pitch-line { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-around; gap: 4px; }
.pitch-line span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #245d46; font-size: 10px; font-weight: 750; }
.coupon-selection { animation: none; }
.coupon-selection.just-added { animation: selection-highlight .65s ease-out; }
@keyframes selection-highlight { from { background: #fff0ea; border-color: #ff825c; } to { background: white; border-color: #e0e4ea; } }
.cart-feedback { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.cart-feedback.show { position: static; width: auto; height: auto; clip-path: none; margin: 0; padding: 10px 14px; background: #fff0ea; color: #992400; font-size: 11px; line-height: 1.5; }
@media (max-width: 1150px) {
 .layout { grid-template-columns: 156px minmax(0,1fr) 304px; }
 .bet-panel { width: 304px; right: 12px; }
}
@media (min-width: 621px) and (max-width: 960px) {
 .layout { grid-template-columns: 136px minmax(0,1fr); padding-bottom: 68px; }
 .match-main { grid-template-columns: minmax(100px,1fr) repeat(3,minmax(42px,68px)); }
 .bet-panel { width: 320px; }
}
@media (max-width: 620px) {
 body { padding-bottom: 76px; }
 .bet-panel { width: auto; left: 10px; right: 10px; bottom: max(10px,env(safe-area-inset-bottom)); }
 .cart-content { max-height: calc(100dvh - 200px); }
 .cart-toggle { min-height: 54px; }
 .team-crest { width: 22px; height: 24px; flex-basis: 22px; }
 .team-crest img { width: 20px; height: 20px; }
 .toast { bottom: 78px; }
 .team { grid-template-columns: 22px minmax(0,1fr) 18px; }
 .team-score { font-size: 16px; }
 .teams { padding-right: 4px; }
 .match-meta { margin-bottom: 14px; }
 .match-details > summary span { display: none; }
 .match-details > summary svg { margin-left: auto; }
 .market-options .odd { padding: 10px 8px; }
 .detail-switch button { font-size: 11px; padding: 8px 5px; }
 .formations { gap: 10px; }
 .formation h3 { font-size: 11px; }
 .pitch { gap: 16px; padding: 16px 4px; }
 .pitch-line span { width: 22px; height: 22px; font-size: 9px; }
 .cart-feedback.show { font-size: 11px; }
}

