@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');
@font-face{font-family:hyperSuperFast;src:url('/fonts/HyperSuperFast.ttf')}
:root{--page-bg:#fff;--text-color:#181818;--panel-bg:#f5f5f5}
.darkmode{--page-bg:#0f0f10;--text-color:#ebebeb;--panel-bg:#151515}
*{box-sizing:border-box}
body{margin:0;background:var(--page-bg);color:var(--text-color)}
.primary-header .primary-navigation a{font-family:'Titillium Web',sans-serif!important}
.theme-toggle-wrap{max-width:820px;margin:10px auto 0;padding:0 12px;display:flex;justify-content:flex-end}
.theme-toggle{font-family:hyperSuperFast;background:#171717;color:white;border:1px solid rgba(92,192,179,.45);border-radius:999px;padding:8px 12px;cursor:pointer}
.picks-wrap{max-width:820px;margin:18px auto 40px;padding:0 12px}
.race-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:16px;height:160px;display:grid;grid-template-columns:52px 1fr 52px;align-items:center;box-shadow:0 0 18px #0003;margin-bottom:14px}
.race-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.race-overlay{position:absolute;inset:0;background:rgba(0,0,0,.58);z-index:-1}
.race-hero-content{text-align:center;padding:0 8px;color:white}
.race-title{font:22px hyperSuperFast,sans-serif;letter-spacing:1px;text-shadow:0 2px 4px #000}
.race-sub{margin-top:8px;font:14px 'Titillium Web',sans-serif;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px}
.race-chip{font-family:hyperSuperFast;background:rgba(92,192,179,.25);border:1px solid rgba(92,192,179,.55);border-radius:999px;padding:6px 10px}
.race-nav{z-index:2;appearance:none;border:0;background:transparent;color:white;font-size:42px;cursor:pointer;line-height:1;opacity:.9}.race-nav:hover{opacity:1}
.stats-grid,.popular-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stat-card,.popular-card{background:#080808;color:white;border:1px solid rgba(255,183,3,.25);border-radius:14px;text-align:center;padding:12px 8px}
.stat-card strong{font:26px hyperSuperFast;display:block}.stat-card strong small{font-size:14px}.stat-card span{font:12px hyperSuperFast;color:#bbb}
.popular-section{margin:19px 0 14px}.popular-section h2,.players-header h2{font:17px hyperSuperFast;letter-spacing:1px;margin:0 0 10px}.popular-card{box-shadow:0 0 14px rgba(255,183,3,.08)}
.popular-rank{font:12px hyperSuperFast;color:#e7c67a;margin-bottom:3px}
.popular-images{height:94px;display:flex;align-items:center;justify-content:center;gap:8px}.popular-number{max-width:78px;max-height:60px;object-fit:contain}.popular-number-fallback{font:24px hyperSuperFast}.popular-portrait{height:90px;max-width:92px;object-fit:contain;align-self:end}
.popular-driver{font:600 15px 'Titillium Web',sans-serif}.popular-bottom{display:flex;align-items:center;justify-content:center;gap:8px;font:13px 'Titillium Web',sans-serif;color:#ccc;margin-top:5px}.popular-bottom img{width:37px;height:25px;object-fit:contain}
.players-panel{background:rgba(0,0,0,.94);border:1px solid rgba(92,192,179,.35);border-radius:14px;padding:12px;color:white}
.players-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.players-header h2{margin:0}.players-header span{color:#aaa;font:13px 'Titillium Web',sans-serif}
.player-controls{display:flex;gap:8px;margin:12px 0 6px}.player-controls input,.player-controls select{min-width:0;padding:9px 10px;border-radius:9px;border:1px solid #444;background:#202020;color:#fff;font:14px 'Titillium Web',sans-serif}.player-controls input{flex:1}.player-controls select{max-width:160px}
.ranking-note{font:12px 'Titillium Web',sans-serif;color:#999;margin:0 0 12px}
.player-pick{display:grid;grid-template-columns:minmax(85px,1.05fr) 75px minmax(95px,1.3fr) 64px;align-items:center;gap:10px;padding:7px 10px;min-height:76px;background:#1e1e1e;border:1px solid #303030;border-radius:11px;margin-bottom:7px}.player-pick.my-pick{border-color:#5cc0b3;background:#20322f}
.player-identity{min-width:0;display:flex;flex-direction:column;gap:4px}.player-identity small{font:10px hyperSuperFast;color:#aaa}.player-identity a{color:#fff;text-decoration:none;font:600 15px 'Titillium Web',sans-serif;overflow-wrap:anywhere}.player-identity a:hover{color:#5cc0b3;text-decoration:underline}
.car-number{display:flex;justify-content:center;align-items:center;min-width:0}.car-number img{width:70px;max-height:45px;object-fit:contain}.number-fallback{font:22px hyperSuperFast;color:#fff}
.driver-info{min-width:0}.driver-info strong{font:600 15px 'Titillium Web',sans-serif;line-height:1.2;display:block;overflow-wrap:anywhere}.manufacturer{display:flex;align-items:center;gap:6px;color:#aaa;font:12px 'Titillium Web',sans-serif;margin-top:4px}.manufacturer img{width:32px;height:22px;object-fit:contain}
.driver-photo{height:60px;display:flex;align-items:end;justify-content:center;overflow:hidden}.driver-photo img{max-height:62px;max-width:60px;object-fit:contain}
.empty-state,.no-matches{text-align:center;padding:25px;font:15px 'Titillium Web',sans-serif}.empty-state{background:var(--panel-bg);border-radius:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.race-hero{height:175px;grid-template-columns:36px 1fr 36px}.race-title{font-size:17px}.race-sub{font-size:12px}.stat-card strong{font-size:19px}.stat-card span{font-size:9px}.popular-images{height:72px}.popular-number{max-width:44px}.popular-portrait{height:70px;max-width:53px}.popular-driver{font-size:12px}.popular-bottom{font-size:11px}.popular-bottom img{display:none}.player-pick{grid-template-columns:minmax(67px,1fr) 49px minmax(80px,1.25fr) 44px;gap:5px;padding:7px 6px;min-height:70px}.car-number img{width:48px}.driver-info strong,.player-identity a{font-size:12px}.player-identity small{font-size:8px}.manufacturer{font-size:10px}.manufacturer img{width:23px;height:17px}.driver-photo{height:54px}.driver-photo img{max-width:43px;max-height:55px}.player-controls select{max-width:125px;font-size:12px}}
/* Hidden cards and navigation arrows must remain hidden despite layout display rules. */
[hidden]{display:none!important}

/* Weekly manufacturer popularity stat */
.stat-manufacturer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:72px}
.stat-manufacturer-logo{display:block;width:94px;max-width:85%;height:30px;object-fit:contain}
.stat-manufacturer .stat-manufacturer-fallback{font-size:18px;line-height:30px}
.stat-manufacturer .stat-manufacturer-count{font:11px 'Titillium Web',sans-serif;color:#9fcfc9}
@media(max-width:600px){.stat-manufacturer-logo{width:64px;height:24px}.stat-manufacturer .stat-manufacturer-fallback{font-size:12px;line-height:24px}.stat-manufacturer .stat-manufacturer-count{font-size:10px}}
