/* MOTORSPORT MANAGER — DA « broadcast » sombre */
:root {
  --bg: #06080c; --bg2: #0b0f15; --panel: #10161f; --panel2: #151d28; --panel3: #1b2533;
  --line: #1f2937; --line2: #2a3646; --tx: #e9eef5; --tx2: #c3ccd8; --mut: #8693a5; --mut2: #5b687a;
  --acc: #ff2d3d; --acc-d: #c51d2b; --gold: #f5c400; --good: #2ee59d; --bad: #ff4d5e; --warn: #ffb020; --blue: #3aa0ff;
  --team: #ff2d3d; --team2: #ffffff;
  --r: 4px; --shadow: 0 10px 30px rgba(0,0,0,.45);
  --font: 'Titillium Web', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--acc); color: #fff; }
.num, .tab { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #243041; border-radius: 6px; border: 2px solid var(--bg2); } ::-webkit-scrollbar-track { background: transparent; }
img.flag { width: 18px; height: 13.5px; border-radius: 2px; vertical-align: -1px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
img.flag.lg { width: 28px; height: 21px; }

/* ---------- Écrans plein (auth, menu) ---------- */
.fullscreen { position: fixed; inset: 0; overflow: auto; background:
  radial-gradient(1200px 600px at 80% -10%, rgba(255,45,61,.18), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(58,160,255,.12), transparent 60%),
  linear-gradient(180deg, #07090d, #05070a); }
.fullscreen::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.018) 46px 48px); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; line-height: .95; }
.brand .mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--acc); clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); font-size: 15px; color: #fff; }
.brand small { display: block; font-size: 11px; color: var(--mut); letter-spacing: .3em; font-weight: 600; }
.center-card { position: relative; max-width: 460px; margin: 8vh auto; padding: 0 16px; }
.hero-title { font-size: clamp(34px, 6vw, 64px); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; margin: 26px 0 8px; }
.hero-title em { font-style: normal; color: var(--acc); }
.hero-sub { color: var(--tx2); margin: 0 0 26px; font-size: 16px; }

/* ---------- Cartes / panneaux ---------- */
.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card > .hd h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--tx2); flex: 1; }
.card > .bd { padding: 14px 16px; }
.card.flush > .bd { padding: 0; }
.card.accent { border-top: 2px solid var(--team); }
.card .hd .act { font-size: 12px; color: var(--mut); }
.card .hd .act:hover { color: var(--tx); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.mut { color: var(--mut); } .mut2 { color: var(--mut2); } .small { font-size: 12.5px; } .tiny { font-size: 11px; } .big { font-size: 22px; font-weight: 700; } .huge { font-size: 38px; font-weight: 900; line-height: 1; }
.up { text-transform: uppercase; letter-spacing: .1em; } .b { font-weight: 700; } .nowrap { white-space: nowrap; } .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); } .gold { color: var(--gold); }
.sep { height: 1px; background: var(--line); margin: 12px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; } .kv > :nth-child(odd) { color: var(--mut); }
.stat { padding: 12px 14px; } .stat .l { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .12em; } .stat .v { font-size: 24px; font-weight: 700; margin-top: 2px; } .stat .s { font-size: 12px; color: var(--mut); }
.empty { padding: 30px 16px; text-align: center; color: var(--mut); }

/* ---------- Boutons / champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--panel3); border-color: #3a4a5f; }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.pri:hover { background: #ff4250; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.good { background: #0f3b2a; border-color: #1d6b4c; color: var(--good); }
.btn.danger { color: var(--bad); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .1em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r); padding: 10px 12px; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line2); background: var(--bg2); border-radius: var(--r); }
input[type=range] { width: 100%; accent-color: var(--acc); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--mut); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--tx); border-bottom-color: var(--acc); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.seg button { background: var(--bg2); border: 0; padding: 6px 12px; cursor: pointer; color: var(--mut); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--panel3); color: var(--tx); box-shadow: inset 0 -2px 0 var(--acc); }
.err { color: var(--bad); font-size: 13.5px; min-height: 18px; }

/* ---------- Badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--line2); background: var(--panel2); white-space: nowrap; }
.cls { display: inline-block; padding: 1px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 2px; color: #0b0e13; white-space: nowrap; }
.fia { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; font-size: 12px; font-weight: 900; color: #0b0e13; }
.carnum { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; font-weight: 900; font-size: 13px; border-radius: 3px; border-left: 3px solid var(--c, #888); background: #fff; color: #0b0e13; }
.teamchip { display: inline-flex; align-items: center; gap: 7px; }
.teamchip i { width: 6px; height: 18px; display: inline-block; border-radius: 1px; background: linear-gradient(180deg, var(--c1) 0 60%, var(--c2) 60% 80%, var(--c3) 80%); flex: none; }
.rating { display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 3px; font-weight: 900; font-size: 14px; color: #0b0e13; }
.tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--mut); font-weight: 700; }

/* ---------- Avatar pilote ---------- */
.avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--panel3); display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 14px; box-shadow: 0 0 0 2px var(--panel2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.avatar.lg { width: 140px; height: 140px; border-radius: 6px; font-size: 44px; }
.avatar.md { width: 56px; height: 56px; font-size: 18px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar svg { width: 100%; height: 100%; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--mut); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255,255,255,.03); }
.tbl tr.me td { background: rgba(255,45,61,.08); }
.tbl tr.me td:first-child { box-shadow: inset 3px 0 0 var(--acc); }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tblwrap { overflow: auto; max-width: 100%; }

/* ---------- Barres ---------- */
.bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--c, var(--acc)); border-radius: 3px; }
.attr { display: grid; grid-template-columns: 150px 1fr 30px; align-items: center; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.attr .v { text-align: right; font-weight: 700; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); height: 100vh; }
.side { grid-row: 1 / 3; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side .brand { padding: 14px 16px; height: 64px; border-bottom: 1px solid var(--line); font-size: 15px; }
.side nav { overflow-y: auto; padding: 8px 0 14px; flex: 1; }
.side .grp { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--mut2); padding: 14px 18px 6px; font-weight: 700; }
.side a { display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: var(--tx2); font-weight: 600; font-size: 14px; position: relative; }
.side a svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.side a:hover { background: rgba(255,255,255,.03); color: var(--tx); }
.side a.on { color: #fff; background: linear-gradient(90deg, rgba(255,45,61,.16), transparent); }
.side a.on::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--acc); }
.side a .cnt { margin-left: auto; background: var(--acc); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 10px; font-weight: 700; }
.top { display: flex; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), var(--bg)); min-width: 0; }
.top .team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top .team .logo { width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; }
.top .team b { display: block; font-size: 15px; } .top .team span { font-size: 12px; color: var(--mut); }
.top .date { margin-left: auto; text-align: right; line-height: 1.15; }
.top .date b { display: block; font-size: 14px; text-transform: capitalize; } .top .date span { font-size: 12px; color: var(--mut); }
.top .money { text-align: right; line-height: 1.15; padding-left: 16px; border-left: 1px solid var(--line); }
.top .money b { display: block; font-size: 16px; } .top .money span { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .1em; }
.btn.continue { background: var(--acc); border: 0; color: #fff; padding: 11px 20px; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.btn.continue:hover { background: #ff4250; }
.main { overflow: auto; min-height: 0; position: relative; }
.page { padding: 20px 22px 60px; max-width: 1500px; margin: 0 auto; }
.page-h { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.page-h .sub { color: var(--mut); font-size: 14px; margin-top: 4px; }
.page-h .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.burger { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 56px minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .top { padding: 0 10px; gap: 10px; } .top .team span, .top .date span { display: none; } .top .money { display: none; }
  .burger { display: inline-flex; }
  .btn.continue { padding: 9px 12px; font-size: 13px; }
  .page { padding: 14px 16px 60px; }
  .page-h h1 { font-size: 22px; }
  .top .date b { font-size: 12px; }
  .attr { grid-template-columns: 120px 1fr 28px; }
}

/* ---------- Overlay / modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(3,5,8,.72); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal { width: min(640px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; box-shadow: var(--shadow); }
.modal.wide { width: min(980px, 100%); }
.modal .hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal .hd h3 { margin: 0; font-size: 18px; flex: 1; }
.modal .bd { padding: 16px 18px; }
.modal .ft { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.x { background: none; border: 0; color: var(--mut); font-size: 22px; cursor: pointer; line-height: 1; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--blue); padding: 10px 14px; border-radius: 4px; box-shadow: var(--shadow); font-size: 14px; animation: tin .2s ease-out; }
.toast.ok { border-left-color: var(--good); } .toast.ko { border-left-color: var(--bad); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.loading { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(3,5,8,.8); }
.loading .box { text-align: center; }
.spin { width: 36px; height: 36px; border: 3px solid var(--line2); border-top-color: var(--acc); border-radius: 50%; animation: sp 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- Écrans spécifiques ---------- */
.slot { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); margin-bottom: 10px; }
.slot .n { font-size: 26px; font-weight: 900; color: var(--mut2); width: 26px; }
.choice { border: 1px solid var(--line2); border-radius: var(--r); padding: 14px; cursor: pointer; background: var(--panel); transition: border-color .15s, background .15s; }
.choice:hover { border-color: #3a4a5f; }
.choice.on { border-color: var(--acc); background: rgba(255,45,61,.07); }
.choice h4 { margin: 0 0 4px; font-size: 16px; }
.nextev { position: relative; overflow: hidden; }
.nextev .bg { position: absolute; inset: 0; opacity: .5; }
.nextev .content { position: relative; padding: 18px; }
.trackmap { width: 100%; height: 100%; display: block; }
.mailitem { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mailitem:hover { background: rgba(255,255,255,.02); }
.mailitem.unread b { color: #fff; } .mailitem.unread::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-top: 7px; flex: none; }
.mailitem:not(.unread)::before { content: ''; width: 6px; flex: none; }
.newsitem { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.newsitem .t { font-weight: 700; }
.driver-hero { display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 760px) { .driver-hero { grid-template-columns: 90px 1fr; } .driver-hero .avatar.lg { width: 90px; height: 90px; } .driver-hero > :last-child { grid-column: 1 / -1; } }
.discs { display: flex; gap: 10px; }
.disc { text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); min-width: 84px; background: var(--bg2); }
.disc .v { font-size: 26px; font-weight: 900; line-height: 1.1; }
.disc .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--mut); }
.carcard { overflow: hidden; }
.carcard .ph { aspect-ratio: 16/8; background: #0a0d12 center/cover no-repeat; position: relative; }
.carcard .ph .credit { position: absolute; right: 6px; bottom: 4px; font-size: 9.5px; color: rgba(255,255,255,.65); text-shadow: 0 1px 2px #000; max-width: 80%; text-align: right; }
.facility { padding: 16px; }
.lvl { display: flex; gap: 4px; margin: 8px 0; } .lvl i { flex: 1; height: 6px; background: var(--bg); border-radius: 2px; } .lvl i.on { background: var(--team); }
.setup-row { display: grid; grid-template-columns: 170px 1fr 220px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.setup-row .fb { font-size: 12.5px; }
.fb.ok { color: var(--good); } .fb.close { color: #b8e06a; } .fb.off { color: var(--warn); } .fb.bad { color: var(--bad); }
@media (max-width: 760px) { .setup-row { grid-template-columns: 1fr; } }

/* ---------- Course en direct ---------- */
.race { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr) minmax(280px, 340px); grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 64px); }
.race .rbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--bg2); flex-wrap: wrap; }
.race .clock { font-size: 26px; font-weight: 900; letter-spacing: .02em; }
.race .flag { padding: 4px 10px; font-weight: 900; font-size: 12px; letter-spacing: .1em; border-radius: 2px; text-transform: uppercase; }
.flag.green { background: #0f8a4b; } .flag.fcy { background: var(--gold); color: #000; } .flag.sc { background: #ff8a00; color: #000; } .flag.chequered { background: repeating-conic-gradient(#fff 0 25%, #000 0 50%) 0 0/10px 10px; color: #000; text-shadow: 0 0 3px #fff; }
.race .tower { overflow: auto; border-right: 1px solid var(--line); background: var(--bg2); }
.tower table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tower td { padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,.035); white-space: nowrap; }
.tower tr.me td { background: rgba(255,45,61,.12); }
.tower tr.out td { opacity: .4; }
.tower tr.pit td.st { color: var(--warn); font-weight: 700; }
.tower tr { cursor: pointer; } .tower tr:hover td { background: rgba(255,255,255,.04); }
.tower .p { width: 26px; text-align: right; font-weight: 900; }
.tower .ty { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid; vertical-align: -3px; background: #111; }
.race .view { position: relative; min-width: 0; min-height: 0; background: #05070a; }
.race .view canvas { width: 100%; height: 100%; display: block; }
.race .view .vbar { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 3; flex-wrap: wrap; }
.race .side-r { overflow: auto; border-left: 1px solid var(--line); background: var(--bg2); }
.pcar { border-bottom: 1px solid var(--line); padding: 10px 12px; }
.pcar h4 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.gauge { display: grid; grid-template-columns: 62px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; margin: 5px 0; }
.push { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 8px 0; }
.push button { padding: 5px 2px; font-size: 11px; background: var(--bg); border: 1px solid var(--line2); border-radius: 3px; cursor: pointer; color: var(--mut); font-weight: 700; }
.push button.on { background: var(--acc); color: #fff; border-color: var(--acc); }
.log { font-size: 12.5px; }
.log div { padding: 5px 12px; border-bottom: 1px solid rgba(255,255,255,.035); }
.log .t { color: var(--mut2); margin-right: 6px; font-variant-numeric: tabular-nums; }
.log .crit { color: var(--bad); } .log .flag { color: var(--gold); } .log .pen { color: #ff9a62; } .log .player { color: #8fd3ff; } .log .warn { color: var(--warn); }
.speed button { min-width: 42px; }
@media (max-width: 1200px) { .race { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); } .race .side-r { grid-column: 1 / -1; max-height: 40vh; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .race { grid-template-columns: 1fr; height: auto; } .race .view { height: 52vh; } .race .tower { max-height: 45vh; } }
.btn svg { width: 16px; height: 16px; flex: none; }
.side .col .btn { justify-content: flex-start; }
@media (max-width: 680px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 10px 12px; } .stat .v { font-size: 19px; } .stat .s { display: none; }
  #nextev .content { flex-direction: column; }
  #nxmap { width: 100% !important; height: 170px !important; }
  .tbl { font-size: 13px; } .tbl td, .tbl th { padding: 6px 7px; }
  .discs .disc { min-width: 64px; padding: 6px 8px; } .disc .v { font-size: 20px; }
}
