/* =====================================================================
   AUTO ROBOT WARS – Gestaltung
   Industrie-Arena: Stahlgrau, Warngelb, satte Seltenheitsfarben.
   ===================================================================== */
:root {
  --bg: #0f1115;
  --bg2: #151820;
  --panel: #1a1e26;
  --panel2: #232833;
  --line: #2f3542;
  --text: #eef1f5;
  --muted: #9aa3ae;
  --accent: #ffc21a;
  --accent-2: #ff9a1a;
  --accent-ink: #1a1400;
  --good: #4ade80;
  --bad: #ff5a4f;
  --blue: #4ec2ff;
  --r: 14px;
  --display: 'Russo One', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #20252f 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.4;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.good { color: var(--good); }
.error { color: var(--bad); min-height: 1.2em; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap { gap: 10px; }
.grow { flex: 1; }
.app { min-height: 100dvh; }
.boot { display: grid; place-items: center; min-height: 100dvh; font-family: var(--display); color: var(--muted); }

.screen {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 8px) 16px calc(var(--safe-b) + 96px);
  min-height: 100dvh;
}
.lead { color: var(--muted); margin: 6px 0 14px; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(#2a303c, #222833);
  box-shadow: 0 3px 0 #0b0d11, inset 0 1px 0 rgba(255,255,255,0.06);
  font-weight: 800; letter-spacing: 0.01em;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #0b0d11; }
.btn.primary {
  background: linear-gradient(#ffd34d, var(--accent) 60%, #e8a800);
  color: var(--accent-ink); border-color: #b88600;
  box-shadow: 0 4px 0 #8a6400, inset 0 1px 0 rgba(255,255,255,0.5);
  font-family: var(--display); font-weight: 400; letter-spacing: 0.04em;
}
.btn.ghost { background: transparent; box-shadow: none; }
.btn.big { min-height: 56px; font-size: 17px; width: 100%; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.danger { color: var(--bad); border-color: rgba(255,90,79,0.4); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.icon-spacer { width: 42px; }
.pill { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--panel2); color: var(--muted); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 4px 0 12px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 70%, transparent); }
.topbar-title { flex: 1; text-align: center; font-family: var(--display); font-size: 17px; }
.boss-word { color: var(--bad); }
.topbar-coins, .menu-coins { font-weight: 800; }
.coins { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: #ffe08a; }
.coins b { font-variant-numeric: tabular-nums; }
.coin { flex: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.5)); }

/* ---------- Hauptmenü ---------- */
.menu { display: flex; flex-direction: column; align-items: stretch; text-align: center; padding-bottom: calc(var(--safe-b) + 24px); }
.menu-coins { align-self: flex-end; padding: 6px 4px; }
.logo { display: flex; flex-direction: column; align-items: center; margin: 4px 0 6px; line-height: 0.95; }
.logo-auto { font-family: var(--display); color: var(--accent); font-size: 22px; letter-spacing: 0.5em; padding-left: 0.5em; }
.logo-main {
  font-family: var(--display); font-size: clamp(40px, 13vw, 64px);
  background: linear-gradient(#ffffff, #c8d0d8 55%, #7f8994);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #0a0c10) drop-shadow(0 0 22px rgba(255,194,26,0.18));
}
.logo-sub { margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: 0.25em; text-transform: uppercase; }
.menu-stage { position: relative; height: 200px; margin: 0; }
.menu-robot { width: 100%; height: 100%; display: block; }
.menu-host { display: flex; align-items: center; gap: 8px; margin: -6px 0 12px; }
.menu-cat { flex: none; }
.speech {
  position: relative; flex: 1; max-width: 260px; text-align: left;
  background: #fff; color: #222; font-weight: 600; font-size: 13px; padding: 8px 11px; border-radius: 12px 12px 12px 3px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
}
.menu-btns { display: flex; flex-direction: column; gap: 10px; }
.menu-settings { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 10px 12px; background: var(--panel); border-radius: var(--r); border: 1px solid var(--line); }
.menu-foot { color: #5c6470; font-size: 12px; margin-top: 18px; }
.segs { display: inline-flex; background: var(--bg2); border-radius: 10px; padding: 3px; gap: 3px; border: 1px solid var(--line); }
.seg { min-width: 42px; height: 34px; border-radius: 8px; border: 0; background: transparent; font-weight: 800; }
.seg.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- Schalotte ---------- */
.schalotte { display: block; overflow: visible; }
.sch-wave .sch-paw, .sch-happy .sch-paw { transform-origin: 100px 104px; animation: wave 1.2s ease-in-out infinite; }
.sch-tail { transform-origin: 92px 114px; animation: tail 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); } }
@keyframes tail { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(10deg); } }
.cat.bob { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.cat-sign {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 70px); z-index: 60;
  transform: translate(-50%, -30px) scale(0.9); opacity: 0;
  display: flex; align-items: flex-end; gap: 4px; pointer-events: none;
  transition: transform 0.35s cubic-bezier(.2,1.4,.4,1), opacity 0.25s;
}
.cat-sign.in { transform: translate(-50%, 0) scale(1); opacity: 1; }
.cat-sign-board {
  position: relative; max-width: 240px; padding: 12px 14px; text-align: center;
  background: linear-gradient(#e6c48f, #c99b5c); color: #3a2410; font-weight: 800; font-size: 14px;
  border: 3px solid #7a5128; border-radius: 6px; box-shadow: 0 6px 0 rgba(0,0,0,0.35);
  transform: rotate(-2deg);
}
.cat-sign-board small { font-weight: 600; }
.cat-sign.warn .cat-sign-board { background: linear-gradient(#ffd34d, #f0a800); border-color: #6b4a00; color: #1a1000; }
.cat-sign-cat { margin-left: -10px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + 90px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 70; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; align-items: center; gap: 8px; max-width: 420px;
  background: #fff; color: #1b1d22; font-weight: 600; font-size: 14px;
  padding: 10px 14px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transform: translateY(16px); opacity: 0; transition: transform 0.25s, opacity 0.25s;
}
.toast.in { transform: none; opacity: 1; }
.toast-cat { flex: none; margin: -6px 0; }

/* ---------- Bottom-Sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 50; display: flex; align-items: flex-end; justify-content: center; transition: background 0.25s; }
.sheet-wrap.in { background: rgba(0,0,0,0.55); }
.sheet {
  width: 100%; max-width: 560px; max-height: 85dvh; overflow: auto;
  background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  padding: 12px 16px calc(var(--safe-b) + 16px);
  transform: translateY(100%); transition: transform 0.28s cubic-bezier(.2,.9,.3,1);
}
.sheet-wrap.in .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.confirm p { margin: 0 0 16px; }
.confirm .btn { flex: 1; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 12px 0 10px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; white-space: nowrap; }
.tabs button small { margin-left: 4px; font-weight: 600; opacity: 0.75; }
.tabs button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs.small button { min-height: 34px; font-size: 13px; }

/* ---------- Panels & Listen ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 12px 0; }
.panel h4 { font-size: 14px; margin-bottom: 8px; color: #dfe4ea; }
.panel.next { border-color: rgba(255,194,26,0.45); }
.list { display: flex; flex-direction: column; gap: 8px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.empty { color: var(--muted); text-align: center; padding: 18px 8px; }
.sub { font-size: 13px; color: var(--muted); margin: 8px 0 0; font-family: var(--body); font-weight: 800; }
.item {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.item.on { border-color: rgba(255,194,26,0.75); background: linear-gradient(rgba(255,194,26,0.07), rgba(255,194,26,0.02)), var(--panel); }
.item.pick:active { transform: scale(0.99); }
.item-head { display: flex; align-items: center; gap: 10px; }
.item-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-title b { font-size: 15px; }
.item-title small { color: var(--muted); font-size: 12.5px; }
.item-title small.good { color: var(--good); }
.item-emoji { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 26px; background: var(--bg2); border-radius: 10px; border: 1px solid var(--line); }
.item-emoji.ult.angriff { box-shadow: inset 0 0 0 2px rgba(255,90,79,0.45); }
.item-emoji.ult.schutz { box-shadow: inset 0 0 0 2px rgba(78,194,255,0.45); }
.item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.wicon { flex: none; background: var(--bg2); border-radius: 10px; border: 1px solid var(--line); }
.radio, .check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); }
.check { border-radius: 6px; }
.radio.on, .check.on { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.check.on { background: var(--accent); box-shadow: inset 0 0 0 3px var(--panel); }
.slot-no { font-size: 12px; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 8px; }
.rbadge { align-self: flex-start; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rc); border: 1px solid var(--rc); border-radius: 6px; padding: 0 5px; }
.tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 18%, transparent); color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); white-space: nowrap; }
.mchip { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--rc); color: var(--text); background: color-mix(in srgb, var(--rc) 15%, transparent); }
.mount-row { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.mchip-btn { min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); font-size: 12.5px; font-weight: 800; color: var(--muted); }
.mchip-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mchip-btn.taken:not(.on) { color: #c9cfd6; }
.mchip-btn i { color: var(--accent-2); font-style: normal; margin-left: 2px; }

/* ---------- Belohnungskarten ---------- */
.reward-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.reward-head h2 { font-size: 21px; }
.reward-head p { margin: 2px 0 0; font-size: 13px; }
.reward-cards { display: flex; flex-direction: column; gap: 10px; }
.reward-card {
  position: relative; text-align: left; width: 100%;
  padding: 12px 14px 12px; border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 22%, var(--panel)) 0%, var(--panel) 45%);
  border: 2px solid color-mix(in srgb, var(--rc) 70%, transparent);
  box-shadow: 0 4px 0 #0b0d11, 0 0 0 0 var(--rc);
  transition: transform 0.12s, box-shadow 0.2s;
  animation: dealIn 0.4s both;
}
.reward-card:nth-child(2) { animation-delay: 0.07s; }
.reward-card:nth-child(3) { animation-delay: 0.14s; }
.reward-card:nth-child(4) { animation-delay: 0.21s; }
@keyframes dealIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
.reward-card.sel { transform: translateY(-2px); box-shadow: 0 6px 0 #0b0d11, 0 0 0 3px var(--rc), 0 0 26px color-mix(in srgb, var(--rc) 55%, transparent); }
.reward-card.r-legendaer { background: linear-gradient(160deg, rgba(255,179,33,0.35), var(--panel) 55%); }
.reward-card.r-legendaer::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(110deg, transparent 30%, rgba(255,240,200,0.18) 45%, transparent 60%); background-size: 250% 100%; animation: shine 2.6s linear infinite; pointer-events: none; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.card-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.card-kind { color: var(--muted); }
.card-rarity { color: var(--rc); }
.card-main { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; }
.card-icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-size: 32px; background: rgba(0,0,0,0.25); border-radius: 12px; }
.card-wicon { width: 56px; height: 56px; flex: none; background: rgba(0,0,0,0.25); border-radius: 12px; }
.card-title { font-family: var(--display); font-size: 18px; line-height: 1.15; }
.card-lines { margin: 0; padding-left: 18px; font-size: 13.5px; color: #d7dce2; }
.card-lines li { margin: 2px 0; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(var(--safe-b) + 12px);
  background: linear-gradient(transparent, var(--bg) 35%);
  display: flex; justify-content: center;
}
.sticky-cta > * { max-width: 528px; }
.sticky-cta.row > .btn:not(.grow) { flex: none; }

/* ---------- Chassis ---------- */
.chassis-list { display: flex; flex-direction: column; gap: 10px; }
.chassis-card { display: flex; gap: 10px; text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 4px 0 #0b0d11; }
.chassis-card:active { transform: translateY(2px); }
.chassis-canvas { width: 110px; height: 130px; flex: none; background: radial-gradient(circle, #262c37, #171a21 70%); border-radius: 12px; }
.chassis-info { flex: 1; min-width: 0; }
.chassis-name { display: flex; align-items: center; gap: 8px; }
.chassis-name b { font-family: var(--display); font-size: 18px; font-weight: 400; }
.chassis-info p { margin: 4px 0; color: var(--muted); }
.chassis-info .trait { color: var(--accent); }

/* ---------- Werte ---------- */
.stat-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.stat { display: flex; flex-direction: column; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 3px 2px; min-width: 0; }
.stat-i { font-size: 12px; line-height: 1.2; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 15px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.extras { margin-top: 6px; font-size: 13px; }
.extras summary { color: var(--muted); cursor: pointer; }
.extra-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 6px; }
.extra-stats div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 2px 0; }
.extra-stats span { color: var(--muted); }

.syn-bar { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; align-items: center; }
.syn { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 32px; padding: 3px 9px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--tc, #777) 40%, var(--line)); background: var(--bg2); font-size: 12px; text-align: left; }
.syn span { font-weight: 800; }
.syn b { font-size: 11px; color: var(--muted); }
.syn small { font-size: 10.5px; color: var(--tc); max-width: 140px; }
.syn.on { background: color-mix(in srgb, var(--tc) 16%, var(--bg2)); border-color: var(--tc); box-shadow: 0 0 12px color-mix(in srgb, var(--tc) 30%, transparent); }
.syn.on b { color: var(--tc); }
.syn.info { width: 32px; align-items: center; justify-content: center; font-size: 16px; }
.syn-row { border-left: 3px solid var(--tc); padding: 4px 0 4px 10px; margin: 10px 0; }
.syn-row h4 { font-size: 15px; color: var(--tc); }
.syn-row ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.syn-row li.on { color: var(--text); }

/* ---------- Werkstatt ---------- */
.ws-top { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .ws-top { grid-template-columns: 200px 1fr; } }
.ws-preview-wrap { position: relative; background: radial-gradient(circle at 50% 45%, #2a313d, #14171d 72%); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ws-preview { display: block; width: 100%; height: 250px; touch-action: manipulation; }
.ws-power { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-end; background: rgba(0,0,0,0.45); padding: 4px 8px; border-radius: 8px; }
.ws-power small { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.ws-power b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--accent); }
.tab-content { min-height: 120px; }

.enemy { margin-top: 16px; background: linear-gradient(rgba(255,90,79,0.08), transparent), var(--panel); border: 1px solid rgba(255,90,79,0.35); border-radius: 16px; padding: 12px; }
.enemy-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.enemy-head b { font-family: var(--display); font-weight: 400; font-size: 18px; color: #ffb3ad; }
.enemy-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bad); width: 100%; }
.enemy-body { display: flex; gap: 10px; margin-top: 8px; }
.enemy-canvas { width: 96px; height: 110px; flex: none; background: radial-gradient(circle, #33262a, #171a21 70%); border-radius: 12px; }
.enemy-info { flex: 1; min-width: 0; }
.enemy-info p { margin: 6px 0 0; }
.vs { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.vs b { font-family: var(--display); font-weight: 400; font-size: 20px; color: #ffb3ad; }
.verdict { font-weight: 800; font-size: 11px; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; }
.verdict.good { background: rgba(74,222,128,0.18); color: var(--good); }
.verdict.mid { background: rgba(255,194,26,0.16); color: var(--accent); }
.verdict.warn { background: rgba(255,154,26,0.2); color: var(--accent-2); }
.verdict.bad { background: rgba(255,90,79,0.2); color: var(--bad); }
.enemy-parts { margin: 10px 0 0; padding-left: 0; list-style: none; font-size: 13px; color: #d4d9df; display: flex; flex-direction: column; gap: 3px; }
.enemy-parts b { color: var(--muted); }
.scout { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.scout ul { margin: 2px 0 0; padding-left: 18px; }
.boss-unknown { border-color: rgba(255,90,79,0.6); }
.boss-unknown .enemy-head b { color: var(--bad); }
.boss-teaser { display: flex; gap: 10px; align-items: center; }
.boss-teaser p { margin: 0; font-size: 13.5px; color: #d4d9df; }

/* ---------- Koop: Teamleiste ---------- */
.team-strip { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 10px; padding-bottom: 2px; }
.mate { flex: none; display: flex; flex-direction: column; padding: 4px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.mate.me { border-color: rgba(92,255,138,0.6); }
.mate.dead { opacity: 0.6; }
.mate.off { opacity: 0.4; }
.mate small { color: var(--muted); }

/* ---------- Ergebnis ---------- */
.result { display: grid; place-items: center; text-align: center; }
.result-box { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.result h1 { font-size: clamp(36px, 11vw, 54px); }
.result.win h1 { color: var(--accent); text-shadow: 0 4px 0 #6b4a00, 0 0 30px rgba(255,194,26,0.4); }
.result.lose h1 { color: var(--bad); text-shadow: 0 4px 0 #4a0e0a; }
.result-coins { font-size: 26px; }
.result-coins .coins { font-size: 30px; }
.run-sum { list-style: none; padding: 0; margin: 4px 0; display: flex; gap: 8px; width: 100%; }
.run-sum li { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; }
.run-sum span { font-size: 12px; color: var(--muted); }
.run-sum b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.result .col { width: 100%; }

/* ---------- Kampf ---------- */
.screen.fight { max-width: none; padding: 0; min-height: 0; height: 100dvh; display: flex; flex-direction: column; background: #121419; overflow: hidden; }
.hud { display: flex; align-items: stretch; gap: 8px; padding: calc(var(--safe-t) + 8px) 10px 8px; background: linear-gradient(#0b0d11, #121419); z-index: 3; }
.hud-side { flex: 1; min-width: 0; }
.hud-name { display: flex; justify-content: space-between; gap: 6px; font-family: var(--display); font-size: 13px; white-space: nowrap; overflow: hidden; }
.hud-name span { overflow: hidden; text-overflow: ellipsis; }
.hud-name em { font-family: var(--body); font-style: normal; font-size: 11px; color: var(--accent); font-weight: 800; }
.hud-side.foe .hud-name { flex-direction: row-reverse; color: #ffb3ad; }
.hud-side.me .hud-name { color: #b5ffcc; }
.hpbar { position: relative; height: 18px; margin-top: 4px; background: #2a0f0f; border-radius: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
.hpbar i { position: absolute; top: 0; bottom: 0; left: 0; }
.hpbar .hp-lag { background: #ffe0a0; }
.hpbar .hp { background: linear-gradient(#7dff9e, #22c55e 60%, #15803d); transition: width 0.08s linear; }
.hud-side.foe .hpbar .hp, .hud-side.boss .hpbar .hp { background: linear-gradient(#ff8f86, #ef4444 60%, #a51d1d); }
.hud-side.foe .hpbar i, .hud-side.foe .hp-num { left: auto; right: 0; }
.hpbar .sh { top: auto; height: 4px; background: #9fd4ff; box-shadow: 0 0 6px #9fd4ff; }
.hp-num { position: absolute; left: 6px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.hud-side.foe .hp-num { right: 6px; left: auto; }
.hud-side.low .hpbar { animation: lowhp 0.6s ease-in-out infinite; }
@keyframes lowhp { 50% { box-shadow: 0 0 0 2px rgba(255,60,60,0.75); } }
.hud-side.dead { opacity: 0.45; }
.hud-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; }
.timer { font-family: var(--display); font-size: 22px; line-height: 1; }
.hud-round { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.boss-hud { flex-direction: column; }
.boss-hud .hud-side.boss .hpbar { height: 24px; }
.boss-hud .hud-side.boss .hud-name { font-size: 16px; color: #ffb3ad; }
.hud-team { display: flex; gap: 6px; }
.hud-side.mini .hud-name { font-size: 11px; }
.hud-side.mini .hpbar { height: 12px; }
.hud-side.mini .hp-num { font-size: 9.5px; }
.hud-side.mate .hpbar .hp { background: linear-gradient(#8fd8ff, #3b9be0); }

.stage { position: relative; flex: 1; min-height: 0; }
.arena-canvas { display: block; width: 100%; height: 100%; }
.center-text {
  position: absolute; left: 0; right: 0; top: 40%; text-align: center; pointer-events: none;
  font-family: var(--display); font-size: clamp(34px, 12vw, 64px); color: #fff;
  text-shadow: 0 4px 0 #000, 0 0 24px rgba(0,0,0,0.6);
  opacity: 0; transform: scale(1.6); transition: opacity 0.15s, transform 0.25s cubic-bezier(.2,1.4,.4,1);
}
.center-text.show { opacity: 1; transform: scale(1); }
.center-text.count { color: var(--accent); }
.center-text.go { color: var(--accent); letter-spacing: 0.05em; }
.center-text.win { color: var(--accent); }
.center-text.lose, .center-text.bad { color: var(--bad); }
.center-text.good { color: var(--good); }
.callouts { position: absolute; top: 8px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; padding: 0 10px; }
.callout {
  max-width: 100%; padding: 8px 16px; border-radius: 10px; font-size: 14px; color: #fff;
  background: rgba(20,24,32,0.92); border: 2px solid rgba(255,255,255,0.15);
  transform: translateY(-14px) scale(0.92); opacity: 0; transition: transform 0.25s cubic-bezier(.2,1.4,.4,1), opacity 0.2s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.callout.in { transform: none; opacity: 1; }
.callout b { font-family: var(--display); font-weight: 400; letter-spacing: 0.03em; }
.callout.foe { background: linear-gradient(90deg, #7a1410, #b3221a); border-color: #ff8a80; font-size: 15px; }
.callout.foe span { opacity: 0.85; }
.callout.own { background: linear-gradient(90deg, #0f4c7a, #1a73b3); border-color: #8fd0ff; }
.callout.ally { background: linear-gradient(90deg, #1d5a3a, #2a8a56); border-color: #9fffc2; }
.callout.good-flash { background: linear-gradient(90deg, #8a6400, #c79200); border-color: #ffe08a; color: #fff; }
.combo {
  position: absolute; right: 10px; bottom: 10px; pointer-events: none;
  font-family: var(--display); font-size: 14px; color: #fff; text-align: right;
  background: rgba(0,0,0,0.55); padding: 6px 10px; border-radius: 10px; border-left: 3px solid var(--accent);
  opacity: 0; transition: opacity 0.3s;
}
.combo.show { opacity: 1; }
.combo b { color: var(--accent); font-size: 20px; font-weight: 400; }
.combo i { color: var(--muted); font-style: normal; }
.combo.pop { animation: pop 0.18s ease-out; }
@keyframes pop { from { transform: scale(1.18); } }
.controls { display: flex; align-items: center; gap: 8px; padding: 10px 10px calc(var(--safe-b) + 10px); background: linear-gradient(#121419, #0b0d11); z-index: 3; }
.controls.done .ult-btn { opacity: 0.4; pointer-events: none; }
.ults { flex: 1; display: flex; gap: 8px; }
.no-ults { color: var(--muted); font-size: 12.5px; padding: 8px; }
.ult-btn {
  --cd: 0;
  position: relative; flex: 1; max-width: 140px; height: 74px; border-radius: 16px; overflow: hidden;
  border: 2px solid #3b4352; background: #1c212b; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 4px 0 #07080b;
  touch-action: manipulation;
}
.ult-btn::before { content: ''; position: absolute; inset: 0; background: conic-gradient(rgba(0,0,0,0.72) calc(var(--cd) * 360deg), transparent 0); pointer-events: none; }
.ult-btn.ready { border-color: var(--accent); box-shadow: 0 4px 0 #6b4a00, 0 0 18px rgba(255,194,26,0.45); animation: readyPulse 1.4s ease-in-out infinite; }
.ult-btn.ready.schutz { border-color: var(--blue); box-shadow: 0 4px 0 #0b3a5a, 0 0 18px rgba(78,194,255,0.45); }
@keyframes readyPulse { 50% { transform: translateY(-1px); } }
.ult-btn.fired { transform: scale(0.94); }
.ult-btn.nope { animation: nope 0.25s; }
@keyframes nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ult-ico { font-size: 26px; line-height: 1; position: relative; }
.ult-name { font-size: 10.5px; font-weight: 800; position: relative; text-align: center; padding: 0 4px; line-height: 1.1; }
.ult-cd { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 26px; text-shadow: 0 2px 0 #000; }
.toggles { display: flex; flex-direction: column; gap: 6px; }
.tog { min-width: 56px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; font-size: 13px; }
.tog.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Garage ---------- */
.garage-intro { display: flex; gap: 10px; align-items: center; }
.garage-intro p { margin: 0; font-size: 13.5px; color: #d4d9df; }
.garage-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
  padding: 8px; border-radius: 18px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 40px), repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 40px), #191c22;
  border: 3px solid transparent;
  border-image: repeating-linear-gradient(45deg, #e2b42a 0 12px, #1b1b1b 12px 24px) 8;
}
.plot { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px; text-align: center; position: relative; }
.plot.empty { border-style: dashed; color: var(--muted); background: rgba(255,255,255,0.02); }
.plot.empty .plus { font-size: 30px; line-height: 1; color: var(--accent); }
.plot.locked { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 6px, transparent 6px 12px), #14171d; color: var(--muted); }
.plot.locked.next { border-color: rgba(255,194,26,0.5); }
.plot .lock { font-size: 22px; }
.plot .price .coins { font-size: 13px; }
.plot.built { background: linear-gradient(#262c37, #1c2129); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.35); }
.fac-ico { font-size: 32px; line-height: 1.1; }
.fac-name { font-size: 11px; font-weight: 800; line-height: 1.15; }
.pips { display: flex; gap: 3px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: #3a404c; }
.pips i.on { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.plot.bay { background: radial-gradient(circle, rgba(78,194,255,0.18), transparent 70%), #12151b; border-color: rgba(78,194,255,0.4); padding: 0; overflow: hidden; }
.bay-canvas { width: 100%; height: 100%; }
.bay-label { position: absolute; bottom: 4px; font-size: 10px; color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.bonus-list { margin: 0; padding-left: 18px; font-size: 13.5px; color: #d4d9df; }
.fac-detail { text-align: center; }
.fac-detail p { color: var(--muted); }
.fac-detail .panel { text-align: left; }
.fac-detail .row .btn { flex: 1; }
.fac-big { font-size: 56px; }
.ach.on .item-emoji { background: rgba(255,194,26,0.15); }

/* ---------- Lackiererei ---------- */
.look-top { background: radial-gradient(circle at 50% 45%, #2a313d, #14171d 72%); border: 1px solid var(--line); border-radius: 16px; }
.look-preview { display: block; width: 100%; height: 220px; }
.name-field, .field { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.name-field input, .field input, .code-input {
  min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 16px;
}
.code-input { width: 110px; text-transform: uppercase; letter-spacing: 0.3em; font-family: var(--display); text-align: center; }
.slot-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.slot-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: 13px; }
.slot-btn i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); }
.slot-btn.on { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.set-hint { font-size: 12.5px; color: #f0c05a; background: rgba(240,192,90,0.08); border: 1px solid rgba(240,192,90,0.3); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.look-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.look-grid.color { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-align: center; min-width: 0; }
.tile.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile.trying { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.tile.locked .tile-canvas, .tile.locked .swatch { opacity: 0.55; }
.tile-canvas { width: 100%; aspect-ratio: 1; }
.tile-name { font-size: 11.5px; font-weight: 700; line-height: 1.15; }
.tile-perk { font-size: 10px; color: var(--good); line-height: 1.15; }
.tile-state { position: absolute; top: 4px; right: 6px; color: var(--accent); font-weight: 800; }
.tile-lock { position: absolute; top: 4px; right: 4px; font-size: 13px; }
.tile-set { position: absolute; top: 3px; left: 5px; font-size: 13px; }
.tile-price .coins { font-size: 12px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); margin-top: 4px; }
.trail-ico { font-size: 30px; height: 56px; display: grid; place-items: center; }
.buy-bar { position: sticky; bottom: calc(var(--safe-b) + 8px); display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; color: #1b1d22; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 6; }
.buy-bar span { flex: 1; }
.buy-bar .btn.ghost { color: #333; border-color: #ccc; }
.buy-bar .coins { color: var(--accent-ink); }

/* ---------- Koop ---------- */
.coop-intro, .lobby-cat { display: flex; gap: 12px; align-items: center; }
.coop-intro p, .lobby-cat p { margin: 0; font-size: 14px; color: #d4d9df; }
.room-code { text-align: center; margin: 4px 0 10px; }
.room-code small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.room-code b { font-family: var(--display); font-weight: 400; font-size: 54px; letter-spacing: 0.25em; padding-left: 0.25em; color: var(--accent); }
.lobby-join { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.qr { width: 120px; height: 120px; flex: none; background: #fff; border-radius: 10px; padding: 4px; }
.qr:empty { display: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.join-url { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; color: var(--accent); margin: 4px 0 0; }
.player-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; }
.player-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.player-list li.off { opacity: 0.5; }
.player-list li.dead { opacity: 0.65; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); flex: none; }
.player-list li.off .dot { background: #666; }
.dot.ok { box-shadow: 0 0 8px var(--good); }
.wait-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 10px; }
.wait-box p { margin: 0; color: #d4d9df; }
body.offline::after { content: 'Verbindung zum Server unterbrochen …'; position: fixed; top: calc(var(--safe-t) + 4px); left: 50%; transform: translateX(-50%); background: var(--bad); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 8px; z-index: 99; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.btn.primary .coins, .buy-bar .coins { color: var(--accent-ink); }

/* =====================================================================
   HÄRTERE OPTIK – Arena-Industrial (überschreibt die Grundwerte oben)
   ===================================================================== */
:root {
  --bg: #0a0b0d;
  --bg2: #111317;
  --panel: #16191e;
  --panel2: #1e2228;
  --line: #2b3038;
  --text: #e9ecef;
  --muted: #8d959f;
  --accent: #f2b01e;
  --accent-2: #ff7a1a;
  --accent-ink: #120d00;
  --bad: #ff4433;
  --r: 3px;
  --cut: 12px;
  --display: 'Teko', 'Arial Narrow', 'Impact', sans-serif;
  --body: 'Chakra Petch', 'Inter', system-ui, sans-serif;
}
body {
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(242,176,30,0.10), transparent 60%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,0.65) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 48px),
    linear-gradient(#0d0f12, #08090b);
  background-attachment: fixed;
  font-size: 15px;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4 { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; }
.chamfer, .btn, .panel, .item, .reward-card, .chassis-card, .enemy, .tile, .plot, .menu-settings, .ws-preview-wrap, .look-top, .lobby-join, .player-list li, .run-sum li, .ult-btn, .stat, .syn, .tabs, .mate, .callout, .combo {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  border-radius: 0;
}
.stat, .syn, .mate, .tabs, .player-list li { --cut: 7px; }
.tabs button, .seg, .mchip-btn, .slot-btn, .tog, .icon-btn, .pill, .rbadge, .tag, .mchip { border-radius: 2px; }

/* Knöpfe */
.btn {
  font-family: var(--display); font-weight: 600; font-size: 21px; text-transform: uppercase; letter-spacing: 0.05em;
  min-height: 50px; padding: 4px 20px 0;
  background: linear-gradient(#2a2f37, #1b1f25);
  border: 1px solid #39404a; border-bottom: 3px solid #0b0c0f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 1px; box-shadow: none; }
.btn.primary {
  background:
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.07) 0 10px, transparent 10px 20px),
    linear-gradient(#ffcd4a, var(--accent) 55%, #c98a00);
  color: var(--accent-ink); border: 1px solid #ffd970; border-bottom: 3px solid #6b4a00;
  box-shadow: 0 0 22px rgba(242,176,30,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
  font-size: 23px; font-weight: 700;
}
.btn.big { min-height: 58px; font-size: 24px; }
.btn.small { min-height: 36px; font-size: 17px; padding: 3px 12px 0; --cut: 7px; }
.btn.ghost { background: transparent; border-color: #2e343c; border-bottom-width: 1px; }
.icon-btn { background: var(--panel2); border-color: #39404a; font-family: var(--display); font-size: 30px; padding-top: 4px; }

/* Kopfzeile */
.topbar { background: linear-gradient(#0a0b0d 75%, transparent); }
.topbar-title { font-family: var(--display); font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 3px; }

/* Logo */
.logo { margin: 10px 0 0; }
.logo-auto {
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: 0.6em; padding-left: 0.6em;
  color: #0b0b0b; background: var(--accent); padding: 2px 12px 0 calc(12px + 0.6em); transform: skewX(-12deg);
}
.logo-main {
  font-family: var(--display); font-weight: 700; font-size: clamp(64px, 21vw, 104px); line-height: 0.82; margin-top: 8px;
  letter-spacing: 0.01em; transform: skewX(-8deg);
  background: linear-gradient(180deg, #ffffff 0%, #d7dde3 38%, #6d7680 50%, #c3cad1 62%, #8b939c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 1px #000) drop-shadow(0 0 26px rgba(255,90,40,0.35));
}
.logo-sub { font-family: var(--display); font-size: 17px; letter-spacing: 0.42em; color: #8d959f; margin-top: 10px; }
.logo-sub::before, .logo-sub::after { content: '//'; color: var(--accent-2); margin: 0 8px; letter-spacing: 0; }
.speech { background: #e9ecef; border-radius: 3px 14px 14px 3px; font-family: var(--body); }
.menu-settings span { font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: 0.05em; }
.seg { font-family: var(--display); font-size: 20px; padding-top: 3px; }
.menu-foot { font-family: var(--display); letter-spacing: 0.2em; text-transform: uppercase; }

/* Panels, Listen, Karten */
.panel, .item, .chassis-card, .enemy {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 40%), var(--panel);
  border: 1px solid var(--line);
}
.panel h4, .sub { font-family: var(--display); font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.item.on { border-color: rgba(242,176,30,0.8); background: linear-gradient(90deg, rgba(242,176,30,0.12), transparent 60%), var(--panel); }
.item-title b { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: 0.03em; line-height: 1; }
.item-emoji, .wicon, .card-icon, .card-wicon { border-radius: 2px; background: #0c0e11; border: 1px solid #262b32; }
.tabs { background: #0d0f12; padding: 3px; }
.tabs button { font-family: var(--display); font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 3px; }
.tabs button.on { background: var(--panel2); box-shadow: inset 0 -3px 0 var(--accent); }
.tabs.small button { font-size: 17px; }
.reward-card { box-shadow: none; border-width: 2px; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 26%, #14171b) 0%, #14171b 50%); }
.reward-card.sel { box-shadow: none; outline: none; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 40%, #14171b) 0%, #191c21 60%); border-color: var(--rc); }
.reward-card.sel::before { content: 'GEWÄHLT'; position: absolute; right: 14px; bottom: 10px; font-family: var(--display); font-size: 18px; color: var(--rc); letter-spacing: 0.1em; }
.card-title { font-family: var(--display); font-size: 26px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95; }
.card-top { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: 0.12em; }
.reward-head h2 { font-size: 30px; }
.chassis-name b { font-family: var(--display); font-size: 28px; font-weight: 600; text-transform: uppercase; }
.chassis-canvas, .enemy-canvas, .ws-preview-wrap, .look-top {
  background: radial-gradient(circle at 50% 42%, #2b3038, #0c0e11 70%);
}
.stat b { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1; padding-top: 2px; }
.stat small { font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; }
.ws-power b, .vs b, .run-sum b { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; }
.enemy { border-color: rgba(255,68,51,0.4); background: linear-gradient(180deg, rgba(255,68,51,0.10), transparent 50%), var(--panel); }
.enemy-head b { font-family: var(--display); font-size: 26px; font-weight: 600; text-transform: uppercase; }
.enemy-label { font-family: var(--display); font-size: 15px; letter-spacing: 0.14em; }
.verdict { font-family: var(--display); font-size: 15px; letter-spacing: 0.08em; padding-top: 2px; }
.result h1 { font-size: clamp(64px, 20vw, 100px); font-weight: 700; transform: skewX(-6deg); }
.room-code b { font-family: var(--display); font-size: 80px; font-weight: 600; }
.cat-sign-board { font-family: var(--body); border-radius: 2px; }

/* Kampf-HUD */
.screen.fight { background: #08090b; }
.hud { background: linear-gradient(#050607, #0d0f12); border-bottom: 1px solid #22262c; }
.hud-name { font-family: var(--display); font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.hpbar { height: 20px; border-radius: 0; transform: skewX(-14deg); border: 1px solid rgba(255,255,255,0.18); background: #1d0907; }
.hud-side.foe .hpbar { transform: skewX(14deg); }
.hp-num { font-family: var(--display); font-size: 16px; font-weight: 600; padding-top: 2px; }
.timer { font-family: var(--display); font-size: 34px; font-weight: 600; }
.hud-round { font-family: var(--display); font-size: 13px; letter-spacing: 0.12em; }
.center-text { font-family: var(--display); font-size: clamp(64px, 22vw, 110px); font-weight: 700; transform: scale(1.6) skewX(-8deg); text-transform: uppercase; }
.center-text.show { transform: scale(1) skewX(-8deg); }
.callout { border-radius: 0; font-family: var(--body); --cut: 9px; }
.callout b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.combo { font-family: var(--display); font-size: 18px; letter-spacing: 0.06em; border-radius: 0; }
.combo b { font-size: 28px; }
.ult-btn { border-radius: 0; background: linear-gradient(#1d2128, #121418); border-color: #353c46; box-shadow: none; }
.ult-name { font-family: var(--display); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.ult-cd { font-family: var(--display); font-size: 38px; }
.tog { font-family: var(--display); font-size: 18px; padding-top: 3px; }

/* Garage */
.garage-grid { border-radius: 0; }
.fac-name { font-family: var(--display); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.tile-name { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.logo-sub { font-size: 15px; letter-spacing: 0.3em; }
.menu-stage { height: 210px; }
.hud-mid { width: 70px; }
.hud-round { white-space: nowrap; }
.ws-style { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.12); padding: 4px 9px 2px; text-align: left; }
.ws-style small { font-family: var(--display); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.ws-style b { font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; line-height: 1; }
.enemy-style { margin: 8px 0 0; font-size: 13px; color: #d4d9df; background: rgba(0,0,0,0.25); padding: 6px 9px; border-left: 3px solid var(--bad); }
.enemy-style b { font-family: var(--display); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #ffb3ad; }
.team-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.team-row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.team-name { font-family: var(--display); font-size: 26px; font-weight: 600; text-transform: uppercase; line-height: 1; color: var(--accent); }
.team-coins .coins { font-size: 18px; }
.team-panel .row .btn { flex: 1; }
.new-team { margin-top: 8px; }
.new-team input { flex: 1; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 15px; }
.team-head { display: flex; align-items: baseline; gap: 8px; margin: -4px 0 6px; }
.team-head small { font-family: var(--display); font-size: 14px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.team-head b { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--accent); text-transform: uppercase; }
/* Elite-Wahl */
.enemy-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -2px 0 10px; }
.ch-btn { --cut: 8px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); display: flex; flex-direction: column; align-items: flex-start; padding: 7px 10px 6px; background: #101215; border: 1px solid var(--line); text-align: left; }
.ch-btn b { font-family: var(--display); font-size: 22px; font-weight: 600; text-transform: uppercase; line-height: 1; }
.ch-btn small { font-size: 11.5px; color: var(--muted); }
.ch-btn.on { border-color: #8a929b; background: linear-gradient(#262b33, #181b20); }
.ch-btn.elite b { color: #ffcf4a; }
.ch-btn.elite.on { border-color: var(--accent); background: linear-gradient(rgba(242,176,30,0.25), rgba(242,176,30,0.06)); box-shadow: inset 0 0 0 1px rgba(242,176,30,0.5); }
.ch-btn.locked { opacity: 0.55; }
.enemy.is-elite { border-color: rgba(242,176,30,0.7); background: linear-gradient(180deg, rgba(242,176,30,0.14), transparent 45%), var(--panel); }
.enemy.is-elite .enemy-label { color: var(--accent); }
.enemy.is-elite .enemy-head b { color: #ffd76a; }
.elite-info { margin-top: 8px; padding: 8px 10px; background: rgba(0,0,0,0.3); border-left: 3px solid var(--accent); font-size: 13px; }
.elite-info p { margin: 2px 0; }
.elite-info b { font-family: var(--display); font-size: 17px; font-weight: 600; color: #ffd76a; text-transform: uppercase; letter-spacing: 0.03em; }
.btn.elite-go { background: repeating-linear-gradient(-45deg, rgba(0,0,0,0.12) 0 10px, transparent 10px 20px), linear-gradient(#ffd76a, #f2a01e 55%, #b86e00); box-shadow: 0 0 26px rgba(255,170,30,0.5), inset 0 1px 0 rgba(255,255,255,0.6); }
/* Kartenwahl-Bestätigung */
.confirm-card .reward-card { animation: none; cursor: default; }
.confirm-preview { display: flex; gap: 10px; align-items: center; margin: 10px 0; padding: 8px; background: radial-gradient(circle at 40% 45%, #2b3038, #0c0e11 75%); border: 1px solid var(--line); }
.confirm-robot { width: 130px; height: 130px; flex: none; }
.confirm-info p { margin: 4px 0; font-size: 14px; }
.confirm-info b.good { color: var(--good); font-family: var(--display); font-size: 22px; font-weight: 600; }
.confirm-info b.bad-text { color: var(--bad); font-family: var(--display); font-size: 22px; font-weight: 600; }
.confirm-actions .btn.ghost { flex: none; }
/* Zuschauen & Bereit */
.spectate { width: 100%; margin-top: 4px; }
.spectate-stage { width: 100%; height: min(62vh, 520px); min-height: 320px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.screen.fight.embedded { height: 100%; min-height: 0; }
.live-label { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.live-label small { font-family: var(--body); font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: lowhp 1s ease-in-out infinite; }
.spectate-idle { padding: 18px 12px; border: 1px dashed var(--line); text-align: center; }
.pill-ok { background: rgba(74,222,128,0.18); color: var(--good); }
.player-list li .btn.small { margin-left: auto; }

/* Kampfrolle unter dem Kampfwert */
.ws-style .ws-style-sub { font-size: 0.78em; opacity: 0.75; font-weight: 600; }

/* 3D-Arena: WebGL-Leinwand unten, 2D-Ebene (Zahlen, Namen) darüber */
.stage.is3d { background: #0a0d11; }
.stage.is3d .arena3d { position: absolute; inset: 0; display: block; z-index: 0; }
.stage.is3d .arena-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage.is3d .center-text, .stage.is3d .callouts, .stage.is3d .combo { z-index: 2; }

/* =====================================================================
   Liga-Karriere: Stadt, Straßenkämpfe, Turnier, Schmiede
   ===================================================================== */
.screen.hub { --lc: var(--accent); }
.hub-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.hub-status > div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-status small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 800; }
.hub-status b { font-family: var(--display); font-size: 18px; }
.spares { display: inline-flex; gap: 3px; font-size: 18px; line-height: 1; }
.spares i { font-style: normal; color: #3a404c; filter: grayscale(1); }
.spares i.on { color: var(--accent); filter: none; text-shadow: 0 0 8px rgba(255, 194, 26, 0.45); }
.spares-big { margin: 6px 0 12px; }
.spares-big .spares { font-size: 30px; gap: 6px; }

.league-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.league-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.league-tab span { font-size: 20px; line-height: 1; }
.league-tab small { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.league-tab.on { border-color: var(--lc); box-shadow: inset 0 0 0 1px var(--lc), 0 0 14px color-mix(in srgb, var(--lc) 35%, transparent); background: color-mix(in srgb, var(--lc) 14%, var(--panel)); }
.league-tab.locked { opacity: 0.45; }
.league-tab .title-dot { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 10px; }

.hub-story { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; }
.hub-story .cat { flex: none; }
.hub-story .hub-speech { color: var(--text); margin: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; position: relative; }
.hub-h { font-family: var(--display); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin: 14px 0 8px; color: var(--muted); }

.street-list { display: flex; flex-direction: column; gap: 8px; }
.street-card { text-align: left; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.street-card.d-leicht { border-left-color: var(--good); }
.street-card.d-normal { border-left-color: var(--accent); }
.street-card.d-hart { border-left-color: var(--bad); }
.street-card:active { transform: scale(0.99); }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-top b { font-family: var(--display); font-size: 15px; }
.sc-mid, .sc-bot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; }
.sc-bot { font-size: 12px; color: var(--muted); }
.sc-foes { font-weight: 800; }
.diff-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--panel2); white-space: nowrap; }
.warn-line { color: var(--bad); font-weight: 800; }

.tour-poster { --lc: var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--lc) 18%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--lc) 55%, var(--line)); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 90px; }
.tp-head { display: flex; gap: 10px; align-items: center; }
.tp-icon { font-size: 34px; line-height: 1; }
.tp-head b { font-family: var(--display); font-size: 19px; display: block; }
.tp-head small { color: var(--muted); font-size: 12px; }
.tp-rounds, .tp-prizes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tp-rounds li { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 8px; align-items: center; background: rgba(0, 0, 0, 0.18); border-radius: 8px; padding: 5px 8px; }
.tp-rounds li span:first-child { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 800; }
.tp-rounds li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-prizes li { line-height: 1.35; }

.badge-hot { color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 900; margin-left: 4px; }
.craft-hint { width: 100%; margin: 8px 0 4px; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--accent); background: rgba(255, 194, 26, 0.08); color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; text-align: left; }
.forge-row .btn { white-space: nowrap; }
.forge-prog { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.stack { background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.gold-word { color: var(--accent); }

.bracket { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.br-col { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; opacity: 0.6; }
.br-col.on { opacity: 1; }
.br-col > small { text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.br-pair { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.br-pair span { display: block; padding: 5px 7px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-pair span + span { border-top: 1px solid var(--line); }
.br-pair span.me { color: var(--accent); font-weight: 800; background: rgba(255, 194, 26, 0.08); }
.br-col.on .br-pair:has(.me) { border-color: var(--lc); }
.tour-next { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.result-gold { font-family: var(--display); font-size: 22px; color: var(--accent); margin: 4px 0; }
.medal { font-size: 54px; line-height: 1; margin: -6px 0 4px; }
.unlock { font-weight: 800; color: var(--good); }
.enemy-detail { border-top: 1px solid var(--line); padding-top: 10px; }
.enemy-detail + .enemy-detail { margin-top: 6px; }

.buy-spare { margin-top: 4px; align-self: flex-start; font: inherit; font-size: 11px; font-weight: 800; color: var(--accent); background: transparent; border: 1px solid rgba(255,194,26,0.5); border-radius: 999px; padding: 2px 8px; cursor: pointer; }
.buy-spare:disabled { opacity: 0.4; cursor: default; }

/* =====================================================================
   Karten-Run: Karte, Plaketten, Vorschau, Taktik, Schrott-Duell
   ===================================================================== */
.screen.map { display: flex; flex-direction: column; height: 100dvh; padding-bottom: 0; }
.map-gold { font-weight: 800; color: var(--accent); white-space: nowrap; }
.map-mates .mate { border-left: 3px solid var(--pc, var(--accent)); }
.map-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 200px; border-radius: 14px; border: 2px solid #3a2f22; box-shadow: inset 0 0 0 1px #0008; }
.map-board { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 2 / 3; background-size: cover; background-position: center; }
.map-lines, .map-lines svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-lines line { stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-lines line.case { stroke: #000d; stroke-width: 9px; }
.map-lines line.live { stroke: #f4e2b8; stroke-width: 4px; }
.map-lines line.dead { stroke: #ffffff26; stroke-width: 2px; }
.map-lines line.walked { stroke: var(--accent); stroke-width: 5px; }
.map-lines line.open { stroke: #ffe28a; stroke-width: 6px; filter: drop-shadow(0 0 3px #ffb21a); }
@keyframes dash { to { stroke-dashoffset: -2.6; } }
.plate { position: absolute; width: 10.5%; aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; transition: transform .15s; }
.plate img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px #000a); pointer-events: none; }
.plate.boss { width: 17%; }
.plate.past { opacity: .5; }
.plate.past img { filter: grayscale(1) brightness(.6); }
.plate.done img { filter: sepia(.4) brightness(.8) drop-shadow(0 2px 3px #000a); }
.plate.here { transform: translate(-50%, -50%) scale(1.15); }
.plate.here::after { content: ''; position: absolute; inset: -8%; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 14px var(--accent); }
.plate.can { animation: platePulse 1.1s ease-in-out infinite; z-index: 2; }
.plate.can::after { content: ''; position: absolute; inset: -6%; border-radius: 50%; border: 3px solid #ffe28a; box-shadow: 0 0 16px #ffb21a; }
.plate.sel::before { content: ''; position: absolute; inset: -14%; border-radius: 50%; border: 2px dashed #fff; }
.plate.duel::after { border-color: #4fc3ff; box-shadow: 0 0 18px #4fc3ff; }
@keyframes platePulse { 50% { transform: translate(-50%, -50%) scale(1.12); } }
.plate .votes { position: absolute; left: 50%; bottom: -22%; transform: translateX(-50%); display: flex; gap: 2px; }
.plate .votes i { font-style: normal; font: 800 11px/18px var(--display, sans-serif); width: 18px; height: 18px; border-radius: 50%; color: #111; text-align: center; box-shadow: 0 1px 3px #000; }
.map-panel { flex: 0 0 auto; max-height: 48dvh; overflow-y: auto; margin-top: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(#232833f2, #1a1e26f2); border: 1px solid #ffc21a44; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.map-hint { margin: 0; font-weight: 600; }
.map-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.map-title img { width: 34px; height: 34px; }
.station-info { display: flex; flex-direction: column; gap: 6px; }
.station-info p { margin: 0; }
.mods { display: flex; flex-wrap: wrap; gap: 4px; }
.pill.warn { background: #5a2a14; color: #ffcf9a; }
.foes { display: flex; flex-direction: column; gap: 6px; }
.foes .foe { display: flex; gap: 10px; align-items: center; background: #0f1115aa; border-radius: 10px; padding: 4px 8px 4px 4px; }
.foes .foe.boss { border: 1px solid #ffc21a66; }
.foe-canvas { width: 64px; height: 64px; flex: none; }
.tactics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tactic { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 1px solid #ffffff22; background: var(--panel2); color: inherit; font-size: 12px; }
.tactic span { font-size: 20px; }
.tactic.on { border-color: var(--accent); background: #3a3215; box-shadow: 0 0 0 1px var(--accent) inset; }
.shop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shop-item { display: flex; flex-direction: column; gap: 4px; }
.shop-item.sold { opacity: .45; }
.shop-item .reward-card { min-height: 0; font-size: 12px; }
.duel-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: #000a; }
.duel-box { width: min(420px, 100%); background: linear-gradient(#2a2f3a, #171a21); border: 2px solid #4fc3ff88; border-radius: 18px; padding: 16px; text-align: center; box-shadow: 0 0 40px #4fc3ff44; }
.duel-box h2 { margin: 0 0 4px; font-family: var(--display, sans-serif); letter-spacing: .04em; }
.duel-bar { height: 6px; background: #0006; border-radius: 3px; overflow: hidden; margin: 8px 0; }
.duel-timer { display: block; height: 100%; background: linear-gradient(90deg, #4fc3ff, #ffc21a); transform-origin: left; animation: duelTime linear forwards; }
@keyframes duelTime { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.duel-groups { display: flex; justify-content: center; gap: 12px; margin: 10px 0; }
.duel-group { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .3s, transform .3s; }
.duel-group.lost { opacity: .35; transform: scale(.9); }
.duel-group.won { transform: scale(1.1); }
.g-plate { width: 52px; height: 52px; }
.g-names { font-size: 12px; font-weight: 700; }
.g-sym { width: 70px; height: 70px; animation: symIn .4s ease-out; }
.g-sym.wait { display: grid; place-items: center; font: 800 28px var(--display, sans-serif); color: #4fc3ff; border-radius: 50%; border: 2px dashed #4fc3ff66; animation: none; }
@keyframes symIn { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
.duel-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.duel-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: inherit; font-weight: 700; padding: 0; }
.duel-btn img { width: 100%; max-width: 96px; aspect-ratio: 1; transition: transform .12s; }
.duel-btn.on img { transform: scale(1.1); }
.tiny { font-size: 11px; margin: 6px 0 0; }

/* =====================================================================
   Neuer Look: Startbildschirm, Einspieler, Erzählerin Schalotte
   ===================================================================== */
.screen.start { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); overflow: hidden; }
.start-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; z-index: -1; }
.start-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#0b0f1733, transparent 30%, #0b0f17cc 62%, #0b0f17 88%); }
.start-logo { position: absolute; top: max(28px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; line-height: .82; }
.start-logo .logo-auto { display: block; font: 600 22px 'Teko', sans-serif; letter-spacing: .6em; padding-left: .6em; color: #ffd27a; text-shadow: 0 2px 8px #000; }
.start-logo .logo-main { display: block; font: 700 64px 'Teko', sans-serif; color: #f2f4f7; -webkit-text-stroke: 2px #140800; text-shadow: 0 4px 0 #140800, 0 0 28px #ff8a1a99; }
.start-btns { display: flex; flex-direction: column; gap: 10px; max-width: 460px; width: 100%; margin: 0 auto; }
.start-btns .btn { font-family: 'Teko', sans-serif; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); border-radius: 0; }
.start-btns .btn:not(.primary):not(.ghost) { background: #0d1422e6; border: 1px solid #ff9a1a88; color: #eef2f7; }
.narrator { display: flex; gap: 10px; align-items: center; max-width: 460px; width: 100%; margin: 0 auto; padding: 10px 14px 10px 8px; background: #fffaf0; color: #17110a; border: 3px solid #140800; box-shadow: 4px 4px 0 #140800; transform: rotate(-.6deg); }
.narrator p { margin: 0; font: 600 16px/1.3 'Chakra Petch', sans-serif; }
.narrator-cat { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #ffd27a; border: 2px solid #140800; overflow: hidden; display: grid; place-items: center; }
.screen.intro { position: relative; min-height: 100dvh; overflow: hidden; cursor: pointer; padding: 0; }
.intro-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: introIn .7s ease-out; }
@keyframes introIn { from { transform: scale(1.06); filter: brightness(.4) saturate(.3); } }
.intro-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #0b0f17ee 45%); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.intro-tap { font: 600 15px 'Teko', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #ffd27a; animation: tapPulse 1.4s ease-in-out infinite; }
@keyframes tapPulse { 50% { opacity: .45; } }
.intro-skip { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; font: 600 16px 'Teko', sans-serif; letter-spacing: .08em; padding: 6px 12px 4px; background: #0d1422cc; color: #eef2f7; border: 1px solid #ffffff33; }
.intro-dots { position: absolute; top: max(22px, env(safe-area-inset-top)); left: 16px; display: flex; gap: 6px; z-index: 2; }
.intro-dots i { width: 22px; height: 4px; background: #ffffff44; }
.intro-dots i.on { background: #ffb21a; }
.chassis-portrait { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid #140800; box-shadow: 3px 3px 0 #140800; background: #2a2f3a; }
.screen.chassis .chassis-card { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
.screen.chassis .chassis-portrait { max-width: none; width: 100%; aspect-ratio: 16 / 9; object-position: center 40%; }
.screen.chassis .chassis-name b { font-family: 'Teko', sans-serif; font-size: 28px; letter-spacing: .04em; }
.start-logo .logo-auto { background: none; }
/* Wrack-Wahl: drei kleine Tabs oben, das gewählte groß darunter, alles ohne Scrollen */
.screen.chassis { display: flex; flex-direction: column; gap: 8px; }
.chassis-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chassis-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px 6px; background: var(--panel); border: 2px solid #ffffff1a; border-radius: 10px; color: inherit; font: 600 15px 'Teko', sans-serif; letter-spacing: .04em; opacity: .65; }
.chassis-tab img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.chassis-tab.on { opacity: 1; border-color: var(--accent); box-shadow: 0 0 12px #ffb21a66; }
.chassis-detail { display: flex; flex-direction: column; gap: 6px; }
.chassis-detail p { margin: 0; }
.chassis-detail .chassis-portrait { max-width: none; width: 100%; aspect-ratio: 16 / 9; object-position: center 40%; }
.chassis-detail .chassis-name { display: flex; align-items: center; gap: 8px; }
.chassis-detail .chassis-name b { font-family: 'Teko', sans-serif; font-size: 30px; line-height: 1; letter-spacing: .04em; }
/* Bestätigung direkt an der Plakette */
.map-pop { position: absolute; z-index: 5; width: min(230px, 68%); padding: 10px 12px; background: #0d1422f2; border: 1px solid #ffb21a; box-shadow: 0 6px 20px #000c, 0 0 14px #ffb21a44; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.map-pop h4 { margin: 0; display: flex; align-items: center; gap: 6px; font: 600 20px/1 'Teko', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.map-pop h4 img { width: 26px; height: 26px; }
.map-pop p { margin: 0; }
.map-pop .row { margin-top: 4px; }
.map-pop.c { transform: translateX(-50%); }
.map-pop.l { transform: translateX(-12%); }
.map-pop.r { transform: translateX(-88%); }
.map-pop.above.c { transform: translate(-50%, -100%); }
.map-pop.above.l { transform: translate(-12%, -100%); }
.map-pop.above.r { transform: translate(-88%, -100%); }
.plate.sel { transform: translate(-50%, -50%) scale(1.2); z-index: 4; }
.plate.sel img { filter: drop-shadow(0 0 10px #ffb21a) drop-shadow(0 3px 4px #000a); }
/* Spielermarker auf der Karte: groß in Spielerfarbe, bleiben bis alle gewählt haben */
.plate .votes { bottom: auto; top: -38%; gap: 3px; }
.plate .votes i { width: 26px; height: 26px; font: 800 14px/22px 'Teko', sans-serif; border: 2px solid #fff; box-shadow: 0 0 10px currentColor, 0 2px 4px #000; animation: markerIn .35s ease-out; }
@keyframes markerIn { from { transform: translateY(-14px) scale(.4); opacity: 0; } }
/* Ereignis-Bildschirm */
.screen.event { display: flex; flex-direction: column; min-height: 100dvh; padding: 0; }
.event-img { flex: 1 1 56dvh; min-height: 46dvh; background-size: cover; background-position: center 40%; border-bottom: 3px solid #140800; animation: introIn .6s ease-out; }
.event-body { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; background: #0d1422; }
.event-body h2 { margin: 0; font: 700 30px/1 'Teko', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #ffd27a; }
.event-text { margin: 0; padding: 10px 12px; background: #fffaf0; color: #17110a; border: 3px solid #140800; box-shadow: 4px 4px 0 #140800; font: 600 15px/1.35 'Chakra Petch', sans-serif; }
.event-choices { display: flex; flex-direction: column; gap: 8px; }
.event-choice { text-align: left; justify-content: flex-start; }
.ambush { display: flex; gap: 10px; align-items: center; }
.ambush img { width: 64px; height: 90px; object-fit: cover; border-radius: 6px; border: 2px solid #140800; }
.ambush p { margin: 0; }
/* Ereignis-Tafeln: Text liegt auf dem Bild, Ergebniszeile darunter */
.event-img { position: relative; display: flex; align-items: flex-end; }
.event-caption { width: 100%; padding: 60px 16px 14px; background: linear-gradient(transparent, #0b0f17e6 38%, #0b0f17f5); }
.event-caption h2 { margin: 0 0 4px; font: 700 30px/1 'Teko', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #ffd27a; text-shadow: 0 2px 0 #140800; }
.event-caption p { margin: 0; font: 600 16px/1.35 'Chakra Petch', sans-serif; color: #fff; text-shadow: 0 1px 3px #000; }
.event.after .event-img { filter: saturate(1.1); }
.event-fx { display: flex; flex-wrap: wrap; gap: 8px; }
.event-fx span { font: 700 20px/1 'Teko', sans-serif; letter-spacing: .04em; padding: 8px 12px 6px; border-radius: 8px; border: 2px solid; }
.event-fx .fx-good { color: #7dff9e; border-color: #22c55e; background: #0f2a17; }
.event-fx .fx-bad { color: #ff9a8f; border-color: #ef4444; background: #2a0f0f; }
.event-fx .fx-none { color: #c9d2de; border-color: #ffffff33; }
.event-body .event-text { display: none; }
.map-sub { margin: 6px 0 0; font: 600 18px 'Teko', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.sell-list { display: flex; flex-direction: column; gap: 4px; max-height: 160px; overflow-y: auto; }
.sell-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.plate .votes i.done { background: #22c55e !important; }
.plate.mini { width: 7.5%; }
/* Schalotte spricht: rundes Porträt mit Metallring, Sci-Fi-Panel */
.say { display: flex; align-items: center; max-width: 460px; width: 100%; margin: 0 auto; animation: sayIn .35s ease-out; text-align: left; }
@keyframes sayIn { from { transform: translateX(-26px); opacity: 0; } }
.say-cat { flex: none; position: relative; z-index: 1; width: 78px; height: 78px; margin-right: -16px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 45% 35%, #ffe0a8, #e0922e 62%, #7a3d0c); border: 4px solid #9aa1a9;
  box-shadow: 0 0 0 2px #22262c, 0 0 16px #ff9a1acc, inset 0 0 10px #0009; }
.say-cat img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.say-panel { position: relative; flex: 1; min-width: 0; padding: 10px 14px 11px 26px; background: #0d1422ee; border: 1px solid #ff9a1a44;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.say-panel::before, .say-panel::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid #ff9a1a; }
.say-panel::before { top: 3px; right: 3px; border-left: 0; border-bottom: 0; }
.say-panel::after { bottom: 3px; left: 20px; border-right: 0; border-top: 0; }
.say-name { display: block; margin-bottom: 3px; font: 600 13px/1 'Teko', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #ff9a1a; }
.say-panel p { margin: 0; min-height: 1.35em; font: 600 15px/1.35 'Chakra Petch', sans-serif; color: #eef2f7; }
.say-panel p b { color: #ffd27a; }
.cat-sign { background: none; border: 0; box-shadow: none; padding: 0; width: min(92vw, 420px); }
.event-caption .say { margin-top: 6px; }
/* Hohe Karte: zwei Bilder übereinander, scrollt */
.map-board.tall { aspect-ratio: 1 / 3; background-size: 100% 50%; background-position: top, bottom; background-repeat: no-repeat; }
/* Titel: Schalottoni’s AUTO ROBOT WARS – Schalotte im Mittelpunkt */
.start-logo { display: flex; flex-direction: column; align-items: center; }
.logo-cat { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; margin-bottom: -14px; z-index: 1;
  background: radial-gradient(circle at 45% 35%, #ffe0a8, #e0922e 62%, #7a3d0c); border: 5px solid #9aa1a9;
  box-shadow: 0 0 0 3px #22262c, 0 0 28px #ff9a1acc, inset 0 0 12px #0009; }
.logo-cat img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.logo-owner { position: relative; z-index: 2; font: 700 40px/1 'Teko', sans-serif; letter-spacing: .02em; color: #ffd27a; -webkit-text-stroke: 1.5px #140800;
  text-shadow: 0 3px 0 #140800, 0 0 18px #ff8a1a88; transform: rotate(-4deg); padding: 0 10px; background: #140800cc; border-radius: 6px; }
.start-logo .logo-auto { margin-top: 6px; font-size: 18px; }
.start-logo .logo-main { font-size: 56px; }
/* Startbild: die drei Roboter vorn, Schalotte nur noch im Sprechkasten */
.logo-owner { font-size: 26px; background: none; padding: 0; transform: none; -webkit-text-stroke: 1px #140800; }
.start-robots { position: absolute; left: 0; right: 0; top: 24%; width: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 58%, transparent 78%); mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 58%, transparent 78%); }
.screen.start > .say, .screen.start > .start-btns, .screen.start > .menu-foot { position: relative; z-index: 1; }
.screen.start > .start-logo { z-index: 1; }
/* Startbild (start-titel): oben dunkler Verlauf hinter dem Logo, unten ruhig für die Knöpfe */
.start-bg::after { background: linear-gradient(#0b0f17ee 0, #0b0f1799 14%, transparent 30%, transparent 56%, #0b0f17cc 72%, #0b0f17 90%); }
/* Wrack-Wahl: Roboter ganz zeigen statt angeschnitten */
.chassis-tab img { aspect-ratio: 1; object-fit: contain; background: #12161d; max-height: 92px; }
.chassis-detail .chassis-portrait { aspect-ratio: 4 / 3; object-fit: contain; background: radial-gradient(circle at 50% 60%, #2a3140, #10141b 70%); }

/* Wrack-Wahl: echter 3D-Roboter über dem gemalten Bild, per Wischen drehbar */
.chassis-stage { position: relative; border-radius: 10px; background: radial-gradient(circle at 50% 60%, #2a3140, #10141b 70%); }
.chassis-stage .chassis-3d { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.chassis-stage:has(.chassis-3d[data-on]) .chassis-portrait { opacity: 0; }
.chassis-hint { position: absolute; right: 8px; bottom: 6px; font: 600 14px/1 'Teko', sans-serif; letter-spacing: .06em; color: #bfe6ff; opacity: .8; pointer-events: none; display: none; }
.chassis-stage:has(.chassis-3d[data-on]) .chassis-hint { display: block; }

/* Vor dem Kampf: Knopf mit ablaufender Bedenkzeit */
/* Spielfiguren auf der Karte: eigener Roboter auf Sockel in Spielerfarbe */
.plate .votes i.pawn { width: 30px; height: 36px; position: relative; background: none !important; border: 0; box-shadow: none; animation: markerIn .35s ease-out; }
.plate .votes i.pawn::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: 0; height: 11px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 9px var(--pc), 0 2px 3px #000; }
.plate .votes i.pawn img { position: absolute; left: 3px; bottom: 5px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pc); background: #10141b; }
.plate .votes i.pawn b { position: absolute; top: -5px; right: -3px; z-index: 2; width: 15px; height: 15px; border-radius: 50%; background: #22c55e; color: #fff; font: 800 11px/15px sans-serif; text-align: center; }
.plate .votes i.pawn.hop { animation: pawnHop .75s ease-in-out; }
@keyframes pawnHop { 0% { transform: translate(var(--dx), var(--dy)); } 50% { transform: translate(calc(var(--dx) / 2), calc(var(--dy) / 2 - 18px)); } 100% { transform: none; } }

/* Trailer im Startmenü */
.start-btns .trailer-btn { color: #ffd27a; }
.trailer-box { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 12px; background: #05070bf2; }
.trailer-box video { max-width: 100%; max-height: 100%; background: #000; border: 1px solid #ff9a1a88; box-shadow: 0 0 40px #ff8a1a44; }
.trailer-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px; font-size: 22px; color: #eef2f7; background: #0d1422e6; border: 1px solid #ff9a1a88; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }

/* Texte neben Schalotte (Koop, Lobby, Beute, Warten) im Look der Sprechbox */
.coop-intro, .lobby-cat, .reward-head { gap: 0; align-items: center; }
.coop-intro > .cat, .lobby-cat > .cat, .reward-head > .cat { position: relative; z-index: 1; flex: none; margin-right: -14px; }
.coop-intro p, .lobby-cat p, .reward-head > div:last-child, .wait-box p {
  position: relative; flex: 1; min-width: 0; padding: 10px 14px 11px 24px; background: #0d1422ee; border: 1px solid #ff9a1a44;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font: 600 15px/1.35 'Chakra Petch', sans-serif; color: #eef2f7; }
.coop-intro p b, .lobby-cat p b, .wait-box p b { color: #ffd27a; }
.reward-head > div:last-child p { margin-top: 4px; font: 600 14px/1.3 'Chakra Petch', sans-serif; color: #9fb0c4; }
.wait-box p { max-width: 420px; padding: 10px 16px; }

/* Karte: 20 % höher gestreckt, damit die Stationen Luft haben; auf dem Handy etwas kleinere Plaketten */
.map-board.tall { aspect-ratio: 1 / 3.6; }
@media (max-width: 600px) {
  .plate { width: 9%; }
  .plate.boss { width: 15%; }
  .plate.here { transform: translate(-50%, -50%) scale(1.1); }
  .plate.here::after, .plate.can::after { inset: -3%; border-width: 2px; }
  .plate.sel::before { inset: -9%; }
}

/* Reiter (z. B. Werkstatt): umbrechen statt seitlich scrollen, damit am Handy alle erreichbar sind */
.tabs { flex-wrap: wrap; overflow-x: visible; }
.tabs button { flex: 1 1 auto; }

/* Kampf: Lebensbalken für jeden Roboter, pro Seite untereinander */
.hud-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hud-col .hud-side { flex: none; }

/* VS-Bildschirm zum Kampfbeginn */
.vs-screen { position: absolute; inset: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none;
  background: linear-gradient(105deg, #0f2a44f2 0 49.4%, #ff9a1a 49.4% 50.6%, #45121af2 50.6%); animation: vsOut .45s ease-in 1.8s forwards; }
.vs-col { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 0 4px; }
.vs-col.l { animation: vsInL .4s cubic-bezier(.2, 1.3, .4, 1) both; }
.vs-col.r { animation: vsInR .4s cubic-bezier(.2, 1.3, .4, 1) both; }
.vs-bot { text-align: center; }
.vs-bot canvas { display: block; width: min(44vw, 240px); height: min(50vw, 260px); }
.vs-col.many .vs-bot canvas { width: min(30vw, 150px); height: min(22vw, 110px); }
.vs-bot b { display: block; margin-top: 2px; font: 700 22px/1 'Teko', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #b5ffcc; text-shadow: 0 2px 0 #000; }
.vs-col.r .vs-bot b { color: #ffb3ad; }
.vs-mid { font: 700 92px/.8 'Teko', sans-serif; color: #ffd27a; -webkit-text-stroke: 5px #140800; paint-order: stroke fill;
  text-shadow: 5px 5px 0 #2fd6c8, 5px 5px 0 #140800, 0 0 30px #ff8a1a; animation: vsSlam .3s .25s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes vsInL { from { transform: translateX(-70vw); } }
@keyframes vsInR { from { transform: translateX(70vw); } }
@keyframes vsSlam { from { transform: scale(3); opacity: 0; } }
@keyframes vsOut { to { opacity: 0; transform: scale(1.06); } }

/* Händler: ein Angebot pro Zeile (Karte links, Preis-Knopf rechts) statt zwei enge Spalten */
.shop { grid-template-columns: 1fr; }
.shop-item { flex-direction: row; align-items: stretch; gap: 8px; }
.shop-item .reward-card { flex: 1; min-width: 0; font-size: 13px; }
.shop-item > .btn { flex: none; width: 92px; font-size: 18px; }

/* Fester Knopf unten: der durchsichtige Verlauf darf nichts verdecken (z. B. Werkstatt-Reiter dahinter), nur der Knopf selbst fängt Antippen */
.sticky-cta { pointer-events: none; }
.sticky-cta > * { pointer-events: auto; }

/* VS-Bildschirm bleibt während 3 … 2 … 1, erst bei „KAMPF!“ blendet er aus */
.vs-screen { animation: none; }
.vs-screen.out { animation: vsOut .35s ease-in forwards; }
.vs-count { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font: 700 120px/1 'Teko', sans-serif; color: #fff;
  -webkit-text-stroke: 6px #140800; paint-order: stroke fill; text-shadow: 0 0 30px #ff8a1a; }

/* Startbild und Einspieler: das gemalte Bild (2:3) ganz zeigen statt links und rechts abzuschneiden,
   dahinter füllt eine unscharfe Kopie den Rest des Handys */
.start-bg, .intro-img { filter: blur(16px) brightness(.5) saturate(1.15); transform: scale(1.12); animation: none; }
.start-art, .intro-art { position: absolute; left: 50%; max-width: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 84%, transparent), linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(transparent, #000 9%, #000 84%, transparent), linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* Start: die drei Roboter (Bildmitte bei 38 % der Höhe) mittig zwischen Logo und Knöpfen */
.start-stage { position: relative; flex: 1; min-height: 0; margin-top: 150px; z-index: 0; pointer-events: none; }
.start-art { top: 50%; width: min(100vw, 560px); transform: translate(-50%, -38%); }
/* Einspieler: Bild mittig über Schalottes Sprechkasten */
.intro-art { top: calc(50% - 72px); width: min(100%, 600px, (100dvh - 150px) * .667); transform: translate(-50%, -50%); animation: artIn .7s ease-out; }
@keyframes artIn { from { transform: translate(-50%, -50%) scale(1.06); filter: brightness(.4) saturate(.3); } }
.start-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.start-row .btn { font-size: 20px; }
.screen.start .menu-foot { margin: 0; font-size: 10px; text-align: center; opacity: .6; }
@media (max-height: 720px) { .start-logo .logo-main { font-size: 46px; } .start-stage { margin-top: 118px; } }

/* Akt-Titel: Schrift auf dem gemalten Schild (Bilder 9:16), darunter der Boss als Warnung */
.act-art { width: min(100%, 600px, (100dvh - 150px) * .5625); }
.act-art img { display: block; width: 100%; }
.act-sign { position: absolute; left: 14%; right: 14%; top: var(--sy, 31%); transform: translateY(-50%) rotate(-1.5deg); text-align: center; font-family: 'Teko', sans-serif; line-height: .82; color: #f6ead2; -webkit-text-stroke: 1px #140800; text-shadow: 0 3px 0 #140800, 0 0 22px #ff8a1aaa; }
.act-sign i { display: block; font-style: normal; font-size: 22px; letter-spacing: .45em; padding-left: .45em; text-transform: uppercase; color: #ffd27a; -webkit-text-stroke: 0; }
.act-sign span { display: block; font-size: clamp(40px, 15vw, 64px); text-transform: uppercase; }
.act1 .act-sign { --sy: 33%; } .act2 .act-sign { --sy: 31%; } .act3 .act-sign { --sy: 35.5%; }
.act-boss { position: absolute; left: 6%; right: 6%; top: 50%; padding: 8px 10px; background: #0d1422dd; border: 1px solid #ff9a1a55; font-size: 13px; color: #c8d0dc; text-align: center; }
.act-boss b { color: #ff7a6a; }

/* Boss-Beute: Goldregen, Trophäe wählen, danach ein legendäres Teil */
.screen.boss-loot { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(circle at 50% 14%, #5a3a10 0, #1a1408 34%, #0b0f17 66%); }
.loot-rays { position: absolute; left: 50%; top: 120px; width: 640px; height: 640px; margin: -320px; border-radius: 50%; pointer-events: none; background: repeating-conic-gradient(#ffb21a22 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(#000 30%, transparent 70%); mask: radial-gradient(#000 30%, transparent 70%); animation: raySpin 40s linear infinite; }
@keyframes raySpin { to { transform: rotate(360deg); } }
.loot-title { position: relative; margin: 8px 0 0; text-align: center; font: 700 52px/.9 'Teko', sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #ffd27a; -webkit-text-stroke: 1px #140800; text-shadow: 0 3px 0 #140800, 0 0 20px #ff8a1a; }
.loot-sub { position: relative; margin: 0; text-align: center; color: #e8dcc4; }
.loot-gold { position: relative; align-self: center; min-width: 200px; text-align: center; padding: 8px 16px 4px; background: #140800cc; border: 2px solid #ffb21a; box-shadow: 0 0 18px #ffb21a88; font: 700 40px/1 'Teko', sans-serif; color: #ffd27a; animation: goldPop .6s cubic-bezier(.3, 1.6, .5, 1); }
.loot-gold small { display: block; font: 500 12px 'Chakra Petch', sans-serif; color: #c8b48a; padding: 2px 0 4px; }
@keyframes goldPop { from { transform: scale(.4); opacity: 0; } }
.loot-step { position: relative; margin-top: 6px; font: 600 18px 'Teko', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ff9a1a; }
.loot-step span { color: #8a94a3; font: 500 12px 'Chakra Petch', sans-serif; letter-spacing: 0; text-transform: none; }
.trophy { position: relative; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; background: #0d1422e6; color: #eef2f7; border: 1px solid #5fd4ff55; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.trophy.on { border: 2px solid #ffb21a; background: #2a1c06e6; box-shadow: inset 0 0 18px #ffb21a44; }
.trophy-ic { flex: none; width: 50px; height: 50px; display: grid; place-items: center; font-size: 26px; border-radius: 50%; background: radial-gradient(#ffe0a8, #b8741e); border: 2px solid #140800; }
.trophy b { display: block; font: 600 21px/1 'Teko', sans-serif; letter-spacing: .03em; }
.trophy small { color: #c8d0dc; font-size: 13px; }
.loot-have, .loot-next { position: relative; margin: 2px 0 0; font-size: 12.5px; color: #aab4c2; }
.loot-next { text-align: center; }

/* Eingreifen im Kampf (Karten-Run): Falle auslösen und Schalotte-Hilfe über den Ultimates */
.controls:has(.assist) { flex-wrap: wrap; }
.assist { flex: 1 0 100%; display: flex; gap: 8px; align-items: stretch; }
.trap-btn, .help-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 58px; padding: 5px 6px 4px;
  font: 600 14px/1 'Teko', sans-serif; letter-spacing: .04em; color: #eef2f7; background: #0d1422e6; border: 1px solid #ff9a1a66; cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.trap-btn span, .help-btn span { font-size: 20px; line-height: 1.1; }
.trap-btn { overflow: hidden; border-color: #ff5a4f88; }
.trap-btn.ready { background: linear-gradient(#5a1a12e6, #2a0d0ae6); box-shadow: inset 0 0 14px #ff5a4f66; }
.trap-btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--cd, 0) * 100%); background: #000a; pointer-events: none; }
.trap-cd { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font: 700 22px 'Teko', sans-serif; font-style: normal; color: #fff; pointer-events: none; }
.help { flex: 1; display: flex; align-items: center; gap: 6px; padding: 3px 4px; background: #0d142299; border: 1px solid #ffd27a33; }
.help-cat { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid #9aa1a9; }
.help-left { min-width: 22px; font: 700 18px 'Teko', sans-serif; color: #ffd27a; }
.help-btn { flex: 1; min-width: 0; }
.help-btn:disabled { opacity: .35; cursor: default; }
/* Akt-Upgrade: größere Angebote mit Etikett */
.trophy.upgrade { padding: 12px; }
.trophy.upgrade .trophy-ic { width: 60px; height: 60px; font-size: 32px; }
.trophy.upgrade b { font-size: 24px; }
.up-tag { display: inline-block; margin-top: 4px; padding: 1px 6px 0; font: 600 12px 'Teko', sans-serif; font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #140800; background: #ffb21a; }
.trophy.upgrade > span:last-child { display: flex; flex-direction: column; align-items: flex-start; }

/* Bilder erst zeigen, wenn sie fertig geladen sind, dann sanft einblenden */
.start-art, .intro-art, .act-art, .map-board, .event-img, .start-bg, .intro-img { transition: opacity .35s ease-out; }
.pending, .act-art:has(img.pending) { opacity: 0; }
.intro-art.pending { animation: none; }
.screen:has(.start-art.pending) .start-bg, .screen:has(.intro-art.pending) .intro-img, .screen:has(.act-art img.pending) .intro-img { opacity: 0; }
/* Höhe der gemalten Bilder schon vor dem Laden festlegen, damit nichts nachrutscht */
.start-art, img.intro-art { aspect-ratio: 2 / 3; }
.act-art img { aspect-ratio: 860 / 1529; }
