:root{color-scheme:dark;--bg:#0b1016;--panel:#141c25;--edge:#354451;--text:#f7f8fa;--muted:#b4bec9;--red:#ef324b;font:16px/1.5 Inter,system-ui,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}header,footer{border-block:1px solid var(--edge);background:#101720}header>div,footer>div,main{max-width:1440px;margin:auto;padding:18px clamp(16px,4vw,64px)}header>div,nav,.tools,.bar,.actions,footer>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}header img{width:142px;display:block}header nav{flex:1}a{color:inherit;text-underline-offset:4px}a:hover{color:#ff8794}nav a,.button,button,select,input,summary{font:inherit;min-height:44px}nav a,.button,button{display:inline-flex;align-items:center;text-decoration:none;padding:8px 12px}button,.button,select,input{border:1px solid var(--edge);background:#192430;color:inherit;border-radius:6px}button,select,summary{cursor:pointer}select,input{padding:8px 12px;max-width:100%}:focus-visible{outline:3px solid #ffbf57;outline-offset:3px}.primary{background:#ba1731;border-color:#d92540;color:white}.language{margin-left:auto}main{min-height:66vh}section{margin:30px 0}article,details,.panel,.livebox{border:1px solid var(--edge);border-radius:8px;background:var(--panel);padding:16px}details{margin:8px 0}summary{padding:8px;font-weight:650}h1,h2,h3{line-height:1.13;margin:0 0 12px}h1{font-size:clamp(2rem,4.7vw,4rem)}h2{font-size:clamp(1.4rem,2.4vw,2.1rem)}h3{font-size:1.15rem}p{margin:8px 0}.muted,small{color:var(--muted)}.bar{justify-content:space-between;margin:12px 0}.bar h2{margin:0}.hero{padding:clamp(24px,5vw,65px);background:linear-gradient(90deg,#101720 2%,#101720eb 40%,#10172045),url(assets/media/hero-drift.webp) center/cover;border:1px solid var(--edge);border-radius:8px}.hero p{color:white}.livebox{border-left:4px solid var(--red);margin-top:10px}.badge{display:inline-block;background:#243441;padding:3px 10px;border-radius:5px;font-size:.87rem}.score{min-width:80px;padding:8px 12px;background:#1e2935;border-radius:5px}.score b{display:block;font-size:1.25rem}.grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}.drivers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.tile{display:flex;flex-direction:column;padding:0;overflow:hidden;background:var(--panel);border:1px solid var(--edge);border-radius:8px;text-decoration:none}.tile img,.initials,.champ-picture{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center 25%}.initials,.champ-picture{display:grid;place-items:center;background:linear-gradient(145deg,#253343,#111922);color:#aebbc8;font-weight:800;font-size:2rem}.champ-picture{aspect-ratio:3/1}.champ-picture img{width:52px;height:52px;object-fit:contain}.tile strong,.tile small,.tile .open{margin:10px 12px 0}.tile .open{margin-bottom:12px;color:#ff8897}.portrait{width:clamp(120px,22vw,235px);border-radius:8px}.gallery img{max-width:min(100%,340px);max-height:280px;object-fit:contain}.profile{display:flex;align-items:center;gap:22px}.text{white-space:pre-line}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}td,th{padding:10px;text-align:right;border-bottom:1px solid var(--edge)}td:first-child,th:first-child{text-align:left}th{background:#1e2934}.mobile{display:none}.bracket{display:flex;overflow:auto;gap:14px;align-items:stretch}.round{min-width:165px;flex:1;display:flex;flex-direction:column;justify-content:space-around;gap:8px}.round h4{margin:0}.match{position:relative;font-size:.83rem;padding:7px;background:#192430}.match:after{content:'';position:absolute;right:-15px;top:50%;width:14px;border-top:1px solid var(--edge)}.round:last-child .match:after{display:none}.match p{display:flex;align-items:center;gap:5px}.tiny{width:25px;height:25px;object-fit:cover;border-radius:5px}.winner{color:#82e2b3}.empty{padding:20px;color:var(--muted)}.notice{color:#ffc666}.split{display:grid;grid-template-columns:1fr 1fr;gap:16px}.line{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.list{display:grid;gap:8px}footer{margin-top:28px}footer>div{justify-content:space-between}.tabs{margin:20px 0}.tabs a[aria-current=page]{background:#b81e36}.phones{display:none}
@media(max-width:980px){.drivers{grid-template-columns:repeat(3,minmax(0,1fr))}header nav{order:3;width:100%;font-size:.9rem}}
@media(max-width:680px){.drivers{grid-template-columns:repeat(2,minmax(0,1fr))}.grid,.split{grid-template-columns:1fr}.desktop{display:none}.mobile,.phones{display:block}.bar{align-items:flex-start}.profile{align-items:flex-start;flex-direction:column}.tools{gap:6px}header nav{gap:0}.tabs{flex-wrap:nowrap;overflow:auto}.tabs a{white-space:nowrap}main{padding:15px}.hero{padding:24px 16px}.bracket.full{display:flex}.score{min-width:55px}.table-short td,.table-short th{padding:6px}.tile .open{min-height:25px}summary{min-height:44px}.champ-picture{aspect-ratio:3/1}}
@media(max-width:980px){header>div{display:grid;grid-template-columns:1fr auto;gap:8px}header nav{grid-column:1/-1;grid-row:2;display:flex;gap:4px;justify-content:space-between}.language{grid-column:2;grid-row:1}header nav a{padding-inline:6px}}
@media(max-width:680px){.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.tabs a{justify-content:center;white-space:normal}.match p{overflow-wrap:anywhere}}
.match p:has(.qual-position){flex-wrap:wrap}.match .qual-position{flex-basis:100%;font-weight:normal}
.champ-picture img.custom-logo{width:100%;height:100%;min-height:0;object-fit:contain;padding:10px}.champ-picture:has(.custom-logo){grid-template-rows:minmax(0,1fr)}.champ-detail-logo{display:block;max-width:min(240px,100%);height:100px;object-fit:contain;object-position:left;margin:16px 0}
