/* Nachklang, Welt: „Akte 1994-0371“. Weinroter Tisch, Aktendeckel, Tee und Schatten wie auf dem Cover. */
@font-face { font-family: "Elite NK"; font-style: normal; font-weight: 400; font-display: swap; src: url(special-elite.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono NK"; font-style: normal; font-weight: 400; font-display: swap; src: url(plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono NK"; font-style: normal; font-weight: 500; font-display: swap; src: url(plex-mono-500.woff2) format("woff2"); }
:root {
  --tisch: #5a1015; --tief: #1d0709; --deckel: #e3c28c; --papier: #efdcb4; --tinte: #24120d; --tee: #ab460d;
  --mono: "Plex Mono NK", "Courier New", monospace; --k: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #2c080b; color: var(--papier); font-family: var(--mono);
  -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; touch-action: none;
  /* Leiste und ✕ (aus /assets/welt/leiste.js) teilen sich die Farben */
  --nk-leiste-farbe: #e8cf9f; --nk-leiste-spur: rgba(232, 207, 159, .24); --nk-leiste-grund: rgba(29, 7, 9, .55);
  --nk-leiste-knopf: #e8cf9f; --nk-leiste-knopf-farbe: #2a0c0e; --nk-leiste-schrift: "Plex Mono NK", monospace; --nk-leiste-hoehe: 3px;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--deckel); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.raum { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
body.z-zieht .raum { cursor: grabbing; }
body.z-ziel .raum { cursor: pointer; }

/* Vor dem Start: unten ein Aktenzettel mit dem Knopf */
.plakat {
  position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 16px calc(30px * var(--k) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: calc(14px * var(--k)); flex-wrap: wrap; transition: opacity .9s linear;
}
.plakat__text {
  margin: 0; padding: .55em .95em; background: rgba(29, 7, 9, .72); color: #f1dfbd; border-radius: 3px;
  font: 400 calc(14.5px * var(--k))/1.35 var(--mono); letter-spacing: .01em;
}
.los {
  border: 0; border-radius: 3px; padding: calc(13px * var(--k)) calc(30px * var(--k)); cursor: pointer;
  background: var(--deckel); color: var(--tinte); font: 500 calc(17px * var(--k))/1 var(--mono); letter-spacing: .06em;
  box-shadow: 0 1px 0 rgba(255, 244, 220, .6) inset, 5px 7px 0 rgba(20, 4, 6, .45);
  transition: transform .15s, box-shadow .15s;
}
.los:hover { transform: translate(-1px, -2px); box-shadow: 0 1px 0 rgba(255, 244, 220, .6) inset, 7px 10px 0 rgba(20, 4, 6, .42); }
.los:active { transform: translate(2px, 3px); box-shadow: 0 1px 0 rgba(255, 244, 220, .6) inset, 2px 3px 0 rgba(20, 4, 6, .5); }
body:not([data-phase="warten"]) .plakat { opacity: 0; pointer-events: none; }

/* Standpunkte */
.standpunkte {
  position: fixed; z-index: 3; left: 50%; bottom: calc(14px * var(--k) + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: calc(4px * var(--k));
  padding: 4px; border-radius: 4px; background: rgba(29, 7, 9, .78);
}
.standpunkte button {
  border: 0; border-radius: 3px; padding: calc(8px * var(--k)) calc(13px * var(--k)); cursor: pointer; background: none; color: #ecd6ab;
  font: 500 calc(13px * var(--k))/1 var(--mono); letter-spacing: .02em; white-space: nowrap;
}
.standpunkte button[aria-pressed="true"] { background: var(--deckel); color: var(--tinte); }
.standpunkte button:hover { background: rgba(232, 207, 159, .14); }
.standpunkte button[aria-pressed="true"]:hover { background: var(--deckel); }
.hinweis {
  position: fixed; z-index: 4; left: 50%; bottom: calc(72px * var(--k) + env(safe-area-inset-bottom)); translate: -50% 0; margin: 0; max-width: calc(100vw - 32px); width: max-content;
  padding: 9px 15px; border-radius: 3px; background: rgba(29, 7, 9, .86); color: #f1dfbd; text-align: center;
  font: 400 calc(13.5px * var(--k))/1.4 var(--mono); opacity: 0; transition: opacity .6s linear; pointer-events: none;
}
.hinweis.an { opacity: 1; }

/* Ende: der Titel steht wieder getippt auf der Akte, darunter ein Weg zurück */
.ende { position: fixed; z-index: 3; left: 0; right: 0; bottom: calc(76px * var(--k) + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; animation: ende 3s linear both; }
.ende > * { pointer-events: auto; }
@keyframes ende { from { opacity: 0; } to { opacity: 1; } }
.ende__weg {
  display: inline-block; border-radius: 3px; padding: calc(13px * var(--k)) calc(26px * var(--k));
  text-decoration: none; background: var(--deckel); color: var(--tinte); font: 500 calc(16px * var(--k))/1 var(--mono); letter-spacing: .04em;
  box-shadow: 0 1px 0 rgba(255, 244, 220, .6) inset, 5px 7px 0 rgba(20, 4, 6, .45);
}

.ohne-gl, .ohne-js {
  position: fixed; inset: auto 16px 16px; z-index: 20; margin: 0; padding: 16px 18px; border-radius: 4px; background: #1d0709; color: #f1dfbd;
  font: 400 15px/1.45 var(--mono);
}
.ohne-gl p { margin: 0; }
.ohne-gl .ende__weg { margin-top: 12px; box-shadow: none; }
.ohne-js a { color: #f1dfbd; }

@media (max-width: 560px) {
  .standpunkte button { padding: 8px 9px; font-size: 12px; }
  .hinweis { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .plakat__text { font-size: 13px; }
}

/* Info-Fenster (ⓘ in der Leiste): ein weiteres Blatt aus der Akte, vergilbtes Papier und braune Tinte,
   der Titel getippt wie auf dem Aktendeckel; oben rechts ein Teerand wie auf dem Cover. */
body {
  --nk-info-grund: #efdcb4; --nk-info-farbe: #24120d; --nk-info-leise: #53422f; --nk-info-linie: rgba(36, 18, 13, .1);
  --nk-info-akzent: #5a1015; --nk-info-schrift: "Plex Mono NK", "Courier New", monospace; --nk-info-schleier: rgba(29, 7, 9, .45);
  --nk-info-titel-groesse: 44px; --nk-info-titel-zeilen: 2; --nk-info-titel-max: 10.5vw; --nk-info-titel-gewicht: 400;
  --nk-info-muster: radial-gradient(circle at calc(100% - 64px) 118px, transparent 0 44px, rgba(171, 70, 13, .2) 44px 46px, rgba(171, 70, 13, .08) 46px 48px, transparent 49px);
}
.nk-info__titel { font-family: "Elite NK", "Courier New", monospace; letter-spacing: 0; white-space: nowrap; }
/* Plex Mono läuft breit und groß: optisch an die übrigen Blätter angleichen, das Zeilenraster bleibt */
.nk-info { font-size: 15px; } .nk-info__text { font-size: 16px; }
