:root {
  --bg: #070b14;
  --panel: rgba(14, 20, 36, 0.86);
  --panel-border: rgba(120, 160, 255, 0.18);
  --text: #e8eefc;
  --muted: #8d9bbb;
  --accent: #2fd6ff;
  --accent-2: #ffb02e;
  --blue: #3fa7ff;
  --red: #ff5468;
  --good: #5dff9a;
  --radius: 12px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; }
#stage canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ── Bildschirme ─────────────────────────── */
.screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: radial-gradient(ellipse at center, rgba(7, 11, 20, 0.35), rgba(7, 11, 20, 0.8));
  overflow-y: auto; z-index: 10;
}
.screen.overlay { background: rgba(5, 8, 15, 0.65); backdrop-filter: blur(3px); }
.panel {
  width: min(560px, 100%); max-height: 100%; overflow-y: auto; background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 18px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px);
}
.panel.wide { width: min(1100px, 100%); }
.main-panel { text-align: center; width: min(420px, 100%); }
h1, h2, h3 { margin: 0 0 12px; }
h2 { font-size: 1.5rem; }
h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 20px; }
.logo { font-size: clamp(2.4rem, 8vw, 3.6rem); letter-spacing: 0.04em; line-height: 1; margin-bottom: 8px; font-weight: 800; }
.logo span { color: var(--accent); }
.tagline { color: var(--muted); margin: 0 0 24px; }
.menu { display: flex; flex-direction: column; gap: 10px; }

button {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius);
  padding: 11px 18px; cursor: pointer; transition: background 0.15s, transform 0.1s, border-color 0.15s; font-weight: 600;
}
button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
button:active:not(:disabled) { transform: scale(0.98); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: linear-gradient(135deg, #1fb8e8, #2fd6ff); color: #04121c; border-color: transparent; }
button.primary:hover:not(:disabled) { background: linear-gradient(135deg, #45c8f0, #6ae2ff); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover { color: var(--text); }
button.on { background: rgba(93, 255, 154, 0.18); border-color: var(--good); color: var(--good); }

input, select {
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 10px 12px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
select option { background: #121a2e; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar h2 { margin: 0; }
header.bar { margin-bottom: 18px; }
footer.bar { margin-top: 20px; }
.bar label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.grow { flex: 1; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.row > button.primary { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.code-input { width: 110px; text-transform: uppercase; letter-spacing: 0.3em; text-align: center; font-family: var(--mono); }
.status { color: var(--muted); font-size: 0.9rem; min-height: 1.3em; margin-top: 8px; }
.status.err { color: var(--red); }
.hint { color: var(--muted); font-size: 0.9rem; }

/* ── Heldenauswahl ───────────────────────── */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.hero-card {
  text-align: left; padding: 16px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)); display: flex; flex-direction: column; gap: 10px;
  font-weight: 400;
}
.hero-card.sel { border-color: var(--hc); box-shadow: 0 0 0 1px var(--hc), 0 0 30px color-mix(in srgb, var(--hc) 35%, transparent); }
.hero-card .hn { display: flex; align-items: baseline; justify-content: space-between; }
.hero-card .hn b { font-size: 1.3rem; color: var(--hc); }
.hero-card .role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.hero-card .blurb { color: var(--muted); font-size: 0.88rem; margin: 0; min-height: 2.6em; }
.stats { display: grid; grid-template-columns: 34px 1fr 30px; gap: 4px 8px; align-items: center; font-size: 0.75rem; font-family: var(--mono); }
.stats .sb { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.stats .sb i { display: block; height: 100%; background: var(--hc); border-radius: 3px; }
.stats .sv { text-align: right; color: var(--muted); }
.abil { display: flex; gap: 10px; font-size: 0.82rem; align-items: flex-start; }
.abil .ai { font-size: 1.2rem; width: 28px; text-align: center; flex: none; }
.abil .ad { color: var(--muted); }
.abil .meta { font-family: var(--mono); font-size: 0.7rem; color: var(--accent-2); }
.hero-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-pick button { border-width: 2px; }
.hero-pick button.sel { border-color: var(--hc); color: var(--hc); }

/* ── Familien in der Heldenauswahl ───────── */
.hero-grid { display: flex; flex-direction: column; gap: 18px; }
.family-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.family-head b { font-size: 1.1rem; }
.family-head span { color: var(--muted); font-size: 0.85rem; }
.family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

/* ── Garderobe ───────────────────────────── */
.wd-note { color: var(--accent-2); font-size: 0.85rem; }
.wd-heroes { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; }
.wd-family { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wd-family > span { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 2px; }
.wd-hero { padding: 6px 12px; border-width: 2px; }
.wd-hero.sel { border-color: var(--hc); color: var(--hc); }
.wd-main { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr); gap: 18px; }
@media (max-width: 760px) { .wd-main { grid-template-columns: 1fr; } }
.wd-preview { position: relative; min-height: 380px; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #2a3156, #0c1020 75%); }
.wd-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.wd-hint { position: absolute; bottom: 8px; width: 100%; text-align: center; color: var(--muted); font-size: 0.75rem; pointer-events: none; }
.wd-slots h3 { margin-top: 0; }
.wd-slot { border-radius: 10px; background: rgba(255, 255, 255, 0.04); margin-bottom: 6px; }
.wd-slot-head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; padding: 10px 12px; font-weight: 400; }
.wd-slot-name { color: var(--muted); }
.wd-slot-val { font-weight: 700; }
.wd-slot-val em { font-style: normal; font-size: 0.7rem; color: var(--accent-2); margin-left: 6px; }
.wd-slot.open { outline: 1px solid var(--accent); }
.wd-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; padding: 0 10px 10px; }
.wd-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; font-weight: 400; text-align: left; }
.wd-opt b { font-size: 0.85rem; }
.wd-opt span { font-size: 0.72rem; color: var(--muted); }
.wd-opt.sel { border-color: var(--accent); }
.wd-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.wd-set { border-radius: 14px; padding: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.wd-set.owned { border-color: rgba(93, 255, 154, 0.35); }
.wd-set-top { display: flex; justify-content: space-between; align-items: baseline; }
.wd-set .price { font-family: var(--mono); color: var(--accent-2); font-size: 0.85rem; }
.wd-set.owned .price { color: var(--good); }
.wd-set p { color: var(--muted); font-size: 0.85rem; margin: 6px 0 10px; }
.wd-set .row { margin-top: 0; }


.room-list { display: flex; flex-direction: column; gap: 8px; }
.room-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.room-item .rn { flex: 1; }
.room-item .rc { font-family: var(--mono); color: var(--accent); letter-spacing: 0.15em; }
.room-item .rp { color: var(--muted); font-size: 0.85rem; }
.empty { color: var(--muted); font-size: 0.9rem; padding: 10px 0; }
.room-code { font-family: var(--mono); font-size: 1.4rem; letter-spacing: 0.25em; color: var(--accent); cursor: pointer; padding: 4px 12px; border: 1px dashed var(--accent); border-radius: 10px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .teams { grid-template-columns: 1fr; } }
.team { border-radius: 14px; padding: 14px; background: rgba(255, 255, 255, 0.04); border-top: 3px solid var(--tc); }
.team h4 { margin: 0 0 10px; color: var(--tc); }
.pslot { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); margin-bottom: 8px; min-height: 48px; }
.pslot .pn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pslot .ph { font-size: 0.85rem; }
.pslot .tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: var(--muted); }
.pslot .tag.ok { background: rgba(93, 255, 154, 0.15); color: var(--good); }
.pslot.me { outline: 1px solid var(--accent); }
.pslot.free { color: var(--muted); justify-content: space-between; }
.pslot button { padding: 4px 10px; font-size: 0.8rem; }

/* ── Optionen / Anleitung ────────────────── */
.options label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0; }
.options label.check { justify-content: flex-start; }
.options input[type="range"] { flex: 1; max-width: 260px; accent-color: var(--accent); padding: 0; }
.options input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.howto p, .howto li { color: #c9d3ea; line-height: 1.5; }
.howto code { font-family: var(--mono); background: rgba(255, 255, 255, 0.1); padding: 1px 6px; border-radius: 5px; }
.keys { border-collapse: collapse; margin: 12px 0; width: 100%; }
.keys td { padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.keys td:first-child { white-space: nowrap; width: 45%; }
kbd { font-family: var(--mono); font-size: 0.8rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; margin-right: 3px; }

/* ── Ergebnis ────────────────────────────── */
.result-score { font-size: 2.6rem; font-weight: 800; text-align: center; margin: 8px 0 18px; font-family: var(--mono); }
#result-title { text-align: center; font-size: 2rem; }
#result-title.win { color: var(--good); }
#result-title.lose { color: var(--red); }
.results { width: 100%; border-collapse: collapse; }
.results th, .results td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.results th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.results td.n { text-align: right; font-family: var(--mono); }
.results tr.me td { background: rgba(47, 214, 255, 0.08); }
#result-actions { justify-content: center; }

/* ── Im Spiel: Labels über Figuren ───────── */
.label { position: absolute; left: 0; top: 0; text-align: center; width: 90px; will-change: transform; }
.label .ln { font-size: 0.72rem; font-weight: 700; text-shadow: 0 1px 3px #000, 0 0 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label.me .ln { color: var(--accent); }
.label .hb { height: 6px; background: rgba(0, 0, 0, 0.6); border-radius: 3px; overflow: hidden; margin: 2px 8px 0; border: 1px solid rgba(0, 0, 0, 0.6); }
.label .hb i { display: block; height: 100%; transition: width 0.15s; }
.label .cb { height: 4px; background: rgba(0, 0, 0, 0.6); border-radius: 2px; overflow: hidden; margin: 2px 16px 0; visibility: hidden; }
.label .cb i { display: block; height: 100%; background: var(--accent-2); }
.label .st { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent-2); text-shadow: 0 1px 2px #000; min-height: 0.8em; }

/* ── HUD ─────────────────────────────────── */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.hud-top { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; gap: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); }
.hud-top .sc { display: flex; align-items: center; gap: 10px; padding: 6px 14px; font-weight: 800; }
.hud-top .sc b { font-size: 1.6rem; font-family: var(--mono); }
.hud-top .sc .tn { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; }
.hud-top .sc0 { background: linear-gradient(90deg, rgba(63, 167, 255, 0.5), rgba(63, 167, 255, 0.85)); }
.hud-top .sc1 { background: linear-gradient(90deg, rgba(255, 84, 104, 0.85), rgba(255, 84, 104, 0.5)); }
.hud-top .timer { background: rgba(8, 12, 22, 0.9); padding: 6px 16px; font-family: var(--mono); font-size: 1.3rem; display: flex; align-items: center; min-width: 90px; justify-content: center; }
.hud-top .timer.sudden { color: var(--accent-2); font-size: 0.9rem; animation: pulse 0.8s infinite alternate; }
.hud-goal { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; color: var(--muted); text-shadow: 0 1px 2px #000; white-space: nowrap; }
.center-msg { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); text-align: center; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); }
.center-msg b { font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; }
.center-msg b.win { color: var(--good); }
.center-msg b.lose { color: var(--red); }
.center-msg span { font-size: 1.4rem; font-weight: 700; background: rgba(0, 0, 0, 0.5); padding: 8px 18px; border-radius: 10px; }
.flash { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); font-size: 1.4rem; font-weight: 800; color: var(--accent-2); text-shadow: 0 2px 10px #000; animation: flash 1.8s forwards; white-space: nowrap; }
.killfeed { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.killfeed div { background: rgba(8, 12, 22, 0.8); padding: 5px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; animation: slidein 0.25s; }
.killfeed i { font-style: normal; color: var(--muted); margin: 0 4px; font-weight: 400; }
.hud-bottom { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hp { position: relative; width: 340px; max-width: 80vw; height: 18px; background: rgba(0, 0, 0, 0.6); border-radius: 9px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); }
.hp-fill { height: 100%; transition: width 0.15s; }
.hp span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; font-family: var(--mono); text-shadow: 0 1px 2px #000; }
.slots { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.slot { position: relative; width: 64px; height: 64px; border-radius: 12px; background: rgba(8, 12, 22, 0.85); border: 2px solid rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.slot.ready { border-color: rgba(47, 214, 255, 0.6); }
.slot.casting { border-color: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); }
.slot.ult { border-color: rgba(255, 176, 46, 0.6); }
.slot.ult.ready { box-shadow: 0 0 12px rgba(255, 176, 46, 0.5); }
.slot.passive { border-style: dashed; border-color: rgba(255, 255, 255, 0.25); }
.slot .ic { font-size: 1.7rem; }
.slot .cd { position: absolute; inset: 0; border-radius: 10px; }
.slot .cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; font-family: var(--mono); text-shadow: 0 1px 3px #000; }
.slot .pi { position: absolute; top: 2px; right: 5px; font-size: 0.65rem; font-family: var(--mono); color: var(--accent); }
.slot .key { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 0.62rem; font-family: var(--mono); background: #1a2238; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.2); white-space: nowrap; }
.slot .nm { position: absolute; bottom: -16px; left: -6px; right: -6px; text-align: center; font-size: 0.6rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.hud-meta { position: absolute; bottom: 10px; right: 14px; font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }
.dmg-layer { position: absolute; inset: 0; overflow: hidden; }
.dmg { position: absolute; font-weight: 800; font-family: var(--mono); color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, 0.6); animation: dmg 0.9s ease-out forwards; transform: translate(-50%, 0); }
.dmg.me { color: var(--red); }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: rgba(8, 12, 22, 0.95); border: 1px solid var(--panel-border); padding: 10px 18px; border-radius: 10px; z-index: 50; }

/* ── Touch-Steuerung ─────────────────────── */
#touch { position: fixed; inset: 0; z-index: 6; pointer-events: none; user-select: none; -webkit-user-select: none; }
#touch > * { pointer-events: auto; touch-action: none; }
.t-zone { position: absolute; left: 0; top: 70px; bottom: 0; width: 50%; }
.t-stick { position: fixed; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.25); pointer-events: none; }
.t-knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(47, 214, 255, 0.55); box-shadow: 0 0 16px rgba(47, 214, 255, 0.5); }
.t-buttons { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 230px; height: 220px; }
.t-btn { position: absolute; border-radius: 50%; background: rgba(8, 12, 22, 0.72); border: 2px solid rgba(255, 255, 255, 0.25); display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.t-btn.down { border-color: var(--accent); background: rgba(47, 214, 255, 0.2); }
.t-btn .ic { font-size: 1.5rem; position: relative; z-index: 1; pointer-events: none; }
.t-btn .cd { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.t-btn .cdt { position: absolute; z-index: 3; font-family: var(--mono); font-size: 1.05rem; text-shadow: 0 1px 3px #000; pointer-events: none; }
.t-punch { width: 84px; height: 84px; right: 0; bottom: 0; }
.t-punch .ic { font-size: 2.1rem; }
.t-quick { width: 58px; height: 58px; right: 96px; bottom: 0; }
.t-a1 { width: 58px; height: 58px; right: 92px; bottom: 66px; }
.t-a2 { width: 58px; height: 58px; right: 34px; bottom: 96px; }
.t-ult { width: 62px; height: 62px; right: 160px; bottom: 40px; border-color: rgba(255, 176, 46, 0.7); }
.t-jump { width: 54px; height: 54px; right: 0; bottom: 156px; }
.t-pause, .t-ally { position: absolute; width: 46px; height: 46px; border-radius: 12px; padding: 0; background: rgba(8, 12, 22, 0.75); }
.t-pause { left: max(12px, env(safe-area-inset-left)); top: 12px; }
.t-ally { right: max(14px, env(safe-area-inset-right)); bottom: 246px; }
body.touch .slots, body.touch .hud-goal, body.touch .hud-meta { display: none; }
body.touch .hud-bottom { left: 50%; bottom: 10px; }
body.touch .hp { width: 220px; height: 14px; }
body.touch .killfeed { top: 70px; font-size: 0.75rem; }
@media (max-height: 480px) {
  .hud-top { top: 6px; }
  .hud-top .sc b { font-size: 1.2rem; }
  .hud-top .timer { font-size: 1rem; min-width: 70px; }
  .center-msg b { font-size: 3rem; }
  .panel { padding: 14px; border-radius: 14px; }
  .logo { font-size: 2rem; }
  .tagline { margin-bottom: 12px; }
  .menu { gap: 6px; }
  button { padding: 8px 14px; }
}

@keyframes dmg { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -40px; } }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, 10px); } 15% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }
@keyframes pulse { to { opacity: 0.55; } }

@media (max-width: 640px) {
  .panel { padding: 16px; }
  .slot { width: 52px; height: 52px; }
  .hud-goal { display: none; }
}

/* ── Parcours-HUD ────────────────────────── */
#hud.course .hud-top .sc0, #hud.course .hud-top .sc1 { background: rgba(8, 12, 22, 0.85); }
#hud.course .hud-top .timer { min-width: 120px; color: var(--accent); }
