:root {
  --bg: #0a0610;
  --bg-elevated: #120a1a;
  --violet-deep: #1a0a24;
  --accent: #bf00ff;
  --accent-soft: #a020f0;
  --text: #f4ecff;
  --text-muted: #b9a8cc;
  --border: rgba(191, 0, 255, 0.25);
  --shadow-glow: 0 0 28px rgba(191, 0, 255, 0.35);
  --radius: 14px;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #2a1040 0%, var(--bg) 55%);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0a0610;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
}

a:hover {
  color: #d46aff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 6, 16, 0.95) 0%, rgba(10, 6, 16, 0.75) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.brand__text {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link[aria-current="page"] {
  color: var(--text);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.25rem 3.5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/banner.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 6, 16, 0.55) 0%,
    rgba(26, 10, 36, 0.82) 45%,
    var(--bg) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge--age {
  background: rgba(191, 0, 255, 0.2);
  border: 1px solid var(--border);
  color: #eeb8ff;
  box-shadow: var(--shadow-glow);
}

.hero__logo {
  width: min(200px, 42vw);
  height: auto;
  margin-top: 0.25rem;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65));
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(191, 0, 255, 0.45), 0 4px 0 #000;
}

.hero__tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 28ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #0a0610;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(191, 0, 255, 0.5);
}

.btn--ghost {
  background: rgba(10, 6, 16, 0.5);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: rgba(191, 0, 255, 0.55);
  background: rgba(191, 0, 255, 0.12);
}

.panel {
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--border);
}

.panel--muted {
  background: var(--bg-elevated);
}

.panel__inner {
  max-width: 720px;
  margin: 0 auto;
}

.panel__inner--narrow {
  max-width: 560px;
}

.panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.panel__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.panel__hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #9df5c8;
  min-height: 1.4em;
}

.ip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(191, 0, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ip-row__value {
  flex: 1 1 200px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.ip-row__copy {
  flex-shrink: 0;
}

/* ——— Spillertal ——— */
.player-count {
  margin-top: 0.35rem;
  padding: 1.15rem 1.25rem;
  text-align: center;
  background: rgba(191, 0, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.player-count__value {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--text);
}

.site-footer {
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--violet-deep);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.site-footer__link {
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-soft);
}

.site-footer__link:hover {
  color: #e0aaff;
}

/* ——— Regelside ——— */
.rules-page-header {
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 10, 36, 0.6) 0%, transparent 100%);
}

.rules-page-header__inner {
  max-width: 720px;
  margin: 0 auto;
}

.rules-page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rules-page-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rules-main {
  padding-bottom: 3rem;
}

.rules-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

.rules-intro p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.rules-intro p:last-child {
  margin-bottom: 0;
}

.rules-toc-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.rules-toc {
  margin: 0;
  padding: 1.25rem 1.35rem;
  list-style: none;
  background: rgba(191, 0, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .rules-toc {
    grid-template-columns: 1fr 1fr;
  }
}

.rules-toc__title {
  grid-column: 1 / -1;
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.rules-toc a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  padding: 0.35rem 0;
  display: inline-block;
}

.rules-toc a:hover {
  color: var(--accent-soft);
}

.rules-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0;
  scroll-margin-top: 5rem;
}

.rules-section__title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
}

.rules-rule {
  margin-bottom: 1.35rem;
  padding: 1rem 1.15rem;
  background: rgba(18, 10, 26, 0.55);
  border: 1px solid rgba(191, 0, 255, 0.12);
  border-radius: calc(var(--radius) - 2px);
}

.rules-rule:last-child {
  margin-bottom: 0;
}

.rules-rule__title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.rules-rule__nr {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 800;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}

.rules-rule__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.rules-rule__body p {
  margin: 0 0 0.65rem;
}

.rules-rule__body p:last-child {
  margin-bottom: 0;
}

.rules-subsection {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.rules-subsection__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.rules-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(191, 0, 255, 0.08);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-soft);
}
