/* All scoreboard styles stay inside the Coach Chrono screen. */
#coachChrono{color:#fff;background:radial-gradient(ellipse at 50% 18%,#164b86 0,transparent 48%),repeating-linear-gradient(90deg,#ffffff03 0 1px,transparent 1px 70px),linear-gradient(160deg,#081e41,#030e22);min-height:100vh;padding-bottom:30px}
#coachChrono .chronoHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 16px 0}.chronoBrand{display:flex;gap:10px;align-items:center;font-weight:900;letter-spacing:1px;font-size:15px}.chronoBrand img{width:36px;height:42px;object-fit:contain}.chronoBrand small{display:block;font-size:11px;letter-spacing:1px;color:#ffd21c;margin-top:4px}
#chronoBack{min-height:48px;color:#fff;background:#ffffff0d;border:1px solid #6884a5;border-radius:10px;padding:8px 12px;font-weight:800;font-size:14px}
#coachChrono .chrono{padding:16px;max-width:540px;margin:auto;box-sizing:border-box}.chrono h1{margin:0 0 16px;font-size:28px;font-weight:900}.chrono button,.chronoAlert button{min-height:52px;font-size:16px;font-weight:900;touch-action:manipulation;cursor:pointer}.chrono [hidden]{display:none!important}.chronoSrOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chrono fieldset{min-width:0;margin:0;padding:0;border:0}.chrono .chronoModeSwitch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#040f24;border:1px solid #4c6686;border-radius:14px;margin-bottom:20px}.chronoModeSwitch label{position:relative;cursor:pointer}.chronoModeSwitch input{position:absolute;opacity:0;width:100%;height:100%;margin:0}.chronoModeSwitch span{display:grid;place-items:center;min-height:48px;border-radius:9px;font-size:17px;font-weight:900;color:#d3dfef}.chronoModeSwitch input:checked+span{background:#ffd21c;color:#071d49;box-shadow:0 2px 10px #ffd21c26}.chronoModeSwitch input:focus-visible+span{outline:3px solid white;outline-offset:2px}
.chronoClock{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(160deg,#0b1829,#020710);border:2px solid #526c86;box-shadow:0 10px 25px #0006,inset 0 0 0 4px #020813,inset 0 0 36px #143a6333;border-radius:16px;padding:16px 10px 18px;text-align:center}.chronoClock:before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#6e95c51c .8px,transparent .8px);background-size:5px 5px;pointer-events:none}.chronoBoardTop{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px;font-size:12px;font-weight:800;color:#d1dfee;letter-spacing:1px}.chronoBoardBadge{color:#ffd21c}.chronoClock #chronoPeriod{font-size:19px;font-weight:900;text-transform:uppercase;letter-spacing:2px;margin:24px 0 8px}.chronoClock #chronoTime{font-family:"Courier New",Courier,monospace;font-size:clamp(72px,23vw,108px);font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-5px;line-height:1.12;color:#fff;text-shadow:0 0 2px #fff,0 0 20px #5c9bdc40;white-space:nowrap}.chronoClock #chronoStatus{margin:16px 0 0;color:#ffd21c;font-size:14px;letter-spacing:1px;font-weight:900}.chronoMatchMarkers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 18px}.chronoMatchMarkers span{text-align:center;border:1px solid #536f91;border-radius:8px;padding:12px 4px;background:#ffffff06;font-size:14px;font-weight:900;letter-spacing:1px}#coachChrono[data-state=halftime] .chronoMatchMarkers span:first-child,#coachChrono[data-state=finished] .chronoMatchMarkers span:last-child{border-color:#ffd21c;color:#ffd21c}
.chronoActions{display:grid;gap:10px;grid-template-columns:1.2fr 1fr;margin:18px 0 24px}.chronoActions button{min-height:64px;border-radius:12px;border:2px solid transparent;font-size:18px;letter-spacing:.5px;box-shadow:0 4px 0 #0003}.chrono #chronoStart{background:#147b44;color:#fff;border-color:#48b777}.chrono #chronoStart.chronoResume{background:#ffd21c;color:#071d49;border-color:#ffea84}.chrono #chronoPause{background:#16375d;color:#fff;border-color:#7892b2}.chrono #chronoReset{background:#b7283b;color:#fff;border-color:#f0717f}.chrono button:active{transform:translateY(1px)}
.chrono .chronoSettings,.chronoOptions{background:#06152d;border:1px solid #415879;border-radius:14px;padding:14px;margin:20px 0}.chronoSettings legend{padding:0 8px;color:#fff;font-size:16px;font-weight:900}.chronoPresets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:4px 0 18px}.chronoPresets button{border:1px solid #7892b2;border-radius:8px;background:#102a4b;color:#fff;font-size:18px;min-height:58px;padding:6px 0}.chronoPresets button span{display:block;font-size:12px;line-height:1.5}.chronoPresets button[aria-pressed=true]{background:#ffd21c;color:#071d49;border:2px solid #fff2a6}.chronoCustom{display:block;font-size:15px;font-weight:800}.chronoCustom small{display:block;color:#c1cee0;font-size:13px;margin-top:5px}.chrono input[type=number]{box-sizing:border-box;width:100%;font-size:20px;font-weight:800;min-height:52px;margin:10px 0 4px;padding:10px 14px;color:#fff;background:#0d2646;border:1px solid #7892b2;border-radius:8px}.chrono .chronoSettings:disabled{opacity:.65}.chrono fieldset:disabled button,.chronoModeSwitch:disabled label{cursor:default}.chrono #chronoError{color:#ffb7bf;font-size:15px;margin:8px 0 0}.chrono #chronoError:empty{display:none}
.chronoOptions h2{font-size:16px;margin:0 0 8px;color:#ffd21c}.chronoToggle{display:flex;gap:10px;align-items:center;justify-content:space-between;min-height:58px;font-size:15px;font-weight:800;border-bottom:1px solid #314562}.chronoToggle input{appearance:none;-webkit-appearance:none;flex:none;width:48px;height:28px;border-radius:20px;background:#536078;border:2px solid #96a8bd;position:relative;cursor:pointer;margin:0}.chronoToggle input:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff}.chronoToggle input:checked{background:#ffd21c;border-color:#ffe982}.chronoToggle input:checked:before{left:23px;background:#071d49}.chrono #chronoSound{width:100%;border:1px solid #7892b2;background:#102a4b;color:#fff;border-radius:10px;margin-top:14px}.chronoHint{font-size:14px;line-height:1.6;color:#c1cee0;margin:16px 0}.chrono button:focus-visible,.chrono input:focus-visible,.chronoAlert button:focus-visible,#chronoBack:focus-visible{outline:3px solid #fff;outline-offset:3px}
.chronoAlert{position:fixed;inset:0;z-index:1000;background:radial-gradient(ellipse at top,#ffe97b,#ffd21c);color:#071d49;display:grid;place-items:center;text-align:center;padding:24px}.chronoAlert h2{font-size:clamp(40px,12vw,80px);margin:24px 0}.chronoAlert p{font-size:20px;font-weight:800}.chronoAlert button{background:#071d49;color:white;border:0;border-radius:16px;padding:18px 24px;width:100%}
@media(prefers-reduced-motion:reduce){.chrono button:active{transform:none}}

.chronoOption{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:54px;font-size:15px;font-weight:800;border-bottom:1px solid #314562}.chronoOptionState{font-size:13px;color:#ffd21c;text-align:right}

.chronoClock #chronoTime{margin:16px auto 0;width:100%;max-width:340px;line-height:0;letter-spacing:normal}.chronoClock #chronoTime svg{display:block;width:100%;height:auto;fill:#fff;filter:drop-shadow(0 0 5px #a3d4ff25)}.chronoClock .ledOff{fill:#19232e}.chronoClock .ledOn{fill:#fff}

#chronoBack{margin-top:22px}
