/* Tiny Ship Defense Landing. Monument-Hero, Flugroute durch die Gegner, Parallax aus freigestellten Ebenen (assets/art). */

@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('/fonts/nunito.woff2') format('woff2'); }

:root {
  --bg: #0e0e18;
  --surface: #191921;
  --tile: #24232e;
  --line: #ffffff1a;
  --text: #f1ede6;
  --soft: rgba(241, 237, 230, 0.82);
  --muted: #a29fa8;
  --coral: #ff7a6b;
  --mint: #72dca2;
  --sand: #f4d8b4;
  --gold: #f7c548;
  --sky: #9fd8ff;
  --violet: #b69cff;
  --gutter: max(24px, calc((100% - 1168px) / 2));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  color: var(--text);
  font-family: 'Nunito', ui-rounded, system-ui, sans-serif;
  font-size: 17px; font-weight: 600; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

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

h1, h2, h3 { font-weight: 900; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; margin-bottom: 28px; }
p { text-wrap: pretty; }
.coral { color: var(--coral); } .mint { color: var(--mint); } .sky { color: var(--sky); } .gold { color: var(--gold); }

/* Weltraum hinter der ganzen Seite, steht fest, die Ebenen davor bewegen sich */
.space {
  position: fixed; inset: 0; z-index: -1;
  background: url('/assets/art/space-1600.webp') center / cover no-repeat, var(--bg);
}
.space::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0e0e1800 0%, #0e0e1866 60%, #0e0e18b3 100%); }
@media (max-width: 760px) { .space { background-image: url('/assets/art/space-900.webp'); } }

[data-depth] { will-change: transform; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(14, 14, 24, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px #ffffff24; }
.header-links { display: flex; gap: 22px; margin-left: auto; }
.header-links a { color: var(--muted); font-size: 15px; font-weight: 800; }
.header-links a:active { color: var(--text); }
.store-badges { display: flex; gap: 10px; }

/* ---------------- Offizielle Store-Badges (unverändert, nur skaliert) ---------------- */
.badge { display: block; line-height: 0; border-radius: 8px; }
.badge img { height: 40px; width: auto; }
.badge:active img { transform: translateY(1px); }
.badge-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge-row .badge img { height: 54px; }

/* ---------------- Hero: der Mutterbrocken sprengt den Rahmen ---------------- */
.hero {
  position: relative; overflow: clip;
  min-height: min(calc(100svh - 65px), 980px);
  display: flex; align-items: center;
  padding: 72px 0 96px;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-rock { position: absolute; z-index: 2; width: min(58vw, 980px); right: -6vw; top: -30%; }
.hero-rock::before {
  content: ''; position: absolute; inset: -18%;
  background: radial-gradient(closest-side, #ff7a6b55, #ff7a6b1f 55%, transparent 75%);
}
/* Codex-Farben etwas blasser, näher am Mutterbrocken im Spiel */
.hero-rock img, .boss-rock, .bit { filter: saturate(0.78) brightness(1.06); }
.hero-rock img { position: relative; width: 100%; }
.impact {
  position: absolute; left: 50%; top: 93%; width: 34%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, #fff 0%, #ffe3a0 18%, #f7c54899 38%, #ff7a6b33 62%, transparent 100%);
  mix-blend-mode: screen; animation: flare 180ms steps(2) infinite alternate;
}
@keyframes flare { to { scale: 0.86; opacity: 0.82; } }
.hero-ship { position: absolute; z-index: 1; left: calc(100% + 6vw - min(58vw, 980px) / 2); bottom: 7%; width: 74px; translate: -50% 0; }
.hero-ship img { position: relative; width: 100%; filter: drop-shadow(0 0 18px #72dca266); }
.beam {
  position: absolute; left: 50%; bottom: 72%; width: 6px; height: 100vh; translate: -50% 0;
  background: repeating-linear-gradient(0deg, #f7c548 0 22px, transparent 22px 40px);
  filter: drop-shadow(0 0 6px #f7c548aa);
  -webkit-mask: linear-gradient(0deg, #000 70%, transparent); mask: linear-gradient(0deg, #000 70%, transparent);
  animation: shots 260ms linear infinite;
}
@keyframes shots { to { background-position: 0 -40px; } }
.bit { position: absolute; z-index: 3; }
.b1 { width: 58px; right: 3vw; top: 70%; rotate: -14deg; }
.b2 { width: 40px; right: 34vw; top: 76%; rotate: 22deg; }
.b3 { width: 34px; right: 41vw; top: 14%; rotate: 40deg; }
.rock-fg { position: absolute; z-index: 4; filter: blur(2px) brightness(0.7); }
.f1 { width: 260px; left: -70px; bottom: -80px; }
.f2 { width: 170px; right: -40px; bottom: -30px; }

.hero-copy { width: 100%; z-index: 5; }
.hero-copy > * { max-width: 600px; }
h1 { font-size: clamp(48px, 7.4vw, 108px); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 26px; text-shadow: 0 4px 30px #0e0e18; }
.lead { color: var(--soft); font-size: 20px; max-width: 30em; margin-bottom: 30px; text-shadow: 0 2px 16px #0e0e18; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--muted); font-weight: 800; }

/* ---------------- Flugroute durch die Gegner ---------------- */
.descent { position: relative; padding: 120px 0 0; }
.descent-head { text-align: center; }
.descent-head h2 { margin-bottom: 16px; }
.descent-head p { color: var(--soft); font-size: 20px; max-width: 34em; margin: 0 auto; }

.route { position: relative; margin-top: 40px; }
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-line .track { stroke: #72dca233; stroke-width: 3; stroke-dasharray: 2 12; }
.route-line .trail { stroke: var(--mint); stroke-width: 4; stroke-dasharray: 10 12; filter: drop-shadow(0 0 6px #72dca2aa); }
.route-line .reveal { stroke: #fff; stroke-width: 16; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.route-ship { position: absolute; left: 0; top: 0; width: 52px; margin: -26px 0 0 -26px; z-index: 2; filter: drop-shadow(0 0 14px #72dca2aa); opacity: 0; transition: opacity 200ms; }
.route-ship.on { opacity: 1; }

.stops { list-style: none; display: grid; gap: 24px; }
.stop { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; min-height: 440px; }
.stop:nth-child(even) .stop-art { order: 2; }
.stop-art { position: relative; justify-self: center; width: min(420px, 100%); }
.stop-art::before {
  content: ''; position: absolute; inset: -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%);
}
.stop-art img { position: relative; width: 100%; filter: drop-shadow(0 30px 40px #000a); }
.stop-copy { max-width: 440px; }
.stop:nth-child(odd) .stop-copy { justify-self: start; }
.stop:nth-child(even) .stop-copy { justify-self: end; }
.stop h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.lvl {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px;
  background: var(--tone, var(--coral)); color: var(--bg);
  font-size: 14px; font-weight: 900; letter-spacing: 0; white-space: nowrap;
  box-shadow: inset 0 -3px 0 #0003;
}
.stop p { color: var(--soft); font-size: 19px; }

/* Einblenden beim ersten Auftauchen (nur mit JS, nur ohne reduzierte Bewegung) */
.reveal-on .stop-art img, .reveal-on .stop-copy { opacity: 0; translate: 0 28px; transition: opacity 400ms ease-out, translate 400ms cubic-bezier(.2, .8, .3, 1); }
.reveal-on .stop.in .stop-art img, .reveal-on .stop.in .stop-copy { opacity: 1; translate: 0 0; }
.reveal-on .stop.in .stop-copy { transition-delay: 80ms; }

/* ---------------- Boss ---------------- */
.boss { position: relative; min-height: 980px; display: flex; align-items: flex-end; padding-bottom: 80px; overflow-x: clip; }
.boss-art { position: absolute; inset: 0; pointer-events: none; }
.boss-art::before {
  content: ''; position: absolute; width: 90vw; aspect-ratio: 1; right: -30vw; top: -10%;
  background: radial-gradient(closest-side, #ff7a6b40, #ff7a6b14 55%, transparent 75%);
}
.boss-rock { position: absolute; width: min(54vw, 860px); right: -5vw; top: 0; }
.b4 { width: 70px; left: 14vw; top: 18%; rotate: -20deg; }
.b5 { width: 54px; right: 52vw; top: 46%; rotate: 30deg; }
.boss-copy { width: 100%; z-index: 5; }
.boss-copy > * { max-width: 540px; }
.boss-copy h2 { font-size: clamp(40px, 6vw, 84px); text-shadow: 0 4px 30px #0e0e18; }
.boss-copy p { color: var(--soft); font-size: 20px; text-shadow: 0 2px 16px #0e0e18; }
.boss-copy .worlds { margin-top: 18px; color: var(--muted); font-size: 17px; }

/* ---------------- Sektionen ---------------- */
.section { position: relative; padding: 110px 0; }
.level-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.rows { display: grid; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows dt { font-weight: 900; font-size: 19px; color: var(--sand); }
.rows dd { color: var(--soft); font-size: 17px; }
.rows .t-coral { color: var(--coral); } .rows .t-gold { color: var(--gold); } .rows .t-sky { color: var(--sky); }
.rows .t-violet { color: var(--violet); } .rows .t-mint { color: var(--mint); }

/* ---------------- Tipp-Demo ---------------- */
.demo { justify-self: center; width: min(380px, 100%); }
.demo-field {
  position: relative; height: 420px; overflow: hidden; border-radius: 28px;
  background: radial-gradient(ellipse 80% 60% at 50% 35%, #2a2552cc, #0e0e18ee);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -4px 0 #0006;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.demo-hud { position: absolute; inset: 16px 16px auto; display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; z-index: 2; }
.demo-name { color: var(--sand); white-space: nowrap; }
.demo-bar { flex: 1; height: 8px; border-radius: 99px; background: #0008; overflow: hidden; }
.demo-bar i { display: block; height: 100%; width: 100%; background: var(--coral); border-radius: inherit; transform-origin: left; transition: transform 160ms ease-out; }
.demo-beam { position: absolute; left: 50%; bottom: 74px; height: 150px; width: 4px; translate: -50% 0; background: repeating-linear-gradient(0deg, #f7c548 0 14px, transparent 14px 26px); animation: shots 300ms linear infinite; opacity: 0.85; }
.demo-rock {
  position: absolute; left: 50%; top: 44%; width: 200px; height: 200px; margin: -100px 0 0 -100px;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.demo-rock img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px #000a); transition: scale 160ms ease-out; scale: var(--size, 1); }
.demo-rock.hit img { animation: hit 140ms ease-out; }
.demo-rock.gone { opacity: 0; transform: scale(1.3); transition: opacity 260ms ease-out, transform 260ms ease-out; pointer-events: none; }
@keyframes hit { 40% { transform: scale(0.93) rotate(-2deg); filter: drop-shadow(0 16px 24px #000a) brightness(1.5); } }
.demo-ship { position: absolute; left: 50%; bottom: 22px; width: 56px; margin-left: -28px; filter: drop-shadow(0 0 12px #72dca288); }
.demo-floats { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.float { position: absolute; font-weight: 1000; font-size: 24px; color: #fff; -webkit-text-stroke: 4px #191921; paint-order: stroke fill; text-shadow: 0 2px 8px #000c; animation: rise 700ms ease-out forwards; }
.float.crit { color: var(--coral); font-size: 28px; }
.float.done { left: 0; right: 0; top: 40%; text-align: center; font-size: 26px; color: var(--sand); animation: pop 1400ms ease-out forwards; }
.float.done small { display: block; font-size: 15px; font-weight: 700; color: var(--gold); }
.shard { position: absolute; width: 14px; height: 14px; background: var(--sand); clip-path: polygon(50% 0, 100% 70%, 20% 100%); animation: fly 600ms ease-out forwards; }
@keyframes rise { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -54px); opacity: 0; } }
@keyframes pop { 0% { transform: translateY(8px); opacity: 0; } 15% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) rotate(220deg); opacity: 0; } }
.demo figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 700; min-height: 2.4em; }

/* ---------------- Aufnahmen ---------------- */
.screens-rail {
  display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain;
  margin-top: 64px; padding: 6px var(--gutter) 22px;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.screens-rail > [role="listitem"] { flex: none; }
.phone { position: relative; width: 230px; padding: 5px; border-radius: 30px; background: #2a2a35; box-shadow: inset 0 -4px 0 #0004; scroll-snap-align: start; }
.phone > img, .phone > video { display: block; width: 100%; height: auto; aspect-ratio: 620 / 1347; object-fit: cover; border-radius: 25px; background: #0f1020; }
.screens-rail figcaption { margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--muted); text-align: center; }

/* ---------------- FAQ ---------------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 900; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--mint); font-weight: 900; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 8px; color: var(--soft); font-size: 16px; }

/* ---------------- Finale ---------------- */
.finale { position: relative; min-height: 680px; display: flex; align-items: center; overflow: clip; padding: 100px 0; }
.finale-art { position: absolute; inset: 0; pointer-events: none; }
.finale-art::before { content: ''; position: absolute; width: 70vw; aspect-ratio: 1; left: -20vw; top: 10%; background: radial-gradient(closest-side, #72dca226, transparent 70%); }
.finale-ship { position: absolute; left: 18vw; top: 58%; width: 110px; rotate: 38deg; }
.finale-ship img { position: relative; width: 100%; filter: drop-shadow(0 0 22px #72dca277); }
.finale-ship .beam { width: 7px; }
.f3 { width: 260px; left: 30vw; top: -70px; }
.f4 { width: 140px; left: 4vw; top: 16%; filter: brightness(0.8); }
.f5 { width: 220px; right: -60px; bottom: -40px; }
.finale-copy { width: 100%; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.finale-copy > * { max-width: 560px; }
.finale-copy h2 { font-size: clamp(38px, 5.4vw, 72px); }
.finale-copy p { color: var(--soft); font-size: 19px; margin-bottom: 28px; }
.finale-copy .badge-row { justify-content: flex-end; }

/* ---------------- Footer ---------------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 26px 0; background: #0e0e18cc; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; }
.copy { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 15px; font-weight: 700; }
.footer-links a:active { color: var(--text); }

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
  .level-grid, .faq-layout { grid-template-columns: 1fr; }
  .header-links { display: none; }
}
@media (max-width: 760px) {
  .store-badges { display: none; }
  .inner { padding: 0 20px; }
  .site-header { padding: 10px 20px; }

  .hero { align-items: flex-end; min-height: calc(100svh - 61px); padding: 0 0 40px; }
  .hero-rock { width: 150vw; right: -48vw; top: -62vw; }
  .hero-ship { left: 77vw; bottom: auto; top: calc(88vw - 16px); width: 50px; }
  .b1 { width: 40px; right: 72vw; top: 20vw; }
  .b2 { width: 32px; right: 4vw; top: 112vw; }
  .b3 { display: none; }
  .f1 { width: 150px; left: -60px; bottom: auto; top: 70vw; }
  .f2 { display: none; }
  h1 { font-size: clamp(44px, 13vw, 64px); margin-bottom: 18px; }
  .lead { font-size: 18px; margin-bottom: 24px; }
  .badge-row { gap: 12px; }
  .badge-row .badge img { height: 46px; }

  .descent { padding-top: 88px; }
  .descent-head { text-align: left; }
  .descent-head p { font-size: 18px; margin: 0; }
  .stops { gap: 56px; padding-bottom: 40px; }
  .stop { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .stop:nth-child(even) .stop-art { order: 0; }
  .stop .stop-art { width: 62%; justify-self: end; }
  .stop:nth-child(even) .stop-art { justify-self: start; }
  .stop-copy, .stop:nth-child(even) .stop-copy { justify-self: stretch; max-width: none; position: relative; padding: 16px 18px; border-radius: 20px; background: #12121ee6; box-shadow: inset 0 0 0 1px var(--line); }
  .stop p { font-size: 17px; }

  .boss { min-height: 0; padding-top: 108vw; padding-bottom: 56px; }
  .boss-rock { width: 120vw; right: -30vw; top: 0; }
  .b4 { left: 6vw; top: 8vw; width: 48px; }
  .b5 { right: 70vw; top: 70vw; width: 40px; }
  .boss-copy p { font-size: 18px; }

  .section { padding: 72px 0; }
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .screens-rail { padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; gap: 16px; margin-top: 48px; }
  .phone { width: 190px; }

  .finale { min-height: 0; padding: 300px 0 64px; align-items: flex-end; }
  .finale-ship { left: 20vw; top: 150px; width: 72px; }
  .f3 { width: 180px; left: 46vw; top: -30px; }
  .f4 { width: 90px; left: -20px; top: 40px; }
  .f5 { display: none; }
  .finale-copy { align-items: flex-start; text-align: left; }
  .finale-copy .badge-row { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .impact, .beam, .demo-beam, .demo-rock.hit img, .float, .shard { animation: none; }
  .float, .shard { display: none; }
  .float.done { display: block; }
  .demo-bar i, .demo-rock.gone, .demo-rock img { transition: none; }
}
