body{min-height:100vh}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#718578;margin-top:4px}main{max-width:1050px!important}.welcome{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;margin:25px 0}.welcome h1{font-size:clamp(38px,5vw,62px);letter-spacing:-2px}.welcome>div>p{max-width:360px}.features{display:grid;gap:14px;margin:28px 0;color:#44715a}#access-form button{width:100%}#notice:not(:empty){padding:14px 18px;background:#e8f1eb;border-radius:14px}#notice.error{background:#fff0eb;color:#9b3434}.teams{display:grid;grid-template-columns:1fr 1fr;gap:20px}.teams section{min-width:0}#history article{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:12px 0}#history article p{margin:5px 0}#score{margin:20px 0;border-radius:24px;overflow:hidden;background:white;border:1px solid #dce6df;padding:24px}.score-title{display:flex;justify-content:space-between;gap:12px;color:#5a7262;font-size:14px}.score-row{display:grid;grid-template-columns:minmax(0,1fr) 70px 70px 100px;gap:12px;align-items:center;padding:22px 14px;background:#eef5ea;border-radius:17px;margin:12px 0}.score-row.blue{background:#eaf0f9}.score-row b{font-size:22px;overflow-wrap:anywhere}.score-row strong{text-align:center;font-size:32px}.score-row strong:last-child{font-size:64px}.score-legend{display:grid;grid-template-columns:minmax(0,1fr) 70px 70px 100px;gap:12px;padding:0 14px;font-size:12px;color:#607565;text-align:center}.score-legend span:first-child{text-align:left}.winner{font-size:24px!important;font-weight:700;color:#186b4e}.point{font-size:22px!important;min-height:85px!important;background:#dceecf!important}.point.blue{background:#dce8f7!important}#qr svg{width:200px;height:200px}#sharing{margin-top:24px}#pending{position:sticky;bottom:10px;border-color:#c59249;background:#fff5e5;z-index:3}#pending button{margin-right:8px}#change{background:#fff4d8;margin:18px 0}button:disabled{opacity:.45}#setup{max-width:900px;margin:auto}.empty{padding:36px;text-align:center;color:#687d70}@media(max-width:640px){.welcome{grid-template-columns:1fr;gap:15px;margin:12px 0}.welcome h1{font-size:42px}.teams{gap:12px}.score-row,.score-legend{grid-template-columns:minmax(0,1fr) 38px 38px 65px;gap:5px;padding-left:8px;padding-right:8px}.score-row b{font-size:16px}.score-row strong{font-size:24px}.score-row strong:last-child{font-size:45px}#score{padding:12px}.point{font-size:17px!important}.score-legend{font-size:10px}#identity{overflow-wrap:anywhere;max-width:100%}#history article{align-items:flex-start;flex-direction:column}}
/* Personal scorekeeper: a quiet app shell around a vivid, readable live score. */
body.system-ui{background:#f2f4f3;color:#243d33}body.system-ui>header{max-width:1120px;margin:auto;border:0;background:transparent;padding:22px 28px}.system-ui main{max-width:940px!important;padding-top:4px!important}.brand{letter-spacing:-.8px}.brand small{font-size:9px;letter-spacing:2.4px}#identity{font-size:12px;color:#6d8075}#logout{background:transparent;border-color:#dce3de;font-size:12px;min-height:36px;padding:8px 14px}#preview{font-size:11px;line-height:1.6;background:transparent;border:1px dashed #d6dfd9;color:#718175;padding:10px 14px;margin-bottom:12px}#notice:not(:empty){font-size:12px;min-height:34px;padding:8px 14px;background:#e6eee9;margin:8px 0}#notice.error{background:#fff0eb;color:#9b3434}#back{background:transparent;border:0;padding:10px 0;font-size:13px;color:#55705f;margin:0}
#score{background:#173c2e;color:#f1f8f3;border:0;border-radius:30px;padding:26px;margin:8px 0 0;box-shadow:0 16px 35px #16382713;position:relative}.match-topline{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#9fbdad}.live-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #54755f;border-radius:20px;padding:6px 10px;font-size:9px;letter-spacing:1.2px;font-weight:700;color:#d8efc5}.live-pill i{width:6px;height:6px;border-radius:50%;background:#d3efa0;box-shadow:0 0 8px #cdf48a66}.live-pill.finished i{background:#c8ddf2}.match-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0}.match-eyebrow{font-size:9px;letter-spacing:2px;color:#99b3a2;margin:0 0 8px}.system-ui #score h1{font-size:38px;letter-spacing:-1.3px;margin:0;color:#fff;font-weight:650}.format-chip{font-size:12px;text-align:right;color:#d6e6dc}.format-chip small{display:block;font-size:10px;color:#a3bcac;margin-top:5px}.duel{display:grid;grid-template-columns:1fr 1fr;gap:14px}.team-card{min-width:0;border-radius:23px;padding:22px 24px 18px;position:relative;color:#26412f;background:#e8f1dd}.team-b{background:#e4edf7;color:#304459}.team-card-top{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:23px}.team-label{font-size:10px;letter-spacing:1.3px;font-weight:750;display:flex;align-items:center;gap:7px;white-space:nowrap}.team-label i{display:inline-block;width:7px;height:7px;background:#73964a;border-radius:50%}.team-b .team-label i{background:#6988b4}.lead-label{font-size:10px;font-weight:600;color:#546e44}.team-b .lead-label{color:#48658b}.is-leading{box-shadow:inset 0 0 0 2px #c5dc9e}.team-b.is-leading{box-shadow:inset 0 0 0 2px #adc6e9}.player-names{font-size:clamp(17px,2.4vw,23px);font-weight:650;line-height:1.35;letter-spacing:-.4px;margin:13px 0 0;min-height:64px;overflow-wrap:anywhere}.player-names span{display:block}.big-point{font-size:clamp(82px,12vw,132px);line-height:1;font-weight:650;letter-spacing:-6px;text-align:center;font-variant-numeric:tabular-nums;margin-top:12px}.point-caption{display:block;text-align:center;font-size:9px;letter-spacing:2px;opacity:.65;margin:8px 0 18px}.team-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #3d643b22;padding-top:14px}.team-stats div{display:flex;justify-content:center;align-items:center;gap:8px}.team-stats div+div{border-left:1px solid #3d643b22}.team-stats strong{font-size:25px;font-weight:700;font-variant-numeric:tabular-nums}.team-stats span{font-size:12px;opacity:.75}.match-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:#c1d5c6;margin-top:20px}.match-ball{font-size:25px;color:#c9e69d}.system-ui .set-detail{border-top:1px solid #65827344;margin-top:12px;font-size:12px;color:#c1d5c6}.system-ui .set-detail summary{font-size:11px;min-height:34px;padding:8px 0;font-weight:400}.set-detail p{margin:8px 0}.tap-hint{font-size:12px;color:#78887e;text-align:center;margin:22px 0 10px}#controls>.teams{gap:14px}.system-ui .point{display:flex;align-items:center;justify-content:center;gap:14px;background:#d3eaa9!important;border:1px solid #c6dca0;border-radius:20px;min-height:88px!important;color:#2f4822;font-size:20px!important;font-weight:650;box-shadow:0 4px 12px #19372806;margin:0;padding:14px}.system-ui .point.blue{background:#d9e6f7!important;border-color:#cbdbee;color:#2e496c}.point small{display:block;font-size:11px;font-weight:400;margin-top:5px;overflow-wrap:anywhere;max-width:270px}.plus-sign{font-size:32px;font-weight:300;line-height:1}.point:active{transform:scale(.985)}.match-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:10px 0 20px}#undo{background:transparent;border:0;color:#547060;font-size:13px;padding:12px 4px}.system-ui .more-actions{border:0;max-width:230px;text-align:right}.system-ui .more-actions summary{font-size:12px;color:#72867a;padding:12px 4px;font-weight:400}.more-actions button{display:block;font-size:12px!important;margin-left:auto}#sharing.card{background:#fff;padding:6px 20px;border-radius:20px;margin-top:8px;border:1px solid #e0e7e2;box-shadow:none}.system-ui #sharing>summary{display:flex;align-items:center;gap:13px;min-height:74px;padding:10px 0;font-size:15px;font-weight:600;list-style:none}.system-ui #sharing>summary:after{content:'+';margin-left:auto;color:#759080;font-size:22px;font-weight:300}.system-ui #sharing[open]>summary:after{content:'−'}#sharing>summary small{display:block;font-size:12px;font-weight:400;color:#8a978e;margin-top:3px}.share-icon{display:grid;place-items:center;background:#edf3ee;width:38px;height:38px;border-radius:12px;color:#557961;font-size:23px;font-weight:400}.share-body{padding:5px 0 15px;border-top:1px solid #edf1ee}#sharing label,#sharing p{font-size:13px}#download,#try{margin-top:18px}.system-ui #setup{border-radius:26px}#setup .teams section{background:#f2f6ee;border-radius:18px;padding:18px}#setup .teams section+section{background:#eff3f9}.system-ui button:focus-visible,.system-ui summary:focus-visible{outline:3px solid #529170;outline-offset:4px}
@media(max-width:640px){body.system-ui>header{padding:16px;gap:8px}.brand{font-size:17px!important}.brand small{font-size:8px}#identity{margin-left:auto;font-size:10px}#logout{font-size:11px;min-height:32px;padding:7px 10px}.system-ui main{padding:12px!important}#score{border-radius:25px;padding:16px}.match-head{margin:17px 0}.system-ui #score h1{font-size:31px}.match-eyebrow{font-size:8px;letter-spacing:1.4px}.format-chip{font-size:10px}.format-chip small{font-size:9px}.duel{gap:10px}.team-card{padding:14px 12px;border-radius:17px}.team-label{font-size:8px;letter-spacing:.8px;gap:4px}.lead-label{font-size:8px}.player-names{font-size:16px;min-height:65px;margin-top:12px}.big-point{font-size:88px;letter-spacing:-5px;margin-top:3px}.point-caption{font-size:8px;margin-bottom:14px}.team-stats{padding-top:11px}.team-stats div{gap:5px}.team-stats strong{font-size:21px}.team-stats span{font-size:10px}.match-bottom{font-size:10px;margin-top:13px}.match-ball{font-size:20px}.tap-hint{margin-top:17px}#controls>.teams{gap:10px}.system-ui .point{gap:8px;border-radius:16px;font-size:17px!important;min-height:82px!important;padding:12px 8px}.plus-sign{font-size:26px}.point small{font-size:9px;max-width:125px}.match-tools{margin-bottom:10px}#sharing.card{padding:5px 15px}#sharing>summary small{font-size:10px}#setup .teams{grid-template-columns:1fr}#preview{font-size:10px;padding:8px 10px}.welcome .features{font-size:14px}}
@media(max-width:350px){.team-card-top{align-items:flex-start;flex-direction:column}.big-point{font-size:74px}.player-names{font-size:14px}}
@media(prefers-reduced-motion:reduce){.point:active{transform:none}}
/* The entire score is the touch target; spectators keep a read-only card. */
.system-ui #score button.team-card{display:block;width:100%;margin:0;border:0;padding:22px 24px 18px;border-radius:23px;background:#e8f1dd;color:#26412f;text-align:left;font:inherit;cursor:pointer;touch-action:manipulation;transition:transform .12s ease,box-shadow .12s ease}
.system-ui #score button.team-b{background:#e4edf7;color:#304459}
.player-names,.big-point{display:block}
.team-stats>.team-stat{display:flex;justify-content:center;align-items:center;gap:8px;opacity:1}
.team-stats>.team-stat+.team-stat{border-left:1px solid #3d643b22}
.tap-cue{display:block;width:fit-content;margin:0 auto 18px;padding:7px 12px;border-radius:20px;background:#26412f0c;font-size:11px;font-weight:600;text-align:center;letter-spacing:0}
.system-ui #score button.team-card:disabled{opacity:1;cursor:wait}
.system-ui #score button.team-card:disabled .tap-cue{opacity:.65}
.system-ui #score button.team-card:focus-visible{outline:3px solid white;outline-offset:4px}
@media(hover:hover){.system-ui #score button.team-card:not(:disabled):hover{box-shadow:inset 0 0 0 3px #9cbc78}}
.system-ui #score button.team-card:not(:disabled):active{transform:scale(.98)}
@media(max-width:640px){.system-ui #score button.team-card{padding:14px 12px;border-radius:17px}.tap-cue{font-size:10px;padding:7px 8px;margin-bottom:14px}.team-stats>.team-stat{gap:5px}}
@media(prefers-reduced-motion:reduce){.system-ui #score button.team-card{transition:none}.system-ui #score button.team-card:not(:disabled):active{transform:none}}
/* Subtle physical depth and a short acknowledgement after the point is saved. */
.system-ui #score button.team-card{--card-edge:#b7c9a3;--card-ring:#bed699;background:linear-gradient(155deg,#f1f7e8,#e4eed7);box-shadow:0 5px 0 var(--card-edge),0 10px 18px #061b2630,inset 0 1px 0 #ffffffd9;transition:transform .12s ease,box-shadow .12s ease}
.system-ui #score button.team-b{--card-edge:#b2c3d8;--card-ring:#a9c4e8;background:linear-gradient(155deg,#f0f5fc,#dce8f6)}
.system-ui #score button.team-card.is-leading{box-shadow:0 5px 0 var(--card-edge),0 10px 18px #061b2630,inset 0 0 0 2px var(--card-ring)}
.system-ui #score button.team-card .tap-cue{background:#ffffff85;box-shadow:0 2px 3px #18382c10,inset 0 1px 0 #fff}
@media(hover:hover){.system-ui #score button.team-card:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 7px 0 var(--card-edge),0 14px 22px #061b2638,inset 0 0 0 2px var(--card-ring)}}
.system-ui #score button.team-card:not(:disabled):active{transform:translateY(4px) scale(.99);box-shadow:0 1px 0 var(--card-edge),0 3px 6px #061b2630,inset 0 2px 6px #19392e10}
.point-feedback{position:absolute;top:50%;right:15%;border-radius:50%;padding:9px;background:#fff;color:#254333;font-size:19px;font-weight:750;pointer-events:none;box-shadow:0 3px 14px #173c2e18;animation:point-rise .65s ease-out both}
@keyframes point-rise{0%{opacity:0;transform:translateY(8px) scale(.85)}25%{opacity:1;transform:translateY(0) scale(1)}80%{opacity:1}100%{opacity:0;transform:translateY(-24px)}}
@media(prefers-reduced-motion:reduce){.system-ui #score button.team-card{transition:none}.system-ui #score button.team-card:not(:disabled):hover,.system-ui #score button.team-card:not(:disabled):active{transform:none}.point-feedback{animation:none}}
/* Domed gel keys inspired by the supplied reference. */
.system-ui #score button.team-card{
 --gel-top:#bcf594;--gel-mid:#8fd76b;--gel-bottom:#51a34e;--gel-edge:#377442;--gel-shadow:#205535;
 isolation:isolate;overflow:hidden;border-radius:34px;border:1px solid #d9ffd9;color:#102e1b;
 background:linear-gradient(150deg,var(--gel-top) 0%,var(--gel-mid) 38%,var(--gel-bottom) 100%);
 box-shadow:0 7px 0 var(--gel-edge),0 10px 0 #031c2440,0 18px 24px #061b2659,inset 0 3px 3px #ffffffed,inset 7px 0 9px #e6ffce99,inset -8px -12px 12px var(--gel-shadow);
 transform:none;
}
.system-ui #score button.team-b{
 --gel-top:#8deff6;--gel-mid:#38ccdf;--gel-bottom:#149ebc;--gel-edge:#146278;--gel-shadow:#08667f;
 color:#082f40;border-color:#bcfaff;
}
.system-ui #score button.team-card::before{
 content:"";position:absolute;top:5px;left:7%;right:7%;height:32px;z-index:-1;pointer-events:none;
 border-radius:50% 50% 42% 42%;
 background:linear-gradient(180deg,#ffffffed 0%,#ffffffa1 24%,#ffffff12 100%);
 filter:blur(1px);
}
.system-ui #score button.team-card::after{
 content:"";position:absolute;inset:8px;z-index:-1;pointer-events:none;border-radius:27px;
 background:linear-gradient(150deg,#ffffff28 0%,#ffffff0d 35%,transparent 35.5%);
 box-shadow:inset 5px 0 6px #d7ffff60,inset -4px -3px 6px #ffffff25;
 border-left:1px solid #ffffff6b;border-right:1px solid #ffffff30;
}
.system-ui #score button.team-card.is-leading{outline:2px solid #daffb1;outline-offset:2px}
.system-ui #score button.team-b.is-leading{outline-color:#b6f5ff}
.system-ui #score button.team-card .team-card-top{margin-top:10px}
.system-ui #score button.team-card .big-point{text-shadow:0 1px 1px #ffffff70,0 -1px 1px #05271f40}
.system-ui #score button.team-card .lead-label{color:inherit}
.system-ui #score button.team-card .team-label i{background:currentColor}
.system-ui #score button.team-card .tap-cue{background:linear-gradient(#ffffff8a,#ffffff36);border:1px solid #ffffff6b;box-shadow:inset 0 1px 1px #fff,0 2px 3px #18382c28}
.system-ui #score button.team-card .point-caption,.system-ui #score button.team-card .team-stat>span{opacity:.85}
@media(hover:hover){.system-ui #score button.team-card:not(:disabled):hover{
 transform:translateY(-2px);box-shadow:0 9px 0 var(--gel-edge),0 22px 28px #061b2659,inset 0 3px 4px white,inset 7px 0 9px #e6ffce99,inset -8px -12px 12px var(--gel-shadow);
}}
.system-ui #score button.team-card:not(:disabled):active{
 transform:translateY(5px) scale(.995);box-shadow:0 2px 0 var(--gel-edge),0 4px 7px #061b2650,inset 0 2px 3px #ffffffa0,inset 5px 0 8px #e6ffce60,inset -6px -8px 10px var(--gel-shadow);
}
#score .duel{padding:3px 3px 10px}
@media(max-width:640px){.system-ui #score button.team-card{border-radius:25px}.system-ui #score button.team-card::before{height:25px}.system-ui #score button.team-card::after{border-radius:19px;inset:6px}.system-ui #score button.team-card .team-card-top{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.system-ui #score button.team-card,.system-ui #score button.team-card:not(:disabled):hover,.system-ui #score button.team-card:not(:disabled):active{transform:none}}
/* Landscape phones: keep both scoring surfaces and undo within easy reach. */
@media(orientation:landscape) and (max-height:500px) and (min-width:600px){
 body.system-ui:has(#match:not([hidden]))>header,
 body:has(#match:not([hidden])) #preview,
 body:has(#match:not([hidden])) #back{display:none}
 body.system-ui:has(#match:not([hidden])) main{max-width:1000px!important;padding:8px 16px!important}
 body:has(#match:not([hidden])) #notice:not(:empty){position:fixed;top:10px;right:20px;z-index:5;margin:0;padding:5px 10px;min-height:0;pointer-events:none}
 #score{padding:10px 16px;border-radius:22px;margin:0}
 .match-topline{display:none}
 .match-head{margin:0 0 8px;align-items:center}
 .match-eyebrow{display:none}
 .system-ui #score h1{font-size:22px}
 .format-chip{font-size:10px;display:flex;gap:10px;align-items:center}
 .format-chip small{margin:0;font-size:10px}
 .duel{gap:16px}
 .system-ui #score button.team-card,.team-card{padding:14px 20px 12px;border-radius:26px;display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.65fr);column-gap:8px}
 .team-card-top{grid-column:1/-1;min-height:18px}
 .system-ui #score button.team-card .team-card-top{margin-top:5px}
 .player-names{grid-column:1;grid-row:2;margin:10px 0 0;min-height:0;font-size:19px;align-self:center}
 .big-point{grid-column:2;grid-row:2;font-size:86px;margin:4px 0 0;letter-spacing:-4px}
 .point-caption{grid-column:2;grid-row:3;margin:0;font-size:8px}
 .tap-cue{grid-column:1;grid-row:3;margin:0 auto 0 0;padding:4px 9px;font-size:9px;align-self:center}
 .team-stats{grid-column:1/-1;margin-top:10px;padding-top:7px}
 .team-stats strong{font-size:21px}
 .team-stats span{font-size:10px}
 .match-bottom{display:none}
 .system-ui .set-detail{margin:6px 0 0;border:0}
 .system-ui .set-detail summary{min-height:24px;padding:5px 0;font-size:10px}
 .match-tools{margin:2px 0 6px;align-items:center}
 #undo{padding:8px 4px;min-height:38px}
 .system-ui .more-actions summary{padding:8px 4px;min-height:38px}
 #sharing.card{margin-top:5px}
 .system-ui #sharing>summary{min-height:48px;padding:5px 0}
}
@media(orientation:landscape) and (max-height:500px) and (min-width:600px){
 body.system-ui:has(#match:not([hidden])) main{margin-top:0!important}
 .system-ui #score button.team-card,.team-card{padding-top:10px;padding-bottom:8px}
 .system-ui #score .big-point{font-size:72px;line-height:1}
 .system-ui #score .player-names{font-size:17px;margin-top:0;line-height:1.3}
 .system-ui #score .team-stats{margin-top:6px;padding-top:4px;line-height:1.1}
 .system-ui #score .set-detail summary{padding:2px 0;min-height:18px;line-height:18px}
 .system-ui #score .team-card-top{line-height:1.2}
}
#sync-state{font-size:11px;color:#5a7164;margin:5px 0}
#sync-state.error{color:#8c351d;background:#fff0e6;padding:8px 12px;border-radius:10px}
#watch-status{font-size:13px;color:#53715e}

body:has(#access:not([hidden])) #notice,body:has(#confirm:not([hidden])) #notice{display:none}#access-message:not(:empty),#confirm-message:not(:empty){padding:12px;border-radius:12px;background:#e8f1eb;font-size:14px;overflow-wrap:anywhere}#access-message.error,#confirm-message.error{background:#fff0eb;color:#942f24}

/* Navigation stays inside the scoreboard, including landscape. */
.system-ui #score .match-topline{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.system-ui #score #back{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid #ffffff30;border-radius:999px;background:#ffffff12;color:#d8eddf;font-size:12px;font-weight:650;margin:0;box-shadow:none}
.system-ui #score #back:hover{background:#ffffff22}
.system-ui #score #back[hidden]{display:none}

/* Full-screen match surface for the player app. */
body.playing-view{background:#153d2c!important}
body.playing-view>header,body.playing-view #preview,body.playing-view #sync-state{display:none!important}
body.playing-view main{max-width:none!important;padding:0!important;margin:0!important}
body.playing-view #score{box-sizing:border-box;margin:0!important;min-height:100dvh;border:0!important;border-radius:0!important;padding: max(20px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
body.playing-view #notice:not(.error){display:none!important}
body.playing-view #notice.error{position:fixed;bottom:12px;left:12px;right:12px;z-index:10;margin:0}
body.playing-view #score #undo,body.playing-view #score .more-actions summary{color:#d8eddf}
body.playing-view #score #controls{margin-top:12px}
body.playing-view #pending{margin:12px}

.system-ui .settings-gear{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;font-size:26px;line-height:1;background:#ffffff16;color:#e2f3e8;border:1px solid #ffffff35;box-shadow:none;margin:0}
#setup-settings{float:right;background:#e3ede5;color:#204a36}
#game-settings{max-width:420px;width:calc(100% - 32px);box-sizing:border-box;border:1px solid #dae6dc;border-radius:24px;padding:24px;background:#f5f9f5;color:#203f30;box-shadow:0 24px 90px #0005}
#game-settings::backdrop{background:#031d15aa;backdrop-filter:blur(5px)}
#game-settings label{display:block;margin:18px 0}#game-settings select{width:100%;margin-top:8px}#game-settings p{font-size:14px;line-height:1.5}#game-settings h2{margin-top:0}

#game-settings .set-detail{color:#254b38;border-color:#c9d9ce;margin:0 0 16px}#game-settings .set-detail summary{color:#254b38;font-size:14px;font-weight:600}#game-settings #controls{border-top:1px solid #c9d9ce;margin-top:18px;padding-top:8px}#game-settings .match-tools{margin-bottom:0}#game-settings #undo,#game-settings .more-actions summary{color:#254b38}

.team-wrap{position:relative;min-width:0}.team-wrap .team-card{width:100%;height:100%;box-sizing:border-box;padding-bottom:76px}.system-ui .subtract-point{position:absolute;bottom:14px;right:16px;display:flex;align-items:center;gap:7px;border-radius:999px;min-height:44px;padding:5px 13px;background:#b92f36;color:white;border:1px solid #ffb0b0;font-size:26px;box-shadow:0 3px 0 #7e1e27}.subtract-point small{font-size:11px;font-weight:700}.subtract-point:disabled{opacity:.3;box-shadow:none}#undo{display:none!important}
/* Reserve a separate row for correction, without covering the score. */
.team-wrap{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.team-wrap .team-card{height:auto;flex:1;padding-bottom:24px}
.system-ui .team-wrap .subtract-point{position:static;align-self:flex-end;flex:none;margin:0 8px 2px 0}

/* Arcade-inspired final result; only for a completed match with a winner. */
.system-ui .team-card.victory-card{background:linear-gradient(145deg,#fff8ae 0%,#f5d466 35%,#aedf88 75%,#67be84 100%)!important;color:#233820!important;border-color:#fff2a0!important;box-shadow:inset 0 3px 12px #fff9,0 0 0 3px #f6d764,0 0 34px #f6d76455!important}
.system-ui .team-card.defeated-card{background:linear-gradient(145deg,#d0d4d3,#8d9895)!important;color:#35413d!important;border-color:#a9b2ae!important;box-shadow:inset 0 2px 8px #ffffff55!important;filter:grayscale(1)}
.outcome-badge{display:block;text-align:center;font-size:clamp(24px,4.5vw,52px);font-weight:950;font-style:italic;letter-spacing:-1px;line-height:1.1;color:#735000;text-shadow:0 2px 0 #fff5b4,2px 3px 0 #fff6; margin:8px 0 24px}
.outcome-badge small{display:block;font-size:11px;font-style:normal;letter-spacing:3px;margin-top:10px;font-weight:750}
.defeated-card .outcome-badge{color:#48514e;text-shadow:0 1px 0 #fff7}
/* Prominent set and game totals. */
.system-ui .team-card .team-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:0;padding-top:16px;margin-top:12px;opacity:1}
.system-ui .team-card .team-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:14px 8px;background:linear-gradient(145deg,#ffffff75,#ffffff30);border:1px solid #ffffff90;border-radius:18px;box-shadow:inset 0 2px 0 #ffffff80,0 5px 12px #133d2520;opacity:1}
.system-ui .team-card .team-stat strong{font-size:clamp(36px,5vw,64px);line-height:1;font-weight:900;letter-spacing:-2px;opacity:1;text-shadow:0 2px 0 #ffffff65}
.system-ui .team-card .team-stat>span{font-size:11px;font-weight:850;letter-spacing:1.8px;text-transform:uppercase;opacity:1}
.system-ui .victory-card .team-stat{background:linear-gradient(145deg,#fff9cc,#f1d57c);border-color:#fff4b0;box-shadow:inset 0 2px 0 #fff9,0 5px 15px #7c590030;color:#483607}
.system-ui .defeated-card .team-stat{background:linear-gradient(145deg,#ffffff80,#ffffff30);color:#35413d}
@media(max-width:480px){.system-ui .team-card .team-stats{gap:7px}.system-ui .team-card .team-stat{padding:12px 5px;border-radius:13px}.system-ui .team-card .team-stat>span{font-size:9px;letter-spacing:1px}}

.result-recap{margin-top:24px;padding:22px;border:1px solid #ffffff30;border-radius:22px;background:#ffffff0c;color:#e4f0e8}.result-recap h2{color:inherit;font-size:22px}.result-recap p{font-size:14px;line-height:1.5}.result-recap pre{white-space:pre-wrap;overflow-wrap:anywhere;font:600 16px/1.8 system-ui;color:#fff}.result-recap button{background:#d9ecb6;color:#203c2a;border:0;border-radius:14px;padding:12px 18px}
/* Match each correction button to its team's full width. */
.system-ui .team-wrap .subtract-point{align-self:stretch;width:100%;box-sizing:border-box;justify-content:center;margin:0;min-height:48px;border-radius:16px}

.phase-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}.phase-line h1{margin:0!important}.phase-hint{font-size:12px;line-height:1.4;color:#c1d5c6;max-width:230px}@media(max-width:480px){.phase-line{gap:6px 10px}.phase-hint{font-size:10px;max-width:145px}}

/* Deciding point stays outside the score buttons and never covers their totals. */
.decisive-point{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 16px;margin:0 0 16px;padding:12px 16px;border:1px solid #ffe49b;border-radius:16px;background:linear-gradient(120deg,#ffe8a8,#eec86b);color:#382b08;text-align:center;box-shadow:0 4px 16px #0002}
.decisive-point strong{font-size:18px;font-weight:850}.decisive-point span{font-size:13px;line-height:1.4}

/* Keep score controls stationary as point notices appear and disappear. */
.point-notice-slot{min-height:0;margin-top:14px;display:flex;align-items:center;min-width:0}.point-notice-slot:empty{display:none}
.point-notice-slot .decisive-point{box-sizing:border-box;width:100%;margin:0;padding:10px 12px;gap:3px 12px}
@media(max-width:480px){.point-notice-slot .decisive-point strong{font-size:16px}.point-notice-slot .decisive-point span{font-size:12px}}

/* Connection failures must remain visible even in the compact playing view. */
body.playing-view #sync-state.error{display:block!important;position:fixed;bottom:12px;left:12px;right:12px;z-index:30;margin:0;box-shadow:0 4px 18px #0003}

/* Bold, sculpted score numerals, sized to the card rather than the page. */
.system-ui #score .team-card{container-type:inline-size}
.system-ui #score .big-point{
 font-family:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold","Arial Black",system-ui,sans-serif;
 font-size:clamp(80px,18vw,200px);font-size:clamp(64px,76cqi,200px);
 font-weight:950;line-height:1;letter-spacing:-.055em;
 font-variant-numeric:tabular-nums;white-space:nowrap;
 -webkit-text-stroke:.6px currentColor;
 text-shadow:0 2px 0 #ffffff70,0 5px 9px #12382a20;
 margin-top:12px;margin-bottom:2px;
}
.system-ui #score .big-point[aria-label="AD puntos"]{font-size:clamp(60px,60cqi,168px);letter-spacing:-.065em}
.system-ui .team-card .team-stat strong{font-family:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold","Arial Black",system-ui,sans-serif;font-weight:950;font-size:clamp(40px,19cqi,72px);-webkit-text-stroke:.3px currentColor}
@media(orientation:landscape) and (max-height:500px) and (min-width:600px){
 .system-ui #score .big-point{font-size:clamp(76px,23vh,106px);margin-top:0}
 .system-ui #score .big-point[aria-label="AD puntos"]{font-size:clamp(64px,20vh,92px)}
 .system-ui .team-card .team-stat strong{font-size:34px}
}

/* Compact heavy numerals: fill the existing score area without taller cards. */
.system-ui #score .big-point{
 font-family:"Arial Black","Helvetica Neue",Arial,system-ui,sans-serif;
 font-size:clamp(64px,76cqi,166px);font-weight:900;
 line-height:.80;letter-spacing:-.065em;
 transform:scaleY(.88);transform-origin:center;
 margin-top:10px;margin-bottom:0;
 -webkit-text-stroke:1px currentColor;
}
.system-ui #score .big-point[aria-label="AD puntos"]{font-size:clamp(60px,60cqi,150px)}
.system-ui .team-card .team-stat strong{
 font-family:"Arial Black","Helvetica Neue",Arial,system-ui,sans-serif;
 font-size:clamp(36px,17cqi,64px);font-weight:900;line-height:1;
}
@media(orientation:landscape) and (max-height:500px) and (min-width:600px){
 .system-ui #score .big-point{font-size:clamp(72px,20vh,90px);margin-top:0}
 .system-ui #score .big-point[aria-label="AD puntos"]{font-size:clamp(60px,18vh,80px)}
 .system-ui .team-card .team-stat strong{font-size:32px}
}

#player-photo{width:min(520px,calc(100vw - 40px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:0;border-radius:24px;padding:24px;color:#193d2d;background:#f5f8f3}#player-photo::backdrop{background:#071d18b8}#player-photo video,#player-photo img{width:100%;max-height:38dvh;object-fit:contain;border-radius:16px;background:#173c2e}#player-photo [hidden]{display:none!important}.photo-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.photo-actions button,.photo-actions .button{padding:12px;border-radius:14px;cursor:pointer}.photo-message{min-height:40px;font-weight:700}#player-photo label{font-size:14px}.player-memory{padding:18px;margin-top:20px;border:1px solid #ffffff30;border-radius:20px;color:#fff}.player-memory h2{color:inherit}.player-memory img{width:100%;max-height:480px;object-fit:contain;border-radius:16px}.player-memory p{line-height:1.6}

#score{isolation:isolate;overflow:hidden}#score>.match-photo-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.14;filter:saturate(.7);pointer-events:none;z-index:-1}.memory-share-actions{display:flex;gap:10px;flex-wrap:wrap}.memory-share-actions button{border-radius:14px;padding:12px 16px;background:#e1f0cf;color:#193d2d}.player-memory #memory-share-status{font-size:13px}

#settings-photo-preview{margin:14px 0 22px;padding:10px;background:#e6eee6;border-radius:16px}#settings-photo-preview[hidden]{display:none}#settings-photo-image{display:block;width:100%;max-height:230px;object-fit:contain;border-radius:10px;background:#173c2e}#settings-photo-preview figcaption{font-size:12px;line-height:1.4;color:#486252;margin-top:8px}

/* Consistent, reachable dismissal and grouped settings. */
#game-settings{padding:0;width:min(540px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #e1e9e3;border-radius:26px;background:#f3f6f2;box-shadow:0 24px 80px #071b2850;color:#193b2c}
.modal-heading{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f3f6f2;padding:20px 22px;border-bottom:1px solid #dfe7df}
#game-settings .modal-heading h2,#player-photo .modal-heading h2{font-size:23px;letter-spacing:-.6px;margin:4px 0 0;color:#193b2c}
.modal-eyebrow{font-size:10px;font-weight:750;letter-spacing:1.6px;color:#6a8070}
.system-ui .modal-close{flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:#e2e9e2;color:#375341;font-size:20px;display:grid;place-items:center;box-shadow:none;cursor:pointer}
.modal-content{padding:16px;display:grid;gap:14px}.settings-section{padding:18px;background:white;border:1px solid #e1e9e3;border-radius:18px}.settings-section[hidden]{display:none}#game-settings h3{font-size:16px;margin:0 0 8px;color:#193b2c}#game-settings .section-hint{font-size:12px;color:#677d6e;margin:0 0 12px}#game-settings #memory-saved{font-size:12px;color:#3d7350;margin:10px 0 0}#game-settings #memory-saved:empty{display:none}
#game-settings #settings-photo-preview{margin:10px 0 14px;padding:0;background:transparent}#game-settings #settings-photo-image{max-height:150px}#game-settings #settings-photo-preview figcaption{display:none}
#game-settings #edit-memory{width:100%;border-radius:12px;background:#edf3e9;color:#264b35;border:1px solid #dce6d7;min-height:44px;margin:0}
#game-settings label{font-size:13px;font-weight:650;margin:16px 0}#game-settings select{min-height:48px;border-radius:12px;background:#f7f9f6;padding:10px;font-size:14px}#game-settings .settings-explanation{padding:10px 12px;border-radius:10px;background:#edf3ea;font-size:12px;margin:10px 0}
#game-settings .set-detail{margin:0;border:0}#game-settings #controls{padding-top:8px;margin-top:8px}#game-settings .match-tools{display:block;margin:0}#game-settings .more-actions{text-align:left;max-width:none}#game-settings .more-actions summary{min-height:44px}#game-settings .more-actions button{margin:8px 0;width:100%}#game-settings #finish{color:#a63131;background:#fff1ef}
.settings-footer{display:flex;gap:10px;justify-content:flex-end;padding-top:10px}.settings-footer button{margin:0;min-height:46px;border-radius:13px}.settings-footer .primary{background:#234f37;color:white}
#player-photo .modal-heading{margin:-24px -24px 16px;padding:14px 20px}#player-photo .modal-heading h2{font-size:21px;margin:0}
@media(max-width:400px){.modal-content{padding:10px}.settings-section{padding:14px}.modal-heading{padding:15px}.settings-footer{flex-wrap:wrap}.settings-footer button{flex:1;font-size:13px}}

/* Bright correction controls with a dark, legible interaction state. */
.system-ui #score .subtract-point:not(:disabled){
 background:linear-gradient(180deg,#ff555c 0%,#f02b39 55%,#dc1528 100%);
 color:#fff;border:1px solid #ff8f95;
 box-shadow:inset 0 2px 0 #ffffff65,0 3px 0 #9b1323,0 5px 12px #a5112426;
 transition:background .15s ease,box-shadow .15s ease;
}
.system-ui #score .subtract-point:not(:disabled):hover,
.system-ui #score .subtract-point:not(:disabled):active,
.system-ui #score .subtract-point:not(:disabled):focus-visible{
 background:rgba(0,0,0,.65);color:#fff;border-color:rgba(255,255,255,.4);
 box-shadow:inset 0 1px 0 #ffffff25,0 3px 0 #0005;
}
.system-ui #score .subtract-point:not(:disabled) small{color:#fff;opacity:1}
/* Keep the chosen red visible even when there is no point to undo. */
.system-ui #score .subtract-point:disabled{
 background:linear-gradient(180deg,#ff555c,#e92134);color:#fff;
 border:1px solid #ff8f95;opacity:.8;filter:none;
 box-shadow:inset 0 2px 0 #ffffff45;cursor:not-allowed;
}
.system-ui #score .subtract-point:disabled small{color:#fff;opacity:1}
.system-ui #score .subtract-point:hover,
.system-ui #score .subtract-point:active{
 background:rgba(0,0,0,.65);color:#fff;border-color:#ffffff66;
}
/* Connection status is an overlay: score buttons never shift during saving. */
.offline-conflict{max-width:520px;border:0;border-radius:24px;padding:26px;color:#183e2b}
.offline-conflict button{display:block;width:100%;margin-top:12px;min-height:44px}
body.playing-view #pending:not([hidden]){position:fixed;bottom:75px;left:12px;right:12px;z-index:31;max-width:600px;margin:auto}
/* Photo-first review with a persistent primary action. */
#player-photo{padding:0;width:min(560px,calc(100vw - 20px));max-height:94dvh}
#player-photo .modal-heading{margin:0;padding:16px 18px}
#player-photo .photo-intro,#player-photo .photo-message,#player-photo>label{margin:16px 20px;display:block;line-height:1.5}
#player-photo>video,#player-photo>img{display:block;width:calc(100% - 32px);margin:0 16px;max-height:40dvh;object-fit:contain;border:1px solid #d9e4d5;border-radius:20px}
#player-photo .photo-message{min-height:0;font-size:14px;color:#396247}
#player-photo .photo-actions{position:sticky;bottom:0;background:#f5f8f3;padding:14px 16px max(16px,env(safe-area-inset-bottom));margin:0;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #dce6d8;z-index:6}
#player-photo .photo-actions>*{margin:0;text-align:center;min-height:46px;font-size:14px;box-sizing:border-box}
#player-photo [data-action="use"]{grid-column:1/-1;grid-row:1;background:#205c3b;color:white;font-size:17px;font-weight:750;min-height:56px;box-shadow:0 4px 14px #205c3b25}
#player-photo [data-action="skip"],#player-photo [data-action="back"]{background:transparent;color:#647567;border:0;font-size:13px}
#player-photo.has-photo [data-action="skip"]{display:none}
.system-ui #score{position:relative;isolation:isolate}
.system-ui #score>.match-photo-backdrop{z-index:0;opacity:.38;filter:saturate(.85);object-fit:cover}
.system-ui #score>:not(.match-photo-backdrop){position:relative;z-index:1}
.system-ui #score .final-symbol{font-family:Arial,sans-serif;font-size:clamp(95px,42cqi,160px);line-height:1;font-weight:900;transform:none;text-shadow:0 3px 0 #ffffff40;margin:12px 0}
.system-ui #score .victory-card .final-symbol{color:#24542c}
.system-ui #score .defeated-card .final-symbol{color:#626b70}
#player-photo .photo-actions .photo-consent{grid-column:1/-1;grid-row:1;display:flex;gap:10px;align-items:center;text-align:left;font-size:12px;line-height:1.4;min-height:0;padding:0 2px 6px;color:#3f5847}
#player-photo .photo-consent input{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#205c3b}
#player-photo .photo-actions [data-action="use"]{grid-row:2}
#player-photo:not(.has-photo) .photo-consent{display:none}
@media(max-width:600px){#player-photo>img,#player-photo>video{max-height:32dvh}#player-photo .photo-intro{font-size:13px;margin:12px 18px}#player-photo .photo-actions{gap:8px}}

/* Comfortable touch target and complete player names. */
.system-ui #score #back{min-height:44px;min-width:44px;font-size:14px}
.system-ui #score .player-names span{overflow-wrap:anywhere;white-space:normal;min-width:0}

/* Keep the memory photo covering the visible screen, including long result pages. */
.system-ui #score>.match-photo-backdrop{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;object-fit:cover;object-position:center;pointer-events:none}
.player-memory>img{height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.system-ui #score .voice-toggle{min-height:44px;border:1px solid #ffffff50;border-radius:999px;padding:8px 12px;background:#183c30;color:white;font-size:13px;white-space:nowrap}
.system-ui #score .voice-toggle.is-listening{background:#c9ed98;color:#173d29;border-color:#dfffbe}
#voice-message{color:#e5f3de;background:#123829dd;border-radius:12px;padding:10px 14px;font-size:13px;line-height:1.5;margin:14px 0 0}
#voice-message[hidden]{display:none}
.system-ui #score .match-topline{flex-wrap:wrap}

#wake-message:not([hidden]){font-size:13px;line-height:1.5;padding:12px;border-radius:12px;background:#fff1d8;color:#594624}#wake-message[hidden]{display:none}

/* Compact, readable credits on every player screen. */
body.system-ui{padding-bottom:calc(60px + env(safe-area-inset-bottom))!important}
#project-credit{position:fixed;inset:auto 0 0;z-index:20;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px 20px;padding:4px 16px calc(4px + env(safe-area-inset-bottom));background:rgba(10,35,26,.96);border-top:1px solid #ffffff18;color:#c4d7cc;font:10px/1.35 system-ui,sans-serif;text-align:left}
#project-credit>span{display:block}#project-credit a{color:#d6edb5;text-decoration:none;font-weight:600}#project-credit a:hover{text-decoration:underline}#project-credit a:focus-visible{outline:2px solid white;outline-offset:2px}
#project-credit small{display:block;font-size:9px;color:#afc6b9;margin:0}
#project-credit nav{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:0}#project-credit nav a{display:inline-flex;align-items:center;min-height:44px;font-size:10px}
body.playing-view #score{min-height:calc(100dvh - 60px - env(safe-area-inset-bottom))}
@media(max-width:700px){
#project-credit{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:0;padding-inline:14px;max-height:none}
#project-credit>span{grid-column:1;grid-row:1;align-self:end}#project-credit>span>a{display:block;font-size:11px;line-height:1.4}
#project-credit small{grid-column:1;grid-row:2;align-self:start}
#project-credit nav{grid-column:2;grid-row:1/3;flex-direction:column;gap:0;align-items:flex-end}
#project-credit nav a{min-height:24px;font-size:10px}#project-credit nav>span{display:none}
}

.discard-match{display:block;margin:20px auto 0!important;background:transparent!important;color:#ffd3d3!important;border:1px solid #d6a1a180!important;min-height:44px}.discard-dialog{max-width:420px;width:calc(100% - 32px);box-sizing:border-box;padding:24px;border:0;border-radius:24px}.discard-dialog::backdrop{background:#001b15b3}.discard-close{float:right}.discard-dialog button{min-height:44px}.discard-yes{background:#a92332!important;color:white!important}.discard-dialog [role=status]{color:#a92332}

.voice-preview-options{margin:20px 0;padding:16px;border:1px solid #b8d6c655;border-radius:18px;background:#102f25;color:#e4f0e8}.voice-preview-options label{color:#e4f0e8!important;font-size:14px}.voice-preview-options select{display:block;min-height:44px;font:inherit;border-radius:10px;padding:8px 14px;margin-top:6px;background:#f1f7ef;color:#153d2c}.voice-preview-options p{font-size:13px;line-height:1.5;color:#d3e5d8}.voice-preview-options button{min-height:44px}

#voice-recovery[hidden]{display:none}#voice-recovery{display:flex;flex-wrap:wrap;gap:12px;padding:16px 0}#voice-recovery button{min-height:44px}#voice-recovery p{width:100%;margin:0;color:#e5f3de}.voice-help-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:460px;max-height:85dvh;overflow:auto;padding:24px;border:0;border-radius:24px;background:#fff;color:#173b30;line-height:1.5}.voice-help-dialog::backdrop{background:#001b15b3}.voice-help-dialog button{min-height:44px}.voice-help-close{float:right;min-width:44px}.voice-help-dialog li{margin-bottom:10px}

#voice-ready[hidden]{display:none}#voice-ready{margin-top:16px;padding:18px;border:1px solid #b8ef86;border-radius:18px;background:#264c38;color:#e8ffd9}#voice-ready p{font-weight:700}#voice-ready button{min-height:48px;background:#d4f7a8;color:#163727}#voice-ready small{display:block;margin-top:12px;line-height:1.5}

.system-ui #score #voice-toggle{display:inline-flex;align-items:center;gap:9px;white-space:normal;text-align:left;background:#263d36;border-color:#a7b6b080;color:#e8eeeb;max-width:100%}.system-ui #score #voice-toggle strong,.system-ui #score #voice-toggle small{display:block}.system-ui #score #voice-toggle strong{font-size:13px}.system-ui #score #voice-toggle small{font-size:11px;margin-top:2px}.system-ui #score #voice-toggle svg{flex-shrink:0}.system-ui #score #voice-toggle.is-listening{background:#c9ed98;color:#173d29;border-color:#dfffbe}.voice-switch{display:block;position:relative;width:30px;height:18px;border-radius:20px;background:#7b8983;flex-shrink:0}.voice-switch:after{content:"";position:absolute;width:12px;height:12px;left:3px;top:3px;border-radius:50%;background:white}#voice-toggle.is-listening .voice-switch{background:#257044}#voice-toggle.is-listening .voice-switch:after{left:15px}

.voice-preview-options[hidden]{display:none!important}#voice-setup-dialog .voice-preview-options{margin:0;padding:0;background:transparent;border:0;color:#173b30}#voice-setup-dialog .voice-preview-options>p{color:#173b30}#voice-setup-dialog.voice-verified .voice-wizard-intro,#voice-setup-dialog.voice-verified .voice-preview-options>label,#voice-setup-dialog.voice-verified #voice-phrases,#voice-setup-dialog.voice-verified #voice-test,#voice-setup-dialog.voice-verified .voice-preview-options>p{display:none}#voice-setup-dialog #voice-ready p{color:#e8ffd9}#voice-setup-dialog #voice-play{width:100%;font-size:16px}.tap-cue{white-space:normal}

#voice-setup-dialog #voice-prompt{padding:18px 16px;margin:16px 0;border:2px solid #76a953;border-radius:18px;background:#eff9e4;color:#183b26;text-align:center}#voice-prompt span,#voice-prompt strong,#voice-prompt small{display:block}#voice-prompt strong{font-size:clamp(24px,7vw,34px);line-height:1.2;margin:10px 0;font-weight:800}#voice-prompt span{font-size:16px;font-weight:700}#voice-prompt small{font-size:13px;line-height:1.4}#voice-setup-dialog #voice-prompt.is-hearing{background:#d4f7a8;border-color:#2d753a}#voice-setup-dialog.voice-verified #voice-prompt{display:none}#voice-setup-dialog #voice-test{width:100%;min-height:48px}

#voice-setup-dialog #voice-test{display:none}#voice-setup-dialog #voice-prompt{display:block;width:100%;cursor:pointer;background:linear-gradient(180deg,#e4ffbf,#b8e888);border:2px solid #91c363;border-bottom:5px solid #5f913b;box-shadow:0 5px 0 #477429,0 9px 16px #173b3026;transition:transform .12s,box-shadow .12s;color:#183b26}#voice-setup-dialog #voice-prompt:not(:disabled):active{transform:translateY(4px);box-shadow:0 1px 0 #477429}#voice-setup-dialog #voice-prompt:focus-visible{outline:3px solid #173b30;outline-offset:4px}#voice-setup-dialog #voice-prompt.is-hearing{background:#eff9e4;box-shadow:0 0 0 3px #90c46e55;border-bottom-width:2px;cursor:default}#voice-setup-dialog.voice-verified #voice-prompt{display:none}

.system-ui #score .subtract-point .undo-voice-hint{display:block;font-size:12px;font-weight:600;line-height:1.3;margin-top:4px;white-space:normal}.system-ui #score .subtract-point small{min-width:0}

html:has(body.playing-view),body.playing-view{overscroll-behavior-y:contain}

/* Player home: clear state, teams and next action. */
#dashboard{max-width:980px;margin:auto}#dashboard>.heading{padding:18px 0 24px;align-items:center}#dashboard>.heading h1{font-size:clamp(28px,4vw,40px);letter-spacing:-1.3px}#dashboard #new{min-height:50px;border-radius:16px;padding:14px 22px}#history .history-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 30px}#history .history-stats>div{padding:18px 22px;border-radius:18px;background:#e6eee8;border:1px solid #d7e3db}#history .history-stats strong{display:block;font-size:28px;letter-spacing:-1px}#history .history-stats span{display:block;font-size:12px;color:#526d60;margin-top:4px}#history .history-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}#history .history-toolbar h2{margin:0;font-size:22px}#history .history-filters{display:flex;padding:4px;gap:3px;border-radius:14px;background:#e4ebe6}#history .history-filters button{min-height:44px;padding:8px 14px;border:0;background:transparent;border-radius:11px;font-size:13px;color:#486253}#history .history-filters button[aria-pressed=true]{background:white;color:#163c2f;box-shadow:0 2px 6px #14372712}#history article.history-match{display:block;border:1px solid #d9e4dc;background:white;padding:22px 24px;border-radius:22px;margin:14px 0;box-shadow:0 3px 12px #163c2f05}#history article.history-live{border:2px solid #5c9277;background:#f8fcf6}#history .history-match-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}#history .history-state{border-radius:20px;background:#eaf2e6;color:#315f40;font-size:12px;font-weight:700;padding:5px 10px}#history time{color:#64766d;font-size:12px}#history .history-pairs{display:grid;grid-template-columns:1fr 1fr;gap:18px}#history .history-pair{border-left:3px solid #9fcb75;padding-left:12px;min-width:0}#history .history-pair+div{border-color:#83b6df}#history .history-team-label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#65766d;margin-bottom:5px}#history .history-pair strong{font-size:18px;line-height:1.4;overflow-wrap:anywhere}#history .history-amp{font-weight:400;color:#8b9c91}#history .history-winner .history-team-label{color:#226c45;font-weight:800}#history .history-match-bottom{border-top:1px solid #e6ece8;margin-top:20px;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}#history .history-score-label{display:block;font-size:11px;color:#687d70;margin-bottom:5px}#history .history-score{font-size:20px;letter-spacing:.4px;display:block}#history .history-match-bottom small{display:block;color:#567063}#history [data-open]{min-height:48px;border-radius:14px;flex-shrink:0}#history .history-continue{background:#176b54;color:white;border-color:#176b54}#history .history-empty{text-align:center;padding:42px 24px;background:white;border:1px dashed #bbcfc1;border-radius:22px}#history .history-empty>span{font-size:36px;color:#6c9856}#history .history-empty h3{margin:12px 0}#history .history-empty p{color:#5d7365;max-width:420px;margin:auto}@media(max-width:540px){#history .history-stats{gap:7px}#history .history-stats>div{padding:14px 10px}#history .history-stats strong{font-size:24px}#history article.history-match{padding:18px 16px}#history .history-pairs{grid-template-columns:1fr;gap:14px}#history .history-match-bottom{align-items:stretch;flex-direction:column}#history .history-toolbar{align-items:stretch;flex-direction:column}#history .history-filters button{flex:1}#dashboard>.heading{gap:16px}#history .history-match-top{align-items:flex-start}#history time{text-align:right}}

#email-code{font-size:30px;letter-spacing:10px;text-align:center;font-weight:700;padding:16px;max-width:100%;box-sizing:border-box}#confirm{max-width:480px;margin:36px auto}#confirm #verify{width:100%;min-height:48px;margin-top:12px}#confirm #request-new-link{width:100%;margin-top:16px}#confirm-help{overflow-wrap:anywhere}

#home-shortcut{margin-top:22px;border-radius:14px;min-height:48px}.shortcut-note{max-width:580px;font-size:13px;color:#567063;line-height:1.5;margin-top:10px}

/* Compact registration reference, with two rows of links on phones. */
#project-credit nav{display:grid;grid-template-columns:auto auto;gap:0 12px;align-items:center}#project-credit nav a{min-height:24px;font-size:10px}#project-credit small{line-height:1.35}
@media(max-width:700px){#project-credit{grid-template-columns:minmax(0,1fr) auto;column-gap:8px}#project-credit nav{gap:0 8px}#project-credit nav a:nth-child(3){grid-column:1/3}#project-credit nav a:nth-child(4){grid-column:1/3}body.system-ui{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}body.playing-view #score{min-height:calc(100dvh - 84px - env(safe-area-inset-bottom))}}
