:root{color:#000;background:#fff;font-family:system-ui,-apple-system,sans-serif}*{box-sizing:border-box}body{height:100vh;margin:0;overflow:hidden}#root{width:100vw;height:100vh}.code-entry-page{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1rem;height:100vh;display:flex}.code-input{letter-spacing:.4em;text-align:center;color:#000;background:#f2f2f7;border:2px solid #c7c7cc;border-radius:10px;width:8ch;padding:.5rem;font-family:ui-monospace,monospace;font-size:clamp(2rem,6vh,3.5rem)}.code-entry-page button{color:#fff;cursor:pointer;background:#539fd7;border:none;border-radius:10px;margin:1.5rem auto 0;padding:.75rem 2rem;font-size:clamp(1rem,2.5vh,1.4rem);display:block}.code-entry-page button:disabled{opacity:.4}.entry-error{color:#ff3b30;font-size:clamp(1rem,2.2vh,1.3rem)}.display-page{flex-direction:column;width:100%;height:100vh;display:flex;position:relative;container-type:size}.display-shell{display:contents}.display-shell.ratio-lock{background:#000;justify-content:center;align-items:center;width:100vw;height:100vh;display:flex}.display-shell.ratio-lock .display-page{width:min(100vw,177.778vh);height:min(100vh,56.25vw)}.aspect-badge{color:#fff;font-variant-numeric:tabular-nums;margin-left:6px;font-size:.7rem;font-weight:600}.aspect-badge-ok{color:#34c759;font-weight:800}.display-page>.ready-view,.display-page>.revoked-view,.display-page>.unavailable-view,.display-page>.center-note,.display-page>.cast-layout,.display-page>.completed-view,.display-page>.summary-view{flex:1;min-height:0}.center-note{color:#8e8e93;justify-content:center;align-items:center;font-size:clamp(1.4rem,3.5cqh,2.2rem);display:flex}.reconnect-overlay{color:#fff;z-index:10;background:#ff3b30;border-radius:10px;padding:.75rem 1.5rem;font-size:clamp(1rem,2.4cqh,1.5rem);position:absolute;top:2cqh;right:2cqw}.brand-bar{background:#4a90d9;flex:0 0 10cqh;align-items:center;height:10cqh;padding:0 1.5cqw;display:flex;overflow:hidden}.brand-center{align-items:center;gap:1.2cqw;min-width:0;height:100%;display:flex}.brand-logo{aspect-ratio:48/38;width:auto;height:62%}.brand-name{color:#fff;letter-spacing:.02em;white-space:nowrap;font-size:clamp(1.1rem,4.6cqh,2.8rem);font-weight:800}.brand-screen-no{color:#fff;letter-spacing:.02em;white-space:nowrap;opacity:.94;font-size:clamp(.8rem,3cqh,1.8rem);font-weight:600}.brand-qr{background:#fff;border-radius:6px;width:auto;height:76%;padding:.4cqh}.brand-clock{color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap;align-items:center;gap:.7cqw;margin-left:auto;padding-left:1.5cqw;font-size:clamp(.9rem,4cqh,2.4rem);font-weight:700;display:flex}.brand-clock-glyph{flex-shrink:0;width:auto;height:.9em}.ready-view{flex-direction:column;justify-content:center;align-items:center;gap:1cqh;display:flex}.screen-name{margin:0;font-size:clamp(1.8rem,5.5cqh,3.2rem);font-weight:600}.ready-label{color:#8e8e93;margin:0;font-size:clamp(1.2rem,3.4cqh,2rem)}.ready-code{letter-spacing:.3em;color:#539fd7;margin:.5cqh 0;font-family:ui-monospace,monospace;font-size:clamp(3rem,11cqh,6.5rem);font-weight:700}.ready-qr{background:#fff;border:1px solid #c7c7cc;border-radius:16px;width:clamp(180px,32cqh,340px);height:clamp(180px,32cqh,340px);padding:12px}.ready-hint{color:#8e8e93;font-size:clamp(1rem,2.6cqh,1.6rem)}.unavailable-view{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:3cqh;padding:0 6cqw;display:flex}.unavailable-logo{aspect-ratio:48/38;width:clamp(120px,26cqh,320px);height:auto}.unavailable-message{color:#8e8e93;margin:0;font-size:clamp(1.2rem,4.5cqh,2.6rem);font-weight:600}.revoked-view{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1.5cqh;padding:0 6cqw;display:flex}.ready-view-media{display:block;position:relative}.ready-idle-media{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.ready-overlay-card{background:#ffffffeb;border-radius:clamp(10px,1.4cqw,20px);flex-direction:column;align-items:center;gap:.5cqh;padding:1.2cqh 1.5cqw;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 4px 14px #00000040}.ready-overlay-card .ready-code{margin:0;font-size:clamp(1.8rem,5.2cqh,3.1rem)}.ready-overlay-card .ready-qr{width:clamp(117px,18.2cqh,208px);height:clamp(117px,18.2cqh,208px);padding:8px}.ready-overlay-card .ready-hint{text-align:center;font-size:clamp(.9rem,2.1cqh,1.3rem)}.display-page{--canvas:#f5f5f8;--surface:#fff;--hairline:#c7c7cc73;--gutter:#e4e4ea;--ink:#000;--ink-2:#8e8e93;--accent:#539fd7;--accent-soft:#a8cce9;--success:#34c759;--gold:#f5c518;--gold-ink:#8a6d00;--silver:#aeb3bc;--bronze:#cd7f32;--track-empty:#f2f2f7;--neutral-fill:#c7c7cc}.cast-layout,.summary-view{background:var(--canvas);color:var(--ink);flex-direction:column;gap:1cqh;padding:1.4cqh 1.6cqw 0;display:flex;position:relative;overflow:hidden}.cast-strip{flex:none;align-items:center;gap:1.6cqw;min-width:0;display:flex}.cast-title{letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:clamp(1rem,4.2cqh,2.6rem);font-weight:700;overflow:hidden}.match-type-badge{background:#f5c5182e;border:1px solid #f5c51880;border-radius:999px;align-items:center;padding:.5cqh 1cqw;display:inline-flex}.match-type-badge-label{letter-spacing:.08em;text-transform:uppercase;color:var(--gold-ink);font-size:1.7cqh;font-weight:800}.game-pills{flex-wrap:wrap;flex:1;justify-content:center;align-items:center;gap:.6cqw;min-width:0;display:flex}.game-pill{color:var(--ink-2);background:var(--surface);border:1px solid var(--hairline);white-space:nowrap;border-radius:999px;align-items:center;gap:.35cqw;padding:.5cqh 1cqw;font-size:1.9cqh;font-weight:600;display:inline-flex}.game-pill-pending{color:var(--ink-2)}.game-pill-active{background:var(--accent);border-color:var(--accent);color:#fff}.game-pill-check{font-weight:800}.game-pill-dot{background:var(--accent);border-radius:50%;width:.9cqh;height:.9cqh}.game-pill-dot-active{background:#fff}.cast-header-clock{white-space:nowrap;gap:1.8cqw;margin-left:auto;display:flex}.cast-header-clock-start,.cast-header-clock-elapsed{flex-direction:column;align-items:flex-end;display:flex}.cast-header-clock-label{letter-spacing:.09em;text-transform:uppercase;color:var(--ink-2);font-size:1.5cqh;font-weight:600}.cast-header-clock-value{font-variant-numeric:tabular-nums;font-size:2.4cqh;font-weight:700}.cast-body{flex:1;gap:1.2cqw;min-height:0;display:flex}.cast-main{flex-direction:column;flex:1;gap:1cqh;min-width:0;display:flex}.courts-card{grid-template-columns:repeat(var(--court-cols,1), 1fr);background:var(--gutter);border:1px solid var(--gutter);border-radius:1.2cqh;flex:1;grid-auto-rows:1fr;gap:1px;min-height:0;display:grid;overflow:hidden}.court-block{background:var(--surface);min-width:0;padding:var(--court-pad-y) var(--court-pad-x);flex-direction:column;justify-content:center;display:flex}.court-slot-vacant{background:var(--gutter)}.courts-tier-xl{--court-pad-y:2.6cqh;--court-pad-x:2.6cqw;--court-name:2.7cqh;--court-tag:2.5cqh;--court-players:5.4cqh;--court-score:11cqh;--court-score-min:8cqw;--court-track:2.2cqh}.courts-tier-lg{--court-pad-y:2cqh;--court-pad-x:2.2cqw;--court-name:2.4cqh;--court-tag:2.2cqh;--court-players:4.3cqh;--court-score:8cqh;--court-score-min:6cqw;--court-track:1.8cqh}.courts-tier-md{--court-pad-y:1.4cqh;--court-pad-x:1.6cqw;--court-name:2.2cqh;--court-tag:2cqh;--court-players:3.5cqh;--court-score:5.6cqh;--court-score-min:4.4cqw;--court-track:1.4cqh}.courts-tier-sm{--court-pad-y:.9cqh;--court-pad-x:1.1cqw;--court-name:1.9cqh;--court-tag:1.75cqh;--court-players:2.9cqh;--court-score:4cqh;--court-score-min:3.4cqw;--court-track:1cqh}.court-head{justify-content:space-between;align-items:center;gap:.6cqw;min-width:0;margin-bottom:.3cqh;display:flex}.court-name{font-size:var(--court-name);letter-spacing:.07em;color:var(--ink-2);white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.court-position-label{color:var(--accent);font-weight:700}.court-tag{font-size:var(--court-tag);letter-spacing:.09em;white-space:nowrap;font-weight:800}.court-tag-final{color:var(--ink-2)}.court-tag-matchpoint{color:var(--gold-ink)}.court-team{align-items:center;gap:1.2cqw;min-width:0;padding:.3cqh 0;display:flex}.court-team-main{flex:1;min-width:0}.court-players{font-size:var(--court-players);color:var(--ink);white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.court-players.tone-trailing{color:var(--ink-2);font-weight:500}.court-score{font-size:var(--court-score);font-variant-numeric:tabular-nums;text-align:right;min-width:var(--court-score-min);color:var(--ink);font-weight:600;line-height:1}.court-score.tone-won{color:var(--success);font-weight:800}.court-score.tone-leading,.court-score.tone-matchpoint{font-weight:800}.court-score.tone-trailing{color:var(--ink-2)}.point-track{height:var(--court-track);gap:2px;margin-top:.5cqh;display:flex}.point-block{background:var(--track-empty);border-radius:1.5px;flex:1}.point-block-filled.tone-won{background:var(--success)}.point-block-filled.tone-matchpoint{background:var(--gold)}.point-block-filled.tone-leading{background:var(--accent)}.point-block-filled.tone-trailing,.point-block-filled.tone-neutral{background:var(--neutral-fill)}.point-track-bar{background:var(--track-empty);border-radius:999px;display:block;position:relative;overflow:hidden}.point-bar-fill{border-radius:999px;position:absolute;top:0;bottom:0;left:0}.point-bar-fill.tone-won{background:var(--success)}.point-bar-fill.tone-matchpoint{background:var(--gold)}.point-bar-fill.tone-leading{background:var(--accent)}.point-bar-fill.tone-trailing,.point-bar-fill.tone-neutral{background:var(--neutral-fill)}.point-bar-tick{background:var(--ink-2);width:2px;position:absolute;top:0;bottom:0;right:0}.standings-rail{background:var(--surface);border:1px solid var(--hairline);border-radius:1.2cqh;flex-direction:column;flex:0 0 26cqw;display:flex;overflow:hidden}.standings-head{letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);padding:1.2cqh 1.1cqw .6cqh;font-size:1.7cqh;font-weight:600}.standings-row{border-top:1px solid var(--hairline);grid-template-columns:3.2cqh 1fr 7cqw;align-items:center;gap:.7cqw;min-width:0;padding:.5cqh 1.1cqw .65cqh;display:grid}.standings-row:first-of-type{border-top:none}.standings-medal{color:#fff;font-variant-numeric:tabular-nums;border-radius:50%;justify-content:center;align-items:center;width:3.2cqh;height:3.2cqh;font-size:1.8cqh;font-weight:800;display:flex}.standings-row-place-1 .standings-medal{background:var(--gold)}.standings-row-place-2 .standings-medal{background:var(--silver)}.standings-row-place-3 .standings-medal{background:var(--bronze)}.standings-rank{color:var(--ink-2);text-align:center;font-variant-numeric:tabular-nums;font-size:2cqh;font-weight:600}.standings-main{min-width:0}.standings-name{white-space:nowrap;text-overflow:ellipsis;font-size:2.1cqh;font-weight:500;overflow:hidden}.standings-row-place-1 .standings-name,.standings-row-place-2 .standings-name,.standings-row-place-3 .standings-name{font-weight:700}.standings-bar{background:var(--track-empty);border-radius:999px;height:.85cqh;margin-top:.5cqh;position:relative;overflow:hidden}.standings-bar-fill{background:var(--accent-soft);border-radius:999px;position:absolute;top:0;bottom:0;left:0}.standings-row-place-1 .standings-bar-fill{background:var(--gold)}.standings-row-place-2 .standings-bar-fill{background:var(--silver)}.standings-row-place-3 .standings-bar-fill{background:var(--bronze)}.standings-bar-tick{background:var(--ink-2);opacity:.5;width:2px;position:absolute;top:0;bottom:0;right:0}.standings-num{text-align:right}.standings-points{font-variant-numeric:tabular-nums;font-size:2.5cqh;font-weight:600;line-height:1.05}.standings-row-place-1 .standings-points,.standings-row-place-2 .standings-points,.standings-row-place-3 .standings-points{font-weight:800}.standings-stat{color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:1.4cqh;font-weight:500}.standings-rotation{border-top:1px solid var(--hairline);letter-spacing:.03em;color:var(--ink-2);text-align:center;margin-top:auto;padding:.9cqh 1.1cqw;font-size:1.45cqh}.standings-empty{color:var(--ink-2);text-align:center;padding:2cqh 1.1cqw;font-size:2cqh}.standings-band{background:var(--surface);border:1px solid var(--hairline);border-radius:1.2cqh;flex:none;overflow:hidden}.band-grid{grid-template-columns:repeat(var(--band-cols,4), 1fr);background:var(--hairline);border-top:1px solid var(--hairline);gap:1px;display:grid}.band-cell{background:var(--surface);align-items:center;gap:.6cqw;min-width:0;padding:.7cqh .8cqw;display:flex}.band-rank{color:#fff;font-variant-numeric:tabular-nums;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:2.6cqh;height:2.6cqh;font-size:1.5cqh;font-weight:800;display:flex}.band-rank-place-1{background:var(--gold)}.band-rank-place-2{background:var(--silver)}.band-rank-place-3{background:var(--bronze)}.band-rank-plain{color:var(--ink-2);background:0 0;font-size:1.7cqh;font-weight:700}.band-name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:1.8cqh;font-weight:600;overflow:hidden}.band-points{font-variant-numeric:tabular-nums;font-size:2cqh;font-weight:800}.band-wins{color:var(--ink-2);white-space:nowrap;font-size:1.4cqh;font-weight:500}.cast-foot-sep{opacity:.55}.cast-foot{color:var(--ink-2);flex:none;justify-content:center;gap:.8cqw;padding:.6cqh 0 .9cqh;font-size:1.8cqh;display:flex}.player-scores{flex-direction:column;gap:1cqh;margin:0;padding:0;list-style:none;display:flex}.player-scores li{background:var(--surface);border:1px solid var(--hairline);border-radius:1.2cqh;justify-content:space-between;padding:1.4cqh 1.6cqw;font-size:3cqh;display:flex}.player-score{font-variant-numeric:tabular-nums;font-weight:800}.summary-strip{flex:none}.summary-tag{letter-spacing:.09em;color:var(--gold-ink);white-space:nowrap;background:#f5c51829;border:1px solid #f5c51873;border-radius:999px;margin-left:auto;padding:.5cqh 1.1cqw;font-size:1.7cqh;font-weight:800}.podium-stage{border-bottom:2px solid var(--hairline);justify-content:center;align-items:flex-end;gap:2.4cqw;padding-top:4cqh;display:flex}.podium-col{flex-direction:column;align-items:center;gap:.7cqh;width:22cqw;min-width:0;display:flex;position:relative}.podium-crown{width:7cqh;height:auto}.podium-medal{color:#fff;font-variant-numeric:tabular-nums;border-radius:50%;justify-content:center;align-items:center;width:5.8cqh;height:5.8cqh;font-size:2.6cqh;font-weight:800;display:flex}.podium-gold .podium-medal{background:var(--gold);width:7cqh;height:7cqh;font-size:3.2cqh}.podium-silver .podium-medal{background:var(--silver)}.podium-bronze .podium-medal{background:var(--bronze)}.podium-name{text-align:center;font-size:2.9cqh;font-weight:800;line-height:1.15}.podium-gold .podium-name{font-size:3.6cqh}.podium-stat{letter-spacing:.03em;color:var(--ink-2);font-variant-numeric:tabular-nums;font-size:1.9cqh;font-weight:600}.podium-step{font-variant-numeric:tabular-nums;border-radius:1.6cqh 1.6cqh 0 0;justify-content:center;align-items:flex-start;width:100%;margin-top:.6cqh;padding-top:1.4cqh;font-weight:800;display:flex}.podium-gold .podium-step{height:17cqh;color:var(--gold-ink);background:#f5c51833;font-size:5.4cqh}.podium-silver .podium-step{color:#6e7681;background:#aeb3bc42;height:11.6cqh;font-size:4.3cqh}.podium-bronze .podium-step{color:#8a5a2b;background:#cd7f322e;height:8.4cqh;font-size:4.3cqh}.podium-stage-compact{padding-top:2.4cqh}.podium-stage-compact .podium-gold .podium-step{height:12cqh;font-size:4.3cqh}.podium-stage-compact .podium-silver .podium-step{height:8cqh;font-size:3.4cqh}.podium-stage-compact .podium-bronze .podium-step{height:6cqh;font-size:3.4cqh}.podium-stage-compact .podium-name{font-size:2.5cqh}.podium-stage-compact .podium-gold .podium-name{font-size:3cqh}.podium-stage-compact .podium-crown{width:5cqh}.podium-stage-compact .podium-medal{width:4.8cqh;height:4.8cqh;font-size:2.1cqh}.podium-stage-compact .podium-gold .podium-medal{width:5.8cqh;height:5.8cqh;font-size:2.6cqh}.podium-epilogue{text-align:center;color:var(--ink-2);margin:0;padding:2.6cqh 0;font-size:2.1cqh;font-weight:500}.summary-field{flex:1;min-height:0;padding:1.8cqh 0 1cqh;overflow:hidden}.confetti{pointer-events:none;z-index:1;position:absolute;inset:0;overflow:hidden}.confetti-piece{opacity:.9;border-radius:2px;width:.7cqw;height:1.4cqh;animation-name:confetti-fall;animation-timing-function:ease-in;animation-iteration-count:1;animation-fill-mode:forwards;position:absolute;top:-5%}@keyframes confetti-fall{0%{opacity:.95;transform:translateY(0)rotate(0)}to{opacity:0;transform:translateY(105cqh)rotate(540deg)}}.summary-view>:not(.confetti){z-index:2;position:relative}.dev-bar{z-index:20;background:#1c1c1ed9;border-radius:10px;flex-wrap:wrap;align-items:center;gap:4px;max-width:60cqw;padding:4px 10px;display:flex;position:absolute;bottom:10.8cqh;left:.8cqw}.dev-bar-label{color:#f5c518;letter-spacing:.08em;text-transform:uppercase;margin-right:4px;font-size:.7rem;font-weight:700}.dev-bar button{color:#fff;cursor:pointer;background:0 0;border:1px solid #ffffff59;border-radius:6px;padding:2px 8px;font-size:.75rem}.dev-bar button.dev-on{background:#539fd7;border-color:#539fd7}.theme-dark{color:#f2f2f7}.theme-dark.display-page{--canvas:#15181c;--surface:#1e2227;--hairline:#ffffff1a;--gutter:#0d0f12;--ink:#e9ecef;--ink-2:#98a1ab;--accent:#6fb0df;--accent-soft:#3d6c92;--track-empty:#2b3138;--neutral-fill:#4a525b}.theme-dark .court-tag-matchpoint,.theme-dark .summary-tag,.theme-dark .match-type-badge-label{color:var(--gold)}.theme-dark .game-pill-pending{color:var(--ink-2)}.game-pill-done{color:#5fd07f;background:#34c75933;border-color:#34c75980}.theme-dark .podium-gold .podium-step{color:var(--gold)}.theme-dark .podium-silver .podium-step{color:#c3c9d2}.theme-dark .podium-bronze .podium-step{color:#e0a26a}.dev-fab{z-index:20;color:#fff;cursor:pointer;opacity:.75;background:#1c1c1eb3;border:none;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;font-size:.85rem;line-height:1;display:flex;position:absolute;bottom:10.8cqh;left:.8cqw}.dev-fab:hover{opacity:1}.dev-bar .dev-collapse{color:#8e8e93;background:0 0;border:none;padding:2px 6px;font-size:1rem}
