/* ============================================================
   tobiaszander.de: Retro-Arcade-Theme (GORILLAS.BAS)
   Stylesheet der einzigen Seite (index.html).
   Palette: CGA-Blau/Gelb/Cyan/Rot, harte Pixel-Schatten.
   ============================================================ */

/* ---------- Fonts (lokal, latin-Subset deckt Umlaute ab) ---------- */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/press-start-2p-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/vt323-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-600.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --sky-0: #00004f;
  --sky-1: #000079;
  --sky-2: #0000a8;
  --panel: #0a0a3d;
  --panel-deep: #000032;
  /* Glasige Content-Boxen (nur Desktop, siehe @media): der Hintergrund wird leicht
     transparent, damit die durchfliegenden Bananen der fixen Game-Canvas dahinter
     sichtbar bleiben. Text/Bilder/Kopfleisten bleiben deckend (Kontrast). Ein Regler: */
  --panel-alpha: 0.78;
  --panel-glass: rgb(10 10 61 / var(--panel-alpha));    /* = --panel  #0a0a3d */
  --panel-deep-glass: rgb(0 0 50 / var(--panel-alpha)); /* = --panel-deep #000032 */
  --yellow: #FCFC54;
  --cyan: #00e0e0;
  --cyan-2: #00a8a8;
  --cyan-soft: #8fe3e3;
  --red: #a80000;
  --red-bright: #fc3030;
  --grey: #a8a8a8;
  --ink: #E7E9F7;
  --ink-2: #D3D6F2;
  --ink-3: #C6CAEA;
  --ink-4: #B9BDE4;
  --ink-dim: #7f83c8;
  --ink-dimmer: #8f93d0;
  --px: 'Press Start 2P', monospace;
  --display: 'VT323', monospace;
  --body: 'IBM Plex Mono', monospace;
  --line: 3px solid #000;
  --shadow-lg: 8px 8px 0 rgba(0, 0, 0, .45);
  --shadow-md: 6px 6px 0 rgba(0, 0, 0, .42);
  --shadow-sm: 4px 4px 0 rgba(0, 0, 0, .45);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

/* Muss Autoren-display-Regeln schlagen (.windbar, .btn), sonst kippt Progressive Enhancement */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 34%, var(--sky-2) 100%);
  background-color: var(--sky-1);
  overflow-x: hidden;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { color: #fff; }

::selection { background: var(--yellow); color: #000063; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 90;
  font-family: var(--px);
  font-size: 10px;
  padding: 10px 14px;
  background: var(--yellow);
  color: #000;
  border: var(--line);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Animations ---------- */
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hintbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes nowblink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes hotpulse {
  0%, 100% { outline-color: rgba(252, 252, 84, .95); }
  50% { outline-color: rgba(252, 252, 84, .25); }
}

/* ---------- CRT-Overlay (statisch, kein Flicker) ---------- */
.crt {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 140px 30px rgba(0, 0, 10, .35);
}

/* ---------- Game-Layer ---------- */
.game-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.g-hotspot {
  position: fixed;
  z-index: 40;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.g-hotspot:focus-visible,
.g-hotspot--hint {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.g-hotspot--hint { animation: hotpulse 1.2s ease-in-out infinite; }

/* ---------- Aim-Panel (ANGLE? / VELOCITY?) ---------- */
.aim-panel {
  z-index: 55;
  width: 262px;
  margin: 0;
  padding: 14px 16px 16px;
  background: var(--panel);
  border: var(--line);
  box-shadow: var(--shadow-md);
}
.aim-panel--fixed { position: fixed; }
.aim-title {
  font-family: var(--px);
  font-size: 9px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.aim-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.aim-row label {
  flex: 1 1 100%;
  font-family: var(--px);
  font-size: 8px;
  color: var(--cyan);
  letter-spacing: .5px;
}
.aim-step {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-family: var(--px);
  font-size: 12px;
  color: #032326;
  background: var(--cyan-2);
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
}
.aim-step:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .4); }
.aim-row input {
  width: 62px;
  padding: 9px 4px;
  font-family: var(--body);
  font-size: 17px;
  text-align: center;
  color: var(--yellow);
  background: var(--panel-deep);
  border: 2px solid var(--cyan-2);
}
.aim-row input:focus-visible { outline-offset: 0; }
.aim-wind {
  font-family: var(--px);
  font-size: 8px;
  color: var(--cyan-soft);
  margin: 4px 0 12px;
}
.aim-actions { display: flex; gap: 10px; }
.aim-actions .btn { padding: 11px 12px; font-size: 9px; }

/* ---------- Scorebar (Sticky-Nav) ---------- */
.scorebar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sky-2);
  border-bottom: 4px solid #000;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
.scorebar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--px);
  font-size: 11px;
  color: #fff;
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand:hover { color: var(--yellow); }
.brand .dot { color: var(--yellow); }
.score-links {
  flex: 1;
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.score-links a {
  font-family: var(--px);
  font-size: 9px;
  color: var(--cyan-soft);
  padding: 6px 2px; /* Touch-Target aufpolstern */
}
.score-links a:hover { color: #fff; }
.sound-btn {
  font-family: var(--px);
  font-size: 9px;
  color: #000063;
  background: var(--yellow);
  border: 2px solid #000;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
}
.sound-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .4); }

/* ---------- Content-Spalte ---------- */
main { position: relative; z-index: 10; }

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 70px 0; }

.sec-head { text-align: center; margin-bottom: 34px; }
.sec-label {
  font-family: var(--px);
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.sec-title {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 400;
  line-height: .9;
  margin: 0;
  color: #fff;
  text-shadow: 3px 3px 0 var(--red);
}
.sec-intro {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--px);
  font-size: 11px;
  line-height: 1;
  padding: 14px 18px;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: center;
}
.btn--primary { color: #000063; background: var(--yellow); border-color: #000; }
.btn--primary:hover { color: #000063; background: #fff; }
.btn--ghost { color: #fff; background: transparent; border-color: var(--cyan-2); }
.btn--ghost:hover { color: var(--yellow); border-color: var(--cyan); }
.btn--action { color: #000063; background: var(--cyan); border-color: #000; }
.btn--action:hover { color: #000063; background: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0, 0, 0, .45); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0 40px;
}
.coin-line {
  font-family: var(--px);
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.caret { animation: caret 1s step-end infinite; }
.coin-start {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.coin-start:hover,
.coin-start:focus-visible { color: var(--cyan); outline: none; }
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.scroll-hint {
  margin-top: 52px;
  font-family: var(--px);
  font-size: 9px;
  color: var(--ink-dim);
  animation: hintbob 2s ease-in-out infinite;
}

/* ---------- Retro-Panel (Karten-Grundform) ---------- */
.retro-panel {
  border: var(--line);
  box-shadow: var(--shadow-md);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.panel-head {
  font-family: var(--px);
  font-size: 9px;
  padding: 10px 12px;
  border-bottom: var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.panel-head--cyan { background: var(--cyan-2); color: #032326; }
.panel-head--red { background: var(--red); color: #ffe3e3; }
.panel-head--grey { background: var(--grey); color: #1b1b1b; }
.panel-body { padding: 20px 22px; }
.panel-body h3 {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--yellow);
}
.panel-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.px-link {
  font-family: var(--px);
  font-size: 9px;
  letter-spacing: .5px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--yellow);
  cursor: pointer;
  text-align: left;
}
.px-link:hover { color: #fff; }
.panel-body .px-link { display: inline-block; margin-top: 14px; }

/* ---------- Roots-Terminal ---------- */
.terminal {
  border: var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}
.terminal-bar {
  background: var(--red);
  color: #ffe3e3;
  font-family: var(--px);
  font-size: 10px;
  padding: 10px 14px;
  border-bottom: var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terminal-body { padding: 26px 28px; }
.terminal-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.terminal-body strong { color: var(--yellow); font-weight: 600; }

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.chip {
  font-family: var(--px);
  font-size: 9px;
  color: var(--cyan);
  border: 2px solid var(--cyan-2);
  padding: 9px 11px;
  line-height: 1.5;
}
.chip--yellow { color: var(--yellow); border-color: var(--yellow); }

/* ---------- Boot-Screen (Hero + Roots verschmolzen) ---------- */
.terminal--boot { text-align: left; }
.hero .scroll-hint { text-align: center; margin-top: 40px; }
/* Prosa-Block laeuft ueber die volle Terminal-Breite wie Headline und Chips,
   damit die rechten Kanten buendig sind und der Text nicht schmal/gedrungen wirkt. */
.boot-copy p:last-child { margin-bottom: 0; }
/* .terminal--boot-Prefix schlaegt die spezifischere Regel .terminal-body p */
.terminal--boot .boot-headline {
  font-family: var(--display);
  font-size: clamp(38px, 7.5vw, 78px);
  font-weight: 400;
  line-height: .95;
  color: #fff;
  text-shadow: 4px 4px 0 var(--red);
  margin: 16px 0 20px;
}

/* High-Score-Tafel: Positionierung als Arcade-Gag (Tobias 1UP, Modelle darunter) */
.hiscore {
  border: 3px solid var(--yellow);
  background: var(--panel-deep);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px 16px;
  margin: 26px 0;
  text-align: left;
}
.hiscore-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--px);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--yellow);
  margin-bottom: 10px;
}
.hiscore-list { list-style: none; margin: 0; padding: 0; }
.hiscore-row {
  display: grid;
  grid-template-columns: 46px minmax(88px, auto) 1fr;
  gap: 8px 14px;
  align-items: baseline;
  padding: 9px 8px;
  border-top: 2px solid rgba(255, 255, 255, .08);
}
.hiscore-row:first-child { border-top: 0; }
.hs-rank { font-family: var(--px); font-size: 9px; color: var(--cyan); }
.hs-name {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ink);
  margin: 0;
}
.hs-role { font-family: var(--body); font-size: 13px; color: var(--ink-dim); }
.hiscore-row--me {
  background: rgba(252, 252, 84, .10);
  box-shadow: inset 3px 0 0 var(--yellow);
}
.hiscore-row--me .hs-rank,
.hiscore-row--me .hs-name { color: var(--yellow); }
.hiscore-note {
  margin: 12px 2px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
@media (max-width: 560px) {
  .hiscore-row { grid-template-columns: 42px 1fr; }
  .hiscore-row .hs-role { grid-column: 2 / -1; }
}

/* ---------- Mini-Game (Roots-Box, <980px) ---------- */
.mini-game { margin-top: 26px; }
.mini-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--px);
  font-size: 8px;
  color: var(--cyan-soft);
  margin-bottom: 8px;
}
.mini-stage {
  position: relative;
  border: 2px solid #000;
  background: var(--panel-deep);
  overflow: hidden;
}
.mini-stage canvas {
  display: block;
  width: 100%;
}
.mini-stage .g-hotspot { position: absolute; z-index: 5; }
/* INSERT-COIN-Overlay: liegt ueber dem Canvas, halbtransparent, damit die
   Attract-Bananen dahinter durchscheinen. Tap oeffnet Player-1-Eingabe. */
.mini-coin {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
  background: rgba(0, 0, 50, 0.62);
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.mini-coin-title {
  font-family: var(--px);
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}
.mini-coin-sub {
  font-family: var(--body);
  font-size: 12px;
  color: var(--cyan-soft);
  letter-spacing: .5px;
}
.mini-coin:active { transform: translate(1px, 1px); }
.mini-game .aim-panel {
  width: 100%;
  margin-top: 12px;
  box-shadow: none;
  border-width: 2px;
}
.mini-hint {
  font-family: var(--px);
  font-size: 8px;
  color: var(--ink-dim);
  margin-top: 10px;
  line-height: 1.6;
}

/* ---------- Cases: Level-Select ---------- */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.level-card { min-width: 0; }
/* Level 7 als Endboss: die ungerade siebte Card fuellt die volle Breite,
   statt als Waise allein in der linken Spalte zu haengen */
.level-grid .level-card:last-child { grid-column: 1 / -1; }
.badge-now {
  font-family: var(--px);
  font-size: 8px;
  color: #000063;
  background: var(--yellow);
  border: 2px solid #000;
  padding: 3px 6px;
  animation: nowblink 1.6s step-end infinite;
}

/* ---------- Views ---------- */
.views-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.view-card {
  border: var(--line);
  box-shadow: var(--shadow-md);
  background: var(--panel);
  padding: 22px 24px;
}
.view-date {
  font-family: var(--px);
  font-size: 9px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.view-card h3 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--yellow);
}
.view-card p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

/* ---------- About ---------- */
.about-top {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
.player-card { max-width: 340px; }
.player-card .portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  object-fit: cover;
  border-bottom: var(--line);
}
@media (max-width: 720px) {
  .about-top { grid-template-columns: 1fr; }
  .player-card { margin-left: auto; margin-right: auto; }
}
.player-roles {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.player-roles span {
  font-family: var(--px);
  font-size: 8px;
  color: var(--cyan);
  line-height: 1.5;
}
.bio-panel { padding: 24px 26px; }
.bio-panel p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
}
.bio-panel strong { color: var(--yellow); font-weight: 600; }

.inventory-panel { padding: 24px 26px; }
.inventory-title {
  font-family: var(--px);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
/* Side Quests im editorialen "Stack"-Layout (Label-Spalte | Prosa), aus dem Claude-Design portiert */
.sq-stack { margin-top: 4px; }
.sq-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 18px 0;
  align-items: baseline;
  border-top: 2px solid rgba(255, 255, 255, .10);
}
.sq-row:first-child { border-top: 0; padding-top: 4px; }
.sq-label {
  font-family: var(--px);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: var(--yellow);
}
.sq-items {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.sq-items a { color: var(--cyan); }
.sq-items a:hover { color: #fff; }
@media (max-width: 640px) {
  .sq-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
}

/* ---------- Press ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
}
.press-card {
  border: var(--line);
  box-shadow: var(--shadow-md);
  background: var(--panel);
  padding: 22px 24px;
}
.press-label {
  font-family: var(--px);
  font-size: 10px;
  color: var(--yellow);
  margin-bottom: 14px;
}
.press-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
}
.press-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.press-list .m { color: var(--ink-dim); }
.press-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.book-covers { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.book-covers figure { margin: 0; }
.book-covers img {
  width: auto;
  height: 190px;
  max-width: 100%;
  object-fit: contain;
  border: 2px solid #000;
}
.book-covers figcaption {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin-top: 6px;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 76px);
  font-weight: 400;
  line-height: .9;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 4px 4px 0 var(--red);
}
.contact p {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
/* Solide Boden-Platte: sonst schwebt der schwarze Border-Top als Streifen ueber der Skyline */
.footer {
  position: relative;
  z-index: 10;
  background: var(--panel-deep);
  border-top: 4px solid #000;
  box-shadow: 0 -3px 0 rgba(0, 0, 0, .35);
  padding: 26px 16px 60px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-dimmer);
}
.game-over {
  font-family: var(--px);
  font-size: 9px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.footer button.px-link { font-size: 10px; }

/* ---------- Windbar (Desktop) ---------- */
.windbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--sky-2);
  border-top: 4px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  box-shadow: 0 -3px 0 rgba(0, 0, 0, .35);
  font-family: var(--px);
  font-size: 9px;
}
.windbar .wb-score { color: var(--yellow); }
.windbar .wb-label { color: #fff; letter-spacing: 1px; }
.windbar .wb-val { color: var(--cyan-soft); }
.wb-arrow { display: flex; align-items: center; }
.wb-arrow.rev { flex-direction: row-reverse; }
.wb-line {
  height: 5px;
  background: var(--red-bright);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, .5);
}
.wb-head {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--red-bright);
}
.wb-arrow.rev .wb-head {
  border-left: 0;
  border-right: 12px solid var(--red-bright);
}

/* ---------- Dialoge (Cases + Legal) ---------- */
dialog.case-modal {
  margin: auto;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
  padding: 0;
  border: var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
  color: var(--ink-2);
  overflow-y: auto;
}
dialog.case-modal::backdrop { background: rgba(0, 0, 32, .78); }
/* No-JS-Fallback: Rechtstexte bleiben ohne JavaScript erreichbar. Die Footer-Links
   und llms.txt zeigen auf #modal-impressum/#modal-datenschutz; ohne Skript oeffnet
   :target den Dialog als fixiertes Overlay (Schliessen via Zurueck-Navigation). */
dialog.case-modal:target {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
}
.case-modal-close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 12px 0 0;
  width: 40px;
  height: 40px;
  font-family: var(--px);
  font-size: 12px;
  line-height: 1;
  color: #000063;
  background: var(--yellow);
  border: 2px solid #000;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
  z-index: 2;
}
.case-modal-close:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .4); }
.case-modal-body { padding: 26px 28px 30px; }
.case-modal-body .meta-line {
  font-family: var(--px);
  font-size: 8px;
  color: var(--cyan);
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.case-modal-body h3 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
  line-height: .95;
  margin: 0 0 16px;
  color: var(--yellow);
}
.case-modal-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.case-modal-body .related strong { color: var(--cyan-soft); font-weight: 600; }
.case-visual { margin: 0 0 18px; }
.case-visual img { width: 100%; height: auto; border: 2px solid #000; }

dialog.legal-modal .case-modal-body h3 { font-size: 42px; }
.legal-intro { color: var(--ink-dim) !important; font-size: 13px !important; }
.legal-h {
  font-family: var(--px);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: .5px;
  margin: 26px 0 10px;
  line-height: 1.6;
}
.legal-modal p { font-size: 13.5px; line-height: 1.7; }
.legal-list {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------- Responsive ---------- */
@media (min-width: 980px) {
  body { background-attachment: fixed; }
  /* Platz für die festen Skylines (~198px + Puffer) je Seite */
  .wrap { max-width: min(900px, calc(100vw - 428px)); }
  /* Windbar überlagert das Seitenende */
  .footer { padding-bottom: 130px; }
  #mini-game { display: none !important; }
  /* Nur die Content-Panels werden glasig; nur der Hintergrund, nicht der Inhalt.
     Chrome-Leisten (Scorebar/Windbar/Footer), Aim-Formular und Modals bleiben deckend. */
  .terminal,
  .retro-panel,   /* Case-Level, player-card, bio-panel, inventory-panel */
  .view-card,
  .press-card { background: var(--panel-glass); }
  .hiscore { background: var(--panel-deep-glass); }
}

@media (max-width: 979.98px) {
  .game-canvas, .windbar { display: none !important; }
  .g-hotspot--desktop { display: none !important; }
}

@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .terminal-body { padding: 20px 16px; }
  .panel-body { padding: 18px 16px; }
  .case-modal-body { padding: 20px 16px 24px; }
  .scorebar-inner { gap: 10px; }
  .cta-row .btn { flex: 1 1 44%; white-space: nowrap; }
  /* GET IN TOUCH nicht umbrechen: Primaer-Button bekommt die volle erste Zeile */
  .cta-row .btn--primary { flex-basis: 100%; justify-content: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .scroll-hint, .badge-now, .g-hotspot--hint { animation: none; }
}
