:root { --mint:#64ead1; --muted:#b4c4d5; --line:#2b4054; color:#f8fbff; font-family:"Helvetica Neue",Arial,sans-serif; font-variant-numeric:tabular-nums; }
* { box-sizing:border-box }
body { margin:0; overflow:hidden; background:transparent }
#stage { position:absolute; width:1920px; height:1080px; left:50%; top:50%; transform:translate(-50%,-50%) scale(var(--zoom,1)); background:radial-gradient(ellipse at 90% 15%,#12394a,transparent 53%),linear-gradient(140deg,#101e34,#060e1a 74%); }
#stage.clear { background:none }
#panel { position:absolute; inset:62px 104px; display:flex; flex-direction:column; overflow:hidden; border-radius:16px; background:#101e30; box-shadow:0 22px 65px #0005; }
header { position:relative; flex:none; height:170px; padding:27px 43px 21px; background:linear-gradient(105deg,#142d43,#123145 69%,#165359); border-bottom:4px solid var(--mint) }
.art { position:absolute; right:0; top:0; width:625px; height:166px }
.event { position:relative; display:flex; align-items:center; gap:16px; width:1330px; height:34px; color:var(--mint); font-weight:700; letter-spacing:3.3px; font-size:24px; text-transform:uppercase }
.event i { width:24px; height:24px; flex:none; background:conic-gradient(currentColor 25%,transparent 0 50%,currentColor 0 75%,transparent 0) }
.event span,h1,.name,.trim { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
h1 { position:relative; width:1350px; margin:8px 0 0; font-size:72px; line-height:1.12; letter-spacing:-2.1px; font-weight:700 }
h1 b { color:var(--mint) }
#table { flex:1; display:flex; flex-direction:column; min-height:0 }
.row { display:grid; grid-template-columns:var(--columns); align-items:center; padding:0 32px; column-gap:16px; text-align:center; min-width:0 }
.row > * { min-width:0 }
.labels { height:55px; flex:none; background:#0c1929; color:var(--muted); font-size:20px; letter-spacing:2px; font-weight:700; text-transform:uppercase }
.data { height:var(--height); flex:none; font-size:var(--size); background:#192a3d; border-top:1px solid var(--line) }
.data:nth-child(odd) { background:#142336 }
.left { text-align:left }
.number { color:#dbe5f0; font-weight:700 }
.podium { box-shadow:inset 5px 0 var(--medal) }
.player,.fed,.side { display:flex; align-items:center; gap:14px }
.player { min-width:0; text-align:left; overflow:hidden }
.name { font-weight:650; letter-spacing:-.4px; flex:1; min-width:0 }
.title { flex:0 0 65px; font-size:.63em; line-height:1.5; font-weight:750; letter-spacing:.6px; text-align:center; color:var(--mint); border:1px solid #64ead15c; border-radius:5px; background:#64ead10a }
.title:empty { border-color:transparent; background:none }
.fed { justify-content:center; font-size:.81em; font-weight:600; color:#dae5ef; letter-spacing:1px }
.flag { font-family:"Apple Color Emoji","Noto Color Emoji","Segoe UI Emoji",sans-serif; font-size:1.23em; line-height:1; letter-spacing:0 }
.rating,.tie,.pre { color:#c4d1e0; font-size:.9em }
.points { font-weight:750; color:var(--mint); font-size:1.08em }
.side { justify-content:flex-start }
.side::before { content:""; width:17px; height:17px; border-radius:50%; background:white; border:2px solid white }
.side.black::before { background:#050c15; border-color:#adbdce }
.pair .player { gap:11px }
.pair .fed { flex:none; width:72px; font-size:.68em }
.pair .title { flex-basis:57px }
.score { justify-self:center; min-width:124px; border-radius:6px; padding:3px 8px; background:var(--mint); color:#08222a; font-weight:750; white-space:nowrap; line-height:1.13 }
.score.open { color:#90a6ba; background:#0d1a2b; font-weight:500; font-size:.8em }
footer { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; height:61px; flex:none; padding:0 42px; border-top:1px solid var(--line); color:#afc1d4; font-size:21px; font-weight:500; letter-spacing:.4px; background:#0b1726 }
#status::before { content:""; display:inline-block; width:10px; height:10px; margin:0 12px 3px 0; border-radius:50%; background:var(--mint) }
#status:empty::before { display:none }
#status.warn { color:#ffd38a }
#status.warn::before { background:currentColor }
#range { font-weight:600; color:#d4dfea }
#pages { justify-self:end; letter-spacing:1.5px; text-transform:uppercase; font-size:19px }
.notice { margin:auto; color:var(--muted); font-size:36px; text-align:center; max-width:1200px }
.enter { animation:appear .32s ease-out }
@keyframes appear { from { opacity:.1; transform:translateY(6px) } }
@media (prefers-reduced-motion:reduce) { .enter { animation:none } }

/* ECU TV. The board, including its two clock strips, occupies this rectangle
   in the 1920 x 1080 programme feed. Everything outside it stays transparent. */
#stage.ecu { --blue:#4083bf; --coal:#303138; --ink:#202630; color:var(--ink); background:transparent }
#stage.ecu.standalone { width:774px; height:866px }
.ecu #panel { inset:48px auto auto 28px; width:774px; height:866px; border-radius:0; box-shadow:none; background:#f6f7f9 }
.ecu.standalone #panel { inset:0 }
.ecu header { height:117px; padding:0; border:0; background:var(--blue) }
.ecu .art { display:none }
.ecu .event { width:100%; height:45px; padding:0 22px; gap:13px; background:var(--coal); color:white; font-size:19px; letter-spacing:1.6px; font-weight:600 }
.ecu .event i { width:20px; height:20px }
.ecu h1 { width:100%; height:72px; margin:0; padding:0 22px; color:white; font-size:43px; font-weight:550; letter-spacing:-.9px; line-height:70px }
.ecu h1 b { color:inherit; font-weight:inherit }
.ecu .row { padding:0 13px; column-gap:10px }
.ecu .labels { height:40px; color:#fff; background:#32343b; font-size:18px; letter-spacing:1.1px; font-weight:600 }
.ecu .data { background:#fff; border-top:0; border-bottom:1px solid #d4dce4 }
.ecu .data:nth-child(odd) { background:#eaf0f6 }
.ecu .number { color:#303640; font-size:.88em; font-weight:600 }
.ecu .player { gap:9px }
.ecu .name { color:#161e29; font-weight:600; letter-spacing:-.45px }
.ecu .title { flex-basis:48px; background:none; border:0; color:#833451; font-weight:750; font-size:.68em; letter-spacing:0 }
.ecu .fed { gap:8px; color:#394350; font-weight:500; letter-spacing:0; font-size:.75em }
.ecu .flag { font-size:1.25em }
.ecu .rating,.ecu .tie { color:#303843; font-size:.84em }
.ecu .points { color:#16548a; font-size:1.05em; font-weight:700; height:100%; display:grid; place-items:center; background:#4083bf14; min-height:0 }
.ecu .side::before { width:14px; height:14px; border-width:1.5px }
.ecu .side.black::before { border-color:#fff }
.ecu .stack { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:3px; text-align:left; overflow:hidden }
.ecu .stack .name { flex:none; font-size:.9em; line-height:1.06 }
.ecu .details { display:flex; gap:11px; align-items:center; color:#414d59; font-size:.62em; line-height:1.06; font-weight:500; white-space:nowrap }
.ecu .details:empty { display:none }
.ecu .details .fed { font-size:1em; gap:5px }
.ecu .details .flag { font-size:1.02em }
.ecu .master { color:#833451; font-weight:750 }
.ecu .standing { color:#225d91; font-weight:650 }
.ecu .score { min-width:89px; font-size:.9em; border-radius:0; background:#3376b0; color:#fff; padding:6px 4px; font-weight:650 }
.ecu .score.open { font-size:.77em; font-weight:500; background:none; color:#596675 }
.ecu footer { height:43px; padding:0 20px; border-top:3px solid var(--blue); color:#e5eaf0; background:var(--coal); font-size:17px; letter-spacing:.1px }
.ecu #range { color:#fff; font-weight:500 }
.ecu #pages { font-size:16px; letter-spacing:.5px }
.ecu #status::before { display:none }
.ecu .notice { padding:24px; font-size:27px; color:#414d59 }
