/* NEOWARD – Webseite. Farben wie im Spiel (seit 4.99.548): Navy und kühles Grau, Holo-Cyan für alles Eigene;
   Magenta nur sparsam für die Gegner (22.11.: weniger Magenta, wie in den aktuellen Screenshots) */
:root {
  --bg: #0a0f1e; --bg2: #111a33; --panel: rgba(18, 28, 58, 0.72);
  --text: #e8ecf5; --muted: #8f9ab3; --line: rgba(34, 216, 255, 0.18);
  --cyan: #22d8ff; --magenta: #ff289f; --steel: #9fb2c8;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 216, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(159, 178, 200, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; letter-spacing: 0.32em; font-size: 18px; color: var(--cyan); text-decoration: none;
  text-shadow: 0 0 12px rgba(34, 216, 255, 0.55); }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 14px; }
nav a:first-child { margin-left: 0; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover, nav a:hover { color: var(--text); }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; letter-spacing: 0.02em; }
h2 { font-size: 18px; margin: 32px 0 6px; color: var(--cyan); font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
section.lang { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 24px; }

/* Startseite */
.hero { text-align: center; padding: 48px 0 40px; }
.hero .title { font-size: clamp(40px, 11vw, 76px); font-weight: 800; letter-spacing: 0.22em; margin: 0 0 12px;
  padding-left: 0.22em; color: #fff; text-shadow: 0 0 18px rgba(34, 216, 255, 0.7), 0 0 48px rgba(34, 216, 255, 0.35); }
.hero .line { width: 120px; height: 2px; margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.hero .tag { font-size: 18px; max-width: 560px; margin: 0 auto 12px; }
.hero .tag.en { font-size: 15px; color: var(--muted); }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted);
  background: var(--panel); }
.badge.hot { border-color: rgba(34, 216, 255, 0.55); color: #d6f7ff; box-shadow: 0 0 14px rgba(34, 216, 255, .18); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px;
  margin-top: 32px; text-align: center; }

footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer { align-items: center; }
footer img.studio { height: 54px; width: auto; opacity: 0.85; margin-right: 6px; }
@media (max-width: 480px) { nav a { margin-left: 0; margin-right: 14px; } h1 { font-size: 25px; } }

/* ===== Startseite (neu): Logo, Parallax-Held, Gizmo als Begleiterin ===== */
html { scroll-behavior: smooth; }
body.home { overflow-x: hidden; }
.home main { max-width: 1040px; padding-top: 0; }
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px 20px; margin: 0; border: 0; background: rgba(7, 11, 26, 0); transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(7, 11, 26, 0.86); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.top .brand img { display: block; height: 34px; width: auto; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s;
  filter: drop-shadow(0 0 8px rgba(34, 216, 255, .5)); }
.top.solid .brand img { opacity: 1; transform: none; }
.top nav a { color: var(--text); opacity: .75; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.top nav a:hover { opacity: 1; color: var(--cyan); }

.home .hero { position: relative; padding: 0; text-align: center; overflow: hidden; }
.hero-art { display: block; position: relative; will-change: transform; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-in { position: relative; max-width: 760px; margin: -40px auto 0; padding: 0 16px 24px; }
.kicker { margin: 0 0 18px; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; font-size: 13px; color: var(--cyan);
  animation: rise 1s .15s ease-out both; }
.home .hero .tag { font-size: 18px; animation: rise 1s .3s ease-out both; }
.home .hero .tag.en { color: #b9c3da; }
.home .badges { animation: rise 1s .45s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.block { padding: 72px 0 8px; opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.block.seen { opacity: 1; transform: none; }
.block h2 { font-size: clamp(26px, 4.5vw, 38px); color: #fff; margin: 0 0 16px; font-weight: 800; letter-spacing: .02em; }
.block h2 span { display: inline-block; font-size: 14px; color: var(--cyan); letter-spacing: .2em; margin-right: 14px;
  vertical-align: middle; font-weight: 700; }
.lead { font-size: 18px; max-width: 720px; }
.lead.en { font-size: 15px; color: var(--muted); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.feat { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-4px); border-color: rgba(34, 216, 255, .55); box-shadow: 0 10px 40px rgba(34, 216, 255, .12); }
.feat img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.feat figcaption { padding: 14px 16px 16px; font-size: 14px; color: var(--muted); }
.feat figcaption b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.feat figcaption i { display: block; font-style: normal; font-size: 13px; opacity: .8; margin-top: 2px; }

.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.world { position: relative; border-radius: 12px; padding: 26px 12px 18px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(159, 178, 200, var(--k)), rgba(7, 11, 26, .2) 70%), var(--panel);
  border: 1px solid color-mix(in srgb, var(--w) 45%, transparent); }
.world b { display: block; font-size: 40px; line-height: 1; color: var(--w); text-shadow: 0 0 16px var(--w); margin-bottom: 10px; }
.world span { font-size: 13px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

.cta { text-align: center; padding: 40px 20px; border-radius: 14px; border: 1px solid rgba(34, 216, 255, .35);
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 216, 255, .14), transparent 70%), var(--panel); }
.cta img { width: min(360px, 70vw); height: auto; filter: drop-shadow(0 0 14px rgba(34, 216, 255, .5)); }
.cta p { font-size: 17px; margin: 14px 0 0; }
.small { font-size: 14px; }

/* Gizmo: schwebt mit, bleibt am Rand stehen, spricht je Abschnitt */
.gizmo { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 150px; pointer-events: none; opacity: 0;
  visibility: hidden; transition: opacity .5s, visibility .5s; }
.gizmo.on { opacity: 1; visibility: visible; }
.gizmo img { display: block; width: 100%; height: auto; animation: hover 4.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(34, 216, 255, .35)); }
.gizmo .bubble { position: absolute; right: 120px; bottom: 112px; width: 230px; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  background: rgba(10, 18, 42, .92); border: 1px solid rgba(34, 216, 255, .5); color: var(--text); font-size: 13px; line-height: 1.45;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .35s, transform .35s; }
.gizmo .bubble.on { opacity: 1; transform: none; }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

@media (max-width: 760px) {
  .feats { grid-template-columns: 1fr; }
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .top .brand img { height: 22px; }
  .home main { padding-bottom: 150px; }
  .hero-in { margin-top: -24px; }
  .gizmo { width: 96px; right: 10px; bottom: 10px; }
  .gizmo .bubble { right: 70px; bottom: 76px; width: 190px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gizmo img, .kicker, .home .hero .tag, .home .badges { animation: none; }
  .block { opacity: 1; transform: none; transition: none; }
}

/* ===== 22.11. „krasser“: Vollbild-Held, Sternenfeld, Zielkreuz, Zahlen, Laufband, Welle, Bildbetrachter ===== */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 40; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--cyan)); box-shadow: 0 0 10px var(--cyan); }

/* Held füllt den Schirm */
.home .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
.home .hero .hero-art { position: relative; height: min(46vw, 100svh - 300px); min-height: 360px; overflow: hidden; }
.home .hero .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: zoom 18s ease-out both, lit 1.8s ease-out both; }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 40%, rgba(10, 15, 30, .65)); }
.hero-art::after { z-index: 1; height: 30%; }
.home .hero { justify-content: center; }
.hero-in { z-index: 2; margin-top: 0; padding-bottom: 28px; }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes lit { from { filter: brightness(.25) saturate(1.4); } to { filter: none; } }
.sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 18%; left: -30%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(34, 216, 255, .16), rgba(255, 255, 255, .22), rgba(34, 216, 255, .16), transparent);
  animation: sweep 7s 1.2s ease-in-out infinite; }
@keyframes sweep { 0% { left: -30%; } 35%, 100% { left: 130%; } }
.home .hero .tag { text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.down { display: inline-block; margin-top: 26px; width: 26px; height: 42px; border: 2px solid rgba(34, 216, 255, .6); border-radius: 14px; position: relative;
  animation: rise 1s .7s ease-out both; }
.down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan);
  animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Laufband */
.ticker { position: relative; overflow: hidden; margin: 8px 0 0; padding: 14px 0; transform: skewY(-2deg);
  background: linear-gradient(90deg, rgba(34, 216, 255, .1), rgba(34, 216, 255, .22), rgba(34, 216, 255, .1));
  border-block: 1px solid rgba(34, 216, 255, .45); box-shadow: 0 0 40px rgba(34, 216, 255, .15); }
.ticker .run { display: flex; width: max-content; animation: run 38s linear infinite; }
.ticker span { white-space: nowrap; font-weight: 800; text-transform: uppercase; letter-spacing: .24em; font-size: 15px; color: #e6fbff; padding: 0 26px; }
.ticker span::after { content: "◆"; color: var(--cyan); margin-left: 52px; font-size: 10px; vertical-align: middle; }
@keyframes run { to { transform: translateX(-50%); } }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 64px; text-align: center; }
.stats div { padding: 18px 8px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: clamp(44px, 9vw, 84px); line-height: 1; font-weight: 900; color: #fff;
  text-shadow: 0 0 22px rgba(34, 216, 255, .75), 0 0 60px rgba(34, 216, 255, .3); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Überschriften mit Leuchtstrich */
.block h2 { position: relative; padding-bottom: 14px; }
.block h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan); transition: width 1s .3s ease-out; }
.block.seen h2::after { width: 160px; }

/* Kippende Karten mit Lichtfleck */
.tilt { transform-style: preserve-3d; will-change: transform; }
.feat.tilt { position: relative; }
.feat.tilt::after, .world.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(34, 216, 255, .22), transparent 45%); }
.feat.tilt:hover::after, .world.tilt:hover::after { opacity: 1; }
.feat:hover { transform: none; }
.world { transition: border-color .3s, box-shadow .3s; }
.world:hover { border-color: var(--w); box-shadow: 0 0 34px color-mix(in srgb, var(--w) 30%, transparent); }

/* Die Welle: Bild über die volle Breite */
.wave { position: relative; margin: 88px calc(50% - 50vw) 0; min-height: 78vh; display: flex; align-items: center; overflow: hidden;
  border-block: 1px solid rgba(34, 216, 255, .3); }
.wave-art { position: absolute; inset: -12% 0; will-change: transform; }
.wave-art img { width: 100%; height: 100%; object-fit: cover; }
.wave::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10, 15, 30, .94) 0%, rgba(10, 15, 30, .7) 45%, rgba(10, 15, 30, .1) 100%); }
.wave-in { position: relative; z-index: 2; max-width: 1040px; width: 100%; margin: 0 auto; padding: 48px 16px; }
.wave .kicker { text-align: left; padding-left: 0; }
.big { font-size: clamp(48px, 10vw, 120px); line-height: .95; font-weight: 900; margin: 0 0 22px; text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
.big em { font-style: normal; color: var(--cyan); text-shadow: 0 0 28px rgba(34, 216, 255, .8); }
.wave .lead { max-width: 480px; }

/* Bildbetrachter */
.lightbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(5, 8, 18, .92); backdrop-filter: blur(6px); cursor: zoom-out; animation: fade .25s ease-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; border: 1px solid rgba(34, 216, 255, .5);
  box-shadow: 0 0 60px rgba(34, 216, 255, .25); animation: pop .3s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* Zielkreuz als Mauszeiger (nur mit Maus) */
.reticle { display: none; }
@media (hover: hover) and (pointer: fine) {
  .reticle { display: block; position: fixed; left: 0; top: 0; z-index: 70; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none;
    border: 1.5px solid rgba(34, 216, 255, .85); border-radius: 50%; opacity: 0; transition: width .2s, height .2s, margin .2s, opacity .3s, border-color .2s;
    box-shadow: 0 0 10px rgba(34, 216, 255, .5); transform: translate3d(-200px, -200px, 0); }
  .reticle::before, .reticle::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--cyan); }
  .reticle::before { width: 4px; height: 4px; margin: -2px; border-radius: 50%; }
  .reticle.on { opacity: 1; }
  body.home { cursor: crosshair; }
  .reticle.hot { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: #fff; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding-top: 44px; }
  .stats div:nth-child(3) { border-left: 0; }
  .wave { min-height: 70vh; }
  .wave::before { background: linear-gradient(180deg, rgba(10, 15, 30, .3), rgba(10, 15, 30, .92) 70%); }
  .wave { align-items: flex-end; }
  .home .hero { min-height: 0; padding-top: 0; }
  .kicker { letter-spacing: .28em; padding-left: .28em; font-size: 12px; }
  .home .hero .hero-art { height: auto; aspect-ratio: 840 / 1200; max-height: 78svh; min-height: 0; }
  .home .hero .hero-art img { object-position: 50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home .hero .hero-art img, .sweep::before, .ticker .run, .down, .down span { animation: none; }
  .block h2::after { transition: none; }
}
