/* LaneLume Landing. Design-Sprache des Spiels: dunkles Neon-Rohr. */

@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/Michroma-400.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ChakraPetch-400.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ChakraPetch-600.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ChakraPetch-700.woff2') format('woff2'); }

:root {
  --bg: #030409;
  --bg2: #060813;
  --glass: rgba(8, 11, 22, 0.62);
  --raised: rgba(13, 17, 32, 0.85);
  --stroke: rgba(140, 180, 255, 0.16);
  --ink: #e8eefc;
  --soft: rgba(210, 224, 255, 0.74);
  --muted: rgba(180, 200, 240, 0.52);
  --orange: #ff9d1f;
  --green: #27e879;
  --blue: #2bb2ff;
  --pink: #ff3d8e;
  --cyan: #7fe9ff;
  --font-display: 'Michroma', sans-serif;
  --font-body: 'Chakra Petch', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(43, 98, 200, 0.18), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg2); padding: 8px 14px; border-radius: 8px; z-index: 99; }

h1, h2 { font-family: var(--font-display); font-weight: 400; }
h2 { font-size: clamp(24px, 3.4vw, 38px); letter-spacing: 0.05em; line-height: 1.25; margin-bottom: 32px; }
.hot { color: var(--cyan); text-shadow: 0 0 28px rgba(127, 233, 255, 0.45); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* Inhalt auf Breite von .inner (1120px) begrenzen, Hintergrund bleibt vollflächig */
  padding: 12px max(24px, calc((100% - 1072px) / 2));
  background: rgba(3, 4, 9, 0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.18em; }
.header-links { display: flex; gap: 22px; margin-left: auto; }
.header-links a { color: var(--soft); font-size: 14px; letter-spacing: 0.04em; }
.header-links a:hover { color: #fff; text-decoration: none; }
.store-badges { display: flex; gap: 10px; }
.store-badges:not(:has(.store-badge:not([hidden]))) { display: none; }
.store-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--stroke); border-radius: 999px;
  color: var(--ink); font-size: 13px; font-weight: 600;
  background: var(--glass);
}
.store-badge[hidden] { display: none; }
.store-badge:hover { text-decoration: none; }
.store-badge:active { transform: scale(0.96); }
.store-badge svg { width: 18px; height: 18px; }

/* ---------------- Buttons ---------------- */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button-row.center { justify-content: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #061024; background: #8eecff;
  border-radius: 999px; padding: 15px 30px; min-width: 170px;
  box-shadow: 0 0 34px rgba(80, 190, 255, 0.38), inset 0 0 12px rgba(255, 255, 255, 0.35);
}
.button:hover { text-decoration: none; }
.button:active { transform: scale(0.96); }
.button.small { font-size: 13px; padding: 12px 18px; min-width: 0; }
.button[aria-disabled="true"] { cursor: default; opacity: 0.88; letter-spacing: 0.06em; text-align: center; }
.button[aria-disabled="true"]:active { transform: none; }

/* ---------------- Hero ---------------- */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
h1 {
  font-size: clamp(32px, 5.2vw, 60px); line-height: 1.14; letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(70, 140, 255, 0.35);
}
.lead { color: var(--soft); font-size: 18px; max-width: 44ch; margin-bottom: 28px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------------- Stage: "So knapp" ---------------- */
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(400px, 100%); justify-self: center;
  aspect-ratio: 9 / 16; max-height: 78vh;
  border-radius: 28px; border: 1px solid rgba(140, 180, 255, 0.25);
  background: #030409;
  box-shadow: 0 30px 100px rgba(43, 178, 255, 0.18), 0 8px 40px rgba(0, 0, 0, 0.6);
}
.stage-poster, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage canvas { opacity: 0; }
.stage.is-live canvas { opacity: 1; }
.stage.is-live .stage-poster { visibility: hidden; }
.stage::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(3, 4, 9, 0.7), rgba(3, 4, 9, 0));
}
.stage-hud {
  position: absolute; top: 18px; left: 20px; z-index: 2;
  display: flex; flex-direction: column; line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 0, 0, 0.4);
}
.stage-hud span { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(160, 200, 255, 0.75); margin-bottom: 6px; }
.stage-hud b { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; transform-origin: left center; }
.stage-hud.bump b { animation: bump 0.18s ease-out; }
@keyframes bump { 40% { transform: scale(1.14); } }

.stage-end {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: radial-gradient(ellipse at center, rgba(3, 4, 9, 0.72), rgba(3, 4, 9, 0.35) 70%);
}
.end-num {
  font-family: var(--font-display); font-size: clamp(72px, 26vw, 120px); line-height: 1;
  color: #fff; letter-spacing: 0.02em;
  text-shadow: -3px 0 0 rgba(255, 61, 142, 0.85), 3px 0 0 rgba(43, 178, 255, 0.85), 0 0 40px rgba(127, 233, 255, 0.5);
}
.end-line { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--soft); }
.end-q { margin-top: 18px; font-family: var(--font-display); font-size: 17px; letter-spacing: 0.06em; color: #fff; }
.end-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Mit JS: Endkarte erst nach dem Crash, gestaffelt */
.stage.is-live .stage-end { opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s 0.25s; }
.stage.is-live .stage-end > * { opacity: 0; transform: translateY(10px); }
.stage.is-live.is-over .stage-end { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.stage.is-live.is-over .stage-end > * { opacity: 1; transform: none; transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.stage.is-live.is-over .end-num { transition-delay: 0s; animation: jitter 0.5s steps(2) 0.1s 2; }
.stage.is-live.is-over .end-line { transition-delay: 0.35s; }
.stage.is-live.is-over .end-q { transition-delay: 1.1s; }
.stage.is-live.is-over .end-cta { transition-delay: 1.4s; }
.stage.is-live.is-over .stage-hud { opacity: 0; }
@keyframes jitter { 0% { transform: translate(-3px, 1px); } 50% { transform: translate(3px, -1px); } 100% { transform: none; } }

/* ---------------- Sektionen ---------------- */
.section { padding: 80px 0; }
.control-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.shot { justify-self: center; width: min(300px, 80vw); }
.shot img { border-radius: 26px; border: 1px solid var(--stroke); box-shadow: 0 30px 90px rgba(43, 178, 255, 0.14); }

.rows { display: grid; gap: 0; border-top: 1px solid var(--stroke); }
.rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--stroke); align-items: baseline; }
.rows dt { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(160, 200, 255, 0.85); }
.rows dd { color: rgba(226, 234, 252, 0.88); font-size: 16px; }
.rows em { font-style: normal; font-weight: 600; }
.rows.two { grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; margin-bottom: 48px; }
.rows.two > div:nth-child(-n+2) { border-top: 1px solid var(--stroke); }
.c-cyan { color: var(--cyan); } .c-pink { color: var(--pink); }

.screens-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px);
  gap: 16px; overflow-x: auto; padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}
.screens-rail figure { scroll-snap-align: start; }
.screens-rail img { width: 100%; aspect-ratio: 620 / 1348; object-fit: cover; border-radius: 20px; border: 1px solid var(--stroke); }
.screens-rail figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-align: center; }

.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--stroke); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--stroke); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--cyan); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 10px; color: var(--soft); font-size: 15px; }

.download-panel {
  text-align: center;
  background: var(--raised); border: 1px solid var(--stroke);
  border-radius: 24px; padding: 56px 28px;
  box-shadow: inset 0 0 120px rgba(43, 178, 255, 0.08);
}
.download-panel img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px; }
.download-panel h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: 0.06em; margin-bottom: 12px; }
.download-panel p { color: var(--soft); max-width: 46ch; margin: 0 auto 26px; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--stroke); padding: 26px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; }
.copy { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
  .hero-grid, .control-grid, .faq-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .header-links { display: none; }
  .rows.two { grid-template-columns: 1fr; }
  .rows.two > div:nth-child(2) { border-top: 0; }
}
@media (max-width: 560px) {
  .inner { padding: 0 16px; }
  .site-header { padding: 10px 16px; }
  .hero { padding-top: 32px; }
  .lead { font-size: 17px; }
  .button-row .button { flex: 1 1 140px; min-width: 0; padding: 14px 16px; }
  .store-badges .store-badge span { display: none; }
  .store-badge { padding: 8px; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .stage { width: 100%; max-height: none; aspect-ratio: 4 / 5; border-radius: 22px; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage.is-live .stage-end, .stage.is-live .stage-end > * { transition: none !important; animation: none !important; }
  .stage-hud.bump b { animation: none; }
}
