/* pixselup.com · Farben aus branding/README.md, Pink nur als Akzent */
@font-face {
  font-family: "Figtree";
  src: url("/assets/figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0E1222;
  --night-deep: #080B16;
  --ink: #F0F2F5;
  --ink-soft: rgba(240, 242, 245, .62);
  --ink-faint: rgba(240, 242, 245, .34);
  --pink: #F71586;
  --pink-light: #FD75CC;
  --pitch: 28px; /* Pixelabstand der Wand, muss zu site.js passen */
}

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

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Die Wand: dunkle LED-Punkte als Muster, das Licht kommt per Canvas darueber */
.wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 40%, var(--night-deep) 100%),
    var(--night);
}
.wall__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(240, 242, 245, .085) 0 1.6px, transparent 2.2px);
  background-size: var(--pitch) var(--pitch);
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 45%, #000 35%, transparent 100%);
          mask-image: radial-gradient(130% 100% at 50% 45%, #000 35%, transparent 100%);
}
.wall__light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 7vh, 80px) 24px 24px;
  pointer-events: none; /* die Wand darunter bleibt spielbar */
}
.stage a { pointer-events: auto; }

.logo {
  margin: 0;
  width: min(560px, 82vw);
  line-height: 0;
}
.logo img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.claim {
  margin: clamp(20px, 4vh, 36px) 0 0;
  font-weight: 800;
  font-size: clamp(24px, 4.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.sub {
  margin: 14px 0 0;
  max-width: 30em;
  color: var(--ink-soft);
  font-weight: 450;
  font-size: clamp(15.5px, 1.9vw, 18px);
  text-wrap: balance;
}

.cta {
  margin-top: clamp(26px, 5vh, 40px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--night);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(247, 21, 134, 0);
  transition: transform .18s ease, box-shadow .25s ease, background-color .18s ease;
}
.cta b { font-weight: 800; }
.cta__icon { flex: none; }
.cta:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(247, 21, 134, .22), 0 10px 40px -8px rgba(247, 21, 134, .55);
}
.cta:active { transform: translateY(0); }
.cta:focus-visible {
  outline: 3px solid var(--pink-light);
  outline-offset: 4px;
}

.more {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(240, 242, 245, .16);
  background: rgba(14, 18, 34, .6);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, box-shadow .25s ease;
}
.more a svg { flex: none; }
.more a:hover {
  color: var(--ink);
  border-color: var(--pink-light);
  box-shadow: 0 0 24px -6px rgba(247, 21, 134, .6);
}
.more a:focus-visible {
  outline: 3px solid var(--pink-light);
  outline-offset: 3px;
}

/* HUD unten: XP-Balken wie in den Canva-Vorlagen */
.hud {
  position: relative;
  z-index: 1;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 24px calc(20px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.xp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.xp__lvl b { color: var(--ink); font-weight: 800; }
.xp__bar { display: inline-flex; gap: 3px; }
.xp__bar i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(240, 242, 245, .1);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.xp__bar i.on {
  background: var(--pink);
  box-shadow: 0 0 10px rgba(247, 21, 134, .7);
}
.xp__hint {
  color: var(--ink-faint);
  font-weight: 600;
  transition: opacity .6s ease;
}
.xp.played .xp__hint { opacity: 0; }
.xp.levelup .xp__lvl b { color: var(--pink-light); }
.xp.levelup .xp__bar i {
  background: var(--pink-light);
  box-shadow: 0 0 14px rgba(253, 117, 204, .9);
}

.copy {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12.5px;
  letter-spacing: .04em;
}

/* Ohne JavaScript oder ohne Maus gibt es nichts zu spielen */
.no-play .xp { display: none; }

@media (max-width: 420px) {
  .xp { gap: 9px; letter-spacing: .1em; flex-wrap: wrap; justify-content: center; }
  .xp__bar i { width: 10px; height: 10px; }
  /* drei Kanaele sollen auf dem Handy in eine Zeile passen */
  .more { gap: 6px; }
  .more a { padding: 0 12px 0 10px; gap: 6px; font-size: 14.5px; }
}

@media (max-height: 520px) {
  .logo { width: min(380px, 60vw); }
  .sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .xp__bar i, .xp__hint, .more a { transition: none; }
}
