.serve-game{max-width:960px;margin-bottom:56px;border:1px solid var(--line);border-radius:12px;background:white;padding:28px}
.serve-game h2{font-size:clamp(30px,4vw,44px);margin-bottom:12px}
.serve-game .game-intro{font-size:17px;max-width:650px;color:var(--muted)}
.game-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:25px;font-size:15px}
.game-net-setting{display:flex;align-items:center;gap:12px}.game-net-setting meter{width:85px;accent-color:#2169ac}
.serve-scene{width:100%;height:auto;display:block;margin-block:16px;background:#f3f7fa;border-radius:8px}
.serve-scene text{font-family:inherit;font-size:19px;fill:var(--muted)}
.game-controls{display:flex;gap:12px;flex-wrap:wrap}.game-controls button{min-height:48px;padding:10px 20px;border:1px solid var(--teal);border-radius:5px;background:white;color:var(--teal);cursor:pointer;font-size:16px;font-weight:600}
.game-controls #serve-button{background:var(--teal);color:white;min-width:135px}.game-controls button:hover{box-shadow:0 0 0 2px #145b5825}.game-controls button:disabled{opacity:.6;cursor:wait}
.game-controls #serve-reset{border-color:var(--line);color:var(--muted)}
#serve-result{min-height:30px;font-size:19px;font-weight:600;margin-top:20px}#serve-score{font-size:15px;color:var(--muted);margin-top:4px}
#serve-takeaway{margin-top:18px;font-size:17px;min-height:56px;max-width:700px}.game-disclaimer{font-size:14px;color:var(--muted);border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
.game-history{margin-top:14px;font-size:15px}.game-history summary{cursor:pointer}.game-history ol{padding-left:0;list-style:none}.game-history li{padding-block:4px}
@media(max-width:720px){.serve-game{padding:20px 14px}.game-toolbar{font-size:14px}.game-net-setting{gap:8px}.game-controls{gap:8px}.game-controls button{padding:10px 13px}.serve-scene{min-height:190px}#serve-takeaway{min-height:85px}}

.game-scoring-rule{font-size:15px;color:var(--muted);margin-top:10px}
.serve-scene .player-number{font-size:17px;font-weight:800;text-anchor:middle;dominant-baseline:central;fill:#173735;paint-order:stroke;stroke:#ffffff;stroke-width:1px;stroke-linejoin:round;pointer-events:none}
.player-highlight{fill:none;stroke:var(--teal);stroke-width:3;opacity:0}
.scoring-player.nearest-player .player-highlight{opacity:1}


.serve-scene #serve-celebration{font-size:23px;font-weight:700;fill:#145b58}


.game-set-status{margin-top:18px;font-weight:700;color:var(--teal)}
.game-controls button:disabled{cursor:default}

.serve-scene .court-scoreboard text{font-weight:600;fill:var(--ink)}
.serve-scene #points-total{font-size:34px;font-weight:800;font-variant-numeric:tabular-nums}

.court-container{position:relative;margin-block:16px}
.court-container .serve-scene{margin:0}
.court-team-name{position:absolute;top:3%;width:27%;height:8%;transform:translateX(-50%);z-index:1}
.home-team-name{left:32.222%}.guest-team-name{left:72.222%}
.court-team-name input{display:block;box-sizing:border-box;width:100%;height:100%;min-width:0;padding:0 4px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--ink);font-family:inherit;font-size:clamp(11px,2vw,19px);font-weight:600;text-align:center;cursor:text}
.court-team-name input:hover{border-bottom-color:var(--muted)}
.court-team-name input:focus{outline:2px solid var(--teal);outline-offset:1px;background:white}

.serve-scene #bonus-label{font-size:18px;font-weight:800;fill:#142c39;paint-order:stroke;stroke:#fffaf0;stroke-width:4px;stroke-linejoin:round}
