/* ===========================================================================
   AUS LIEBE ZUM WIR — DER WAHLKAMPF
   Deckbuilder-Roguelike · Kampagnen-Look (Rot #E3000F / Weiß / Dunkelrot)
   =========================================================================== */

:root {
  --rot: #E3000F;
  --rot-2: #c40010;
  --dunkelrot: #790000;
  --weiss: #FFFFFF;
  --creme: #FDE9EA;
  --creme-2: #FBDDDF;
  --grau: #6E6E6E;
  --grau-2: #9a9295;
  --grau-licht: #E7D7D9;
  --tinte: #2a1416;
  --font-head: 'Karla', system-ui, sans-serif;
  --font-body: 'Archivo Narrow', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html.rot-bg, html.rot-bg body { background-color: var(--rot); }
html.combat-bg, html.combat-bg body {
  background: radial-gradient(
    var(--bg-rx, 120%) var(--bg-ry, 80%) at var(--bg-cx, 50%) var(--bg-cy, -10%),
    #fff 0%, var(--creme) 46%, var(--creme-2) 100%
  );
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%; width: 100%;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
body { overflow: hidden; }
button { font-family: inherit; cursor: pointer; }

/* ----------------------------------------------------- Icon-Farben/-Größen --- */
.card-art { color: var(--tinte); }
.helper-chip { color: var(--dunkelrot); }
.helper-badge { color: var(--dunkelrot); }
.hud-icobtn svg { width: 56%; height: 56%; }
.shield svg { width: 20px; height: 20px; }
.res-schutz svg { width: 13px; height: 13px; }

#app-root { position: fixed; inset: 0; }

/* ---------------------------------------------------------------- Stage --- */
.stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, #fff 0%, var(--creme) 46%, var(--creme-2) 100%);
}
.reduce-motion * { animation: none !important; transition: none !important; }

.overlay-logo-link {
  position: absolute;
  top: clamp(12px, 2.5vw, 24px);
  right: clamp(12px, 2.5vw, 24px);
  display: block;
  z-index: 35;
  line-height: 0;
}
.overlay-logo {
  width: clamp(58px, 17vw, 140px);
  opacity: 0.93;
  display: block;
}
@media (display-mode: standalone) {
  html, body { background-color: var(--creme); }
  .overlay-logo-link { top: calc(env(safe-area-inset-top) + 12px); }
  #splash { background: var(--rot); }
  #splash svg { color: #fff; }
}

/* ---------------------------------------------------------------- HUD ----- */
.hud {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: clamp(8px, 1.6vw, 16px) clamp(10px, 2vw, 22px);
  padding-top: calc(env(safe-area-inset-top) + clamp(8px, 1.6vw, 16px));
  z-index: 30;
}
.hud-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: .92;
  color: var(--rot); font-size: clamp(12px, 1.5vw, 16px);
}
.hud-brand .hb-claim { height: clamp(28px, 3.2vw, 40px); width: auto; flex: none; }
.hud-brand small {
  display: block; font-family: var(--font-body); font-weight: 600;
  letter-spacing: .14em; font-size: .62em; color: var(--dunkelrot); opacity: .8;
  text-align: center;
}
.hud-spacer { flex: 1; }
.hud-btns { display: flex; gap: 6px; }
.hud-status { display: flex; align-items: stretch; gap: 10px; }
.ctrls-desk { display: flex; }
.ctrls-mob  { display: none !important; }
.status-row { flex: 0 0 auto; display: flex; justify-content: center; padding: clamp(6px,1vw,12px) 0; }
.hud-stat {
  display: flex; align-items: center; gap: 7px;
  background: var(--weiss);
  border: 2px solid var(--rot);
  border-radius: 5px;
  padding: 5px 11px;
  box-shadow: 0 2px 0 rgba(121, 0, 0, .18);
}
.hud-stat .hs-ico { color: var(--rot); font-size: 1.05em; line-height: 1; }
.hud-stat .hs-num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(15px, 2vw, 21px); color: var(--rot); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hud-stat .hs-lbl {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: clamp(8px, 1vw, 11px); color: var(--dunkelrot);
}
.hud-icobtn {
  width: clamp(34px, 4vw, 42px); height: clamp(34px, 4vw, 42px);
  border-radius: 50%; background: var(--weiss); border: 2px solid var(--rot);
  color: var(--rot); font-size: clamp(14px, 1.8vw, 19px); font-family: var(--font-head);
  display: grid; place-items: center; box-shadow: 0 2px 0 rgba(121, 0, 0, .18);
  transition: transform .12s var(--ease);
}
.hud-icobtn:hover { transform: translateY(-1px); }
.hud-icobtn:active { transform: translateY(1px); }
.hud-icobtn.muted { color: var(--grau-2); border-color: var(--grau-licht); }

/* ---- Überzeugungs-Balken im HUD (nur im Kampf/Map sichtbar) ---- */
.hud-hp { display: flex; align-items: stretch; min-width: clamp(100px, 14vw, 180px); }
.hp-bar {
  position: relative; flex: 1; height: auto; border-radius: 6px;
  background: var(--weiss); border: 2px solid var(--rot); overflow: hidden;
}
.hp-bar > i {
  position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(var(--rot), var(--rot-2));
  transition: transform .35s var(--ease);
}
.hp-bar > b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(11px, 1.4vw, 15px); color: var(--dunkelrot);
  text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 8px #fff; font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- Board --- */
.board {
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column;
}

/* ===== Gegner-Zone ===== */
.enemy-zone {
  flex: 1; min-height: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(6px, 1.4vh, 14px);
  padding: clamp(6px, 2vh, 20px) 16px 0;
}
.combat-top {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.runde-badge {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: clamp(9px, 1.1vw, 12px); color: var(--dunkelrot);
  opacity: .7;
}
.intent {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--weiss); border: 2px solid var(--dunkelrot); border-radius: 999px;
  padding: 4px 13px 4px 9px; box-shadow: 0 3px 0 rgba(121, 0, 0, .16);
  font-family: var(--font-head); font-weight: 800;
  animation: pop .3s var(--ease) both;
}
.intent .in-ico { width: 20px; height: 20px; display: grid; place-items: center; color: var(--dunkelrot); }
.intent .in-val { font-size: clamp(15px, 2.1vw, 22px); color: var(--rot); font-variant-numeric: tabular-nums; }
.intent .in-txt {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: clamp(9px, 1.1vw, 12px); color: var(--dunkelrot);
}

.enemy {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 8px; transition: transform .12s var(--ease);
}
.enemy.shake { animation: shake .32s var(--ease); }
.enemy-figure {
  position: relative; width: clamp(120px, 17vw, 196px); height: clamp(120px, 17vw, 196px);
  display: grid; place-items: center;
}
.enemy-figure svg { width: 100%; height: 100%; overflow: visible; }
.enemy-figure .ef-float { animation: bob 3.4s ease-in-out infinite; transform-origin: center; }
.enemy-figure .ef-shadow { animation: bobShadow 3.4s ease-in-out infinite; transform-origin: center; }
.enemy-name {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; font-size: clamp(17px, 2.4vw, 26px); color: var(--dunkelrot);
  line-height: .95; text-align: center;
}
.enemy-sub {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: clamp(9px, 1.1vw, 12px); color: var(--grau);
  margin-top: 2px;
}
/* Widerstands-Balken */
.res-bar {
  position: relative; width: clamp(150px, 22vw, 260px); height: clamp(29px, calc(2vw + 14px), 35px);
  background: var(--weiss); border: 2px solid var(--dunkelrot); border-radius: 6px; overflow: hidden;
}
.res-bar > i {
  position: absolute; inset: 0; transform-origin: left;
  background: repeating-linear-gradient(45deg, var(--grau) 0 9px, #5f5f5f 9px 18px);
  transition: transform .4s var(--ease);
}
.res-bar > b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(11px, 1.4vw, 15px); color: var(--dunkelrot);
  text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 8px #fff; font-variant-numeric: tabular-nums;
}
.res-wrap { position: relative; display: inline-block; }
.res-schutz {
  position: absolute; right: -10px; top: -10px;
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--dunkelrot); color: #fff; border-radius: 999px;
  padding: 2px 8px; font-family: var(--font-head); font-weight: 800; font-size: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}

/* Status-Pillen */
.statuses { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; min-height: 20px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--creme); border: 1.5px solid var(--dunkelrot); border-radius: 999px;
  padding: 1px 8px; font-family: var(--font-head); font-weight: 800; font-size: 11px;
  color: var(--dunkelrot);
}
.status-pill.good { border-color: var(--rot); color: var(--rot); background: #fff; }

/* ===== Spieler-Zone ===== */
.player-zone {
  flex: 0 0 auto; position: relative;
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2vw, 28px);
  padding: 0 clamp(8px, 2vw, 20px) 4px;
}
.player-av { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.player-av .pa-heart { width: clamp(75px, 8.75vw, 100px); height: clamp(75px, 8.75vw, 100px); transition: transform .12s var(--ease); }
.player-av.shake .pa-heart { animation: shake .3s var(--ease); }
.player-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.shield {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--dunkelrot); font-family: var(--font-head); font-weight: 800; font-size: clamp(14px, 1.8vw, 18px);
}
.shield svg { width: 22px; height: 22px; }

/* Elan-Pips */
.elan {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.elan-orbs { display: flex; gap: 4px; }
.elan-orb {
  width: clamp(28px, 3.4vw, 38px); height: clamp(28px, 3.4vw, 38px);
  display: grid; place-items: center;
  color: rgba(227, 0, 15, 0.22);
}
.elan-orb.full { color: var(--rot); filter: drop-shadow(0 1px 2px rgba(121,0,0,.35)); }
.elan-lbl, .pile-lbl {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: clamp(10px, 1.3vw, 13px); color: var(--dunkelrot);
}

/* ===== Hand-Zone ===== */
.hand-row {
  flex: 0 0 auto; position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: clamp(4px, 1vh, 10px) clamp(8px, 1.6vw, 18px) clamp(8px, 1.6vh, 16px);
  gap: 8px;
}
.pile {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: clamp(46px, 6vw, 62px);
}
.pile-stack {
  position: relative; width: clamp(40px, 5vw, 52px); height: clamp(56px, 7vw, 72px);
  border-radius: 6px; background: var(--rot);
  border: 2px solid var(--dunkelrot);
  box-shadow: 3px 3px 0 rgba(121, 0, 0, .25), inset 0 0 0 4px rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.pile-stack b {
  font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(16px, 2vw, 22px);
  font-variant-numeric: tabular-nums;
}
.pile.discard .pile-stack { background: var(--grau); border-color: #4f4f4f; box-shadow: 3px 3px 0 rgba(0,0,0,.18), inset 0 0 0 4px rgba(255,255,255,.14); }

/* Hand (Fächer) */
.hand {
  flex: 1; min-width: 0; position: relative; height: clamp(176px, 25vh, 212px);
  display: flex; align-items: flex-end; justify-content: center;
}
.card {
  position: relative; flex: 0 0 auto;
  width: clamp(96px, 10.6vw, 136px);
  aspect-ratio: 5 / 7;
  margin: 0 clamp(-26px, -1.6vw, -10px);
  background: var(--weiss);
  border: 1.5px solid rgba(0,0,0,0.13);
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.26);
  transform-origin: bottom center;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
  display: flex; flex-direction: column; overflow: hidden;
  user-select: none; -webkit-user-select: none;
  will-change: transform;
}
.card:hover { z-index: 20; }
@media (hover: hover) {
  .card.playable:hover { transform: translateY(-26px) scale(1.12) rotate(0deg) !important; box-shadow: 0 18px 34px rgba(0,0,0,0.32); }
}
.card.unaffordable { filter: grayscale(.55) brightness(.96); }
.card.unaffordable .card-cost { background: #eee; color: var(--grau); border-color: var(--grau); }
.card.playing { animation: cardPlay .42s var(--ease) forwards; pointer-events: none; }

.card-cost {
  position: absolute; top: 50%; left: 6px; transform: translateY(-50%); z-index: 3;
  width: clamp(25px, 2.9vw, 32px); height: clamp(25px, 2.9vw, 32px);
  background: #fff; border: 2px solid var(--rot); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: var(--rot);
  font-size: clamp(13px, 1.6vw, 18px); box-shadow: 0 2px 5px rgba(121,0,0,.3);
}
.card-head {
  position: relative; flex: 0 0 auto; background: var(--rot); color: #fff;
  padding: clamp(4px,.6vw,7px) 7px clamp(4px,.6vw,6px) clamp(34px,3.9vw,44px);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  line-height: 1.02; letter-spacing: -0.01em;
  font-size: clamp(10px, 1.15vw, 14px);
  display: flex; align-items: center; min-height: clamp(28px, 3.2vw, 38px);
}
.card-art {
  flex: 1; min-height: 0; position: relative;
  background: var(--creme);
  border-top: 1.5px solid var(--dunkelrot); border-bottom: 1.5px solid var(--rand, #E7D7D9);
  display: grid; place-items: center; overflow: hidden;
}
.card-art svg { width: 62%; height: 62%; }
.card-type {
  position: absolute; bottom: 3px; left: 0; right: 0; text-align: center;
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: clamp(7px, .85vw, 9.5px); color: var(--grau);
}
.card-body {
  flex: 0 0 auto; padding: clamp(5px,.7vw,8px) clamp(6px,.8vw,9px) clamp(6px,.9vw,10px);
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(9.5px, 1.05vw, 12.5px); line-height: 1.3; color: var(--tinte);
  text-align: center; min-height: clamp(40px, 5.2vw, 58px);
  display: flex; align-items: center; justify-content: center;
}
.card-body b { color: var(--rot); font-weight: 700; padding: 0 1.5px; }
.card-body .kw { color: var(--dunkelrot); font-style: italic; font-weight: 700; }

/* End-Zug Button */
.piles-left { display: flex; gap: clamp(8px, 1.2vw, 16px); align-items: flex-end; }
.endturn-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.endturn {
  width: clamp(46px, 5.5vw, 62px); height: clamp(46px, 5.5vw, 62px);
  border-radius: 50%; background: var(--rot); color: #fff; border: none;
  display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--dunkelrot);
  transition: transform .1s var(--ease), box-shadow .1s var(--ease), background .12s var(--ease);
  cursor: pointer;
}
.endturn svg { width: 55%; height: 55%; }
.endturn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--dunkelrot); }
.endturn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--dunkelrot); }
.endturn:disabled { background: var(--grau); box-shadow: 0 4px 0 #4f4f4f; opacity: .7; cursor: default; }
.endturn-lbl {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: clamp(10px, 1.3vw, 13px); color: var(--dunkelrot);
  text-align: center; line-height: 1.2;
}

/* Schwebende Zahlen */
.float-num {
  position: absolute; z-index: 40; pointer-events: none;
  font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 3vw, 38px); transform: translate(-50%, -50%);
  animation: floatUp 1s var(--ease) forwards; text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.float-num.dmg { color: var(--rot); }
.float-num.block { color: var(--dunkelrot); }
.float-num.heal { color: #2f8a2f; }
.float-num.stimmen { color: var(--rot); }

/* ---------------------------------------------------------------- Overlays */
.screen {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}
.screen .screen-inner { animation: riseIn .32s var(--ease) both; }
.reduce-motion .screen .screen-inner { animation: none; }
.screen.solid { background: var(--rot); }
.screen.scrim { background: rgba(227, 0, 15, .94); }
.screen-inner {
  width: 100%; max-width: 720px; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow-y: auto;
}
.kicker {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; font-size: clamp(10px, 1.4vw, 14px); color: #fff; opacity: .9;
  margin-bottom: clamp(10px, 2vw, 18px);
}
.lockup {
  font-family: var(--font-head); font-weight: 800; color: #fff;
  text-transform: uppercase; line-height: .9; letter-spacing: -0.02em;
  font-size: clamp(40px, 9vw, 92px);
}
.heart-dot {
  display: inline-block;
  height: 1cap;
  width: calc(1cap * (118.4 / 206.1));
  vertical-align: 0;
  margin-left: 0.1em;
}
.sub-title {
  font-family: var(--font-head); font-weight: 700; color: #fff;
  font-size: clamp(16px, 2.6vw, 26px); margin-top: clamp(8px, 1.6vw, 16px);
}
.lead {
  font-family: var(--font-body); font-weight: 400; color: #fff; opacity: .96;
  font-size: clamp(13px, 1.8vw, 18px); line-height: 1.5; max-width: 48ch;
  margin-top: clamp(10px, 2vw, 18px);
}
.lead b { font-weight: 700; }
.inline-av { height: 2em; width: auto; vertical-align: middle; display: inline-block; }
.balken {
  display: inline-block; background: #fff; color: var(--rot);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  line-height: 1.04; white-space: nowrap; max-width: 92vw;
  padding: 8px 16px; margin-top: clamp(16px, 3vw, 28px);
  font-size: clamp(16px, 3vw, 30px); letter-spacing: -0.01em;
  box-shadow: 0 6px 0 rgba(121, 0, 0, .25);
}
.balken .ital { font-style: italic; }
.btn {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(14px, 1.9vw, 20px);
  background: #fff; color: var(--rot); border: none; border-radius: 6px;
  padding: 13px 30px; box-shadow: 0 4px 0 var(--dunkelrot);
  transition: transform .1s var(--ease), box-shadow .1s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--dunkelrot); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--dunkelrot); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.big { font-size: clamp(16px, 2.2vw, 24px); padding: 16px 38px; }
.start-btns { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: clamp(20px, 3.4vw, 34px); }
.controls-hint {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em;
  font-size: clamp(10px, 1.4vw, 13px); color: #fff; opacity: .82; margin-top: 12px;
}
.legal-links {
  margin-top: clamp(14px, 2.5vw, 22px);
  font-family: var(--font-body);
  font-size: clamp(10px, 1.2vw, 13px);
  opacity: 0.6;
}
.legal-links a { color: var(--weiss); text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

/* Stats (Sieg / Game-Over) */
.stats { display: flex; gap: clamp(18px, 5vw, 54px); margin-top: clamp(16px, 3vw, 26px); justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat .v { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(30px, 6vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(9px, 1.3vw, 12px); color: #fff; opacity: .9; }
.record-flag {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  font-size: clamp(12px, 1.7vw, 16px); background: var(--dunkelrot); color: #fff;
  padding: 5px 14px; border-radius: 3px; margin-bottom: 12px;
}

/* ===== Belohnungs-/Karten-Auswahl ===== */
.reward-cards { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.6vw, 18px); justify-content: center; margin: clamp(16px,2.6vw,26px) 0; }
.reward-cards .card { position: relative; margin: 0; width: clamp(116px, 15vw, 152px); cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.28); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.reward-cards .card:hover { transform: translateY(-8px) scale(1.04); box-shadow: 0 16px 30px rgba(0,0,0,0.36); }
.reward-cards .card.chosen { outline: 4px solid #fff; outline-offset: 3px; }

/* Helfer-Karte (Relikt) */
.helper-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: #fff; border: 2.5px solid var(--rot); border-radius: 10px;
  padding: 14px 18px; max-width: 460px; width: 100%; cursor: pointer;
  box-shadow: 0 6px 0 var(--dunkelrot); transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.helper-card:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--dunkelrot); }
.helper-badge { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--creme); border: 2px solid var(--dunkelrot); display: grid; place-items: center; }
.helper-badge svg { width: 60%; height: 60%; }
.helper-card .hc-name { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; color: var(--dunkelrot); font-size: clamp(14px,1.8vw,18px); line-height: 1; }
.helper-card .hc-desc { font-family: var(--font-body); color: var(--tinte); font-size: clamp(12px,1.4vw,14px); line-height: 1.3; margin-top: 4px; }

/* Helfer-Leiste im HUD */
.helper-strip { display: flex; gap: 5px; align-items: center; }
.helper-chip { width: clamp(30px, 3.4vw, 38px); height: clamp(30px, 3.4vw, 38px); border-radius: 50%; background: #fff; border: 2px solid var(--dunkelrot); display: grid; place-items: center; box-shadow: 0 2px 0 rgba(121,0,0,.18); }
.helper-chip svg { width: 58%; height: 58%; }

/* ===== Map / Stadtteil-Tour ===== */
.map-wrap { width: 100%; max-width: 540px; display: flex; flex-direction: column; align-items: center; }
.map-head { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; color: #fff; font-size: clamp(20px, 3vw, 30px); line-height: .95; text-align: center; }
.map-sub { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(10px,1.3vw,13px); color: rgba(255,255,255,.75); margin-top: 4px; margin-bottom: clamp(10px,2vw,18px); }
.map {
  position: relative; width: 100%;
  background: #fff; border: 2.5px solid var(--rot); border-radius: 12px;
  box-shadow: 0 6px 0 var(--dunkelrot);
  padding: clamp(14px, 2.4vw, 24px) clamp(8px, 2vw, 18px);
  overflow: hidden;
}
.map svg.map-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-floor { position: relative; display: flex; justify-content: space-around; align-items: center; }
.map-floor + .map-floor { margin-top: clamp(20px, 4.2vh, 46px); }
.map-node {
  position: relative; z-index: 2; width: clamp(44px, 6vw, 58px); height: clamp(44px, 6vw, 58px);
  border-radius: 50%; background: #fff; border: 2.5px solid var(--grau-licht);
  display: grid; place-items: center; color: var(--grau-2);
  transition: transform .14s var(--ease), border-color .14s, background .14s, box-shadow .14s;
}
.map-node svg { width: 54%; height: 54%; }
.map-node .mn-label {
  position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(8px, 1vw, 10px); color: var(--grau); white-space: nowrap;
}
.map-node.done { background: var(--creme-2); border-color: var(--dunkelrot); color: var(--dunkelrot); }
.map-node.current { border-color: var(--dunkelrot); }
.map-node.avail { cursor: pointer; border-color: var(--rot); color: var(--rot); background: #fff;
  box-shadow: 0 0 0 0 rgba(227,0,15,.5); animation: pulse 1.6s ease-in-out infinite; }
.map-node.avail .mn-label { color: var(--rot); }
.map-node.avail:hover { transform: scale(1.12); }
.map-node.boss { width: clamp(56px, 7.5vw, 74px); height: clamp(56px, 7.5vw, 74px); }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; margin-top: clamp(12px,2vw,18px); }
.legend-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(9px,1.1vw,11px); color: rgba(255,255,255,.85); }
.legend-item .li-ico { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; color: #fff; }
.legend-item .li-ico svg { width: 60%; height: 60%; }

/* Pause / Werkstatt Optionen */
.option-grid { display: flex; flex-wrap: wrap; gap: clamp(12px,2vw,18px); justify-content: center; margin: clamp(14px,2.4vw,24px) 0; width: 100%; }
.option-tile {
  flex: 1 1 200px; max-width: 260px;
  background: #fff; border: 2.5px solid var(--rot); border-radius: 12px;
  padding: clamp(16px,2.4vw,24px); box-shadow: 0 6px 0 var(--dunkelrot);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.option-tile:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--dunkelrot); }
.option-tile .ot-ico { width: 48px; height: 48px; color: var(--rot); }
.option-tile .ot-name { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; color: var(--dunkelrot); font-size: clamp(15px,1.9vw,19px); line-height: 1; }
.option-tile .ot-desc { font-family: var(--font-body); color: var(--tinte); font-size: clamp(12px,1.4vw,14px); line-height: 1.3; }
.option-tile:disabled { opacity: .5; cursor: default; transform: none; }

/* Deck-Liste (Werkstatt / Ansehen) */
.deck-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-height: 56vh; overflow-y: auto; padding: 6px; width: 100%; }
.deck-grid .card { margin: 0; width: clamp(96px, 11vw, 124px); cursor: default; box-shadow: 0 4px 12px rgba(0,0,0,0.26); }
.deck-grid .card-head { font-size: clamp(8.5px, 1vw, 11.5px); }

/* Toast */
.toast {
  position: absolute; left: 50%; top: clamp(60px, 12vh, 100px); transform: translate(-50%, -8px);
  z-index: 45; background: #fff; border-left: 6px solid var(--rot);
  padding: 10px 20px; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(15px, 2.2vw, 24px); color: var(--rot); letter-spacing: -0.01em;
  box-shadow: 0 8px 30px rgba(121,0,0,.22); opacity: 0; pointer-events: none;
  max-width: 86vw; text-align: center;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- Einstellungen */
.set-card {
  width: 100%; background: #fff; border: 2.5px solid var(--rot); border-radius: 12px;
  box-shadow: 0 6px 0 var(--dunkelrot); padding: clamp(14px, 2.4vw, 22px);
  display: flex; flex-direction: column; gap: 14px; text-align: left;
}
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.set-row > span { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(11px, 1.4vw, 13px); color: var(--dunkelrot); }
.set-input {
  flex: 1; max-width: 190px; font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--tinte); background: var(--creme); border: 2px solid var(--rand, #D9CEB8);
  border-radius: 6px; padding: 7px 11px; outline: none;
}
.set-input:focus { border-color: var(--rot); }
.set-segs { display: flex; gap: 0; border: 2px solid var(--rot); border-radius: 7px; overflow: hidden; }
.set-seg { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(11px, 1.4vw, 14px); padding: 7px 13px; background: #fff; color: var(--rot); border: none; border-right: 2px solid var(--rot); }
.set-seg:last-child { border-right: none; }
.set-seg.on { background: var(--rot); color: #fff; }
.set-toggle { position: relative; width: 46px; height: 26px; border: 2px solid var(--rot); border-radius: 999px; background: #fff; padding: 0; flex: none; transition: background .15s var(--ease); }
.set-toggle i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--rot); transition: transform .16s var(--ease), background .15s; }
.set-toggle.on { background: var(--rot); }
.set-toggle.on i { transform: translateX(20px); background: #fff; }
.set-note { font-family: var(--font-body); font-size: clamp(11px, 1.3vw, 13px); color: var(--schiefer, #5A4F45); line-height: 1.4; }

/* ---------------------------------------------------------------- Anleitung */
.rules { width: 100%; color: #fff; text-align: left; }
.rules h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(15px, 2vw, 19px); margin: 18px 0 7px; }
.rules h3:first-child { margin-top: 4px; }
.rules p { font-family: var(--font-body); font-size: clamp(13px, 1.6vw, 16px); line-height: 1.5; opacity: .96; }
.rules p b { color: #fff; font-weight: 700; }
.rule-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-family: var(--font-body); font-size: clamp(13px, 1.55vw, 15px); line-height: 1.35; }
.rule-row:last-child { border-bottom: none; }
.rule-row b { color: #fff; font-weight: 800; }
.rule-ico { flex: none; width: 36px; height: 36px; border-radius: 9px; background: #fff; color: var(--rot); display: grid; place-items: center; }
.rule-ico svg { width: 60%; height: 60%; }

/* ---------------------------------------------------------------- Splash ---- */
@keyframes splash-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--creme);
  display: grid; place-items: center;
  transition: opacity .35s ease;
}
#splash svg {
  width: 64px; height: 64px;
  color: var(--rot);
  animation: splash-spin 1.2s linear infinite;
}
#splash.hidden { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  #splash svg { animation: none; }
}

/* ---------------------------------------------------------------- Keyframes */
@keyframes pop { from { transform: scale(.82); } to { transform: scale(1); } }
@keyframes riseIn { from { transform: translateY(14px); opacity: .3; } to { transform: translateY(0); opacity: 1; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bobShadow { 0%,100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.68); opacity: 0.45; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -70%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -150%) scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(227,0,15,.45); } 50% { box-shadow: 0 0 0 7px rgba(227,0,15,0); } }
@keyframes cardPlay {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  35% { transform: translateY(-90px) scale(1.25) rotate(-2deg); opacity: 1; }
  100% { transform: translateY(-40px) scale(.5) rotate(6deg); opacity: 0; }
}

@media (max-height: 560px) {
  .lead { display: none; }
  .enemy-sub { display: none; }
}

/* --------------------------------------- Scale-Mode: Stadtteil-Tour-Karte -- */
@media (max-width: 1279px) and (orientation: landscape) {
  .map-node           { width: 40px; height: 40px; }
  .map-node.boss      { width: 50px; height: 50px; }
  .map-node .mn-label { display: none; }
  .map-floor + .map-floor { margin-top: 10px; }
  .map                { padding: 10px 8px; }
  .map-legend         { margin-top: 8px; gap: 6px 12px; }
}

/* --------------------------------------------------------- Rotationshinweis -- */
#rotate-hint {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: var(--rot); color: var(--weiss);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .1em;
}
@media (max-width: 1279px) and (orientation: portrait) {
  #rotate-hint { display: flex; }
  #app-root    { display: none; }
}
