:root{
 --display-font:"SchaboCustom",Impact,"Arial Narrow",sans-serif;
 --ui-font:"OxaniumCustom",Arial,sans-serif;
 --red:#e20026;--deep-red:#59000e;
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden;background:transparent}
#viewport{position:fixed;inset:0;overflow:hidden;background:transparent}
#stage{position:absolute;width:1920px;height:1080px;transform-origin:0 0;overflow:hidden;isolation:isolate;color:#fff;background:transparent}
/* The ONLY animated background layer is the original unmodified 20-second MP4. */
#backgroundVideo{position:absolute;inset:0;width:1920px;height:1080px;object-fit:fill;pointer-events:none;z-index:0;display:block}
#stage.mode-animated{background:#000}
#stage.mode-static{background:#000 url('/media/original-still.jpg') center/100% 100% no-repeat}
#stage.mode-static #backgroundVideo,#stage.mode-transparent #backgroundVideo{display:none!important}
#stage.mode-transparent{background:transparent!important}
#stage.is-hidden{opacity:0;pointer-events:none}
#stage.entering{animation:appear .48s ease-out both}
#stage.exiting{animation:disappear .34s ease-in both}
@keyframes appear{0%{opacity:0;filter:blur(8px)}100%{opacity:1;filter:blur(0)}}
@keyframes disappear{0%{opacity:1;filter:blur(0)}100%{opacity:0;filter:blur(7px)}}
.portrait-zone{position:absolute;left:0;top:0;width:760px;height:1080px;z-index:1}
.player-photo{position:absolute;left:0;bottom:0;width:735px;height:1000px;object-fit:contain;object-position:bottom left;filter:drop-shadow(0 10px 16px rgba(0,0,0,.18))}
.player-photo[hidden]{display:none}
.nameplate{position:absolute;left:63px;bottom:92px;width:635px;height:118px;background:#e5e5e5;display:flex;overflow:hidden;box-shadow:0 8px 24px #0004}
.logo-box{height:118px;width:139px;flex:0 0 139px;background:var(--red);display:flex;align-items:center;justify-content:center;padding:24px}
.logo-box img{width:100%;height:100%;object-fit:contain}
.nameplate-stripe{position:absolute;width:10px;height:47px;left:154px;top:0;background:var(--red)}
.player-copy{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:8px 20px 9px 39px}
#playerName{font:400 68px/.90 var(--display-font);color:#050505;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#teamName{margin-top:8px;font:600 20px/1 var(--ui-font);color:#d50022;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stats-zone{position:absolute;left:765px;top:42px;width:1093px;height:900px;z-index:2;display:flex;flex-direction:column;align-items:stretch}
.sponsor{height:120px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px}
#presentedBy{font:600 21px/1.1 var(--ui-font);letter-spacing:1.3px}
.sponsor img{display:block;width:310px;height:61px;object-fit:contain}
#mainTitle{font:400 116px/.96 var(--display-font);color:var(--red);white-space:nowrap;text-align:center;margin:0 0 8px;letter-spacing:.5px}
.map-row{height:57px;display:flex;align-items:center;justify-content:center}
#mapName{display:inline-block;font:600 26px/1 var(--ui-font);padding:5px 13px;background:#eee;border:2px solid #aaa;color:#101010;min-width:113px;text-align:center}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:245px 250px;gap:18px 12px;margin-top:17px}
.stat{min-width:0;min-height:0;display:flex;flex-direction:column;text-align:center;align-items:stretch}
.stat-label{height:52px;flex:0 0 52px;margin:0 10px 7px;background:var(--red);display:flex;justify-content:center;align-items:center;padding:3px 6px;white-space:nowrap;overflow:hidden;font:600 30px/1 var(--ui-font)}
.stat:nth-child(4) .stat-label{font-size:20px}
.stat:nth-child(6) .stat-label{font-size:28px}
.stat-value-box{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;overflow:hidden;padding:6px 8px}
.stat-value{display:block;font:400 143px/.88 var(--display-font);white-space:nowrap;max-width:100%;transform-origin:center;transform:translateY(3px)}
.top-stat .stat-value-box{border:3px solid var(--red);background:#050304}
.bottom-stat .stat-value-box{background:var(--red)}
.bottom-stat .stat-value{font-size:136px;transform:translateY(4px)}
.stat-rank{height:39px;flex:0 0 39px;display:flex;align-items:center;justify-content:center;background:var(--deep-red);font:400 32px/1 var(--display-font)}
.stat-rank:empty{visibility:hidden}
