/* Launcher — nutzt ausschließlich die Tokens und Bausteine aus
   /theme/nexus-theme.css. Hier steht nur das Seitenlayout. */

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--nx-bg);
  color: var(--nx-ink);
  font-family: var(--nx-font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--nx-accent-soft);
  outline-offset: 3px;
}

/* Hintergrund: dasselbe wandernde Licht wie in den Spielen. */
.aurora {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 24% 12%, rgba(124, 58, 237, 0.3), transparent 64%),
    radial-gradient(30% 26% at 82% 16%, rgba(255, 92, 200, 0.14), transparent 66%),
    radial-gradient(46% 38% at 54% 96%, rgba(76, 29, 149, 0.32), transparent 68%),
    linear-gradient(180deg, var(--nx-bg) 0%, var(--nx-bg-2) 56%, var(--nx-bg-3) 100%);
  animation: drift 44s var(--nx-ease) infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-1.2%, -1%, 0) scale(1.04);
  }
  to {
    transform: translate3d(1.2%, 1.4%, 0) scale(1.09);
  }
}

.page {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Kopfzeile ------------------------------------------------------------ */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-space-4);
  padding: 26px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--nx-ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--nx-line-strong);
  background: linear-gradient(160deg, rgba(185, 164, 255, 0.24), rgba(139, 92, 246, 0.08));
  color: var(--nx-accent-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 34px -14px var(--nx-glow);
}

.brand__name {
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand__name span {
  color: var(--nx-accent-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-pill);
  background: var(--nx-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-nav a {
  padding: 8px 14px;
  border-radius: var(--nx-radius-pill);
  color: var(--nx-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--nx-dur) var(--nx-ease),
    background var(--nx-dur) var(--nx-ease);
}

.site-nav a:hover {
  color: var(--nx-ink);
  background: var(--nx-surface-2);
}

/* Hero ----------------------------------------------------------------- */

.hero {
  padding: clamp(40px, 8vw, 88px) 0 clamp(30px, 5vw, 52px);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--nx-accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7.4vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--nx-accent-soft), var(--nx-accent) 44%, var(--nx-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 22px 0 0;
  max-width: 56ch;
  color: var(--nx-muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.6;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 8px 15px;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius-pill);
  background: var(--nx-surface);
  color: var(--nx-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nx-good);
  box-shadow: 0 0 12px rgba(82, 224, 176, 0.9);
}

.sep {
  color: var(--nx-faint);
}

/* Spiele-Karten -------------------------------------------------------- */

.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nx-space-4);
  margin-top: var(--nx-space-6);
}

.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform var(--nx-dur) var(--nx-ease),
    border-color var(--nx-dur) var(--nx-ease),
    box-shadow var(--nx-dur) var(--nx-ease);
}

.game:hover {
  transform: translateY(-4px);
  border-color: var(--nx-line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 34px 80px -34px rgba(0, 0, 0, 0.95),
    0 0 60px -28px var(--nx-glow);
}

.game__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 132px;
  border-bottom: 1px solid var(--nx-line);
  color: var(--nx-accent-soft);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(139, 92, 246, 0.34), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.game__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}

.game__art svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px var(--nx-glow));
}

.game__art--madn {
  color: #ffb0e2;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(255, 92, 200, 0.3), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.game__art--imposter {
  color: #d7c4ff;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(166, 75, 255, 0.34), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.game__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
}

.game__top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--nx-radius-pill);
  border: 1px solid rgba(185, 164, 255, 0.26);
  background: rgba(139, 92, 246, 0.12);
  color: var(--nx-accent-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag--quiet {
  border-color: var(--nx-line);
  background: var(--nx-surface);
  color: var(--nx-muted);
}

.game h2 {
  margin: 2px 0 0;
  font-size: 1.28rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.game p {
  margin: 0;
  color: var(--nx-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.game__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.game__meta li {
  padding: 5px 10px;
  border-radius: var(--nx-radius-xs);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--nx-line);
  color: var(--nx-muted);
  font-size: 0.72rem;
}

.game__meta b {
  color: var(--nx-ink-soft);
  font-weight: 700;
}

.game__cta {
  width: 100%;
  margin-top: auto;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: space-between;
}

.game__cta span {
  transition: transform var(--nx-dur) var(--nx-ease);
}

.game__cta:hover span {
  transform: translateX(4px);
}

/* Hinweis -------------------------------------------------------------- */

.hint {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: var(--nx-space-4);
  padding: 18px 20px;
  border-radius: var(--nx-radius);
}

.hint__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--nx-line-strong);
  background: rgba(139, 92, 246, 0.12);
  color: var(--nx-accent-soft);
}

.hint p {
  margin: 3px 0 0;
  color: var(--nx-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hint b {
  color: var(--nx-ink-soft);
}

/* Fußzeile ------------------------------------------------------------- */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 42px 0 0;
  color: var(--nx-faint);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

/* Mobil ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .games {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .game {
    flex-direction: row;
  }

  .game__art {
    flex: 0 0 128px;
    height: auto;
    border-bottom: 0;
    border-right: 1px solid var(--nx-line);
  }

  .game__body {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .page {
    width: calc(100% - 28px);
  }

  .site-head {
    padding-top: 18px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .game {
    flex-direction: column;
  }

  .game__art {
    flex: none;
    height: 108px;
    border-right: 0;
    border-bottom: 1px solid var(--nx-line);
  }

  .site-foot {
    justify-content: flex-start;
    padding-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora {
    animation: none;
  }

  .game,
  .game__cta span {
    transition: none;
  }
}
