/* =========================================================
   WebMC — Dark Mode CSS
   Full dark theme with automatic mode switching
   ========================================================= */


:root {
  --brand: #1d4ed8;
  --brand-600: #1e40af;
  --brand-50: #eef2ff;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --scrollbar-track: #f1f5f9;
  --scrollbar-border: #f1f5f9; 

  --shadow-sm: 0 1px 2px rgba(2, 6, 23, .06);
  --shadow-md: 0 6px 16px rgba(2, 6, 23, .08);
  --shadow-lg: 0 14px 28px rgba(2, 6, 23, .12);

  --container-width: 1200px;
  --header-height: 70px;
  --transition: .25s ease;
}


[data-theme="dark"] {
  --brand: #3b82f6;
  --brand-600: #2563eb;
  --brand-50: #1e293b;
  --bg: #0f172a;
  --panel: #1e293b;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;

  --scrollbar-track: #1e293b;
  --scrollbar-border: #1e293b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, .4);
  --shadow-lg: 0 14px 28px rgba(0, 0, 0, .5);
}


*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  transition: background-color var(--transition), color var(--transition);
}


body:not([data-theme="dark"]) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.92)),
    radial-gradient(1200px 600px at 100% -20%, rgba(29,78,216,.08), transparent 60%) no-repeat,
    radial-gradient(800px 500px  at -10% 120%, rgba(29,78,216,.06), transparent 60%) no-repeat,
    var(--bg);
}


[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 100% -20%, rgba(59,130,246,.12), transparent 60%) no-repeat,
    radial-gradient(800px 500px at -10% 120%, rgba(59,130,246,.08), transparent 60%) no-repeat,
    var(--bg);
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; }


.skip-link {
  position: absolute; left: 0; top: -100px;
  background: var(--brand); color: #fff; padding: .75rem 1rem;
  text-decoration: none; border-radius: 0 0 var(--radius-sm) 0; z-index: 10000;
}
.skip-link:focus { top: 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;
}


.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.bg-alt { background: var(--brand-50); }

.section-title,
.page-title {
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 1rem 0;
  position: relative;
}
.section-title::after,
.page-title::after {
  content: "";
  display: block;
  width: 72px; height: 4px; margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-600));
}

.section-intro,
.page-intro {
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto clamp(1.25rem, 2.5vw, 2rem) auto;
  text-align: center;
}


.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(226,232,240,.7);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), border-color var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, .85);
  border-bottom: 1px solid rgba(51, 65, 85, .7);
}

.header-content {
  min-height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(1px 1px 0 #fff) drop-shadow(2px 2px 2px rgba(0,0,0,.1));
  transition: transform 0.25s ease;
}

[data-theme="dark"] .logo img {
  filter: drop-shadow(1px 1px 0 rgba(255,255,255,.1)) drop-shadow(2px 2px 2px rgba(0,0,0,.5));
}

.logo:hover img,
.logo:focus img {
  transform: scale(1.05);
}


.theme-toggle {
  background: var(--panel);
  border: 2px solid var(--border);
  padding: .5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all var(--transition);
  color: var(--ink);
}

.theme-toggle:hover {
  background: var(--brand-50);
  border-color: var(--brand);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

.mobile-menu-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink);
}

.hamburger { width: 24px; height: 2px; background: currentColor; position: relative; display: block; }
.hamburger::before, .hamburger::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.hamburger::before { top: -8px; } .hamburger::after { bottom: -8px; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translateY(8px); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg) translateY(-8px); }

.main-nav { display: block; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 10px;
}
.nav-link {
  display: block; text-decoration: none; color: var(--ink);
  padding: .5rem .75rem; border-radius: 10px; font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link:focus { background: var(--brand-50); color: var(--brand); }
.nav-link.active { color: var(--brand); }
.nav-link.active::after {
  content: ""; display: block; height: 3px; margin-top: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-600));
}
.btn.btn-sm { padding: .45rem .9rem; font-size: .9rem; }


.btn {
  display: inline-block; font-family: inherit; font-weight: 700;
  padding: .7rem 1.2rem; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 0 rgba(2, 6, 23, .12);
  text-decoration: none; text-align: center;
}

[data-theme="dark"] .btn {
  box-shadow: 0 2px 0 rgba(0, 0, 0, .4);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  filter: brightness(1.1); transform: translateY(-1px);
}
.btn-secondary {
  background: var(--panel); color: var(--brand); border: 2px solid var(--border);
}
.btn-secondary:hover, .btn-secondary:focus { background: var(--brand-50); }


.hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #fff; text-align: center; padding: clamp(3rem, 8vw, 6rem) 0;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.hero--bg {
  position: relative;
  color: #fff;
  background: url('../img/hero-bg.jpg') center / cover no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

[data-theme="dark"] .hero--bg::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

.hero--bg > * {
  position: relative;
  z-index: 2;
}

.hero--bg .container { position: relative; z-index: 1; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem 0; font-weight: 800; }
.hero-subtitle { font-size: 1.125rem; opacity: .95; margin: 0 0 1.75rem 0; }
.hero-ip {
  display: inline-block; padding: 1rem 1.25rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px); margin-bottom: 1.25rem;
}
.ip-label { font-size: .9rem; opacity: .9; display: block; margin-bottom: .3rem; }
.ip-address {
  font-weight: 800; font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.25rem; background: rgba(255,255,255,.2);
  padding: .25rem .75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }


.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 3.5vw, 2rem); margin-top: 2rem;
}
.feature-card {
  text-align: center; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 1.5rem; transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  color: var(--brand); background: var(--brand-50); border-radius: 14px; padding: .75rem;
  margin: 0 auto 1rem auto; width: 64px; height: 64px; display: grid; place-items: center;
}
.feature-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 .35rem 0; }
.feature-text { color: var(--muted); margin: 0; }


.discord-invite-section { 
  background: linear-gradient(180deg, var(--brand-50), transparent); 
}
.discord-invite {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.25rem, 3.5vw, 2rem);
  display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(1rem, 3vw, 2rem);
}
.discord-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .75rem 0; }
.discord-text { color: var(--muted); margin: 0 0 1.25rem 0; }
.discord-image img { width: 200px; height: 200px; object-fit: contain; margin-inline: auto; }


.reasons-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1rem, 3.5vw, 2rem);
}
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 1.5rem; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { color: var(--brand); margin-bottom: .75rem; }
.card-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem 0; }
.card-text { color: var(--muted); margin: 0; }


.minigames-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 3.5vw, 2rem);
}
.minigame-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); transition: transform var(--transition), box-shadow var(--transition);
}
.minigame-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.minigame-image { aspect-ratio: 16 / 9; position: relative; background: var(--brand-50); }
.minigame-image img { width: 100%; height: 100%; object-fit: cover; }
.minigame-content { padding: 1rem 1.25rem 1.25rem; }
.minigame-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem 0; }
.minigame-text { color: var(--muted); margin: 0; }


.team-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #5865f2;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.team-discord-btn i {
  font-size: 1.1rem;
}

.team-discord-btn:hover {
  transform: translateY(-2px);
}

.team-section { margin-bottom: clamp(2rem, 5vw, 3rem); }
.team-heading {
  font-weight: 800; color: var(--ink); font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin: 0 0 1rem 0; border-bottom: 4px solid var(--brand); padding-bottom: .5rem;
}
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 3.5vw, 2rem);
}
.team-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 128px; height: 128px; border-radius: 16px; object-fit: cover;
  border: 4px solid var(--brand-50); margin: 0 auto 1rem auto;
  box-shadow: 0 6px 14px rgba(2, 6, 23, .12); background: var(--brand-50);
}
.team-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 .25rem 0; }
.team-role { color: var(--brand); font-weight: 700; margin: 0 0 .5rem 0; }
.team-bio { color: var(--muted); font-size: .95rem; margin: 0 0 .5rem 0; }
.team-contact { color: var(--muted); display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; }


.rules-updated { text-align: center; color: var(--muted); font-size: .95rem; margin: 0 0 1.75rem 0; }
.tabs { margin-top: 1.5rem; }
.tablist {
  display: flex; gap: .5rem; border-bottom: 2px solid var(--border); margin-bottom: 1rem; flex-wrap: wrap;
}
.tab {
  background: transparent; border: 0; padding: .75rem 1.1rem; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab:hover, .tab:focus { color: var(--brand); }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, white 40%); outline-offset: 2px; }
.tabpanel { animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.rules-section-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 1rem 0; }
.rules-subsection { margin-bottom: 1.5rem; }
.rules-subsection-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .75rem 0; }
.rules-list { list-style: none; padding: 0; margin: 0; counter-reset: rule; }
.rules-list li {
  counter-increment: rule; margin-bottom: .9rem; padding-left: 2.25rem; position: relative; color: var(--ink);
}
.rules-list li::before {
  content: counter(rule);
  position: absolute; left: 0; top: .1rem; width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: .85rem;
}
.rules-list code {
  background: var(--brand-50); padding: .1rem .35rem; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .85rem; color: var(--ink);
}
.rules-footer {
  margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--brand-50);
  border-radius: var(--radius-lg); border-left: 4px solid var(--brand);
}


.vote-rewards {
  background: var(--brand-50); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.vote-rewards-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 .75rem 0; }
.vote-rewards-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.vote-rewards-list li { position: relative; padding-left: 1.6rem; }
.vote-rewards-list li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem; color: var(--brand); font-weight: 900;
}

.vote-form { max-width: 520px; margin: 0 auto 2rem auto; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.form-required { color: #dc2626; }
.form-input {
  width: 100%; padding: .8rem .9rem; font-size: 1rem; border: 2px solid var(--border);
  border-radius: 12px; background: var(--panel); color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}
.form-input.error { border-color: #dc2626; }
.form-help { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.form-error { font-size: .9rem; color: #dc2626; margin-top: .35rem; display: none; }
.form-error:not(:empty) { display: block; }

.vote-sites-title {
  font-size: 1.5rem; font-weight: 800; text-align: center;
  margin: 0 0 1rem 0;
}
.vote-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1rem, 3.5vw, 2rem); margin-bottom: 2rem;
}
.vote-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.vote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vote-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.vote-card-title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.vote-badge {
  background: var(--brand); color: #fff; font-size: .8rem; font-weight: 800;
  padding: .2rem .6rem; border-radius: 999px; box-shadow: 0 2px 0 rgba(2,6,23,.15);
}
.vote-card-text { color: var(--muted); margin: 0 0 .9rem 0; }
.vote-card-actions { display: flex; flex-direction: column; gap: .6rem; }
.vote-link-new {
  text-align: center; color: var(--brand); text-decoration: none; font-size: .9rem;
  transition: opacity var(--transition);
}
.vote-link-new:hover, .vote-link-new:focus { opacity: .85; }

.vote-info {
  background: var(--brand-50); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.vote-info-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 .75rem 0; }
.vote-info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.vote-info-list strong { color: var(--ink); }


.site-footer {
  background: #0b1220; color: #fff; margin-top: clamp(2rem, 6vw, 3rem);
  padding: 2.25rem 0 1rem 0; position: relative;
}

[data-theme="dark"] .site-footer {
  background: #020617;
}

.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--brand-600));
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 3.5vw, 2rem); margin-bottom: 1.25rem;
}
.footer-heading { font-size: 1.1rem; font-weight: 800; margin: 0 0 .75rem 0; }
.footer-text { color: rgba(255,255,255,.85); margin: 0 0 .75rem 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.social-links { display: flex; gap: 14px; }
.social-link { color: rgba(255,255,255,.85); display: grid; place-items: center; }
.social-link:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }


@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  
  [data-theme="dark"] .main-nav {
    background: rgba(15, 23, 42, .98);
  }
  
  .main-nav[aria-hidden="false"] { max-height: 520px; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px; gap: 6px; }
  .nav-link { padding: .9rem 1rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .ip-address { font-size: 1.1rem; }
  .features-grid,
  .reasons-grid,
  .minigames-grid,
  .team-grid,
  .vote-grid { grid-template-columns: 1fr; }
  .discord-invite { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation-duration: .01ms !important; 
    animation-iteration-count: 1 !important; 
    transition-duration: .01ms !important; 
  }
}



::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  border-radius: 10px;
  border: 2px solid var(--scrollbar-border);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15) inset;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand));
}


* {
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--scrollbar-track); 
}


[data-theme="dark"] * {
  scrollbar-color: var(--brand) #1e293b;
}

/* ==========================================================================
   WMC Stats (Dark Mode Compatible)
   ========================================================================== */
.wmc-stats-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wmc-stats-section {
  padding: 3rem 0;
}

.wmc-stats-btn {
  background: var(--brand);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.wmc-stats-btn:hover {
  background: var(--brand-600);
}

.wmc-stats-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wmc-stats-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
}

.wmc-stats-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.wmc-stats-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wmc-stats-status-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.wmc-stats-updated {
  color: var(--muted);
  font-size: 0.85rem;
}

.wmc-stats-grid {
  display: flexbox;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .wmc-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wmc-stats-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 10px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--brand);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wmc-stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.wmc-stats-card.secondary {
  border-top-color: var(--brand-600);
}

.wmc-stats-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}

.wmc-stats-players {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.wmc-stats-players-count {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
}

.wmc-stats-players-max {
  color: var(--muted);
  font-size: 0.9rem;
}

.wmc-stats-kv {
  display: grid;
  gap: 0.75rem;
}

.wmc-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--ink);
}

.wmc-stats-val {
  font-weight: 600;
}

.wmc-stats-block + .wmc-stats-block {
  margin-top: 1rem;
}

.wmc-stats-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.wmc-stats-strong {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.wmc-stats-progress {
  height: 0.5rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
}

.wmc-stats-bar {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.3s ease;
}



/* Celý blok online informací */
.online {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    justify-content: center;
    padding: 8px 14px;
    background: rgba(20, 20, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: fit-content;
    backdrop-filter: blur(6px);
}

/* Indikátor stavu */
.status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #888; /* default / loading */
    box-shadow: 0 0 6px rgba(150, 150, 150, 0.4);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Online */
.status.success {
    background: #39ff14;
    box-shadow: 0 0 10px #39ff14, 0 0 20px rgba(57, 255, 20, 0.7);
}

/* Offline */
.status.error {
    background: #ff2b2b;
    box-shadow: 0 0 10px #ff2b2b, 0 0 20px rgba(255, 43, 43, 0.7);
}

/* Text hráčů */
.players {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.3px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.15);
}








