/* Racing – Motorsport-Look */
:root {
  --bg: #0b0c0f;
  --panel: #14161b;
  --panel2: #1b1e25;
  --stage: #111318;
  --line: #2a2e38;
  --line2: #3a3f4b;
  --text: #eef0f4;
  --muted: #9aa1ad;
  --accent: #ff5a1f;
  --lime: #c8ff2e;
  --yellow: #ffd400;
  --red: #ff3b3b;
  --green: #2bd65a;
  --head: 'Chakra Petch', system-ui, sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --cut: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 8px); }
a { color: var(--accent); }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.boot { min-height: 100vh; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-style: italic; font-size: 34px; letter-spacing: 1px; }
.boot span, .logo span { color: var(--accent); }

/* ---------- Layout */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px 64px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11,12,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { padding-bottom: 0; display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: var(--head); font-weight: 700; font-style: italic; font-size: 24px; letter-spacing: .5px; white-space: nowrap; }
.logo:hover { color: var(--text); }
.flag { width: 32px; height: 32px; border: 2px solid var(--text); background-image: conic-gradient(var(--text) 25%, var(--bg) 0 50%, var(--text) 0 75%, var(--bg) 0); background-size: 12px 12px; flex: none; }
.nav { display: flex; gap: 0; flex: 1; flex-wrap: nowrap; justify-content: center; }
.nav a { font-family: var(--head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; padding: 23px 9px 20px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); border-color: var(--accent); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--text); }
.user-chip:hover { color: var(--text); border-color: var(--line2); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 14px; background: var(--accent); color: var(--bg); flex: none; }
.user-chip b { font-family: var(--head); font-size: 14px; display: block; line-height: 1.1; }
.user-chip small { font-size: 12px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); color: var(--text); position: relative; flex: none; }
.icon-btn:hover { border-color: var(--line2); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--accent); color: var(--bg); font-family: var(--head); font-weight: 700; font-size: 11px; }
.burger { display: none; }

.bottomnav { display: none; }

@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: grid; }
  .topbar .wrap { justify-content: space-between; }
  .nav.open { display: flex; flex-direction: column; flex-basis: 100%; order: 10; padding-bottom: 10px; }
  .nav.open a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .nav.open a.on { border-left-color: var(--accent); border-bottom-color: var(--line); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 14px 96px; }
  .user-chip .uc-text { display: none; }
  .topbar .admin-ico { display: none; }
  .logo { font-size: 19px; gap: 9px; }
  .flag { width: 26px; height: 26px; background-size: 10px 10px; }
  .topbar .wrap { min-height: 60px; }
  .list-row { padding: 12px 14px; gap: 10px; }
  .user-chip { padding: 4px; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--stage); border-top: 1px solid var(--line); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 46px; justify-content: center; text-decoration: none; color: var(--muted); font-family: var(--head); font-weight: 600; font-size: 11px; text-transform: uppercase; }
  .bottomnav a.on { color: var(--accent); }
}

/* ---------- Typo & Bausteine */
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; padding: 26px 0 20px; }
.kicker { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(30px, 4vw, 42px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; font-style: normal; }
.hero-title { font-size: clamp(52px, 8vw, 96px); line-height: .92; letter-spacing: -1px; }
.hero-title em { color: var(--accent); font-style: italic; }
.lead { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 540px; margin: 0; }

.tag { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; background: var(--accent); color: var(--bg); transform: skewX(-14deg); white-space: nowrap; }
.tag > span { display: inline-block; transform: skewX(14deg); }
.tag.lime { background: var(--lime); } .tag.yellow { background: var(--yellow); } .tag.white { background: var(--text); } .tag.gray { background: var(--line2); color: var(--text); } .tag.red { background: var(--red); color: #fff; } .tag.green { background: var(--green); }
.chip { font-family: var(--head); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; padding: 14px 24px; min-height: 46px; border: none; color: var(--bg); background: var(--accent); clip-path: var(--cut); text-decoration: none; white-space: nowrap; }
.btn:hover { background: #ff7440; color: var(--bg); }
.btn.dark { background: var(--panel2); color: var(--text); }
.btn.dark:hover { background: #262a33; color: var(--text); }
.btn.lime { background: var(--lime); }
.btn.big { font-size: 22px; padding: 20px 52px; letter-spacing: 2px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.btn.small { font-size: 13px; padding: 9px 14px; min-height: 38px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; padding: 10px 14px; min-height: 40px; border: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; white-space: nowrap; }
.btn-line:hover { border-color: var(--line2); color: var(--text); }
.btn-line.accent { border-color: var(--accent); color: var(--accent); }
.btn-line.danger { border-color: rgba(255,59,59,.5); color: #ff7a7a; }
.btn-line.danger:hover { border-color: var(--red); }

.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { font-family: var(--head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; padding: 9px 13px; min-height: 40px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.panel { background: var(--panel); border: 1px solid var(--line); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-label { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.panel-body { padding: 16px 18px; }
.checker { height: 10px; background-image: conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0); background-size: 10px 10px; opacity: .9; }

.grid-2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.grid-2 > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.grid-2 > .side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 18px 20px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--head); font-weight: 700; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }

/* Listen */
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #1f222a; text-decoration: none; color: var(--text); flex-wrap: nowrap; }
.list-row.wrap { flex-wrap: wrap; }
.list-row:last-child { border-bottom: none; }
a.list-row:hover { background: rgba(255,255,255,.025); color: var(--text); }
.list-row.me { background: rgba(255,90,31,.08); }
.rank { width: 28px; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--muted); flex: none; }
.rank.p1 { color: var(--yellow); } .rank.p2 { color: #c9ced8; } .rank.p3 { color: #ff8a4c; }
.name-col { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.name-col b { font-family: var(--head); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-col small { font-size: 12px; color: var(--muted); }
.num { font-family: var(--head); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }

.race-card { display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); flex-wrap: wrap; }
.race-card:hover { border-color: var(--line2); color: var(--text); }
.date-box { width: 58px; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); padding-right: 14px; flex: none; }
.date-box b { font-family: var(--head); font-size: 26px; line-height: 1; }
.date-box small { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.race-card .info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.race-card .info b { font-family: var(--head); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.race-card .info small { font-size: 14px; color: var(--muted); }
.race-card .time { font-family: var(--head); font-weight: 700; font-size: 18px; min-width: 56px; text-align: right; }

.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.empty b { display: block; font-family: var(--head); color: var(--text); font-size: 17px; text-transform: uppercase; margin-bottom: 6px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; padding: 26px 0 6px; position: relative; }
.hero::before { content: ''; position: absolute; right: -200px; top: -60px; width: 760px; height: 460px; background: linear-gradient(115deg, transparent 40%, rgba(255,90,31,.14) 40%, rgba(255,90,31,.14) 52%, transparent 52%, transparent 58%, rgba(255,90,31,.07) 58%, rgba(255,90,31,.07) 64%, transparent 64%); pointer-events: none; z-index: -1; }
.hero .left { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 10px 0; }
.hero .right { flex: 1 1 380px; min-width: 0; }
.countdown { display: flex; align-items: baseline; gap: 4px; font-family: var(--head); font-weight: 700; font-size: 58px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown i { color: var(--accent); font-style: normal; }
.slots { display: grid; gap: 3px; }
.slots span { height: 8px; background: var(--line); }
.slots span.on { background: var(--accent); }

/* Formulare */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field > span { font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.input, .field input, .field select, .field textarea { width: 100%; font-family: var(--body); font-size: 16px; padding: 12px 14px; min-height: 46px; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 0; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); outline: none; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.form-error { padding: 10px 12px; border-left: 3px solid var(--red); background: rgba(255,59,59,.08); color: #ffb3b3; font-size: 14px; }
.hint { padding: 10px 12px; border-left: 3px solid var(--yellow); background: rgba(255,212,0,.06); color: #fde68a; font-size: 14px; line-height: 1.4; }

.time-input { display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 14px 6px; background: var(--bg); border: 1px solid var(--line); border-bottom: 3px solid var(--accent); }
.time-input label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.time-input input { text-align: center; font-family: var(--head); font-weight: 700; font-size: 46px; line-height: 1; border: none; background: transparent; color: var(--text); padding: 0; width: 1.5em; font-variant-numeric: tabular-nums; }
.time-input input.ms { width: 2.2em; color: var(--lime); }
.time-input input:focus { outline: none; color: var(--accent); }
.time-input .sep { font-family: var(--head); font-weight: 700; font-size: 40px; color: var(--accent); padding-bottom: 18px; }

/* Auth */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth .art { flex: 1 1 480px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 48px; background: var(--stage); border-right: 1px solid var(--line); min-height: 300px; }
.auth .art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,90,31,.18) 30%, rgba(255,90,31,.18) 46%, transparent 46%, transparent 54%, rgba(255,90,31,.08) 54%, rgba(255,90,31,.08) 62%, transparent 62%); }
.auth .art > * { position: relative; }
.auth .art .checker { position: absolute; top: 0; left: 0; right: 0; }
.auth .box { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth .box .inner { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }

/* Single Player */
.stage { position: relative; min-height: 540px; background: var(--stage); border: 1px solid var(--line); display: flex; flex-direction: column; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.stage-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 28px 18px; text-align: center; }
.lights { display: flex; gap: 12px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--line); }
.lights span { width: 42px; height: 42px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--line); transition: background .08s, box-shadow .08s; }
.lights span.red { background: var(--red); box-shadow: 0 0 18px rgba(255,59,59,.7); }
.lights span.green { background: var(--green); box-shadow: 0 0 18px rgba(43,214,90,.7); }
.big-time { font-family: var(--head); font-weight: 700; font-size: clamp(64px, 11vw, 132px); line-height: 1; font-variant-numeric: tabular-nums; }
.big-time.idle { color: var(--line2); }
.big-time.run { color: var(--lime); text-shadow: 0 0 30px rgba(200,255,46,.25); }
.big-count { font-family: var(--head); font-weight: 700; font-style: italic; font-size: clamp(140px, 22vw, 230px); line-height: .9; animation: pop 1s ease-out; }
@keyframes pop { 0% { transform: scale(1.5); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.92); opacity: .85; } }
kbd { font-family: var(--head); font-weight: 700; font-size: 14px; padding: 5px 10px; background: var(--panel2); border: 1px solid var(--line2); border-bottom-width: 3px; color: var(--text); white-space: nowrap; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; display: inline-block; }
@keyframes blink { 50% { opacity: .3; } }
.result-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: 100%; max-width: 620px; background: var(--line); border: 1px solid var(--line); }
.result-tiles div { padding: 14px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; text-align: left; }
.result-tiles span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.result-tiles b { font-family: var(--head); font-size: 22px; font-variant-numeric: tabular-nums; }
.tap-finish { width: 100%; max-width: 520px; min-height: 120px; font-family: var(--head); font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: 2px; border: none; background: var(--lime); color: var(--bg); }
.track-pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 58px; border: none; border-left: 4px solid transparent; border-bottom: 1px solid #1f222a; background: transparent; color: var(--text); text-align: left; }
.track-pick:hover { background: rgba(255,255,255,.025); }
.track-pick.on { border-left-color: var(--accent); background: rgba(255,90,31,.08); }
.track-pick .pb { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.track-pick .pb small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.track-pick .pb b { font-family: var(--head); font-size: 15px; color: var(--lime); font-variant-numeric: tabular-nums; }
.howto { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; }
.howto b { font-family: var(--head); color: var(--accent); }

/* Turnierbaum */
.bracket-scroll { overflow-x: auto; padding-bottom: 10px; }
.bracket { display: flex; gap: 0; min-height: 300px; }
.round { display: flex; flex-direction: column; width: 270px; flex: none; }
.round-title { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); height: 30px; }
.round-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.connector { width: 44px; flex: none; position: relative; }
.match { border: 1px solid var(--line); background: var(--panel); position: relative; }
.match.live { border-color: var(--accent); }
.match.pending { border-color: var(--yellow); }
.match-head { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; background: var(--panel2); font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.match.live .match-head { background: var(--accent); color: var(--bg); }
.match.pending .match-head { background: var(--yellow); color: var(--bg); }
.match-p { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-left: 3px solid transparent; }
.match-p + .match-p { border-top: 1px solid var(--line); }
.match-p b { flex: 1; font-family: var(--head); font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-p .sc { font-family: var(--head); font-weight: 700; font-size: 16px; }
.match-p.win { border-left-color: var(--accent); }
.match-p.lose { opacity: .45; }
.match-p.tbd b { color: var(--muted); font-weight: 600; }
.match-actions { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.champion { width: 220px; flex: none; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding-top: 30px; }

/* Tabelle */
.table-scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 14px; border-bottom: 1px solid #1f222a; vertical-align: middle; }
table.t tr:last-child td { border-bottom: none; }
table.t .num { font-size: 15px; }
.proof-thumb { width: 64px; height: 40px; object-fit: cover; border: 1px solid var(--line); display: block; }

/* Crew */
.crew-badge { width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--bg); flex: none; }
.crew-badge.big { width: 72px; height: 72px; font-size: 24px; }
.bar { height: 4px; background: #1f222a; display: block; }
.bar > span { display: block; height: 100%; }
.code-box { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: 4px; padding: 10px 16px; border: 1px dashed var(--line2); background: var(--bg); display: inline-block; }

/* Modal & Toast */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,8,.78); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px 14px; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; background: var(--panel); border: 1px solid var(--line); }
.modal .panel-head h2 { font-size: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
#toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { padding: 12px 16px; background: var(--panel2); border: 1px solid var(--line2); border-left: 4px solid var(--accent); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: tin .2s ease-out; }
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--lime); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
@media (max-width: 720px) { #toasts { bottom: 86px; } }

.loading { padding: 60px 0; text-align: center; color: var(--muted); font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; }

.side .btn-line, .side .btn { white-space: normal; text-align: center; }
td.nowrap { white-space: nowrap; }
.field input[type=file] { padding: 8px; font-size: 14px; color: var(--muted); }
.field input[type=file]::file-selector-button { font-family: var(--head); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 9px 14px; margin-right: 12px; border: none; background: var(--panel2); color: var(--text); cursor: pointer; }

/* Countdown-Overlay für Fahrer im Lauf */
.live-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(8,9,11,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; overflow-y: auto; }
.live-overlay::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; background-image: conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0); background-size: 12px 12px; }
.live-overlay .lo-title { font-family: var(--head); font-weight: 700; font-style: italic; font-size: clamp(22px, 4vw, 32px); text-transform: uppercase; }
.live-overlay .lo-sub { color: var(--muted); font-size: 15px; }
.live-overlay .big-count { font-size: clamp(150px, 30vw, 260px); }
.live-overlay .big-time { font-size: clamp(60px, 14vw, 140px); }
.live-overlay .place { font-family: var(--head); font-weight: 700; font-style: italic; font-size: clamp(40px, 9vw, 80px); color: var(--accent); text-transform: uppercase; line-height: 1; }
