/* Spastra – Webseite. Farben und Schriften wie im Spiel. */

@font-face {
  font-family: 'Comfortaa';
  src: url('/fonts/comfortaa-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/opensans-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/opensans-semibold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/opensans-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1026;
  --bg-deep: #070a1a;
  --panel: #151c3d;
  --panel-2: #1c2550;
  --line: rgba(245, 240, 230, 0.12);
  --line-strong: rgba(245, 240, 230, 0.22);
  --text: #f5f0e6;
  --dim: #b8b6c8;
  --orange: #f08a3c;
  --orange-hi: #f6a263;
  --ink: #1d1206;
  --teal: #6cc3b8;
  --gold: #f2d27a;
  --rose: #ef8a8a;
  --violet: #9b86e6;
  --radius: 18px;
  --radius-s: 10px;
  --head: 'Comfortaa', 'Nunito', 'Varela Round', system-ui, sans-serif;
  --body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'DejaVu Sans Mono', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.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;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* Sterne: zwei Kacheln mit kleinen Punkten, darüber zwei weiche Nebel wie im Spielhimmel */
  background-image:
    radial-gradient(ellipse 60% 45% at 88% 4%, rgba(108, 195, 184, 0.13), transparent 70%),
    radial-gradient(ellipse 55% 50% at 6% 38%, rgba(155, 134, 230, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 92%, rgba(240, 138, 60, 0.07), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23f5f0e6'%3E%3Ccircle cx='12' cy='30' r='1'/%3E%3Ccircle cx='80' cy='12' r='.7' opacity='.7'/%3E%3Ccircle cx='150' cy='60' r='1.2' opacity='.9'/%3E%3Ccircle cx='210' cy='22' r='.6' opacity='.6'/%3E%3Ccircle cx='40' cy='120' r='.8' opacity='.7'/%3E%3Ccircle cx='190' cy='140' r='1' opacity='.8'/%3E%3Ccircle cx='110' cy='180' r='.6' opacity='.5'/%3E%3Ccircle cx='20' cy='210' r='1.1' opacity='.8'/%3E%3Ccircle cx='230' cy='220' r='.7' opacity='.6'/%3E%3Ccircle cx='130' cy='110' r='.5' opacity='.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='370' height='370'%3E%3Cg fill='%23f2d27a'%3E%3Ccircle cx='60' cy='70' r='.9' opacity='.6'/%3E%3Ccircle cx='300' cy='40' r='1.3' opacity='.5'/%3E%3Ccircle cx='250' cy='280' r='.8' opacity='.6'/%3E%3Ccircle cx='120' cy='320' r='1' opacity='.4'/%3E%3C/g%3E%3Cg fill='%236cc3b8'%3E%3Ccircle cx='340' cy='190' r='.9' opacity='.6'/%3E%3Ccircle cx='170' cy='230' r='.7' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed, scroll, scroll;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #8fd6cc;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
}
h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}
h3 {
  font-size: 1.15rem;
}
p,
ul,
ol {
  margin: 0 0 1em;
}
strong {
  font-weight: 600;
}
code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.9em;
}
code {
  background: rgba(245, 240, 230, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
/* Tastenkappe aus dem Spiel */
kbd {
  display: inline-block;
  min-width: 2.2em;
  padding: 1px 8px 4px;
  border: 1px solid transparent;
  border-image: url('/ui/keycap.webp') 29.7% 31.25% 35.9% 31.25% fill / 8px 8px 10px 8px stretch;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8em;
  line-height: 1.5;
  text-align: center;
}
pre {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.9rem 1rem;
  overflow-x: auto;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
  overflow-wrap: normal;
}

.muted {
  color: var(--dim);
}
.muted code {
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.page {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: 64px;
  flex: 1;
}
.home {
  flex: 1;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 12px;
}

/* --- Kopf ------------------------------------------------------------------ */

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 26, 0.72);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.head-row {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: var(--dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 7px 12px;
  border-radius: 999px;
}
.nav a:hover {
  color: var(--text);
  background: rgba(245, 240, 230, 0.07);
}
/* aktuelle Seite: Reiter aus dem Spiel */
.nav a[aria-current='page'] {
  color: var(--ink);
  background: none;
  border: 1px solid transparent;
  border-image: url('/ui/tab_on.webp') 50% 19% fill / 50% 17px stretch;
  border-radius: 0;
  padding: 6px 18px 8px;
}

/* --- Knöpfe, Chips (gemalt wie im Spiel) ------------------------------------ */

/* Die Knopf-Grafiken sind 3-Slice: Höhe = Kastenhöhe + Leuchtrand (Outset), Ecken proportional dazu. */
.btn {
  --bh: 58px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: var(--bh);
  padding: 4px calc(var(--bh) * 0.62) 7px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  background: none;
  border: 1px solid transparent;
  border-image: url('/ui/btn_primary.webp') 50% 20.03% fill / 50% calc(var(--bh) * 0.74) / calc(var(--bh) * 0.175) stretch;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.btn small {
  font-weight: 600;
  font-size: 0.78rem;
  opacity: 0.85;
}
.btn:hover {
  color: var(--ink);
  filter: brightness(1.1) saturate(1.05);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(2px);
  filter: brightness(0.95);
}
.btn:focus-visible {
  outline-offset: calc(var(--bh) * 0.2);
  border-radius: 14px;
}
.btn-primary:has(small) {
  --bh: 66px;
}
.btn-secondary {
  color: var(--text);
  border-image-source: url('/ui/btn_secondary.webp');
  border-image-slice: 50% 21.97% fill;
}
.btn-secondary:hover {
  color: var(--text);
}
.btn-small {
  --bh: 46px;
  font-size: 0.95rem;
}
.btn-ghost {
  color: var(--text);
  border-image-source: url('/ui/btn_secondary.webp');
  border-image-slice: 50% 21.97% fill;
}

.chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(245, 240, 230, 0.08);
  color: var(--text);
  white-space: nowrap;
}
.chip-teal {
  background: rgba(108, 195, 184, 0.16);
  color: var(--teal);
}
.chip-orange {
  background: rgba(240, 138, 60, 0.16);
  color: var(--orange-hi);
}
.chip-rose {
  background: rgba(239, 138, 138, 0.16);
  color: var(--rose);
}
.chip-violet {
  background: rgba(155, 134, 230, 0.18);
  color: #c3b5f5;
}

/* Rahmen aus dem Spiel: Fenster (creme/orange) und Karte (grau/türkis) */
.frame {
  border: 1px solid transparent;
  border-image: url('/ui/frame_window.webp') 20.27% 18.85% fill / clamp(30px, 4vw, 44px) stretch;
  padding: clamp(30px, 4.2vw, 50px);
}
.card-frame {
  border: 1px solid transparent;
  border-image: url('/ui/frame_card.webp') 19.85% 19.07% fill / 28px stretch;
  padding: 26px 26px 22px;
}
.sock {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  background: url('/ui/socket.webp') center / 100% 100% no-repeat;
}
.sock img {
  width: 42px;
  height: 42px;
}
.kicker {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
  margin: 0 0 0.4em;
}

/* Abschnitte der Unterseiten */
.block {
  margin-top: clamp(40px, 7vw, 76px);
}
.page > .block:first-child,
.page > h1 + .block {
  margin-top: 32px;
}

/* --- Startseite ------------------------------------------------------------- */
/* Alles ist zuerst eine vollständige, statische Seite. Mit html.anim (JavaScript an, keine Bitte um
   weniger Bewegung) werden Geschichte, Spielablauf, Koloss und Galerie zu angehefteten Szenen, die
   src/site.js beim Scrollen bewegt (nur transform und opacity). */

:root {
  --head-h: 65px;
  --stage-h: calc(100vh - var(--head-h));
}
@supports (height: 100svh) {
  :root {
    --stage-h: calc(100svh - var(--head-h));
  }
}

.home {
  flex: 1;
  overflow-x: clip;
}
.home h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
}

/* Titel */
.hero {
  position: relative;
  isolation: isolate;
  min-height: var(--stage-h);
  display: flex;
  align-items: center;
  padding: 56px 0 110px;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-art {
  position: absolute;
  inset: -4% -3% -14%;
  z-index: -3;
  transform: scale(1.08);
  transform-origin: 60% 40%;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}
.sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 10, 26, 0.92) 0%, rgba(7, 10, 26, 0.78) 30%, rgba(7, 10, 26, 0.3) 56%, rgba(7, 10, 26, 0) 74%),
    linear-gradient(180deg, rgba(7, 10, 26, 0.35) 0%, rgba(7, 10, 26, 0) 20%, rgba(7, 10, 26, 0) 62%, var(--bg-deep) 100%);
}
.debris {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.deb {
  position: absolute;
  width: clamp(44px, 5.5vw, 92px);
}
.deb img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  animation: drift 11s ease-in-out infinite;
}
.deb-1 {
  top: 8%;
  left: 60%;
}
.deb-2 {
  top: 76%;
  left: 62%;
  width: clamp(34px, 3.6vw, 60px);
}
.deb-2 img {
  animation-duration: 14s;
  animation-delay: -4s;
}
.deb-3 {
  top: 9%;
  right: 5%;
  width: clamp(36px, 4vw, 66px);
}
.deb-3 img {
  animation-duration: 9s;
  animation-delay: -2s;
}
.deb-4 {
  bottom: 12%;
  right: 22%;
}
.deb-4 img {
  animation-duration: 16s;
  animation-delay: -7s;
}
.deb-5 {
  top: 38%;
  right: 2%;
  width: clamp(40px, 4.6vw, 76px);
}
.deb-5 img {
  animation-duration: 12s;
  animation-delay: -5s;
}
/* ganz vorne, groß und unscharf: Tiefe */
.deb-6 {
  bottom: -4%;
  left: 36%;
  width: clamp(90px, 11vw, 170px);
}
.deb-6 img {
  filter: blur(3px) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  opacity: 0.85;
  animation-duration: 18s;
  animation-delay: -9s;
}
@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(10px, -16px, 0) rotate(10deg);
  }
}
.hero-row {
  position: relative;
  z-index: 1;
}
.hero-text {
  max-width: 640px;
}
.hero .logo {
  position: relative;
  width: min(520px, 100%);
  margin: 0 0 16px -8px;
  line-height: 0;
  transform-origin: 20% 50%;
}
.logo-img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6));
  animation: float 7s ease-in-out infinite;
}
.logo-glow {
  position: absolute;
  left: -14%;
  top: -24%;
  width: 128%;
  height: auto;
  opacity: 0.55;
  pointer-events: none;
  animation: glow 5s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.6deg);
  }
  50% {
    transform: translate3d(0, -9px, 0) rotate(0.6deg);
  }
}
@keyframes glow {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.5;
  }
}
.pitch {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  color: var(--gold);
  margin: 0 0 0.7em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.pitch em {
  font-style: normal;
  color: var(--text);
}
.lead {
  font-size: 1.1rem;
  max-width: 62ch;
}
.hero .lead {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 26px;
  align-items: center;
  margin: 30px 0 14px;
}
.live {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 18px 0 0;
}
.live::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(108, 195, 184, 0.2);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 195, 184, 0.6);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(108, 195, 184, 0);
  }
}
.live a {
  color: var(--text);
}
.art-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(7, 10, 26, 0.65);
  padding: 3px 10px;
  border-radius: 999px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: 30px;
  height: 48px;
  margin-left: -15px;
  border: 2px solid rgba(245, 240, 230, 0.55);
  border-radius: 16px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}
.anim .hero-art,
.anim .hero-text,
.anim .deb {
  will-change: transform;
}

/* Geschichte: drei Zeilen, ein Seil, ein Gürtel */
.story {
  position: relative;
  background: var(--bg-deep);
}
.story .pin {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 14vh 0;
  overflow: hidden;
}
.story-bg {
  position: absolute;
  inset: 0;
}
.story-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transform-origin: 58% 60%;
}
.story-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(7, 10, 26, 0.2) 22%, rgba(7, 10, 26, 0.2) 70%, var(--bg-deep) 100%),
    radial-gradient(ellipse at center, rgba(7, 10, 26, 0.1) 0%, rgba(7, 10, 26, 0.65) 80%);
}
.belt-ring {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(1500px, 170vw);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}
.belt-ring .ring {
  transform-box: view-box;
  transform-origin: 0 0;
}
.tether {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.tether path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.5;
  filter: drop-shadow(0 0 6px rgba(242, 210, 122, 0.7));
}
.story-lines {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-size: clamp(2.1rem, 6.4vw, 5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.story-lines .line {
  display: block;
}
.story-lines .line:last-child {
  color: var(--gold);
  margin-top: 0.15em;
}
.story-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dim);
  background: rgba(7, 10, 26, 0.65);
  padding: 3px 10px;
  border-radius: 999px;
}
.anim .story {
  height: 330vh;
}
.anim .story .pin {
  position: sticky;
  top: var(--head-h);
  height: var(--stage-h);
  min-height: 0;
  padding: 0;
}
.anim .story .w {
  display: inline-block;
  opacity: 0;
  will-change: opacity, transform;
}
.anim .story-bg img {
  opacity: 0.75;
  will-change: transform, opacity;
}
.anim .belt-ring {
  opacity: 0;
  will-change: transform, opacity;
}
.anim .tether path {
  stroke-dashoffset: 1;
  opacity: 0;
}

/* Spielablauf: Greifen, Bauen, Forschen, Fliegen, Erkunden */
.loop {
  position: relative;
  padding: 14vh 0;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg) 30%);
}
.loop-side h2 {
  margin-bottom: 28px;
}
.lsteps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 34px;
}
.lstep {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: start;
}
.lstep h3 {
  font-size: 1.35rem;
  margin: 12px 0 6px;
}
.lstep p {
  color: var(--dim);
  margin: 0;
  max-width: 52ch;
}
.lstep-shot {
  grid-column: 1 / -1;
  margin: 12px 0 0;
}
.lstep-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.monitor,
.rail {
  display: none;
}
.monitor {
  border: 1px solid transparent;
  border-image: url('/ui/frame_window.webp') 20.27% 18.85% fill / 40px stretch;
  padding: 24px 24px 14px;
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #02040c;
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: transform, opacity;
}
.screen img:first-child {
  opacity: 1;
}
.monitor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 4px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dim);
}
.dots {
  display: flex;
  gap: 8px;
}
.dots i {
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: rgba(245, 240, 230, 0.18);
  transition: background 0.3s, width 0.3s;
}
.dots i.on {
  width: 44px;
  background: var(--orange);
}
@media (min-width: 900px) {
  .anim .loop {
    height: 560vh;
    padding: 0;
  }
  .anim .loop .pin {
    position: sticky;
    top: var(--head-h);
    height: var(--stage-h);
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .anim .loop-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
  }
  .anim .loop-side {
    position: relative;
  }
  .anim .lsteps {
    gap: 6px;
    padding-left: 22px;
  }
  .anim .lstep {
    opacity: 0.42;
    transition: opacity 0.4s, transform 0.4s;
  }
  .anim .lstep.on {
    opacity: 1;
    transform: translateX(8px);
  }
  .anim .lstep h3 {
    margin: 16px 0 4px;
  }
  .anim .lstep p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s;
  }
  .anim .lstep.on p {
    max-height: 9em;
    opacity: 1;
  }
  .anim .lstep-shot {
    display: none;
  }
  .anim .monitor {
    display: block;
  }
  .anim .lsteps-wrap {
    position: relative;
  }
  .anim .rail {
    display: block;
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 2px;
    background: rgba(245, 240, 230, 0.12);
  }
  .anim .rail-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--orange), var(--gold));
    transform: scaleY(0);
    transform-origin: top;
  }
}
@media (max-width: 899.98px) {
  .anim .loop {
    height: 520vh;
    padding: 0;
  }
  .anim .loop .pin {
    position: sticky;
    top: var(--head-h);
    height: var(--stage-h);
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .anim .loop-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 18px;
  }
  .anim .loop-side h2 {
    display: none;
  }
  .anim .monitor {
    display: block;
    padding: 16px 16px 10px;
    border-image-width: 28px;
  }
  .anim .lstep {
    display: none;
  }
  .anim .lstep.on {
    display: grid;
    animation: stepin 0.45s ease;
  }
  .anim .lstep-shot {
    display: none;
  }
}
@keyframes stepin {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Vom Schrottstück zum Koloss */
.koloss {
  position: relative;
  padding: 14vh 0;
}
.koloss-head {
  text-align: center;
}
.zoom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0;
}
.kstage {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #02040c;
}
.kstage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.kstage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 14px;
  font-size: 0.95rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(7, 10, 26, 0), rgba(7, 10, 26, 0.88));
}
.kstage figcaption b {
  display: block;
  font-family: var(--head);
  color: var(--gold);
  font-size: 1.05rem;
}
.kstage .art-note {
  top: 12px;
  bottom: auto;
}
.meter {
  max-width: 900px;
  margin: 0 auto;
}
.meter-track {
  position: relative;
  height: 30px;
  border: 1px solid transparent;
  border-image: url('/ui/trough.webp') 50% 10.03% fill / 50% 16px stretch;
}
.meter-fill {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 8px;
  bottom: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange-hi), var(--orange) 55%, var(--teal));
  box-shadow: 0 0 12px rgba(240, 138, 60, 0.6);
  transform-origin: left center;
}
.meter-tiers {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dim);
}
.meter-tiers b {
  display: block;
  font-family: var(--head);
  font-size: 1.05rem;
  color: var(--gold);
}
.anim .meter-tiers li {
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s;
}
.anim .meter-tiers li.on {
  opacity: 1;
}
.anim .meter-tiers li.on:last-of-type,
.anim .meter-tiers li.on:has(+ li:not(.on)) {
  transform: translateY(-3px);
  color: var(--text);
}
.meter-value {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--dim);
}
.kv {
  font-family: var(--head);
  font-size: 1.7rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
  text-align: right;
}
.kt {
  color: var(--text);
}
.anim .koloss {
  height: 440vh;
  padding: 0;
}
.anim .koloss .pin {
  position: sticky;
  top: var(--head-h);
  height: var(--stage-h);
  overflow: hidden;
}
.anim .koloss-wrap {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 2.2vh;
  padding-top: 3.5vh;
  padding-bottom: 3vh;
}
.anim .koloss-head h2 {
  margin: 0;
}
.anim .koloss-head,
.anim .meter {
  position: relative;
  z-index: 30;
  text-shadow: 0 2px 14px rgba(7, 10, 26, 0.95);
}
.anim .zoom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  margin: 0;
  min-height: 0;
}
.anim .kstage {
  grid-area: 1 / 1;
  width: min(100%, calc((var(--stage-h) - 290px) * 16 / 9));
  opacity: 0;
  will-change: transform, opacity;
}
.anim .kstage:first-child {
  opacity: 1;
}

/* Zähler */
.numbers {
  padding: 16vh 0 12vh;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(108, 195, 184, 0.08), transparent 70%);
}
.counters {
  list-style: none;
  padding: 0;
  margin: 40px auto 34px;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}
.counter {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.slotbox {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  background: url('/ui/slot.webp') center / 100% 100% no-repeat;
  transition: transform 0.25s;
}
.slotbox img {
  width: 62px;
  height: 62px;
}
.counter:hover .slotbox {
  background-image: url('/ui/slot_sel.webp');
  transform: translateY(-4px) rotate(-2deg);
}
.counter b {
  font-family: var(--head);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.counter > span:last-child {
  color: var(--dim);
  font-weight: 600;
}
.more a {
  font-weight: 700;
}

/* Film */
.film {
  padding: 12vh 0;
  text-align: center;
}
.film-frame {
  max-width: 1000px;
  margin: 26px auto 14px;
  padding: clamp(18px, 2.6vw, 30px);
}
.film video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #000;
}

/* Galerie */
.shots {
  position: relative;
  padding: 12vh 0 8vh;
}
.shots-head {
  margin-bottom: 18px;
}
.track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 18px max(16px, calc((100vw - 1120px) / 2 + 32px)) 26px;
  scrollbar-width: thin;
}
.card {
  flex: none;
  width: min(84vw, 560px);
  margin: 0;
  scroll-snap-align: center;
}
.card a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 50px rgba(0, 0, 0, 0.5);
}
.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s;
}
.card a:hover img {
  transform: scale(1.04);
}
.card figcaption {
  margin-top: 12px;
  font-size: 0.93rem;
  color: var(--dim);
  max-width: 56ch;
}
@media (min-width: 900px) {
  .anim .shots {
    padding: 0;
  }
  .anim .shots .pin {
    position: sticky;
    top: var(--head-h);
    height: var(--stage-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .anim .track {
    width: max-content;
    overflow: visible;
    scroll-snap-type: none;
    padding: 20px calc((100vw - min(46vw, (var(--stage-h) - 250px) * 16 / 9)) / 2);
    will-change: transform;
  }
  .anim .card {
    width: min(46vw, calc((var(--stage-h) - 250px) * 16 / 9));
    will-change: transform;
  }
}

.lightbox {
  width: min(96vw, 1400px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(3, 5, 14, 0.9);
}
.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox p {
  margin: 10px 56px 0;
  text-align: center;
  color: var(--dim);
}
.lightbox button {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -40px;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 28, 61, 0.85);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lb-prev {
  left: -8px;
}
.lb-next {
  right: -8px;
}
.lightbox .lb-close {
  top: -14px;
  right: -14px;
  margin: 0;
  font-size: 1.8rem;
}

/* Radar der offenen Spiele */
.radar-sec {
  padding: 14vh 0;
}
.radar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.radar {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle closest-side, rgba(20, 60, 70, 0.9), rgba(8, 20, 34, 0.95) 70%, #050914 100%);
  box-shadow:
    0 0 0 8px #1f2a4d,
    0 0 0 12px #3a4566,
    0 0 0 14px rgba(245, 240, 230, 0.35),
    0 0 70px rgba(108, 195, 184, 0.25),
    inset 0 0 50px rgba(0, 0, 0, 0.6);
}
.radar-rings {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle closest-side, transparent 0 calc(25% - 1.5px), rgba(108, 195, 184, 0.28) calc(25% - 1.5px) 25%),
    linear-gradient(rgba(108, 195, 184, 0.18), rgba(108, 195, 184, 0.18)) center / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(108, 195, 184, 0.18), rgba(108, 195, 184, 0.18)) center / 100% 1px no-repeat;
}
.sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(108, 195, 184, 0.04) 250deg, rgba(108, 195, 184, 0.42) 357deg, rgba(190, 255, 245, 0.8) 359.5deg, transparent 360deg);
  animation: sweep 4s linear infinite;
}
@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}
.blips {
  position: absolute;
  inset: 0;
}
.blip {
  position: absolute;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange-hi);
  box-shadow: 0 0 14px rgba(240, 138, 60, 0.9);
  animation: blip 4s linear infinite;
}
.blip.other {
  background: #c3b5f5;
  box-shadow: 0 0 14px rgba(155, 134, 230, 0.9);
}
.blip-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(7, 10, 26, 0.85);
  padding: 2px 8px;
  border-radius: 6px;
  animation: none;
}
@keyframes blip {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
  25% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
}
.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(108, 195, 184, 0.25), 0 0 20px rgba(108, 195, 184, 0.8);
}
.radar-status {
  color: var(--dim);
  max-width: 50ch;
}
.radar-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 12px;
}
.radar-list li {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.radar-list li.other-version {
  opacity: 0.75;
}
.rl-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.05rem;
}
.rl-head strong {
  overflow-wrap: anywhere;
}
.rl-players {
  font-family: var(--head);
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.rl-meta {
  color: var(--dim);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.radar-page {
  width: min(100%, 340px);
  margin: 10px auto 34px;
}

/* Mit Freunden */
.friends {
  padding: 12vh 0;
}
.fsteps {
  list-style: none;
  padding: 0;
  margin: 30px 0 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.fsteps li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fsteps h3 {
  margin: 12px 0 4px;
  font-size: 1.25rem;
}
.fsteps p {
  margin: 0;
  color: var(--dim);
}
.fsteps strong {
  color: var(--text);
}
.server-note {
  max-width: 820px;
  padding: 16px 22px;
  border-radius: 14px;
  background: rgba(108, 195, 184, 0.07);
  box-shadow: inset 0 0 0 1px rgba(108, 195, 184, 0.25);
}
.server-note summary {
  cursor: pointer;
  font-family: var(--head);
  font-weight: 700;
}
.server-note p {
  margin: 12px 0;
}

/* Zum Schluss: holen */
.cta {
  padding: 8vh 0 16vh;
}
.cta-panel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.cta-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.cta-panel .actions {
  justify-content: center;
}
.small {
  font-size: 0.88rem;
}

/* schwebende Download-Leiste */
.dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
}
.dock.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Einblenden */
.anim [data-reveal],
.anim :is(.tier, .zone, .release, .platform, .slot, .check li) {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.anim [data-reveal].in,
.anim :is(.tier, .zone, .release, .platform, .slot, .check li).in {
  opacity: 1;
  transform: none;
}
.anim [data-reveal='2'] {
  transition-delay: 0.08s;
}
.anim [data-reveal='3'] {
  transition-delay: 0.16s;
}
.anim [data-reveal='4'] {
  transition-delay: 0.24s;
}

@media (max-width: 860px) {
  .hero {
    align-items: flex-end;
    padding: 18vh 0 70px;
  }
  .hero .lead {
    font-size: 1rem;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 10, 26, 0.1) 0%, rgba(7, 10, 26, 0.15) 30%, rgba(7, 10, 26, 0.86) 58%, var(--bg-deep) 100%);
  }
  .hero-art img {
    object-position: 72% 30%;
  }
  .hero .logo {
    width: min(420px, 88vw);
  }
  .deb-1 {
    top: 8%;
    left: 6%;
  }
  .deb-2 {
    top: 30%;
    left: 70%;
  }
  .deb-4,
  .deb-6 {
    display: none;
  }
  .radar-grid,
  .fsteps {
    grid-template-columns: minmax(0, 1fr);
  }
  .radar {
    width: min(100%, 360px);
  }
  .counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }
  .zoom {
    grid-template-columns: minmax(0, 1fr);
  }
  .meter-tiers span {
    display: none;
  }
  .scroll-cue {
    display: none;
  }
}
@media (max-width: 640px) {
  :root {
    --head-h: 0px;
  }
  /* Platz für die schwebende Download-Leiste in den angehefteten Szenen */
  .anim .koloss-wrap,
  .anim .loop .pin {
    padding-bottom: 76px;
  }
  .anim .kstage {
    width: 100%;
  }
  .kstage figcaption {
    position: static;
    padding: 10px 14px 12px;
    background: var(--panel);
    font-size: 0.88rem;
  }
  .anim .kstage figcaption {
    position: absolute;
    background: linear-gradient(180deg, rgba(7, 10, 26, 0), rgba(7, 10, 26, 0.92));
    padding-top: 30px;
  }
  .slotbox {
    width: 86px;
    height: 86px;
  }
  .slotbox img {
    width: 52px;
    height: 52px;
  }
  .dock {
    left: 50%;
    right: auto;
    bottom: 14px;
    transform: translate(-50%, 24px);
  }
  .dock.show {
    transform: translate(-50%, 0);
  }
  .actions .btn {
    width: 100%;
  }
  .cta-panel {
    padding: 30px 22px;
  }
}

/* --- Download -------------------------------------------------------------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0 12px;
}
/* schmal: Karten untereinander, Knöpfe dürfen umbrechen und nie über den Rand ragen */
@media (max-width: 720px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
  .platform {
    padding: 24px 20px 12px;
  }
  .btn {
    white-space: normal;
    max-width: 100%;
  }
  .btn small {
    overflow-wrap: anywhere;
  }
  .platform .btn {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }
}
.platform {
  border: 1px solid transparent;
  border-image: url('/ui/frame_card.webp') 19.85% 19.07% fill / 28px stretch;
  padding: 28px 28px 16px;
  min-width: 0;
}
.platform h3 {
  font-size: 1.5rem;
  margin-bottom: 0.1em;
}
.platform .btn {
  margin: 8px 0 10px;
}
.file-info {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.file-info code {
  background: none;
  padding: 0;
  color: var(--dim);
}
.platform ol {
  padding-left: 1.3em;
  color: var(--dim);
}
.platform ol strong,
.platform ol code {
  color: var(--text);
}
.platform li {
  margin-bottom: 0.5em;
}
.platform pre {
  margin: 8px 0 4px;
}
.hash {
  border-top: 1px solid var(--line);
  padding: 12px 0 4px;
  margin-top: 8px;
}
.hash summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--dim);
}
.hash .sum {
  display: block;
  word-break: break-all;
  font-size: 0.82rem;
  padding: 8px 10px;
  margin-top: 10px;
}
.facts {
  padding-left: 1.2em;
}
.facts li {
  margin-bottom: 0.45em;
}
.older {
  padding-left: 1.2em;
}

/* --- Neuigkeiten ----------------------------------------------------------- */

.prose {
  max-width: 74ch;
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose li::marker {
  color: var(--orange);
}
.release {
  max-width: 880px;
  margin-top: 40px;
  padding: 30px clamp(22px, 3vw, 38px) 14px;
  border: 1px solid transparent;
  border-image: url('/ui/frame_card.webp') 19.85% 19.07% fill / 28px stretch;
}
.release.latest {
  border-color: rgba(108, 195, 184, 0.45);
  box-shadow: 0 0 60px rgba(108, 195, 184, 0.08);
}
.release header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}
.release header h2 {
  margin: 0;
}
.release .date {
  margin: 0;
  color: var(--dim);
  font-weight: 600;
}
.release h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-top: 1.2em;
}

/* --- Fortschritt ----------------------------------------------------------- */

.slots {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
/* wie ein Inventarplatz im Spiel: Bezeichnung oben, Stapelzahl unten rechts */
/* Inventarplatz aus dem Spiel */
.slot {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-image: url('/ui/slot.webp') 26% fill / 24px stretch;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slot-label {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--dim);
}
.slot-count {
  align-self: flex-end;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums;
}
.slot:nth-child(5n + 1) .slot-count {
  color: var(--orange-hi);
}
.slot:nth-child(5n + 3) .slot-count {
  color: var(--teal);
}

.tiers {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.tier {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) 76px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-image: url('/ui/frame_card.webp') 19.85% 19.07% fill / 22px stretch;
}
.tier-no {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--panel-2);
  font-family: var(--head);
  font-weight: 700;
  color: var(--gold);
}
.tier-main h3 {
  margin: 0;
  font-size: 1.05rem;
}
.tier-main p {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 0.93rem;
}
.tier-bar {
  width: 100%;
  height: 10px;
  display: block;
}
.tier-bar .track {
  fill: rgba(245, 240, 230, 0.08);
}
.tier-bar .fill {
  fill: var(--orange);
}
.tier:last-child .tier-bar .fill {
  fill: var(--teal);
}
.tier-value {
  text-align: right;
  font-weight: 600;
  color: var(--dim);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.belt {
  display: block;
  width: 100%;
  margin: 22px 0 8px;
}
.belt rect.z1 {
  fill: #f2d27a;
}
.belt rect.z2 {
  fill: #f08a3c;
}
.belt rect.z3 {
  fill: #6cc3b8;
}
.belt rect.z4 {
  fill: #9b86e6;
}
.belt text {
  fill: var(--dim);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
}
.zones {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.zone {
  border-top: 4px solid var(--gold);
  padding-top: 12px;
}
.zone-2 {
  border-color: var(--orange);
}
.zone-3 {
  border-color: var(--teal);
}
.zone-4 {
  border-color: var(--violet);
}
.zone h3 {
  margin-bottom: 0.1em;
}
.zone p {
  margin: 0 0 0.35em;
  font-size: 0.95rem;
}
.zone-range {
  font-weight: 600;
  color: var(--gold);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  margin-bottom: 1em;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.97rem;
}
th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--panel-2);
  font-weight: 600;
  color: var(--dim);
}
tbody tr:last-child > * {
  border-bottom: 0;
}
tbody th {
  font-weight: 600;
}

.roadmap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}
.road-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.road-head.done {
  border-color: var(--teal);
}
.road-head.doing {
  border-color: var(--orange);
}
.road-planned h3:not(.road-head) {
  font-size: 1rem;
  color: var(--gold);
  margin: 18px 0 8px;
}
.check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.7em;
  font-size: 0.95rem;
  line-height: 1.5;
}
.check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-sizing: border-box;
}
.check li.done::before {
  width: 20px;
  height: 20px;
  top: 1px;
  border-radius: 0;
  background: url('/ui/check_on.webp') center / contain no-repeat;
}
.check li.doing::before {
  border: 2px solid var(--orange);
  background: linear-gradient(90deg, var(--orange) 50%, transparent 50%);
}
.check li.todo::before {
  width: 20px;
  height: 20px;
  top: 1px;
  border-radius: 0;
  background: url('/ui/check_off.webp') center / contain no-repeat;
  opacity: 0.8;
}
.check li.todo {
  color: var(--dim);
}
.stand {
  margin-top: 48px;
  color: var(--dim);
  font-size: 0.95rem;
}

/* --- Offene Spiele --------------------------------------------------------- */

.servers {
  margin: 28px 0 8px;
}
#servers-status {
  font-weight: 600;
}
.server-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 14px;
}
.server {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid transparent;
  border-image: url('/ui/frame_card.webp') 19.85% 19.07% fill / 26px stretch;
}
.server.other-version {
  opacity: 0.8;
}
.server h3 {
  margin: 0 0 2px;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
.server .world {
  margin: 0 0 10px;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.server .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.server .side {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}
.players {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
}
.players small {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dim);
}
.addr {
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dim);
}
.addr code.join-code {
  white-space: nowrap;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.addr code {
  font-size: 0.95rem;
  padding: 6px 10px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.copy {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
}
.copy:hover {
  border-color: var(--teal);
}
.copy.done {
  color: var(--ink);
  background: var(--teal);
  border-color: var(--teal);
}
.since {
  font-size: 0.85rem;
  color: var(--dim);
}
.empty {
  padding: 30px clamp(18px, 3vw, 32px);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: left;
}
.empty h2 {
  font-size: 1.35rem;
}
.empty p {
  color: var(--dim);
  max-width: 64ch;
}
.empty p:last-child {
  margin-bottom: 0;
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.plain {
  padding-left: 1.2em;
}
.plain li {
  margin-bottom: 0.5em;
}

/* --- Rechtliches ----------------------------------------------------------- */

.legal h2 {
  margin-top: 1.6em;
  font-size: 1.35rem;
}
.remark {
  font-size: 1.1rem;
  padding: 16px 20px;
  border-radius: var(--radius-s);
  background: rgba(108, 195, 184, 0.08);
  border-left: 3px solid var(--teal);
}
.legal .address {
  margin-bottom: 0.3em;
}

/* --- Fuß ------------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 26, 0.6);
  padding: 22px 0;
  font-size: 0.92rem;
  color: var(--dim);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}
.foot-row p {
  margin: 0;
}
.foot-row nav {
  display: flex;
  gap: 18px;
}
.foot-row a {
  color: var(--text);
}

/* --- schmal ---------------------------------------------------------------- */

@media (max-width: 1000px) {
  .roadmap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .road-planned {
    grid-column: 1 / -1;
  }
  .zones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
  .tier {
    grid-template-columns: 40px minmax(0, 1fr) 64px;
  }
  .tier-bar {
    grid-column: 2 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .head-row {
    padding-top: 10px;
    padding-bottom: 8px;
    gap: 6px;
  }
  .nav {
    margin-left: -10px;
    width: calc(100% + 10px);
    gap: 2px;
  }
  .nav a {
    white-space: nowrap;
    padding: 5px 10px;
  }
  .site-head {
    position: static;
  }
  .roadmap,
  .zones {
    grid-template-columns: minmax(0, 1fr);
  }
  .server {
    grid-template-columns: minmax(0, 1fr);
  }
  .server .side {
    justify-items: start;
    text-align: left;
  }
}

/* Inventarplätze: 8 × 2 breit, 4 × 4 mittel, 2 × 8 schmal (dann quer) */
@media (max-width: 1000px) {
  .slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .slot {
    aspect-ratio: 5 / 3;
  }
}
@media (max-width: 640px) {
  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .slot {
    aspect-ratio: auto;
    min-height: 78px;
    padding: 10px 12px 8px;
  }
  .slot-count {
    font-size: 1.55rem;
  }
  .belt text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* --- Testberichte ------------------------------------------------------------ */

.ai-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 880px;
  margin: 22px 0 30px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(155, 134, 230, 0.12);
  box-shadow: inset 0 0 0 1px rgba(155, 134, 230, 0.45);
}
.ai-notice img {
  flex: none;
  width: 40px;
  height: 40px;
}
.ai-notice p {
  margin: 0;
  color: var(--text);
}
.ai-notice strong {
  color: #c9bcf7;
}

/* Wertungsring */
.ring {
  --ring-c: var(--gold);
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 108px;
  height: 108px;
  flex: none;
}
.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-track {
  fill: rgba(7, 10, 26, 0.6);
  stroke: rgba(245, 240, 230, 0.12);
  stroke-width: 10;
}
.ring-fill {
  fill: none;
  stroke: var(--ring-c);
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--ring-c));
  transition: stroke-dashoffset 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ring b {
  position: relative;
  font-family: var(--head);
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ring small {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dim);
  margin-top: 0.9em;
}
.ring-xl {
  width: 168px;
  height: 168px;
}
.ring-xl b {
  font-size: 3.2rem;
}
.ring-xl small {
  font-size: 0.85rem;
  margin-top: 1.6em;
}
.score-top {
  --ring-c: var(--teal);
}
.score-good {
  --ring-c: var(--gold);
}
.score-ok {
  --ring-c: var(--orange);
}
.score-low {
  --ring-c: var(--rose);
}
.score-none {
  --ring-c: rgba(245, 240, 230, 0.3);
}

.award {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 210, 122, 0.25), rgba(240, 138, 60, 0.18));
  box-shadow: inset 0 0 0 1px rgba(242, 210, 122, 0.6);
  font-family: var(--head);
  font-weight: 700;
  color: var(--gold);
}
.award img {
  width: 28px;
  height: 28px;
}

/* Übersicht */
.rcards {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 22px;
}
.rcard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px 28px;
  align-items: start;
}
.rcard h2 {
  font-size: 1.5rem;
  margin: 6px 0 6px;
}
.rcard h2 a {
  color: var(--text);
  text-decoration: none;
}
.rcard h2 a:hover {
  color: var(--gold);
}
.rmeta {
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
  font-weight: 600;
}
.rsummary {
  color: var(--text);
  max-width: 70ch;
}
.score-chart {
  max-width: 640px;
  margin: 10px 0 12px;
}
.score-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.score-chart .gl {
  stroke: rgba(245, 240, 230, 0.1);
}
.score-chart .yl {
  fill: var(--dim);
  font-size: 14px;
  text-anchor: end;
}
.score-chart .area {
  fill: rgba(108, 195, 184, 0.12);
}
.score-chart .line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.anim .score-chart:not(.in) .line {
  stroke-dashoffset: 1;
}
.anim .score-chart .line {
  transition: stroke-dashoffset 1.6s ease 0.2s;
}
.score-chart .pt circle {
  fill: var(--gold);
  stroke: var(--bg);
  stroke-width: 3;
}
.score-chart .vl {
  fill: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
}
.score-chart .xl {
  fill: var(--dim);
  font-size: 14px;
  text-anchor: middle;
}
.score-chart figcaption {
  color: var(--dim);
  font-size: 0.9rem;
}
.reviews-empty {
  max-width: 760px;
}

/* Einzelner Bericht */
.review-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
}
.review-head h1 {
  margin-bottom: 0.3em;
}
.review-head .kicker a {
  color: var(--teal);
}
.review-score {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.review-body {
  max-width: 78ch;
}
.review-body h2 {
  margin-top: 1.6em;
  font-size: 1.6rem;
}
.review-body p {
  line-height: 1.7;
}
blockquote {
  margin: 1.6em 0;
}
blockquote.pull {
  position: relative;
  padding: 10px 0 10px 28px;
  border-left: 4px solid var(--orange);
}
blockquote.pull p {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  color: var(--gold);
}
blockquote.pull cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: var(--dim);
}
blockquote.notice {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(155, 134, 230, 0.12);
  box-shadow: inset 0 0 0 1px rgba(155, 134, 230, 0.45);
}
blockquote.notice p {
  margin: 0;
}
.procon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 1.8em 0;
  max-width: none;
}
.pc {
  padding: 18px 22px 8px;
  border-radius: 14px;
}
.pc h2 {
  margin: 0 0 8px !important;
  font-size: 1.2rem !important;
}
.pc ul {
  padding-left: 0;
  list-style: none;
}
.pc li {
  position: relative;
  padding-left: 30px;
}
.pc li::before {
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  color: var(--ink);
}
.pc-pro {
  background: rgba(108, 195, 184, 0.1);
  box-shadow: inset 0 0 0 1px rgba(108, 195, 184, 0.45);
}
.pc-pro h2 {
  color: var(--teal);
}
.pc-pro li::before {
  content: '+';
  background: var(--teal);
}
.pc-con {
  background: rgba(239, 138, 138, 0.1);
  box-shadow: inset 0 0 0 1px rgba(239, 138, 138, 0.45);
}
.pc-con h2 {
  color: var(--rose);
}
.pc-con li::before {
  content: '−';
  background: var(--rose);
}
.pc li::marker {
  content: '';
}
.verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px 34px;
  align-items: center;
  margin: 2.2em 0;
  max-width: 900px;
}
.verdict-score {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.verdict-text h2 {
  margin-top: 0 !important;
}
.subscores {
  list-style: none;
  padding: 0 !important;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.subscores li {
  display: grid;
  grid-template-columns: minmax(90px, 0.6fr) minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  margin: 0 !important;
  font-weight: 600;
}
.subscores li::marker {
  content: '';
}
.subscores .bar {
  width: 100%;
  height: 10px;
}
.subscores .track {
  fill: rgba(245, 240, 230, 0.1);
}
.subscores .fill {
  fill: var(--ring-c);
  transform-origin: left center;
  transform-box: fill-box;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}
.anim .verdict:not(.in) .subscores .fill {
  transform: scaleX(0);
}
.subscores b {
  font-family: var(--head);
  color: var(--text);
  text-align: right;
}
.rfig {
  margin: 1.8em 0;
}
.rfig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.rfig figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--dim);
}
.review-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.review-teaser {
  display: flex;
  gap: 26px;
  align-items: center;
  max-width: 820px;
}
.review-teaser h2 {
  margin-bottom: 0.3em;
}
.rt-ring {
  flex: none;
}
.review-home {
  padding: 4vh 0 10vh;
}
.review-home .review-teaser {
  max-width: 900px;
  margin: 0 auto;
}
.review-home h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.news-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: -2px 0 10px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .rcard,
  .review-head,
  .verdict {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-score,
  .verdict-score {
    justify-items: start;
  }
  .procon {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-teaser {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Neu in dieser Version (Startseite) --------------------------------------- */

.news-sec {
  padding: 12vh 0 6vh;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
}
.news-card figure {
  margin: 0 0 8px;
  border-radius: 10px;
  overflow: hidden;
}
.news-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.news-card h3 {
  margin: 4px 0 2px;
  font-size: 1.12rem;
}
.news-card p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}
@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Lizenzen: breitere Tabellen für die Quellenlisten */
.prose.licenses {
  max-width: 1040px;
}
.licenses p,
.licenses ul {
  max-width: 78ch;
}
.licenses table {
  font-size: 0.88rem;
  min-width: 720px;
}
.licenses pre {
  font-size: 0.8rem;
  max-width: 78ch;
}
