:root{color-scheme:dark;font:16px/1.5 system-ui,sans-serif;color:#eef7ff;background:#0b1625;--cyan: #00aaff;--muted: #a8bbce;--line: #32485f;--surface: #112136}*{box-sizing:border-box}body{margin:0}main{width:min(1060px,100% - 40px);margin:0 auto;padding:clamp(30px,7vw,76px) 0 48px}.rally{width:min(100%,312px);margin:20px auto 0}.rally>svg{display:block;width:100%}.rally-table{fill:#102136;stroke:#32485f;stroke-linejoin:round}.rally-net{stroke:#56778e;stroke-width:2;stroke-dasharray:2 3}.rally-paddle{transform-origin:0 0}.rally-paddle path{stroke:#56778e;stroke-width:5;stroke-linecap:round}.rally-paddle ellipse{fill:#183851;stroke:#62cfff;stroke-width:1.5}.rally-ball{fill:var(--cyan)}.rally-shadow{fill:#030b15;opacity:.45}.dashboard{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.panel{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:clamp(16px,3vw,26px)}h2{font-size:1.35rem;margin:0;letter-spacing:-.02em}.panel-heading{margin-bottom:16px}.scoreboard-tabs{display:flex;gap:8px;padding-bottom:8px;margin-bottom:12px;border-bottom:1px solid var(--line)}.scoreboard-tabs button{min-height:44px;padding:6px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-weight:700}.scoreboard-tabs button:hover,.scoreboard-tabs button[aria-selected=true]{color:#86dcff}.scoreboard-tabs button[aria-selected=true]{background:#183851;border-color:#496078}table{border-collapse:collapse;width:100%;table-layout:fixed;font-variant-numeric:tabular-nums}thead{color:var(--muted);font-size:.82rem}thead th:first-child{width:15%}thead th:nth-child(3),thead th:nth-child(4){width:19%}th,td{text-align:left;padding:10px 4px;border-bottom:1px solid var(--line)}td:nth-child(n+3),thead th:nth-child(n+3){text-align:right}tbody th{overflow-wrap:anywhere}tbody td:nth-child(3){color:#86dcff;font-weight:700}.empty{color:var(--muted);padding:16px 0}.entry{border:0;padding:0;margin:0;min-width:0;display:grid;gap:14px}.player-field{position:relative;min-width:0}.player-field label{display:block;margin-bottom:5px;padding:0;font-size:.88rem;font-weight:650}button,input{font:inherit}.player-field input{width:100%;min-height:44px;padding:8px 12px;border:1px solid #496078;border-radius:8px;background:#0b1625;color:inherit}.player-field input::placeholder{color:var(--muted)}.player-field ul{position:absolute;z-index:3;inset:calc(100% + 4px) 0 auto;padding:4px;margin:0;border:1px solid #496078;border-radius:8px;background:#192c41;list-style:none;box-shadow:0 8px 20px #0005}.player-field li{padding:9px 10px;cursor:pointer;border-radius:5px;overflow-wrap:anywhere}.player-field li:is(:hover,[aria-selected=true]){background:#294c67}.match-player{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.winner-choice{position:relative;display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #496078;border-radius:8px;color:var(--muted)}.winner-choice:has(:checked){border-color:var(--cyan);background:#183851;color:#86dcff}.winner-choice:has(:focus-visible){outline:2px solid #7bd9ff;outline-offset:3px}.winner-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.winner-choice svg{width:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.winner-choice:has(:checked) svg path:first-child{fill:currentColor}.game-history{list-style:none;padding:0;margin:0}.game-history li{display:grid;grid-template-columns:minmax(9rem,auto) 1fr;align-items:baseline;gap:6px 16px;padding:10px 0;border-top:1px solid var(--line)}.game-history time,.game-versus,.elo-even{color:var(--muted)}.game-history time{font-size:.85rem;white-space:nowrap}.game-result{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 9px;min-width:0}.game-side{min-width:0;overflow-wrap:anywhere}.elo-gain{color:#7de8a6}.elo-loss{color:#ff9ca0}.elo-gain,.elo-loss,.elo-even{font-variant-numeric:tabular-nums;white-space:nowrap}.history-trophy{display:inline-block;width:1em;margin-inline-start:.3em;color:#86dcff;vertical-align:-.15em}.history-trophy svg{width:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}@media(max-width:550px){.game-history li{grid-template-columns:minmax(0,1fr)}}button{cursor:pointer}.save{border:0;border-radius:8px;min-height:44px;color:#061625;background:var(--cyan);font-weight:750}.save:hover:not(:disabled){background:#50c6ff}.save:disabled{opacity:.6;cursor:default}:focus-visible{outline:2px solid #7bd9ff;outline-offset:3px}.notice:not(:empty){margin-top:12px;color:#a9e9ff;overflow-wrap:anywhere}.footnote,.refresh{color:var(--muted);font-size:.8rem;margin:14px 0 0}.error,.notice.error{color:#ffb3ae;margin-bottom:0}.refresh button{color:#a9e9ff;text-decoration:underline;background:transparent;border:none;padding:4px}@media(max-width:690px){.rally{display:none}}@media(max-width:370px){main{width:calc(100% - 24px)}}
