/* ==========================================================================
   Retroverse 2027 — stylesheet
   Neon-arcade look ported from the Retroverse-Webseite reference (Next.js)
   into plain CSS. Dark-only. No build step required.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme tokens (authoritative palette)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --rv-neon-pink: #ff2dfd;
  --rv-neon-cyan: #00f0ff;
  --rv-neon-purple: #7b2ff7;
  --rv-void: #0d0d0d;          /* page background */
  --rv-void-light: #16121f;    /* panel background */
  --rv-paper: #f0f0f0;         /* text */
  --rv-scanline: rgba(0, 0, 0, 0.14);
  --rv-glow-pink: rgba(255, 45, 253, 0.5);
  --rv-glow-cyan: rgba(0, 240, 255, 0.5);
  --rv-glow-purple: rgba(123, 47, 247, 0.15);

  --font-pixel: 'Press Start 2P', monospace;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-height: 60px;
  --shadow-neon-pink: 0 0 5px var(--rv-neon-pink), 0 0 20px var(--rv-glow-pink);
  --shadow-neon-cyan: 0 0 5px var(--rv-neon-cyan), 0 0 20px var(--rv-glow-cyan);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--rv-void);
  color: var(--rv-paper);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--rv-neon-cyan); }

/* CRT scanline overlay — fixed, subtle, non-interactive. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    var(--rv-scanline) 3px,
    var(--rv-scanline) 4px
  );
}

/* --------------------------------------------------------------------------
   Layout: sections + reveal-on-scroll
   -------------------------------------------------------------------------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section > .section-lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: rgba(240, 240, 240, 0.8);
}

section[id] { scroll-margin-top: calc(var(--nav-height) + 12px); }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Pixel divider between sections */
.pixel-divider {
  height: 8px;
  background-image: repeating-linear-gradient(
    to right,
    var(--rv-neon-purple) 0 8px,
    transparent 8px 16px
  );
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

/* --------------------------------------------------------------------------
   Reusable components
   -------------------------------------------------------------------------- */
.neon-heading {
  font-family: var(--font-pixel);
  color: var(--rv-neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6), 0 0 30px rgba(0, 240, 255, 0.25);
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  line-height: 1.5;
  text-align: center;
  margin: 0 0 1.5rem;
}

.crt-card {
  border-radius: 0.5rem;
  border: 1px solid rgba(123, 47, 247, 0.4);
  background: rgba(22, 18, 31, 0.8);
  box-shadow: inset 0 0 40px rgba(123, 47, 247, 0.08), 0 0 25px rgba(123, 47, 247, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}

.neon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid var(--rv-neon-cyan);
  color: var(--rv-neon-cyan);
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.neon-button:hover,
.neon-button:focus-visible {
  background: var(--rv-neon-cyan);
  color: var(--rv-void);
  box-shadow: var(--shadow-neon-cyan);
  outline: none;
}
.neon-button--pink {
  border-color: var(--rv-neon-pink);
  color: var(--rv-neon-pink);
}
.neon-button--pink:hover,
.neon-button--pink:focus-visible {
  background: var(--rv-neon-pink);
  color: var(--rv-void);
  box-shadow: var(--shadow-neon-pink);
}
.neon-button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* --------------------------------------------------------------------------
   Top navigation (sticky)
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(13, 13, 13, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(123, 47, 247, 0.35);
}
.nav-brand {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--rv-neon-pink);
  text-shadow: 0 0 8px var(--rv-glow-pink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.75);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover {
  color: var(--rv-neon-cyan);
  text-shadow: 0 0 8px var(--rv-glow-cyan);
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* Scroll-progress bar */
.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(to right, var(--rv-neon-pink), var(--rv-neon-purple), var(--rv-neon-cyan));
}

/* --------------------------------------------------------------------------
   Starfield (three parallax layers)
   -------------------------------------------------------------------------- */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.starfield i {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: transparent;
  animation: star-scroll linear infinite;
}
.starfield i:nth-child(1) { animation-duration: 120s; }
.starfield i:nth-child(2) { width: 3px; height: 3px; animation-duration: 180s; }
.starfield i:nth-child(3) { width: 1px; height: 1px; animation-duration: 90s; }

@keyframes star-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-2000px); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 1.25rem 4rem;
}
.hero .synthgrid {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 42%;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
}
.hero .tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--rv-neon-cyan);
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  margin: 1.5rem 0 2rem;
}
.hero-card { margin: 0 auto; max-width: 560px; }
.event-line {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  margin: 0 0 1.25rem;
  color: var(--rv-paper);
}
.scroll-hint {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 1.5rem;
  color: var(--rv-neon-cyan);
  text-decoration: none;
  cursor: pointer;
  animation: bob 1.8s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--rv-neon-pink); }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* Glitch wordmark (fallback + base) */
.interactive-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 8vw, 3.75rem);
  color: var(--rv-paper);
  margin: 0;
  display: inline-block;
  position: relative;
  animation: flicker 4s linear infinite;
}
@keyframes flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 1; }
  98% { opacity: 0.85; }
  99% { opacity: 0.95; }
}
.glitch {
  position: relative;
  text-shadow: 0 0 10px var(--rv-neon-cyan), 0 0 40px var(--rv-glow-cyan);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.75;
  pointer-events: none;
}
.glitch::before { color: var(--rv-neon-pink); animation: glitch-shift 3.2s infinite steps(2, end); }
.glitch::after  { color: var(--rv-neon-cyan); animation: glitch-shift 2.7s infinite reverse steps(2, end); }
@keyframes glitch-shift {
  0%, 92%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  93% { transform: translate(-3px, 2px); clip-path: inset(10% 0 55% 0); }
  95% { transform: translate(3px, -2px); clip-path: inset(60% 0 8% 0); }
  97% { transform: translate(-2px, 1px); clip-path: inset(30% 0 40% 0); }
}

/* Interactive mode (desktop, motion allowed): tilt + chromatic aberration,
   glitch pseudo-elements hidden — set by main.js via .is-interactive. */
.interactive-title.is-interactive {
  transition: transform 0.15s ease-out, text-shadow 0.15s ease-out;
  transform: perspective(600px)
    rotateY(calc(var(--mx, 0) * 12deg))
    rotateX(calc(var(--my, 0) * -8deg));
  text-shadow:
    calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -6px) 0 var(--rv-neon-pink),
    calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 6px) 0 var(--rv-neon-cyan),
    0 0 14px var(--rv-glow-cyan),
    0 0 45px var(--rv-glow-pink);
  will-change: transform;
}
.interactive-title.is-interactive::before,
.interactive-title.is-interactive::after { opacity: 0; animation: none; }

/* --------------------------------------------------------------------------
   Countdown timer
   -------------------------------------------------------------------------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.countdown-cell {
  border: 1px solid rgba(0, 240, 255, 0.5);
  background: rgba(22, 18, 31, 0.7);
  box-shadow: var(--shadow-neon-cyan);
  padding: 1rem 0.35rem;
  text-align: center;
  min-width: 0; /* allow the track to shrink so 3-digit days don't overflow the card */
}
.countdown-cell .num {
  font-family: var(--font-pixel);
  color: var(--rv-neon-cyan);
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.85rem, 3.4vw, 1.6rem);
  line-height: 1.1;
}
.countdown-cell .label {
  font-family: var(--font-display);
  margin-top: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.6);
}
.countdown-live {
  font-family: var(--font-pixel);
  color: var(--rv-neon-pink);
  text-shadow: var(--shadow-neon-pink);
}
@media (min-width: 640px) {
  .countdown { gap: 1.5rem; }
  .countdown-cell { padding: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Trailer section — 4 portrait (9:16) videos
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  width: 100%;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(123, 47, 247, 0.4);
  background: #060606;
  box-shadow: inset 0 0 40px rgba(123, 47, 247, 0.08), 0 0 22px rgba(0, 240, 255, 0.18);
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-caption {
  font-family: var(--font-display);
  text-align: center;
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 240, 0.7);
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1rem;
  background: radial-gradient(circle at center, rgba(123, 47, 247, 0.18), rgba(6, 6, 6, 0.95));
  color: var(--rv-neon-cyan);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  line-height: 1.8;
  /* Rendered as a <button>: it is the tap-to-play affordance (iOS-safe). */
  border: 0;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease;
}
.video-placeholder:hover,
.video-placeholder:focus-visible {
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.22), rgba(6, 6, 6, 0.92));
  outline: none;
}
.video-placeholder .icon { font-size: 2rem; }
.video-placeholder small { font-size: 0.58rem; opacity: 0.85; letter-spacing: 0.12em; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .video-grid {
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }
  .video-card { scroll-snap-align: center; max-height: 78vh; }
}

/* Featured landscape trailer (the original YouTube trailer) */
.trailer-feature { max-width: 820px; margin: 2.5rem auto 0; }
.trailer-feature-title {
  font-family: var(--font-display);
  text-align: center;
  color: var(--rv-neon-cyan);
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  font-size: 1rem;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(123, 47, 247, 0.4);
  background: #060606;
  box-shadow: inset 0 0 40px rgba(123, 47, 247, 0.08), 0 0 22px rgba(0, 240, 255, 0.18);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   About section — feature list + "next events" callout
   -------------------------------------------------------------------------- */
.about-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.about-list li { line-height: 1.5; }
.about-list strong { color: var(--rv-neon-cyan); }
.upcoming {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 45, 253, 0.4);
  border-radius: 10px;
  background: rgba(255, 45, 253, 0.06);
}
.upcoming h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rv-neon-pink);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.upcoming ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.upcoming li { line-height: 1.4; }
.upcoming strong { color: var(--rv-neon-cyan); }

/* "Read more" toggle — only collapses on mobile; desktop shows everything.
   .is-collapsible is added by JS, so without JS the full text stays visible. */
.about-toggle { display: none; }
@media (max-width: 860px) {
  #about.is-collapsible .about-more {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }
  #about.is-collapsible.is-open .about-more {
    max-height: 1600px;
    opacity: 1;
  }
  #about.is-collapsible .about-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0.25rem;
    padding: 0.45rem 1rem;
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: var(--rv-neon-cyan);
    background: transparent;
    border: 1px solid var(--rv-neon-cyan);
    border-radius: 999px;
    cursor: pointer;
  }
}
@media (prefers-reduced-motion: reduce) {
  #about.is-collapsible .about-more { transition: none; }
}

/* Future timeline entries — pink dot + dashed connector to read as "coming up" */
.timeline-item--future .timeline-year { color: var(--rv-neon-cyan); }
.timeline-item--future::after {
  border-color: var(--rv-neon-pink);
  box-shadow: 0 0 10px var(--rv-glow-pink);
}

/* --------------------------------------------------------------------------
   Rückblick 2026 recap card
   -------------------------------------------------------------------------- */
.recap-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 1.75rem;
}
.recap-img {
  width: 40%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.18);
  display: block;
}
.recap-text { flex: 1; }
.recap-text p:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .recap-card { flex-direction: column; }
  .recap-img { width: 100%; max-width: 360px; }
}

/* --------------------------------------------------------------------------
   Partner section
   -------------------------------------------------------------------------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.partner-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid rgba(123, 47, 247, 0.45);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 45, 253, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(22, 18, 31, 0.92), rgba(6, 6, 6, 0.92));
  box-shadow: inset 0 0 40px rgba(123, 47, 247, 0.1), 0 0 20px rgba(0, 240, 255, 0.12);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s;
}
/* rotating neon halo behind the card, revealed on hover */
.partner-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--rv-neon-pink), var(--rv-neon-cyan), var(--rv-neon-purple), var(--rv-neon-pink));
  opacity: 0;
  transition: opacity 0.3s;
  animation: partner-spin 6s linear infinite;
}
@keyframes partner-spin { to { transform: rotate(360deg); } }
.partner-card:hover {
  transform: translateY(-6px);
  border-color: var(--rv-neon-cyan);
  box-shadow: inset 0 0 40px rgba(123, 47, 247, 0.14), 0 0 34px rgba(255, 45, 253, 0.35);
}
.partner-card:hover::before { opacity: 0.28; }
/* diagonal light sweep on hover */
.partner-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0, 240, 255, 0.25), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.partner-card:hover .partner-shine { animation: partner-sweep 0.9s ease-out; }
@keyframes partner-sweep { to { left: 140%; } }
.partner-icon {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--rv-glow-pink));
  transition: transform 0.25s;
}
.partner-card:hover .partner-icon { transform: scale(1.12) rotate(-6deg); }
.partner-name {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--rv-neon-cyan);
  text-shadow: 0 0 8px var(--rv-glow-cyan);
}
.partner-role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(240, 240, 240, 0.7);
}
.partner-link {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--rv-neon-pink);
  text-shadow: 0 0 8px var(--rv-glow-pink);
}
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer arcade: INSERT COIN → PRESS START
   -------------------------------------------------------------------------- */
.arcade-line { margin-top: 2rem; }
.coin-btn {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: none;
  border: none;
  color: rgba(240, 240, 240, 0.7);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s, text-shadow 0.2s;
}
.coin-btn:hover { color: var(--rv-neon-cyan); text-shadow: 0 0 8px var(--rv-glow-cyan); }
.coin-btn.press-start {
  color: var(--rv-neon-pink);
  text-shadow: var(--shadow-neon-pink);
  animation: coin-blink 0.8s steps(1, end) infinite;
}
@keyframes coin-blink { 50% { opacity: 0.3; } }

/* --------------------------------------------------------------------------
   Tetromino rain (footer PRESS START + cheat menu)
   -------------------------------------------------------------------------- */
.tetromino-rain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}
.tetromino {
  position: absolute;
  top: -14vh;
  --cell: 16px;
  display: grid;
  gap: 2px;
  color: var(--tc, var(--rv-neon-cyan));
  filter: drop-shadow(0 0 6px currentColor);
  animation: tetromino-fall 3.8s linear forwards;
}
.tetromino .cell { width: var(--cell); height: var(--cell); }
.tetromino .cell.on {
  background: var(--tc);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
}
@keyframes tetromino-fall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to   { transform: translateY(128vh) rotate(var(--spin, 360deg)); opacity: 0.85; }
}

/* --------------------------------------------------------------------------
   Konami cheat menu + CRT flicker + page FX
   -------------------------------------------------------------------------- */
.cheat-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.cheat-menu {
  width: 100%;
  max-width: 360px;
  border: 2px solid var(--rv-neon-pink);
  background: var(--rv-void);
  box-shadow: var(--shadow-neon-pink), inset 0 0 30px rgba(255, 45, 253, 0.1);
  padding: 1.5rem;
  animation: cheat-in 0.2s ease-out;
}
@keyframes cheat-in { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cheat-title {
  font-family: var(--font-pixel);
  text-align: center;
  color: var(--rv-neon-pink);
  text-shadow: var(--shadow-neon-pink);
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}
.cheat-sub {
  font-family: var(--font-pixel);
  text-align: center;
  color: rgba(240, 240, 240, 0.65);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  margin: 0 0 1.25rem;
}
.cheat-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.cheat-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  line-height: 1.4;
  color: var(--rv-paper);
  padding: 0.6rem 0.5rem;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.cheat-item:hover { background: rgba(255, 45, 253, 0.15); color: var(--rv-neon-cyan); }
.cheat-item .state { color: rgba(240, 240, 240, 0.65); }
.cheat-item .state.is-on { color: var(--rv-neon-cyan); }
.cheat-exit { border-top: 1px solid rgba(240, 240, 240, 0.1); margin-top: 0.35rem; padding-top: 0.35rem; }
.cheat-exit .cheat-item { color: rgba(240, 240, 240, 0.55); }
.cheat-exit .cheat-item:hover { color: var(--rv-neon-pink); background: none; }

/* Gravity strength slider inside the cheat menu */
.cheat-slider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem 0.5rem 0.7rem;
  transition: opacity 0.15s;
}
.cheat-slider.is-disabled { opacity: 0.35; }
.cheat-slider-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--rv-neon-cyan);
  white-space: nowrap;
}
.cheat-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rv-neon-purple), var(--rv-neon-pink));
  outline: none;
  cursor: pointer;
}
.cheat-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--rv-neon-cyan);
  box-shadow: 0 0 8px var(--rv-neon-cyan);
  border: none;
  cursor: pointer;
}
.cheat-range::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--rv-neon-cyan);
  box-shadow: 0 0 8px var(--rv-neon-cyan);
  border: none;
  cursor: pointer;
}
.cheat-range:disabled { cursor: not-allowed; }

/* Gravity "are you sure?" confirmation + reload hint */
.gravity-confirm { z-index: 97; }
.gravity-warn { border-color: var(--rv-neon-pink); box-shadow: var(--shadow-neon-pink); }
.gravity-warn-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(240, 240, 240, 0.9);
  text-align: center;
  margin: 0 0 1.4rem;
}
.gravity-warn-btns { display: flex; flex-direction: column; gap: 0.6rem; }
.gravity-warn-btns .neon-button { width: 100%; }

.gravity-hint {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 98;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: min(92vw, 460px);
  padding: 0.75rem 1rem;
  background: var(--rv-void);
  border: 2px solid var(--rv-neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--rv-paper);
  animation: gravity-hint-in 0.3s ease-out;
}
.gravity-hint.hide { opacity: 0; transition: opacity 0.5s ease; }
@keyframes gravity-hint-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translateX(-50%); }
}
.gh-reload {
  flex: none;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--rv-void);
  background: var(--rv-neon-cyan);
  border: none;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
@media (max-width: 860px) {
  .gravity-hint { bottom: 5rem; }
}

/* Desktop-only gravity controls (shake + lean) */
.gravity-hud {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 98;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 210px;
  padding: 0.85rem 0.9rem;
  background: var(--rv-void);
  border: 2px solid var(--rv-neon-purple);
  box-shadow: var(--shadow-neon-cyan);
  border-radius: 10px;
  animation: gravity-hud-in 0.3s ease-out;
}
@keyframes gravity-hud-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
.gravity-hud-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--rv-neon-cyan);
  text-align: center;
}
.gravity-hud .gh-shake {
  width: 100%;
  padding: 0.55rem 0.6rem;
  font-size: 0.6rem;
}
.gravity-hud-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gravity-hud-label {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  color: var(--rv-neon-cyan);
  white-space: nowrap;
}

.crt-flicker {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  transform-origin: center;
  animation: crt-off 0.4s ease-out forwards;
}
@keyframes crt-off {
  0%   { background: rgba(240, 240, 240, 0.9); transform: scaleY(1); }
  60%  { background: rgba(13, 13, 13, 0.95); transform: scaleY(0.005); }
  100% { background: transparent; transform: scaleY(1); }
}

/* On-screen cheat controller (tap the code by hand, e.g. on mobile) */
.gamepad-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}
.gamepad {
  width: 100%;
  max-width: 340px;
  border: 2px solid var(--rv-neon-cyan);
  border-radius: 18px;
  background: linear-gradient(160deg, #16161f, var(--rv-void));
  box-shadow: var(--shadow-neon-cyan), inset 0 0 30px rgba(0, 240, 255, 0.08);
  padding: 1.4rem 1.25rem 1.6rem;
  text-align: center;
  animation: cheat-in 0.2s ease-out;
}
.gamepad-title {
  font-family: var(--font-pixel);
  color: var(--rv-neon-cyan);
  text-shadow: var(--shadow-neon-cyan);
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}
.gamepad-hint {
  font-family: var(--font-pixel);
  color: rgba(240, 240, 240, 0.5);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.9rem;
}
.gamepad-progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 1.2rem; }
.gp-dot {
  width: 10px; height: 10px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: transparent;
  transition: background 0.15s, box-shadow 0.15s;
}
.gp-dot.is-on { background: var(--rv-neon-cyan); box-shadow: 0 0 8px var(--rv-neon-cyan); }
.gamepad-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.dpad { position: relative; width: 132px; height: 132px; flex: none; }
.dbtn {
  position: absolute;
  width: 44px; height: 44px;
  border: 2px solid var(--rv-neon-purple);
  background: #1c1c28;
  color: var(--rv-paper);
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.1s, background 0.1s, box-shadow 0.1s;
}
.dbtn.up    { top: 0; left: 44px; }
.dbtn.left  { top: 44px; left: 0; }
.dbtn.right { top: 44px; right: 0; }
.dbtn.down  { bottom: 0; left: 44px; }
.face-btns { display: flex; gap: 0.9rem; align-items: center; flex: none; }
.fbtn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--rv-neon-pink);
  background: #1c1c28;
  color: var(--rv-neon-pink);
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.1s, background 0.1s, box-shadow 0.1s;
}
.fbtn.a { transform: translateY(-14px); }
.dbtn.pressed, .fbtn.pressed {
  background: var(--rv-neon-pink);
  color: #0d0d0d;
  box-shadow: 0 0 14px var(--rv-neon-pink);
  transform: scale(0.9);
}
.fbtn.a.pressed { transform: translateY(-14px) scale(0.9); }
.gamepad-close {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 240, 0.6);
  background: none;
  border: 1px solid rgba(240, 240, 240, 0.2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.gamepad-close:hover { color: var(--rv-neon-cyan); border-color: var(--rv-neon-cyan); }

/* Page-wide cheat effects, toggled on <html> */
html.fx-invert { filter: invert(1) hue-rotate(180deg); }
@keyframes rv-rainbow { to { filter: hue-rotate(360deg); } }
html.fx-rainbow { animation: rv-rainbow 6s linear infinite; }
html.fx-turbo .starfield i { animation-duration: 6s !important; }
html.fx-turbo .starfield i:nth-child(2) { animation-duration: 9s !important; }
html.fx-turbo .starfield i:nth-child(3) { animation-duration: 4s !important; }

/* --------------------------------------------------------------------------
   "Das Erlebnis" feature cards (tilt)
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.tilt-card {
  transition: transform 0.2s ease-out;
  will-change: transform;
  height: 100%;
}
.feature-card { text-align: center; height: 100%; }
.feature-card .icon {
  font-size: 2.2rem;
  color: var(--rv-neon-pink);
  filter: drop-shadow(0 0 8px var(--rv-glow-pink));
}
.feature-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rv-neon-cyan);
  margin: 0.75rem 0 0.5rem;
  font-size: 0.95rem;
}
.feature-card p { margin: 0; font-size: 0.9rem; color: rgba(240, 240, 240, 0.75); }

/* Flip cards — click/tap to reveal details on the back */
.feature-flip { height: 100%; perspective: 1000px; cursor: pointer; }
.feature-flip-inner {
  position: relative;
  height: 100%;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.feature-flip.is-flipped .feature-flip-inner { transform: rotateY(180deg); }
.feature-face {
  grid-area: 1 / 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.feature-back { transform: rotateY(180deg); }
.feature-back h3 { color: var(--rv-neon-pink); text-shadow: var(--shadow-neon-pink); }
.feature-back p { color: rgba(240, 240, 240, 0.85); line-height: 1.5; }
.feature-back strong { color: var(--rv-neon-cyan); font-weight: 600; }
.flip-cue {
  margin-top: 0.9rem;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.15em;
  color: rgba(0, 240, 255, 0.55);
}
.feature-flip:focus-visible { outline: none; }
.feature-flip:focus-visible .feature-face {
  outline: 2px solid var(--rv-neon-cyan);
  outline-offset: 3px;
  border-radius: 12px;
}

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .feature-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   "Die Geschichte" timeline
   -------------------------------------------------------------------------- */
.timeline-cta { text-align: center; margin-top: 2.5rem; }
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--rv-neon-purple), transparent);
}
.timeline-item { position: relative; width: 50%; padding: 0.5rem 2.5rem 2rem; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-item::after {
  content: '';
  position: absolute;
  top: 1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rv-void);
  border: 2px solid var(--rv-neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}
.timeline-item:nth-child(odd)::after { right: -7px; }
.timeline-item:nth-child(even)::after { left: -7px; }
.timeline-year {
  font-family: var(--font-pixel);
  color: var(--rv-neon-pink);
  text-shadow: 0 0 8px var(--rv-glow-pink);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.timeline-item h3 { margin: 0 0 0.35rem; font-family: var(--font-display); color: var(--rv-neon-cyan); }
.timeline-item p { margin: 0; font-size: 0.9rem; color: rgba(240, 240, 240, 0.78); }
@media (max-width: 680px) {
  .timeline::before { left: 8px; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 2.5rem; padding-right: 0; }
  .timeline-item::after { left: 1px !important; right: auto !important; }
}

/* --------------------------------------------------------------------------
   Programm timetable
   -------------------------------------------------------------------------- */
.timetable { max-width: 640px; margin: 0 auto; display: grid; gap: 0.75rem; }
.timetable-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--rv-neon-pink);
  background: rgba(22, 18, 31, 0.6);
}
.timetable-row .time {
  font-family: var(--font-pixel);
  color: var(--rv-neon-cyan);
  font-size: 0.85rem;
}
.timetable-row .what strong { color: var(--rv-paper); }
.timetable-row .what span { display: block; font-size: 0.85rem; color: rgba(240, 240, 240, 0.65); }
.timetable-row .reminder-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--rv-neon-cyan);
  text-decoration: none;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  transition: box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.timetable-row .reminder-link:hover,
.timetable-row .reminder-link:focus-visible {
  color: var(--rv-neon-pink);
  border-color: var(--rv-neon-pink);
  box-shadow: 0 0 10px var(--rv-glow-pink);
}

/* --------------------------------------------------------------------------
   Hardware-Spenden
   -------------------------------------------------------------------------- */
.spenden-card { max-width: 720px; margin: 0 auto; text-align: center; }
.spenden-card .icon { font-size: 2.5rem; }
.spenden-card p { color: rgba(240, 240, 240, 0.82); }
.spenden-card .neon-button { margin-top: 1rem; }
.spenden-mail {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.spenden-mail a {
  color: var(--rv-neon-cyan);
  text-shadow: var(--shadow-neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.4);
}
.spenden-mail a:hover,
.spenden-mail a:focus-visible { border-bottom-color: var(--rv-neon-cyan); }

/* --------------------------------------------------------------------------
   Gallery (Rückblick) — carried over from the previous site
   -------------------------------------------------------------------------- */
/* Rotator wall — max 8 boxes that randomly cross-fade through a larger pool */
.rg-rotator { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .rg-rotator { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .rg-rotator { grid-template-columns: repeat(2, 1fr); } }
.rg-slot {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: #090909;
  box-shadow: 0 0 12px #00f0ff55, 0 0 26px #ff2dfd22;
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s, filter 0.35s;
}
.rg-slot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transition: opacity 0.3s ease, transform 0.6s ease, filter 0.4s ease;
}
.rg-slot:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 18px var(--rv-neon-pink), 0 0 34px var(--rv-neon-cyan); }
.rg-slot:hover img { transform: scale(1.08) rotate(0.5deg); filter: saturate(1.25) contrast(1.15); }
.rg-slot:focus-visible { outline: 2px solid var(--rv-neon-cyan); outline-offset: 3px; }
.rg-rotator noscript img { width: 100%; border-radius: 14px; }
.lg-backdrop { background: radial-gradient(circle at center, #050505, #000); }
.lg-sub-html, .lg-counter { display: none !important; }

/* --------------------------------------------------------------------------
   Anfahrt (map)
   -------------------------------------------------------------------------- */
.map-frame {
  border: 0;
  border-radius: 15px;
  width: 100%;
  height: 420px;
  box-shadow: 0 0 20px var(--rv-glow-cyan);
}

/* --------------------------------------------------------------------------
   Footer / Kontakt
   -------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 3rem 1.25rem 6rem;
  border-top: 1px solid rgba(123, 47, 247, 0.3);
  color: rgba(240, 240, 240, 0.7);
  font-size: 0.9rem;
}
.site-footer a { color: var(--rv-neon-cyan); }
.footer-legal { margin-top: 1rem; font-size: 0.8rem; color: #888; }
.footer-legal a { color: #888; }
.share-line { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center; }
.share-status { font-size: 0.8rem; color: var(--rv-neon-cyan); min-height: 1em; }

/* --------------------------------------------------------------------------
   Mobile bottom nav + popup menu
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  background: rgba(13, 13, 13, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(123, 47, 247, 0.4);
}
.mobile-nav .nav-btn {
  background: none;
  border: none;
  color: var(--rv-neon-cyan);
  padding: 0.5rem;
  cursor: pointer;
}
.mobile-nav .nav-btn svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .mobile-nav { display: flex; } body { padding-bottom: 64px; } }

.nav-popup {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 46;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(22, 18, 31, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: var(--shadow-neon-cyan);
}
.nav-popup a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--rv-paper);
  text-decoration: none;
  padding: 0.35rem 0;
}
.nav-popup a:hover { color: var(--rv-neon-cyan); }
.nav-popup.hidden { display: none; }

/* --------------------------------------------------------------------------
   Reduced motion — freeze/soften every animated effect
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .starfield i { animation: none; }
  .interactive-title { animation: none; }
  .glitch::before, .glitch::after { animation: none; opacity: 0; }
  .scroll-hint { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
  .tilt-card { transition: none; }
  .feature-flip-inner { transition: none; }
  .coin-btn.press-start { animation: none; }
  .partner-card::before { animation: none; }
  .partner-card:hover .partner-shine { animation: none; }
  html.fx-rainbow { animation: none !important; }
  .tetromino-rain, .crt-flicker { display: none !important; }
  .gamepad { animation: none; }
  .dbtn, .fbtn, .gp-dot { transition: none; }
  .gravity-hint, .gravity-hud { animation: none; }
}
