/* WBS RACER – Menüs: Titel, Setup, Fahrzeugwahl, Karten, Lobby, Ergebnisse, Podium, Overlays */

.hint { color: var(--ink-dim); font-size: 13px; line-height: 1.45; margin: 8px 0 0; }
.hint.center { text-align: center; }
.hint.inline { display: inline; margin: 0 0 0 8px; text-transform: none; letter-spacing: 0; font-style: normal; font-weight: 500; }
kbd { display: inline-block; min-width: 24px; padding: 2px 7px; margin: 0 2px; border-radius: 5px; font: 700 12px var(--font-display);
  background: linear-gradient(180deg, #2a3366, #151b44); border: 1px solid rgba(255, 255, 255, .25); border-bottom-width: 3px; color: #fff; text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.opt { margin: 0 0 14px; }
.me-tag { margin-left: 8px; padding: 1px 7px; border-radius: 3px; font: 800 10px var(--font-display); letter-spacing: .14em; background: var(--cyan); color: #04122a; vertical-align: middle; }

/* ---------- Titel ---------- */
.screen-title { justify-content: center; }
.title-wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 3vh, 30px); text-align: center; }
.logo { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; line-height: .86;
  font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; transform: skewX(-6deg) rotate(-2deg);
  animation: logo-in .9s var(--ease-bounce) both, logo-float 5s ease-in-out 1s infinite; }
/* Logo: runde, weiche Buchstaben (SVG mit abgerundeten Kanten), kein Streifen/Glanz mehr in den Buchstaben */
.logo-svg { display: block; width: min(88vw, 640px); height: auto; overflow: visible;
  filter: drop-shadow(0 0 26px rgba(255, 79, 163, .4)) drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.logo .lt { font-family: "Arial Rounded MT Bold", "Varela Round", "Nunito", "Segoe UI Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900; letter-spacing: .02em; stroke-linejoin: round; stroke-linecap: round; paint-order: stroke fill; }
.logo .lt.l1 { fill: url(#lgWbs); stroke: #1a0a4f; stroke-width: 16px; font-size: 176px; }
.logo .lt.l2 { fill: url(#lgRacer); stroke: #1a0a4f; stroke-width: 14px; letter-spacing: .06em; font-size: 130px; }
.logo .lt.sh { fill: #3b0f78; stroke: #3b0f78; stroke-width: 22px; }
.logo .lt.sh:nth-of-type(1) { font-size: 176px; } .logo .lt.sh:nth-of-type(2) { font-size: 130px; letter-spacing: .06em; }
@keyframes logo-in { from { opacity: 0; transform: skewX(-6deg) rotate(-2deg) translateX(-120px) scale(.8); } to { opacity: 1; } }
@keyframes logo-float { 50% { transform: skewX(-6deg) rotate(-1deg) translateY(-8px); } }
@keyframes logo-shine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes stripe-in { from { transform: translateY(-50%) skewX(-30deg) scaleX(0); } }
.tagline { margin: 0; font: 700 clamp(13px, 2vw, 20px) var(--font-display); letter-spacing: .5em; text-transform: uppercase; color: var(--ink-dim); text-indent: .5em; animation: fade-up .8s var(--ease) .5s both; }
.menu-main { animation: fade-up .8s var(--ease) .65s both; }
.title-help { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--ink-dim); animation: fade-up .8s var(--ease) .9s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Setup ---------- */
.screen-solo, .screen-lobby, .screen-multi { justify-content: flex-start; }
.setup-body { width: min(1180px, 100%); flex: 1 1 auto; min-height: 0; }
.pane { display: flex; flex-direction: column; gap: 16px; }
.pane-in { animation: fade-up .4s var(--ease) both; }
.setup-foot { width: min(1180px, 100%); margin-top: 18px; justify-content: flex-end; }
.stepper-dots { display: flex; gap: 8px; }
.stepper-dots .dot { padding: 6px 14px; border-radius: 3px 10px 3px 10px; font: 700 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .08); color: var(--ink-mute); transition: all .3s; }
.stepper-dots .dot.on { background: linear-gradient(90deg, var(--magenta), var(--purple)); color: #fff; box-shadow: 0 0 16px rgba(255, 47, 166, .5); }
.name-panel { max-width: 460px; }

/* Fahrzeugwahl */
.veh-picker { display: grid; grid-template-columns: minmax(200px, 270px) 1fr; gap: 18px; align-items: start; }
.veh-list { display: flex; flex-direction: column; gap: 6px; max-height: min(64vh, 560px); overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; }
.veh-item { position: relative; appearance: none; cursor: pointer; text-align: left; display: grid; gap: 1px; padding: 8px 14px 8px 20px;
  background: rgba(255, 255, 255, .06); border: 1px solid transparent; border-radius: 4px 14px 4px 14px; color: var(--ink);
  transition: background .2s, transform .2s var(--ease-bounce), border-color .2s; overflow: hidden; }
.veh-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cyan); transform: scaleY(0); transition: transform .25s var(--ease); transform-origin: top; }
.veh-item:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.veh-item.on { background: linear-gradient(90deg, rgba(25, 227, 255, .26), rgba(255, 47, 166, .1)); border-color: rgba(25, 227, 255, .55); box-shadow: 0 0 22px rgba(25, 227, 255, .22); }
.veh-item.on::before { transform: scaleY(1); }
.veh-item-name { font: 800 16px var(--font-display); font-style: italic; letter-spacing: .04em; }
.veh-item-brand { font-size: 12px; color: var(--ink-dim); letter-spacing: .08em; text-transform: uppercase; }
.veh-detail { display: grid; gap: 12px; min-width: 0; }
.vehicle-preview { position: relative; height: clamp(170px, 30vh, 300px); border-radius: 6px 24px 6px 24px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--car, #19e3ff) 38%, transparent), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .35));
  border: 1px solid var(--glass-line); }
.vehicle-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px 28px 38px; }
.preview-floor { position: absolute; left: 10%; right: 10%; bottom: 20%; height: 22%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--car, #19e3ff) 55%, transparent), transparent); filter: blur(6px); opacity: .8; }
.preview-fallback { position: relative; width: min(100%, 460px); animation: car-in .6s var(--ease) both; }
.preview-fallback.swap { animation: car-in .6s var(--ease) both; }
.car-svg { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); animation: car-bob 3.2s ease-in-out infinite; }
.car-svg .wheel { animation: spin .7s linear infinite; transform-box: view-box; }
@keyframes car-in { from { opacity: 0; transform: translateX(-60px) skewX(-10deg); } to { opacity: 1; transform: none; } }
@keyframes car-bob { 50% { transform: translateY(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.vehicle-preview.has3d .preview-stage { padding: 0; }
.vehicle-preview.has3d .preview-fallback, .vehicle-preview.has3d .preview-floor { display: none; }
.preview-label { position: absolute; left: 18px; bottom: 12px; display: grid; pointer-events: none; text-shadow: 0 2px 10px #000; }
.pv-name { font: 900 clamp(20px, 3vw, 30px) var(--font-display); font-style: italic; letter-spacing: .03em; text-transform: uppercase; }
.pv-brand { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.veh-desc { margin: 0; color: var(--ink-dim); font-size: 14px; line-height: 1.45; min-height: 2.9em; }
.stat-bars { display: grid; gap: 7px; }
.stat-row { display: grid; grid-template-columns: 128px 1fr 24px; align-items: center; gap: 12px; font-size: 13px; }
.stat-name { color: var(--ink-dim); font-weight: 600; letter-spacing: .04em; }
.stat-track { position: relative; height: 10px; background: rgba(255, 255, 255, .1); border-radius: 2px; transform: skewX(-20deg); overflow: hidden; }
.stat-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(5, 7, 26, .85) calc(10% - 2px) 10%); }
.stat-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), #5a8bff); transition: width .6s var(--ease); box-shadow: 0 0 12px rgba(25, 227, 255, .6); }
.stat-row.hi .stat-fill { background: linear-gradient(90deg, #ffe66b, var(--orange)); box-shadow: 0 0 12px rgba(255, 150, 30, .7); }
.stat-row.lo .stat-fill { background: linear-gradient(90deg, #ff8d9a, var(--red)); box-shadow: 0 0 12px rgba(255, 77, 94, .5); }
.stat-val { font: 800 15px var(--font-display); text-align: right; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { appearance: none; width: 38px; height: 38px; border-radius: 50% 12px 50% 12px; cursor: pointer; padding: 0; border: 2px solid rgba(255, 255, 255, .3);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .75), transparent 42%), var(--c); box-shadow: 0 3px 10px rgba(0, 0, 0, .4); transition: transform .2s var(--ease-bounce), border-color .2s; }
.swatch:hover { transform: scale(1.14) rotate(-6deg); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 3px var(--cyan), 0 0 18px var(--cyan); transform: scale(1.1); }
.veh-picker.compact { grid-template-columns: 1fr; }
.veh-picker.compact .veh-list { flex-direction: row; flex-wrap: wrap; }
.veh-picker.compact .veh-item { flex: 1 1 30%; min-width: 120px; padding: 8px 12px 8px 16px; }
.veh-picker.compact .veh-list { max-height: none; overflow: visible; }
.veh-picker.compact .veh-item-brand { display: none; }
.veh-picker.compact .vehicle-preview { height: clamp(130px, 22vh, 190px); }
.veh-picker.compact .veh-desc { display: none; }
.veh-picker.compact .stat-bars { grid-template-columns: 1fr 1fr; gap: 5px 18px; }
.veh-picker.compact .stat-row { grid-template-columns: 76px 1fr 20px; font-size: 12px; gap: 8px; }

/* Karten */
.card-grid { display: grid; gap: 14px; margin-top: 4px; }
.card-grid.cups { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card-grid.tracks { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { position: relative; appearance: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px; color: var(--ink);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); border: 1px solid var(--glass-line); border-radius: 6px 20px 6px 20px;
  transition: transform .22s var(--ease-bounce), border-color .2s, box-shadow .2s, background .2s; --accent: var(--cyan); overflow: hidden; }
.card:hover { transform: translateY(-4px) scale(1.02); border-color: rgba(255, 255, 255, .4); }
.card.on { border-color: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 24%, transparent), rgba(255, 255, 255, .03));
  box-shadow: 0 0 0 1px var(--accent), 0 8px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.card.on::after { content: "✓"; position: absolute; right: 10px; top: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #05102a; font-weight: 900; font-size: 14px; }
.card-name { font: 900 19px var(--font-display); font-style: italic; letter-spacing: .03em; text-transform: uppercase; }
.card-sub { font-size: 13px; color: var(--ink-dim); }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
.card-len { padding: 2px 8px; border-radius: 3px; background: rgba(255, 255, 255, .1); font-weight: 600; }
.card-index { position: absolute; left: 12px; top: 8px; font: 900 13px var(--font-display); color: var(--ink-mute); }
.card-contour { display: block; height: 88px; margin: 0 -6px 4px; }
.card-contour .contour { filter: drop-shadow(0 0 8px rgba(25, 227, 255, .4)); }
.cup-trophy { width: 44px; height: 44px; display: block; filter: drop-shadow(0 4px 10px rgba(255, 190, 40, .5)); }
.cup-tracks { display: grid; gap: 3px; margin: 8px 0 2px; font-size: 13px; color: var(--ink-dim); }
.cup-track em { font-style: normal; display: inline-block; width: 20px; color: var(--accent); font-weight: 800; }
.opts { display: flex; gap: 22px 40px; flex-wrap: wrap; align-items: flex-end; }
.opts .opt { margin: 0; }

/* ---------- Mehrspieler ---------- */
.multi-grid { width: min(960px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.multi-name { grid-column: 1 / -1; }
.multi-create, .multi-join { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.multi-join.invited { box-shadow: 0 0 0 2px var(--yellow), 0 0 40px rgba(255, 210, 63, .35), 0 18px 50px rgba(0, 0, 0, .45); animation: pulse-border 2s ease-in-out infinite; }
@keyframes pulse-border { 50% { box-shadow: 0 0 0 2px var(--yellow), 0 0 60px rgba(255, 210, 63, .55), 0 18px 50px rgba(0, 0, 0, .45); } }
.multi-create .btn, .multi-join .btn { align-self: stretch; min-width: 0; }

/* ---------- Lobby ---------- */
.room-code { display: flex; align-items: baseline; gap: 12px; padding: 6px 16px; background: rgba(255, 255, 255, .08); border-radius: 4px 14px 4px 14px; border: 1px solid var(--glass-line); }
.room-code-label { font: 700 11px var(--font-display); letter-spacing: .22em; color: var(--ink-dim); }
.room-code b { font: 900 34px var(--font-display); font-style: italic; letter-spacing: .24em; color: var(--yellow); text-shadow: 0 0 18px rgba(255, 210, 63, .6); cursor: pointer; }
.lobby-grid { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 16px; align-items: start; }
.lobby-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.player-list { display: grid; gap: 8px; }
.player-row { display: grid; grid-template-columns: 34px 38px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 4px 14px 4px 14px; background: rgba(255, 255, 255, .06);
  border-left: 4px solid var(--pc, transparent); animation: fade-up .35s var(--ease) both; }
.player-row.me { background: rgba(25, 227, 255, .12); }
.player-row.ready { box-shadow: inset 0 0 0 1px rgba(61, 255, 139, .45); }
.player-swatch { display: block; width: 34px; height: 22px; border-radius: 3px 9px 3px 9px; border: 1px solid rgba(255, 255, 255, .4); flex: none; }
.player-main { display: grid; min-width: 0; }
.player-name { font-weight: 800; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-veh { font-size: 12px; color: var(--ink-dim); }
.crown { margin-left: 8px; font: 800 10px var(--font-display); letter-spacing: .14em; color: var(--yellow); }
.player-state { font: 800 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.player-state .ok { color: var(--green); } .player-state .wait { color: var(--ink-mute); }
.ping { font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.share-row { display: flex; gap: 10px; align-items: center; } .share-row .input { height: 40px; font-size: 13px; }
.chat-log { height: 110px; overflow: auto; font-size: 14px; margin-bottom: 8px; display: grid; align-content: start; gap: 3px; user-select: text; }
.chat-input { height: 38px; font-size: 14px; }
.lobby-foot { width: min(1180px, 100%); display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 10px 0 2px; }
.lobby-status { color: var(--ink-dim); font-weight: 600; letter-spacing: .04em; }

/* ---------- Ergebnisse ---------- */
.screen-results, .screen-standings, .screen-podium, .screen-intro { justify-content: center; }
.results-wrap { width: min(960px, 100%); display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.results-head { display: grid; gap: 4px; }
.results-sub { font: 700 13px var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }
.big-head { font-size: clamp(30px, 6vw, 58px); }
.results-panel { padding: 10px 14px 14px; }
.res-row { display: grid; grid-template-columns: 58px minmax(150px, 1fr) 120px 120px 86px; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 4px 14px 4px 14px; }
.res-header { font: 700 11px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); padding-bottom: 4px; }
.res-rows { display: grid; gap: 5px; }
.res-rows .res-row { background: rgba(255, 255, 255, .06); border-left: 4px solid var(--pc); animation: row-in .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.res-rows .res-row.me { background: linear-gradient(90deg, rgba(25, 227, 255, .26), rgba(25, 227, 255, .06)); box-shadow: inset 0 0 0 1px rgba(25, 227, 255, .5); }
@keyframes row-in { from { opacity: 0; transform: translateX(-50px) skewX(-8deg); } to { opacity: 1; transform: none; } }
.res-place b { display: inline-grid; place-items: center; min-width: 42px; height: 38px; border-radius: 4px 12px 4px 12px; font: 900 22px var(--font-display); font-style: italic; background: rgba(255, 255, 255, .1); }
.res-row.gold .res-place b, .stand-rank.gold { background: linear-gradient(135deg, #fff1a0, #ffb81a); color: #4a2d00; box-shadow: 0 0 18px rgba(255, 190, 40, .6); }
.res-row.silver .res-place b, .stand-rank.silver { background: linear-gradient(135deg, #fff, #aab4cc); color: #2a3042; }
.res-row.bronze .res-place b, .stand-rank.bronze { background: linear-gradient(135deg, #ffcf9f, #c9712a); color: #3a1c00; }
.res-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.res-name { display: grid; min-width: 0; }
.res-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; letter-spacing: .02em; }
.res-name small { color: var(--ink-dim); font-size: 12px; }
.res-time, .res-best { font: 700 16px var(--font-display); font-variant-numeric: tabular-nums; }
.res-best { color: var(--ink-dim); } .res-time em { color: var(--red); font-style: normal; letter-spacing: .1em; }
.res-pts { text-align: right; } .res-pts b { font: 900 24px var(--font-display); font-style: italic; color: var(--yellow); text-shadow: 0 0 14px rgba(255, 210, 63, .5); }
.results-foot { display: flex; gap: 16px; justify-content: flex-end; align-items: center; margin-top: 4px; }
.results-wait { color: var(--ink-dim); font-weight: 600; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }

.standings-panel { padding: 14px; }
.stand-rows { position: relative; }
.stand-row { position: absolute; left: 0; right: 0; height: 50px; display: grid; grid-template-columns: 52px 38px minmax(120px, 1fr) 70px 92px; gap: 10px; align-items: center; padding: 0 12px;
  background: rgba(255, 255, 255, .07); border-left: 4px solid var(--pc); border-radius: 4px 14px 4px 14px; transition: transform .9s var(--ease), background .4s, box-shadow .4s; }
.stand-row.me { background: linear-gradient(90deg, rgba(25, 227, 255, .26), rgba(25, 227, 255, .06)); box-shadow: inset 0 0 0 1px rgba(25, 227, 255, .5); }
.stand-row.up.settled { box-shadow: inset 0 0 0 1px rgba(61, 255, 139, .6), 0 0 22px rgba(61, 255, 139, .25); }
.stand-row.down.settled { box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .45); }
.stand-row.up.settled::after { content: "▲"; position: absolute; right: -26px; color: var(--green); font-size: 14px; }
.stand-row.down.settled::after { content: "▼"; position: absolute; right: -26px; color: var(--red); font-size: 14px; }
.stand-rank { display: inline-grid; place-items: center; width: 44px; height: 36px; border-radius: 4px 12px 4px 12px; background: rgba(255, 255, 255, .1); }
.stand-rank b { font: 900 21px var(--font-display); font-style: italic; }
.stand-delta { font: 900 18px var(--font-display); font-style: italic; color: var(--green); opacity: 0; transform: translateY(8px); transition: all .5s var(--ease-bounce); text-align: right; }
.stand-delta.show { opacity: 1; transform: none; }
.stand-total { text-align: right; } .stand-total b { font: 900 26px var(--font-display); font-style: italic; } .stand-total i { font-style: normal; font-size: 11px; color: var(--ink-dim); margin-left: 5px; letter-spacing: .1em; text-transform: uppercase; }

/* Podium */
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.podium-wrap { width: min(960px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; z-index: 1; }
.podium-title { text-align: center; animation: fade-up .7s var(--ease) both; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(6px, 2vw, 22px); align-items: end; width: 100%; min-height: clamp(260px, 48vh, 440px); }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.pod-car { width: 100%; max-width: 280px; opacity: 0; transform: translateY(-80px) scale(.8); animation: pod-car-in .8s var(--ease-bounce) both; }
.pod-1 .pod-car { animation-delay: 1.6s; } .pod-2 .pod-car { animation-delay: 1.1s; } .pod-3 .pod-car { animation-delay: .6s; }
.pod-car .car-svg { animation: none; }
@keyframes pod-car-in { to { opacity: 1; transform: none; } }
.pod-name { font: 900 clamp(15px, 2.4vw, 24px) var(--font-display); font-style: italic; text-transform: uppercase; letter-spacing: .04em; text-align: center; opacity: 0; animation: fade-up .6s var(--ease) both; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pod-1 .pod-name { animation-delay: 2s; } .pod-2 .pod-name { animation-delay: 1.5s; } .pod-3 .pod-name { animation-delay: 1s; }
.pod-crown { color: var(--yellow); margin-right: 8px; text-shadow: 0 0 16px var(--yellow); }
.pod-pts { color: var(--ink-dim); font-weight: 600; font-size: 14px; opacity: 0; animation: fade-up .6s var(--ease) both; }
.pod-1 .pod-pts { animation-delay: 2.1s; } .pod-2 .pod-pts { animation-delay: 1.6s; } .pod-3 .pod-pts { animation-delay: 1.1s; }
.pod-block { width: 100%; display: grid; place-items: center; border-radius: 8px 8px 0 0; transform-origin: bottom; transform: scaleY(0); animation: block-up .8s var(--ease) both;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #19e3ff) 70%, #fff 20%), color-mix(in srgb, var(--pc, #19e3ff) 40%, #000)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 0 40px color-mix(in srgb, var(--pc, #19e3ff) 40%, transparent); }
.pod-block span { font: 900 clamp(40px, 8vw, 90px) var(--font-display); font-style: italic; color: rgba(255, 255, 255, .92); text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.pod-1 .pod-block { height: clamp(130px, 26vh, 230px); animation-delay: 1.3s; }
.pod-2 .pod-block { height: clamp(100px, 20vh, 180px); animation-delay: .8s; }
.pod-3 .pod-block { height: clamp(80px, 15vh, 140px); animation-delay: .3s; }
.pod.empty .pod-block { opacity: .25; }
@keyframes block-up { to { transform: scaleY(1); } }

/* Streckenintro */
.intro-band { width: 100vw; margin: 0 -48px; padding: clamp(22px, 5vh, 54px) 8vw; position: relative; overflow: hidden;
  background: linear-gradient(100deg, rgba(10, 6, 48, .92), rgba(60, 12, 100, .88) 60%, rgba(10, 6, 48, .5)); border-top: 3px solid var(--cyan); border-bottom: 3px solid var(--magenta);
  box-shadow: 0 0 60px rgba(25, 227, 255, .3); transform: skewY(-3deg); animation: band-in .7s var(--ease) both; display: grid; gap: 8px; }
.intro-band > * { transform: skewY(3deg); }
.intro-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .18), transparent); animation: sweep 1.6s ease-in-out .5s both; }
@keyframes band-in { from { opacity: 0; transform: skewY(-3deg) translateX(-100%); } }
@keyframes sweep { to { left: 120%; } }
.intro-kicker { font: 800 clamp(14px, 2vw, 20px) var(--font-display); letter-spacing: .4em; text-transform: uppercase; color: var(--cyan); }
.intro-name { font: 900 clamp(40px, 10vw, 120px) var(--font-display); font-style: italic; text-transform: uppercase; line-height: .95; letter-spacing: .02em; padding: .14em .08em 0 0; margin-top: -.1em; animation: name-in .8s var(--ease-bounce) .2s both;
  background: linear-gradient(180deg, #fff, #ffd9f2); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(10, 6, 48, .8)); }
@keyframes name-in { from { opacity: 0; letter-spacing: .3em; } }
.intro-sub { font: 600 clamp(16px, 2.6vw, 28px) var(--font-ui); color: var(--ink-dim); letter-spacing: .08em; }
.intro-hint { position: absolute; bottom: 4vh; color: var(--ink-mute); font-size: 13px; letter-spacing: .1em; animation: blink 2s infinite; }

/* ---------- Modals / Overlays ---------- */
.overlay-layer { position: absolute; inset: 0; pointer-events: none; z-index: 60; }
.modal { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto; padding: 16px; animation: modal-in .25s var(--ease) both; }
.modal.leaving { pointer-events: none; animation: modal-out .2s ease-in both; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 16, .72); backdrop-filter: blur(6px); }
[data-quality="low"] .modal-backdrop { backdrop-filter: none; }
.modal-card { position: relative; width: min(520px, 100%); max-height: 100%; overflow: auto; background: var(--glass-strong); }
@keyframes modal-in { from { opacity: 0; } } @keyframes modal-out { to { opacity: 0; } }
.setting-block { margin: 16px 0 0; }
.pause-title { margin: 0 0 18px; text-align: center; font: 900 52px var(--font-display); font-style: italic; letter-spacing: .12em; background: linear-gradient(180deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pause-title.small { font-size: 28px; }
.error-title { color: var(--red); } .error-text { font-size: 16px; line-height: 1.5; margin: 0 0 18px; user-select: text; }

.loading-overlay { position: absolute; inset: 0; pointer-events: auto; display: grid; place-items: center; z-index: 70; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(120% 90% at 50% 40%, #1a0d4d, #05061a 70%); }
.loading-overlay.in { opacity: 1; } .loading-overlay.out { opacity: 0; pointer-events: none; }
.loading-stripes { position: absolute; inset: -50%; background: repeating-linear-gradient(-24deg, transparent 0 80px, rgba(25, 227, 255, .06) 80px 140px, transparent 140px 200px, rgba(255, 47, 166, .06) 200px 230px); animation: stripes-move 6s linear infinite; }
@keyframes stripes-move { to { transform: translateX(200px); } }
.loading-box { position: relative; display: grid; justify-items: center; gap: 16px; width: min(440px, 86vw); }
.loading-wheel { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 8px solid #10122a; background: radial-gradient(circle, #1b1f48 28%, #0a0b1c 30%); box-shadow: 0 0 0 3px var(--cyan), 0 0 30px rgba(25, 227, 255, .5); animation: spin .8s linear infinite; }
.loading-wheel i { position: absolute; left: 50%; top: 6px; width: 6px; height: 28px; margin-left: -3px; background: linear-gradient(#e9eeff, #7c86b0); border-radius: 3px; transform-origin: 50% 36px; }
.loading-wheel i:nth-child(1) { transform: rotate(0); } .loading-wheel i:nth-child(2) { transform: rotate(72deg); } .loading-wheel i:nth-child(3) { transform: rotate(144deg); } .loading-wheel i:nth-child(4) { transform: rotate(216deg); } .loading-wheel i:nth-child(5) { transform: rotate(288deg); }
.loading-wheel b { position: absolute; inset: 32px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.loading-title { font: 900 28px var(--font-display); font-style: italic; letter-spacing: .24em; color: #fff; text-shadow: 0 0 20px var(--magenta); }
.loading-text { color: var(--ink-dim); font-weight: 600; letter-spacing: .06em; min-height: 1.4em; text-align: center; }
.loading-bar { width: 100%; height: 12px; background: rgba(255, 255, 255, .1); transform: skewX(-20deg); overflow: hidden; border-radius: 2px; }
.loading-fill { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transition: transform .3s var(--ease); box-shadow: 0 0 14px var(--cyan); }
.loading-bar.indeterminate .loading-fill { width: 40%; transform: none; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { margin-left: -40%; } to { margin-left: 100%; } }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .veh-picker { grid-template-columns: 1fr; }
  .veh-list { max-height: none; overflow: visible; flex-direction: row; flex-wrap: wrap; } .veh-item { flex: 1 1 40%; }
  .lobby-grid, .multi-grid { grid-template-columns: 1fr; }
  .res-row { grid-template-columns: 46px 1fr 96px 70px; } .res-row > :nth-child(4) { display: none; }
  .stand-row { grid-template-columns: 44px 30px 1fr 56px 74px; }
  .btn.big { min-width: 220px; }
}
@media (max-height: 640px) {
  .btn.big { min-height: 52px; font-size: 18px; } .vehicle-preview { height: 150px; } .veh-desc { display: none; }
  .podium { min-height: 220px; }
}

/* Fußleisten bleiben sichtbar */
.setup-foot { position: sticky; bottom: 0; z-index: 5; padding: 10px 0 2px; margin-top: 10px; }

/* Avatar-Wahl (Fahrer-Figur) */
.avatar-block { display: grid; gap: 8px; min-width: 0; }
.avatar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.avatar-head .av-cur { font: 800 14px var(--font-display); font-style: italic; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: clamp(150px, 26vh, 250px); overflow-y: auto; padding: 4px 6px 6px 2px; scrollbar-width: thin; }
.av-tile { appearance: none; cursor: pointer; display: grid; justify-items: center; gap: 4px; padding: 6px 4px 7px; color: var(--ink); min-width: 0;
  background: rgba(255, 255, 255, .06); border: 1px solid transparent; border-radius: 4px 14px 4px 14px;
  transition: background .2s, transform .2s var(--ease-bounce), border-color .2s, box-shadow .2s; }
.av-tile:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.av-tile.on { background: linear-gradient(160deg, rgba(25, 227, 255, .28), rgba(255, 47, 166, .12)); border-color: rgba(25, 227, 255, .7); box-shadow: 0 0 18px rgba(25, 227, 255, .3); }
.av-thumb { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .14), rgba(5, 7, 26, .55)); border: 1px solid rgba(255, 255, 255, .18); }
.av-thumb img, .av-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-name { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-emblem { display: grid; place-items: center; width: 100%; height: 100%; font: 900 18px var(--font-display); font-style: italic; color: var(--ac, var(--cyan));
  text-shadow: 0 0 10px var(--ac, var(--cyan)); background: radial-gradient(circle, color-mix(in srgb, var(--ac, #19e3ff) 25%, transparent), transparent 70%); }
.av-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .14), rgba(5, 7, 26, .55)); border: 1px solid rgba(255, 255, 255, .25); }
.av-icon .av-emblem { font-size: 12px; }
.veh-picker.compact .avatar-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); max-height: 170px; }
.veh-picker.compact .av-thumb { width: 50px; height: 50px; }
@media (max-width: 760px) {
  .avatar-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); max-height: 200px; }
  .av-thumb { width: 52px; height: 52px; }
}

/* Solo-Setup, Schritt 1: Figur mit großer 3D-Vorschau */
.avatar-picker { display: grid; grid-template-columns: minmax(300px, 40%) 1fr; gap: 20px; align-items: start; }
.avatar-picker .avatar-stage-wrap { grid-column: 2; grid-row: 1; display: grid; gap: 12px; min-width: 0; }
.avatar-picker .avatar-grid.big { grid-column: 1; grid-row: 1; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); max-height: clamp(300px, 56vh, 600px); gap: 10px; padding: 6px 8px 8px 4px; }
.avatar-picker .av-thumb { width: 66px; height: 66px; }
.avatar-picker .av-name { font-size: 12px; }
.avatar-stage { position: relative; height: clamp(300px, 52vh, 560px); border-radius: 6px 28px 6px 28px; overflow: hidden; border: 1px solid var(--glass-line);
  background: radial-gradient(70% 80% at 50% 100%, color-mix(in srgb, var(--car, #19e3ff) 30%, transparent), transparent 70%),
    radial-gradient(60% 50% at 50% 38%, rgba(25, 227, 255, .12), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .4));
  box-shadow: 0 0 40px rgba(25, 227, 255, .12), inset 0 0 60px rgba(0, 0, 0, .35); }
.avatar-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar-stage .preview-stage { padding: 24px; }
.avatar-stage .preview-fallback.av-big { width: min(70%, 320px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.avatar-stage .preview-fallback.av-big .av-emblem { font-size: 72px; }
.avatar-stage.has3d .preview-stage { padding: 0; }
.avatar-stage.has3d .preview-fallback, .avatar-stage.has3d .preview-floor { display: none; }
.avatar-stage { cursor: pointer; outline-offset: 3px; user-select: none; -webkit-tap-highlight-color: transparent; }
.avatar-stage .dance-hint { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: none; flex-direction: column; align-items: center; gap: 1px; pointer-events: none; text-align: center; }
.avatar-stage.has3d .dance-hint { display: flex; }
.avatar-stage .dance-hint b { font: 800 15px var(--font-display); font-style: italic; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 0 12px rgba(25, 227, 255, .8), 0 1px 3px #000; }
.avatar-stage .dance-hint small { font-size: 12px; color: var(--ink-dim); text-shadow: 0 1px 3px #000; }
.avatar-stage.flash .dance-hint b { animation: danceFlash .5s ease-out; }
@keyframes danceFlash { 0% { transform: scale(1.35); color: var(--cyan); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .avatar-stage.flash .dance-hint b { animation: none; } }
.avatar-caption { display: grid; gap: 4px; text-align: center; padding: 2px 8px; }
.avatar-caption .av-big-name { font: 900 26px var(--font-display); font-style: italic; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 16px rgba(25, 227, 255, .5); }
.avatar-caption .av-big-desc { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.4; min-height: 2.8em; }
@media (max-width: 900px) {
  .avatar-picker { grid-template-columns: 1fr; gap: 14px; }
  .avatar-picker .avatar-stage-wrap, .avatar-picker .avatar-grid.big { grid-column: 1; }
  .avatar-picker .avatar-grid.big { grid-row: 2; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .avatar-picker .av-thumb { width: 54px; height: 54px; }
  .avatar-stage { height: clamp(220px, 36vh, 340px); }
  .avatar-caption .av-big-name { font-size: 21px; }
  .avatar-caption .av-big-desc { font-size: 13px; min-height: 0; }
}
@media (max-height: 640px) and (min-width: 901px) { .avatar-stage { height: 46vh; } .avatar-picker .avatar-grid.big { max-height: 50vh; } }
@media (max-width: 600px) {
  .screen-title-bar { flex-wrap: wrap; row-gap: 8px; }
  .stepper-dots { gap: 5px; order: 5; width: 100%; justify-content: center; }
  .stepper-dots .dot { padding: 5px 9px; font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; }
  .setup-body { padding-bottom: 84px; }
  .avatar-stage { height: clamp(200px, 32vh, 300px); }
}
