:root {
  --bg: #1b2027; --panel: rgba(24, 29, 37, 0.92); --panel2: #262d38; --line: rgba(255, 255, 255, 0.1);
  --text: #eef2f6; --muted: #9aa6b4; --gold: #ffd84d; --red: #ff5a5a; --green: #5ee08a; --blue: #6fb6ff; --accent: #ff9f43;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --hud-h: 52px; --tray-h: 96px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; cursor: default; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
.hidden { display: none !important; }
kbd { background: #33404f; border-radius: 4px; padding: 0 5px; font-size: 0.85em; border-bottom: 2px solid #1d252f; }

/* ---------- HUD ---------- */
#hud { position: fixed; top: 0; left: 0; right: 0; height: calc(var(--hud-h) + var(--safe-t)); padding: var(--safe-t) calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l));
  display: flex; align-items: center; gap: 10px; background: linear-gradient(#141920ee, #141920bb); border-bottom: 1px solid var(--line); z-index: 10; }
.hud-left { display: flex; gap: 8px; align-items: center; flex: none; }
.stat { display: flex; align-items: center; gap: 6px; background: #ffffff10; padding: 5px 10px; border-radius: 10px; font-size: 18px; min-width: 70px; }
.stat b { font-variant-numeric: tabular-nums; }
.stat .ico { font-size: 17px; }
.cash .ico, .cash b { color: var(--gold); }
.lives .ico { color: var(--red); }
.stat .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat.bump { animation: bump 0.3s; }
.stat.hurt { animation: hurt 0.4s; }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes hurt { 30% { background: #ff3b3b88; } }
.hud-mid { flex: 1; display: flex; gap: 4px; align-items: center; justify-content: center; overflow: hidden; min-width: 0; }
.hud-mid .plabel { color: var(--muted); font-size: 12px; margin-right: 4px; white-space: nowrap; }
.chip { display: flex; align-items: center; gap: 2px; background: #ffffff10; border-radius: 8px; padding: 2px 6px 2px 2px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip img { width: 26px; height: 26px; }
.chip.boss { background: #ff3b3b33; color: #ffb3b3; }
.hud-right { display: flex; gap: 6px; flex: none; }
.hbtn { min-width: 42px; height: 40px; border-radius: 10px; background: #ffffff14; font-size: 16px; font-weight: 700; }
.hbtn:hover { background: #ffffff24; }
.hbtn.on { background: var(--accent); color: #1b1408; }

/* ---------- Boss ---------- */
#bossbar { position: fixed; top: calc(var(--hud-h) + var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); width: min(520px, 80vw); z-index: 9; text-align: center; pointer-events: none; }
.bname { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb3b3; text-shadow: 0 2px 4px #000; font-size: 14px; }
.bbar { position: relative; height: 12px; background: #000a; border-radius: 6px; overflow: hidden; border: 1px solid #fff3; }
.bbar b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff4b4b, #ff9f43); width: 100%; transition: width 0.15s; }
.bbar i { position: absolute; left: 0; top: 0; height: 4px; background: #7cc8ff; z-index: 2; width: 0; }

/* ---------- Banner / Toasts ---------- */
#banner { position: fixed; top: 32%; left: 0; right: 0; text-align: center; pointer-events: none; z-index: 8; font-size: clamp(30px, 6vw, 64px); font-weight: 900; letter-spacing: 0.04em; text-shadow: 0 4px 0 #0006, 0 0 30px #0008; opacity: 0; }
#banner small { display: block; font-size: 0.38em; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; }
#banner.show { animation: banner 2.2s ease-out; }
#banner.boss { color: #ff7070; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.4); } 12% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
#toasts { position: fixed; top: calc(var(--hud-h) + var(--safe-t) + 50px); left: 50%; transform: translateX(-50%); z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { background: var(--panel); border: 1px solid var(--line); padding: 7px 14px; border-radius: 10px; font-weight: 600; animation: toast 2s forwards; white-space: nowrap; }
.toast.err { border-color: #ff5a5a88; color: #ffc4c4; }
.toast.good { border-color: #5ee08a88; color: #c8ffd9; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#intel { position: fixed; left: calc(10px + var(--safe-l)); top: calc(var(--hud-h) + var(--safe-t) + 10px); z-index: 9; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: 300px; }
.intel { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid #ffd84d66; border-radius: 12px; padding: 8px 12px 8px 8px; animation: intel 7s forwards; box-shadow: 0 6px 20px #0006; }
.intel img { width: 44px; height: 44px; flex: none; }
.intel b { display: block; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.intel span { font-size: 13px; color: #d7dee6; }
@keyframes intel { 0% { opacity: 0; transform: translateX(-20px); } 6%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Turmleiste ---------- */
#tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0 calc(8px + var(--safe-r)) calc(8px + var(--safe-b)) calc(8px + var(--safe-l)); background: linear-gradient(#14192000, #141920ee 22%); pointer-events: none; }
.tray-row { display: flex; gap: 8px; align-items: stretch; pointer-events: auto; padding-top: 8px; }
#cards { flex: 1; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; min-width: 0; touch-action: pan-x; }
#cards::-webkit-scrollbar { display: none; }
.card { position: relative; flex: none; width: 74px; height: 80px; border-radius: 12px; background: var(--panel2); border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 5px; transition: transform 0.1s, border-color 0.1s; touch-action: none; }
.card img { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; pointer-events: none; }
.card .price { font-weight: 800; color: var(--gold); font-size: 14px; z-index: 1; text-shadow: 0 1px 2px #000; }
.card .hk { position: absolute; top: 3px; left: 6px; font-size: 11px; color: var(--muted); font-weight: 700; }
.card:hover { transform: translateY(-3px); }
.card.sel { border-color: var(--gold); background: #3a3420; }
.card.poor .price { color: #ff8080; }
.card.poor img { opacity: 0.55; }
.card.locked { background: #20252d; }
.card.locked img { filter: grayscale(1) brightness(0.45); }
.card.locked .price { color: var(--muted); font-size: 11px; }
.card.new::after { content: 'NEU'; position: absolute; top: -6px; right: -4px; background: var(--accent); color: #1b1408; font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 6px; }
.air { position: relative; flex: none; width: 74px; border-radius: 12px; background: #3a2424; border: 2px solid #ff5a5a55; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.air .air-ico { font-size: 26px; }
.air .air-lbl { font-size: 11px; font-weight: 700; color: #ffc4c4; }
.air .cd { position: absolute; left: 0; right: 0; bottom: 0; background: #000a; height: 0; pointer-events: none; }
.air.sel { border-color: var(--gold); }
.air:disabled { opacity: 0.6; }
.wavebtn { flex: none; min-width: 128px; border-radius: 14px; background: linear-gradient(#ffb347, #ff8a1f); color: #1b1408; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 0 #a85510; font-weight: 900; }
.wavebtn .big { font-size: 18px; }
.wavebtn .small { font-size: 12px; font-weight: 700; opacity: 0.8; }
.wavebtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a85510; }
.wavebtn.pulse { animation: wpulse 1.2s infinite; }
.wavebtn:disabled { background: #3a414c; color: #8994a2; box-shadow: none; animation: none; }
@keyframes wpulse { 50% { filter: brightness(1.2); transform: scale(1.03); } }
#buildHint { pointer-events: auto; margin: 0 auto; width: fit-content; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 7px 8px 7px 14px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
#buildHint b { color: var(--gold); }
#buildHint button { background: #ffffff18; padding: 5px 10px; border-radius: 8px; font-weight: 700; }

/* ---------- Inspektor ---------- */
#inspector { position: fixed; right: calc(10px + var(--safe-r)); top: calc(var(--hud-h) + var(--safe-t) + 10px); width: 300px; max-height: calc(100% - var(--hud-h) - var(--tray-h) - 40px); overflow-y: auto; z-index: 11;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 10px 30px #0008; }
.ins-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ins-head img { width: 46px; height: 46px; }
.ins-head h3 { margin: 0; font-size: 17px; }
.ins-head .lv { color: var(--muted); font-size: 12px; }
.ins-head .x { margin-left: auto; background: #ffffff14; width: 32px; height: 32px; border-radius: 8px; font-size: 18px; }
.ins-stats { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; background: #00000030; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.ins-stats span { color: var(--muted); }
.ins-stats b { text-align: right; font-variant-numeric: tabular-nums; }
.ins-stats .up { color: var(--green); }
.ins-btns { display: flex; flex-direction: column; gap: 6px; }
.ibtn { width: 100%; padding: 9px 10px; border-radius: 10px; background: #ffffff14; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; text-align: left; }
.ibtn:hover:not(:disabled) { background: #ffffff24; }
.ibtn:disabled { opacity: 0.45; cursor: default; }
.ibtn .c { color: var(--gold); white-space: nowrap; }
.ibtn.upg { background: #2d5a3c; }
.ibtn.upg:hover:not(:disabled) { background: #36704a; }
.ibtn.sell { background: #5a2d2d; }
.ibtn.branch { flex-direction: column; align-items: flex-start; background: #2f3b57; }
.ibtn.branch:hover:not(:disabled) { background: #3a4a6d; }
.ibtn.branch .bn { display: flex; justify-content: space-between; width: 100%; }
.ibtn.branch small { font-weight: 500; color: #c8d2e0; font-size: 12px; }
.ins-desc { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.ins-branch-title { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 0; font-weight: 800; }
.spec { font-size: 12px; font-weight: 800; color: #ffb36b; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #1b2027cc, #0b0e12f2); padding: calc(12px + var(--safe-t)) 12px calc(12px + var(--safe-b)); overflow-y: auto; touch-action: pan-y; }
.overlay#title { background: radial-gradient(ellipse at 50% 30%, #2a3a2acc, #0b0e12f5 70%); align-items: flex-start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; width: min(860px, 100%); box-shadow: 0 20px 60px #000a; margin: auto; }
.panel.small { width: min(400px, 100%); }
.panel h2 { margin: 0 0 12px; text-align: center; }
.panel h3 { margin: 16px 0 8px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.title-panel h1 { margin: 0; text-align: center; line-height: 1; }
.title-panel h1 span { display: block; font-size: clamp(44px, 9vw, 78px); font-weight: 900; letter-spacing: 0.08em; background: linear-gradient(#ffe08a, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #0008); }
.title-panel h1 small { display: block; font-size: clamp(11px, 2.6vw, 17px); letter-spacing: 0.3em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
.tag { text-align: center; color: #c8d2e0; margin: 12px 0 4px; }
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mapc { background: var(--panel2); border-radius: 14px; border: 2px solid transparent; padding: 6px; text-align: left; }
.mapc.sel { border-color: var(--gold); }
.mapc canvas { width: 100%; aspect-ratio: 16/9; border-radius: 9px; display: block; }
.mapc b { display: block; margin: 6px 4px 0; }
.mapc small { display: block; margin: 0 4px; color: var(--muted); font-size: 12px; min-height: 2.6em; }
.mapc .best { margin: 4px 4px 2px; font-size: 12px; color: var(--gold); }
.seg { display: flex; gap: 6px; background: #00000030; padding: 4px; border-radius: 12px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 9px; background: transparent; font-weight: 700; }
.seg button small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.seg button.sel { background: var(--accent); color: #1b1408; }
.seg button.sel small { color: #4a2c08; }
.row { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.small-row { margin-top: 12px; gap: 18px; color: var(--muted); font-size: 14px; }
.small-row label, .tog { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.col { display: flex; flex-direction: column; gap: 8px; }
.primary { background: linear-gradient(#ffb347, #ff8a1f); color: #1b1408; font-weight: 900; border-radius: 12px; padding: 11px 22px; box-shadow: 0 4px 0 #a85510; }
.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #a85510; }
.primary.big { font-size: 20px; padding: 13px 34px; }
.ghost { background: #ffffff14; border-radius: 12px; padding: 11px 18px; font-weight: 700; }
.ghost:hover { background: #ffffff22; }
.foot { text-align: center; color: #6c7886; font-size: 12px; margin: 16px 0 0; }
#continueBox .cont { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #2d5a3c55; border: 1px solid #5ee08a55; border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.how { width: min(640px, 100%); }
.how ul { padding-left: 18px; margin: 0 0 12px; }
.how li { margin-bottom: 7px; }
.how .keys { color: var(--muted); font-size: 13px; }
.how button { display: block; margin: 0 auto; }
.end h2 { font-size: 34px; }
.stars { text-align: center; font-size: 40px; letter-spacing: 6px; color: var(--gold); margin: -6px 0 8px; }
.stars .off { color: #ffffff22; }
.endstats { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; background: #00000030; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.endstats span { color: var(--muted); }
.endstats b { text-align: right; }
.endstats .rec { grid-column: 1 / -1; text-align: center; color: var(--gold); font-weight: 800; }
#rotateHint { position: fixed; bottom: calc(var(--tray-h) + 20px); left: 50%; transform: translateX(-50%); background: var(--panel); padding: 6px 12px; border-radius: 10px; font-size: 13px; z-index: 9; pointer-events: none; animation: toast 5s forwards; }

/* ---------- Responsiv ---------- */
@media (max-width: 760px), (max-height: 520px) {
  :root { --hud-h: 46px; --tray-h: 84px; }
  .stat { font-size: 15px; padding: 4px 8px; min-width: 0; gap: 4px; }
  .stat .lbl { display: none; }
  .hbtn { min-width: 36px; height: 36px; font-size: 14px; }
  .card { width: 62px; height: 68px; }
  .card img { width: 42px; height: 42px; }
  .card .price { font-size: 12px; }
  .air { width: 60px; }
  .air .air-lbl { display: none; }
  .wavebtn { min-width: 92px; }
  .wavebtn .big { font-size: 15px; }
  .chip img { width: 22px; height: 22px; }
  .hud-mid .plabel { display: none; }
  .maps { grid-template-columns: 1fr; }
  .mapc { display: grid; grid-template-columns: 120px 1fr; gap: 0 8px; align-items: center; }
  .mapc canvas { grid-row: span 3; }
  .panel { padding: 16px; }
}
@media (max-width: 760px) {
  #inspector { left: 8px; right: 8px; width: auto; top: auto; bottom: calc(var(--tray-h) + var(--safe-b) + 6px); max-height: 52vh; }
  #hud { gap: 6px; }
  .hud-mid { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .hud-mid { display: none; }
}
@media (max-height: 520px) and (min-width: 600px) {
  #inspector { top: calc(var(--hud-h) + 6px); bottom: calc(var(--tray-h) + 6px); max-height: none; width: 270px; }
}

/* Toasts dürfen umbrechen */
.toast { white-space: normal; max-width: min(92vw, 560px); text-align: center; }

/* Schmale Hochformat-Handys: kompaktere Leiste */
@media (max-width: 480px) {
  .card { width: 56px; height: 64px; }
  .card img { width: 38px; height: 38px; }
  .air { width: 52px; }
  .wavebtn { min-width: 80px; }
  .wavebtn .big { font-size: 14px; }
  #tray .tray-row { gap: 6px; }
}

/* Handy quer: Turmleiste als Seitenleiste rechts, damit die Karte groß bleibt */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --hud-h: 42px; }
  #tray { top: calc(var(--hud-h) + var(--safe-t)); left: auto; width: calc(146px + var(--safe-r)); padding: 6px calc(6px + var(--safe-r)) calc(6px + var(--safe-b)) 6px; background: #141920ee; border-left: 1px solid var(--line); }
  #tray .tray-row { flex-direction: column; height: 100%; padding-top: 0; gap: 6px; }
  #cards { flex-wrap: wrap; overflow-x: hidden; overflow-y: auto; align-content: flex-start; touch-action: pan-y; gap: 5px; }
  .card { width: 64px; height: 54px; }
  .card img { width: 34px; height: 34px; top: 2px; }
  .card .price { font-size: 11px; }
  .air { width: 100%; height: 40px; flex-direction: row; flex: none; }
  .air .air-ico { font-size: 18px; }
  .air .air-lbl { display: inline; }
  .wavebtn { width: 100%; min-width: 0; height: 52px; flex: none; }
  #buildHint { position: fixed; left: calc(8px + var(--safe-l)); right: calc(156px + var(--safe-r)); bottom: 8px; width: auto; font-size: 12px; }
  #inspector { right: calc(154px + var(--safe-r)) !important; left: auto !important; top: calc(var(--hud-h) + 6px) !important; bottom: 6px !important; width: 260px !important; max-height: none !important; }
  #rotateHint { display: none; }
}
@media (max-width: 480px) {
  #toasts { top: auto; bottom: calc(var(--tray-h) + var(--safe-b) + 14px); }
  #intel { max-width: 250px; }
}

/* ---------- Fähigkeiten (Luftschlag + Störsender) ---------- */
.abil { flex: none; display: flex; flex-direction: column; gap: 4px; width: 104px; }
.abil .air { width: 100%; flex: 1; flex-direction: row; gap: 6px; min-height: 0; }
.abil .air .air-ico { font-size: 18px; }
.air.jam { background: #1f3a33; border-color: #6dffc855; }
.air.jam .air-lbl { color: #b8ffe6; }
@media (max-width: 760px), (max-height: 520px) {
  .abil { width: 52px; }
  .abil .air { width: 100%; }
}
@media (max-width: 480px) { .abil { width: 46px; } }
@media (max-height: 500px) and (orientation: landscape) {
  .abil { width: 100%; flex-direction: row; height: 40px; }
  .abil .air { height: 100%; width: auto; flex: 1; }
  .abil .air .air-lbl { display: none; }
}

/* ---------- Wellenknopf: Nachzügler ---------- */
.wavebtn.nudge { animation: wpulse 0.9s infinite; background: linear-gradient(#9dff8a, #3fcf62); box-shadow: 0 4px 0 #1f7a35; }

/* ---------- Vorschau-Chips / Dossier ---------- */
.chip { cursor: pointer; pointer-events: auto; position: relative; }
.chip:hover { background: #ffffff22; }
.chip .pth { font-size: 10px; font-weight: 900; background: #ffd84d; color: #1b1408; border-radius: 4px; padding: 0 3px; margin-left: 3px; }
#dossier { position: fixed; top: calc(var(--hud-h) + var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); z-index: 15; width: min(360px, 94vw); background: var(--panel); border: 1px solid #ffd84d66; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px #000a; }
#dossier .dh { display: flex; gap: 10px; align-items: center; }
#dossier .dh img { width: 52px; height: 52px; }
#dossier h4 { margin: 0; font-size: 17px; }
#dossier .dsub { color: var(--muted); font-size: 12px; }
#dossier p { margin: 8px 0; font-size: 13px; color: #d7dee6; }
#dossier .dstats { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
#dossier .dstats span { background: #ffffff12; border-radius: 6px; padding: 2px 7px; }
#dossier .counter { color: #b8ffcf; font-size: 13px; margin-top: 8px; }
#dossier .x { position: absolute; top: 8px; right: 8px; background: #ffffff14; width: 28px; height: 28px; border-radius: 8px; }

/* ---------- Doktrinen ---------- */
.panel.doctrine { width: min(820px, 100%); }
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.doc { background: var(--panel2); border: 2px solid #ffffff18; border-radius: 16px; padding: 16px 14px; text-align: left; display: flex; flex-direction: column; gap: 8px; transition: transform 0.12s, border-color 0.12s; }
.doc:hover, .doc:focus-visible { transform: translateY(-4px); border-color: var(--gold); }
.doc .di { font-size: 34px; line-height: 1; }
.doc b { font-size: 18px; color: var(--gold); }
.doc .pro { color: #b8ffcf; font-size: 14px; }
.doc .con { color: #ffb8b8; font-size: 13px; }
.doc .pro::before { content: '＋ '; font-weight: 900; }
.doc .con::before { content: '－ '; font-weight: 900; }
@media (max-width: 640px) { .doc-cards { grid-template-columns: 1fr; } .doc { padding: 12px; } .doc .di { font-size: 26px; } }

/* ---------- Auswertung ---------- */
.endreport { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; font-size: 14px; }
.endreport .rrow { display: flex; gap: 10px; align-items: center; background: #00000030; border-radius: 12px; padding: 8px 12px; }
.endreport .rrow img { width: 36px; height: 36px; flex: none; }
.endreport .rrow small { display: block; color: var(--muted); font-size: 12px; }
.endreport .lost { display: flex; gap: 8px; flex-wrap: wrap; }
.endreport .lost span { display: flex; align-items: center; gap: 3px; background: #ff3b3b22; border-radius: 8px; padding: 2px 8px 2px 2px; font-weight: 700; color: #ffc4c4; }
.endreport .lost img { width: 26px; height: 26px; }
.endreport .hint { color: #c8ffd9; background: #2d5a3c44; border: 1px solid #5ee08a44; border-radius: 12px; padding: 8px 12px; }
.panel.end { width: min(460px, 100%); }

#firstGuide { position:fixed; z-index:18; top:92px; left:50%; transform:translateX(-50%); width:min(480px,calc(100% - 24px)); display:flex; gap:12px; align-items:center; padding:12px 14px; border:1px solid #91d9ad; border-radius:12px; background:#182d26f2; color:#e8fff0; box-shadow:0 5px 25px #0006; font-size:14px; }
#guideSkip { flex-shrink:0; padding:6px 8px; font-size:12px; }
#guideSpot { position:fixed; z-index:12; width:38px; height:38px; border:3px solid #adffd0; border-radius:50%; transform:translate(-50%,-50%); box-shadow:0 0 0 8px #81efad35,0 0 22px #81efad; pointer-events:none; }
#btnWave.guided { outline:3px solid #adffd0; outline-offset:3px; }
@media(max-height:500px) { #firstGuide { top:60px; width:min(480px,65%); font-size:12px; padding:8px; } }

#guideSkip { background:#294b3c; color:#ecfff3; border:1px solid #80b497; border-radius:6px; cursor:pointer; }
.language { margin:0 0 12px; text-align:right; font-size:13px; }
.language a { color:#b0d8fa; text-underline-offset:3px; }
