@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#151516;--white:#f6f6f4;--pink:#d7165b;--sky:#71bde9;--green:#278d4f;--muted:#c5c5c5}*{box-sizing:border-box}body{margin:0;background:#0d0e0e;color:var(--white);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}.screen{min-height:100vh;height:100vh;display:flex;flex-direction:column;gap:0;padding:0 2.4vw 1.2vw;background:#141516;overflow:hidden}.color-rail{height:7px;display:grid;grid-template-columns:repeat(5,1fr);margin:0 -2.4vw}.color-rail span:nth-child(1){background:#d11458}.color-rail span:nth-child(2){background:#65b5e6}.color-rail span:nth-child(3){background:#278a4e}.color-rail span:nth-child(4){background:#bc8746}.color-rail span:nth-child(5){background:#c4c4c4}
.topline{height:10%;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #37373a}.logo{display:flex;align-items:center;gap:12px;font-weight:850;font-size:clamp(14px,1.5vw,25px);letter-spacing:.015em;white-space:nowrap}.logo strong{color:#f184ae}.q{display:grid;place-items:center;width:clamp(32px,2.8vw,52px);height:clamp(32px,2.8vw,52px);border:2px solid #fff;border-radius:50%;font:800 clamp(20px,2.3vw,40px)/1 'Barlow Condensed',Impact,sans-serif}.tiny{font-size:clamp(8px,.72vw,13px);color:#8b8b8e;letter-spacing:.18em;margin-left:22px;font-weight:850}.status{font-size:clamp(9px,.9vw,14px);font-weight:850;color:#f7b5d0;letter-spacing:.07em;text-align:right}
.eventbar{height:19%;min-height:116px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #3b3b3d}.eyebrow{font-size:clamp(10px,1vw,16px);font-weight:850;color:var(--sky);letter-spacing:.13em}.eventbar h1{font:800 clamp(26px,3.1vw,60px)/1 'Barlow Condensed',Impact,'Arial Narrow',sans-serif;text-transform:uppercase;margin:9px 0 6px;letter-spacing:.015em}.details{font-size:clamp(11px,1vw,18px);color:#b8b8b8;margin:0}.event-badge{text-align:right;color:#b0b0b0;font:800 clamp(13px,1.5vw,28px)/1.05 'Barlow Condensed',Impact,sans-serif;letter-spacing:.12em;border-left:3px solid var(--pink);padding-left:1.5vw;white-space:nowrap}
.bodygrid{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,2.4fr) minmax(230px,.72fr);gap:1.2vw;padding:1.25vw 0}.featured{min-width:0;background:#202123;border:1px solid #48484b;border-radius:5px;display:flex;flex-direction:column;padding:1.75vw 2.3vw;box-shadow:inset 0 4px 0 #cc1555}.featuretop{display:flex;align-items:center;justify-content:space-between;gap:14px}.kicker{color:#f3a0bf;font-weight:850;letter-spacing:.15em;font-size:clamp(11px,1vw,18px)}.pitch{font-size:clamp(11px,1vw,18px);color:#c7c7c7;font-weight:700}.scoreboard{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.8fr) minmax(0,1fr);align-items:center;gap:10px;text-align:center}.team{font:800 clamp(24px,3.1vw,60px)/.99 'Barlow Condensed',Impact,'Arial Narrow',sans-serif;text-transform:uppercase;overflow-wrap:anywhere;letter-spacing:.015em}.points{font:900 clamp(72px,9vw,176px)/.9 'Barlow Condensed',Impact,'Arial Narrow',sans-serif;white-space:nowrap;letter-spacing:-.025em;color:#fff;font-variant-numeric:tabular-nums}.line{border-top:1px solid #545456;padding-top:16px;font-size:clamp(11px,1vw,17px);color:#aeb0b2;text-align:center;text-transform:uppercase;letter-spacing:.08em;font-weight:750}
.sidebar{min-width:0;display:grid;grid-template-rows:1fr 1fr auto;gap:1.2vw}.box{border:1px solid #454547;background:#1b1c1e;border-radius:5px;padding:1.55vw;min-height:0;overflow:hidden;display:flex;flex-direction:column}.slabel{color:var(--sky);font-size:clamp(9px,.83vw,15px);font-weight:850;letter-spacing:.1em}.big{font:850 clamp(48px,5.3vw,100px)/1 'Barlow Condensed',Impact,sans-serif;margin:auto 0 8px}.sub{font-size:clamp(10px,1vw,17px);color:#b6b6b6}.next{margin:auto 0;font-size:clamp(11px,1.2vw,22px);font-weight:750;line-height:1.38;overflow-wrap:anywhere}.sponsor{border:1px dashed #575759;min-height:50px;padding:12px;display:grid;place-items:center;font-size:clamp(9px,.8vw,14px);color:#9e9e9e;letter-spacing:.11em;font-weight:750}footer{min-height:42px;border-top:1px solid #39393b;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#888;font-size:clamp(9px,.8vw,14px);font-weight:750;letter-spacing:.07em}
@media(max-width:900px){.screen{height:auto;min-height:100vh;overflow:auto;padding:0 18px 18px}.color-rail{margin:0 -18px}.topline{min-height:72px}.eventbar{min-height:122px}.bodygrid{grid-template-columns:1fr}.featured{min-height:380px;padding:20px}.sidebar{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.sponsor{grid-column:span 2}.box{min-height:155px;padding:18px}.points{font-size:clamp(62px,12vw,110px)}.team{font-size:clamp(20px,4vw,45px)}.tiny,.event-badge{display:none}}
/* v0.8.1: reserve adequate horizontal space for double-digit rugby scores. */
@media(min-width:901px){
  .scoreboard{grid-template-columns:minmax(0,1.1fr) minmax(0,1.38fr) minmax(0,1.1fr);gap:1.2vw}
  .points{font-size:clamp(60px,7vw,120px)}
  .team{font-size:clamp(23px,2.35vw,44px);overflow-wrap:normal;word-break:normal}
}
@media(max-width:900px){
  .scoreboard{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr)}
  .points{font-size:clamp(54px,8vw,100px)}
}
@media(max-width:600px){
  .scoreboard{grid-template-columns:1fr;grid-template-rows:auto auto auto;gap:8px;padding:20px 0}
  .featured{min-height:440px}
  .points{font-size:clamp(68px,15vw,110px)}
  .team{font-size:clamp(20px,6vw,38px)}
}

/* v0.9.1 — persistent champion indicator when the public feed is complete. */
.tv-champion{background:#d2eb3a;color:#16191b;font:900 clamp(17px,2vw,31px)/1.06 'Barlow Condensed',Impact,sans-serif;letter-spacing:.08em;text-align:center;text-transform:uppercase;padding:13px 9px;margin-top:15px;border-radius:2px}
.hide{display:none!important}


/* QA visual polish — enlarged three-row podium after the championship is complete. */
@media(min-width:901px){
  .sidebar.completed{grid-template-rows:minmax(0,.73fr) minmax(0,1.35fr) auto}
  .sidebar.completed .progress .big{font-size:clamp(48px,4.7vw,88px)}
}
.next.podium-names{display:grid;align-content:center;gap:clamp(7px,.75vw,14px);width:100%;font-size:clamp(17px,1.37vw,28px);line-height:1.14;font-weight:800;margin:auto 0}
.podium-entry{display:grid;grid-template-columns:clamp(35px,2.4vw,49px) minmax(0,1fr);align-items:center;gap:clamp(10px,.8vw,18px);padding:0 0 clamp(7px,.6vw,12px);border-bottom:1px solid #414244;min-width:0}
.podium-entry:last-child{border-bottom:0;padding-bottom:0}
.podium-rank{display:grid;place-items:center;min-height:clamp(35px,2.4vw,49px);border:1px solid #6b7072;border-radius:3px;color:#e9e9e6;font:900 clamp(18px,1.5vw,29px)/1 'Barlow Condensed',Impact,sans-serif}
.podium-entry:first-child .podium-rank{border-color:#d2eb3a;background:#d2eb3a;color:#171919}
.podium-entry:nth-child(3) .podium-rank{border-color:#b88d67;color:#f2c2a2}
.podium-name{min-width:0;overflow-wrap:anywhere}

/* QA TV: keep the completed-matches caption fully visible above the podium. */
@media(min-width:901px){
  .sidebar.completed .progress{padding:clamp(11px,.95vw,17px) 1.55vw;justify-content:space-between}
  .sidebar.completed .progress .big{font-size:clamp(48px,3.7vw,70px);line-height:.9;margin:4px 0}
  .sidebar.completed .progress .sub{font-size:clamp(10px,.9vw,15px);line-height:1.2}
}
