/* OutQuest – Retro-Arcade-Stil nach den Mockups */
@font-face { font-family: 'Press Start 2P'; src: url(../fonts/press-start-2p.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url(../fonts/vt323.woff2) format('woff2'); font-display: swap; }

:root {
  --bg: #0b0f1a; --panel: #121a2e; --grid: #141a2b; --line: #3b4a6b; --dim: #1c2740;
  --fg: #e8f0ff; --mute: #9bb0d0; --mute2: #5d6f8f;
  --green: #b6ff3b; --green-d: #1f6b00; --cyan: #3be9ff; --cyan-d: #0e5a66;
  --mag: #ff4fd8; --yellow: #ffd23b; --yellow-d: #7a5a00; --red: #ff3b3b; --red-d: #6b0000;
  --px: 'Press Start 2P', monospace; --vt: 'VT323', monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: var(--vt); font-size: 22px; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
#app { min-height: 100%; }

.screen {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 22px;
  padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px; position: relative; overflow: hidden;
  max-width: 560px; margin: 0 auto;
}
.px { font-family: var(--px); }
.c-green { color: var(--green); } .c-cyan { color: var(--cyan); } .c-mag { color: var(--mag); }
.c-yellow { color: var(--yellow); } .c-red { color: var(--red); } .c-fg { color: var(--fg); } .c-mute { color: var(--mute); } .c-mute2 { color: var(--mute2); }
.center { text-align: center; }
.grow { margin-top: auto; }
.hidden { display: none !important; }

.title { font-family: var(--px); font-size: 30px; line-height: 1.3; text-align: center; color: var(--green); text-shadow: 4px 4px 0 var(--green-d); }
.title.small { font-size: 20px; }
.label { font-family: var(--px); font-size: 11px; color: var(--cyan); letter-spacing: 1px; }
.panel { background: var(--panel); border: 4px solid var(--fg); box-shadow: 6px 6px 0 #000; padding: 16px 18px; font-size: 25px; line-height: 1.25; }
.panel.cyan { border-color: var(--cyan); } .panel.mag { border-color: var(--mag); } .panel.yellow { border-color: var(--yellow); }

.btn { display: block; width: 100%; font-family: var(--px); font-size: 20px; padding: 22px 12px; background: var(--green); color: var(--bg);
  border: 4px solid var(--bg); box-shadow: 8px 8px 0 var(--green-d); text-align: center; transition: transform .05s steps(1); }
.btn:active { transform: translate(4px, 4px); box-shadow: 4px 4px 0 var(--green-d); }
.btn.cyan { background: var(--cyan); box-shadow: 8px 8px 0 var(--cyan-d); }
.btn.mag { background: var(--mag); box-shadow: 8px 8px 0 #6b1060; }
.btn.yellow { background: var(--yellow); box-shadow: 8px 8px 0 var(--yellow-d); }
.btn.big { font-size: 24px; padding: 30px 12px; }
.btn:disabled { opacity: .4; }
.btn-line { font-family: var(--vt); font-size: 22px; padding: 10px; background: var(--panel); border: 3px solid currentColor; text-align: center; }
.btn-line:active { transform: translate(2px, 2px); }
.btn-line:disabled { opacity: .35; }

input.field { font-family: var(--vt); font-size: 32px; padding: 12px 16px; background: var(--bg); color: var(--fg); border: 4px solid var(--fg);
  box-shadow: 6px 6px 0 #000; outline: none; width: 100%; border-radius: 0; -webkit-appearance: none; }
input.field:focus { border-color: var(--cyan); }
input.code { font-family: var(--px); font-size: 34px; text-align: center; letter-spacing: 12px; text-transform: uppercase; color: var(--green); border-color: var(--green); padding: 20px 8px 20px 20px; }
.err { color: var(--red); font-size: 22px; min-height: 26px; }

@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }
.blink { animation: blink 1s steps(1) infinite; }

/* ---------- Startseite ---------- */
.start-btns { display: flex; flex-direction: column; gap: 26px; margin-top: auto; margin-bottom: auto; }

/* ---------- Kopfleiste im Spiel ---------- */
.hud { display: flex; justify-content: space-between; align-items: center; background: var(--panel); border: 4px solid var(--fg); box-shadow: 5px 5px 0 #000; padding: 10px 14px; }
.hud .stars { display: flex; align-items: center; gap: 8px; font-size: 28px; }
.netdot { width: 12px; height: 12px; background: var(--green); display: inline-block; }
.netdot.off { background: var(--red); animation: blink 1s steps(1) infinite; }
.offline-tag { font-size: 18px; color: var(--red); text-align: center; margin-top: -12px; }

/* ---------- Impuls ---------- */
.pulse-wrap { position: relative; width: min(300px, 76vw); aspect-ratio: 1; margin: 6px auto 0; display: flex; align-items: center; justify-content: center; --c: var(--cyan); --cd: var(--cyan-d); }
.pulse-wrap.locked { --c: var(--yellow); --cd: var(--yellow-d); }
.ring { position: absolute; inset: 0; border: 6px solid var(--c); opacity: 0; pointer-events: none; }
@keyframes ring { 0% { transform: scale(.5); opacity: calc(.35 + .65 * var(--lv, 0)) } 100% { transform: scale(1.65); opacity: 0 } }
.ring.go { animation: ring var(--dur, 1.1s) steps(7) forwards; }
.core { width: 50%; aspect-ratio: 1; background: var(--c); opacity: calc(.5 + .5 * var(--lv, 0)); box-shadow: 0 0 calc(12px + 130px * var(--lv, 0)) var(--c), 8px 8px 0 var(--cd); display: flex; align-items: center; justify-content: center; transition: background .4s steps(3), box-shadow .4s steps(3); }
@keyframes beat { 0% { transform: scale(1) } 25% { transform: scale(1.14) } 100% { transform: scale(1) } }
.core.go { animation: beat .35s steps(4); }
.core svg { width: 46%; height: 46%; }
.locked .core { opacity: 1; animation: lockglow 1.2s steps(4) infinite; }
@keyframes lockglow { 0%,100% { box-shadow: 0 0 40px var(--c), 8px 8px 0 var(--cd) } 50% { box-shadow: 0 0 110px var(--c), 8px 8px 0 var(--cd) } }
.flash { position: fixed; inset: 0; pointer-events: none; background: var(--c, #fff); opacity: 0; z-index: 50; }
@keyframes flash { 0% { opacity: .55 } 100% { opacity: 0 } }
.flash.go { animation: flash .6s steps(4); }

.signal-bar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; height: 26px; }
.signal-bar div { background: var(--dim); }
.signal-bar div.on1 { background: var(--cyan); } .signal-bar div.on2 { background: var(--green); } .signal-bar div.on3 { background: var(--yellow); }
.trend { font-family: var(--px); font-size: 12px; }
.trend.hot { color: var(--green); } .trend.cold { color: var(--red); } .trend.calm { color: var(--mute); }

.login-box { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.login-box .big { font-family: var(--px); font-size: 26px; color: var(--yellow); text-shadow: 4px 4px 0 var(--yellow-d); }
.login-box .count { font-family: var(--px); font-size: 34px; color: var(--fg); }
@keyframes slam { 0% { transform: scale(2.4); opacity: 0 } 60% { transform: scale(.9); opacity: 1 } 100% { transform: scale(1) } }
.slam { animation: slam .45s steps(6) both; }

@keyframes shake { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-8px,4px) } 40% { transform: translate(7px,-5px) } 60% { transform: translate(-6px,-3px) } 80% { transform: translate(5px,5px) } }
.shake { animation: shake .4s steps(5); }

/* ---------- Aufgabe ---------- */
.task-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--px); font-size: 11px; }
.task-title { font-family: var(--px); font-size: 18px; line-height: 1.4; color: var(--green); text-shadow: 3px 3px 0 var(--green-d); }
.task-text { font-size: 30px; line-height: 1.2; }

/* ---------- Stern ---------- */
.star-screen { align-items: center; background-image: radial-gradient(circle at 50% 38%, #2a3a12 0, var(--bg) 60%); background-size: 100% 100%; }
@keyframes pop { 0% { transform: scale(.3) rotate(-20deg) } 60% { transform: scale(1.18) rotate(6deg) } 100% { transform: scale(1) rotate(0) } }
.pop { animation: pop .6s steps(6) both; }
.star-big { width: min(230px, 60vw); aspect-ratio: 1; filter: drop-shadow(10px 10px 0 var(--yellow-d)); }
.star-plus { font-family: var(--px); font-size: 40px; color: var(--yellow); text-shadow: 5px 5px 0 var(--yellow-d); }
@keyframes fall { 0% { transform: translateY(-40px) rotate(0) } 100% { transform: translateY(110vh) rotate(360deg) } }
.cf { position: absolute; top: 0; width: 12px; height: 12px; animation: fall 2.4s linear infinite; pointer-events: none; }

/* ---------- Overlay WEITER ---------- */
.overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(11, 15, 26, .96); display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay .inner { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 26px; text-align: center; }

.corner-x { position: absolute; top: max(8px, env(safe-area-inset-top)); right: 8px; font-size: 18px; color: var(--mute2); background: none; border: 0; padding: 6px 10px; }

/* ---------- Spielleiter ---------- */
.leader { gap: 12px; padding: max(14px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom)); background-image: none; }
.lhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lhead .px { font-size: 11px; color: var(--cyan); }
#map { height: 44vh; min-height: 260px; border: 4px solid var(--line); box-shadow: 5px 5px 0 #000; background: var(--panel); }
.leaflet-container { font-family: var(--vt); }
.lrow { display: flex; gap: 8px; align-items: stretch; }
.lrow > * { flex: 1; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 3px solid var(--line); background: var(--panel); }
.stepper button { background: none; border: 0; font-size: 30px; width: 46px; padding: 4px 0; color: var(--cyan); }
.stepper span { font-size: 22px; }
.tbl { display: flex; flex-direction: column; gap: 6px; font-size: 21px; }
.tbl .tr { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 6px; background: var(--panel); border: 3px solid var(--line); padding: 6px 8px; align-items: center; }
.tbl .th { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 6px; color: var(--mute); font-size: 17px; padding: 0 8px; }
.curbox { display: flex; justify-content: space-between; align-items: center; background: #1c1200; border: 3px solid var(--yellow); padding: 8px 12px; font-size: 21px; gap: 8px; }
.st-list .tr { grid-template-columns: auto 1fr auto auto; }
.st-num { font-family: var(--px); font-size: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); color: var(--bg); background: var(--line); }
.st-num.active { background: var(--yellow); } .st-num.done { background: var(--green); } .st-num.task { background: var(--mag); }
.mini { font-size: 18px; padding: 4px 8px; }
.toast { pointer-events: none; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--red); color: var(--bg); font-family: var(--px); font-size: 11px; padding: 12px 14px; z-index: 2100; box-shadow: 5px 5px 0 #000; max-width: 90vw; text-align: center; }
.toast.ok { background: var(--green); }
.qr-box { background: #fff; padding: 14px; width: min(320px, 80vw); margin: 0 auto; image-rendering: pixelated; }
.qr-box img, .qr-box svg { width: 100%; height: auto; display: block; }
.bigcode { font-family: var(--px); font-size: 46px; color: var(--green); text-shadow: 5px 5px 0 var(--green-d); letter-spacing: 8px; }

/* Leaflet-Marker */
.mk-st { font-family: var(--px); font-size: 11px; color: var(--bg); display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg); box-shadow: 3px 3px 0 rgba(0,0,0,.6); }
.mk-pl { background: var(--mag); border: 2px solid #fff; }
.mk-pl-name { font-family: var(--vt); font-size: 18px; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; white-space: nowrap; }
.mk-me { background: var(--cyan); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 12px var(--cyan); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--fg); border-radius: 0; border: 3px solid var(--cyan); }
.leaflet-popup-content { font-family: var(--vt); font-size: 20px; margin: 12px; }

.sym { font-family: system-ui, -apple-system, sans-serif; font-size: 1em; }
.screen > .corner-x + .hud { margin-top: 22px; }
.mk-pl { flex: none; }

/* ================= Auftrag 02 ================= */
.linkbtn { background: none; border: 0; color: var(--cyan); font-family: var(--vt); font-size: 21px; text-decoration: underline; padding: 6px; }
.panel.red { border-color: var(--red); }
.btn.red { background: var(--red); color: #fff; box-shadow: 8px 8px 0 var(--red-d); }
.cube-ic { flex: none; vertical-align: middle; image-rendering: pixelated; }
textarea.field { font-family: var(--vt); font-size: 22px; padding: 10px 12px; background: var(--bg); color: var(--fg); border: 3px solid var(--line); width: 100%; border-radius: 0; resize: vertical; outline: none; -webkit-user-select: text; user-select: text; }
input.field.small { font-size: 24px; padding: 8px 12px; border-width: 3px; box-shadow: none; border-color: var(--line); }
textarea.field:focus, input.field.small:focus { border-color: var(--cyan); }
input.code-sm { font-family: var(--px); font-size: 18px; letter-spacing: 3px; color: var(--green); }

/* Ton-Check */
.tc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tc-btns .btn { font-size: 16px; padding: 16px 6px; }

/* Intro-Terminal */
.intro { justify-content: flex-start; }
.term { margin-top: 30px; background: #050810; border: 4px solid var(--green); box-shadow: 0 0 30px rgba(182,255,59,.25), 8px 8px 0 #000; min-height: 46vh; display: flex; flex-direction: column; }
.term.zero { border-color: var(--red); box-shadow: 0 0 40px rgba(255,59,59,.4), 8px 8px 0 #000; }
.term-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--px); font-size: 9px; color: var(--bg); background: var(--green); padding: 6px 10px; }
.term.zero .term-head { background: var(--red); }
.term-body { padding: 18px 16px; font-size: 32px; line-height: 1.25; color: var(--green); text-shadow: 0 0 8px rgba(182,255,59,.5); word-wrap: break-word; }
.t-alarm { font-family: var(--px); font-size: 20px; line-height: 1.6; color: var(--red); text-shadow: 0 0 12px var(--red); animation: blink .6s steps(1) infinite; }
.t-zero { color: var(--red); text-shadow: 0 0 10px rgba(255,59,59,.7); }
.t-hi { color: var(--yellow); text-shadow: 0 0 10px rgba(255,210,59,.6); }
.cursor { animation: blink .8s steps(1) infinite; color: var(--green); }
.dots { display: flex; gap: 8px; justify-content: center; }
.dots i { width: 12px; height: 12px; background: var(--dim); display: block; }
.dots i.on { background: var(--green); }

/* Station: Story + Warten */
.story { font-size: 24px; color: var(--cyan); }
.wait-team { text-align: center; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 4px dashed var(--yellow); }
.wait-team .count { font-family: var(--px); font-size: 18px; }
input.qcode { font-size: 30px; letter-spacing: 6px; padding: 18px 8px; }

/* Data-Cube-Screen */
.cube-screen { background-image: radial-gradient(circle at 50% 38%, #0e3a44 0, var(--bg) 60%); }
.cube-big { display: flex; gap: 8px; justify-content: center; filter: drop-shadow(0 0 30px rgba(59,233,255,.6)) drop-shadow(8px 8px 0 #000); }
.cube-big .cube-ic { width: min(120px, 28vw); height: auto; }
@keyframes spinY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.cube-big .cube-ic { animation: spinY 1.2s steps(4) infinite; }

/* Pause / Nachricht */
.pause-ov { z-index: 1900; background: rgba(11, 15, 26, .97); }
.msg-ov { z-index: 1950; }
.msg-from { font-size: 16px; color: var(--cyan); letter-spacing: 2px; }
.msg-text { font-size: 32px; line-height: 1.2; }
.msg-ov.zero { background: rgba(30, 0, 0, .96); }
.msg-ov.zero .msg-from { color: var(--red); font-size: 22px; text-shadow: 0 0 14px var(--red); animation: blink .5s steps(1) 6; }
.msg-ov.zero .msg-text { color: var(--red); background: #1a0000; box-shadow: 0 0 40px rgba(255,59,59,.5), 6px 6px 0 #000; }

/* Abspann */
.abspann { overflow: visible; align-items: stretch; }
.abspann-ov { display: block; overflow-y: auto; padding: 0; background: var(--bg); -webkit-overflow-scrolling: touch; }
.ab-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab-cell { background: var(--panel); border: 3px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ab-cell.wide { grid-column: 1 / -1; align-items: center; border-color: var(--cyan); }
.ab-big { font-family: var(--px); font-size: 28px; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.ab-val { font-size: 30px; }
.credits { height: 240px; overflow: hidden; position: relative; border-top: 3px solid var(--line); border-bottom: 3px solid var(--line);
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
@keyframes roll { 0% { transform: translateY(240px) } 100% { transform: translateY(-100%) } }
.cr-roll { position: absolute; left: 0; right: 0; text-align: center; display: flex; flex-direction: column; gap: 18px; padding: 10px 0; animation: roll 10s linear forwards; }
.cr-name { font-family: var(--px); font-size: 20px; color: var(--fg); text-shadow: 3px 3px 0 #000; }
.ab-thanks { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; padding-bottom: 30px; animation: pop .6s steps(6) both; }
.robux { font-family: var(--px); font-size: 20px; color: var(--green); background: #050810; border: 4px solid var(--green); padding: 18px 12px; word-break: break-all;
  box-shadow: 0 0 30px rgba(182,255,59,.35), 6px 6px 0 #000; -webkit-user-select: text; user-select: text; }

/* ---------- Spielleiter ---------- */
.card { background: var(--panel); border: 3px solid var(--line); box-shadow: 5px 5px 0 #000; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.card.mag { border-color: var(--mag); }
.card-t { font-family: var(--px); font-size: 11px; color: var(--cyan); letter-spacing: 1px; }
.check { font-size: 21px; color: var(--mute); } .check.ok { color: var(--green); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tab { background: var(--bg); border: 3px solid var(--line); padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 20px; }
.tab .px { font-size: 18px; } .tab.on { border-color: var(--mag); background: #2a0f28; }
.rt-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.rt-row { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.rt-row .st-num { width: 28px; height: 28px; font-size: 10px; flex: none; }
.cur-t { display: flex; align-items: center; gap: 8px; font-size: 23px; flex-wrap: wrap; }
.cur-stats { display: flex; justify-content: space-between; font-size: 21px; flex-wrap: wrap; gap: 6px; }
.game-line { display: flex; justify-content: space-between; align-items: center; font-size: 20px; flex-wrap: wrap; gap: 6px; }
.pause-banner { background: var(--yellow); color: var(--bg); font-family: var(--px); font-size: 13px; padding: 12px; text-align: center; animation: blink 1.4s steps(1) infinite; }
.pl-row { background: var(--panel); border: 3px solid var(--line); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.pl-row.excl { opacity: .55; border-style: dashed; }
.pl-l1, .pl-l2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 20px; }
.pl-l2 { font-size: 18px; color: var(--mute); }
.st-list .tr.st-row { grid-template-columns: auto 1fr auto; }
.st-info { min-width: 0; cursor: pointer; }
.st-btns { display: flex; gap: 4px; }
.st-btns .mini { min-width: 34px; }
.st-row.done { opacity: .6; } .st-row.skip { opacity: .45; text-decoration: line-through; }
.mk-start { width: 30px; height: 30px; background: var(--yellow); border: 3px solid var(--bg); color: var(--bg); font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 rgba(0,0,0,.6); }
.sheet { position: fixed; inset: 0; z-index: 1500; background: rgba(5, 8, 16, .8); overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; justify-content: center; align-items: flex-start; padding: max(12px, env(safe-area-inset-top)) 10px 40px; }
.sheet-in { width: 100%; max-width: 540px; background: var(--panel); border: 4px solid var(--cyan); box-shadow: 8px 8px 0 #000; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head .px { font-size: 12px; color: var(--cyan); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.col { flex-direction: column; }
.chip { background: var(--bg); border: 3px solid var(--line); padding: 8px 10px; font-size: 20px; text-align: left; }
.chip.on { border-color: var(--green); background: #16240a; color: var(--green); }
.chip.red { border-color: var(--red-d); color: #ff9b9b; } .chip.on.red { border-color: var(--red); background: #2a0000; color: var(--red); }
.chip:disabled { opacity: .35; text-decoration: line-through; border-style: dashed; cursor: not-allowed; }

/* ================= Auftrag 02a ================= */
/* Fortschrittsbalken SERVER-REPARATUR (20 Blöcke, unabhängig von der Stationszahl) */
.prog { display: flex; flex-direction: column; gap: 6px; }
.prog-t { display: flex; justify-content: space-between; font-family: var(--px); font-size: 10px; color: var(--cyan); letter-spacing: 1px; }
.prog-bar { height: 22px; background: var(--dim); border: 3px solid var(--fg); position: relative; overflow: hidden; }
.prog-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--green); box-shadow: 0 0 12px var(--green);
  transition: width 1.4s steps(10); }
.prog-bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(5% - 3px), var(--bg) calc(5% - 3px), var(--bg) 5%); pointer-events: none; }
.prog.small { flex: 1; min-width: 0; margin: 0 12px; gap: 4px; }
.prog.small .prog-t { font-size: 7px; }
.prog.small .prog-bar { height: 12px; border-width: 2px; }
.task-head .prog.small { margin-left: 0; }

/* Puls: letzte Meter */
#pscreen.hot { box-shadow: inset 0 0 calc(40px + 120px * var(--lv, 0)) rgba(59, 233, 255, calc(.25 + .5 * var(--lv, 0))); }
#pscreen.hot .core { background: #e8ffff; }

/* Spielleiter: Split */
.tag-split { font-family: var(--px); font-size: 9px; color: var(--bg); background: var(--mag); padding: 3px 5px; letter-spacing: 1px; vertical-align: middle; }
.mk-st.split { outline: 3px dashed var(--mag); outline-offset: 2px; }
.card.alarm { border-color: var(--red); animation: cardAlarm 1s steps(1) infinite; }
@keyframes cardAlarm { 0%,49% { background: #2a0000 } 50%,100% { background: var(--panel) } }
.split-alarm { color: #ffb3b3; font-size: 21px; line-height: 1.3; }
.st-num.lost { background: var(--red); color: #fff; }
.st-row.lost { opacity: .6; }
.pl-row.bot { border-style: dashed; border-color: var(--mag); }

/* Spieler: Split-Ansage */
.split-intro { background-image: radial-gradient(circle at 50% 30%, #3a0010 0, var(--bg) 65%); background-size: 100% 100%; }
.split-big { font-family: var(--px); font-size: 26px; line-height: 1.35; text-align: center; color: var(--yellow); text-shadow: 4px 4px 0 var(--yellow-d), 0 0 20px rgba(255,210,59,.5); }
@keyframes glitch { 0%,100% { transform: translate(0) } 20% { transform: translate(-3px, 1px); text-shadow: -3px 0 var(--cyan), 3px 0 var(--mag) } 40% { transform: translate(3px,-1px) } 60% { transform: translate(-1px, 2px); text-shadow: 3px 0 var(--cyan), -3px 0 var(--red) } 80% { transform: translate(2px, 0) } }
.glitch { animation: glitch .6s steps(2) infinite; }

/* Spieler: Alarm (rot blinkend) */
.alarm-screen { gap: 14px; align-items: stretch; animation: alarmBg .8s steps(1) infinite; background-size: 100% 100%; background-image: none; }
@keyframes alarmBg { 0%,49% { background-color: #3a0000; box-shadow: inset 0 0 120px rgba(255,59,59,.8) } 50%,100% { background-color: #0b0f1a; box-shadow: inset 0 0 60px rgba(255,59,59,.35) } }
.alarm-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--red); text-shadow: 0 0 14px var(--red); }
.alarm-who { font-family: var(--px); font-size: 20px; line-height: 1.4; text-align: center; color: var(--yellow); text-shadow: 3px 3px 0 var(--yellow-d); }
.arrow-wrap { position: relative; width: min(220px, 56vw); aspect-ratio: 1; margin: 0 auto; border: 4px solid var(--red); background: #1a0000;
  box-shadow: 0 0 40px rgba(255,59,59,.6), 8px 8px 0 #000; display: flex; align-items: center; justify-content: center; }
.arrow-wrap svg { width: 82%; height: 82%; transition: transform .15s linear; filter: drop-shadow(0 0 10px var(--red)); }
.arrow-q { position: absolute; font-family: var(--px); font-size: 70px; color: var(--red); }
.alarm-dist { font-family: var(--px); font-size: 34px; text-align: center; color: var(--fg); text-shadow: 4px 4px 0 #000; }
.countdown { font-family: var(--px); font-size: 74px; text-align: center; color: var(--yellow); text-shadow: 6px 6px 0 var(--yellow-d), 0 0 30px rgba(255,210,59,.6); }
.countdown.urgent { color: var(--red); text-shadow: 6px 6px 0 var(--red-d), 0 0 40px var(--red); animation: beat .5s steps(3) infinite; }
.alarm-team { font-family: var(--px); font-size: 16px; text-align: center; color: var(--fg); }
.alarm-call { font-family: var(--px); font-size: 20px; line-height: 1.5; text-align: center; color: var(--red); background: #1a0000; }

/* Spieler: Cube despawnt */
.lost-screen { align-items: center; background-image: radial-gradient(circle at 50% 35%, #3a0000 0, var(--bg) 65%); background-size: 100% 100%; }
.lost-cube { filter: grayscale(1) brightness(.6) drop-shadow(0 0 20px var(--red)); animation: despawn 1.6s steps(8) forwards; }
@keyframes despawn { 0% { opacity: 1; transform: scale(1) } 30% { opacity: .3; transform: scale(1.1) translateX(-4px) } 50% { opacity: .8; transform: translateX(5px) } 100% { opacity: .08; transform: scale(.7) } }

/* iPhone: Vollbild-Tipp */
.fs-pic { display: flex; align-items: center; gap: 14px; justify-content: center; background: #1c2740; border: 3px solid var(--line); padding: 10px 14px; font-size: 24px; }
.fs-aa { font-family: system-ui, -apple-system, sans-serif; font-size: 22px; font-weight: 700; color: var(--bg); background: var(--yellow); padding: 4px 10px; animation: blink 1s steps(1) infinite; }
