:root{--steel:#182029;--steel-2:#212b35;--steel-3:#2c3843;--line:#3a4753;--text:#edf1f4;--muted:#93a1ad;--red:#ff3b3b;--green:#1fd36a;--amber:#f2b33d;--yellow:#f5d90a;--danger:#ff8a8a;--chip:#0000002e;--chip-hover:#00000052;--shadow:#00000073;--scrim:#080b0ecc;--error-bg:#3d1f22;--error-text:#ffd0d0;--error-line:#7a3338;--agreed:#17452a;--failed:#5a2323;--font-board:"DIN Condensed", "DIN Alternate", "Bahnschrift SemiCondensed", Bahnschrift, "Roboto Condensed", "Arial Narrow", sans-serif;--font-ui:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=light]{--steel:#eef1f4;--steel-2:#fff;--steel-3:#e1e6eb;--line:#c6cfd8;--text:#182029;--muted:#5d6a76;--red:#e8262b;--green:#11b05a;--amber:#b77a12;--yellow:#f2cf00;--danger:#c4262b;--chip:#18202912;--chip-hover:#18202924;--shadow:#1820292e;--scrim:#18202973;--error-bg:#fde8e8;--error-text:#7f1d1d;--error-line:#f1b5b5;--agreed:#d3f2df;--failed:#f8d7d7;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}body{background:var(--steel);color:var(--text);font:15px/1.45 var(--font-ui);-webkit-tap-highlight-color:transparent;margin:0}h2,p{margin:0}:focus-visible{outline:2px solid var(--text);outline-offset:2px}.hub{flex-direction:column;gap:12px;max-width:1100px;min-height:100dvh;margin:0 auto;padding:10px clamp(10px,2.5vw,24px) 20px;display:flex}.bout-bar{grid-template-columns:1fr minmax(0,420px) 1fr;align-items:center;gap:12px;margin-top:auto;display:grid}.bar-side{align-items:center;gap:10px;display:flex}.bar-end{justify-content:flex-end;position:relative}.bout-bar .btn-primary{grid-column:2;width:100%}.bout-bar>.bar-end{grid-column:3}.net{background:var(--green);border-radius:999px;place-items:center;min-width:10px;height:10px;display:inline-grid}.net.is-off{background:var(--amber)}.net:has(.net-count){height:20px;padding:0 7px}.net-count{font:700 12px/1 var(--font-ui);color:var(--steel)}.icon-btn{border:1px solid var(--line);width:48px;height:48px;color:var(--muted);cursor:pointer;background:0 0;border-radius:50%;place-items:center;display:inline-grid}.icon-btn:hover,.icon-btn.is-on{color:var(--text)}.hub-menu{z-index:50;background:var(--steel-2);border:1px solid var(--line);width:min(340px,100vw - 24px);box-shadow:0 16px 40px var(--shadow);border-radius:12px;flex-direction:column;gap:4px;padding:12px;font-size:14px;display:flex;position:absolute;bottom:calc(100% + 8px);right:0}.menu-club{color:var(--muted);padding:4px}.menu-auth{border-bottom:1px solid var(--line);margin-bottom:4px;padding:4px 4px 10px}.menu-auth form{flex-wrap:wrap}.menu-item{text-align:left;font:inherit;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:10px 8px}.menu-item:hover{background:var(--steel-3)}.menu-item.is-danger{color:var(--danger)}.menu-toggle{align-items:center;gap:10px;display:flex}.menu-toggle .switch{background:var(--steel-3);border:1px solid var(--line);border-radius:999px;width:36px;height:20px;margin-left:auto;position:relative}.menu-toggle .switch:after{content:"";background:var(--muted);border-radius:50%;width:14px;height:14px;transition:transform .12s;position:absolute;top:2px;left:2px}.menu-toggle[aria-checked=true] .switch{background:var(--text);border-color:var(--text)}.menu-toggle[aria-checked=true] .switch:after{background:var(--steel);transform:translate(16px)}.link-btn{color:var(--muted);font:inherit;text-underline-offset:2px;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.auth-input{flex:140px;min-width:0;font-size:14px}select,input:not([type=range]){font:inherit;color:var(--text);background:var(--steel-3);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:9px 10px}.field{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;display:flex}.banner{background:var(--steel-2);border:1px solid var(--line);border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:8px 8px 8px 14px;display:flex}.is-warn{color:var(--amber)}.btn{font:600 15px/1 var(--font-ui);color:var(--text);background:var(--steel-3);border:1px solid var(--line);cursor:pointer;border-radius:10px;min-height:44px;padding:10px 14px}.btn:disabled{opacity:.35;cursor:default}.btn-quiet{color:var(--muted);background:0 0}.btn-primary{background:var(--text);color:var(--steel);border-color:var(--text);font:700 22px/1 var(--font-board);letter-spacing:.02em;min-height:60px}.btn-end{color:var(--text);background:0 0}.key{min-width:48px;min-height:48px;font:700 22px/1 var(--font-board);color:var(--text);background:var(--steel-3);border:1px solid var(--line);cursor:pointer;border-radius:10px;place-items:center;padding:0 10px;display:inline-grid}.key:active:not(:disabled){transform:translateY(1px)}.key:disabled{opacity:.35;cursor:default}.key-sm{min-width:34px;min-height:34px;font-size:18px}.key-text{font:600 14px/1 var(--font-ui)}.key-card{padding:0}.key-card:before{content:"";border-radius:2px;width:16px;height:22px}.key-yellow:before{background:var(--yellow)}.key-red:before{background:var(--red)}.board{grid-template-columns:1fr minmax(200px,260px) 1fr;grid-template-areas:"red clock green";align-items:start;gap:clamp(10px,2vw,20px);display:grid}.side-red{--lamp:var(--red);grid-area:red}.side-green{--lamp:var(--green);grid-area:green}.clock{grid-area:clock}.side{flex-direction:column;align-items:stretch;gap:10px;min-width:0;display:flex}.lamp{aspect-ratio:4/3;background:var(--steel-2);box-shadow:inset 0 -6px 0 color-mix(in srgb, var(--lamp) 50%, transparent);border-radius:18px;transition:background-color 60ms linear,box-shadow 60ms linear;position:relative}.lamp.is-lit{background:var(--lamp);box-shadow:0 0 60px color-mix(in srgb, var(--lamp) 55%, transparent)}.lamp-off{outline:1.5px dashed var(--line);outline-offset:-1.5px}.lamp-link{background:var(--chip);min-width:36px;height:36px;color:var(--muted);cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;gap:2px;padding:0 8px;transition:background-color .12s,color .12s;display:inline-flex;position:absolute;top:8px}.lamp-link:hover:not(:disabled){background:var(--chip-hover);color:var(--text)}.side-red .lamp-link{left:8px}.side-green .lamp-link{right:8px}.lamp-link:disabled{cursor:default}.lamp-paired .lamp-link{color:var(--lamp)}.lamp-paired.is-lit .lamp-link{color:#0000008c}.lamp-searching .lamp-link{color:var(--amber);animation:1s steps(2,end) infinite blink}.lamp-battery{color:inherit;display:inline-flex}.lamp-battery.is-low,.lamp-battery.is-critical{color:var(--amber)}.lamp-battery.is-critical{animation:1s steps(2,end) infinite blink}.lamp-paired.is-lit .lamp-battery{color:inherit}.score{font:700 clamp(84px, 15vw, 156px)/.85 var(--font-board);font-variant-numeric:tabular-nums;text-align:center;padding-top:6px}.score.is-idle{color:var(--steel-3)}.fencer-name{text-align:center;min-height:1.4em;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.fencer-pick{text-align:center;width:100%}.side-flags{justify-content:center;align-items:center;gap:6px;min-height:22px;display:flex}.card{border-radius:2px;width:16px;height:22px;display:inline-block}.card-yellow{background:var(--yellow)}.card-red{background:var(--red)}.priority{width:22px;height:22px;font:700 13px/1 var(--font-ui);background:var(--text);color:var(--steel);border-radius:50%;place-items:center;display:inline-grid}.side-keys{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.side-keys .key{min-width:0}.clock{text-align:center;flex-direction:column;align-items:center;gap:10px;display:flex}.round{align-items:center;gap:10px;min-height:34px;display:flex}.round-dots{align-items:center;gap:6px;display:inline-flex}.round-dots span{background:var(--steel-3);border-radius:50%;width:8px;height:8px}.round-dots span.is-on{background:var(--text)}.round-dots b{font:700 16px/1 var(--font-board)}.timer{font:700 clamp(56px, 9vw, 88px)/1 var(--font-board);font-variant-numeric:tabular-nums;color:var(--muted)}.state-playing .timer{color:var(--text)}.timer.is-zero{color:var(--red)}.key-clock{width:100%;min-height:60px}.key-clock.is-running{background:0 0}.clock-keys{grid-template-columns:repeat(4,1fr);gap:6px;width:100%;display:grid}.clock-keys .key{min-width:0;color:var(--muted)}.annul{grid-template-columns:repeat(4,1fr);gap:6px;width:100%;display:grid}.annul .key{min-width:0}.bout-settings{flex-direction:column;gap:6px;width:100%;padding-top:6px;display:flex}.segmented{border:1px solid var(--line);border-radius:10px;grid-auto-columns:1fr;grid-auto-flow:column;gap:3px;padding:3px;display:grid}.segmented button{min-height:38px;font:600 14px/1 var(--font-ui);color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px}.segmented button.is-on{background:var(--steel-3);color:var(--text)}.segmented button:disabled{opacity:.3;cursor:default}.bout-hint{color:var(--muted);text-align:center;margin-top:auto;font-size:14px}.bout-hint+.bout-bar{margin-top:0}@media (width<=760px){.board{grid-template-columns:1fr 1fr;grid-template-areas:"clock clock""red green"}.clock{gap:8px}.bout-settings{flex-direction:row}.bout-settings .segmented{flex:1}.lamp{aspect-ratio:1}.side-keys{grid-template-columns:repeat(2,1fr)}.bout-bar{grid-template-columns:auto 1fr auto;gap:8px}.bar-side{gap:6px}.icon-btn{width:44px;height:44px}}.notification{z-index:900;background:var(--text);width:min(560px,100% - 24px);color:var(--steel);box-shadow:0 12px 32px var(--shadow);border-radius:12px;padding:12px 14px;position:fixed;top:12px;left:50%;transform:translate(-50%)}.notification-error{background:var(--error-bg);color:var(--error-text);border:1px solid var(--error-line);justify-content:space-between;align-items:center;gap:12px;display:flex}.notification-dismiss{color:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:6px;flex:none;width:32px;height:32px}.agree-overlay{z-index:1000;background:var(--scrim);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.agree-card{background:var(--steel-2);border:1px solid var(--line);text-align:center;border-radius:14px;flex-direction:column;gap:14px;width:100%;max-width:520px;padding:24px;display:flex}.agree-card h2{font:700 26px/1.1 var(--font-board)}.agree-score{justify-content:space-between;align-items:center;gap:12px;font-size:1.1em;display:flex}.agree-score strong{font:700 52px/1 var(--font-board);font-variant-numeric:tabular-nums}.agree-sides{flex-direction:column;gap:8px;display:flex}.agree-side{background:var(--steel-3);border-radius:8px;padding:10px}.agree-side.agreed{background:var(--agreed)}.agree-side.failed{background:var(--failed)}.agree-error{color:var(--danger)}.agree-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}@keyframes blink{50%{opacity:.25}}@media (prefers-reduced-motion:reduce){.lamp{transition:none}.lamp-searching .lamp-link,.lamp-battery.is-critical{animation:none}.key:active:not(:disabled){transform:none}}
