/* Arena design system – all secondary screens. Home stays untouched. */
body:not(.oche-home-page){--arena-accent:#ff3450;--arena-muted:#b8b5bf;--arena-border:#38343e;--arena-surface:#15151b;--arena-radius:14px;--line:var(--arena-border);--muted:var(--arena-muted);--surface:var(--arena-surface);background:radial-gradient(ellipse at 85% -120px,#43101e 0,transparent 530px),#09090d}
body:not(.oche-home-page) .shell{max-width:1440px;padding:0 28px}
body:not(.oche-home-page) .top{height:76px;border-bottom:1px solid #6c223244;gap:14px}
body:not(.oche-home-page) .online-brand{flex:none;gap:11px}
body:not(.oche-home-page) .online-brand strong{font-size:30px;letter-spacing:-1.7px;text-transform:uppercase;font-style:italic}
body:not(.oche-home-page) .online-brand small{font-size:9px;letter-spacing:1.6px;color:#aaa5af}
body:not(.oche-home-page) .arena-header{display:flex;justify-content:space-between}
.section-nav{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:12px 0 11px;border-bottom:1px solid #ffffff13;scrollbar-width:thin;scrollbar-color:#6e3041 transparent}
.section-nav a{flex:0 0 auto;text-decoration:none;color:#bcb9c5;font-weight:650;font-size:13px;padding:10px 15px;border-radius:8px;border:1px solid transparent;white-space:nowrap}
.section-nav a[aria-current=page]{background:linear-gradient(130deg,#691a2b,#301019);color:#fff;border-color:#9d3549;box-shadow:0 3px 12px #ed173018}
.section-nav a:hover{background:#282129;color:white}
body:not(.oche-home-page) main{padding-top:23px}
body:not(.oche-home-page) .page-head,.arena-hero-new{position:relative;isolation:isolate;overflow:hidden;min-height:128px;align-items:center;padding:23px 28px;margin:0 0 20px;border:1px solid #63303c;border-radius:15px;background:linear-gradient(90deg,#151219 0%,#171018ed 42%,#1c0d168a 78%,#1c0a1299),url('assets/arena-hero.webp') right 45%/auto 245% no-repeat,#1b131b;box-shadow:0 14px 26px #0003}
body:not(.oche-home-page) .page-head::before,.arena-hero-new::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#ff6475,#ba092a);z-index:-1}
body:not(.oche-home-page) .page-head>div{min-width:0}
body:not(.oche-home-page) .page-head h1,.arena-hero-new h1{font-size:clamp(30px,3.4vw,46px);font-weight:900;font-style:italic;letter-spacing:-1.65px;line-height:1.08;margin:4px 0 8px;text-shadow:0 3px 14px #0007;overflow-wrap:anywhere}
body:not(.oche-home-page) .page-head p,.arena-hero-new p{font-size:14px;color:#d0c8d1;max-width:660px;margin:0;line-height:1.5}
body:not(.oche-home-page) .eyebrow{color:#ff7587;letter-spacing:1.5px;font-size:10px;font-weight:850}
body:not(.oche-home-page) .page-head>button{flex:none;position:relative;background:#15131bd9;border-color:#75505b}
body:not(.oche-home-page) .card{background:linear-gradient(145deg,#1c1b22 0%,#121217 70%);border:1px solid var(--arena-border);border-radius:var(--arena-radius);padding:21px;box-shadow:0 8px 20px #0003,inset 0 1px #ffffff06;min-width:0}
body:not(.oche-home-page) .card h2{font-size:clamp(18px,1.7vw,23px);letter-spacing:-.55px}
body:not(.oche-home-page) .card h3{letter-spacing:-.25px}
body:not(.oche-home-page) .card p{line-height:1.55}
body:not(.oche-home-page) .stack{gap:14px}
body:not(.oche-home-page) button,body:not(.oche-home-page) a.ghost,body:not(.oche-home-page) a.primary{min-height:44px;border-radius:9px;line-height:1.25;white-space:normal}
body:not(.oche-home-page) button.primary,body:not(.oche-home-page) a.primary{background:linear-gradient(155deg,#ff3b55,#c7092d);color:#fff;border:1px solid #ff5669;box-shadow:0 4px 13px #e511332c;font-weight:800}
body:not(.oche-home-page) a.ghost,body:not(.oche-home-page) a.primary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:11px 14px;border:1px solid #47414d;font-size:14px;font-weight:700;color:#f7f3f7;text-align:center}
body:not(.oche-home-page) a.primary{border-color:#ff5669}
body:not(.oche-home-page) a:focus-visible{outline:2px solid #ff7387;outline-offset:3px}
body:not(.oche-home-page) input:not([type=checkbox]),body:not(.oche-home-page) select{min-height:44px;border-radius:8px;border-color:#4a4350;background:#101016;max-width:100%;font-size:16px}
body:not(.oche-home-page) .actions>*{min-width:0;flex:1 1 auto}
body:not(.oche-home-page) .grid2,body:not(.oche-home-page) .grid3{gap:16px;grid-auto-columns:minmax(0,1fr)}
body:not(.oche-home-page) .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
body:not(.oche-home-page) .grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
body:not(.oche-home-page) .tile{border:1px solid #45333f;min-height:165px;background:linear-gradient(135deg,#27202a,#131318 70%);border-radius:14px;padding:20px}
body:not(.oche-home-page) .tile .tile-icon{background:#511928;border-color:#853044;color:#ff6a7c}
body:not(.oche-home-page) .tile:hover{border-color:#fc3954;box-shadow:0 8px 26px #d1103020}
body:not(.oche-home-page) .tag{overflow-wrap:anywhere;white-space:normal}
body:not(.oche-home-page) .section-head{gap:12px;flex-wrap:wrap}
body:not(.oche-home-page) .section-head h2{font-weight:850;letter-spacing:-.5px}
body:not(.oche-home-page) .footer{margin-top:16px;color:#a29aa9;flex-wrap:wrap}
body:not(.oche-home-page) .account-link{font-size:12px;max-width:180px;min-height:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
/* Match night – scoring first, active player obvious, manual entry always usable. */
body[data-page=match] .page-head{min-height:100px;background-position:right 36%;padding:18px 24px}
.match-layout{gap:18px;grid-template-columns:minmax(0,1.45fr) minmax(310px,1fr)}
.scoreboard{gap:10px}
.scorecard{background:linear-gradient(155deg,#24232b,#121217 75%);border-radius:14px;border-color:#48414c;box-shadow:0 8px 22px #0004}
.scorecard.active{background:radial-gradient(ellipse at 50% 0%,#79172b,#36121e 50%,#1a131a 90%);border-color:#ff526a;box-shadow:0 0 20px #ff284b27,inset 0 0 25px #d52a3c18}
.scorecard .score-num{font-size:clamp(44px,7.4vw,112px);line-height:1.1;text-shadow:0 4px 16px #0005}
.scorecard .name{color:white}
.scoreboard[style*='--cols:3'] .score-num,.scoreboard[style*='--cols:4'] .score-num{font-size:clamp(36px,4.6vw,76px)}
body:not(.oche-home-page) .match-strip{background:linear-gradient(120deg,#291521,#14141c);border-color:#58303c}
body:not(.oche-home-page) .voice-panel{border-color:#6a3241;background:radial-gradient(ellipse at 50% 25%,#321521,#17151d 65%)}
body:not(.oche-home-page) .keypad button{background:#24232d;border-color:#46414d;font-size:22px;min-height:48px}
body:not(.oche-home-page) .keypad button.primary{background:linear-gradient(145deg,#ff4057,#c80d2e)}
body:not(.oche-home-page) .score-input{font-size:29px!important;color:#fff;font-variant-numeric:tabular-nums}
body:not(.oche-home-page) .checkout-guide{border-color:#6a3946;background:linear-gradient(130deg,#291620,#14141b 80%)}
body:not(.oche-home-page) .checkout-route.recommended{background:#441a28;border-color:#fb536a}
body:not(.oche-home-page) .visit-ribbon{border-radius:10px}
body:not(.oche-home-page) .board-card{background:radial-gradient(ellipse at center,#342028,#15151a 70%);border-color:#57323f}
body:not(.oche-home-page) .coach-big{color:#ff6178;text-shadow:0 0 28px #ed163228}
body:not(.oche-home-page) .practice-target{background:radial-gradient(ellipse at top,#501827,#17151c 70%);border-color:#743341}
body:not(.oche-home-page) .stat{border:1px solid #443742;background:linear-gradient(150deg,#2a1e29,#17171e 75%);border-radius:12px;min-width:0;padding:17px;overflow-wrap:anywhere}
body:not(.oche-home-page) .stat .value{color:#fff;font-size:clamp(26px,3.2vw,41px);line-height:1.15}
body:not(.oche-home-page) .stat .tiny{color:#bcb6c2}
body:not(.oche-home-page) .history-row,body:not(.oche-home-page) .player-row{border-color:#38333f}
body:not(.oche-home-page) .player-row{min-width:0}
body:not(.oche-home-page) .player-row .avatar{flex:none;background:linear-gradient(145deg,#781c31,#3c1425);border:1px solid #a63851}
body:not(.oche-home-page) dialog{background:#18161e;border:1px solid #784050;max-height:90dvh;overflow-y:auto}
/* Multiplayer: same visual language, larger status labels and two balanced cameras. */
.arena-hero-mark{display:none}.arena-page .arena-tabs{gap:5px;background:#121218;border-color:#49404d;padding:6px}
.arena-page .arena-tabs button.selected{background:linear-gradient(145deg,#7a2136,#391521);color:#fff;border:1px solid #a54055}
.arena-page .arena-pane{gap:18px}.arena-page .arena-play{grid-template-columns:minmax(0,1fr) minmax(280px,350px)}
.arena-page .arena-side{gap:18px}.arena-page .lobby-card{border-color:#783343}
.arena-page .lobby-table{border-color:#463745}.arena-page .lobby-table-head{background:#26212c;color:#c3bac9}
.arena-page .lobby-table .hub-line:nth-child(even){background:#ffffff03}.arena-page .hub-avatar{border:1px solid #ffffff25;flex:none;object-fit:cover}
.arena-page .hub-line strong{overflow-wrap:anywhere}.arena-page .hub-score{font-family:Arial,system-ui,sans-serif;font-size:clamp(43px,8vw,100px);letter-spacing:-3px;line-height:1.1;color:#fff;font-variant-numeric:tabular-nums}
.arena-page .hub-match-active{border-color:#a13b51;background:radial-gradient(ellipse at 50% 0,#391421,#17151d 66%)}
.arena-page .hub-match-active .grid2>div{background:#111116;border:1px solid #553442;border-radius:12px;padding:15px;min-width:0;overflow-wrap:anywhere}
.arena-page .hub-entry{gap:8px}.arena-page .hub-entry select{flex:1 1 70px;width:auto;min-width:0}
#live-video{margin-top:18px;border-color:#623241}.video-grid video{border:1px solid #53414e;background:radial-gradient(ellipse at center,#291822,#0a0a0e);border-radius:12px;max-height:440px}.video-grid small{font-weight:700;padding:6px 2px}
/* Training: visually separate game modes from real metrics and active scoring. */
.training-layout{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start;gap:18px}
.training-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.training-game{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;gap:10px;min-width:0;padding:18px 15px 14px;border:1px solid #50313f;border-radius:12px;background:linear-gradient(135deg,#3b1a28,#19151d 75%)}
.training-game-art{position:absolute;right:-2px;top:-11px;font:900 italic 76px/1 Arial,sans-serif;color:#ff4d641a;z-index:-1;letter-spacing:-5px;pointer-events:none}
.training-game h3{font-size:18px;margin:0;line-height:1.2}.training-game p{font-size:12px;color:#c2b9c6;flex:1;margin:0}.training-game button{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding:10px 13px}
.training-session{grid-column:1/-1;grid-row:1;max-width:100%;border-color:#8d384b!important}.training-session .hub-score{font-size:clamp(55px,9vw,100px);color:#ff6076;text-align:center;line-height:1.05}.training-session .training-board{grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:8px}.training-session .training-board button{padding:9px 4px;min-height:44px}.training-performance .stat h2{font-size:clamp(19px,2.5vw,32px);color:#fff;margin:7px 0 0}.training-performance .stat small{color:#c6bfc9;font-size:11px}.training-performance .heat-grid{gap:7px}.training-performance .heat-grid span{border:1px solid #a04b5b44;border-radius:8px;font-weight:750;padding:10px 4px}
/* Tournament cards, camera workspace and account entry. */
.public-hero,.t-hero{background:linear-gradient(100deg,#2a1520 0%,#19141ded 48%,#19101988),url('assets/arena-hero.webp') right center/auto 220% no-repeat,#19151b;border-color:#79374b;border-radius:15px;box-shadow:0 10px 30px #0004}
.event-grid{gap:15px}.event-card{border-color:#5a3948;background:linear-gradient(140deg,#281a25,#14141b 70%);border-radius:13px}.room-banner{border-color:#74354b;background:linear-gradient(125deg,#411727,#17151c)}
.bracket{max-width:100%;overflow-x:auto;scrollbar-color:#a23b55 #17151b}.fixture{border-color:#513c4c}.fixture-player{overflow-wrap:anywhere}.table-wrap{max-width:100%;overflow-x:auto}
.vision-workspace{max-width:1000px;margin:auto}.vision-frame{width:100%;max-width:760px;min-height:110px;border:1px solid #5e3a49;background:#0a0a0f;border-radius:12px;overflow:hidden;position:relative}.vision-frame video{object-fit:contain}.vision-frame{background:radial-gradient(ellipse,#261520,#0b0b10)}.vision-workspace #total{color:#ff6c81;text-align:center;border:1px solid #603444;padding:13px;border-radius:12px;background:#211520}.vision-workspace #labels{text-align:center}
.account-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,490px);align-items:center;gap:28px;min-height:650px!important}.account-stage:before{content:"YOUR GAME.\A YOUR ARENA.";white-space:pre;display:flex;align-items:flex-end;min-height:530px;padding:32px;font:italic 900 clamp(30px,4.5vw,60px)/1.03 Arial,sans-serif;letter-spacing:-2px;color:#fff;border:1px solid #713645;border-radius:16px;background:linear-gradient(0deg,#100b13f5 1%,#150c1555 60%,#120c1488),url('assets/arena-hero.webp') 74% center/cover no-repeat;box-shadow:0 12px 28px #0005}.account-stage .account-panel{width:100%;margin:0}.account-stage .account-panel .card{padding:28px;border-color:#60404f}.account-stage .account-panel form{min-width:0}.account-stage .account-panel .account-welcome img{filter:drop-shadow(0 5px 16px #f6305544)}
@media(max-width:1000px){.training-layout{grid-template-columns:minmax(0,1fr)}.training-session{grid-row:1}.training-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.arena-page .arena-play{grid-template-columns:minmax(0,1fr) minmax(240px,290px)}.account-stage{grid-template-columns:minmax(0,1fr) minmax(0,420px)}body:not(.oche-home-page) .shell{padding:0 20px}}
@media(max-width:850px){.arena-page .arena-play{grid-template-columns:minmax(0,1fr)}.arena-page .arena-side{grid-template-columns:repeat(2,minmax(0,1fr))}.match-layout{grid-template-columns:minmax(0,1fr)}.account-stage{grid-template-columns:minmax(0,1fr);gap:18px;min-height:0!important}.account-stage:before{min-height:220px;background-position:70% 45%;font-size:38px}.account-stage .account-panel{max-width:520px;margin:auto}.section-nav{gap:3px}.section-nav a{padding:10px 12px}}
@media(max-width:760px){body:not(.oche-home-page) .shell{padding:0 12px}body:not(.oche-home-page) .top{height:64px;gap:8px}body:not(.oche-home-page) .online-brand strong{font-size:25px}body:not(.oche-home-page) .online-brand small{font-size:8px}.section-nav{margin:0 -12px;padding:8px 12px}.section-nav a{font-size:12px;padding:10px 11px}body:not(.oche-home-page) main{padding-top:14px}body:not(.oche-home-page) .page-head,.arena-hero-new{min-height:108px;margin-bottom:15px;padding:18px 16px;background-size:auto,auto 195%,auto;background-position:center,right center,center}body:not(.oche-home-page) .page-head h1,.arena-hero-new h1{font-size:clamp(27px,7vw,36px);letter-spacing:-1px}body:not(.oche-home-page) .page-head p,.arena-hero-new p{font-size:12px}body:not(.oche-home-page) .page-head>button{font-size:11px;padding:9px;max-width:42%;min-height:40px}body:not(.oche-home-page) .card{padding:15px}body:not(.oche-home-page) .grid3{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body:not(.oche-home-page) .grid2{gap:12px}body[data-page=setup] .setup-grid,body[data-page=settings] #app>.grid2,body[data-page=practice] #app>.grid2, .online-lobby{grid-template-columns:minmax(0,1fr)!important}body:not(.oche-home-page) .tile{padding:15px;min-height:140px}body:not(.oche-home-page) .tile strong{font-size:20px}.scorecard .score-num{font-size:clamp(41px,13vw,80px)}.scoreboard[style*='--cols:3'] .score-num,.scoreboard[style*='--cols:4'] .score-num{font-size:clamp(40px,12vw,70px)}body[data-page=match] .page-head{min-height:86px;padding:14px}body:not(.oche-home-page) .scorecard{min-height:175px}.training-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.training-game{padding:13px 11px}.training-game h3{font-size:16px}.training-game p{font-size:12px}.training-session .training-board{grid-template-columns:repeat(auto-fit,minmax(49px,1fr));gap:5px}.training-performance .stat{padding:12px}.arena-page .arena-pane{gap:12px}.arena-page .arena-side{gap:12px}.arena-page .hub-entry{gap:6px}.arena-page .hub-match-active .grid2>div{padding:10px}.arena-page .hub-score{font-size:clamp(40px,12vw,70px);letter-spacing:-2px}.video-grid{gap:8px}.account-stage:before{min-height:170px;padding:20px;font-size:33px}.account-stage .account-panel .card{padding:20px}.vision-workspace .actions>*{flex:1 1 120px}.vision-workspace #total{font-size:48px}.tournament-page .footer,.training-page .footer,.vision-page .footer,.account-page .footer,.arena-page .footer{padding-bottom:25px}}
@media(max-width:600px){.arena-page .arena-pane,.arena-page .arena-side{grid-template-columns:minmax(0,1fr)}.arena-page .arena-tabs button{min-height:44px;font-size:12px;padding:9px 4px}.arena-page .lobby-table .primary{min-height:44px}body:not(.oche-home-page) .arena-page .hub-entry input{min-width:0}.coach-layout{grid-template-columns:minmax(0,1fr)}.event-grid{grid-template-columns:minmax(0,1fr)}.player-row{gap:6px}.player-row button{font-size:12px;padding:8px}.room-banner{padding:15px}.training-performance .heat-grid{gap:4px}}
@media(max-width:360px){body:not(.oche-home-page) .shell{padding:0 10px}.section-nav{margin:0 -10px;padding-inline:10px}.training-game-grid{grid-template-columns:minmax(0,1fr)}.arena-page .lobby-table .hub-line{padding:10px 7px;gap:6px}.arena-page .lobby-table .primary{font-size:11px}.arena-page .hub-score{font-size:40px}.account-stage:before{min-height:145px}.scorecard .name{font-size:14px}body:not(.oche-home-page) .card{padding:12px}.page-head>button{max-width:40%}}
@media(min-width:851px){body[data-page=match] .match-layout>.stack:first-child>.card:last-child{min-width:0}.training-page .top,.vision-page .top{justify-content:flex-start}}
@media(max-width:760px){body:not(.oche-home-page) .brand small{font-size:7px;letter-spacing:1px;white-space:nowrap}.arena-page .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.arena-page .video-grid video{min-height:95px}}
@media(max-width:360px){body:not(.oche-home-page) .brand small{font-size:6px;letter-spacing:.7px}}
/* Keep cameras directly below the scoring area, ahead of lobby tabs, without
   reparenting video streams or restarting the peer connection on refresh. */
.arena-page main:has(.hub-match-active){display:flex;flex-direction:column}
.arena-page main:has(.hub-match-active) #hub{display:contents}
.arena-page main:has(.hub-match-active) .arena-hero-new{order:0}
.arena-page main:has(.hub-match-active) #hub-status{order:1}
.arena-page main:has(.hub-match-active) .hub-match-active{order:2;margin-bottom:0}
.arena-page main:has(.hub-match-active) #live-video{order:3;margin:14px 0}
.arena-page main:has(.hub-match-active) .arena-tabs{order:4;margin-top:16px}
.arena-page main:has(.hub-match-active) .arena-pane{order:5}
.arena-page .hub-match-active .hub-player-score.is-throwing{background:radial-gradient(ellipse at top,#701a32,#2a1521 55%,#17151b);border-color:#ff526a;box-shadow:0 0 19px #f3314825}
.arena-page .hub-player-score h3{font-size:clamp(15px,2vw,24px);overflow-wrap:anywhere;margin:6px 0}
.arena-page .hub-player-score.is-throwing .eyebrow{color:#ffacb9}
.arena-page .hub-player-score.is-throwing .hub-score{color:#ffbdc7}
.online-total-entry{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px;align-items:end;margin:12px 0}.online-total-entry label{min-width:0}.online-total-entry input,.online-total-entry select{width:100%}.online-total-entry .online-finish{grid-column:1/-1;display:flex;align-items:center;gap:9px}.online-total-entry .online-finish input{width:auto;min-height:0}.online-voice-controls{border:1px solid #58303e;border-radius:12px;padding:12px;margin:12px 0;display:flex;flex-wrap:wrap;gap:8px}.online-voice-controls p{flex-basis:100%;margin:0;font-size:13px}.online-voice-controls button{flex:1 1 135px}#online-entry-error{color:#ff9aab;font-size:13px}.online-score-mode button{flex:1 1 120px}
