:root {
  /* Neutrales Dark mit warmen Akzenten — Brauntöne raus */
  --bg: #0c0d12;          /* Tiefes neutrales Dunkel */
  --bg-soft: #15171f;     /* Leicht heller */
  --bg-card: #1b1d27;     /* Karten-Hintergrund neutral */
  --border: #2a2d3a;      /* Border neutral */
  --text: #f0f0f5;        /* Sauberes Weiß */
  --text-dim: #9da0ad;    /* Neutraler Grau */
  --accent: #ff6b2c;      /* Fire-Orange (Hauptakzent) */
  --accent-2: #ffb347;    /* Helles Gold-Orange */
  --green: #6dd58c;       /* Online-Indikator */
  --orange: #ff8c42;      /* Warmes Orange */
  --red: #e63946;         /* Tiefes Rot */
  --purple: #c97bff;      /* Akzent-Lila */
  --blue: #6ec1ff;        /* Akzent-Blau */
  --yellow: #ffd166;      /* Sonnen-Gelb */
  --gold: #ffc107;        /* Gold für Owner-Akzente */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Schrift sofort anzeigen, später durch geladene ersetzen */
  font-display: swap;
}

/* Sektionen erst rendern wenn sie in Sichtweite sind — riesiger Performance-Boost */
.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

/* Karten und unabhängige Module isolieren */
.feature, .mode, .cmd-group, .download-card, .rule, .timeline-item, .owner-card, .stat {
  contain: layout style paint;
}

/* Reduzierte Bewegung respektieren */
@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;
  }
  .block-rain, .bg-blocks { display: none; }
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* === Generische SVG-Icons === */
.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}
.icon-lg { width: 2.5rem; height: 2.5rem; vertical-align: middle; }

/* === Online/Status-Dot === */
.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

/* === Floating Background Blocks === */
.bg-blocks {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.block {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  opacity: 0.06;
  animation: float 20s infinite ease-in-out;
  will-change: transform;
}
.b1 { top: 10%; left: 5%;  background: var(--accent);   animation-delay: 0s; }
.b2 { top: 20%; left: 80%; background: var(--purple);   animation-delay: 3s; width: 40px; height: 40px; }
.b3 { top: 60%; left: 15%; background: var(--green);    animation-delay: 6s; width: 80px; height: 80px; }
.b4 { top: 75%; left: 70%; background: var(--blue);     animation-delay: 9s; }
.b5 { top: 40%; left: 90%; background: var(--gold);     animation-delay: 2s; width: 50px; height: 50px; }
.b6 { top: 85%; left: 40%; background: var(--red);      animation-delay: 5s; width: 35px; height: 35px; }
.b7 { top: 30%; left: 50%; background: var(--yellow);   animation-delay: 8s; width: 45px; height: 45px; }
.b8 { top: 5%;  left: 60%; background: var(--accent-2); animation-delay: 11s; width: 30px; height: 30px; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(30px, -40px) rotate(15deg); }
  50%      { transform: translate(-20px, -80px) rotate(-10deg); }
  75%      { transform: translate(-40px, 30px) rotate(20deg); }
}

/* === Schwebende Mini-Blöcke === */
.block-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
  contain: strict;
}
.mini-block {
  --parallax: 0px;
  position: absolute;
  bottom: -40px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  animation-name: block-rise;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.25),
    inset 3px 0 0 rgba(255, 255, 255, 0.15),
    0 0 8px currentColor;
  will-change: transform;
}
@keyframes block-rise {
  0%   { transform: translateY(var(--parallax, 0px)) translateX(0) rotate(0deg);    opacity: 0; }
  10%  { opacity: 0.5; }
  50%  { transform: translateY(calc(-50vh + var(--parallax, 0px))) translateX(20px) rotate(180deg); }
  90%  { opacity: 0.5; }
  100% { transform: translateY(calc(-110vh + var(--parallax, 0px))) translateX(-10px) rotate(360deg); opacity: 0; }
}

/* === Hero === */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(255,107,44,0.35), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255,179,71,0.25), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(230,57,70,0.2), transparent 60%);
  padding: 100px 20px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }

.logo-mark {
  font-size: 4rem;
  margin-bottom: 8px;
  display: inline-block;
  animation: bob 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(255,107,44,0.5));
}
.logo-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
  border-radius: 16px;
  image-rendering: pixelated;
  animation: bob 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 24px rgba(255,107,44,0.55));
  box-shadow: 0 0 0 2px rgba(255,107,44,0.35), 0 12px 32px rgba(0,0,0,0.5);
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-8px) rotate(5deg); }
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -2px;
  margin-bottom: 12px;
  animation: shine 6s ease-in-out infinite;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* === 90er-Logo (Splat / Bubble-Style) === */
.logo-80s, .logo-90s {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 8px 28px rgba(255, 0, 127, 0.35));
  animation: logo-wobble 3s ease-in-out infinite;
}
@keyframes logo-wobble {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%      { transform: rotate(1.5deg)  translateY(-4px); }
}
@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.ip-label { color: var(--text-dim); font-size: 0.85rem; }
.ip-box code { font-size: 1.1rem; background: transparent; color: var(--accent); }
#copy-btn {
  background: var(--accent);
  color: #0c0d12;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}
#copy-btn:hover { background: var(--accent-2); }
#copy-btn:active { transform: scale(0.95); }
#copy-btn.copied { background: var(--green); }

.hero-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.1s, background 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0c0d12;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* === Nav === */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(17, 11, 7, 0.95);
  /* backdrop-filter ist teuer — nur wenn unterstützt, dezent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 14px 20px;
  z-index: 10;
  flex-wrap: wrap;
  contain: layout style;
}
.navbar a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}
.navbar a:hover { color: var(--accent); }
.navbar a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}
.navbar a:hover::after { width: 100%; }

/* === Sections === */
main { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
/* Pro Sektion eigene Akzentfarbe für die Linie */
#team .section h2::after,
#team h2::after        { background: linear-gradient(90deg, var(--gold), var(--accent)); }
#status h2::after      { background: linear-gradient(90deg, var(--green), var(--blue)); }
#modi h2::after        { background: linear-gradient(90deg, var(--green), var(--orange), var(--purple)); }
#features h2::after    { background: linear-gradient(90deg, var(--accent-2), var(--purple)); }
#commands h2::after    { background: linear-gradient(90deg, var(--blue), var(--accent)); }
#news h2::after        { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
#mods h2::after        { background: linear-gradient(90deg, var(--green), var(--blue)); }
#apps h2::after        { background: linear-gradient(90deg, var(--accent), var(--purple)); }
#regeln h2::after      { background: linear-gradient(90deg, var(--red), var(--orange)); }
#anleitung h2::after   { background: linear-gradient(90deg, var(--gold), var(--green)); }
#faq h2::after         { background: linear-gradient(90deg, var(--purple), var(--accent-2)); }

.hint { color: var(--text-dim); margin-bottom: 32px; }

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Live-Dot */
.live-dot {
  display: inline-block;
  font-size: 0.6em;
  vertical-align: middle;
  color: var(--green);
  margin-left: 8px;
  animation: pulse 1.5s infinite;
}
.live-dot.offline { color: var(--red); animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Player list */
.player-list-wrap {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.player-list-title {
  font-size: 1rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px 6px 6px;
  border-radius: 99px;
  font-size: 0.9rem;
  animation: fadeIn 0.4s ease;
}
.player img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  image-rendering: pixelated;
}
.player-empty {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.95rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Toasts (Join/Leave Notifications) */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 12px 18px 12px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  min-width: 220px;
  max-width: 320px;
  animation: slideIn 0.3s ease, slideOut 0.3s ease 4.7s forwards;
  pointer-events: auto;
}
.toast.join  { border-left-color: var(--green); }
.toast.leave { border-left-color: var(--orange); }
.toast img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.toast-text strong { display: block; }
.toast-text small { color: var(--text-dim); font-size: 0.8rem; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 600px) {
  .toast-container { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

/* === Features === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  --feature-color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--feature-color);
  opacity: 0.7;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--feature-color);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.feature-icon {
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--feature-color) 15%, transparent);
  color: var(--feature-color);
  filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--feature-color) 50%, transparent));
}
.feature-icon .icon { width: 28px; height: 28px; }
.feature h3 { color: var(--feature-color); margin-bottom: 8px; font-size: 1.15rem; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* Jede Feature-Karte mit eigener Farbe (Reihenfolge im HTML) */
.features .feature:nth-child(1) { --feature-color: var(--gold); }
.features .feature:nth-child(2) { --feature-color: var(--blue); }
.features .feature:nth-child(3) { --feature-color: var(--red); }
.features .feature:nth-child(4) { --feature-color: var(--purple); }
.features .feature:nth-child(5) { --feature-color: var(--accent); }
.features .feature:nth-child(6) { --feature-color: var(--green); }

/* === Sprache umschalten === */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.lang-btn:hover { opacity: 0.9; }
.lang-btn.active {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(124, 140, 255, 0.1);
}

/* === Bestenliste === */
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.board {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.board::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.board-kills::before  { background: linear-gradient(90deg, #ff6b6b, #ff9568); }
.board-deaths::before { background: linear-gradient(90deg, #6e6e8e, #b58cff); }

.board-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.board-icon { font-size: 1.6rem; }
.board-header h3 { font-size: 1.2rem; }

.board-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.board-list li {
  display: grid;
  grid-template-columns: 38px 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 0.15s, border-color 0.2s;
}
.board-list li:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}
.board-list li[data-rank="1"] { background: linear-gradient(90deg, rgba(255,215,0,0.12), var(--bg-soft)); }
.board-list li[data-rank="2"] { background: linear-gradient(90deg, rgba(192,192,192,0.10), var(--bg-soft)); }
.board-list li[data-rank="3"] { background: linear-gradient(90deg, rgba(205,127,50,0.10), var(--bg-soft)); }

.rank {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-dim);
}
.board-list li[data-rank="1"] .rank,
.board-list li[data-rank="2"] .rank,
.board-list li[data-rank="3"] .rank { font-size: 1.4rem; }

.board-avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  image-rendering: pixelated;
}
.board-name {
  font-weight: 600;
  font-size: 1rem;
}
.board-kills .board-score  { color: #ff8868; font-weight: 800; font-size: 1.1rem; }
.board-deaths .board-score { color: var(--purple); font-weight: 800; font-size: 1.1rem; }

.board-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* === Owner-Team === */
.owners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.owner-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.owner-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(255, 193, 7, 0.2);
}
.owner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
}
.owner-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: #0c0d12;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 107, 44, 0.4);
  z-index: 2;
}
.skin-wrap {
  width: 240px;
  height: 340px;
  margin: 8px auto 16px;
  background: radial-gradient(ellipse at center bottom, rgba(255,107,44,0.18), transparent 70%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.skin-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}
.skin-viewer {
  cursor: grab;
  display: block;
  position: relative;
  z-index: 2;
}
.skin-viewer:active { cursor: grabbing; }
/* Wenn 3D-Skin geladen ist, Fallback-Bild ausblenden */
.skin-wrap.loaded .skin-fallback { display: none; }
.owner-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.owner-alias {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-dim);
  color: var(--text-dim);
  background: none;
  opacity: 0.85;
}
.owner-role {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Tipps für Anfänger === */
.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.tip-num {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0c0d12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(255, 107, 44, 0.4);
}
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 107, 44, 0.12);
  color: var(--accent);
  margin-bottom: 12px;
}
.tip-icon .icon { width: 24px; height: 24px; }
.tip h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}
.tip p {
  color: var(--text-dim);
  font-size: 0.93rem;
}

.tip-callout {
  margin-top: 24px;
  background: linear-gradient(90deg, rgba(255, 107, 44, 0.08), rgba(255, 179, 71, 0.05));
  border: 1px solid rgba(255, 107, 44, 0.3);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.tip-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #0c0d12;
  flex-shrink: 0;
}
.tip-callout strong {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.tip-callout p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* === Coming-Soon-Box (für Mods etc.) === */
.coming-soon-box {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 2px dashed var(--border);
  border-radius: 18px;
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}
.coming-soon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 107, 44, 0.08), transparent 70%);
  pointer-events: none;
}
.cs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 107, 44, 0.12);
  color: var(--accent);
  margin-bottom: 20px;
  animation: cs-pulse 2.4s ease-in-out infinite;
}
.cs-icon .icon-lg { width: 42px; height: 42px; }
@keyframes cs-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.4); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(255, 107, 44, 0); }
}
.coming-soon-box h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.coming-soon-box p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 18px;
}
.cs-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 107, 44, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 44, 0.4);
}

/* === Spielmodi === */
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.mode {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.mode:hover { transform: translateY(-4px); }
.mode::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.mode-smp::before      { background: linear-gradient(90deg, var(--green), var(--blue)); }
.mode-city::before     { background: linear-gradient(90deg, var(--orange), var(--accent-2)); }
.mode-survival::before { background: linear-gradient(90deg, var(--purple), var(--accent)); }
.mode-smp:hover      { border-color: var(--green); }
.mode-city:hover     { border-color: var(--orange); }
.mode-survival:hover { border-color: var(--purple); }

.mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 12px;
  color: var(--accent);
}
.mode-smp      .mode-icon { background: rgba(109, 213, 140, 0.12); color: var(--green); }
.mode-city     .mode-icon { background: rgba(255, 140, 66, 0.12);  color: var(--orange); }
.mode-survival .mode-icon { background: rgba(201, 123, 255, 0.12); color: var(--purple); }
.mode-icon .icon-lg { width: 40px; height: 40px; }
.mode h3 { font-size: 1.7rem; margin-bottom: 4px; }
.mode-tag {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.mode > p { color: var(--text-dim); margin-bottom: 18px; }
.mode-features {
  list-style: none;
  margin-bottom: 22px;
  padding: 0;
}
.mode-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.mode-features li:last-child { border-bottom: none; }
.mode-features li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
  margin-right: 6px;
}
.mode-cta {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #0c0d12;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.mode-smp      .mode-cta { background: var(--green); }
.mode-city     .mode-cta { background: var(--orange); }
.mode-survival .mode-cta { background: var(--purple); color: #0c0d12; }
.mode-cta:hover { transform: translateY(-2px); }

.mode-detail {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* === Easter Egg: Minecraft Achievement-Toast === */
.achievement-toast {
  position: fixed;
  top: 24px;
  right: -360px;
  width: 320px;
  background: #1a1a1a;
  border: 2px solid #fff;
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  animation: ach-slide 5s ease-out forwards;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}
.ach-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #7cba3d, #5a8c2a);
  border: 2px solid #0c0d12;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.ach-icon .icon { width: 24px; height: 24px; }
.ach-text { display: flex; flex-direction: column; }
.ach-text small { color: #ffd166; font-size: 0.8rem; margin-bottom: 2px; }
.ach-text strong { color: #fff; font-size: 1rem; font-weight: 700; }
@keyframes ach-slide {
  0%   { right: -360px; }
  10%  { right: 24px; }
  85%  { right: 24px; opacity: 1; }
  100% { right: 24px; opacity: 0; }
}

/* === Easter Egg: Partikel-Explosion === */
.ee-particle {
  position: fixed;
  z-index: 100;
  border-radius: 2px;
  pointer-events: none;
  box-shadow: 0 0 8px currentColor;
  animation: ee-explode 1.2s ease-out forwards;
  --dx: 0px;
  --dy: 0px;
}
@keyframes ee-explode {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2) rotate(360deg); opacity: 0; }
}

/* === Easter Egg: Diamant-Regen === */
.ee-diamond {
  position: fixed;
  top: -30px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #79e3e3, #3a9dd6);
  border: 1px solid #0c0d12;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 0 12px #79e3e3;
  animation: ee-fall linear forwards;
}
@keyframes ee-fall {
  0%   { top: -30px;  opacity: 0; }
  10%  { opacity: 1; }
  100% { top: 110vh; opacity: 0.5; }
}

/* === Easter Egg: Shake === */
.shake { animation: ee-shake 0.6s ease-in-out; }
@keyframes ee-shake {
  0%, 100% { transform: translate(0, 0); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-6px, 0); }
  20%, 40%, 60%, 80%      { transform: translate(6px, 0); }
}

/* === Easter Egg: Konami-Modus (Pixel-Style + Rainbow) === */
.konami-mode {
  font-family: ui-monospace, "Courier New", monospace !important;
  image-rendering: pixelated;
}
.konami-mode * {
  font-family: inherit !important;
  letter-spacing: 0 !important;
}
.konami-mode .feature, .konami-mode .mode, .konami-mode .download-card,
.konami-mode .cmd-group, .konami-mode .rule, .konami-mode .partner-card,
.konami-mode .owner-card {
  animation: ee-rainbow 4s linear infinite;
}
@keyframes ee-rainbow {
  0%   { border-color: #ff007f; }
  25%  { border-color: #ffeb00; }
  50%  { border-color: #00d9ff; }
  75%  { border-color: #7cba3d; }
  100% { border-color: #ff007f; }
}

/* === No-Ads-Badge === */
.no-ads-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(109, 213, 140, 0.15);
  color: var(--green);
  border: 1px solid rgba(109, 213, 140, 0.4);
  margin-bottom: 12px;
}

/* === Partner-Teams === */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.partner-card {
  --partner-color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}
.partner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--partner-color);
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--partner-color);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.partner-hugo  { --partner-color: var(--green); }
.partner-donut { --partner-color: var(--accent-2); }

.partner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--partner-color) 15%, transparent);
  color: var(--partner-color);
  margin-bottom: 12px;
}
.partner-icon .icon-lg { width: 34px; height: 34px; }

.partner-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--partner-color);
}
.partner-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--partner-color);
  color: #0c0d12;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.1s, background 0.2s;
}
.partner-cta:hover { transform: translateY(-2px); }
.partner-cta .icon { width: 16px; height: 16px; }

/* === Befehle === */
.commands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.cmd-group {
  --cmd-color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cmd-color);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.15s;
}
.cmd-group:hover {
  transform: translateY(-2px);
  border-color: var(--cmd-color);
}
.cmd-group h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--cmd-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmd-group h3 .icon { width: 22px; height: 22px; }
.commands .cmd-group:nth-child(1) { --cmd-color: var(--green); }
.commands .cmd-group:nth-child(2) { --cmd-color: var(--gold); }
.commands .cmd-group:nth-child(3) { --cmd-color: var(--red); }
.commands .cmd-group:nth-child(4) { --cmd-color: var(--blue); }
.commands .cmd-group:nth-child(5) { --cmd-color: var(--purple); }
.cmd-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cmd-group li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.cmd-group li code {
  background: var(--bg-soft);
  color: var(--accent);
  padding: 4px 10px;
  font-weight: 600;
  border-radius: 6px;
}
.cmd-group li span {
  color: var(--text-dim);
  text-align: right;
  flex: 1;
  font-size: 0.85rem;
}

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,107,44,0.25);
}
.timeline-date {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 10px;
}
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-content p { color: var(--text-dim); font-size: 0.95rem; }

/* === Download grid === */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.dl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dl-header h3 { font-size: 1.15rem; }
.download-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex-grow: 1;
}
.badge {
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.badge.perf   { background: rgba(109,213,140,0.15); color: var(--green); }
.badge.visual { background: rgba(181,140,255,0.15); color: var(--purple); }
.badge.core   { background: rgba(110,193,255,0.15); color: var(--blue); }
.badge.util   { background: rgba(240,168,104,0.15); color: var(--orange); }
.badge.custom { background: rgba(247,168,192,0.15); color: var(--accent-2); }
.badge.social   { background: rgba(124,140,255,0.15); color: var(--accent); }
.badge.gameplay { background: rgba(181,140,255,0.15); color: var(--purple); }

.dl-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #0c0d12;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.dl-btn:hover { background: var(--accent-2); }
.dl-btn:active { transform: scale(0.98); }

.dl-btn.coming-soon {
  background: var(--bg-soft);
  color: var(--text-dim);
  cursor: not-allowed;
  border: 1px dashed var(--border);
}
.dl-btn.coming-soon:hover { background: var(--bg-soft); }
.dl-btn.coming-soon:active { transform: none; }

.download-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255,107,44,0.12), var(--bg-card));
  position: relative;
}
.download-card.featured::before {
  content: "★";
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Rules === */
.rules { display: flex; flex-direction: column; gap: 14px; }
.rule {
  --rule-color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rule-color);
  padding: 18px 22px;
  border-radius: 10px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.15s;
}
.rule:hover { transform: translateX(4px); }
.rule-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rule-color);
  opacity: 0.7;
  font-family: ui-monospace, monospace;
  flex-shrink: 0;
}
.rule h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--rule-color); }
.rule p  { color: var(--text-dim); font-size: 0.95rem; }
.rules .rule:nth-child(1) { --rule-color: var(--accent); }
.rules .rule:nth-child(2) { --rule-color: var(--red); }
.rules .rule:nth-child(3) { --rule-color: var(--orange); }
.rules .rule:nth-child(4) { --rule-color: var(--gold); }
.rules .rule:nth-child(5) { --rule-color: var(--blue); }
.rules .rule:nth-child(6) { --rule-color: var(--green); }

/* === Steps === */
.steps {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 26px 26px 50px;
  list-style-position: outside;
  counter-reset: step;
}
.steps li { margin-bottom: 14px; }
.steps li:last-child { margin-bottom: 0; }
.steps strong { color: var(--accent); }

/* === FAQ === */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 20px 16px;
  color: var(--text-dim);
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-inner p { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.copy {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .navbar { gap: 14px; font-size: 0.85rem; }
  .ip-box { flex-direction: column; gap: 8px; }
  .rule { flex-direction: column; gap: 6px; }
  .footer-inner { flex-direction: column; }
}


/* === Leaderboard === */
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.leaderboard-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
}
.leaderboard-card h3 {
  margin: 0 0 14px 0;
  font-size: 1.1rem;
  color: var(--accent, #ffb74d);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 10px;
}
.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rank;
}
.leaderboard-list li {
  display: grid;
  grid-template-columns: 28px 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 0.95rem;
  counter-increment: rank;
}
.leaderboard-list li:nth-child(odd) {
  background: rgba(255,255,255,0.025);
}
.leaderboard-list li.empty {
  display: block;
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 16px;
}
.leaderboard-list li::before {
  content: counter(rank);
  font-weight: 700;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}
.leaderboard-list li:nth-child(1)::before { content: "🥇"; font-size: 1.1rem; }
.leaderboard-list li:nth-child(2)::before { content: "🥈"; font-size: 1.1rem; }
.leaderboard-list li:nth-child(3)::before { content: "🥉"; font-size: 1.1rem; }
.lb-head {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  image-rendering: pixelated;
  background: linear-gradient(135deg, #1bd96a22, #ffb74d22);
  display: block;
}
.lb-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-name.bedrock::before {
  content: "⬢ ";
  color: #4dd0e1;
  font-size: 0.75rem;
}
.lb-value {
  font-weight: 700;
  color: var(--accent, #ffb74d);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* === Mod Categories === */
.mod-category {
  margin-bottom: 36px;
}
.mod-cat-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent, #ffb74d);
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,183,77,0.2);
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.mod-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.mod-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255,183,77,0.4);
  background: rgba(255,255,255,0.05);
}
.mod-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,183,77,0.15), rgba(27,217,106,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
}
.mod-tile-icon .icon {
  width: 24px;
  height: 24px;
  color: var(--accent, #ffb74d);
}
.mod-tile h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.mod-tile p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  flex: 1;
  line-height: 1.5;
}
.mod-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mod-meta span {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-family: monospace;
}
.mod-dl {
  display: inline-block;
  text-align: center;
  margin-top: 4px;
  padding: 10px 16px;
  background: var(--accent, #ffb74d);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: filter 0.15s;
}
.mod-dl:hover {
  filter: brightness(1.1);
  text-decoration: none;
}
.mods-footer {
  margin-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.mods-footer a {
  color: var(--accent, #ffb74d);
  text-decoration: none;
}
.mods-footer a:hover { text-decoration: underline; }


/* === Mod-Team (Blue theme) === */
.mod-card::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6) !important;
}
.mod-card:hover {
  border-color: #60a5fa !important;
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.2) !important;
}
.mod-badge {
  background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}
#team-mods h2 {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* === Media-Team (Purple theme) === */
.media-card::before {
  background: linear-gradient(90deg, #a855f7, #c97bff, #a855f7) !important;
}
.media-card:hover {
  border-color: #c97bff !important;
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.25) !important;
}
.media-badge {
  background: linear-gradient(135deg, #a855f7, #c97bff) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.45) !important;
}
#team-media h2 {
  background: linear-gradient(90deg, #a855f7, #c97bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
