:root{--lime:#f4ca64;--bg:#071126;--panel:#101d34;--line:#2b3d59;--muted:#a9b8ce}
body{background:#071126;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(4,13,33,.42),rgba(5,20,46,.18),rgba(4,13,33,.42)),url('images/unp-futuristic-sports.png') center/cover no-repeat;pointer-events:none}
body::after{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(125deg,rgba(23,75,156,.22),transparent 45%,rgba(244,202,100,.08));pointer-events:none}
header{background:rgba(6,18,40,.83);border-bottom-color:rgba(244,202,100,.32);backdrop-filter:blur(12px)}
.unp-brand{display:flex;align-items:center;gap:12px;min-width:0}
.unp-seal{width:76px;height:58px;object-fit:contain;flex-shrink:0}
.unp-sharks{width:52px;height:52px;object-fit:contain;flex-shrink:0}
.unp-brand-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.unp-brand-copy strong{font-family:Arial,sans-serif;font-size:17px;letter-spacing:1.7px;color:#f4ca64;line-height:1.2}
.unp-brand-copy small{font-family:Arial,sans-serif;font-size:9px;letter-spacing:1.2px;color:#bdcbe0;line-height:1.5}
.unp-brand-copy .unp-subtitle{font-size:10px;letter-spacing:2px;color:#fff}
.competitor,.bottom-bar{background:rgba(13,27,50,.95);border-color:#324565;box-shadow:0 12px 35px #0003}
.timer-panel{background:linear-gradient(180deg,rgba(20,37,65,.97),rgba(8,22,43,.98));border-color:#41516c}
.timer-status{background:#3c3421;color:#f4ca64}.primary{background:#f4ca64;color:#1d2434}
.card{background:linear-gradient(135deg,rgba(17,43,81,.97),rgba(9,24,47,.97));box-shadow:0 15px 45px #0004}
.card.red{background:linear-gradient(135deg,rgba(65,25,43,.97),rgba(20,22,42,.97))}
.match{background:rgba(12,28,51,.97)}
footer{color:#a9b8ce;border-top-color:#3d4a60}
.unp-photo-credit{display:block;text-align:right;font-size:9px;color:#9eabc1;margin:12px 0 0;line-height:1.5}.unp-photo-credit a{color:inherit}
body.projection-page>header{padding:12px 18px;border-radius:10px;gap:20px}
.projection-page .unp-brand-copy strong{font-size:clamp(16px,1.8vw,28px)}
.projection-page .unp-brand-copy small{font-size:clamp(9px,.8vw,13px)}
.projection-page .unp-seal{width:100px;height:72px}.projection-page .unp-sharks{width:70px;height:70px}
.reports-page header{padding:18px;border-radius:10px}.reports-page h1{margin-top:24px}
@media(max-width:850px){body:not(.projection-page) header{height:auto;min-height:84px;padding:14px 4vw;flex-wrap:wrap;gap:15px}.unp-brand-copy strong{font-size:14px}.unp-brand-copy small{font-size:8px}.unp-seal{width:60px;height:48px}.unp-sharks{width:42px;height:42px}.header-right{flex-wrap:wrap;gap:10px}.projection-page .unp-seal{width:65px;height:50px}.projection-page .unp-sharks{width:45px;height:45px}}
@media(max-width:600px){.projection-page>header{flex-wrap:wrap}.projection-page .meta{max-width:none;text-align:left}.unp-brand{gap:6px}.unp-brand-copy strong{letter-spacing:.8px}}
/* Projection fills the available window, including when browser chrome is visible. */
html:has(body.projection-page){height:100%;overflow:hidden}
body.projection-page{height:100vh;height:100dvh;min-height:0;overflow:hidden;padding:1.6vh 2.5vw;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:1.4vh}
body.projection-page>header{min-height:0;padding:1vh 1.2vw;flex-wrap:nowrap;gap:1vw}
.projection-page .unp-seal{width:min(7vw,11vh);height:8vh}
.projection-page .unp-sharks{width:min(5vw,8vh);height:7vh}
.projection-page .unp-brand{gap:1vw}
.projection-page .unp-brand-copy{gap:.5vh}
.projection-page .unp-brand-copy strong{font-size:min(2vw,3.3vh)}
.projection-page .unp-brand-copy small{font-size:min(1vw,1.6vh)}
.projection-page .unp-brand-copy .unp-subtitle{font-size:min(1.1vw,1.7vh)}
.projection-page .meta{font-size:min(1.4vw,2.3vh);max-width:35%;overflow-wrap:anywhere}
.projection-page .stage{min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);align-content:stretch;gap:2vw;padding:0}
.projection-page .card{min-height:0;padding:1.8vh 1.6vw;display:flex;flex-direction:column;justify-content:space-between;gap:.5vh}
.projection-page .performance-time{flex-shrink:0;margin:0;padding:0 0 1vh}
.projection-page .label{font-size:min(1.2vw,1.8vh);letter-spacing:.15em}
.projection-page .corner-time{font-size:min(4vw,7vh);line-height:1.1;overflow-wrap:anywhere}
.projection-page .performance-time small{font-size:min(1vw,1.6vh)}
.projection-page .name{font-size:min(3vw,4.8vh);line-height:1.05;margin:.5vh 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;flex-shrink:0}
.projection-page .team{font-size:min(1.5vw,2.4vh);line-height:1.2;min-height:1.2em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
.projection-page .total{font-size:min(12vw,21vh);line-height:1;flex-shrink:0}
.projection-page .judges{flex-shrink:0;gap:.6vw;margin-top:1vh}
.projection-page .judge{min-width:0;padding-top:1vh}
.projection-page .judge small{font-size:min(.95vw,1.6vh);margin-bottom:.6vh;white-space:nowrap}
.projection-page .judge span{font-size:min(2.2vw,3.8vh)}
.projection-page footer{min-height:0;padding-top:1vh;align-items:center;gap:1vw}
.projection-page .result{font-size:min(2.2vw,3.5vh)}
.projection-page .note{font-size:min(1.2vw,1.8vh);margin-top:.6vh;line-height:1.2}
.projection-page footer button{padding:1vh 1vw;font-size:min(1.2vw,1.8vh);white-space:nowrap}
.projection-page .unp-photo-credit{font-size:min(.8vw,1.3vh);margin:0;line-height:1.2}
/* Combat reserves its clock row before sizing the competitor cards. */
body.combat-projection{gap:1vh}
.combat-projection .combat-board{width:100%;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr);gap:1.2vh 2vw;overflow:hidden}
.combat-projection .tv-clock{min-width:0;padding:0;line-height:1}
.combat-projection .countdown{font-size:min(7vw,11vh);line-height:1.05}
.combat-projection .timer-state{line-height:1.2;margin-top:.4vh}
.combat-projection .combat-card{container-type:size;min-width:0;min-height:0;overflow:hidden;padding:1.5vh 1.5vw;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto;align-content:stretch;justify-content:normal;gap:.7vh}
.combat-projection .corner-label{font-size:min(1.2vw,1.8vh);line-height:1.2;margin:0}
.combat-projection .combat-name{min-width:0;max-width:100%;margin:0;font-size:min(3vw,4vh);line-height:1.1;max-height:2.2em;overflow-wrap:anywhere;letter-spacing:0}
.combat-projection .combat-team{min-width:0;min-height:1.2em;max-width:100%;font-size:min(1.5vw,2.2vh);line-height:1.2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.combat-projection .combat-score{min-width:0;min-height:0;max-width:100%;display:flex;align-items:center;justify-content:center;margin:0;font-size:min(23vw,34vh);font-size:min(23vw,34vh,62cqh);line-height:.95;overflow:hidden;font-variant-numeric:tabular-nums}
.combat-projection .score-label{font-size:min(1.2vw,1.8vh);line-height:1.2;margin:0;padding:0;align-self:end}
.combat-projection footer{display:flex;justify-content:space-between;min-width:0;gap:2vw}
.combat-projection .tv-result{min-width:0;line-height:1.2;font-size:min(2.2vw,3.2vh);overflow-wrap:anywhere}
.combat-projection .tv-actions{flex-shrink:0;gap:.6vw}
.combat-projection>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;width:100%}
.combat-projection>header .unp-brand{flex:0 1 auto;min-width:0}
.combat-projection .combat-meta{flex:0 0 auto;margin-left:auto;max-width:none;text-align:right;white-space:nowrap;overflow-wrap:normal;font-size:min(1.4vw,2.3vh)}
@media print{body{background:white}body::before,body::after,.unp-photo-credit{display:none}header,.reports-page header{background:white;backdrop-filter:none;border:0}.unp-brand-copy strong,.unp-brand-copy small,.unp-brand-copy .unp-subtitle{color:black}.match{background:white;box-shadow:none}footer{color:black}}
