/* ==========================================================================
   ExoMC — Design Tokens (matched to store.exomc.net visual system)
   Brand: ExoMC · IP: exomc.net · Locale: de
   Font: Sora · Primary: #d946ef · Surfaces: #0A0612 / #160D1F
   ========================================================================== */

:root {
  /* —— Brand —— */
  --brand: "ExoMC";
  --brand-ip: "exomc.net";

  /* —— Color: store surfaces —— */
  --bg: #0a0612;
  --bg-elevated: #160d1f;
  --bg-soft: #1a1228;
  --ink: #f6f0fb;
  --ink-muted: #9b8eae;
  --ink-faint: #7a6f8c;
  --ink-darker: #ddd4e8;
  --line: #2a1b38;
  --line-strong: #3a274d;

  /* —— Color: store primary (magenta) —— */
  --accent-cyan: #7dd3fc;
  --accent-violet: #d946ef;
  --accent-magenta: #d946ef;
  --accent: #d946ef;
  --accent-hover: #e879f9;
  --accent-pressed: #c026d3;
  --accent-soft: rgb(217 70 239 / 0.16);
  --accent-glow: rgb(217 70 239 / 0.35);
  --accent-light: #f0abfc;
  --brand-grad: linear-gradient(180deg, #7dd3fc 0%, #d946ef 58%, #f0abfc 100%);
  --brand-grad-soft: linear-gradient(115deg, rgb(125 211 252 / 0.18), rgb(217 70 239 / 0.14), rgb(240 171 252 / 0.16));
  --discord: #5865f2;
  --discord-deep: #4046b8;

  /* —— Color: semantic —— */
  --ok: #3dd68c;
  --warn: #f0b429;
  --danger: #e5484d;
  --info: #7dd3fc;

  /* —— Fonts (store: Sora) —— */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;

  /* —— Type scale —— */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.6;
  --tracking-display: 0.02em;

  /* —— Spacing —— */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* —— Layout —— */
  --wrap: 72rem;
  --nav-h: 4rem;
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --cs-bg-fade: 55vh;
  --cs-hero-height: 55vh;

  /* —— Radius / border (store) —— */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --border-w: 3px;

  /* —— Elevation —— */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 0 0 1px var(--accent-soft), 0 14px 36px var(--accent-glow);

  /* —— Motion —— */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration: 240ms;
  --duration-slow: 400ms;

  /* —— Focus —— */
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* —— Background image (store) —— */
  --bg-image: url("/assets/img/store-bg.webp");
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  background-color: var(--bg);
}

body {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-darker);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Store-style blurred hero background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgb(10 6 18 / 0.75) 0%, var(--bg) var(--cs-bg-fade)),
    var(--bg-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -2;
  pointer-events: none;
}

/* Floating particles (store) */
.cs-particles {
  display: none !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cs-hero-height);
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.cs-particles span {
  position: absolute;
  bottom: -16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0;
  animation: cs-rise 15s linear infinite;
}

.cs-particles span:nth-child(1)  { left: 5%;  width: 6px;  height: 6px;  animation-duration: 13s; animation-delay: -1s; }
.cs-particles span:nth-child(2)  { left: 13%; width: 9px;  height: 9px;  animation-duration: 18s; animation-delay: -6s; animation-name: cs-rise-b; }
.cs-particles span:nth-child(3)  { left: 21%; width: 5px;  height: 5px;  animation-duration: 16s; animation-delay: -3s; }
.cs-particles span:nth-child(4)  { left: 29%; width: 8px;  height: 8px;  animation-duration: 20s; animation-delay: -9s; animation-name: cs-rise-b; }
.cs-particles span:nth-child(5)  { left: 37%; width: 6px;  height: 6px;  animation-duration: 14s; animation-delay: -2s; }
.cs-particles span:nth-child(6)  { left: 45%; width: 10px; height: 10px; animation-duration: 22s; animation-delay: -11s; animation-name: cs-rise-b; }
.cs-particles span:nth-child(7)  { left: 53%; width: 5px;  height: 5px;  animation-duration: 15s; animation-delay: -5s; }
.cs-particles span:nth-child(8)  { left: 61%; width: 8px;  height: 8px;  animation-duration: 19s; animation-delay: -8s; animation-name: cs-rise-b; }
.cs-particles span:nth-child(9)  { left: 69%; width: 6px;  height: 6px;  animation-duration: 13s; animation-delay: -4s; }
.cs-particles span:nth-child(10) { left: 77%; width: 9px;  height: 9px;  animation-duration: 21s; animation-delay: -10s; animation-name: cs-rise-b; }
.cs-particles span:nth-child(11) { left: 85%; width: 5px;  height: 5px;  animation-duration: 16s; animation-delay: -1.5s; }
.cs-particles span:nth-child(12) { left: 92%; width: 8px;  height: 8px;  animation-duration: 18s; animation-delay: -7s; animation-name: cs-rise-b; }
.cs-particles span:nth-child(13) { left: 33%; width: 4px;  height: 4px;  animation-duration: 17s; animation-delay: -13s; }
.cs-particles span:nth-child(14) { left: 66%; width: 4px;  height: 4px;  animation-duration: 19s; animation-delay: -14s; animation-name: cs-rise-b; }

@keyframes cs-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  12%  { opacity: 0.18; }
  30%  { transform: translate(10px, -15vh); }
  55%  { transform: translate(-10px, -28vh); }
  80%  { transform: translate(8px, -40vh); opacity: 0.18; }
  100% { transform: translate(-4px, -50vh); opacity: 0; }
}

@keyframes cs-rise-b {
  0%   { transform: translate(0, 0); opacity: 0; }
  12%  { opacity: 0.14; }
  28%  { transform: translate(-11px, -14vh); }
  52%  { transform: translate(12px, -27vh); }
  80%  { transform: translate(-8px, -41vh); opacity: 0.14; }
  100% { transform: translate(6px, -50vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-particles { display: none; }
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  transition: color var(--duration-fast) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

p {
  color: var(--ink-muted);
  max-width: 42rem;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - var(--space-5) * 2, var(--wrap));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border-w) solid transparent;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform 0.12s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgb(217 70 239 / 0.35);
}

.btn--primary:hover {
  color: #ffffff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 12px rgb(232 121 249 / 0.55);
  filter: none;
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Panel (store card surface)
   -------------------------------------------------------------------------- */

.panel {
  background: var(--bg-elevated);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.panel--soft {
  background: var(--bg-soft);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 1000;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: min(22rem, calc(100vw - var(--space-6)));
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: var(--border-w) solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow);
  animation: toast-in var(--duration) var(--ease-out);
}

.toast--ok {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
}

.toast--warn {
  border-color: color-mix(in srgb, var(--warn) 40%, var(--line));
}

.toast--danger {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  a,
  .toast {
    transition: none;
    animation: none;
  }
}
/* ExoMC — hero + top nav */

/* ---------- Top nav — floating dock ---------- */
.top {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  height: auto;
  min-height: 0;
  padding: 0;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  border-bottom: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}

.top__row {
  pointer-events: auto;
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  height: auto;
  min-height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border: var(--border-w) solid var(--line);
  border-radius: 999px;
  background: rgb(22 13 31 / 0.82);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 14px 40px rgb(0 0 0 / 0.45),
    0 0 0 1px rgb(217 70 239 / 0.06) inset;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 0;
  color: var(--ink);
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(217 70 239 / 0.28);
  box-shadow: 0 8px 22px rgb(217 70 239 / 0.22);
}

.brand span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--mute);
  border-radius: 999px;
  border-bottom: none;
  box-shadow: none;
  background-image: none;
  transition: color 0.12s ease, background 0.12s ease;
}

.links a:hover,
.links a:focus-visible,
.links a.on,
.links a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none !important;
  outline: none;
}

.top__end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-left: 0;
  flex-shrink: 0;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
}

.live .dot,
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  animation: live-pulse 2.4s var(--ease) infinite;
}

.top__end [data-copy-ip],
.top__end button {
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  border: var(--border-w) solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 8px rgb(217 70 239 / 0.35);
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.top__end [data-copy-ip]:hover,
.top__end button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 12px rgb(232 121 249 / 0.55);
}

@media (max-width: 899px) {
  .top {
    width: max-content;
    max-width: calc(100% - 1rem);
    top: calc(0.65rem + env(safe-area-inset-top, 0px));
  }

  .top__row {
    width: max-content;
    max-width: 100%;
    padding: 0.4rem 0.55rem;
    gap: 0.45rem;
  }

  .links {
    display: none;
  }

  .brand span {
    display: none;
  }
}

@media (max-width: 420px) {
  .live {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
  color: var(--ink);
  background: transparent;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  /* page-level blurred store BG handles atmosphere */
  will-change: auto;
  transform: none;
  transition: none;
  animation: none;
}

/* Light veil so lobby stays visible — no color wash */
.hero__bg::before,
.hero__bg::after {
  content: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin-inline: auto;
  max-width: 40rem;
  animation: hero-fade-up 0.9s var(--ease) both;
}

.hero__mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 12vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 28px rgb(217 70 239 / 0.28));
}

.hero__tagline,
.hero__lead {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--mute);
}

.hero__players,
.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.hero__online-dot,
.hero__players .dot,
.hero__live .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  animation: live-pulse 2.4s var(--ease) infinite;
}

.hero__players-label {
  color: var(--mute);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.hero__cta,
.hero__actions [data-copy-ip] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  border: var(--border-w) solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgb(217 70 239 / 0.4);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.hero__cta:hover,
.hero__actions [data-copy-ip]:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 14px rgb(232 121 249 / 0.55);
  transform: scale(1.02);
  filter: none;
}

.hero__store,
.hero__actions a:not(.hero__cta) {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: rgb(22 13 31 / 0.55);
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.hero__store:hover,
.hero__actions a:not(.hero__cta):hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Motion ---------- */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 0.45rem color-mix(in srgb, var(--ok) 0%, transparent);
    opacity: 0.85;
  }
}

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

  .live .dot,
  .dot,
  .hero__online-dot,
  .hero__players .dot,
  .hero__live .dot {
    animation: none;
  }

  .hero__cta:hover,
  .hero__actions [data-copy-ip]:hover {
    transform: none;
  }
}
/* ==========================================================================
   ExoMC — Sections
   Games · Join · Community · Footer · Pages · Auth · Reveal
   Depends on tokens.css (favicon E cyan→violet→magenta)
   ========================================================================== */

.sec {
  padding-block: var(--section-y);
}

.wrap--narrow {
  width: min(100% - var(--space-5) * 2, 40rem);
  margin-inline: auto;
}

/* Reveal base lives in Motion system (below) */

/* --------------------------------------------------------------------------
   Games — alternating rows, no cards
   -------------------------------------------------------------------------- */

.games__head {
  max-width: 36rem;
  margin-bottom: var(--space-7);
}

.games__head h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-2xl));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.games__head p {
  margin-top: var(--space-3);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink-muted);
}

.rows {
  display: grid;
  gap: var(--space-8);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  padding-block: 0;
  border-top: none;
  transition-delay: 0ms;
}

.row.reveal.is-visible:nth-child(1) { transition-delay: 0ms; }
.row.reveal.is-visible:nth-child(2) { transition-delay: 80ms; }
.row.reveal.is-visible:nth-child(3) { transition-delay: 120ms; }
.row.reveal.is-visible:nth-child(4) { transition-delay: 160ms; }

.row:last-child {
  border-bottom: none;
}

.row--flip {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.row--flip .row__media {
  order: 2;
}

.row--flip .row__copy {
  order: 1;
  margin-inline-start: 0;
  text-align: start;
}

.row--flip .row__top {
  justify-content: flex-start;
}

.row__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(12rem, 28vw, 18rem);
  border-radius: var(--radius);
  border: var(--border-w) solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.row__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(12rem, 28vw, 18rem);
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform var(--duration-slow) var(--ease-out);
}

.row:hover .row__media {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgb(217 70 239 / 0.28);
}

.row:hover .row__media img {
  transform: scale(1.04);
}

.row__copy {
  max-width: 32rem;
}

.row__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
}

.row__top h3 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-lg), 2.8vw, var(--fs-xl));
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.row__top span {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.25rem 0.55rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.row__copy p {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  max-width: none;
}

@media (max-width: 800px) {
  .row,
  .row--flip {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .row--flip .row__media,
  .row--flip .row__copy {
    order: initial;
  }

  .row__media,
  .row__media img {
    min-height: 14rem;
  }
}

@media (max-width: 640px) {
  .rows {
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   Join — steps + Minecraft screenshot
   -------------------------------------------------------------------------- */

.join__head {
  max-width: 42rem;
  margin-bottom: var(--space-7);
}

.join__head h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-2xl));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.join__head p {
  margin-top: var(--space-3);
  font-size: var(--fs-md);
  color: var(--ink-muted);
}

.join__platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin-top: var(--space-4);
}

.join__platform {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: var(--border-w) solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.25);
}

.join__platform svg {
  flex: none;
  opacity: 0.95;
}

.join__platform--java {
  border-color: rgb(217 70 239 / 0.55);
  background: linear-gradient(180deg, rgb(217 70 239 / 0.22), rgb(22 13 31 / 0.95));
  color: #ffffff;
  box-shadow: 0 0 14px rgb(217 70 239 / 0.28);
}

.join__platform--bedrock {
  border-color: rgb(125 211 252 / 0.45);
  background: linear-gradient(180deg, rgb(125 211 252 / 0.16), rgb(22 13 31 / 0.95));
  color: #e8f7ff;
  box-shadow: 0 0 14px rgb(125 211 252 / 0.16);
}

.join__platforms-note {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.join__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.join__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.join__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}

.join__n {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--accent);
  border: var(--border-w) solid var(--accent);
  box-shadow: 0 0 10px rgb(217 70 239 / 0.35);
}

.join__steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.join__steps p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.join__steps code,
.join__ip code {
  font-family: var(--font-body);
  font-size: 0.95em;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
}

.join__shot {
  margin: 0;
  justify-self: center;
}

.join__shot picture,
.join__shot img {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.join__shot figcaption {
  margin-top: var(--space-3);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--ink-faint);
  text-align: center;
  max-width: 22rem;
}

.join__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding: var(--space-5);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.join__ip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.join__ip-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.join__ip code {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  padding: 0.35rem 0.65rem;
}

@media (max-width: 800px) {
  .join__grid {
    grid-template-columns: 1fr;
  }

  .join__shot {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   Strip + Why + Community panel
   -------------------------------------------------------------------------- */

.strip {
  padding-block: var(--space-5);
}

.strip__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: var(--space-5);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.strip__item {
  display: grid;
  gap: 0.35rem;
}

.strip__item strong {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.strip__item span {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.45;
}

@media (max-width: 700px) {
  .strip__row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.why__head {
  max-width: 36rem;
  margin-bottom: var(--space-7);
}

.why__head h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-2xl));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.why__head p {
  margin-top: var(--space-3);
  font-size: var(--fs-md);
  color: var(--ink-muted);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.why__item {
  padding: var(--space-5);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.why__item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgb(217 70 239 / 0.22);
  transform: scale(1.02);
}

.why__item h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--accent);
}

.why__item p {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--ink-muted);
}

.why__discord {
  margin-top: var(--space-4);
}

.why__ips {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.why__ips li {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.why__ip-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.why__ips code {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0;
  word-break: break-all;
}

.why__ip-copy {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
}

.why__ip-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

@media (max-width: 520px) {
  .why__ips li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .why__ip-copy {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
}

.community__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  padding: var(--space-5);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.community__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3.2vw, var(--fs-2xl));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.community__copy > p {
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  max-width: 32rem;
}

.community__visual {
  overflow: hidden;
  min-height: clamp(12rem, 26vw, 17rem);
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: var(--border-w) solid var(--line);
}

.community__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(12rem, 26vw, 17rem);
  object-fit: cover;
}

@media (max-width: 800px) {
  .community__panel {
    grid-template-columns: 1fr;
  }

  .community__visual {
    order: -1;
  }
}

/* legacy join panel kept harmless if unused */
.join__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-5);
  padding: var(--space-5) 0;
  border-block: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}

.join__panel h2 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

.join__panel p {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  max-width: none;
}

.join__panel strong {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 520px) {
  .join__panel {
    flex-direction: column;
    align-items: stretch;
  }

  .join__panel .btn {
    width: 100%;
  }

  .join__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .join__bar .btn {
    width: 100%;
  }
}

.community {
  padding-top: var(--space-2);
}

.community__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.community__row h2 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

.community__row p {
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  max-width: none;
}

.community__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (max-width: 520px) {
  .community__actions {
    width: 100%;
  }

  .community__actions .btn {
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   Footer — quiet
   -------------------------------------------------------------------------- */

.foot {
  position: relative;
  z-index: 1;
  padding: var(--space-7) 0 calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  border-top: var(--border-w) solid var(--line);
  background: rgb(10 6 18 / 0.55);
}

.foot__rights {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.foot__notice {
  margin-top: var(--space-2);
  max-width: 28rem;
  font-size: 0.7rem;
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

.foot__line {
  height: var(--border-w);
  margin: var(--space-5) 0;
  background: var(--line);
  border: 0;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.foot__nav a,
.foot__nav button {
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

.foot__nav a:hover,
.foot__nav button:hover {
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Pages — Regeln / Impressum (strong display headlines)
   -------------------------------------------------------------------------- */

.page {
  padding: calc(var(--space-7) + env(safe-area-inset-top, 0px)) 0 var(--space-9);
}

.page__intro {
  margin-bottom: var(--space-7);
}

.page__intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--ink);
}

.page__lead {
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  max-width: 36rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
}

/* TOC (Regeln) — store-style chip row */
.toc {
  position: sticky;
  top: calc(5.1rem + env(safe-area-inset-top, 0px));
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-6);
  padding: 0.85rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: rgb(22 13 31 / 0.92);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--shadow);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc a,
.toc button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  min-width: 3.25rem;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-darker);
  background: var(--bg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
  transition:
    color 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.12s ease;
}

.toc a:hover,
.toc a:focus-visible,
.toc button:hover,
.toc button:focus-visible {
  color: #ffffff;
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgb(217 70 239 / 0.35);
  outline: none;
}

.toc a:active,
.toc button:active {
  transform: scale(0.97);
}

.toc a[aria-current="true"],
.toc a.is-active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgb(217 70 239 / 0.4);
}

/* Rule list */
.list {
  display: grid;
  gap: var(--space-3);
}

.rule {
  scroll-margin-top: calc(5.5rem + 5.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4) var(--space-5);
  align-items: start;
  padding: var(--space-5);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rule:hover {
  border-color: rgb(217 70 239 / 0.45);
  box-shadow: 0 0 18px rgb(217 70 239 / 0.16);
}

.rule > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--bg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
}

.rule h2 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--ink);
}

.rule p {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  max-width: none;
}

.rule p + p {
  margin-top: var(--space-3);
}

/* Impressum blocks */
.block {
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-3);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.block:hover {
  border-color: rgb(217 70 239 / 0.4);
  box-shadow: 0 0 18px rgb(217 70 239 / 0.14);
}

.block h2 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.block p,
.block address {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  font-style: normal;
  max-width: none;
}

.block address p + p {
  margin-top: 0.2rem;
}

.block strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.block a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.block a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Impressum layout polish */
.imprint {
  display: grid;
  gap: var(--space-3);
}

.imprint .block {
  margin-bottom: 0;
}

.imprint__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.imprint__contacts li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.imprint__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.imprint__contacts a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.imprint__contacts a:hover {
  color: var(--accent-hover);
}

.page--impressum .page__intro h1 {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.end {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.end--card {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  border-top: var(--border-w) solid var(--line);
  background: var(--bg-elevated);
  justify-content: flex-start;
}

.end__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
}

@media (max-width: 520px) {
  .imprint__contacts li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 520px) {
  .rule {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .page__intro h1 {
    font-size: clamp(2.25rem, 14vw, 3.25rem);
  }
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.auth {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-7) 0;
}

.auth__box {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  width: 100%;
  text-align: center;
  animation: auth-up var(--duration-slow) var(--ease-out) both;
}

.auth__intro .brand,
.auth .brand {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.auth__intro h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 5vw, var(--fs-2xl));
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

.auth__intro .sub,
.auth .sub {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.auth__panel {
  padding: var(--space-5) 0;
  text-align: start;
  border-block: 1px solid var(--line);
  background: transparent;
}

.auth__panel .card {
  display: grid;
  gap: var(--space-4);
}

.auth__panel .card h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-md), 4vw, var(--fs-lg));
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--ink);
}

.auth__panel .actions {
  display: grid;
  gap: var(--space-3);
}

.auth__foot {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

.auth__foot a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth__foot a:hover {
  color: var(--accent-hover);
}

@keyframes auth-up {
  from {
    opacity: 0;
    transform: translateY(0.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 520px) {
  .auth__panel .actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth__box {
    animation: none;
  }
}
/* ==========================================================================
   ExoMC — Auth pages
   Centered minimal form · clean field borders · brand accent · ghost links
   Depends on tokens.css (ink surfaces + favicon E accent)
   No purple.
   ========================================================================== */

.wrap--narrow {
  width: min(100% - var(--space-5) * 2, 24rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Shell — centered, full viewport
   -------------------------------------------------------------------------- */

.auth {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    max(var(--space-6), env(safe-area-inset-top, 0px))
    var(--space-4)
    max(var(--space-6), env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(107, 95, 242, 0.1), transparent 55%),
    var(--bg);
}

.auth__box {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  width: 100%;
  text-align: center;
  animation: auth-up var(--duration-slow) var(--ease-out) both;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.auth__intro .brand,
.auth .brand {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth__intro h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 5.5vw, var(--fs-2xl));
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

.auth__intro .sub,
.auth .sub {
  margin-top: var(--space-3);
  margin-inline: auto;
  max-width: 22rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Panel + form
   -------------------------------------------------------------------------- */

.auth__panel {
  padding: var(--space-5) 0;
  text-align: start;
  border-block: 1px solid var(--line);
  background: transparent;
}

.auth__form {
  display: grid;
  gap: var(--space-4);
}

.auth__submit {
  width: 100%;
  margin-top: var(--space-2);
}

/* Pause / notice cards (legacy login pause UI) */
.auth__panel .card {
  display: grid;
  gap: var(--space-4);
}

.auth__panel .card h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-md), 4vw, var(--fs-lg));
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
}

.auth__panel .actions {
  display: grid;
  gap: var(--space-3);
}

.auth__panel .actions .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Fields — clean borders, charcoal fill
   -------------------------------------------------------------------------- */

.field {
  display: grid;
  gap: var(--space-2);
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-muted);
}

.field__input,
.auth input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.auth textarea,
.auth select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.3;
  color: var(--ink);
  background: var(--bg-elevated);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
  appearance: none;
}

.field__input::placeholder,
.auth input::placeholder,
.auth textarea::placeholder {
  color: var(--ink-faint);
}

.field__input:hover,
.auth input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):hover,
.auth textarea:hover,
.auth select:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong));
}

.field__input:focus,
.field__input:focus-visible,
.auth input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.auth input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus-visible,
.auth textarea:focus,
.auth textarea:focus-visible,
.auth select:focus,
.auth select:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-soft);
  box-shadow: var(--focus-ring);
}

.field__input:disabled,
.auth input:disabled,
.auth textarea:disabled,
.auth select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.field__hint,
.field__error {
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
}

.field__hint {
  color: var(--ink-faint);
}

.field__error {
  color: var(--danger);
}

.field--invalid .field__input,
.field__input[aria-invalid="true"] {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--line-strong));
}

/* --------------------------------------------------------------------------
   Buttons — brand gradient primary · ghost
   -------------------------------------------------------------------------- */

.auth .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.auth .btn:active {
  transform: translateY(1px);
}

.auth .btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.auth .btn--primary {
  color: #0a0612;
  background: var(--brand-grad);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(192, 32, 254, 0.22), 0 10px 28px var(--accent-glow);
}

.auth .btn--primary:hover {
  color: #0a0612;
  filter: brightness(1.08);
  background: var(--brand-grad);
}

.auth .btn--primary:active {
  filter: brightness(0.95);
  background: var(--brand-grad);
}

.auth .btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.auth .btn--ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Text / ghost links (footer + inline) */
.auth a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
  transition: color var(--duration-fast) var(--ease);
}

.auth a:not(.btn):hover {
  color: var(--accent-hover);
}

.auth a:not(.btn):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.auth__foot {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--ink-muted);
}

.auth__foot a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth__foot a:hover {
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes auth-up {
  from {
    opacity: 0;
    transform: translateY(0.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .auth .btn,
  .auth a,
  .field__input,
  .auth input,
  .auth textarea,
  .auth select {
    transition: none;
  }

  .auth .btn:active {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .auth {
    padding-inline: var(--space-3);
    align-items: start;
    padding-top: max(var(--space-7), env(safe-area-inset-top, 0px));
  }

  .auth__box {
    gap: var(--space-4);
  }

  .auth__panel {
    padding-block: var(--space-4);
  }

  .field__input,
  .auth input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
  .auth textarea,
  .auth select,
  .auth .btn {
    min-height: 3rem;
    font-size: 1rem; /* avoid iOS zoom on focus */
  }
}

@media (min-width: 520px) {
  .auth__panel .actions {
    grid-template-columns: 1fr 1fr;
  }
}
/* ExoMC — Motion system · clean / modern */

:root {
  --motion-accent: #d710f6;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --motion-fast: 180ms;
  --motion-base: 700ms;
  --motion-slow: 1100ms;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-bg-in {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes brand-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 0.45rem transparent;
  }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes media-reveal {
  from {
    opacity: 0;
    clip-path: inset(8% 8% 8% 8% round 0);
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes step-pop {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 1rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes line-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Hero entrance + parallax (transform on .hero__bg) */

.hero__content > * {
  animation: hero-fade-up var(--motion-base) var(--motion-ease) both;
}
.hero__content > *:nth-child(1) { animation-delay: 80ms; }
.hero__content > *:nth-child(2) { animation-delay: 180ms; }
.hero__content > *:nth-child(3) { animation-delay: 280ms; }
.hero__content > *:nth-child(4) { animation-delay: 380ms; }

.hero__mark {
  background-size: 200% 200%;
  animation:
    hero-fade-up var(--motion-base) var(--motion-ease) both,
    brand-shine 8s ease-in-out infinite;
  animation-delay: 80ms, 900ms;
}

/* Live pulse */
.live i,
.hero__online-dot,
.live .dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  animation: live-pulse 1.8s ease-in-out infinite;
}
.live.off i,
.live.off .dot,
.hero__online-dot.off {
  animation: none;
  background: var(--danger, #f07178);
  box-shadow: none;
}

/* Scroll reveal — modern clip + blur */
.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal.is-visible,
.reveal[data-revealed] {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  will-change: auto;
}

.reveal.is-visible .row__media,
.reveal[data-revealed] .row__media,
.row.reveal.is-visible .row__media {
  animation: none;
}

.reveal.is-visible .join__n,
.reveal[data-revealed] .join__n {
  animation: step-pop 0.55s var(--motion-spring) both;
}
.reveal.is-visible .join__steps li:nth-child(1) .join__n { animation-delay: 80ms; }
.reveal.is-visible .join__steps li:nth-child(2) .join__n { animation-delay: 180ms; }
.reveal.is-visible .join__steps li:nth-child(3) .join__n { animation-delay: 280ms; }

.reveal.is-visible .join__shot,
.reveal[data-revealed] .join__shot {
  animation: float-soft 5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.strip__item,
.why__item {
  opacity: 1 !important;
  transform: none !important;
}
.strip.reveal.is-visible .strip__item,
.why.reveal.is-visible .why__item {
  opacity: 1;
  transform: translateY(0);
}
.strip.reveal.is-visible .strip__item:nth-child(1),
.why.reveal.is-visible .why__item:nth-child(1) { transition-delay: 60ms; }
.strip.reveal.is-visible .strip__item:nth-child(2),
.why.reveal.is-visible .why__item:nth-child(2) { transition-delay: 140ms; }
.strip.reveal.is-visible .strip__item:nth-child(3),
.why.reveal.is-visible .why__item:nth-child(3) { transition-delay: 220ms; }

/* Nav scroll state — floating dock */
.top {
  transition:
    transform 0.35s var(--motion-ease),
    opacity 0.35s var(--motion-ease);
}
.top .top__row {
  transition:
    background 0.35s var(--motion-ease),
    border-color 0.35s var(--motion-ease),
    box-shadow 0.35s var(--motion-ease),
    backdrop-filter 0.35s var(--motion-ease);
}
.top.is-scrolled .top__row {
  background: rgb(22 13 31 / 0.92);
  border-color: rgb(217 70 239 / 0.35);
  box-shadow:
    0 16px 44px rgb(0 0 0 / 0.5),
    0 0 18px rgb(217 70 239 / 0.12);
}

.links a {
  position: relative;
  text-decoration: none !important;
  transition:
    color 0.25s var(--motion-ease),
    background 0.25s var(--motion-ease),
    transform 0.25s var(--motion-ease);
}
.links a::after,
.top .links a::after,
.top a::after {
  content: none !important;
  display: none !important;
}
.links a:hover::after,
.links a.on::after,
.links a[aria-current="page"]::after {
  content: none !important;
  transform: none;
}
.links a:hover,
.top .links a:hover,
.top .brand:hover {
  transform: none;
  text-decoration: none !important;
}

.top a,
.top a:hover,
.top a:focus,
.top a:active,
.top a[aria-current="page"] {
  text-decoration: none !important;
}

.brand img {
  transition: transform 0.45s var(--motion-spring), box-shadow 0.35s ease;
}
.brand:hover img {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* Buttons — clean lift + shine */
.btn,
.hero__cta,
.hero__store {
  position: relative;
  overflow: hidden;
  transition:
    color var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    box-shadow 0.35s var(--motion-ease),
    transform 0.35s var(--motion-spring),
    filter 0.35s var(--motion-ease);
}
.btn--primary,
.hero__cta,
.hero__actions [data-copy-ip] {
  background-size: 200% 200%;
  animation: gradient-flow 6s ease infinite;
}
.btn--primary::before,
.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--motion-ease);
  pointer-events: none;
}
.btn--primary:hover::before,
.hero__cta:hover::before {
  transform: translateX(120%);
}
.btn:hover,
.hero__cta:hover,
.hero__store:hover {
  transform: translateY(-3px);
}
.btn--primary:hover,
.hero__cta:hover {
  box-shadow:
    0 0 0 1px rgba(192, 32, 254, 0.28),
    0 16px 40px rgba(107, 95, 242, 0.4);
  filter: brightness(1.06);
  color: #0a0612;
}
.btn:active,
.hero__cta:active,
.hero__store:active {
  transform: translateY(-1px) scale(0.98);
}

/* Media hover zoom — clean */
.row__media {
  transition: box-shadow 0.5s var(--motion-ease), transform 0.5s var(--motion-ease);
}
.row__media img {
  transition: transform 0.9s var(--motion-ease), filter 0.5s ease;
}
.row:hover .row__media {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.row:hover .row__media img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.02);
}

.community__visual img {
  transition: transform 1.1s var(--motion-ease), filter 0.5s ease;
}
.community__panel:hover .community__visual img {
  transform: scale(1.04);
}

.why__item {
  transition:
    opacity 0.7s var(--motion-ease),
    transform 0.7s var(--motion-ease),
    border-color 0.35s ease;
}
.why.reveal.is-visible .why__item:hover {
  transform: translateY(-4px);
  border-top-color: color-mix(in srgb, var(--accent-magenta) 55%, var(--line));
}

.strip__item strong {
  background-size: 200% 200%;
  animation: brand-shine 7s ease-in-out infinite;
}

.join__shot img {
  transition: transform 0.6s var(--motion-spring), filter 0.4s ease;
}
.join__shot:hover img {
  transform: scale(1.03) rotate(-0.5deg);
  filter: drop-shadow(0 22px 48px rgba(107, 95, 242, 0.35));
}

.join__steps li {
  transition: transform 0.35s var(--motion-ease);
}
.join__steps li:hover {
  transform: translateX(6px);
}

/* Toast */
#toast.is-visible {
  animation: toast-in 0.4s var(--motion-spring) both;
}

/* Section heads underline draw */
.games__head h2,
.join__head h2,
.why__head h2,
.community__copy h2 {
  position: relative;
  display: inline-block;
}
.games__head h2::after,
.join__head h2::after,
.why__head h2::after,
.community__copy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-grad);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--motion-ease);
}
.reveal.is-visible .games__head h2::after,
.reveal.is-visible .join__head h2::after,
.reveal.is-visible .why__head h2::after,
.reveal.is-visible .community__copy h2::after,
.games.reveal.is-visible .games__head h2::after,
.join.reveal.is-visible .join__head h2::after,
.why.reveal.is-visible .why__head h2::after,
.community.reveal.is-visible .community__copy h2::after {
  transform: scaleX(1);
  animation: gradient-flow 4s ease infinite;
}

/* Grain — lighter, cleaner */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0 0.4px, transparent 0.5px 3px);
  background-size: 3px 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero__content > *,
  .hero__bg,
  .hero__mark,
  .live i,
  .hero__online-dot {
    animation: none !important;
  }
  .btn:hover,
  .hero__cta:hover,
  .hero__store:hover {
    transform: none;
  }
  body::after { display: none; }
  .join__shot { animation: none !important; }
}

/* —— Compat aliases (agent CSS variants) —— */
:root {
  --mute: var(--ink-muted);
  --primary: var(--accent);
  --primary-hover: var(--accent-hover);
  --primary-soft: var(--accent-soft);
  --primary-light: var(--accent-hover);
  --surface: var(--bg-elevated);
  --err: var(--danger);
  --font: var(--font-body);
  /* keep store radius — do not override to 0.625rem */
}
.wrap--narrow {
  width: min(100% - var(--space-5) * 2, 40rem);
  margin-inline: auto;
}
[data-view][hidden],
[data-view]:not(.is-active) { display: none !important; }
[data-view].is-active { display: block; }
[data-chrome][hidden] { display: none !important; }
#toast[hidden], #toast:not(.is-visible) { display: none; }
#toast.is-visible { display: flex; }
.app--auth .top, .app--auth .foot { display: none; }
.hero__content { position: relative; z-index: 1; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* —— Layout fixes (floating dock) —— */
.top__row {
  width: max-content !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  justify-content: center !important;
}
.hero__content {
  width: min(100% - 2.5rem, var(--wrap)) !important;
}
.main {
  padding-top: 5.25rem;
}
.app--auth .main {
  padding-top: 0;
}
.app--auth .top,
.app--auth .foot {
  display: none;
}
.hero {
  min-height: 100svh;
  margin-top: -5.25rem;
  padding-top: calc(5.25rem + clamp(2.5rem, 6vw, 4.5rem));
}


/* store design shell */
.app {
  position: relative;
  z-index: 1;
  background: transparent;
}
.main {
  background: transparent;
}
.sec {
  position: relative;
}
.join__shot picture,
.join__shot img {
  border-radius: var(--radius);
  border: var(--border-w) solid var(--line);
}
.page__intro h1 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.auth__panel {
  border: var(--border-w) solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--bg-elevated) !important;
}

.why__item code {
  font-family: var(--font-body);
  font-size: 0.95em;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
}

.join__bar--dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.join__bar--dual .join__ip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.join__bar--dual .join__ip .btn {
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .join__bar--dual {
    grid-template-columns: 1fr;
  }
}

