:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f7f9fc;background:#10151c;--accent:#dafa69;--muted:#9ca8b8;--border:#2c343f;--surface:#1a212b}
*{box-sizing:border-box}body{margin:0;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit;-webkit-user-select:none;user-select:none}button:disabled{cursor:default;opacity:.38}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{border:0;background:none}button svg{pointer-events:none}svg{width:21px;height:21px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.app{height:100svh;height:100dvh;min-height:540px;max-width:1500px;margin:auto;padding:max(18px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:14px}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:46px;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:850;letter-spacing:1.1px;line-height:1}.brand-sub{display:block;font-size:10px;letter-spacing:3.7px;font-weight:650;color:var(--muted);margin-top:6px}.brandmark{font-weight:1000;font-size:31px;display:grid;place-items:center;background:var(--accent);color:#10151c;border-radius:11px;width:42px;height:42px;letter-spacing:-4px;padding-right:4px}.top-actions{display:flex;gap:6px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;flex-shrink:0}.icon-button:hover{background:#ffffff12}.sports{display:flex;gap:5px;align-self:flex-start;background:#080c12;border:1px solid #242b34;border-radius:14px;padding:5px;max-width:100%;flex-shrink:0}.sports button{font-size:14px;color:#a7b1be;font-weight:650;padding:10px 17px;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;min-height:42px}.sports button[aria-pressed=true]{background:var(--accent);color:#182008}.sports button:not([aria-pressed=true]):hover{background:#ffffff0a;color:white}.sports svg{width:19px;height:19px}.matchbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;flex-shrink:0}#match-meta{font-size:13px;font-weight:800;letter-spacing:1.5px;color:#b5bfcb}#match-meta span{color:#596575;margin:0 10px}.text-button{font-size:14px;display:inline-flex;align-items:center;gap:7px;padding:6px 0;color:var(--accent);font-weight:600;min-height:32px;white-space:nowrap}.text-button svg{width:17px;height:17px}.scoreboard{display:flex;position:relative;gap:14px;flex:1;min-height:0}.team-card{--team:#1769e8;--ink:#fff;display:flex;flex-direction:column;position:relative;border-radius:24px;overflow:hidden;background:var(--team);color:var(--ink);flex:1;min-width:0;isolation:isolate}.team-card:nth-of-type(2){--team:#cf362d}.team-card:after{content:"";position:absolute;inset:0;border:1px solid #ffffff28;border-radius:inherit;pointer-events:none;z-index:2}.score-tap{flex:1;display:flex;flex-direction:column;justify-content:space-between;align-items:center;min-height:0;width:100%;color:var(--ink);padding:24px 28px 7px;position:relative;background:linear-gradient(145deg,#ffffff07,transparent 45%,#00000019);transition:filter .1s}.score-tap:disabled{opacity:1}.score-tap:not(:disabled):active{filter:brightness(1.14)}.team-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:32px}.team-name{font-size:clamp(20px,2.4vw,32px);font-weight:760;letter-spacing:-.6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;line-height:1.2}.serve-badge{font-size:12px;font-weight:850;letter-spacing:1.2px;border:1px solid currentColor;padding:7px 10px;display:flex;gap:7px;align-items:center;border-radius:7px;opacity:.95;flex-shrink:0}.serve-dot{width:7px;height:7px;border-radius:100%;background:currentColor}.score-number{font-variant-numeric:tabular-nums;font-family:Impact,"Arial Narrow",ui-sans-serif,system-ui,sans-serif;font-size:clamp(110px,24vh,290px);font-weight:900;line-height:1;letter-spacing:-.045em;display:block;margin:auto;padding-right:.045em}.tap-hint{font-size:12px;font-weight:750;letter-spacing:1.9px;opacity:.95;line-height:20px}.team-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 25px 20px;min-height:57px}.game-count{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650}.pip{width:9px;height:9px;border:1px solid currentColor;border-radius:50%;opacity:.55}.pip.won{background:currentColor;opacity:1}.games-label{margin-left:4px;font-size:12px;letter-spacing:1px;font-weight:650;opacity:.85}.point-controls,.extra-points{display:flex;align-items:center;gap:7px}.point-controls button{min-width:44px;height:38px;border-radius:10px;background:#0000001f;color:inherit;font-size:18px;font-weight:700;border:1px solid #ffffff24}.point-controls button:hover{background:#00000032}.point-controls .minus{font-size:27px;line-height:1}.vs-divider{position:absolute;inset:0;z-index:3;display:grid;place-items:center;pointer-events:none}.vs-divider span{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#10151c;border:4px solid #10151c;font-size:10px;font-weight:850;letter-spacing:1px;color:#8e9aad}.clock-panel{display:flex;justify-content:center;align-items:center;gap:35px;background:#090e14;border:1px solid #2b343e;border-radius:16px;padding:10px 18px;flex-shrink:0}.clock-caption{min-width:116px;font-size:12px;letter-spacing:1.4px;color:#aeb9c6;font-weight:700;display:flex;flex-direction:column;align-items:flex-start;gap:2px}.small{font-size:12px;min-height:24px;letter-spacing:0}.clock-digits{font-size:clamp(36px,4vw,48px);font-variant-numeric:tabular-nums;font-weight:750;letter-spacing:2px;line-height:1;padding:0;min-width:155px}.clock-controls{display:flex;gap:9px;align-items:center}.clock-controls>.icon-button{color:#adb8c5;width:36px}.clock-toggle{display:flex;gap:7px;align-items:center;justify-content:center;background:var(--accent);color:#142000;font-size:14px;font-weight:750;padding:12px 16px;min-width:95px;border-radius:10px}.clock-toggle svg{width:17px;height:17px}.clock-panel.running{border-color:#657b36}.clock-panel.expired{border-color:#ff715f}.clock-panel.expired .clock-digits{color:#ff8b76}.footnote{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:18px;color:#9ba8b8;font-size:13px;flex-shrink:0}#round-history{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar{display:flex;justify-content:center;gap:8px;border-top:1px solid #2b333d;padding-top:8px;flex-shrink:0}.toolbar>button{display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 26px;font-size:14px;font-weight:650;min-height:44px;border-radius:10px;color:#d5dce6}.toolbar>button:hover:enabled{background:#ffffff09}.toolbar svg{width:19px;height:19px}.result{display:flex;align-items:center;justify-content:space-between;background:#202b19;border:1px solid #dafa6945;border-radius:14px;padding:12px 18px;gap:12px;flex-shrink:0}.result strong{display:block;font-size:20px;margin:3px 0}.result #result-detail{font-size:13px;color:#bbc6b0}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--accent);font-weight:750}.primary,.secondary{border-radius:12px;padding:14px 18px;min-height:48px;font-size:15px;font-weight:750;background:var(--accent);color:#182306}.secondary{background:#29313c;color:#e4eaf2}.primary:hover{filter:brightness(1.04)}.full-width{width:100%}.sheet{color:#f4f7fb;background:#161d26;border:1px solid #3a434f;border-radius:24px;max-width:560px;width:calc(100% - 28px);padding:0;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 24px 100px #0008}.sheet::backdrop{background:#03070dcc;backdrop-filter:blur(7px)}.sheet.narrow{max-width:450px}.sheet-header{position:sticky;top:0;background:#161d26;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 25px 16px;border-bottom:1px solid #2b343f;z-index:2}.sheet h1{font-size:26px;font-weight:750;letter-spacing:-.6px;margin:5px 0 0}.sheet-content{padding:22px 25px}.sheet-content>p{font-size:16px;line-height:1.6}.sheet-content>p.field-help{font-size:14px}.sheet-footer{padding:14px 25px 22px;position:sticky;bottom:0;background:#161d26;border-top:1px solid #2b343f}fieldset{margin:0 0 26px;padding:0;border:0}legend{font-size:17px;font-weight:750;margin-bottom:16px;padding:0}.field{display:flex;flex-direction:column;gap:8px;flex:1}.field label,.field-row>label{font-size:14px;color:#c8d1dd}.field-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:10px 0;border-bottom:1px solid #2c3541;min-height:64px}.field-row small{font-size:12px;display:block;color:#99a6b6;margin-top:4px}input:not([type=checkbox]):not([type=color]),select{background:#0d131c;border:1px solid #394353;color:#f7f9fc;border-radius:10px;padding:12px;font-size:16px;min-height:46px;max-width:100%}input[type=number]{width:85px;text-align:center}.field-row select{max-width:170px}.player-setting{display:flex;align-items:end;gap:14px}.color-picker{display:flex;align-items:center;flex-direction:column;gap:5px;font-size:11px;color:#aeb8c6}.color-picker input{width:48px;height:43px;background:none;border:0;cursor:pointer;padding:0}.color-picker input::-webkit-color-swatch-wrapper{padding:0}.color-picker input::-webkit-color-swatch{border:2px solid #ffffff35;border-radius:10px}.palette{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 20px}.swatch{border-radius:50%;width:28px;height:28px;flex:0 0 28px;border:2px solid transparent;position:relative}.swatch[aria-pressed=true]{outline:2px solid white;outline-offset:3px}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;font-size:15px;cursor:pointer}.switch-row input{appearance:none;width:45px;height:26px;border-radius:20px;background:#3c4654;position:relative;cursor:pointer}.switch-row input:before{content:"";position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:white;transition:transform .15s}.switch-row input:checked{background:#869b37}.switch-row input:checked:before{transform:translateX(19px);background:var(--accent)}.field-help{font-size:14px;line-height:1.5;color:#a8b4c4;margin:12px 0 0}.duration-fields{display:flex;gap:16px;align-items:end;margin:24px 0}.duration-fields>.field{max-width:150px}.duration-fields input{width:100%;font-size:25px!important}.duration-fields>span{font-size:26px;padding-bottom:14px}.confirm-actions{display:flex;gap:10px;padding:0 25px 25px}.confirm-actions>*{flex:1}.confirm-sheet .sheet-content p{color:#b7c2cf}.install-mark{display:grid;place-items:center;width:68px;height:68px;background:var(--accent);color:#172108;border-radius:19px;font-size:48px;font-weight:900;margin:0 auto 20px}.install-mark~.full-width{margin-top:20px}.toast{position:fixed;bottom:max(90px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#edf3df;color:#17200d;padding:13px 20px;border-radius:12px;font-size:14px;font-weight:650;z-index:20;box-shadow:0 10px 30px #0005;max-width:calc(100% - 30px);text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.score-number.pop{animation:pop .16s ease-out}@keyframes pop{50%{scale:1.055}}
@media (orientation:portrait) and (max-width:900px){.app{padding: max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));gap:9px;min-height:630px}.topbar{min-height:45px}.brand{font-size:18px;gap:8px}.brandmark{width:37px;height:37px;border-radius:10px;font-size:27px}.brand-sub{font-size:9px;letter-spacing:3.35px;margin-top:5px}.top-actions{gap:0}.sports{width:100%;gap:3px;padding:4px;border-radius:12px}.sports button{flex:1;padding:9px 4px;gap:5px;font-size:13px;min-height:39px}.sports svg{width:16px;height:16px}.matchbar{min-height:30px}#match-meta{font-size:11px;letter-spacing:1.1px}#match-meta span{margin:0 6px}.text-button{font-size:13px}.scoreboard{flex-direction:column;gap:10px}.team-card{border-radius:20px;min-height:170px}.score-tap{padding:17px 19px 0}.team-heading{min-height:25px}.team-name{font-size:24px}.score-number{font-size:clamp(85px,16.8vh,185px)}.serve-badge{font-size:10px;padding:5px 7px;letter-spacing:1px}.tap-hint{font-size:10px;letter-spacing:1.6px;line-height:16px}.team-bottom{padding:3px 17px 10px;min-height:43px}.point-controls button{height:34px;min-width:42px;font-size:16px}.point-controls .minus{font-size:26px}.games-label{font-size:10px}.pip{width:8px;height:8px}.game-count{gap:6px}.clock-panel{gap:8px;padding:10px 12px;border-radius:13px;justify-content:space-between}.clock-caption{font-size:10px;letter-spacing:.6px;min-width:61px}.clock-digits{font-size:34px;min-width:107px;letter-spacing:1px}.clock-controls{gap:3px}.clock-controls>.icon-button{width:32px}.clock-toggle{min-width:67px;padding:11px 10px;font-size:12px;gap:4px}.clock-toggle svg{width:14px;height:14px}.clock-caption>.small{font-size:11px}.app:has(.clock-panel:not([hidden])) .score-number{font-size:clamp(75px,13.4vh,150px)}.toolbar{padding-top:5px;gap:0;justify-content:space-between}.toolbar>button{padding:8px 10px;gap:6px;font-size:13px;flex:1;min-height:43px}.toolbar svg{width:17px;height:17px}.footnote{font-size:11px;min-height:17px}.vs-divider span{width:32px;height:32px;font-size:9px}.result{padding:10px 13px}.result strong{font-size:17px}.result .primary{font-size:13px;padding:10px 14px;min-height:42px}.app:has(.result:not([hidden])){min-height:720px}.app:has(.result:not([hidden])) .score-number{font-size:clamp(65px,12vh,130px)}}
@media (orientation:landscape) and (max-height:650px){.app{min-height:340px;padding:max(7px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));gap:6px;position:relative}.topbar{min-height:37px}.brand{font-size:16px}.brandmark{width:32px;height:32px;font-size:24px;border-radius:8px}.brand-sub{font-size:8px;letter-spacing:2.9px;margin-top:4px}.icon-button{width:36px;height:36px}.sports{position:absolute;left:50%;top:max(7px,env(safe-area-inset-top));transform:translateX(-50%);padding:3px;gap:2px;border-radius:10px}.sports button{font-size:12px;min-height:30px;padding:6px 9px;gap:5px}.sports svg{width:15px;height:15px}.matchbar{min-height:23px}#match-meta{font-size:11px}.text-button{font-size:12px;min-height:23px;padding:2px 0}.clock-panel{padding:5px 14px;gap:20px;border-radius:10px;min-height:48px}.clock-caption{font-size:10px;min-width:100px}.clock-digits{font-size:32px;min-width:118px}.clock-toggle{padding:8px 12px;min-width:80px;font-size:12px}.clock-controls>.icon-button{height:30px}.team-card{border-radius:16px}.score-tap{padding:10px 18px 0}.team-heading{min-height:22px}.team-name{font-size:21px}.score-number{font-size:clamp(60px,27vh,155px)}.tap-hint{font-size:9px;line-height:12px}.team-bottom{padding:0 15px 7px;min-height:31px}.point-controls button{height:28px;min-width:38px;font-size:14px;border-radius:8px}.point-controls .minus{font-size:23px}.serve-badge{font-size:9px;padding:4px 7px}.serve-dot{width:6px;height:6px}.game-count{gap:5px}.pip{width:7px;height:7px}.games-label{font-size:9px}.toolbar{padding:0;border:0;gap:40px}.toolbar>button{font-size:12px;min-height:31px;padding:4px 15px;gap:7px}.toolbar svg{width:17px;height:17px}.footnote{min-height:14px;font-size:10px}.vs-divider span{width:30px;height:30px;font-size:9px}.app:has(.clock-panel:not([hidden])) .score-number{font-size:clamp(50px,22vh,115px)}.result{padding:6px 13px}.result>div{display:flex;gap:12px;align-items:center}.result strong{font-size:15px;margin:0}.result .eyebrow{font-size:10px}.result #result-detail{font-size:11px}.result .primary{padding:8px 15px;min-height:34px;font-size:12px}.app:has(.result:not([hidden])){min-height:390px}.app:has(.result:not([hidden])) .score-number{font-size:18vh}}
@media (orientation:landscape) and (max-width:750px){.sports{gap:0}.sports button{padding:6px 7px;font-size:11px}.sports button span{display:none}.brand{font-size:14px}.brand-sub{font-size:7px;letter-spacing:2.5px}.brandmark{width:28px;height:28px;font-size:22px}.top-actions{gap:0}.top-actions .icon-button{width:31px}.top-actions svg{width:18px;height:18px}}
@media(max-width:360px) and (orientation:portrait){.brand{font-size:16px}.top-actions .icon-button{width:36px}.sports button{font-size:12px}.sports svg{display:none}.clock-controls>.icon-button{width:26px}.clock-digits{font-size:31px;min-width:94px}.clock-toggle{min-width:60px;padding:10px 7px}.sheet-header,.sheet-content{padding-left:19px;padding-right:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.score-number.three-digits{transform:scaleX(.76)}
.app-updates{padding:17px;border:1px solid #424e32;background:#1c281a;border-radius:15px;margin:0 0 26px}.update-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.update-heading strong{font-size:16px}.version-badge{background:#dafa6920;border:1px solid #dafa6940;border-radius:7px;color:#e3f5b3;padding:5px 9px;font-size:13px;white-space:nowrap;font-weight:650}.app-updates .field-help{color:#bfccb7;min-height:21px}.update-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.update-actions button{flex:1;font-size:14px;padding:12px;min-height:44px}.update-note{color:#acbaa3;font-size:12px;line-height:1.5;margin:11px 0 0}.app-updates[data-state=error] #update-status{color:#ffb49c}.app-updates[data-state=available] #update-status{color:#e0f6aa}

.players-heading{width:100%;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.players-heading .text-button{font-size:14px;min-height:44px;padding:0 10px;white-space:nowrap;color:var(--accent)}

/* One hit per point, then hold the larger racket and ball in the server's card. */
.team-card>.score-tap,.team-card>.team-bottom{position:relative;z-index:1}
.serve-visual{position:absolute;left:-1%;top:48%;width:46%;max-width:340px;aspect-ratio:15/13;transform:translateY(-39%);pointer-events:none;user-select:none;z-index:0}
.serve-scene{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:none}
.serve-racket-sprite{width:132px;height:224px;overflow:visible}
.serve-paddle{transform-origin:90px 208px;transform:rotate(24deg);opacity:.92;filter:drop-shadow(0 5px 5px #07152638)}
.serve-ball{transform:translate(238px,28px);transform-origin:0 0;opacity:.94;filter:drop-shadow(0 3px 2px #07152640)}
.serve-ball path{stroke:#fff;stroke-width:1.8;opacity:.8;fill:none}
.serve-contact{stroke:#fff8d0;stroke-width:2;fill:none;opacity:0;transform-origin:206px 98px}
.serve-trail{stroke:#f9fcff;stroke-width:7;stroke-linecap:round;opacity:0;fill:none}
.serve-hit .serve-paddle{animation:serve-paddle-hit 1150ms linear 1 both}
.serve-hit .serve-ball{animation:serve-ball-hit 1150ms linear 1 both}
.serve-hit .serve-contact{animation:serve-contact-flash 1150ms linear 1 both}
.serve-hit .serve-trail{animation:serve-ball-trail 1150ms linear 1 both}
@keyframes serve-paddle-hit{0%{transform:rotate(24deg);animation-timing-function:cubic-bezier(.25,.1,.25,1)}25%{transform:rotate(-4deg);animation-timing-function:cubic-bezier(.6,0,.8,.45)}44%{transform:rotate(35deg);animation-timing-function:cubic-bezier(.1,.6,.25,1)}58%{transform:rotate(43deg);animation-timing-function:cubic-bezier(.25,.1,.25,1)}84%{transform:rotate(22deg);animation-timing-function:ease-out}100%{transform:rotate(24deg)}}
@keyframes serve-ball-hit{0%{transform:translate(238px,28px) scale(1);animation-timing-function:ease-in}25%{transform:translate(224px,50px) scale(1);animation-timing-function:cubic-bezier(.4,0,.8,.6)}43%{transform:translate(206px,98px) scale(1)}46%{transform:translate(206px,98px) scale(.84,1.12);animation-timing-function:cubic-bezier(.1,.6,.3,1)}60%{transform:translate(246px,26px) scale(1.08,.94);animation-timing-function:ease-out}83%,100%{transform:translate(238px,28px) scale(1)}}
@keyframes serve-contact-flash{0%,40%{opacity:0;transform:scale(.6)}44%{opacity:.85;transform:scale(.75)}61%,100%{opacity:0;transform:scale(1.45)}}
@keyframes serve-ball-trail{0%,46%{opacity:0;stroke-dasharray:0 100}50%{opacity:.35;stroke-dasharray:30 100}64%,100%{opacity:0;stroke-dasharray:65 100}}
@media(orientation:landscape) and (max-height:650px){.serve-visual{width:43%;max-width:225px;top:53%;transform:translateY(-40%)}}

/* Cast connection controls use the same sheet and button system as match settings. */
#cast-open[data-connected=true]{color:var(--accent);background:#dafa6914}.cast-content>p:first-child{margin-top:0}.cast-status-card{padding:17px;border:1px solid #3e4931;background:#202b19;border-radius:14px;margin:18px 0}.cast-status-card strong{font-size:17px}.cast-content>.full-width{margin-bottom:10px}.cast-content details{border-top:1px solid var(--border);margin-top:24px;padding-top:18px}.cast-content summary{cursor:pointer;font-weight:700;min-height:32px}.cast-content a{color:var(--accent);text-underline-offset:3px}.cast-steps{padding-left:22px;color:#c5ced9;font-size:14px;line-height:1.6}.cast-steps li{padding:8px 0 8px 3px}.cast-steps input{display:block;width:100%;margin-top:10px;font-size:12px!important}#cast-setup-form{display:grid;gap:13px}#cast-app-id{text-transform:uppercase;letter-spacing:2px}#cast-dialog[data-connected=true] .cast-status-card{border-color:#dafa6970}
@media (orientation:portrait) and (max-width:400px){.top-actions .icon-button{width:36px}.brand{font-size:16px}.brand-sub{letter-spacing:2.8px}}
@media (orientation:landscape) and (max-width:850px){.top-actions .icon-button{width:31px}.sports button{padding-left:6px;padding-right:6px}.sports button span{display:none}}

/* Release notes stay inside Settings and are bundled for offline reading. */
.version-history-link{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-height:48px;padding:4px 0;border-radius:8px;color:var(--accent)}.version-history-link .version-badge{transition:background .15s}.version-history-link:hover .version-badge{background:#dafa6936}.version-history-label{font-size:13px;text-decoration:underline;text-underline-offset:3px}.history-sheet{max-width:620px}.history-content{padding-top:0}.history-intro{margin:18px 0 22px!important}.release-list{list-style:none;padding:0;margin:0;display:grid;gap:18px}.release-entry{padding:20px;border:1px solid #343f4c;border-radius:16px;background:#111923}.release-current{border-color:#dafa6960;background:#1c281a}.release-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}.release-heading h2{font-size:19px;line-height:1.3;margin:0;color:#f4f7fb}.release-installed{font-size:12px;font-weight:700;color:#dafa69;border:1px solid #dafa6940;border-radius:6px;padding:4px 7px;white-space:nowrap}.release-entry time{display:block;font-size:13px;color:#aebaca;margin:7px 0 17px}.release-entry h3{font-size:17px;line-height:1.35;margin:0 0 12px;font-weight:700;color:#f1f5fa}.release-entry ul{padding-left:19px;margin:0;color:#c9d3df;font-size:16px;line-height:1.6}.release-entry li+li{margin-top:9px}.release-note{font-size:14px;line-height:1.5;color:#d8e6b7;margin:16px 0 0;padding-top:14px;border-top:1px solid #465138}.history-sheet .sheet-footer{padding-top:12px;padding-bottom:16px}@media(max-width:400px){.release-entry{padding:16px}.history-content{padding-left:18px;padding-right:18px}.release-heading h2{font-size:18px}}

/* Shared sport scenes use fixed SVG coordinates on desktop, phone and TV. */
.sport-picker-open{display:flex;align-items:center;gap:18px;align-self:flex-start;padding:10px 15px;min-height:48px;background:#101720;border:1px solid #344051;border-radius:13px;max-width:100%;flex-shrink:0}
.sport-picker-label{font-size:14px;color:#a9b6c7}.sport-picker-open #selected-sport{font-size:16px;color:var(--accent);font-weight:750}.sport-picker-symbol{font-size:25px;color:var(--accent);line-height:1}.sport-picker-open:hover{border-color:var(--accent)}
.sport-sheet{max-width:820px}.sport-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sport-choice{display:flex;flex-direction:column;align-items:center;position:relative;min-width:0;border:1px solid #364250;border-radius:18px;background:linear-gradient(145deg,#202d3b,#111820);padding:12px 10px 17px;overflow:hidden;text-align:center;transition:border-color .18s,background .18s}.sport-choice[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:linear-gradient(145deg,#303e24,#141e14)}.sport-choice:hover,.sport-choice:focus-visible{background:#263547;border-color:#b7c5d5}.sport-choice-art{display:block;position:relative;width:180px;max-width:100%;height:156px;overflow:hidden;flex-shrink:0;pointer-events:none;contain:paint;margin-bottom:7px}.sport-choice-art .serve-scene{height:100%;overflow:hidden}.sport-choice-name{font-size:17px;font-weight:750;color:#f6f8fc;line-height:1.3}.sport-choice-detail{font-size:13px;color:#aebccc;margin-top:5px;line-height:1.4}.sport-selected{position:absolute;top:8px;right:10px;color:var(--accent);font-size:19px;font-weight:800;display:none}.sport-choice[aria-pressed=true] .sport-selected{display:block}.sport-picker-help{margin-bottom:0}
.sport-scene{display:block;width:100%;height:100%;overflow:hidden;pointer-events:none;fill:none;stroke:none}.sport-sprite{overflow:hidden;fill:none;stroke:none}.sport-object{transform-box:view-box;transform-origin:150px 130px;filter:drop-shadow(0 5px 4px #07152635)}.serve-visual:not([data-sport=pingpong]){opacity:.82;width:47%;max-width:340px;left:0;top:52%;transform:translateY(-44%)}
.sport-ball-flight{transform:translate(242px,213px);transform-origin:0 0}.sport-ball-spin{transform-origin:0 0}.sport-net-swish{transform-origin:197px 122px}.scene-foosball .sport-object{transform-origin:150px 95px}.foosball-ball{transform-origin:197px 197px}.scene-hockey .sport-object{transform:rotate(-8deg)}.scene-football .sport-object{transform:rotate(-8deg)}
.sport-play .sport-ball-flight{animation:sport-shot 1750ms linear 1 both}.sport-play .sport-ball-spin{animation:sport-ball-spin 1750ms linear 1 both}.sport-play .sport-net-swish{animation:sport-net 1750ms linear 1 both}
.sport-play .scene-soccer .sport-object{animation:sport-kick 1450ms 1 both}
.sport-play .scene-foosball .sport-object{animation:sport-foosball 1250ms 1 both}.sport-play .foosball-ball{animation:sport-foosball-ball 1250ms 1 both}
.sport-play .scene-volleyball .sport-object{animation:sport-volley 1500ms 1 both}
.sport-play .scene-badminton .sport-object{animation:sport-shuttle 1450ms 1 both}
.sport-play .scene-hockey .sport-object{animation:sport-puck 1350ms 1 both}
.sport-play .scene-football .sport-object{animation:sport-pass 1550ms 1 both}
.sport-play .scene-custom .sport-object{animation:sport-trophy 1400ms 1 both}
.squash-racket,.pickleball-paddle{transform-box:view-box;transform-origin:150px 210px}.pool-ball{transform-box:view-box;transform-origin:153px 126px}.karate-belt{transform-box:view-box;transform-origin:150px 156px}
.sport-play .squash-racket{animation:sport-squash-swing 1450ms 1 both}.sport-play .squash-ball{animation:sport-squash-rebound 1450ms 1 both}
.sport-play .pool-cue{animation:sport-pool-strike 1500ms 1 both}.sport-play .pool-ball{animation:sport-pool-roll 1500ms 1 both}
.sport-play .scene-karate .sport-object{animation:sport-karate-bow 1500ms 1 both}.sport-play .karate-belt{animation:sport-karate-belt 1500ms 1 both}
.sport-play .pickleball-paddle{animation:sport-pickleball-swing 1550ms 1 both}.sport-play .pickleball-ball{animation:sport-pickleball-rally 1550ms 1 both}
@keyframes sport-squash-swing{0%,100%{transform:rotate(0)}18%{transform:rotate(-12deg)}32%{transform:rotate(15deg)}48%{transform:rotate(-5deg)}65%{transform:rotate(12deg)}82%{transform:rotate(-3deg)}}
@keyframes sport-squash-rebound{0%,100%{transform:translate(0,0)}28%{transform:translate(-47px,-88px)}44%{transform:translate(32px,-130px)}65%{transform:translate(-47px,-88px)}82%{transform:translate(12px,-35px)}}
@keyframes sport-pool-strike{0%,20%{transform:translate(-7px,7px)}34%{transform:translate(7px,-7px)}60%,100%{transform:translate(-7px,7px)}}
@keyframes sport-pool-roll{0%,30%{transform:translate(0,0) rotate(0)}72%{transform:translate(26px,-24px) rotate(40deg)}100%{transform:translate(18px,-18px) rotate(56deg)}}
@keyframes sport-karate-bow{0%,100%{transform:translateY(0) scaleY(1)}42%{transform:translateY(12px) scaleY(.84)}65%{transform:translateY(9px) scaleY(.88)}84%{transform:translateY(-2px) scaleY(1.02)}}
@keyframes sport-karate-belt{0%,100%{transform:rotate(0)}35%{transform:rotate(-9deg)}62%{transform:rotate(7deg)}82%{transform:rotate(-4deg)}}
@keyframes sport-pickleball-swing{0%,100%{transform:rotate(0)}22%{transform:rotate(-10deg)}43%{transform:rotate(16deg)}68%{transform:rotate(-5deg)}84%{transform:rotate(2deg)}}
@keyframes sport-pickleball-rally{0%,100%{transform:translate(0,0)}34%{transform:translate(-37px,-62px)}56%{transform:translate(23px,-109px)}78%{transform:translate(12px,-28px)}}
@keyframes sport-shot{0%{transform:translate(57px,196px);animation-timing-function:cubic-bezier(.2,.65,.45,1)}22%{transform:translate(116px,37px);animation-timing-function:ease-out}34%{transform:translate(180px,34px);animation-timing-function:ease-in}43%{transform:translate(197px,69px)}51%{transform:translate(197px,111px)}61%{transform:translate(197px,162px)}71%{transform:translate(199px,217px) scale(1.08,.85);animation-timing-function:ease-out}84%{transform:translate(224px,179px) scale(1);animation-timing-function:ease-in}96%,100%{transform:translate(242px,213px) scale(1)}}
@keyframes sport-ball-spin{from{transform:rotate(-35deg)}to{transform:rotate(235deg)}}
@keyframes sport-net{0%,49%,100%{transform:scale(1,1)}60%{transform:scale(1.06,1.13)}72%{transform:scale(.96,.94)}84%{transform:scale(1.02,1.04)}}
@keyframes sport-kick{0%{transform:translate(-44px,27px) rotate(-65deg);animation-timing-function:ease-out}46%{transform:translate(35px,-24px) rotate(80deg);animation-timing-function:ease-in}70%{transform:translate(14px,30px) rotate(150deg) scale(1.03,.95);animation-timing-function:ease-out}84%{transform:translate(6px,14px) rotate(173deg)}100%{transform:translate(0,0) rotate(180deg)}}
@keyframes sport-foosball{0%,100%{transform:scaleY(1)}25%{transform:scaleY(.76)}43%{transform:scaleY(-.84)}62%{transform:scaleY(.75)}80%{transform:scaleY(1.04)}}
@keyframes sport-foosball-ball{0%,34%{transform:translateX(-90px) rotate(-65deg)}68%{transform:translateX(29px) rotate(120deg);animation-timing-function:ease-out}100%{transform:translateX(0) rotate(180deg)}}
@keyframes sport-volley{0%{transform:translate(-30px,35px) rotate(-30deg);animation-timing-function:ease-out}36%{transform:translate(0,-27px) rotate(30deg);animation-timing-function:ease-in}67%{transform:translate(31px,31px) rotate(85deg) scale(1.04,.96);animation-timing-function:ease-out}83%{transform:translate(12px,-5px) rotate(112deg)}100%{transform:translate(0,0) rotate(135deg)}}
@keyframes sport-shuttle{0%{transform:translate(44px,-20px) rotate(-36deg) scale(.82);animation-timing-function:ease-in}43%{transform:translate(-31px,28px) rotate(-12deg);animation-timing-function:ease-out}65%{transform:translate(12px,-18px) rotate(22deg)}84%{transform:translate(-4px,4px) rotate(-6deg)}100%{transform:translate(0,0) rotate(0)}}
@keyframes sport-puck{0%,12%{transform:translateX(-45px) rotate(-16deg) scale(.9);animation-timing-function:cubic-bezier(.15,.65,.3,1)}72%{transform:translateX(36px) rotate(12deg)}100%{transform:translateX(0) rotate(-8deg)}}
@keyframes sport-pass{0%{transform:translate(-37px,22px) rotate(-50deg) scale(.83);animation-timing-function:ease-out}38%{transform:translate(-8px,-16px) rotate(70deg) scale(.9)}65%{transform:translate(22px,-4px) rotate(225deg);animation-timing-function:ease-in-out}100%{transform:translate(0,0) rotate(352deg)}}
@keyframes sport-trophy{0%{transform:translateY(23px) scale(.9);animation-timing-function:ease-out}38%{transform:translateY(-9px) rotate(-5deg) scale(1.03)}61%{transform:translateY(1px) rotate(4deg)}82%{transform:rotate(-2deg)}100%{transform:translateY(0) rotate(0) scale(1)}}
@media(max-width:620px){.sport-options{grid-template-columns:repeat(2,minmax(0,1fr))}.sport-sheet .sheet-content{padding:16px}.sport-choice-art{height:125px;width:145px}.sport-choice-art .serve-scene{height:100%}.sport-choice{padding:8px 7px 14px}.sport-choice-name{font-size:16px}.sport-choice-detail{font-size:13px}}
@media(max-width:340px){.sport-options{grid-template-columns:1fr}.sport-choice-art{height:100px}.sport-picker-open{gap:10px}.sport-picker-label{font-size:13px}}
@media(orientation:landscape) and (max-height:650px){.sport-picker-open{position:absolute;left:50%;top:max(7px,env(safe-area-inset-top));transform:translateX(-50%);gap:10px;padding:7px 10px;min-height:36px}.sport-picker-label{font-size:12px}.sport-picker-open #selected-sport{font-size:13px}.sport-picker-symbol{font-size:18px}.serve-visual:not([data-sport=pingpong]){width:43%;max-width:225px}.sport-sheet .sheet-header{padding-top:12px;padding-bottom:12px}.sport-sheet .sheet-header .eyebrow{display:none}.sport-sheet .sheet-header h1{margin:0}}
@media(orientation:landscape) and (max-width:670px){.sport-picker-open{gap:6px}.sport-picker-label{max-width:44px;white-space:normal;line-height:1.1}.sport-picker-symbol{display:none}}
@media(prefers-reduced-motion:reduce){.sport-play *,.sport-sheet[open] .sport-choice-art *{animation:none!important}}

/* Account controls share the existing compact settings sheets. */
.account-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--border)}.account-entry>div{min-width:0}.account-entry strong{font-size:16px}.account-entry p{margin:7px 0 0;overflow-wrap:anywhere}.account-entry button{flex-shrink:0}.account-sheet{max-width:480px}.account-content p{line-height:1.6}.account-content h2{font-size:23px;line-height:1.3;margin:7px 0;overflow-wrap:anywhere}.account-content h3{font-size:17px}.account-content a{color:var(--accent);text-underline-offset:3px}.account-content .account-link{display:flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;color:#182008;margin:24px 0 14px;text-align:center}.account-copy{margin:24px 0;padding:18px;border:1px solid #384451;border-radius:14px;background:#111923}.account-copy h3{margin:0}.account-copy p{font-size:16px}.account-copy .field-help{font-size:14px}.account-copy button{width:100%;min-height:48px;white-space:normal}.account-signout{display:inline-flex;align-items:center;min-height:44px}.account-content #account-email{overflow-wrap:anywhere}.account-content #account-status:empty{display:none}.account-content a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}

/* Account access lives in Settings. */
.account-form-fields{border:0!important;padding:0!important;margin:18px 0 0!important;display:grid;gap:17px;min-width:0}.account-form-fields .field,.account-content #account-password-form .field{display:grid;gap:8px}.account-content input{width:100%;min-width:0;font-size:16px;padding:12px;border:1px solid #405062;border-radius:9px;background:#0d141c;color:var(--text);min-height:46px}.account-modes{display:flex;gap:5px;padding:4px;border-radius:10px;background:#080d13;border:1px solid #303a47}.account-modes button{flex:1;padding:10px 8px;font-size:15px;border-radius:7px;min-height:42px}.account-modes button[aria-pressed=true]{color:var(--accent);background:#25321b}.account-divider{font-size:14px;color:var(--muted);text-align:center;margin:16px 0}.account-legacy{margin-top:24px;border-top:1px solid #303a47;padding-top:16px}.account-legacy summary{font-size:14px;color:var(--muted);cursor:pointer;min-height:32px}.account-content #account-google{min-height:48px}.account-content #account-password-form{display:grid;gap:14px}.account-content #account-verify-section .text-button{margin-top:8px;white-space:normal}.account-content .field-help{line-height:1.5}.account-content #account-status{overflow-wrap:anywhere}.account-content #account-sign-methods p{font-size:15px}
/* Keep the existing spacing in portrait; landscape shares two header rows. */
.scoreboard-header,.scoreboard-footer{display:flex;flex-direction:column;gap:inherit;flex-shrink:0;min-width:0}
@media(orientation:landscape) and (max-height:650px){
  .scoreboard-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:4px 10px}
  .scoreboard-header .topbar,.scoreboard-header .matchbar{display:contents}
  .scoreboard-header .brand{grid-area:1/1;justify-self:start}
  .scoreboard-header .sport-picker-open{grid-area:1/2;justify-self:center;position:static;transform:none;max-width:100%}
  .scoreboard-header .top-actions{grid-area:1/3;justify-self:end}
  .scoreboard-header #match-meta{grid-area:2/1/3/3;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .scoreboard-header #clock-settings{grid-area:2/3;justify-self:end;min-height:23px}
  /* A size-contained score has no intrinsic height. Protect its flex parents
     too, so browser chrome or larger text can scroll instead of crushing it. */
  .app .scoreboard{min-height:210px;flex-shrink:0}
  .app .team-bottom{flex-shrink:0}
  .app .score-stage{min-height:96px}
}
@media(orientation:landscape) and (max-height:450px){
  .app{gap:4px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:max(4px,env(safe-area-inset-bottom))}
  .scoreboard-header{row-gap:2px}
  .app .scoreboard{min-height:192px}
  .app .score-tap{padding:4px 14px 0;gap:4px}
  .app .team-heading{min-height:22px}
  .app .team-name{font-size:18px}
  .app .tap-hint{font-size:8px;line-height:10px;letter-spacing:1.2px}
  .app .team-bottom{padding:0 12px 4px;min-height:32px}
  .app[data-score-style=stadium] .team-heading,.app[data-score-style=gym] .team-heading{padding-bottom:4px}
  .clock-panel{padding:1px 12px;min-height:38px;gap:16px}
  .clock-caption{flex-direction:row;align-items:center;gap:8px;min-width:0}
  .clock-toggle{padding:7px 12px;min-height:34px}
  .scoreboard-footer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:4px}
  .scoreboard-footer:has(#finish-match:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr)) auto}
  .scoreboard-footer .footnote,.scoreboard-footer .toolbar{display:contents}
  .scoreboard-footer #rule-note{display:none}
  .scoreboard-footer #round-history{grid-area:2/1/3/-1;text-align:center}
  .scoreboard-footer #round-history:empty{display:none}
  .scoreboard-footer .toolbar>button{grid-row:1;min-width:0;min-height:32px;padding:4px 6px;gap:5px;font-size:12px;line-height:1.2}
  .scoreboard-footer #finish-match{grid-area:1/5;min-height:32px;padding:4px 6px;font-size:12px}
}
/* Menus hold the expanded tools so the live scoreboard keeps its space. */
.account-sheet .sheet-header{padding-bottom:20px}
.account-content .account-intro{margin:0 0 22px;color:#c8d3df;font-size:16px}
.account-content .account-google-button{background:#f5f7fa;color:#17202b;border:1px solid #d8dfe8;min-height:52px;font-size:16px}
.account-divider{display:flex;align-items:center;gap:14px;margin:22px 0}
.account-divider:before,.account-divider:after{content:"";height:1px;background:#364352;flex:1}
.account-profile{display:flex;align-items:center;gap:16px;margin:4px 0 18px}
.account-profile>div{min-width:0}
.account-avatar{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:16px;background:#26351e;color:var(--accent);font-weight:800;font-size:22px}
.account-content .account-profile h2{margin:4px 0;font-size:22px}
.account-profile .field-help{margin:0}
.account-state{margin:0;font-size:14px;font-weight:700;color:var(--accent)}
.account-state[data-state=pending]{color:#ffd58c}
.account-verification{border-color:#8b703b;background:#242115}
.account-verification .eyebrow{margin:0 0 8px;color:#ffd58c;font-size:12px}
.account-content .account-verification .field-help{margin:0 0 18px;color:#d7ccaf}
.account-verification #account-verification-message{overflow-wrap:anywhere}
.account-security summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--accent);font-size:14px;font-weight:650}
.account-security button{margin-top:8px}
.account-security #account-password-form{margin-top:14px}
.account-content #account-sign-methods p{margin:0;font-size:14px}
.account-progress{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #465764;border-radius:12px;background:#202c36;font-size:15px;line-height:1.5;margin-bottom:20px}
.account-spinner{width:20px;height:20px;flex:0 0 20px;border:2px solid #687b87;border-top-color:var(--accent);border-radius:50%;animation:account-spin .8s linear infinite}
.account-content .account-feedback{font-size:15px;line-height:1.5;padding:14px;border-radius:10px;background:#202b36;margin:18px 0 0}
.account-feedback[data-state=error]{background:#3a2325;color:#ffc7c0}
.account-feedback[data-state=success]{background:#25341e;color:#e1f2c3}
.account-content #account-status:empty{display:none}
.account-sheet[aria-busy=true] .account-progress{border-color:#849a55}
.account-sheet .sheet-footer{padding-top:16px}
@keyframes account-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.account-spinner{animation:none}}
.timer-presets,.timer-adjust,.moment-actions,.community-tabs,.community-inline{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.timer-presets{margin:16px 0}.timer-presets button{background:#202d3a;color:#edf2f8;border:1px solid #3a4654;border-radius:9px;min-height:42px;padding:8px 14px}.timer-adjust{margin-top:14px}.timer-adjust button{flex:1}.community-sheet,.moment-sheet{width:min(740px,calc(100vw - 24px))}.community-sheet h2{font-size:20px;margin:22px 0 10px}.community-sheet p{line-height:1.5}.community-tabs{margin:18px 0;border-bottom:1px solid #3a4654;padding-bottom:12px}.community-tabs button{border:1px solid #455363;background:#1c2835;color:#eff5f9;padding:12px 18px;border-radius:10px}.community-tabs button[aria-pressed=true]{background:var(--lime,#ddff60);color:#122010}.community-inline{justify-content:space-between}.community-inline input{flex:1;min-width:160px}.player-code{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px;border:1px solid #455363;border-radius:12px;margin:16px 0;font-size:21px}.connected-player{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #354252;padding:16px 0}.connected-player small,.history-table small{display:block;color:#b0becc;margin-top:5px}.connected-player>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.match-record{border:1px solid #394858;border-radius:14px;padding:18px;margin:12px 0;background:#14202b}.match-record h3{font-size:20px;line-height:1.6;overflow-wrap:anywhere;margin:10px 0}.match-record h3 b{white-space:nowrap;color:#ddff60;margin:0 8px}.match-record small{color:#b0becc}.history-table{overflow:auto}.history-table table{width:100%;border-collapse:collapse}.history-table th,.history-table td{padding:12px 8px;border-bottom:1px solid #354252;text-align:center}.history-table th:first-child,.history-table td:first-child{text-align:left}.moment-actions{margin:14px 0}.moment-actions button{flex:1;min-width:140px}#moment-card{display:block;width:100%;height:auto;border-radius:12px;background:#0d141c;margin:18px auto;max-width:440px}#moment-caption{width:100%;resize:vertical;background:#111c27;color:#eff3f8;border:1px solid #455363;border-radius:12px;padding:14px;font:inherit;line-height:1.5}#community-status,#moment-status{line-height:1.5;overflow-wrap:anywhere}#winner-photo{margin:6px;white-space:normal}
.result{flex-wrap:wrap}.result>div{flex:1 1 180px}#winner-photo{font-size:13px;padding:10px 14px;min-height:42px}@media(max-width:600px) and (orientation:portrait){.result>div{flex-basis:100%}.result>button{flex:1}}
/* People, teams, and sharing retain Courtside's scoreboard palette. */
.people-bar{display:flex;gap:8px;align-items:stretch;padding:8px 0}.people-bar button{background:#192534;border:1px solid #3a4a5d;border-radius:12px;color:#edf3f9;padding:10px 14px;font:inherit;font-size:14px;cursor:pointer}.people-bar #people-open{flex:1;text-align:left;min-width:0}.people-bar strong,.people-bar span{display:block}.people-bar strong{color:#ddff60;font-size:14px}.people-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:14px}.people-sheet{width:min(900px,calc(100vw - 24px))}.lineup-options,.lineup-sides{display:grid;grid-template-columns:1fr 1fr;gap:18px}.lineup-options{margin-bottom:18px}.lineup-options label,.lineup-side label{display:block;font-size:14px;font-weight:600;margin:12px 0 8px}.lineup-side{background:#14202c;border:1px solid #3b4c60;border-top:4px solid #398cff;border-radius:14px;padding:18px;min-width:0}.lineup-side+section{border-top-color:#ef635e}.lineup-side input,.lineup-side select,.lineup-options select,#community-sport-filter,#moment-public-url{width:100%;min-height:46px;background:#0e1925;border:1px solid #526074;border-radius:9px;color:#f4f6fa;padding:10px;font:inherit;font-size:16px}.lineup-side h3{font-size:17px}.lineup-side small{font-weight:normal;color:#b0becc}.roster-member{display:grid;gap:8px;margin:12px 0;padding:12px 0;border-bottom:1px solid #394b5d}.roster-member button{justify-self:end}.person-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#354755;color:#ddff60;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;font-size:15px;font-weight:bold}.person-avatar img,.account-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.account-avatar{overflow:hidden}.friend-identity{display:flex;align-items:center;gap:12px;min-width:0}.friend-identity strong{overflow-wrap:anywhere}.friend-picks{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.friend-picks>.field-help{width:100%}.friend-chip{display:flex;gap:8px;align-items:center;font-size:14px;border:1px solid #415168;border-radius:30px;padding:5px 12px 5px 5px}.lineup-avatar{margin-top:12px}.lineup-avatar:empty{display:none}.history-sport-heading{font-size:20px;color:#ddff60;margin:26px 0 12px}.legacy-player-link{margin-top:22px}.legacy-player-link summary{cursor:pointer}.winner-link-panel{padding:18px;background:#192b24;border:1px solid #597c42;border-radius:14px;margin-top:22px}.winner-link-panel h2,.moment-links h2{font-size:20px}.moment-actions a.secondary{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-size:14px}.profile-photo-controls{margin:12px 0 22px}.moment-links{margin-top:24px}#community-local{margin:16px 0;padding:14px;border:1px solid #4b5d73;border-radius:12px}#community-sport-filter{margin:8px 0 12px}.community-tabs button{flex:1}.connected-player{flex-wrap:wrap}
@media(max-width:620px){.lineup-options,.lineup-sides{grid-template-columns:1fr}.people-bar{gap:5px}.people-bar button{padding:9px 10px}.people-bar #people-open{max-width:calc(100% - 160px)}.people-sheet .sheet-footer{flex-wrap:wrap}.friend-chip{max-width:100%;overflow-wrap:anywhere}}
@media(orientation:landscape) and (max-height:600px){.people-bar{padding:3px 0}.people-bar button{padding:5px 10px}.people-bar span{display:none}}

.admin-sheet{max-width:780px}.admin-details{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:8px 16px;font-size:14px}.admin-details dt{color:var(--muted,#8995a7)}.admin-details dd{margin:0;overflow-wrap:anywhere}#admin-users article{overflow-wrap:anywhere}#admin-query{min-width:0;flex:1}#admin-open{margin-top:16px}

#music-station{width:100%;padding:12px;margin:10px 0;background:var(--surface);color:inherit;border:1px solid var(--border);border-radius:10px}#music-status{min-height:44px;font-size:16px;line-height:1.5}

.voice-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}#voice-toggle{position:relative;padding-left:22px}#voice-toggle::before{content:"";position:absolute;left:9px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:#82909f}#voice-toggle[aria-pressed="true"]::before{background:#caff65}#voice-toggle[aria-pressed="true"]{outline:2px solid #caff65}

#voice-toggle{width:96px;min-width:96px;max-width:96px;flex:none;padding:5px 7px;background:linear-gradient(90deg,#caff6550 0%,#caff6550 var(--voice-level,0%),#192534 var(--voice-level,0%),#192534 100%);overflow:hidden}#voice-toggle::before{display:none}#voice-toggle strong{font-size:13px;line-height:16px}#voice-toggle .voice-detail{display:block;font-size:10px;line-height:12px;margin-top:1px;color:#edf3f9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.handsfree-dialog{max-width:420px;width:calc(100% - 40px);padding:24px}.handsfree-dialog button,.handsfree-dialog a{display:block;margin:12px 0;padding:14px;width:100%;text-align:center;box-sizing:border-box}.handsfree-dialog [hidden]{display:none}.handsfree-dialog p{line-height:1.5}
.friend-add-row input{flex-basis:100%;width:100%;min-width:0}.friend-add-row button{flex:1;min-height:46px}
.qr-scanner{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.qr-scanner .sheet-header h1{font-size:25px}.qr-scanner .sheet-content{padding:18px}.qr-camera{position:relative;overflow:hidden;border-radius:16px;background:#05090e}.qr-camera video{display:block;width:100%;height:min(48dvh,360px);object-fit:cover}.qr-camera-guide{position:absolute;inset:16%;border:3px solid #dafa69;border-radius:18px;pointer-events:none;box-shadow:0 0 0 200px #0003}.qr-scanner [data-qr-status]{line-height:1.5;min-height:48px}.qr-scanner [data-qr-retry],.qr-scanner [data-qr-manual]{display:block;width:100%;min-height:46px;margin-top:12px}.qr-scanner [hidden]{display:none!important}

#voice-toggle.handsfree-active{border-color:#dfff57;box-shadow:inset 0 0 0 1px #dfff57}#voice-toggle.handsfree-active .voice-detail{color:#dfff57}

/* Testing welcome and login gate. Hidden before scripts load, including cached launches. */
body[data-access="locked"]{overflow:auto;height:auto;min-height:100dvh;padding-bottom:0}
body[data-access="locked"] #app,body[data-access="locked"] .main-navigation,body[data-access="locked"] .messages-page{display:none!important}
.welcome[hidden],#app[hidden]{display:none!important}
.welcome{max-width:1120px;margin:0 auto;padding:28px 28px 48px;color:var(--text,#f5f7fa)}
.welcome-brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:.1em;font-size:20px;margin-bottom:42px}
.welcome-beta{font-size:10px;letter-spacing:.13em;border:1px solid #dafa6960;color:var(--accent,#dafa69);padding:5px 9px;border-radius:30px;margin-left:auto}
.welcome-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.85fr);gap:64px;align-items:center}
.welcome h1{font-size:clamp(40px,6vw,68px);line-height:1.03;letter-spacing:-.055em;margin:14px 0 20px}
.welcome-description{font-size:18px;line-height:1.6;color:#b4bdca;max-width:470px}
.welcome .eyebrow{font-size:11px;letter-spacing:.14em;color:var(--accent,#dafa69)}
.welcome-score{display:flex;align-items:center;gap:14px;max-width:360px;margin:26px 0}
.welcome-score>div{flex:1;padding:18px;border-radius:18px;background:#dafa69;color:#10151c;text-align:center}
.welcome-score>div:last-child{background:#a9c9f8}.welcome-score strong{display:block;font-size:56px;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.06em}.welcome-score div span{font-size:10px;font-weight:800;letter-spacing:.1em}.welcome-vs{font-size:10px;color:#8290a3;font-weight:800}
.welcome-features{list-style:none;padding:0;margin:0;display:grid;gap:16px}.welcome-features li{display:grid;gap:4px}.welcome-features strong{font-size:15px}.welcome-features li span{font-size:14px;color:#aab5c4;line-height:1.5}
.welcome-card{background:#19212c;border:1px solid #303b4b;border-radius:24px;padding:30px;box-shadow:0 24px 70px #0003}
.welcome-card h2{font-size:26px;letter-spacing:-.035em;margin:12px 0}.welcome-card>p{line-height:1.6;color:#b4bdca;font-size:15px}
.welcome-card>button{margin-top:10px;min-height:48px}.welcome-card .welcome-methods{font-size:12px;text-align:center}.welcome-card .welcome-testing{font-size:12px;border-top:1px solid #344051;padding-top:20px;margin-top:22px}.welcome-card #welcome-status{font-size:12px;margin-bottom:0}
.guide-steps{padding-left:24px;margin:18px 0;display:grid;gap:20px}.guide-steps li{padding-left:8px}.guide-steps li::marker{color:var(--accent,#dafa69);font-weight:800}.guide-steps h2{font-size:17px;margin:0 0 6px}.guide-steps p{font-size:14px;line-height:1.65;color:#b4bdca;margin:0}.guide-content{max-height:65dvh;overflow:auto}
@media(max-width:700px){.welcome{padding:20px 20px 36px}.welcome-brand{margin-bottom:28px}.welcome-layout{grid-template-columns:1fr;gap:26px}.welcome-intro h1{font-size:44px}.welcome-description{font-size:16px}.welcome-score{display:none}.welcome-features{display:none}.welcome-card{padding:24px}.welcome-brand{font-size:17px}}

.legal-links{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;padding:20px;font-size:13px}.legal-links a,.legal-sheet a{color:#91c5ff}.legal-sheet{max-width:560px;width:calc(100% - 24px);max-height:90dvh;overflow:auto}.legal-sheet p{line-height:1.55}.legal-check{display:flex;gap:12px;align-items:flex-start;margin:18px 0;line-height:1.5}.legal-check input{width:18px;height:18px;flex:0 0 18px;margin-top:3px}.beta-badge{display:inline-block;font-size:11px;letter-spacing:.08em;background:#f6cf66;color:#171b22;border-radius:6px;padding:4px 7px;vertical-align:middle}.legal-sheet .field select{width:100%;padding:12px}.legal-status{color:#f6cf66}

.region-table-wrap{overflow-x:auto;max-width:100%}.region-table{width:100%;border-collapse:collapse;font-size:14px;margin:10px 0 22px}.region-table th,.region-table td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--border,#354354)}.region-table th:last-child,.region-table td:last-child{text-align:right}
#voice-toggle.handsfree-active{border-color:#cafa69;box-shadow:inset 0 0 0 1px #cafa69}#voice-toggle.handsfree-starting{border-color:#f6cf66}#voice-toggle .voice-detail{font-weight:800}

/* Stable voice targets remain beside names when players swap sides. */
.team-identity{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;flex:1;text-align:left}.team-identity .team-name{max-width:100%}.player-number{display:block;font-size:11px;font-weight:600;line-height:1.1;letter-spacing:.3px;opacity:.8;white-space:nowrap;text-transform:none}
