/* ==========================================================
   Ermittlungsakte bei Nacht – Stylesheet
   ========================================================== */
:root {
  --night: #07090c;
  --graphite: #0d1117;
  --panel: #121820;
  --line: rgba(233, 236, 240, 0.12);
  --ink: rgba(233, 236, 240, 0.86);
  --ink-dim: rgba(233, 236, 240, 0.55);
  --ink-faint: rgba(233, 236, 240, 0.32);
  --blood: #c1121f;
  --blood-glow: rgba(193, 18, 31, 0.55);
  --tape: #f2c230;
  --cop-blue: rgba(52, 104, 255, 0.55);
  --leather: #1d1712;
  --paper-dark: #16130f;
  --display: "Oswald", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --type: "Special Elite", "Courier Prime", "Courier New", monospace;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  background: var(--night); color: var(--ink);
  font-family: var(--type);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
}
.hidden { display: none !important; }
button { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--tape); outline-offset: 3px; }

#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; cursor: none; background: #000; }
body.menu #game { cursor: default; }

/* ---------- Atmosphäre ---------- */
#vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 85%, rgba(0,0,0,0.85) 100%);
}
#grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; opacity: 0.075; mix-blend-mode: screen; }
#flash { position: fixed; inset: 0; pointer-events: none; z-index: 30; background: #fff; opacity: 0; transition: opacity .7s ease-out; }
#flash.on { opacity: .9; transition: none; }
#fade { position: fixed; inset: 0; pointer-events: none; z-index: 35; background: #000; opacity: 0; transition: opacity .7s ease; }
#fade.on { opacity: 1; }
#alarm { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; }
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 26; pointer-events: none; }
body::after { /* Mikro-Flackern des Lichts */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 39; background: #000; opacity: 0;
  animation: microFlicker 11s steps(1) infinite;
}
@keyframes microFlicker { 0%, 96.4%, 97.2%, 100% { opacity: 0; } 96.5% { opacity: .18; } 96.9% { opacity: .08; } }

kbd {
  display: inline-block; min-width: 1.6em; padding: 2px 6px; margin: 0 1px; text-align: center;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  background: rgba(255,255,255,0.04); color: var(--ink-dim);
  font-family: var(--display); font-size: .72em; letter-spacing: .06em; line-height: 1.35;
}

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  padding: 16px 38px 18px; border: 1px solid rgba(233,236,240,.16); border-radius: 2px;
  background: rgba(13,17,23,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: .32em; text-transform: uppercase;
  transition: transform .2s var(--ease-out), border-color .2s, color .2s;
  isolation: isolate;
}
.btn-primary span { position: relative; z-index: 2; padding-left: .32em; }
.btn-primary::after { /* Absperrband-Unterstrich */
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 4px; z-index: 1;
  background: repeating-linear-gradient(-45deg, var(--tape) 0 8px, #111 8px 16px); opacity: .9;
}
.btn-primary::before { /* Blaulicht-Glow */
  content: ""; position: absolute; inset: -18px; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 20% 50%, var(--blood-glow), transparent 60%), radial-gradient(ellipse at 80% 50%, var(--cop-blue), transparent 60%);
  filter: blur(10px); transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); border-color: rgba(233,236,240,.35); color: #fff; }
.btn-primary:hover::before { opacity: 1; animation: copPulse .9s steps(1) infinite; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .45; cursor: wait; }
@keyframes copPulse {
  0% { background: radial-gradient(ellipse at 20% 50%, var(--blood-glow), transparent 60%); }
  50% { background: radial-gradient(ellipse at 80% 50%, var(--cop-blue), transparent 60%); }
}
.btn-ghost {
  cursor: pointer; padding: 9px 16px; border: 1px solid var(--line); border-radius: 2px; background: rgba(7,9,12,.5);
  color: var(--ink); font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(233,236,240,.4); background: rgba(233,236,240,.06); }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.hud-left, .hud-right { position: absolute; top: 16px; display: flex; gap: 8px; align-items: stretch; }
.hud-left { left: 18px; }
.hud-right { right: 18px; pointer-events: auto; }
.chip {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 14px;
  background: rgba(10,13,18,.55); border: 1px solid var(--line); border-radius: 3px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 0 18px rgba(0,0,0,.45), inset 0 0 12px rgba(233,236,240,.02);
}
.chip .lbl { font-family: var(--display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
.chip .val { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .08em; color: var(--ink); }
.chip .val.small { font-size: 17px; }
.evidence { padding: 10px 16px 7px; border-color: rgba(233,236,240,.16); background: linear-gradient(180deg, rgba(233,236,240,.05), rgba(10,13,18,.55)); }
.evidence .seal { /* Druckverschluss des Beweismittelbeutels */
  position: absolute; left: 6px; right: 6px; top: 4px; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--blood) 0 6px, transparent 6px 9px); opacity: .85;
}
.evidence.pulse { animation: evPulse .9s var(--ease-out); }
@keyframes evPulse { 0% { transform: scale(1.12); box-shadow: 0 0 30px var(--blood-glow); } 100% { transform: scale(1); } }
.evidence.boss .seal { background: var(--blood); animation: sealBlink 1s steps(2) infinite; }
@keyframes sealBlink { 50% { opacity: .3; } }
.btn-chip { cursor: pointer; pointer-events: auto; font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.btn-chip:hover { border-color: rgba(233,236,240,.3); }
.btn-chip.off { color: var(--ink-faint); }
.vol input { width: 84px; accent-color: var(--blood); cursor: pointer; }

/* Untertitel statt Toast */
#toast {
  position: fixed; left: 50%; bottom: 7vh; z-index: 6; transform: translate(-50%, 6px);
  max-width: min(760px, calc(100vw - 48px)); padding: 6px 16px 7px 22px;
  background: rgba(0,0,0,.55); color: rgba(240,240,240,.92);
  font-family: var(--type); font-size: 18px; line-height: 1.45; text-align: center; text-shadow: 0 1px 3px #000;
  opacity: 0; pointer-events: none; transition: opacity .45s ease, transform .45s ease;
}
#toast::before { content: ""; position: absolute; left: 8px; top: 50%; width: 3px; height: 14px; margin-top: -7px; background: var(--blood); box-shadow: 0 0 8px var(--blood); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.good::before { background: var(--tape); box-shadow: 0 0 8px rgba(242,194,48,.6); }

#debugInfo { position: fixed; left: 18px; bottom: 18px; z-index: 6; font: 12px monospace; color: #7f7; background: rgba(0,0,0,.6); padding: 6px 8px; white-space: pre; pointer-events: none; }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow: auto;
}
.overlay.dim { background: rgba(4,6,9,.62); -webkit-backdrop-filter: blur(7px) saturate(.7); backdrop-filter: blur(7px) saturate(.7); }
.overlay.dim::before, #outro::before, #end::before { /* Scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}

/* ==========================================================
   START
   ========================================================== */
#start { position: fixed; inset: 0; z-index: 20; overflow: hidden; background: #020304; }
.start-bg {
  position: absolute; inset: -3%; background: #05070a url("../../assets/ui/title_bg.jpg") center / cover no-repeat;
  animation: kenburns 46s ease-in-out infinite alternate; will-change: transform;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.torch {
  position: absolute; left: 0; top: 0; width: 360vmax; height: 360vmax; margin: -180vmax 0 0 -180vmax;
  pointer-events: none; will-change: transform;
  background: radial-gradient(circle at center, rgba(2,3,5,0) 0, rgba(2,3,5,.25) 5.5vmax, rgba(2,3,5,.88) 11vmax, rgba(2,3,5,.975) 17vmax);
}
.torch-flicker {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,214,150,.07) 0, transparent 9vmax);
  animation: torchFlicker 5.3s steps(1) infinite;
}
@keyframes torchFlicker { 0%, 40%, 43%, 71%, 72.5%, 100% { opacity: 1; } 41% { opacity: .2; } 42% { opacity: .7; } 72% { opacity: .35; } }

.start-content {
  position: relative; z-index: 3; height: 100%; max-width: 760px; margin: 0 auto; padding: 5vh 28px 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.logo-wrap { width: min(520px, 78vw); }
.logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(193,18,31,.18)) drop-shadow(0 10px 18px rgba(0,0,0,.8)); }
.logo.neon { animation: neonOn 1.9s linear both, neonStutter 9s 4s linear infinite; }
@keyframes neonOn {
  0%, 18% { opacity: 0; } 19% { opacity: .9; } 21% { opacity: 0; } 34% { opacity: 0; } 35% { opacity: .6; } 37% { opacity: .1; }
  48% { opacity: .1; } 49% { opacity: 1; } 52% { opacity: .35; } 55% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes neonStutter { 0%, 93%, 95%, 97%, 100% { opacity: 1; } 94% { opacity: .35; } 96% { opacity: .7; } }
.text-logo { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 7vw, 86px); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.text-logo span { color: var(--blood); }
.aktenzeichen {
  margin: 6px 0 22px; font-family: var(--display); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-faint);
  opacity: 0; animation: fadeIn 1s 1.8s forwards;
}
.intro {
  width: 100%; max-width: 62ch; min-height: 11.5em; text-align: left;
  font-family: var(--type); font-size: 16px; line-height: 1.6; color: var(--ink); text-shadow: 0 1px 8px #000, 0 0 2px #000;
}
.intro p { margin: 0 0 .5em; }
.intro p.done { color: var(--ink-dim); transition: color 1.2s; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: var(--blood); box-shadow: 0 0 8px var(--blood); animation: caret .8s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mission {
  max-width: 62ch; margin: 10px 0 26px; padding-left: 14px; border-left: 2px solid var(--blood); text-align: left; align-self: center;
  font-family: var(--type); font-size: 15px; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .8s, transform .8s var(--ease-out);
}
.mission.show { opacity: 1; transform: none; }
#btnStart { opacity: 0; animation: fadeIn 1s 2.2s forwards; }
.note { margin-top: 12px; font-size: 12px; color: var(--ink-faint); min-height: 1em; letter-spacing: .04em; }
@keyframes fadeIn { to { opacity: 1; } }
.keycaps {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 54px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  font-family: var(--display); font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); opacity: .7; padding: 0 16px;
}
.fineprint {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0 16px; font-family: var(--type); font-size: 10.5px; color: rgba(233,236,240,.3); text-align: center; line-height: 1.35;
}
.fineprint.inline { position: static; margin-top: 26px; }

/* Glitch-Übergang */
#glitchFx { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: 0; }
#glitchFx .g-noise {
  position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .5; mix-blend-mode: screen;
}
#glitchFx .g-bars { position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(193,18,31,.35) 18px 22px, transparent 22px 61px, rgba(60,110,255,.3) 61px 64px, transparent 64px 97px); }
#glitchFx.on { animation: glitchShow .7s steps(1) forwards; background: #000; }
#glitchFx.on .g-noise { animation: noiseJump .1s steps(1) infinite; }
#glitchFx.on .g-bars { animation: barsJump .12s steps(1) infinite; }
@keyframes glitchShow { 0% { opacity: .9; } 15% { opacity: .4; } 25% { opacity: 1; } 70% { opacity: 1; } 85% { opacity: .5; } 100% { opacity: 0; } }
@keyframes noiseJump { 0% { transform: translate(0,0); } 33% { transform: translate(-7%,4%); } 66% { transform: translate(5%,-6%); } }
@keyframes barsJump { 0% { transform: translate(0,0); } 25% { transform: translate(-30px, 12px) scaleY(1.4); } 50% { transform: translate(24px, -30px); } 75% { transform: translate(-8px, 44px) scaleY(.7); } }

/* ==========================================================
   AKTE – dunkler Ordner
   ========================================================== */
.folder {
  position: relative; z-index: 1; width: min(940px, 100%); margin: auto;
  perspective: 1600px; animation: folderDrop .55s var(--ease-out) both;
}
@keyframes folderDrop { from { opacity: 0; transform: translateY(-60px) rotate(-4deg) scale(.96); } to { opacity: 1; transform: rotate(-.6deg); } }
.folder.shake { animation: folderShake .28s ease-out; transform: rotate(-.6deg); }
@keyframes folderShake { 0% { transform: rotate(-.6deg) translate(0,0); } 25% { transform: rotate(-.6deg) translate(3px,4px); } 55% { transform: rotate(-.6deg) translate(-3px,-2px); } 100% { transform: rotate(-.6deg); } }
.folder-back {
  position: absolute; inset: -12px -14px -14px -12px; border-radius: 6px; z-index: 0;
  background: radial-gradient(ellipse at 30% 20%, #2a2119, var(--leather) 60%, #120e0b);
  box-shadow: 0 40px 90px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,220,180,.05), inset 0 0 40px rgba(0,0,0,.6);
}
.folder-back::after { /* abgegriffene Kanten */
  content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(120,90,60,.18), inset 0 0 22px rgba(150,110,70,.12);
}
.folder-tab {
  position: absolute; z-index: 1; top: -40px; left: 34px; padding: 7px 22px 14px;
  background: linear-gradient(180deg, #2b2219, var(--leather)); border-radius: 6px 6px 0 0;
  font-family: var(--display); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: rgba(233,220,200,.6);
}
.folder-page {
  position: relative; z-index: 2; max-height: calc(100vh - 110px); overflow: auto; padding: 28px 34px 22px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(255,240,210,.045), transparent 50%),
    linear-gradient(180deg, #1a1713, var(--paper-dark));
  border: 1px solid rgba(233,220,200,.08); border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.5);
}
.folder-page::before { /* Papierfasern */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.folder-cover {
  position: absolute; z-index: 3; inset: -12px -14px -14px -12px; border-radius: 6px; transform-origin: left center;
  background: radial-gradient(ellipse at 40% 30%, #33281e, #1a140f 70%); box-shadow: inset 0 0 0 1px rgba(255,220,180,.06), inset 0 0 60px rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; backface-visibility: hidden;
  animation: coverOpen .75s .25s cubic-bezier(.55,.05,.35,1) forwards; pointer-events: none;
}
.folder-cover span { font-family: var(--display); font-size: 30px; letter-spacing: .4em; color: rgba(233,220,200,.25); text-transform: uppercase; border: 1px solid rgba(233,220,200,.15); padding: 10px 26px; }
@keyframes coverOpen { 0% { transform: rotateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: rotateY(-115deg); opacity: 0; } }
.folder.quick .folder-cover { animation-duration: .35s; animation-delay: 0s; }

.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid rgba(233,220,200,.14); }
.chapter { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .06em; color: var(--ink); }
.year { font-family: var(--display); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--blood); white-space: nowrap; }
.page-body { display: grid; grid-template-columns: 250px 1fr; gap: 34px; }

.evidence-photo { position: relative; margin: 6px 0 0; transform: rotate(-2.2deg); }
.polaroid { position: relative; padding: 9px 9px 34px; background: #d9d6cf; box-shadow: 0 14px 28px rgba(0,0,0,.6); }
.polaroid canvas { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; filter: saturate(.62) contrast(1.08) brightness(.93); }
.polaroid .cold { position: absolute; left: 9px; right: 9px; top: 9px; bottom: 34px; pointer-events: none; background: linear-gradient(160deg, rgba(60,110,170,.16), rgba(10,20,40,.18)); mix-blend-mode: multiply; }
.evidence-photo figcaption { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-family: var(--hand); font-size: 19px; color: #2b2a28; }
.clip { /* Büroklammer */
  position: absolute; z-index: 2; top: -16px; left: 36px; width: 18px; height: 52px; border: 3px solid #9aa0a6; border-radius: 10px;
  box-shadow: 1px 2px 3px rgba(0,0,0,.5);
}
.clip::after { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 30px; border: 3px solid #9aa0a6; border-bottom: 0; border-radius: 6px 6px 0 0; }

.file-info { min-width: 0; }
.name { font-family: var(--type); font-size: 25px; line-height: 1.2; color: #f1efe9; }
.law { margin: 10px 0 14px; font-family: var(--type); font-size: 15.5px; line-height: 1.4; color: #e2323f; text-shadow: 0 0 12px rgba(193,18,31,.35); }
.crime { margin: 0 0 18px; max-width: 64ch; font-family: var(--type); font-size: 15.5px; line-height: 1.62; color: rgba(233,230,222,.82); }
.postit-wrap { margin: 0 0 18px; }
.postit {
  display: inline-block; max-width: 100%; padding: 10px 16px 12px; transform: rotate(-1.4deg);
  background: linear-gradient(170deg, #cbb978, #b4a160); color: #1c2a5a;
  font-family: var(--hand); font-size: 23px; line-height: 1.12;
  box-shadow: 0 8px 14px rgba(0,0,0,.5);
  clip-path: polygon(0 3%, 6% 0, 14% 2%, 26% 0, 40% 2%, 55% 0, 70% 2%, 84% 0, 100% 2%, 100% 100%, 0 100%);
}
.meta { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px 26px; margin: 0; padding-top: 12px; border-top: 1px dashed rgba(233,220,200,.14); }
.meta dt { font-family: var(--display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.meta dd { margin: 0; font-family: var(--type); font-size: 15px; color: var(--ink); }
.danger { font-size: 20px !important; letter-spacing: 3px; white-space: nowrap; }
.danger .on { color: var(--blood); text-shadow: 0 0 8px var(--blood-glow); }
.danger .off { color: rgba(233,236,240,.28); }
.page-foot { display: flex; justify-content: flex-end; margin-top: 20px; }

.stamp {
  position: absolute; z-index: 4; left: 46px; top: 330px; padding: 4px 16px 2px;
  border: 4px solid var(--blood); border-radius: 6px; color: var(--blood);
  font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transform: rotate(-13deg) scale(1.6); pointer-events: none;
  text-shadow: 0 0 1px var(--blood);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.7'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.7'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-mask-size: cover; mask-size: cover;
}
.stamp.show { animation: stampSlam .26s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes stampSlam { 0% { opacity: 0; transform: rotate(-13deg) scale(1.6); } 100% { opacity: .92; transform: rotate(-13deg) scale(1); } }

/* Boss-Variante */
.boss-banner { display: none; }
.folder.boss .boss-banner {
  display: block; margin: -28px -34px 20px; padding: 8px 0; overflow: hidden; text-align: center;
  background: repeating-linear-gradient(-45deg, #7d0b14 0 14px, #5c0810 14px 28px);
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .5em; text-transform: uppercase; color: #fff;
}
.folder.boss .boss-banner span { display: inline-block; animation: sealBlink 1.1s steps(2) infinite; }
.folder.boss .folder-page { border-color: rgba(193,18,31,.4); }
.folder.boss .folder-page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border: 2px solid var(--blood);
  box-shadow: inset 0 0 40px rgba(193,18,31,.45), 0 0 40px rgba(193,18,31,.45); animation: alertPulse 1.2s ease-in-out infinite;
}
@keyframes alertPulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.folder.boss .folder-tab { color: #fff; background: linear-gradient(180deg, #8a0d17, #5c0810); }

/* ==========================================================
   ERMITTLUNGSWAND
   ========================================================== */
.board {
  position: relative; z-index: 1; width: min(1240px, 100%); max-height: calc(100vh - 48px); overflow: hidden;
  display: flex; flex-direction: column; border-radius: 3px;
  background:
    radial-gradient(circle at 20% 30%, rgba(90,62,36,.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(90,62,36,.2), transparent 45%),
    #17110c;
  box-shadow: 0 0 0 10px #0e0a07, 0 0 0 11px rgba(233,220,200,.06), 0 40px 100px rgba(0,0,0,.9);
}
.board::before { /* Kork */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .38  0 0 0 0 .22  0 0 0 1.4 -.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.board::after { /* Dunkelheit am Rand */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.6) 100%);
}
.board-lamp {
  position: absolute; z-index: 2; left: 50%; top: 45%; width: 140vmax; height: 140vmax; margin: -70vmax 0 0 -70vmax; pointer-events: none;
  background: radial-gradient(circle at center, rgba(255,226,170,.10) 0, rgba(255,226,170,.04) 14vmax, transparent 26vmax);
  mix-blend-mode: screen; animation: lampSwing 9s ease-in-out infinite alternate;
}
@keyframes lampSwing { from { transform: translate(-18%, -4%); } to { transform: translate(18%, 5%); } }
.board-head { position: relative; z-index: 4; display: flex; align-items: center; gap: 18px; padding: 16px 24px 12px; }
.board-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.list-count { flex: 1; font-family: var(--display); font-size: 14px; letter-spacing: .14em; color: var(--ink-dim); }
.board-area { position: relative; z-index: 4; flex: 1; overflow: auto; padding: 18px 26px 28px; }
.strings { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.strings path { fill: none; stroke: #b3101c; stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.board-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 26px; }
.pin-card {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: rotate(var(--r, 0deg)); transition: transform .25s var(--ease-out);
}
.pin-card .pin {
  position: absolute; z-index: 5; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6a6a, #c1121f 45%, #5a0007 100%);
  box-shadow: 2px 4px 5px rgba(0,0,0,.7);
}
.pin-card .shot {
  position: relative; width: 100%; padding: 7px 7px 26px; background: #cfccc5; box-shadow: 0 10px 18px rgba(0,0,0,.65);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.pin-card .shot canvas, .pin-card .shot .sil { display: block; width: 100%; aspect-ratio: 4 / 5; }
.pin-card .shot canvas { filter: saturate(.62) contrast(1.06) brightness(.92); }
.pin-card .shot .cap { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-family: var(--hand); font-size: 17px; color: #2a2826; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.pin-card.found { cursor: pointer; }
.pin-card.found:hover { transform: rotate(0deg) translateY(-6px); z-index: 6; }
.pin-card.found:hover .shot { box-shadow: 0 22px 30px rgba(0,0,0,.75); }
.pin-card.unknown .shot { background: #0b0c0e; border: 1px solid rgba(233,236,240,.08); }
.pin-card .sil {
  background:
    radial-gradient(circle at 50% 38%, #1d2026 0 17%, transparent 17.5%),
    radial-gradient(ellipse 46% 34% at 50% 98%, #1d2026 0 99%, transparent 100%),
    linear-gradient(180deg, #121418, #0a0b0d);
  position: relative;
}
.pin-card .sil::after { content: "?"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 18%; font-family: var(--display); font-weight: 700; font-size: 44px; color: rgba(233,236,240,.22); }
.pin-card.unknown .shot .cap { color: var(--ink-faint); font-family: var(--display); font-size: 12px; letter-spacing: .2em; bottom: 6px; }
.index-card {
  width: 100%; padding: 7px 9px 8px; background: rgba(214,206,186,.9); color: #222;
  font-family: var(--type); font-size: 12.5px; line-height: 1.35; box-shadow: 0 6px 10px rgba(0,0,0,.5); transform: rotate(calc(var(--r, 0deg) * -1.4));
  background-image: repeating-linear-gradient(180deg, transparent 0 15px, rgba(60,90,160,.18) 15px 16px);
}
.index-card .yr { display: block; font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8a0d17; margin-bottom: 2px; }
.pin-card.boss { grid-column: span 2; }
.pin-card.boss .shot { width: 74%; padding-bottom: 30px; background: #cfccc5; }
.pin-card.boss.unknown .shot { background: #0b0c0e; border-color: rgba(193,18,31,.5); box-shadow: 0 0 30px rgba(193,18,31,.25), 0 10px 18px rgba(0,0,0,.65); }
.pin-card.boss .pin { width: 20px; height: 20px; margin-left: -10px; }
.pin-card.boss .index-card { width: 74%; }
.pin-card .mini-stamp {
  position: absolute; z-index: 3; top: 16px; right: -6px; padding: 1px 6px; border: 2px solid var(--blood); border-radius: 3px; color: var(--blood);
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-12deg); background: rgba(207,204,197,.55);
}

/* ==========================================================
   BOSS-EREIGNIS
   ========================================================== */
#eventMsg { position: fixed; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sweep { position: absolute; top: -30%; width: 70vw; height: 160%; filter: blur(30px); opacity: .55; mix-blend-mode: screen; }
.sweep.red { background: radial-gradient(ellipse at center, rgba(255,20,30,.9), transparent 65%); animation: sweepR 1.1s ease-in-out infinite; }
.sweep.blue { background: radial-gradient(ellipse at center, rgba(40,90,255,.9), transparent 65%); animation: sweepB 1.1s ease-in-out infinite; }
@keyframes sweepR { 0% { transform: translateX(-80vw) rotate(10deg); } 100% { transform: translateX(110vw) rotate(-10deg); } }
@keyframes sweepB { 0% { transform: translateX(110vw) rotate(-10deg); } 100% { transform: translateX(-80vw) rotate(10deg); } }
.event-band {
  position: relative; width: 100%; padding: 26px 24px 30px; text-align: center; background: rgba(5,6,9,.78);
  border-top: 1px solid rgba(193,18,31,.8); border-bottom: 1px solid rgba(193,18,31,.8);
  box-shadow: 0 0 60px rgba(193,18,31,.35); animation: bandIn .45s var(--ease-out);
}
.event-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); pointer-events: none; }
@keyframes bandIn { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.glitch { position: relative; display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .6em; padding-left: .6em; color: var(--blood); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; padding-left: .6em; overflow: hidden; }
.glitch::before { color: #ff3b47; animation: glitchA 1.4s steps(1) infinite; }
.glitch::after { color: #4a7dff; animation: glitchB 1.7s steps(1) infinite; }
@keyframes glitchA { 0%, 100% { transform: translate(0); opacity: 0; } 10% { transform: translate(-3px, -1px); opacity: .8; } 14% { opacity: 0; } 55% { transform: translate(2px, 1px); opacity: .8; } 58% { opacity: 0; } }
@keyframes glitchB { 0%, 100% { transform: translate(0); opacity: 0; } 22% { transform: translate(3px, 1px); opacity: .8; } 26% { opacity: 0; } 70% { transform: translate(-2px, 0); opacity: .8; } 73% { opacity: 0; } }
.event-title { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 78px); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 0 26px rgba(255,40,50,.7); }
.event-sub { margin-top: 4px; font-family: var(--type); font-size: clamp(18px, 2.4vw, 26px); color: var(--tape); }

/* ==========================================================
   SIEG / OUTRO / ENDE
   ========================================================== */
.bg-img { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; pointer-events: none; }
.vic-bg { background-image: url("../../assets/ui/victory_bg.jpg"); background-color: #050608; opacity: 0; animation: vicBg 1.6s ease-out forwards; }
@keyframes vicBg { to { opacity: .9; } }
#victory { background: rgba(0,0,0,.35); overflow: hidden; }
#victory::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25) 40%, rgba(0,0,0,.75)); }
.police-lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.police-lights::before, .police-lights::after { content: ""; position: absolute; inset: 0; }
.police-lights::before { background: radial-gradient(ellipse at 12% 18%, rgba(255,30,40,.5), transparent 55%); animation: policeA 1s steps(1) infinite; }
.police-lights::after { background: radial-gradient(ellipse at 88% 18%, rgba(40,90,255,.5), transparent 55%); animation: policeB 1s steps(1) infinite; }
@keyframes policeA { 0% { opacity: 1; } 50% { opacity: .1; } }
@keyframes policeB { 0% { opacity: .1; } 50% { opacity: 1; } }
.scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.victory-inner { position: relative; z-index: 2; text-align: center; width: min(820px, 100%); }
.victory-title {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 11vw, 168px); line-height: .95; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 40px rgba(255,210,150,.55), 0 0 2px #fff;
}
.victory-title .ch { display: inline-block; opacity: 0; transform: translateY(24px) scale(1.25); animation: chIn .7s var(--ease-out) forwards; }
.victory-title .sp { display: inline-block; width: .3em; }
@keyframes chIn { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.victory-sub { margin: 8px 0 30px; font-family: var(--display); font-weight: 500; font-size: clamp(16px, 2.2vw, 24px); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--tape); opacity: 0; animation: fadeIn 1s 1.6s forwards; }
.report {
  position: relative; width: min(460px, 100%); margin: 0 auto 30px; padding: 16px 22px 12px; text-align: left;
  background: rgba(7,9,12,.78); border: 1px solid var(--line); border-left: 2px solid var(--blood);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; animation: fadeIn .8s 2s forwards;
}
.report .row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-family: var(--type); font-size: 15px; color: var(--ink-dim); }
.report .row + .row { border-top: 1px dashed rgba(233,236,240,.09); }
.report .row .lead { flex: 1; border-bottom: 1px dotted rgba(233,236,240,.15); transform: translateY(-4px); }
.report .row b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: .08em; color: var(--ink); }
.report .closed { position: absolute; right: 14px; top: -12px; padding: 2px 10px; border: 2px solid var(--blood); color: var(--blood); background: rgba(7,9,12,.9); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; transform: rotate(3deg); }
#btnVicNext { opacity: 0; animation: fadeIn .8s 2.6s forwards; }

#outro { background: #000; z-index: 15; }
.outro-inner { position: relative; z-index: 1; width: min(760px, 100%); }
.outro-head { font-family: var(--display); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 30px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.outro-text { font-family: var(--type); color: var(--ink); font-size: clamp(19px, 2.3vw, 27px); line-height: 1.6; min-height: 40vh; }
.outro-text p { margin: 0 0 22px; }
#btnFinale { margin-top: 6px; animation: fadeIn .8s both; }

#videoWrap { background: #000; padding: 0; z-index: 20; }
#videoWrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.skip { position: absolute; top: 18px; right: 18px; }
.unmute { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); border-color: var(--blood); }

#end { background: radial-gradient(ellipse at 50% 30%, #121820, var(--night) 70%); z-index: 12; }
.end-inner { position: relative; z-index: 1; width: min(620px, 100%); text-align: center; }
.end-kicker { font-family: var(--display); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-faint); }
.end-inner h2 { margin: 8px 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 72px); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.end-inner > p { font-family: var(--type); font-size: 16px; line-height: 1.6; color: var(--ink-dim); margin: 0 auto 26px; max-width: 52ch; }
#end .report, #end .report .closed { animation-delay: .2s; }

@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; justify-items: center; }
  .evidence-photo { width: 230px; }
  .stamp { left: 50%; margin-left: -120px; top: 280px; }
  .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pin-card.boss { grid-column: span 3; }
  .meta { grid-template-columns: 1fr 1fr; }
  .vol { display: none; }
}
@media (max-height: 760px) {
  .start-content { padding-top: 2vh; padding-bottom: 96px; }
  .logo-wrap { width: min(400px, 70vw); }
  .intro { font-size: 14.5px; min-height: 9.5em; }
  .aktenzeichen { margin-bottom: 12px; }
  .mission { margin: 6px 0 16px; }
  .keycaps { bottom: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .start-bg, .board-lamp, .sweep { animation: none !important; }
}

/* ---------- Iteration 2 ---------- */
.torch { background: radial-gradient(circle at center, rgba(2,3,5,0) 0, rgba(2,3,5,.08) 6vmax, rgba(2,3,5,.55) 12vmax, rgba(2,3,5,.9) 19vmax, rgba(2,3,5,.975) 27vmax); }
.torch-flicker { background: radial-gradient(circle at center, rgba(255,214,150,.10) 0, rgba(255,214,150,.03) 9vmax, transparent 15vmax); }
.start-bg { filter: brightness(1.15) contrast(1.05); }

.evidence-photo { align-self: start; }
.stamp { left: auto; top: 26px; right: -44px; font-size: 32px; padding: 3px 12px 1px; border-width: 3px; }
@media (max-width: 900px) { .stamp { left: auto; margin-left: 0; top: 26px; right: -30px; } }
.meta dt { color: rgba(233,236,240,.46); }

.victory-title .word { display: inline-block; white-space: nowrap; }
.victory-title { font-size: clamp(60px, 9.5vw, 160px); }
.report { animation-delay: 1.3s; }
#btnVicNext { animation-delay: 1.8s; }

.strings { z-index: 0; }
.pin-card { z-index: 1; }
.pin-card .shot, .pin-card .index-card { width: min(100%, calc((100vh - 330px) / 3.1)); }
.pin-card.boss .shot, .pin-card.boss .index-card { width: min(74%, calc((100vh - 330px) / 2.6)); }
.board-grid { gap: 26px 22px; }
.stamp { right: -22px; }

/* ---------- Iteration 3 ---------- */
.torch { background: radial-gradient(circle at center, rgba(2,3,5,0) 0, rgba(2,3,5,.05) 8vmax, rgba(2,3,5,.4) 15vmax, rgba(2,3,5,.82) 24vmax, rgba(2,3,5,.965) 34vmax); }
.torch-flicker { background: radial-gradient(circle at center, rgba(255,214,150,.13) 0, rgba(255,214,150,.04) 12vmax, transparent 20vmax); mix-blend-mode: screen; }
.start-bg { filter: brightness(1.4) contrast(1.08) saturate(.9); }

.pin-card .shot { width: min(100%, calc((100vh - 360px) / 3.4)); }
.pin-card.boss .shot { width: min(74%, calc((100vh - 360px) / 2.8)); }
.pin-card .index-card, .pin-card.boss .index-card { width: min(100%, 190px); font-size: 11.5px; }
.index-card > span:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.board-grid { gap: 22px 22px; }
.board-area { padding-top: 14px; }
.pin-card.boss .shot { width: min(74%, calc((100vh - 360px) / 2.8), 280px); }
.end-inner { width: min(820px, 100%); }
.end-inner h2 { font-size: clamp(38px, 4.6vw, 72px); white-space: nowrap; }
@media (min-width: 1900px) and (min-height: 1100px) {
  .folder, .start-content, .victory-inner, .end-inner, .outro-inner, .keycaps, #toast, .hud-left, .hud-right { zoom: 1.35; }
}
@media (max-height: 780px) {
  .folder-page { padding: 20px 28px 16px; }
  .page-head { margin-bottom: 14px; padding-bottom: 8px; }
  .page-body { grid-template-columns: 210px 1fr; gap: 26px; }
  .name { font-size: 21px; }
  .law { margin: 6px 0 10px; font-size: 14px; }
  .crime { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
  .postit { font-size: 20px; padding: 7px 14px 9px; }
  .postit-wrap { margin-bottom: 12px; }
  .page-foot { margin-top: 10px; }
  .folder.boss .boss-banner { margin: -20px -28px 14px; padding: 6px 0; }
}

/* ==========================================================
   FIX: Startinhalt darf nicht gestaucht werden (Überlappung)
   ========================================================== */
.start-content { overflow-y: auto; justify-content: safe center; scrollbar-width: none; }
.start-content::-webkit-scrollbar { display: none; }
.start-content > * { flex-shrink: 0; }
.intro { min-height: 0; }
@media (max-height: 820px) {
  .logo-wrap { width: min(400px, 70vw); }
  .intro { font-size: 14.5px; line-height: 1.5; }
  .aktenzeichen { margin: 4px 0 14px; }
  .mission { margin: 6px 0 16px; font-size: 14px; }
}

/* ==========================================================
   EINSTIEG: "Akte öffnen" – schaltet Ton frei
   ========================================================== */
body:not(.awake) .logo,
body:not(.awake) .aktenzeichen,
body:not(.awake) #btnStart,
body:not(.awake) .start-content,
body:not(.awake) .keycaps { animation-play-state: paused; }
body:not(.awake) .start-content,
body:not(.awake) .keycaps { opacity: 0; }
.start-content, .keycaps { transition: opacity 1.2s ease; }

.gate {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(2,3,5,.35) 0, rgba(2,3,5,.85) 60%);
  transition: opacity .9s ease;
}
.gate.out { opacity: 0; pointer-events: none; }
.gate-inner { text-align: center; }
.gate-label {
  font-family: var(--display); font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--blood);
  margin-bottom: 18px; animation: gatePulse 2.4s ease-in-out infinite;
}
.gate-btn {
  display: inline-block; padding: 18px 46px; font-family: var(--display); font-size: 22px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink); border: 1px solid rgba(233,236,240,.25); background: rgba(10,13,18,.55); backdrop-filter: blur(3px);
  box-shadow: 0 0 0 rgba(193,18,31,0); transition: box-shadow .4s, border-color .4s, transform .4s var(--ease-out);
}
.gate:hover .gate-btn { border-color: rgba(193,18,31,.8); box-shadow: 0 0 28px rgba(193,18,31,.35), 0 0 60px rgba(40,90,255,.15); transform: scale(1.03); }
.gate-hint { margin-top: 16px; font-family: var(--type); font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
@keyframes gatePulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gate-label { animation: none; } }

/* FIX 2: Startseite passt sich der Bildschirmhöhe an, nichts überlappt die Fußzeile */
.mission { display: none; } /* Auftrag kommt im Spiel als Untertitel */
.start-content { padding: 4vh 28px 130px; }
.logo-wrap { width: min(520px, 78vw, 44vh); }
.intro { font-size: clamp(12.5px, 1.75vh, 16px); line-height: 1.5; margin-bottom: 2.2vh; }
.intro p { margin-bottom: .45em; }
.aktenzeichen { margin: .6vh 0 2vh; }
@media (max-height: 760px) {
  .keycaps { display: none; }
  .start-content { padding-bottom: 64px; }
}
