:root{color-scheme:dark;--bg:#111114;--panel:#1c1d22;--panel2:#23242b;--line:#34343d;--text:#f5f2eb;--muted:#b5b4bc;--red:#ed4d55;--red2:#a92231;--gold:#efb270;--green:#75d8a0}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 0,#2b1720,transparent 38%),var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif}button,input,select{font:inherit}button,select,input{border:1px solid var(--line);border-radius:8px;color:var(--text);background:#292a32;min-height:42px;padding:8px 12px}button{cursor:pointer;font-weight:650;transition:background .15s,transform .15s}button:hover{background:#3b3b45}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.45}button.primary{background:var(--red);border-color:var(--red);color:#180c0e}button.primary:hover{background:#ff6c72}button.danger{color:#ff9da1}a{color:#f69197;text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:3px solid var(--gold);outline-offset:3px}h1,h2,h3,p{margin-top:0}h2{font-size:22px;margin-bottom:14px}h3{font-size:17px}small,.muted{color:var(--muted)}label{display:grid;gap:6px;color:var(--muted);font-size:13px}select,input{width:100%;color:var(--text)}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--red)}.masthead{border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:16px max(24px,calc((100% - 1280px)/2));gap:12px;background:#111114c9}.brand{font-size:22px;font-weight:800;color:var(--text);line-height:1}.brand em{color:var(--red)}.brand span{font-size:9px;letter-spacing:4px;display:block;margin-top:9px}.return{font-size:13px;color:var(--muted)}main{max-width:1280px;padding:26px 24px 0;margin:auto}.titlebar{display:flex;justify-content:space-between;align-items:center;padding:0 0 24px}.eyebrow{font-size:10px;letter-spacing:2.4px;color:var(--red);font-weight:800;margin-bottom:7px}h1{font-size:clamp(30px,4vw,48px);letter-spacing:-1.8px;line-height:1.08;margin-bottom:12px}h1 span{font-weight:350}.tagline{font-size:13px;color:var(--muted);margin:0}.titleball{width:74px;height:74px;background:url(assets/ball.svg) center/contain no-repeat;color:transparent;transform:rotate(-16deg);opacity:.8}.tabs{display:flex;border-bottom:1px solid var(--line);gap:8px;margin-bottom:22px;overflow:auto}.tabs button{white-space:nowrap;border:none;border-radius:0;background:transparent;color:var(--muted);padding:12px 18px;border-bottom:3px solid transparent}.tabs button.active{color:var(--text);border-bottom-color:var(--red)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.toolbarButtons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar button{font-size:12px;min-height:34px;padding:6px 10px}.modeBadge{font-size:10px;letter-spacing:1.7px;font-weight:800;color:var(--red);display:flex;align-items:center;gap:8px}.modeBadge:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--red)}.toggle{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}.scoreboard{background:linear-gradient(120deg,#29272c,#201f25);border:1px solid #48404a;border-top:3px solid var(--red);border-radius:12px;padding:17px 28px;display:grid;grid-template-columns:1fr 160px 1fr;align-items:center;box-shadow:0 10px 30px #0003;margin-bottom:16px}.scoreTeam{display:flex;align-items:center;gap:16px}.scoreTeam.visitor{flex-direction:row-reverse;text-align:right}.teamBadge{width:48px;height:48px;border-radius:50%;background:var(--club);display:grid;place-items:center;color:#fff;font-size:17px;font-weight:900;border:3px solid #ffffff24}.teamLocation{font-size:12px;color:var(--muted);letter-spacing:.4px}.teamName{font-size:19px;font-weight:750;line-height:1.25}.teamMeta{font-size:10px;color:var(--muted);margin-top:4px}.scoreNumber{font-variant-numeric:tabular-nums;font-size:46px;font-weight:800;margin-left:auto;line-height:1}.visitor .scoreNumber{margin-left:0;margin-right:auto}.clock{text-align:center;border-left:1px solid var(--line);border-right:1px solid var(--line);padding:0 12px}.clock strong{font-size:28px;font-variant-numeric:tabular-nums;line-height:1.1;display:block}.clock span{font-size:10px;letter-spacing:2px;color:var(--gold)}.shotClock{font-size:11px;color:var(--muted);margin-top:4px}.arenaLayout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px}.courtColumn{min-width:0}.court{overflow:hidden;border-radius:10px;border:1px solid #9e7347;background:#b78856;position:relative;aspect-ratio:1.92}.court svg{width:100%;height:100%;display:block}.court .ball{transition:cx .45s ease,cy .45s ease;filter:drop-shadow(0 4px 3px #0007)}.court .player{transition:transform .35s ease}.courtNote{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);background:#111d;border:1px solid #fff4;border-radius:8px;padding:8px 20px;letter-spacing:3px;font-weight:800;white-space:nowrap}.playStrip{display:flex;gap:15px;align-items:center;padding:13px 0;min-height:88px}.dice{color:var(--gold);font-size:33px;white-space:nowrap;line-height:1;letter-spacing:3px}.playStrip p{font-size:13px;margin:0;color:#ddd9d5;line-height:1.45}.panel{background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:20px;margin-bottom:16px}.controls{border-top:2px solid var(--red);padding:16px}.controlHeader{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}.controlHeader h2{font-size:15px;margin:0}.controlHeader span{font-size:11px;color:var(--muted)}.controlFields{display:grid;grid-template-columns:1.25fr 1fr;gap:10px}.controlFields .wide{grid-column:1/-1}.controlBottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.controlBottom small{font-size:11px;max-width:65%;line-height:1.4}.controlBottom button{min-width:148px}.gameActions{display:flex;gap:7px;flex-wrap:wrap}.gameActions button{font-size:12px;flex:1;white-space:nowrap}.sectionHeading{display:flex;align-items:center;justify-content:space-between;gap:5px}.sectionHeading h2{font-size:15px;margin:0}.textBtn{background:transparent;border:none;color:var(--red);font-size:11px;padding:4px;min-height:32px}.statRow{display:grid;grid-template-columns:1fr 90px 1fr;text-align:center;padding:9px 0;border-bottom:1px solid #ffffff09;font-variant-numeric:tabular-nums}.statRow span:nth-child(2){font-size:11px;color:var(--muted);align-self:center}.statHeader{font-size:11px;margin-top:9px;color:var(--gold)}.matchDetail{font-size:11px;color:var(--muted);margin:14px 0 0}.logPanel h2{font-size:15px}.history{height:270px;overflow:auto;font-size:12px;line-height:1.5}.history p{padding:10px 0;margin:0;border-bottom:1px solid var(--line)}.history b{font-size:10px;color:var(--red);display:block;margin-bottom:4px}.pageHeading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:28px 0 20px}.pageHeading h2{margin:0;font-size:28px}.teamsGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.teamCard{border-top:3px solid var(--club);padding:20px}.teamCard h3{margin:12px 0 3px}.teamCard p{font-size:12px;color:var(--muted)}.teamCard button{font-size:12px;width:100%;margin-top:12px}.onlineGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.onlineGrid label{margin:14px 0}.notice{padding:16px;background:#2c2730;border-left:3px solid var(--gold);border-radius:7px;margin-bottom:20px;color:#e1c6a5}.guide{max-width:950px;margin:auto;line-height:1.75}.guide p{color:#c9c7ce}.guideGrid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.sourceNote{font-size:12px}footer{border-top:1px solid var(--line);margin-top:36px;padding:24px 0;color:#96939c;font-size:11px;letter-spacing:.5px}footer span{margin:0 10px;color:var(--red)}footer em{color:var(--red)}dialog{color:var(--text);background:#1b1c22;border:1px solid #59515b;border-radius:14px;width:min(940px,calc(100% - 30px));max-height:90dvh;padding:22px;box-shadow:0 25px 100px #0008}dialog::backdrop{background:#08080cce;backdrop-filter:blur(4px)}.modalTop{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);margin-bottom:20px;padding-bottom:10px}.modalTop h2{margin:0;font-size:24px}.modalTop button{font-size:25px;line-height:1;min-width:40px}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.formGrid .wide{grid-column:1/-1}.formActions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}.tableWrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}th{text-align:left;color:var(--muted);font-weight:600;font-size:10px;padding:10px 8px;border-bottom:1px solid #56505a}td{padding:9px 8px;border-bottom:1px solid var(--line)}td button{font-size:11px;min-height:32px;padding:4px 10px}td input{min-width:55px;width:65px;min-height:32px;padding:4px;font-size:12px}td input.playerName{min-width:160px;width:180px}.energy{height:4px;width:60px;border-radius:3px;background:#42434b;margin-top:4px}.energy i{height:100%;display:block;background:var(--green);border-radius:3px}.cupHeader{display:flex;justify-content:space-between;gap:16px;align-items:center}.cupHeader h2{margin:0}.cupHeader small{display:block}.competitionControls{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.competitionControls button{font-size:12px}.roundHeading{font-size:13px;color:var(--gold);margin:20px 0 9px}.fixture{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.fixtureName{flex:1}.fixture small{display:block}.fixture strong{font-size:18px;white-space:nowrap}.fixture button{font-size:11px;min-height:34px;padding:5px 10px}.compGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.teamChecks{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.teamChecks label{display:flex;gap:8px;align-items:center;padding:8px;background:var(--panel2);border-radius:6px;font-size:12px}.champion{padding:25px;text-align:center;border:1px solid var(--gold);background:#3a2e21;border-radius:10px;margin-bottom:18px}.champion b{display:block;font-size:25px;color:var(--gold)}.privacy{text-align:center;padding:26px 12px}.privacy h3{font-size:22px}.privacy p{color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#f2e7d8;color:#211a18;padding:13px 22px;border-radius:10px;box-shadow:0 5px 25px #0006;z-index:10;max-width:90%;display:none;font-size:13px}.saveWarning{color:#ffba86}.teamSelect{display:flex;align-items:center;gap:12px}.pill{font-size:10px;padding:3px 7px;border:1px solid var(--line);border-radius:6px;color:var(--gold)}.inlineActions{display:flex;gap:8px;flex-wrap:wrap}.finalCard{text-align:center;padding:8px}.finalCard h2{font-size:23px;color:var(--gold)}.empty{text-align:center;padding:50px 20px}.empty .large{font-size:60px;color:var(--gold);margin-bottom:8px}.empty p{color:var(--muted)}[hidden]{display:none!important}@media(max-width:1050px){.arenaLayout{grid-template-columns:minmax(0,1fr) 260px}.teamName{font-size:16px}.teamBadge{width:38px;height:38px;font-size:14px}.scoreboard{padding:16px;grid-template-columns:1fr 130px 1fr}.scoreNumber{font-size:38px}.scoreTeam{gap:10px}.teamsGrid{grid-template-columns:repeat(3,1fr)}}@media(max-width:780px){.arenaLayout{grid-template-columns:1fr}.sideColumn{display:grid;grid-template-columns:1fr 1fr;gap:14px}.history{height:260px}.teamsGrid{grid-template-columns:repeat(2,1fr)}.compGrid{grid-template-columns:1fr}.titleball{width:55px;height:55px}.scoreboard{position:sticky;top:0;z-index:3}.teamChecks{grid-template-columns:1fr 1fr}}@media(max-width:480px){body{font-size:14px}.masthead{padding:12px 14px}.brand{font-size:19px}.brand span{font-size:8px;letter-spacing:3px}.return{font-size:11px}main{padding:18px 10px 0}.titlebar{padding:0 2px 17px}.eyebrow{font-size:8px;letter-spacing:2px}h1{font-size:31px;letter-spacing:-1px}.tagline{font-size:10px}.titleball{width:42px;height:42px;flex-shrink:0;margin-left:6px}.tabs{gap:0;margin-bottom:14px}.tabs button{font-size:12px;padding:9px 12px;min-height:40px}.toolbar{align-items:flex-start;margin-bottom:10px;gap:4px}.modeBadge{font-size:8px;letter-spacing:.8px;padding-top:8px;max-width:90px}.toolbarButtons{justify-content:flex-end;gap:5px}.toolbar button{font-size:10px;min-height:30px;padding:5px 7px}.toggle{font-size:10px;gap:3px}.toggle input{width:15px;height:15px}.scoreboard{grid-template-columns:1fr 75px 1fr;padding:10px 9px;margin-bottom:10px;border-radius:9px}.teamBadge{display:none}.scoreTeam{gap:7px}.teamLocation{font-size:9px;letter-spacing:0}.teamName{font-size:13px;max-width:99px;overflow:hidden;text-overflow:ellipsis}.teamMeta{font-size:8px;white-space:nowrap}.scoreNumber{font-size:30px;min-width:38px;text-align:center}.clock{padding:0 5px}.clock strong{font-size:21px}.clock span{font-size:8px;letter-spacing:1px}.shotClock{font-size:9px;margin-top:2px}.court{border-radius:7px}.arenaLayout{gap:13px}.playStrip{min-height:74px;gap:10px;padding:10px 1px;align-items:flex-start}.dice{font-size:29px;padding-top:3px;letter-spacing:0;min-width:61px}.playStrip p{font-size:11px;line-height:1.5}.panel{padding:14px;margin-bottom:12px}.controls{padding:12px}.controlHeader{margin-bottom:8px}.controlHeader h2{font-size:14px}.controlHeader span{font-size:9px}.controlFields{gap:8px}.controlFields select{font-size:12px;min-height:42px;padding:7px}.controlFields label{font-size:10px}.controlBottom{gap:7px;margin-top:10px}.controlBottom small{font-size:9px;max-width:58%}.controlBottom button{min-width:125px;min-height:44px;font-size:12px;padding:8px}.gameActions{gap:5px}.gameActions button{font-size:10px;padding:7px 5px;min-height:40px}.sideColumn{display:block}.history{height:220px}.pageHeading h2{font-size:22px}.pageHeading button{font-size:11px;padding:6px 9px}.teamsGrid{gap:10px}.teamCard{padding:14px}.teamCard .teamBadge{display:grid}.teamCard h3{font-size:14px}.teamCard p{font-size:10px}.guideGrid,.onlineGrid{grid-template-columns:1fr;gap:0}.guide{line-height:1.65}.guide h2{font-size:22px}.guide h3{margin-top:22px}.formGrid{gap:12px;grid-template-columns:1fr}.formGrid .wide{grid-column:auto}dialog{padding:16px;width:calc(100% - 16px);max-height:95dvh}.modalTop h2{font-size:20px}.fixture{gap:6px;font-size:11px}.fixture button{font-size:10px;padding:5px 7px}.fixture strong{font-size:15px}.cupHeader{align-items:flex-start}.cupHeader h2{font-size:20px}footer{font-size:9px;margin-top:24px;padding:18px 0}.teamChecks label{font-size:10px}.privacy{padding:14px 5px}.privacy h3{font-size:18px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{body{background:white;color:black}body>header,main,#toast{display:none}dialog[open]{position:static;display:block;max-height:none;width:100%;border:0;background:white;color:black;overflow:visible;box-shadow:none}dialog::backdrop{display:none}.modalTop button,.formActions{display:none}table{font-size:9px;color:black}th,td{padding:5px;border-color:#ccc;color:black}.tableWrap{overflow:visible}.muted{color:#444}}
@media(max-width:380px){h1{font-size:26px}.toolbar button{font-size:9px;padding:5px}.toggle{font-size:9px}.toolbarButtons{gap:4px}.modeBadge{font-size:7px;max-width:72px}.titlebar .tagline{font-size:9px}}

.courtCaption{background:#17252b;color:#fff3d8;padding:10px 15px;font-size:16px;font-weight:650;min-height:42px}.courtReplayTools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:9px 0;color:#ccc;font-size:13px}.courtReplayTools button{min-height:44px}.court svg{width:100%;height:auto;display:block}.court{overflow:hidden}

#courtEnds{display:block;font-size:13px;font-weight:450;color:#dae5e2;margin-top:3px}
