/* ==========================================================================
   TNTWARS - Design-System
   Dunkel ist Standard, hell per data-theme="light". Alle Farben laufen ueber Tokens.
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #07070a;
  --bg-elevated: #0e0e13;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --surface-solid: #121218;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #a4a4b0;
  --text-3: #6e6e7b;
  --accent: #ffa31a;
  --accent-text: #ffb23d;
  --accent-soft: rgba(255, 163, 26, 0.12);
  --on-accent: #1b0f00;
  --grad: linear-gradient(120deg, #ffe066 0%, #ffae1f 38%, #ff6b00 72%, #ff3d00 100%);
  --glass: rgba(9, 9, 13, 0.6);
  --glass-strong: rgba(9, 9, 13, 0.82);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(255, 163, 26, 0.35), 0 12px 40px -10px rgba(255, 120, 0, 0.45);
  --success: #3ddc84;
  --danger: #ff5c63;
  --warning: #ffc53d;
  --info: #5eb0ff;
  --rank-DEFAULT: #9b9ba8;
  --rank-VIP: #55f06a;
  --rank-PRO: #c56bff;
  --rank-GOD: #ffb020;
  --rank-MOD: #2fd47a;
  --rank-ADMIN: #ff5c63;
  --backdrop-a: rgba(255, 122, 0, 0.16);
  --backdrop-b: rgba(255, 196, 0, 0.08);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --surface: rgba(12, 12, 24, 0.028);
  --surface-2: rgba(12, 12, 24, 0.055);
  --surface-solid: #ffffff;
  --border: rgba(12, 12, 24, 0.09);
  --border-strong: rgba(12, 12, 24, 0.18);
  --text: #111116;
  --text-2: #55555f;
  --text-3: #8a8a96;
  --accent: #f28c00;
  --accent-text: #c96a00;
  --accent-soft: rgba(242, 140, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 50px -28px rgba(20, 20, 40, 0.28);
  --shadow-soft: 0 10px 28px -16px rgba(20, 20, 40, 0.22);
  --glow: 0 0 0 1px rgba(242, 140, 0, 0.35), 0 12px 32px -12px rgba(242, 120, 0, 0.35);
  --success: #139a52;
  --danger: #d9363e;
  --warning: #b77900;
  --info: #1f78d1;
  --rank-DEFAULT: #6e6e7b;
  --rank-VIP: #16953a;
  --rank-PRO: #8a2be2;
  --rank-GOD: #c27400;
  --rank-MOD: #0f7f41;
  --rank-ADMIN: #d9363e;
  --backdrop-a: rgba(255, 150, 30, 0.14);
  --backdrop-b: rgba(255, 210, 60, 0.12);
  color-scheme: light;
}

:root {
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --nav-h: 68px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

/* Icons ohne eigene Groesse - die Komponenten unten setzen genauere Werte */
svg:not([width]) {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.eyebrow svg,
.command svg,
.mode-tag svg,
.meta .player svg {
  width: 14px;
  height: 14px;
}

.file-chip.chosen {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.post-bio {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.45;
  max-width: 150px;
  overflow-wrap: anywhere;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}

.breadcrumb:hover {
  color: var(--text);
}

.breadcrumb svg {
  width: 15px;
  height: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 700;
}

p {
  margin: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.noscript {
  padding: 40px;
  text-align: center;
}

/* Ruhige Lichtflecken hinter allem */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.backdrop span {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 26s ease-in-out infinite alternate;
}

.backdrop span:first-child {
  top: -30vmax;
  left: -18vmax;
  background: radial-gradient(circle, var(--backdrop-a), transparent 65%);
}

.backdrop span:last-child {
  bottom: -36vmax;
  right: -22vmax;
  background: radial-gradient(circle, var(--backdrop-b), transparent 65%);
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}

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

main {
  flex: 1;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.container-narrow {
  max-width: 820px;
}

.page {
  padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 56px));
  padding-bottom: clamp(56px, 8vw, 96px);
  animation: page-in 0.55s var(--ease) both;
}

.page-flush {
  padding-top: 0;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.page-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-top: 8px;
}

.page-sub {
  color: var(--text-2);
  max-width: 620px;
  margin-top: 10px;
  font-size: 16px;
}

.section {
  padding-block: clamp(64px, 10vw, 120px);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-top: 10px;
}

.section-sub {
  color: var(--text-2);
  font-size: 17px;
  margin-top: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-sm { gap: 8px; }
.stack-lg { gap: 28px; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.row-between {
  justify-content: space-between;
}

.grow {
  flex: 1;
  min-width: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 8px 0;
}

/* ---------- Scroll-Einblendung ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled,
.nav.solid {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 21px;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.logo b {
  font-weight: 850;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo small {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-3);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  opacity: 0;
  transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring), opacity 0.3s;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}

.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s;
}

.user-chip:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.nav-burger {
  display: none;
}

.nav-sheet {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 49;
  padding: 12px clamp(16px, 4vw, 32px) 24px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transform-origin: top;
  animation: sheet-in 0.35s var(--ease) both;
}

.nav-sheet a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0% 50%;
  color: var(--on-accent);
  box-shadow: 0 8px 24px -10px rgba(255, 120, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 14px 34px -12px rgba(255, 120, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-danger {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-success {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 32%, transparent);
}

.btn-success:hover {
  background: var(--success);
  color: #04130a;
}

.btn-shop {
  background: var(--text);
  color: var(--bg);
}

.btn-shop:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }

.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.boot {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

/* ---------- Karten und Kleinteile ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background-color 0.3s;
}

.card-pad {
  padding: clamp(18px, 3vw, 28px);
}

.card-hover:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.rank {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--rank-color);
  background: color-mix(in srgb, var(--rank-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--rank-color) 28%, transparent);
  line-height: 1;
  vertical-align: middle;
}

.name {
  font-weight: 600;
  color: var(--rank-color, var(--text));
}

.name-default {
  color: var(--text);
}

.player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.pill svg { width: 14px; height: 14px; }
.pill-success { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.pill-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.pill-warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.pill-accent { color: var(--accent-text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: ping 1.8s var(--ease) infinite;
}

.live-dot.off,
.live-dot.off::after {
  background: var(--text-3);
  animation: none;
}

@keyframes ping {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(2.8); opacity: 0; }
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  image-rendering: pixelated;
  background: var(--surface-2);
  flex-shrink: 0;
  object-fit: cover;
}

.avatar-xs { width: 22px; height: 22px; border-radius: 6px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 8px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 14px; }
.avatar-xl { width: 104px; height: 104px; border-radius: 22px; }

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(36px, 6vw, 64px) 20px;
  text-align: center;
  color: var(--text-2);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text-3);
  margin-bottom: 6px;
}

.empty-icon svg { width: 26px; height: 26px; }
.empty h3 { font-size: 18px; color: var(--text); }

kbd,
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* ---------- Formulare ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s var(--ease), background-color 0.2s;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--border-strong);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface-2);
}

.textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.select option {
  background: var(--surface-solid);
}

.hint {
  font-size: 12.5px;
  color: var(--text-3);
}

.form-error {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
  animation: shake 0.4s var(--ease);
}

@keyframes shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-right: 46px;
}

.input-wrap .icon-button {
  position: absolute;
  right: 3px;
  top: 3px;
}

.switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 46px;
  height: 28px;
}

.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: background-color 0.3s var(--ease), border-color 0.3s;
  pointer-events: none;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease-spring), background-color 0.3s;
}

.switch input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(18px);
  background: #fff;
}

.switch input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: background-color 0.25s var(--ease), color 0.25s, box-shadow 0.25s;
}

.segmented button svg { width: 16px; height: 16px; }

.segmented button:hover {
  color: var(--text);
}

.segmented button.active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--border);
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.dropzone.dragover {
  transform: scale(1.01);
}

.dropzone svg { width: 24px; height: 24px; color: var(--accent-text); }
.dropzone input { display: none; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  animation: pop-in 0.35s var(--ease-spring) both;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb .progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
}

.thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.thumb-remove svg { width: 14px; height: 14px; }

.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  animation: pop-in 0.35s var(--ease-spring) both;
}

.file-chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex-shrink: 0;
}

.file-chip-icon svg { width: 18px; height: 18px; }

.progress {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: inherit;
  transition: width 0.3s var(--ease);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

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

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -4% 0 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-zoom 2.4s var(--ease) both;
  will-change: transform;
}

@keyframes hero-zoom {
  from { transform: scale(1.18); filter: saturate(0.6) brightness(0.7); }
  to { transform: scale(1.06); filter: none; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.55) 0%, rgba(7, 7, 10, 0.15) 30%, rgba(7, 7, 10, 0.4) 62%, var(--bg) 100%),
    radial-gradient(120% 70% at 20% 100%, rgba(7, 7, 10, 0.75), transparent 60%);
}

[data-theme="light"] .hero::before {
  background:
    linear-gradient(180deg, rgba(10, 10, 16, 0.45) 0%, rgba(10, 10, 16, 0.1) 32%, rgba(10, 10, 16, 0.35) 64%, var(--bg) 100%),
    radial-gradient(120% 70% at 20% 100%, rgba(10, 10, 16, 0.55), transparent 60%);
}

.hero-content {
  position: relative;
  width: 100%;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: clamp(56px, 9vw, 110px);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(64px, 14vw, 188px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.86;
  display: flex;
  flex-wrap: wrap;
}

.hero-title span {
  display: inline-block;
  animation: letter 1s var(--ease) both;
  animation-delay: calc(0.15s + var(--i) * 0.045s);
}

.hero-title .hot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(255, 110, 0, 0.35));
}

@keyframes letter {
  from { opacity: 0; transform: translateY(0.4em) rotate(4deg); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-tagline {
  max-width: 560px;
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  animation: rise 0.9s var(--ease) 0.55s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  animation: rise 0.9s var(--ease) 0.7s both;
}

.ip-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 8px 0 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  color: #fff;
  transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s;
}

.ip-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.ip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  line-height: 1.2;
}

.ip-address {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  color: #0b0b0f;
  font-size: 14px;
  font-weight: 700;
}

.ip-copy svg { width: 16px; height: 16px; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: #fff;
  animation: scroll-hint 2s var(--ease) infinite;
}

@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Zahlenleiste ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.stats-strip .stat {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
}

.stats-strip .stat:last-child {
  border-right: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Spielmodi ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.mode-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s var(--ease);
}

.mode-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.mode-card.wide {
  grid-column: span 3;
}

.mode-card.feature {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}

.mode-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.mode-card.feature .mode-media {
  aspect-ratio: auto;
  min-height: 380px;
}

.mode-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.6s;
}

.mode-card:hover .mode-media img {
  transform: scale(1.07);
}

.mode-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.mode-media.bright img {
  filter: brightness(1.9) contrast(1.1) saturate(1.2);
}

.collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.collage img:first-child {
  grid-row: span 2;
}

.mode-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

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

.mode-card.feature .mode-body {
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  gap: 16px;
}

.mode-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mode-card.feature .mode-title {
  font-size: clamp(28px, 3.4vw, 40px);
}

.mode-text {
  color: var(--text-2);
  font-size: 14.5px;
}

.mode-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.command {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease), border-color 0.3s, background-color 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 18px;
  transition: transform 0.5s var(--ease-spring);
}

.feature:hover .feature-icon {
  transform: rotate(-8deg) scale(1.08);
}

.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Raenge ---------- */

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--rank-color);
  opacity: 0.9;
}

.rank-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--rank-color) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.rank-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--rank-color) 45%, var(--border));
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--rank-color) 60%, transparent);
}

.rank-card:hover::after {
  opacity: 1;
}

.rank-card-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--rank-color);
}

.rank-card-sub {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}

.perks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.perks svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--rank-color, var(--accent));
  flex-shrink: 0;
}

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 560px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px clamp(16px, 4vw, 32px) 20px;
  scrollbar-width: none;
  cursor: grab;
}

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

.gallery figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--surface-2);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade-in 0.3s var(--ease) both;
}

.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  animation: zoom-in 0.45s var(--ease) both;
}

.lightbox .icon-button {
  position: absolute;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox .close { top: 20px; right: 20px; }
.lightbox .prev { left: 20px; top: 50%; }
.lightbox .next { right: 20px; top: 50%; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* ---------- News ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-card.lead {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

.news-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.news-card.lead .news-cover {
  aspect-ratio: auto;
  min-height: 320px;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.news-card:hover .news-cover img {
  transform: scale(1.05);
}

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

.news-card.lead .news-body {
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.news-card.lead .news-title {
  font-size: clamp(26px, 3vw, 36px);
}

.news-excerpt {
  color: var(--text-2);
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--text-3);
}

.meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta svg { width: 15px; height: 15px; }

.article-cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--surface-2);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 14px 0 20px;
}

.prose {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1em;
}

.prose ul {
  padding-left: 1.3em;
  margin-block: 0;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose h3 {
  font-size: 1.25em;
  margin-top: 1.4em;
}

.prose strong {
  font-weight: 700;
}

.prose-sm {
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Rangliste ---------- */

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-row {
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  transition: background-color 0.25s;
}

.lb-row:hover {
  background: var(--surface-2);
}

.lb-place {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-3);
  background: var(--surface);
}

.lb-row:nth-child(1) .lb-place { color: #1a1200; background: linear-gradient(135deg, #ffe27a, #f2a900); }
.lb-row:nth-child(2) .lb-place { color: #15151a; background: linear-gradient(135deg, #f1f1f5, #a9adb8); }
.lb-row:nth-child(3) .lb-place { color: #1d0d02; background: linear-gradient(135deg, #f2b27a, #b9642a); }

.lb-level {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lb-level small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------- Forum ---------- */

.forum-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cat-list {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text-2);
  font-weight: 550;
  transition: background-color 0.25s, color 0.25s;
}

.cat-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.cat-item.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.cat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--cat-color, var(--accent-text));
  flex-shrink: 0;
}

.cat-item.active .cat-icon {
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 16%, transparent);
}

.cat-icon svg { width: 17px; height: 17px; }

.cat-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.thread-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  transition: background-color 0.25s;
}

.thread-row:first-child {
  border-top: 0;
}

.thread-row:hover {
  background: var(--surface);
}

.thread-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  min-width: 0;
}

.thread-title span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-title svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-text);
}

.thread-side {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-3);
}

.thread-side .replies {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}

.thread-side svg { width: 15px; height: 15px; }

.posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  animation: rise 0.6s var(--ease) both;
}

.post-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.post-aside .name {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.post-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 26px;
  min-width: 0;
}

.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.post-images button {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}

.post-images video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: #000;
  object-fit: contain;
}

.post-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-images button:hover img {
  transform: scale(1.06);
}

.post-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.post.highlight {
  box-shadow: var(--glow);
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Profil ---------- */

.profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(22px, 4vw, 40px);
  overflow: hidden;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--rank-color, var(--accent)) 16%, transparent), transparent 60%);
  pointer-events: none;
}

.profile-name {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.level-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  margin-left: auto;
}

.level-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.level-ring circle {
  fill: none;
  stroke-width: 9;
}

.level-ring .track {
  stroke: var(--surface-2);
}

.level-ring .value {
  stroke: url(#level-gradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.level-ring .label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.level-ring .label b {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.level-ring .label small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.kpi {
  padding: 20px 22px;
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.kpi-label svg { width: 16px; height: 16px; color: var(--text-3); }

.kpi-value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.mode-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
}

.stat-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.stat-card-icon svg { width: 20px; height: 20px; }

.mc-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.mc-line {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.mc-line b {
  font-weight: 700;
}

.ban-card {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--danger) 10%, transparent), transparent 55%),
    var(--surface);
}

.ban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.ban-grid dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ban-grid dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.ok-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ok-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  flex-shrink: 0;
}

.ok-icon svg { width: 24px; height: 24px; }

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.appeal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
}

.reply-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
}

/* ---------- Einstellungen ---------- */

.settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-group {
  padding: 8px clamp(18px, 3vw, 28px);
}

.settings-group-title {
  padding: 18px 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.settings-group-title + .settings-row {
  border-top: 0;
}

.settings-row .grow p {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.settings-row h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Admin ---------- */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 28px;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.tabs a svg { width: 17px; height: 17px; }

.tabs a:hover {
  color: var(--text);
}

.tabs a.active {
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--border);
}

.tabs .count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  background: var(--danger);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Anmeldung ---------- */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: hero-zoom 2.4s var(--ease) both;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
}

.auth-visual-text {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  bottom: clamp(24px, 5vw, 56px);
  color: #fff;
}

.auth-visual-text h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-visual-text p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 440px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 32px) clamp(20px, 5vw, 64px) 48px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: rise 0.7s var(--ease) both;
}

.auth-card h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-switch {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
}

.auth-switch a,
.link {
  color: var(--accent-text);
  font-weight: 600;
}

.auth-switch a:hover,
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.waiting {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.waiting-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.waiting-orb svg {
  width: 36px;
  height: 36px;
}

.waiting-orb::before,
.waiting-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: orb 2.4s var(--ease) infinite;
}

.waiting-orb::after {
  animation-delay: 1.2s;
}

@keyframes orb {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(1.9); opacity: 0; }
}

.success-orb {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
  animation: pop-in 0.6s var(--ease-spring) both;
}

.success-orb::before,
.success-orb::after {
  display: none;
}

.code-input {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  min-height: 60px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-2);
}

.steps li .step-num {
  flex-shrink: 0;
}

.or {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Overlays ---------- */

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 240px;
  padding: 6px;
  border-radius: 18px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform-origin: top right;
  animation: menu-in 0.25s var(--ease) both;
}

@keyframes menu-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.dropdown-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-item svg { width: 17px; height: 17px; }

.dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.dropdown-item.danger:hover {
  color: var(--danger);
}

.notif-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(520px, 70vh);
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-2);
  transition: background-color 0.2s;
}

.notif-item:hover {
  background: var(--surface-2);
}

.notif-item.unread {
  color: var(--text);
}

.notif-item.unread::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade-in 0.25s var(--ease) both;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.4s var(--ease-spring) both;
}

.modal-wide {
  max-width: 720px;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 0;
}

.modal-head h3 {
  font-size: 20px;
}

.modal-body {
  padding: 18px 24px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 22px;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 550;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: toast-in 0.45s var(--ease-spring) both;
  pointer-events: auto;
}

.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.success svg { color: var(--success); }
.toast.error svg { color: var(--danger); }
.toast.leaving { animation: toast-out 0.3s var(--ease) both; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 14px;
}

.banner svg { width: 18px; height: 18px; color: var(--accent-text); flex-shrink: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-anchor {
  position: relative;
  display: inline-flex;
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

/* Ein durchgehender Verlauf ueber die einzeln animierten Buchstaben */
.hero-title .hot {
  background-size: 300% 100%;
  background-position: calc(var(--i, 0) * 50%) 50%;
}

.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-row .section-head {
  margin-bottom: 0;
}

.big-404 {
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.dropdown-head.row {
  flex-wrap: nowrap;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-xl);
  isolation: isolate;
  color: #fff;
  text-align: center;
}

.cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 2s var(--ease);
}

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

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 120% at 50% 100%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72));
}

.cta h2 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.cta p {
  margin: 14px auto 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

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

/* ---------- Hinweis fuer gebannte Spieler ---------- */

.ban-strip {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 42px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, rgba(190, 24, 40, 0.94), rgba(255, 86, 40, 0.94));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -14px rgba(200, 30, 40, 0.8);
  animation: sheet-in 0.5s var(--ease) both;
}

.ban-strip svg {
  width: 16px;
  height: 16px;
}

.ban-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.2s;
}

.ban-strip:hover .ban-strip-cta {
  background: rgba(255, 255, 255, 0.3);
}

html.is-banned .page:not(.page-flush) {
  padding-top: calc(var(--nav-h) + 42px + clamp(28px, 5vw, 56px));
}

html.is-banned .hero-content {
  padding-top: calc(var(--nav-h) + 102px);
}

.form-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-hero-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex-shrink: 0;
}

.form-hero-icon svg {
  width: 28px;
  height: 28px;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.footer a:hover {
  color: var(--text);
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 1080px) {
  .rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mode-card { grid-column: span 3; }
  .mode-card.feature { grid-template-columns: 1fr; }
  .mode-card.feature .mode-media { min-height: 300px; }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions .hide-mobile { display: none; }
  .nav-burger { display: inline-grid; }
  .nav-inner { justify-content: space-between; }
  .forum-layout { grid-template-columns: 1fr; }
  .cat-list { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .cat-item { flex-shrink: 0; }
  .cat-count { display: none; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card.lead { grid-column: span 2; grid-template-columns: 1fr; }
  .news-card.lead .news-cover { min-height: 220px; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip .stat:nth-child(2) { border-right: 0; }
  .stats-strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .post { grid-template-columns: 1fr; }
  .post-aside { flex-direction: row; justify-content: flex-start; text-align: left; border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 18px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .rank-grid { grid-template-columns: 1fr; }
  .mode-card,
  .mode-card.wide { grid-column: span 6; }
  .news-grid,
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .news-card.lead { grid-column: span 1; }
  .thread-row { grid-template-columns: 34px minmax(0, 1fr); }
  .thread-side .last { display: none; }
  .thread-side { grid-column: 2; }
  .profile-hero { flex-wrap: wrap; }
  .level-ring { margin-left: 0; width: 96px; height: 96px; }
  .ip-card { width: 100%; justify-content: space-between; }
  .hero-actions .btn { flex: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .settings-row { flex-wrap: wrap; }
  .lightbox .prev,
  .lightbox .next { display: none; }
}

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Rennprofil: Medaillen und Jahreskalender ---------- */

.medal {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 -2px 3px rgb(0 0 0 / 25%);
}

.medal-gold { background: linear-gradient(140deg, #ffe066, #f59f00); }
.medal-silver { background: linear-gradient(140deg, #f1f3f5, #adb5bd); }
.medal-bronze { background: linear-gradient(140deg, #f0a868, #b45309); }

.cal-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 11px);
  grid-auto-columns: 11px;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cal-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.cal-1 { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.cal-2 { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.cal-3 { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.cal-4 { background: var(--accent); }
