/* alcasinox Sportsbook. Colors and typography are shared with the ticket panel. */
:root {
  color-scheme: dark;
  --bg: #211711;
  --panel: #2c211a;
  --surface: #36291e;
  --raised: #463523;
  --stroke: #77634c;
  --soft-stroke: #4c3b2e;
  --text: #fff4df;
  --subtle: #d0c0a9;
  --accent: #d9aa59;
  --accent-ink: #211711;
  --sand: #f4deb0;
  --palm: #173c34;
  --live: #ff9a94;
  --type: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --headline: "Iowan Old Style", Baskerville, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { min-width: 290px; scroll-padding-block: 14px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.48 var(--type); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { border: 0; background: none; }
a { color: var(--accent); text-underline-offset: .18em; }
:is(button,a,select,input,summary) { -webkit-tap-highlight-color: transparent; }
:where(button,a,select,input,summary,[tabindex]):focus-visible { outline: 3px solid #ffe1a4; outline-offset: 3px; }
button:disabled, input:disabled { opacity: .58; cursor: not-allowed; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1,h2,h3,h4,p,ol,ul { margin-block: 0; }
h1,h2,h3,h4 { line-height: 1.13; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 12px; transform: translateY(-180%); padding: 8px 12px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { transform: none; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
a:is(.event-info,.event-more,.text-button,.hero-link) { text-decoration:none; }
.masthead { color: var(--text); background: #241b15; border-bottom: 1px solid var(--stroke); }
.mast-inner, .shell { max-width: 1456px; margin-inline: auto; padding-inline: clamp(14px,3.8vw,60px); }
.mast-inner { min-height: 71px; display: flex; align-items: center; gap: clamp(22px,4vw,70px); }
.brand { display:inline-flex; flex:none; align-items:center; gap:12px; min-height:44px; color:var(--sand); text-decoration:none; }
.brand-wordmark { display:block; width:clamp(100px,10.5vw,148px); height:auto; }
.brand-area { padding-inline-start:12px; border-inline-start:1px solid var(--stroke); font:650 .77rem/1.35 var(--type); }
.main-nav, .header-actions { display: flex; align-items: center; gap: 7px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 2px 13px; font-size: .88rem; font-weight: 690; text-decoration: none; color: var(--subtle); }
.main-nav a:hover,.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after { content: ""; height: 3px; position: absolute; bottom: 1px; left: 13px; right: 13px; background: var(--accent); transform: skewX(-20deg); }
.header-actions { margin-inline-start: auto; gap: clamp(12px,2.4vw,34px); }
.feed-label,.point-balance { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; white-space: nowrap; }
.feed-label { font: 630 .7rem/1.25 var(--mono); color: #e5d7be; }
.feed-label i { width: 9px; height: 9px; border: 2px solid #94c4aa; border-radius: 50%; }
.point-balance { min-height: 38px; padding: 6px 12px; border: 1px solid var(--stroke); border-radius: 8px; color: var(--subtle); font-size: .78rem; }
.point-balance b { font: 700 .88rem/1 var(--mono); color: var(--accent); }
.shell { padding-block: clamp(17px,2vw,29px) 25px; }
.workspace { display: grid; grid-template-columns: minmax(0,1fr) clamp(270px,24vw,334px); align-items: start; gap: clamp(16px,2vw,32px); }
:where(.main-column,.sports-hub,.event-group,.events,.slip,.workspace > *) { min-width: 0; }
.mobile-nav { display: none; }
.muted { color: var(--subtle); }
.tabs { display: flex; align-items: center; gap: 7px; max-width: 100%; overflow-x: auto; padding: 5px 3px; scrollbar-width: thin; scrollbar-color: #7b6952 transparent; }
.tabs > :is(a,button), .pill { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 38px; padding: .5rem .85rem; border: 1px solid var(--stroke); border-radius: 7px; color: var(--subtle); background: var(--panel); font-weight: 670; font-size: .83rem; text-decoration: none; white-space: nowrap; }
.tabs > :is(a,button):hover,.pill:hover { background: var(--raised); color: var(--text); }
.tabs > :is(a,button):is([aria-pressed="true"],[aria-current="page"],.is-active),.pill[aria-pressed="true"] { border-color: #bc965a; color: var(--accent); background: var(--palm); }
.arena-board-nav { margin: 0 0 13px; }
.arena-board-nav > button { border-color: transparent; background: transparent; }
.arena-page:has(.main-nav) .arena-board-nav > :is([data-id="live"],[data-id="results"],[data-id="favorites"]) { display:none; }
.eyebrow,.score-caption,.tag { font: 660 .68rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .07em; }

.arena-hero {
  isolation: isolate; position: relative; overflow: hidden; display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,.82fr); align-items: center;
  min-height: 258px; gap: clamp(16px,3vw,60px); padding: clamp(22px,3vw,47px);
  border: 1px solid #856f4b; border-radius: var(--radius);
  background: radial-gradient(ellipse at 68% 30%,#416b50 0%,transparent 55%),linear-gradient(112deg,#102d28 7%,#20483d 54%,#8a6b42);
}
.broadcast-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.broadcast-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#0d231f9c,transparent 54%,#3429181a); }
.field-grid {
  position: absolute; inset: -55% -20% -60% 24%; transform: rotate(-24deg);
  border: 1px solid #e0cd9366;
  background: repeating-linear-gradient(90deg,transparent 0 12%,#e7d7af2a 12% 12.15%),
              repeating-linear-gradient(0deg,transparent 0 22%,#e7d7af2b 22% 22.25%);
}
.broadcast-ribbons { position: absolute; inset: -15% -11%; transform: skewX(-29deg); }
.broadcast-ribbons i { position: absolute; inset-block: 0; background: linear-gradient(180deg,#f4deb038,#e0b57205); border-inline-start: 1px solid #f4deb060; }
.broadcast-ribbons i:nth-child(1){left:36%;width:7%}
.broadcast-ribbons i:nth-child(2){left:45%;width:1.6%;background:#d9aa5940}
.broadcast-ribbons i:nth-child(3){left:74%;width:16%}
.fixture-emblem { position: absolute; left: 49%; top: 52%; width: clamp(85px,21%,182px); overflow: visible; transform: translate(-50%,-50%) rotate(-12deg); opacity: .93; }
.fixture-emblem stop:nth-child(1) { stop-color: #fff4d4; }
.fixture-emblem stop:nth-child(2) { stop-color: var(--sand); }
.fixture-emblem stop:nth-child(3) { stop-color: #c39650; }
.fixture-emblem stop:nth-child(4) { stop-color: #6c5136; }
.emblem-face,.controller { fill: url(#arena-emblem-light); stroke: #ffedbf; stroke-width: 1.5; }
.ball-seams,.pad-line { fill: none; stroke: #775535; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.ball-panels,.pad-key { fill: #60462f; }
.tennis-seams { fill: none; stroke: #fff4df; stroke-width: 3.3; stroke-linecap: round; }
.pad-line { stroke-width: 5.5; }
.emblem-orbit { fill: none; stroke: #f4deb052; stroke-width: .8; }
.emblem-orbit path { stroke: #fce5b6; stroke-width: 1.6; }
.emblem-roll,.emblem-orbit { transform-box: view-box; transform-origin: 50% 50%; }
.hero-copy,.hero-score { position: relative; min-width: 0; }
.hero-copy { max-width: 39ch; }
.hero-copy .eyebrow { color: var(--sand); }
.hero-title { margin: .52rem 0 1.1rem; color: #fff; font: 600 clamp(2.4rem,4vw,4.8rem)/.98 var(--headline); letter-spacing: -.035em; text-wrap: balance; }
.hero-link,.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: .54rem .95rem; border-radius: 6px; color: var(--accent-ink); background: var(--accent); font-weight: 750; font-size: .86rem; }
.hero-link:hover,.button-primary:hover:enabled { background: #f4deb0; }
.hero-score { padding: clamp(14px,1.7vw,26px); background: linear-gradient(125deg,#18251ff7,#19372dee); border: 1px solid #887654; border-top: 3px solid #d9aa59; border-radius: 8px; }
.score-caption { color: #ecdcc3; margin-bottom: 7px; }
.hero-score .score-caption::before { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 9px; margin-inline-end: 8px; transform: skewX(-16deg); background: var(--accent); }
.score-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; }
.score-team + .score-team { border-top: 1px solid #c9b78855; }
.score-team b { min-width: 0; font-size: clamp(.85rem,1.15vw,1.1rem); overflow-wrap: anywhere; }
.score-value { color: var(--sand); font: 790 clamp(2.05rem,3.2vw,3.7rem)/.95 var(--display); font-variant-numeric: tabular-nums; }
.changed-score { display: inline-block; font-variant-numeric: tabular-nums; }

.sports-tools { display: grid; gap: 9px; min-width: 0; margin-top: 18px; }
.sport-tabs { margin: 0; padding-inline: 1px; }
.search-line,.sport-preferences { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sport-search { position: relative; flex: 1 1 230px; }
.sport-search > span { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-52%); pointer-events: none; font-size: 1.24rem; color: var(--subtle); }
.sports-hub :is(input,select) { max-width: 100%; min-width: 0; min-height: 42px; padding: .52rem .7rem; border: 1px solid var(--stroke); border-radius: 7px; background: var(--panel); color: var(--text); }
.sports-hub .sport-search input { width: 100%; padding-inline-start: 2.15rem; }
input::placeholder { opacity: 1; color: #cfbda4; }
.league-filter { flex: 0 1 225px; }
.sport-preferences { margin-top: 3px; color: var(--subtle); font-size: .8rem; }
.sport-preferences label { display: inline-flex; align-items: center; gap: 7px; }
.sports-hub .sport-preferences select { min-height: 35px; font-size: .8rem; }
.section-head,.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section-head { margin: 1.35rem 0 .75rem; }
.section-head :is(h1,h2),.slip-head h2,.event-detail h1 { font: 690 clamp(1.48rem,2.1vw,2.16rem)/1.08 var(--display); letter-spacing: -.035em; }
.section-head .eyebrow { color: var(--accent); }
.panel,.slip { border: 1px solid var(--soft-stroke); border-radius: var(--radius); background: var(--panel); }
.event-group { margin: 10px 0 17px; overflow: clip; }
.league-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 41px; padding: .6rem 1rem; border-bottom: 1px solid var(--soft-stroke); background: var(--surface); color: var(--sand); font-size: .82rem; font-weight: 710; }
.league-head small { color: var(--subtle); font-weight: 540; white-space: nowrap; }
.event-row { display: flex; gap: clamp(6px,.8vw,14px); align-items: center; padding: 10px 13px; }
.event-row + .event-row { border-top: 1px solid var(--soft-stroke); }
.event-info { flex: 1 1 145px; min-width: 0; padding: 3px 4px; text-align: start; border-radius: 4px; }
.event-info:hover .team-line { color: var(--accent); }
.event-time { color: var(--subtle); font: 620 .7rem/1.4 var(--mono); }
.is-live { color: var(--live); }
.team-line { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; margin-top: 2px; color: var(--text); font-weight: 650; font-size: .93rem; overflow-wrap: anywhere; }
.team-score { color: var(--accent); font: 650 .85rem/1.3 var(--mono); }
.odds,.market-grid { display: grid; gap: 5px; }
.odds { flex: 0 1 39%; width: min(39%,275px); grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
.odd { display: grid; min-width: 0; min-height: 44px; place-content: center; justify-items: center; gap: 2px; padding: .3rem .24rem; background: #483824; border: 1px solid #7f684a; border-radius: 6px; color: var(--text); font: 660 .91rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.odd small { font: 560 .68rem/1.15 var(--type); color: #e6d6bf; }
.odd strong { overflow-wrap: anywhere; }
.odd:hover:enabled { border-color: var(--accent); background: #53432f; }
.odd[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); }
.odd[aria-pressed="true"] small { color: #473322; }
.text-button,.event-more,.favorite,.action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding-inline: 7px; color: var(--accent); font-weight: 670; font-size: .82rem; border-radius: 6px; }
.event-more { white-space: nowrap; }
.favorite { min-width: 37px; flex-shrink: 0; font-size: 1.2rem; color: #d7c7b1; }
.favorite[aria-pressed="true"] { color: #ffdb8d; background: #3a3123; }
:is(.text-button,.event-more,.favorite,.action):hover { background: var(--raised); }
.result-label { font-size: .76rem; }
.empty { padding: clamp(18px,3vw,38px); text-align: center; border: 1px dashed #79684f; color: var(--subtle); }
.empty .text-button { margin-top: .5rem; }
.detail-back { margin-bottom: 8px; }
.event-detail .sport-preferences { margin:12px 0 8px; }
.detail-score { display: grid; grid-template-columns: 1fr auto; gap: .45rem .85rem; padding: clamp(18px,2.4vw,36px); background: linear-gradient(115deg,#173c34,#3a4533); }
.detail-score :is(.eyebrow,h2,.event-time,.detail-scoreline){grid-column:1}
.detail-score .favorite {grid-column:2;grid-row:1}
.detail-score h2 { font: 820 clamp(1.6rem,3.1vw,3.25rem)/1.04 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.detail-scoreline { color: var(--accent); font: 740 2.5rem/1 var(--display); }
.market-card,.multi-card,.detail-comparison,.match-timeline { margin-block: 12px; padding: clamp(14px,1.7vw,23px); }
.market-card h3,.multi-card h3,.detail-comparison h3,.match-timeline h3 { margin-bottom: .7rem; }
.market-card .league-head { background: transparent; padding: 0; border: 0; min-height: auto; color: var(--text); font-size: 1rem; }
.market-grid { width: 100%; grid-template-columns: repeat(auto-fit,minmax(min(88px,100%),1fr)); gap: 8px; }
.multi-picker,.stats-panel { padding: 15px; margin: 12px 0; }
.multi-picker .tabs { margin-top: .5rem; }
.multi-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.multi-card .score-team + .score-team { border-color: var(--stroke); }
.stats-panel { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.stats-table :is(td,th) { padding: .6rem; border-bottom: 1px solid var(--soft-stroke); text-align: start; }
.stats-table caption { color: var(--subtle); text-align: start; padding: 6px 0; }
.detail-kicker { color: var(--subtle); }
.compare-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: .4rem; padding: .6rem 0; border-top: 1px solid var(--soft-stroke); }
.compare-row b { color: var(--accent); }
.compare-row > :last-child {text-align:end}
.compare-row > span { text-align:center; font-size:.84rem; }
.detail-comparison meter { display:block; width:100%; margin:.5rem 0; accent-color:var(--accent); }
.timeline-list { list-style:none; padding:0; }
.timeline-list li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; padding:.55rem 0; border-top:1px solid var(--soft-stroke); }
.timeline-time { color:var(--subtle); font:.74rem/1.4 var(--mono); }
.timeline-score { font-variant-numeric:tabular-nums; }
@keyframes bet-arrival { from{opacity:0;transform:translate(-23px,10px) rotate(-46deg) scale(.8)} 68%{opacity:1;transform:translate(1px,-1px) rotate(3deg)} to{transform:none} }
@keyframes bet-orbit { from{opacity:0;transform:rotate(-65deg) scale(.84)} to{opacity:1;transform:none} }
@keyframes bet-ribbon { from{opacity:0;transform:translateX(-22px)} to{opacity:1;transform:none} }
@keyframes bet-score { 0%{transform:translateY(.17em) scale(.9);color:var(--sand)} 50%{transform:translateY(-.04em) scale(1.07);color:#fff3cf} 100%{transform:none;color:inherit} }
@media(prefers-reduced-motion:no-preference) {
  html:not([data-reduce-motion=true]) body:not([data-reduce-motion=true]) .broadcast-intro .emblem-roll {animation:bet-arrival .85s cubic-bezier(.22,.74,.28,1) var(--broadcast-delay) both}
  html:not([data-reduce-motion=true]) body:not([data-reduce-motion=true]) .broadcast-intro .emblem-orbit {animation:bet-orbit 1.1s cubic-bezier(.19,.7,.25,1) var(--broadcast-delay) both}
  html:not([data-reduce-motion=true]) body:not([data-reduce-motion=true]) .broadcast-intro .broadcast-ribbons i {animation:bet-ribbon .72s ease-out var(--broadcast-delay) backwards}
  html:not([data-reduce-motion=true]) body:not([data-reduce-motion=true]) .changed-score {animation:bet-score .64s ease-out var(--score-delay) both}
}
@media(min-width:1500px){.event-row{padding-block:14px}}
@media(max-width:1050px){
  .workspace{grid-template-columns:minmax(0,1fr) 251px;gap:15px}
  .mast-inner{gap:20px}
  .arena-hero{min-height:218px;padding:22px}
  .hero-title{font-size:clamp(2.1rem,4vw,3.5rem)}
}
@media(max-width:780px){
  body.arena-ready {display:grid;grid-template-rows:minmax(0,1fr) auto;height:100vh;height:100dvh;overflow:hidden}
  .arena-ready .arena-page{min-height:0;overflow-y:auto;scroll-padding-block:14px}
  .workspace{display:flex;flex-direction:column}
  .workspace > *{width:100%}
  .mast-inner{flex-wrap:wrap;gap:0;min-height:60px;padding-top:10px}
  .main-nav{order:3;flex:0 0 100%;overflow-x:auto;gap:5px}
  .main-nav a{min-height:39px}
  .header-actions{gap:14px}
  .mobile-nav{display:flex;justify-content:space-around;align-items:stretch;gap:3px;padding:4px 8px max(4px,env(safe-area-inset-bottom));border-top:1px solid var(--stroke);background:#241b15}
  .mobile-nav > :is(a,button){display:flex;align-items:center;justify-content:center;gap:4px;flex:1;min-height:44px;padding:5px;color:var(--text);border-radius:5px;font-weight:650;font-size:.79rem;text-decoration:none}
  .mobile-nav [aria-current=page]{color:var(--accent);background:var(--palm)}
  .fixture-emblem{left:50%;width:24%}
}
@media(max-width:540px){
  .shell{padding-top:13px}
  .brand{align-items:flex-start;flex-direction:column;justify-content:center;gap:2px}
  .brand-area{padding:0;border:0;font-size:.68rem;letter-spacing:.045em}
  .header-actions{gap:9px}
  .feed-label{font-size:.64rem;gap:5px}
  .point-balance{min-height:32px;padding:4px 8px;gap:4px}
  .arena-board-nav{margin-bottom:8px}
  .arena-hero{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:10px;padding:18px 12px;min-height:184px}
  .hero-title{font-size:clamp(1.85rem,8vw,2.65rem);margin-bottom:.8rem}
  .hero-copy .eyebrow,.hero-score .score-caption{font-size:.61rem}
  .hero-score{padding:9px}
  .score-team{gap:5px;padding:5px 0}
  .score-team b{font-size:.76rem}
  .score-value{font-size:1.8rem}
  .hero-link{font-size:.77rem;min-height:38px;padding:.42rem .66rem}
  .fixture-emblem{left:58%;top:24%;opacity:.5;width:22%}
  .sport-search{flex:1 1 55%}
  .league-filter{flex:1 1 32%}
  .event-row{display:grid;grid-template-columns:33px minmax(0,1fr) auto;align-items:center;gap:6px 7px;padding:10px}
  .event-row .favorite{grid-column:1;grid-row:1;min-width:32px}
  .event-row .event-info{grid-column:2;grid-row:1}
  .event-row .event-more{grid-column:3;grid-row:1;font-size:.74rem;padding-inline:3px}
  .event-row .odds{grid-column:1/-1;grid-row:2;width:100%}
  .event-row .result-label{grid-column:2/-1}
  .multi-grid{grid-template-columns:1fr}
  .stats-table :is(th,td){padding:.43rem .32rem}
}
@media(max-width:345px){
  .shell,.mast-inner{padding-inline:10px}
  .arena-hero{grid-template-columns:1fr}
  .fixture-emblem{left:79%;width:30%;top:23%}
  .feed-label{font-size:.6rem}
}
