@font-face { font-family: Club; src: url('./fonts/DejaVuSans.woff2') format('woff2'), url('./fonts/DejaVuSans.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: block; }
@font-face { font-family: Club; src: url('./fonts/DejaVuSans-Bold.woff2') format('woff2'), url('./fonts/DejaVuSans-Bold.ttf') format('truetype'); font-style: normal; font-weight: 700; font-display: block; }
/* Tournament group-table FINAL STANDINGS typography; full original font. */
@font-face { font-family: ClubCaption; src: url('./fonts/URWGothic-Demi.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: block; }
/* Digits use one normalized tabular design. Lettering remains unchanged. */
@font-face { font-family: Club; src: url('./fonts/MagicScoreDigits-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: block; unicode-range: U+0030-0039; }
@font-face { font-family: Club; src: url('./fonts/MagicScoreDigits-Bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: block; unicode-range: U+0030-0039; }
@font-face { font-family: ClubCaption; src: url('./fonts/MagicScoreDigits-Bold.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: block; unicode-range: U+0030-0039; }
/* Native output pixels: 1rem at FHD, 2rem at UHD. No scaled bitmap layer. */
:root { font-size:1px; color-scheme:dark; --cream:#f3f0e9; --green:#10613f; --gold:#c8b27c; --muted:#a9b4ad; --line:rgba(221,232,224,.12); --black:rgba(6,9,8,.99); }
* { box-sizing:border-box; }
html,body { width:100%;height:100%;margin:0;overflow:hidden;background:transparent; }
body { font-family:Club,Arial,sans-serif;color:var(--cream);font-size:16rem;font-variant-numeric:tabular-nums; }
body.desk { background:radial-gradient(ellipse at 50% 30%,#12382a 0,#07150f 42%,#030604 76%); }
[hidden] { display:none!important; }
.overlay { position:absolute;width:1184rem;left:50%;bottom:52rem;transform:translateX(-50%); }
/* Reserve the full second 28px timed row, including its one-pixel bottom margin. */
.mode-timed .overlay { bottom:57rem; }
.desk .overlay { bottom:50%;transform:translate(-50%,50%); }
.board { position:relative;--lower-plate-height:28rem; }
.scoreline { display:grid;grid-template-columns:minmax(0,1fr) 144rem minmax(0,1fr);grid-template-rows:48rem;height:48rem;background:var(--black);position:relative;z-index:2; }
.scoreline::after { content:none; }
.player { min-width:0;min-height:0;position:relative;display:grid;grid-template-columns:minmax(0,1fr) 104rem;align-items:stretch; }
.player.right { grid-template-columns:104rem minmax(0,1fr); }
.player::before { position:absolute;content:"";top:50%;left:10rem;transform:translateY(-50%);width:0;height:0;border-top:7rem solid transparent;border-bottom:7rem solid transparent;border-left:11rem solid transparent;z-index:1; }
.player.right::before { left:auto;right:10rem;border-left:0;border-right:11rem solid transparent; }
.player.active::before { border-left-color:#2c9665; }
.player.right.active::before { border-right-color:#2c9665; }
.player.active::before { left:9rem;width:18rem;height:18rem;border:0;background:#83ba9c;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 3 L11 9 L5 15' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 3 L11 9 L5 15' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;transform:translateY(-50%); }
.player.right.active::before { left:auto;right:9rem;transform:translateY(-50%) scaleX(-1); }
/* Shape is a bounded URL presentation option; colour remains the saved role. */
body[data-pointer="triangle"] .player.active::before { -webkit-mask:none;mask:none;clip-path:polygon(25% 12%,88% 50%,25% 88%); }
body[data-pointer="dot"] .player.active::before { -webkit-mask:none;mask:none;clip-path:circle(29% at 50% 50%); }
body[data-pointer="bar"] .player.active::before { -webkit-mask:none;mask:none;clip-path:inset(10% 36% round 2rem); }
body[data-pointer="diamond"] .player.active::before { -webkit-mask:none;mask:none;clip-path:polygon(50% 13%,80% 50%,50% 87%,20% 50%); }
.name-zone { position:relative;min-width:0;min-height:0;padding:0 56rem;display:flex;align-items:center;justify-content:center;overflow:hidden; }
.name-zone::after { content:'';position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(110deg,transparent 5%,rgb(var(--event-tint) / .07) 27%,rgb(var(--event-tint) / .23) 46%,rgb(var(--event-tint) / .06) 63%,transparent 83%);background-size:180% 100%; }
.name-zone.event-foul::after { --event-tint:197 65 73;animation:name-foul var(--name-effect-duration,2000ms) linear both;animation-delay:var(--event-delay,0ms); }
.name-zone.event-highest::after,.name-zone.event-frame::after,.name-zone.event-frame-ball::after { --event-tint:220 198 147;animation:name-event var(--name-effect-duration,2000ms) cubic-bezier(.22,.61,.36,1) both;animation-delay:var(--event-delay,0ms); }
.name-zone.event-frame::after { --event-tint:100 190 143;animation-name:name-win;animation-duration:var(--name-effect-duration,2000ms);animation-timing-function:linear; }
@keyframes name-foul { 0%{opacity:0;background-position:95% 50%} 12%{opacity:.78} 80%{opacity:.65} 100%{opacity:0;background-position:5% 50%} }
@keyframes name-win { 0%{opacity:0;background-position:90% 50%} 10%{opacity:1} 80%{opacity:.78} 100%{opacity:0;background-position:10% 50%} }
.name-zone>* { position:relative;z-index:1; }
@keyframes name-event { 0%{opacity:0;background-position:90% 50%} 24%{opacity:1} 65%{opacity:.48} 100%{opacity:0;background-position:10% 50%} }
.name { min-width:0;width:100%;max-width:100%;display:flex;align-items:center;justify-content:center;font-size:23rem;line-height:1;font-weight:700;white-space:nowrap;text-align:center;color:var(--cream); }
.name.doubles { display:flex;flex-direction:column;justify-content:center;font-size:16rem;line-height:20rem; }
.member { display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:20rem;white-space:nowrap;color:var(--muted); }
.member.active-member { color:var(--cream); }
.flag-slot { position:absolute;right:14rem;top:50%;transform:translateY(-50%);width:40rem;height:28rem;display:flex;align-items:center;justify-content:center; }
.right .flag-slot { right:auto;left:14rem; }
/* Inset light/dark hairlines keep every flag legible on either nameplate.
   The slot, contained artwork, names and all scoreboard geometry stay fixed. */
/* Quiet neutral edge: dark stripes stay legible without a bright frame. */
.flag-slot::after { content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 .5rem rgba(153,166,159,.28),0 0 1rem rgba(0,0,0,.24); }
.unknown-flag { display:flex!important;align-items:center;justify-content:center;border:1rem solid currentColor;box-shadow:none!important;background:transparent;color:var(--cream);font:700 17rem/1 Club,Arial,sans-serif;opacity:.66; }
.country-flag { width:100%;height:100%;object-fit:contain;display:block;box-shadow:none; }
.shot-slot { position:absolute;left:3rem;top:2rem;width:30rem;height:24rem;display:flex;align-items:center;justify-content:center; }
.right .shot-slot { left:auto;right:3rem;justify-content:center; }
.shot-meter { position:absolute;top:48rem;left:0;width:208rem;height:var(--lower-plate-height);overflow:hidden;background:var(--black);z-index:1;pointer-events:none; }
.shot-meter.right { left:auto;right:0; }
.shot-meter[hidden] { display:none; }
.shot-meter.reset .shot-fill,.shot-meter.reset .shot-time { transition:none; }
.shot-meter::before { content:'';position:absolute;left:48rem;right:8rem;bottom:4rem;height:2rem;background:rgba(165,184,174,.09); }
.shot-meter>.shot-fill { position:absolute;left:48rem;right:8rem;bottom:4rem;height:2rem;background:#34895c;transform:scaleX(0);transform-origin:left center;transition:transform 100ms linear,background-color 240ms ease; }
.shot-meter.right::before,.shot-meter.right>.shot-fill { left:8rem;right:48rem; }
.shot-meter.right>.shot-fill { transform-origin:right center; }
.shot-meter>.shot-fill.urgent { background:#b94750; }
.shot-meter>.shot-fill.amber { background:#c9a53f; }
.shot-meter>.shot-fill.held { transition:background-color 240ms ease; }
.foul-cross { position:absolute;left:12rem;top:50%;width:16rem;height:16rem;transform:translateY(-50%);color:#df6973;animation:foul-indicator var(--name-effect-duration,2000ms) linear both;animation-delay:var(--event-delay,0ms); }
@keyframes foul-indicator { 0%,80%{opacity:1} 100%{opacity:0} }
.right .foul-cross { left:auto;right:12rem; }
.foul-cross::before,.foul-cross::after { content:'';position:absolute;left:6.5rem;top:-1rem;width:3rem;height:18rem;border-radius:1.5rem;background:currentColor;transform:rotate(45deg); }
.foul-cross::after { transform:rotate(-45deg); }
.foul-feedback::before { visibility:hidden; }
.shot-time { display:flex;align-items:center;justify-content:center;width:100%;height:24rem;font-size:22rem;font-weight:700;line-height:1;color:#54bf83;transition:color 240ms ease; }
body .board .shot-meter .shot-time:not(.urgent):not(.amber):not(.idle) { color:#54bf83; }
body .board .shot-meter .shot-time.urgent { color:#f35f64; }
body .board .shot-meter .shot-time.amber { color:#e5bf54; }
.board .shot-slot .shot-time.idle { color:#787c80; }
.points { position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;background:transparent;font-family:ClubCaption,Club,Arial,sans-serif;font-size:33rem;font-weight:600;line-height:1;color:var(--cream); }
.left .points,.right .points { box-shadow:none; }
.interval .points { color:rgba(243,240,233,.52); }
.ink { display:inline-block;white-space:nowrap;line-height:1; }
.ink-baseline { display:inline-block;width:0;height:0;padding:0;margin:0;border:0;vertical-align:baseline; }
.frames { display:grid;grid-template-columns:minmax(0,1fr) 56rem minmax(0,1fr);align-items:center;min-height:0;background:var(--green);font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600; }
.frame-count { display:flex;align-items:center;justify-content:center;min-width:0;height:48rem;padding:0 3rem;font-weight:600;font-size:27rem;line-height:1;text-align:center; }
.finished .player::before { display:none; }
.match-outcome { font-size:24rem;letter-spacing:.2rem;color:#9eaba4; }
.match-outcome.won { color:var(--gold); }
.frames.final-result { grid-template-columns:minmax(0,1fr) 24rem minmax(0,1fr); }
.result-separator { display:flex;align-items:center;justify-content:center;height:48rem;font-size:20rem;line-height:1;color:rgba(243,240,233,.76); }
.best-of { min-width:0;position:relative;height:48rem;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;font-size:20rem;line-height:1; }
.best-of strong { font-weight:600;display:flex;align-items:center;justify-content:center;width:100%;height:48rem; }
.format-label { position:absolute;top:2rem;font-size:7rem;line-height:9rem;letter-spacing:.06em;opacity:.8; }
.frames.shoot-out { position:relative;display:flex;align-items:center;justify-content:center; }
.frames.shoot-out>.time { display:flex;align-items:center;justify-content:center;width:100%;height:48rem; }
.frames.shoot-out>.time>.ink { position:relative; }
.pause-mark { display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:12rem;height:18rem;justify-content:space-between; }
.pause-mark::before,.pause-mark::after { content:'';width:4rem;height:100%;border-radius:1rem;background:currentColor; }
.board.paused { filter:brightness(.56); }
.board.ready>:not(.ready-status) { filter:brightness(.56); }
.ready .player::before { visibility:hidden; }
.paused .pause-mark { display:flex;color:#f3f0e9;filter:brightness(1.78); }
.paused .best-of>.format-value,.paused .best-of>.format-label { visibility:hidden; }
.frames.shoot-out .pause-mark { left:50%;width:12rem;height:18rem;transform:translate(-50%,-50%); }
.paused .frames.shoot-out>.time { visibility:hidden; }
.frames.shoot-out>.time { letter-spacing:.045em; }
.frames.shoot-out .pause-mark::before,.frames.shoot-out .pause-mark::after { width:3rem; }
.mode-label { font-size:9rem;line-height:10rem;letter-spacing:.07em;opacity:.82; }
.time { font-size:30rem;line-height:32rem;font-weight:700;white-space:nowrap;letter-spacing:-.02em; }
.timer-under { position:absolute;top:48rem;left:50%;transform:translateX(-50%);width:144rem;height:var(--lower-plate-height);background:var(--green);display:flex;align-items:center;justify-content:center;box-shadow:none;z-index:2; }
.timer-under .time { display:flex;align-items:center;justify-content:center;height:var(--lower-plate-height);font-size:21rem;line-height:1; }
/* One lower status slot. Match colours stay semantic in every scoreboard theme. */
body .board .timer-under.match-status { background:var(--black); }
body .board .timer-under.ready-status,body .board .timer-under.finished-status { color:#77bb91; }
body .board .timer-under.interval-status { color:#c6b58c; }
body .board .timer-under.in-play-status { color:#c7464a; }
body .board .timer-under.paused-status,body .board .timer-under.canceled-status { color:#aebbb2; }
.board.paused .paused-status .status-label { filter:brightness(1.78); }
.board.has-common-clock>.timer-under.match-status { visibility:hidden; }
.status-label { display:flex;align-items:center;justify-content:center;width:100%;height:var(--lower-plate-height);font-family:ClubCaption,Club,Arial,sans-serif;font-size:15rem;font-weight:600;line-height:1;letter-spacing:.6rem; }
.interval-status .status-label { font-size:12rem;letter-spacing:.35rem; }
.board .timer-under.shoot-out-label { background:var(--black);font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600;color:#c7cdc9; }
.shoot-out-label .mode-label { display:flex;align-items:center;justify-content:center;width:100%;height:var(--lower-plate-height);font-size:12rem;line-height:1;letter-spacing:.5rem;opacity:1; }
body .board .timer-under.countdown-900,body .board .timer-under.phase-notice { background:rgba(6,9,8,.995);color:#f3f0e9; }
body .board .time.countdown-amber { color:#e5bf54; }
body .board .time.countdown-red { color:#df6973; }
.frames.shoot-out>.time,.timer-under.countdown-900>.time { transition:color 240ms ease; }
.last-ten-countdown::after { content:'';position:absolute;left:8rem;right:8rem;bottom:2rem;height:3rem;background:#b94750;transform:scaleX(var(--last-ten-fill,0));transform-origin:left center;transition:transform 100ms linear;pointer-events:none; }
.timer-under.last-ten-countdown>.time { height:22rem;align-self:flex-start; }
.frames.shoot-out.last-ten-countdown>.time { height:42rem;align-self:flex-start; }
body .board .time.expired { color:#787c80; }
body .board .time.blue-decider { color:#787c80;transition:none; }
/* A held confirmed value is visibly waiting, never an apparently live clock. */
body .board .time.clock-held { position:relative;color:var(--muted); }
.time.clock-held::after { content:'SYNC';position:absolute;right:4rem;bottom:1rem;font:700 8rem/1 Club,Arial,sans-serif;letter-spacing:0;color:#d2b268; }
.board .timer-under.phase-notice { width:352rem;color:var(--cream); }
.phase-notice .mode-label { display:flex;align-items:center;justify-content:center;width:100%;height:var(--lower-plate-height);font-family:ClubCaption,Club,Arial,sans-serif;font-size:12rem;line-height:1;font-weight:600;letter-spacing:.5rem;opacity:1; }
.board .timer-under.phase-notice.blue-notice { width:144rem;background:transparent;z-index:3;border:0;box-shadow:none; }
.blue-notice .mode-label { display:flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center;font-size:11rem;line-height:1;letter-spacing:0;padding:0 4rem;height:var(--lower-plate-height); }
.blue-progress { background:var(--black);border:0;box-shadow:none;position:absolute;top:48rem;left:calc(50% - 176rem);width:352rem;height:var(--lower-plate-height);display:grid;grid-template-columns:104rem 144rem 104rem;pointer-events:none;z-index:2; }
.blue-progress-side { grid-column:1;display:flex;align-items:center;justify-content:center;gap:12rem;height:var(--lower-plate-height);position:relative;background:transparent;border:0;box-shadow:none;overflow:hidden;font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600; }
.blue-progress-side.right { grid-column:3; }
.blue-progress-side::before { content:"";position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(105deg,transparent,rgb(92 169 126 / .28),transparent);background-size:160% 100%; }
.blue-progress-side.blue-pot-feedback::before { animation:blue-pot-confirm 720ms cubic-bezier(.22,.61,.36,1) both;animation-delay:var(--blue-pot-delay,0ms); }
@keyframes blue-pot-confirm { 0%{opacity:0;background-position:100% 50%} 28%{opacity:.8} 100%{opacity:0;background-position:0% 50%} }
.blue-result-value { display:flex;align-items:center;justify-content:center;width:100%;height:var(--lower-plate-height);font-size:21rem;line-height:1;color:var(--theme-stat-values-text,var(--cream)); }
.blue-result-icon { position:relative;display:block;width:20rem;height:20rem; }
.blue-won { color:#77bb91; }
.blue-won::after { content:'';position:absolute;width:8rem;height:14rem;left:5rem;top:0;border-right:3rem solid currentColor;border-bottom:3rem solid currentColor;transform:rotate(42deg);border-radius:1rem; }
.blue-lost { color:#df6973; }
.blue-lost::before,.blue-lost::after { content:'';position:absolute;left:9rem;top:1rem;width:3rem;height:18rem;background:currentColor;transform:rotate(45deg);border-radius:1rem; }
.blue-lost::after { transform:rotate(-45deg); }
/* Local notices retain their player-side plate. Both sides read label then
   time from left to right; never mirror the text order with the player. */
/*251: both timer rows read icon, label, value; the right value ends at the safe outer padding. */
.context-under { position:absolute;top:48rem;left:0;width:208rem;height:var(--lower-plate-height);display:flex;align-items:center;justify-content:flex-start;gap:8rem;padding:0 11rem;background:var(--black);font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600;color:#aab5ae;z-index:1; }
.context-under.right { left:auto;right:0;justify-content:flex-end; }
.context-under.right .local-timer-icon { order:0; }
.local-timer-icon { display:block;flex:0 0 14rem;width:14rem;height:14rem;background:currentColor;mask:no-repeat center/contain;-webkit-mask:no-repeat center/contain; }
.local-timer-icon.shot { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M9 2h6M12 2v3M12 8v5h4'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M9 2h6M12 2v3M12 8v5h4'/%3E%3C/g%3E%3C/svg%3E"); }
.local-timer-icon.last { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7a8 8 0 1 1-1 9M3 6v5h5M12 7v5l4 2'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7a8 8 0 1 1-1 9M3 6v5h5M12 7v5l4 2'/%3E%3C/g%3E%3C/svg%3E"); }
.visit.entering,.context-under.entering,.clock-under.entering { animation:lower-enter 420ms cubic-bezier(.22,.61,.36,1) both; }
.visit.entering.after-leave,.context-under.entering.after-leave,.clock-under.entering.after-leave { animation-delay:var(--enter-delay,340ms); }
.visit.leaving,.context-under.leaving,.clock-under.leaving { animation:lower-leave 240ms ease-in both; }
.local-timer-label,.local-timer-value { display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;min-width:0;height:var(--lower-plate-height);padding:0;font-size:14rem;line-height:1;white-space:nowrap; }
.local-timer-label { text-transform:uppercase; }
.local-timer-value { color:#c7cdc9;font-variant-numeric:tabular-nums; }
.clock-under { position:absolute;top:48rem;left:calc(50% - 72rem);width:144rem;height:var(--lower-plate-height);display:flex;align-items:center;justify-content:center;background:var(--black);font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600;z-index:1; }
.clock-under.match-time { background:rgba(6,9,8,.99); }
.clock-under .common-value { height:var(--lower-plate-height);font-size:17rem;line-height:23rem; }
/* One shared five-column grid: name / points / match / points / name.
   Only occupied cells are painted, always attached to the main strip. */
.aux-host { position:absolute;left:0;bottom:100%;width:100%;height:48rem;pointer-events:none;overflow:hidden;z-index:1; }
.aux-host:empty { display:none; }
.break-host { position:absolute;left:0;bottom:100%;width:100%;height:48rem;display:grid;grid-template-columns:416rem 104rem 144rem 104rem 416rem;pointer-events:none;z-index:1; }
.break-host:empty { display:none; }
.aux-layer { position:absolute;left:0;right:0;bottom:0;height:48rem;display:grid;grid-template-columns:416rem 104rem 144rem 104rem 416rem;align-items:stretch; }
.aux-layer.stacked { bottom:0; }
.aux-layer.entering { animation:aux-enter 420ms cubic-bezier(.22,.61,.36,1) both; }
.aux-layer.entering.after-leave { animation-delay:var(--enter-delay,340ms); }
.aux-layer.leaving { animation:aux-leave 240ms ease-in both; }
.aux-layer.stacked.entering { animation-name:aux-stacked-enter; }
.aux-layer.stacked.leaving { animation-name:aux-stacked-leave; }
/* Fixed geometry: a short tonal reveal, no sliding text, scale or moving plates. */
@keyframes aux-enter { from { opacity:0; } to { opacity:1; } }
@keyframes aux-leave { from { opacity:var(--exit-opacity,1); } to { opacity:0; } }
@keyframes aux-stacked-enter { from { opacity:0; } to { opacity:1; } }
@keyframes aux-stacked-leave { from { opacity:var(--exit-opacity,1); } to { opacity:0; } }
@keyframes lower-enter { from { opacity:0; } to { opacity:1; } }
@keyframes lower-leave { from { opacity:var(--exit-opacity,1); } to { opacity:0; } }
.visit { grid-column:1;grid-row:1;min-width:0;height:48rem;display:grid;grid-template-columns:68rem 52rem minmax(0,1fr);align-items:center;column-gap:6rem;padding:0 14rem;background:var(--black);font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600;color:#c7cdc9; }
.visit.right { grid-column:5; }
.break { display:contents; }
.break-label { display:flex;align-items:center;justify-content:flex-start;font-size:18rem;line-height:1;white-space:nowrap; }
.break-value { display:flex;align-items:center;justify-content:center;font-size:22rem;font-weight:600;line-height:1; }
.break-label,.break-value { height:48rem; }
.balls { display:flex;align-items:center;gap:6rem;white-space:nowrap; }
.visit .balls { min-width:0;justify-content:flex-start; }
.visit-detail { min-width:0;display:flex;align-items:center;height:48rem; }
.ball { position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 26rem;width:26rem;min-width:26rem;max-width:26rem;height:26rem;min-height:26rem;max-height:26rem;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 30% 24%,var(--shine) 0%,var(--colour) 32%,var(--colour) 52%,var(--shade) 100%);box-shadow:inset 0 0 0 .5rem rgba(255,255,255,.17); }
.ball-count { position:absolute;inset:4rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(6,9,8,.83);font-family:ClubCaption,Club,Arial,sans-serif;font-size:13rem;line-height:1;font-weight:600;color:var(--cream);text-align:center; }
.ball.red { --shine:#f56767;--colour:#d71e2c;--shade:#83121c; }
.ball.yellow { --shine:#fff899;--colour:#f4df16;--shade:#b09d06; }
.ball.green { --shine:#67c48a;--colour:#159347;--shade:#095725; }
.ball.brown { --shine:#bc906a;--colour:#89502b;--shade:#4d2a16; }
.ball.blue { --shine:#74acfa;--colour:#1766cd;--shade:#103e83; }
.ball.pink { --shine:#ffd0e1;--colour:#ec7ead;--shade:#a63e6c; }
.ball.black { --shine:#686c70;--colour:#282b2e;--shade:#070809; }
.ball.free { outline:1rem solid rgba(243,240,233,.6);outline-offset:1rem; }

.metrics { grid-column:2/5;grid-row:1;align-self:end;display:flex;align-items:center;justify-content:center;height:48rem;background:var(--black);font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600;color:#c7cdc9; }
.metric-copy { display:grid;grid-template-columns:104rem 144rem 104rem;align-items:center;width:100%;height:25rem;min-width:0;line-height:1;white-space:nowrap; }
.metric-subject,.metric-remaining { display:flex;align-items:center;justify-content:center;gap:5rem;min-width:0;height:25rem;grid-row:1; }
.metric-subject { grid-column:1; }
.metric-subject.right { grid-column:3; }
.metric-remaining { grid-column:2; }
.metric-label { display:flex;align-items:center;justify-content:center;height:25rem;font-size:14rem;font-weight:600;color:#aab5ae; }
.metric-value { display:flex;align-items:center;justify-content:center;min-width:0;height:25rem;padding:0 4rem;font-size:18rem;font-weight:600; }
.metric-subject.secured .metric-value { color:#69b990; }
.metric-subject.snookers .metric-value { color:#e58286; }
.stats-panel { grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:416rem 104rem 144rem 104rem 416rem;align-items:stretch;width:100%;min-width:0;height:48rem;font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600;color:#c7cdc9; }
.stat-caption { grid-column:3;grid-row:1;min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 4rem;background:var(--black); }
.cancel-caption { font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600;color:#c88484; }
.context-label { display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:100%;font-family:ClubCaption,Club,Arial,sans-serif;font-weight:600;text-transform:uppercase;color:#c7cdc9; }
.stats-panel:not(.single) .context-label { position:relative;height:48rem; }
.stats-panel:not(.single) .caption-detail { position:absolute;top:35rem; }
.caption-main,.caption-detail { display:flex;align-items:center;justify-content:center;width:100%;min-width:0;white-space:nowrap; }
.caption-main { height:18rem;font-size:17rem;line-height:18rem;letter-spacing:.5rem; }
.caption-detail { height:11rem;font-size:11rem;line-height:11rem;letter-spacing:.65rem;color:#9eaba4; }
.stat-side { grid-column:1/3;grid-row:1;min-width:0;display:grid;grid-template-columns:416rem 104rem;align-items:stretch;height:48rem; }
.stat-side.right { grid-column:4/6;grid-template-columns:104rem 416rem; }
.context-value { grid-column:2;grid-row:1;min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:18rem;line-height:1;font-weight:600;background:var(--black); }
.stat-side.right .context-value { grid-column:1; }
.stat-side.better .context-value { color:#efe7d1; }
.context-value.has-detail { position:relative; }
.stats-panel.one-frame>.context-value { grid-column:2;grid-row:1; }
.stats-panel.one-frame>.context-value.right { grid-column:4; }
.stat-value-detail { position:absolute;left:0;right:0;top:35rem;display:flex;align-items:center;justify-content:center;height:11rem;font-size:11rem;line-height:1;font-weight:600;color:#9eaba4; }
.stat-side .balls { grid-column:1;grid-row:1;min-width:0;flex-direction:row-reverse;justify-content:flex-start;padding:0 12rem;background:var(--black); }
.stat-side.right .balls { grid-column:2;flex-direction:row;justify-content:flex-start; }
.stat-side .balls.highest-break-balls { flex-direction:row;justify-content:flex-end; }
.stat-side.right .balls.highest-break-balls { justify-content:flex-start; }
.aux-host.live-left .stat-side.left>.balls,.aux-host.live-left .stat-side.left>.break-list,
.aux-host.live-right .stat-side.right>.balls,.aux-host.live-right .stat-side.right>.break-list { visibility:hidden; }
.stats-panel.wide-values .stat-side { background:var(--black); }
.stats-panel.wide-values .context-value { grid-column:1/-1; }
.stats-panel.history { background:var(--black); }
.stats-panel.history.one-frame { background:transparent; }
.history-results { grid-column:1/3;grid-row:1;justify-self:end;display:flex;align-items:center;justify-content:flex-end;width:100%;max-width:100%;height:48rem; }
.history-results.right { grid-column:4/6;justify-self:start;justify-content:flex-start; }
.frame-result { position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 8rem;width:104rem;min-width:104rem;height:48rem;font-size:18rem;line-height:1;white-space:nowrap; }
.frame-number { position:absolute;top:35rem;display:flex;align-items:center;justify-content:center;width:100%;height:11rem;font-size:10rem;line-height:11rem;text-transform:uppercase;letter-spacing:.45rem;color:#9eaba4; }
.frame-result-score { display:flex;align-items:center;justify-content:center;width:100%;height:21rem;min-width:0; }
.frame-result-points { color:#aab5ae; }
.frame-result-points.won { color:#e3d6b7; }
.frame-result-dash { color:#819088; }
.frame-result.single-frame { width:136rem;min-width:0;height:21rem;flex-direction:row;gap:7rem;padding:0; }
.single-frame .frame-number { position:static;width:auto;flex:0 0 auto; }
.single-frame .frame-result-score { width:auto;min-width:0; }
.break-list { grid-column:1;grid-row:1;min-width:0;display:flex;align-items:center;justify-content:flex-end;height:48rem;padding:0 18rem;background:var(--black);font-size:18rem;line-height:1;white-space:nowrap;color:#aab5ae; }
.stat-side.right .break-list { grid-column:2;justify-content:flex-start; }
.stat-timer { grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;height:48rem;background:var(--black); }
.stat-timer.right { grid-column:5; }
.stat-timer .stat-caption { flex:0 0 116rem;height:48rem;background:transparent; }
.stat-timer .context-value { flex:0 0 104rem;height:48rem;background:transparent;font-size:20rem; }
/* Match-wide times share the middle cell: label over value, never a player wing. */
.stats-panel.single .stat-caption { flex-direction:column;gap:3rem;padding:4rem; }
.stats-panel.single:not(.common-clock)>.stat-caption { height:48rem;min-height:0;gap:2rem;padding:3rem 4rem; }
.stats-panel.history.single .stat-caption { padding:0 4rem; }
.stats-panel.single.common-clock .stat-caption { align-self:end;height:23rem;padding:0 4rem;gap:0; }
.common-value { display:flex;align-items:center;justify-content:center;min-width:0;width:100%;max-width:100%;height:21rem;font-size:19rem;font-weight:600;line-height:21rem;color:#c7cdc9; }
/* Service information is deliberately absent from the television output. */
.connection { display:none; }
.debug .connection { display:block;position:absolute;right:0;bottom:calc(100% + 40rem);max-width:420rem;padding:4rem 8rem;background:rgba(13,13,13,.94);font-size:11rem;line-height:15rem;color:#c6a76c; }
.loading { display:none; }
.debug .loading { display:block;max-width:440rem;margin:auto;padding:14rem 20rem;text-align:center;background:rgba(13,13,13,.94);color:var(--muted);font-size:16rem; }
@media(prefers-reduced-motion:reduce) { .aux-layer.entering,.aux-layer.entering.after-leave,.aux-layer.leaving,.aux-layer.stacked.entering,.aux-layer.stacked.leaving,.context-under.entering,.context-under.leaving,.clock-under.entering,.clock-under.leaving,.name-zone.event-foul::after,.name-zone.event-highest::after,.name-zone.event-frame::after,.name-zone.event-frame-ball::after,.blue-progress-side.blue-pot-feedback::before,.visit.entering,.visit.leaving { animation:none; } .aux-layer.leaving,.context-under.leaving,.clock-under.leaving,.visit.leaving { opacity:0; } }

.stats-panel.history:not(.one-frame) .frame-result { gap:4rem; }
.stats-panel.history:not(.one-frame) .frame-number { position:static;order:2;flex:none; }
.stats-panel.history:not(.one-frame) .frame-result-score { flex:none; }
.stats-panel.history:not(.one-frame) .context-label { gap:4rem; }
.stats-panel.history:not(.one-frame) .caption-detail { position:static;flex:none; }

/*250: chance and local clock occupy the same outside player slot.
   The renderer replaces the same-side clock, including a retiring clock. */
.chance-under{position:absolute;top:48rem;left:0;width:208rem;height:var(--lower-plate-height);padding:0 11rem;background:var(--black);color:var(--theme-match-text,var(--cream));pointer-events:none;z-index:1}
.chance-under.right{left:auto;right:0}
.frame-ball-hint-label{display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%;font-family:ClubCaption,Club,Arial,sans-serif;font-size:14rem;font-weight:600;line-height:1;white-space:nowrap}
.chance-under.right .frame-ball-hint-label{justify-content:flex-end}

/*251: phones retain the same horizontal scoreboard; only its scale follows width. */
html.phone-scoreboard body{background:#030604}
html.phone-scoreboard .overlay,html.phone-scoreboard .mode-timed .overlay{bottom:50%;transform:translate(-50%,50%)}

/*248: raw is a transparent, high-resolution source with the complete existing
  upper/lower rail envelope. Ad/policy/score nodes remain inside that envelope. */
html.raw-scoreboard,html.raw-scoreboard body{width:1184rem;height:156rem;overflow:hidden;background:transparent}
html.raw-scoreboard .overlay,html.raw-scoreboard .mode-timed .overlay{left:0;top:48rem;bottom:auto;transform:none}

/*251: an empty public channel has a branded, readable waiting surface. */
.public-empty{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:#060908;color:#f3f0e9;font-family:Arial,sans-serif;text-align:center;padding:24px}
.empty-brand{display:flex;align-items:center;justify-content:center;gap:20px;max-width:100%}.empty-brand img{display:block;width:80px;height:80px;object-fit:contain}
.empty-wordmark{display:flex;align-items:baseline;white-space:nowrap;font-size:clamp(18px,4.6vw,36px);line-height:1.2;letter-spacing:-.6px}.empty-wordmark b{font-weight:700}.empty-wordmark span{font-weight:400}.empty-wordmark i{width:4px;height:4px;border-radius:50%;background:#83ba9c;margin:0 4px}
.public-empty p{margin:0;font-size:clamp(16px,2.4vw,22px);font-weight:400;color:#b5c2bb}
@media(max-width:480px){.empty-brand{gap:12px}.empty-brand img{width:54px;height:54px}}

/*255: common timings use the same complete-width rail as other shared metrics. */
.stats-panel.single:not(.history)>.stat-caption{grid-column:1/-1;height:48rem;gap:2rem;padding:3rem 12rem}
.stats-panel.single:not(.history)>.stat-caption .common-value{font-size:22rem;line-height:23rem;height:23rem}

/*279: equal 48rem title and common-time rails above and below the score.
  Keep the existing score/raw envelope and the normal caption/clock type sizes. */
.stats-panel.single.common-timing>.stat-caption{grid-column:1/-1;align-self:stretch;display:flex;align-items:center;justify-content:center;height:48rem;min-height:48rem;padding:0 12rem;gap:0}
.stats-panel.single.common-timing>.stat-caption>.context-label{height:48rem;min-height:0;align-self:center}
.clock-under.common-timing{left:0;width:100%;height:48rem}
.clock-under.common-timing>.common-value{height:48rem;font-size:21rem;line-height:1}
/* WSC shares one backing, including while the taller common clock retires. */
body[data-overlay-theme="wsc"] .board:has(>.clock-under.common-timing)::after{height:48rem}

/*280: shared timing plates stop at the point-score block, before the flags.
  The fixed352rem span is also the fallback when player flags are disabled. */
.stats-panel.single.common-timing>.stat-caption{grid-column:2/5}
.clock-under.common-timing{left:calc(50% - 176rem);width:352rem}
/* WSC's backing follows the occupied common plate, including its exit fade.
  Simultaneous outside notices retain their own black backing. */
body[data-overlay-theme="wsc"] .board:has(>.clock-under.common-timing)::after{left:calc(50% - 176rem);right:auto;width:352rem}
body[data-overlay-theme="wsc"] .board:has(>.clock-under.common-timing)>:is(.context-under,.shot-meter,.chance-under){background:var(--wsc-aux-surface)}
body[data-overlay-theme="wsc"] .board:has(>.aux-host .stats-panel.common-timing):not(:has(>.aux-host .stats-panel:not(.common-timing),>.aux-host .metrics))::before{left:calc(50% - 176rem);right:auto;width:352rem}
body[data-overlay-theme="wsc"] .board:has(>.aux-host .stats-panel.common-timing):not(:has(>.aux-host .stats-panel:not(.common-timing),>.aux-host .metrics))>.break-host .visit{background:var(--wsc-aux-surface)}
