/*
Theme Name: BattleTanks (btanks)
Theme URI: https://btanks.pages.dev/
Author: Gabriel Lugo
Description: Migración del sitio estático BattleTanks a tema clásico de WordPress con Home modular y Ranking Live vía Worker.
Version: 16.0.0
Requires at least: 6.0
Tested up to: 6.9.1
License: GPL-2.0-or-later
Text Domain: btanks
Tags: dark, one-column, two-columns, custom-menu
*/

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

:root {
  --bg: #040509;
  --bg-alt: #050811;
  --panel: rgba(15, 23, 42, 0.96);
  --accent: #f97316;
  --accent-soft: rgba(248, 171, 88, 0.25);
  --accent-strong: #facc15;
  --text-main: #e5e7eb;
  --text: var(--text-main);
  --text-muted: #9ca3af;
  --text-strong: #f9fafb;
  --border: rgba(148, 163, 184, 0.24);
  --bg-elevated: rgba(8, 12, 24, 0.92);
  --border-subtle: rgba(30, 64, 175, 0.6);
  --radius-lg: 16px;
  --shadow-soft: 0 22px 55px rgba(0, 0, 0, 0.85);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 50%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.95), rgba(3, 7, 18, 0.85), transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text-main {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--text-strong);
}

.logo-text-main span {
  color: var(--accent-strong);
}

.logo-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.2s ease-out;
}

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

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1020;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
}

.site-nav {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
  background-image:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.9)),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-small {
  min-height: 40vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.95) 80%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 48px 16px;
  max-width: 720px;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111827;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
}

.btn.small {
  font-size: 11px;
  padding: 8px 14px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

/* Sections */
.section {
  padding: 48px 0;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(3, 7, 18, 1));
}

.section.alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(3, 7, 18, 1));
}

.section-inner {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 26px 20px 22px;
}

.section-header {
  margin-bottom: 22px;
}

.section-header h2 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.section-header p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 16px 16px 14px;
}

.info-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--accent-strong);
}

.info-card p {
  font-size: 13px;
  color: var(--text-main);
}

/* Seasons */
.seasons-grid {
  display: grid;
  gap: 16px;
}

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

.season-card {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.35), rgba(15, 23, 42, 0.98));
}

.season-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.season-card p {
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.season-label {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
  border: 1px solid rgba(248, 171, 88, 0.6);
  color: var(--accent-strong);
}

/* Download */
.download-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.download-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.download-text {
  font-size: 13px;
  color: var(--text-main);
}

.download-list {
  list-style: none;
  margin: 10px 0 14px;
}

.download-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.download-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-strong);
}

.download-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background-image:
    linear-gradient(90deg, rgba(3, 7, 18, 0.9), rgba(3, 7, 18, 0.4)),
    url("../img/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 130px;
  display: flex;
  align-items: flex-end;
}

.download-banner p {
  position: relative;
  padding: 14px;
  font-size: 13px;
  color: var(--text-main);
}

.download-banner span {
  color: var(--accent-strong);
  font-weight: 600;
}

/* Generic grids for season pages */
.stats-grid,
.leaders-grid,
.elo-grid,
.records-grid {
  display: grid;
  gap: 14px;
}

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

.leaders-grid,
.elo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.stat-card,
.leader-card,
.elo-card,
.record-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 12px 12px 10px;
  font-size: 13px;
}

.stat-card h3,
.leader-card h3,
.elo-card h3,
.record-card h3 {
  font-size: 13px;
  margin-bottom: 4px;
  color: #facc15;
}

.stat-main {
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.stat-sub {
  font-size: 12px;
  color: #9ca3af;
}

.elo-card ul {
  list-style: none;
  margin-top: 4px;
  font-size: 13px;
}

.elo-card li span {
  color: #facc15;
  margin-right: 4px;
  font-size: 11px;
}

/* Footer */
.site-footer {
  padding: 18px 0 24px;
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.footer-inner {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.footer-note {
  margin-top: 4px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 960px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid,
  .leaders-grid,
  .elo-grid,
  .records-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .header-inner {
    padding-inline: 8px;
    position: relative;
  }

  .nav {
    position: absolute;
    right: 16px;
    top: 44px;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(3, 7, 18, 0.98);
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    transform-origin: top right;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.13s ease-out, transform 0.13s ease-out;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .info-grid,
  .seasons-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid,
  .leaders-grid,
  .elo-grid,
  .records-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav {
    position: absolute;
    right: 8px;
    top: 48px;
    width: min(280px, calc(100vw - 16px));
    background: rgba(3, 7, 18, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    padding: 10px;
    display: none;
    z-index: 60;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav .nav-links > li > a {
    width: 100%;
  }
}


/* === Hero header & Top5 ticker === */
.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.site-title {
  font-size: 3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top5-ticker {
  min-width: 260px;
  max-width: 420px;
  font-size: 0.8rem;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.ticker-label {
  font-weight: 700;
  font-size: 0.75rem;
  color: #ffdf70;
  letter-spacing: 0.18em;
}

.ticker-track {
  margin-top: 0.4rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track-inner {
  display: inline-block;
  padding-left: 100%;
  animation: bt-ticker-scroll 25s linear infinite;
  color: #f5f5f5;
  opacity: 0.9;
}

@keyframes bt-ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top5-ticker {
    width: 100%;
  }
}

/* === Ranking section === */
.section-ranking {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.ranking-table-wrapper {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 800px;
}

.ranking-table thead {
  background: rgba(0, 0, 0, 0.7);
}

.ranking-table th,
.ranking-table td {
  padding: 0.4rem 0.6rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ranking-table th {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.ranking-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.ranking-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.2);
}

.ranking-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

.section-ranking .btn {
  margin-top: 1rem;
}


/* === HERO LAYOUT WITH LEFT TOP5 PANEL === */
.hero-content {
  max-width: 1100px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.hero-main {
  text-align: center;
}

.top5-panel {
  text-align: left;
}

.top5-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffdf70;
  margin-bottom: 8px;
}

.top10-box {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  font-size: 0.8rem;
  box-shadow: 0 0 18px rgba(0,0,0,0.8);
}

.top10-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.top10-track {
  height: 130px;
  overflow: hidden;
  position: relative;
}

.top10-inner {
  display: flex;
  flex-direction: column;
  animation: bt-top10-scroll 12s linear infinite;
}

.top10-inner div {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

@keyframes bt-top10-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .top5-panel {
    order: 2;
  }
  .hero-main {
    order: 1;
  }
}



/* =========================
   v2 Enhancements
   ========================= */
.badge { display:inline-flex; align-items:center; gap:6px; font-size:12px; padding:4px 10px; border-radius:999px; border:1px solid var(--border); margin-left:10px; }
.badge-accent { background: rgba(28,126,214,0.15); border-color: rgba(28,126,214,0.35); color: var(--text); }
.season-card.is-latest { outline: 1px solid rgba(28,126,214,0.45); box-shadow: 0 0 0 3px rgba(28,126,214,0.12); }
.big-number { font-size: 28px; font-weight: 700; margin: 10px 0 0; }
.clean-list { list-style:none; padding:0; margin:0; }
.clean-list li { padding:8px 0; border-top:1px solid var(--border); }
.clean-list li:first-child { border-top:0; }
.season-columns { display:grid; grid-template-columns: 1fr; gap:16px; }
@media (min-width: 900px) { .season-columns { grid-template-columns: 1fr 1fr; } }
.two-col { display:grid; grid-template-columns: 1fr; gap:14px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }
.ranking-table-wrap { overflow:auto; border-radius: 16px; border: 1px solid var(--border); }
.ranking-table { width:100%; min-width: 980px; border-collapse: collapse; }
.ranking-table th, .ranking-table td { padding: 12px 12px; border-bottom: 1px solid var(--border); }
.ranking-table thead th { position: sticky; top: 0; background: var(--bg-elevated); }

/* =========================
   v3 Blog & Menu Enhancements
   ========================= */

.container { max-width: var(--bt-container-max, 1100px); }

.content-wrap { padding: 48px 0; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 48px 0; }
@media (min-width: 980px) { .content-grid { grid-template-columns: 1fr 340px; } }
.content-main { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.prose { line-height: 1.7; }
.prose-header { margin-bottom: 14px; }
.prose-title { margin: 0; font-size: 34px; }
.prose-body h2 { margin-top: 28px; }
.prose-body h3 { margin-top: 22px; }
.prose-body p { margin: 12px 0; }
.prose-body a { color: inherit; text-decoration: underline; text-decoration-color: rgba(28,126,214,.45); text-underline-offset: 4px; }
.prose-body pre, .prose-body code { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; }
.prose-body pre { padding: 14px; overflow:auto; }
.prose-body code { padding: 2px 6px; }

.post-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.post-thumb img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border); margin: 14px 0 4px; }

.post-grid { display:grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 820px) { .post-grid { grid-template-columns: 1fr 1fr; } }

.post-card { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.post-card-title { margin:0 0 8px; font-size: 20px; }
.post-card-meta { font-size: 13px; }
.post-card-excerpt { margin-top: 10px; }

.widget-title { margin: 0 0 10px; font-size: 16px; }
.widget ul { margin: 0; padding-left: 18px; }
.widget a { color: inherit; text-decoration: none; }
.widget a:hover { text-decoration: underline; text-decoration-color: rgba(28,126,214,.45); }

.pagination { padding: 14px; }
.pagination .nav-links { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.pagination a, .pagination span { padding: 8px 10px; border:1px solid var(--border); border-radius: 999px; text-decoration:none; }
.pagination .current { background: rgba(28,126,214,.15); border-color: rgba(28,126,214,.35); }

/* Deep menu support (Knowledge Base mega tree) */
.site-nav .nav-links,
.site-nav .nav-links ul { list-style:none; margin:0; padding:0; }
.site-nav .nav-links { display:flex; gap: 14px; align-items:center; }
.site-nav .nav-links > li { position: relative; }
.site-nav .nav-links a { display:inline-flex; padding: 10px 10px; border-radius: 10px; text-decoration:none; color: inherit; }
.site-nav .nav-links > li > a:hover { background: rgba(255,255,255,.04); }

.site-nav .nav-links li ul { 
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: none;
  z-index: 50;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.site-nav .nav-links li:hover > ul { display:block; }

.site-nav .nav-links li ul li { position: relative; }
.site-nav .nav-links li ul a { width: 100%; justify-content: space-between; padding: 8px 10px; border-radius: 10px; }
.site-nav .nav-links li ul a:hover { background: rgba(255,255,255,.04); }

.site-nav .nav-links li ul li ul {
  left: calc(100% + 10px);
  top: -10px;
}

/* Mobile: stack menu and show submenus indented */
@media (max-width: 860px) {
  .site-nav .nav-links { flex-direction: column; align-items:flex-start; gap: 4px; }
  .site-nav .nav-links li { width: 100%; }
  .site-nav .nav-links li ul { position: static; display:block; box-shadow:none; border-radius: 12px; margin: 6px 0 0 12px; }
}

/* =========================
   v7 Home (Landing + Posts)
   ========================= */
#updates .post-grid { margin-top: 18px; }
#updates .post-card-title { font-size: 18px; }

/* =========================
   v8 Customizer + Logo
   ========================= */
.brand .custom-logo-link { display:inline-flex; align-items:center; }
.brand .custom-logo { max-height: 34px; width:auto; }


/* =========================
   v9 Section Cards
   ========================= */

.section { margin: var(--bt-section-gap, 40px) 0; }

.section > .container {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* Faded background image for key home sections */
#more > .container,
#seasons > .container,
#download > .container,
#ranking > .container {
  position: relative;
  isolation: isolate;
}

#more > .container::after,
#seasons > .container::after,
#download > .container::after,
#ranking > .container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(4, 8, 24, 0.7), rgba(4, 8, 24, 0.82)),
    var(--bt-faded-panel-bg, url("assets/img/banner.jpg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.42;
}

#more > .container > *,
#seasons > .container > *,
#download > .container > *,
#ranking > .container > * {
  position: relative;
  z-index: 1;
}

.section-header h2 {
  margin-top: 0;
}

.hero > .container {
  background: transparent;
  border: none;
  box-shadow: none;
}

.download-layout {
  gap: 24px;
}

.card-grid {
  margin-top: 20px;
}

.ranking-table-wrap {
  background: rgba(0,0,0,.2);
  border-radius: 14px;
}




/* =========================
   v10 Visual Upgrade
   ========================= */

/* center hero content */
.hero-left{
  max-width:900px;
  margin:0 auto;
  text-align:center;
}

.hero-actions{
  justify-content:center;
}

/* futuristic panels */
.section > .container{
  position:relative;
  overflow:hidden;
}

.section > .container::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  padding:1px;
  background:linear-gradient(120deg, rgba(0,170,255,.6), rgba(180,80,255,.4));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}

/* subtle hover glow */
.section > .container:hover{
  transform:translateY(-2px);
  box-shadow:0 25px 80px rgba(0,0,0,.45);
  transition:.25s ease;
}

/* ranking table improvements */
table{
  border-collapse:collapse;
}

.ranking-table-wrap table tr{
  border-bottom:1px solid rgba(255,255,255,.05);
}

.ranking-table-wrap table tr:hover{
  background:rgba(255,255,255,.04);
}

.ranking-table-wrap th{
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.08em;
  opacity:.7;
}

/* better buttons */
.btn{
  transition:.2s ease;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}

/* subtle animations */
.section{
  animation:btfade .5s ease;
}

@keyframes btfade{
  from{opacity:0; transform:translateY(10px)}
  to{opacity:1; transform:translateY(0)}
}



/* =========================
   v11 Home Controls
   ========================= */
.section-header.align-center { text-align:center; }
.section-header.align-center p { margin-left:auto; margin-right:auto; }
.hero-left.align-left { text-align:left; margin:0; }
.hero-left.align-center { text-align:center; margin:0 auto; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.hero-left.align-left .hero-actions { justify-content:flex-start; }
.hero-left.align-center .hero-actions { justify-content:center; }

/* =========================
   v12 Alignment + Layout
   ========================= */

/* HERO ALIGNMENT FIX */
.hero-layout { display: flex; }
.hero-left { width: 100%; }

.hero-left.align-center{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.hero-left.align-left{
  text-align:left;
  margin-left:0;
  margin-right:0;
}

.hero-left.align-center .hero-actions{
  justify-content:center;
}

.hero-left.align-left .hero-actions{
  justify-content:flex-start;
}

/* Section header alignment */
.section-header.align-center { text-align:center; }
.section-header.align-center p { margin-left:auto; margin-right:auto; max-width: 60ch; }
.section-header.align-left { text-align:left; }

/* Buttons alignment (optional) */
.hero-actions.align-center { justify-content:center; }
.hero-actions.align-left { justify-content:flex-start; }

/* =========================
   v13 More content + Slideshow
   ========================= */
.bt-more-top{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
@media (min-width: 980px){
  .bt-more-top{
    grid-template-columns: 1.3fr .7fr;
    gap: 22px;
  }
}

.bt-more-body{
  margin-top: 12px;
  color: var(--text);
  opacity: .92;
}

.bt-card-text p{ margin: 10px 0; }

.bt-slideshow{
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  min-height: 240px;
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.bt-slide{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  opacity:0;
  transform: scale(1.02);
  transition: opacity .45s ease, transform .8s ease;
}
.bt-slide.is-active{
  opacity:1;
  transform: scale(1.0);
}

.bt-slideshow::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
  pointer-events:none;
}

.bt-dots{
  position:absolute;
  left: 14px;
  bottom: 12px;
  display:flex;
  gap: 8px;
  z-index: 2;
}
.bt-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  cursor:pointer;
  padding:0;
}
.bt-dot.is-active{
  background: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.85);
}

/* =========================
   v14 Card System (fix)
   ========================= */

.card-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 900px){
  .card-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

.card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.card h3{
  margin: 0 0 10px;
}

.card p{
  margin: 10px 0;
}

.card:hover{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  transform: translateY(-1px);
  transition: .2s ease;
}

/* =========================
   v15 Download Layout
   ========================= */
.download-layout-2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
@media (min-width: 980px){
  .download-layout-2{
    grid-template-columns: 1.15fr .85fr;
    gap: 26px;
  }
}

.download-paragraph{
  margin: 18px 0 10px;
  color: rgba(245,245,245,.92);
  line-height: 1.7;
}

.download-bullets{
  list-style: none;
  padding-left: 0;
  margin: 12px 0 18px;
}
.download-bullets li{
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  color: rgba(245,245,245,.92);
}
.download-bullets li::before{
  content:"";
  position:absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 184, 0, .95);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, .12);
}

.download-actions{
  margin-top: 18px;
}

.btn.btn-orange{
  background: linear-gradient(135deg, rgba(255,146,43,1), rgba(255,184,0,1));
  border: 0;
  color: #0b0f1d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 14px 22px;
  border-radius: 999px;
}
.btn.btn-orange:hover{
  filter: brightness(1.05);
}

.download-media{
  position: relative;
  min-height: 240px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background-size: cover;
  background-position: center;
}
@media (min-width: 980px){
  .download-media{ min-height: 280px; }
}

.download-media-overlay{
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 20% 30%, rgba(0,0,0,.15), rgba(0,0,0,.6) 70%);
}

.download-media-text{
  position:absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  z-index: 2;
}
.download-media-line1{
  color: rgba(245,245,245,.92);
  font-size: 14px;
  margin-bottom: 4px;
}
.download-media-line2{
  color: rgba(255, 184, 0, .95);
  font-weight: 800;
  font-size: 16px;
}

/* =========================
   v16 Info Card Title Style
   ========================= */
#more .card h3{
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 184, 0, .95);
  letter-spacing: .02em;
}

#more .card .bt-info-card-title{
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 184, 0, .95);
  letter-spacing: .02em;
}

/* v17 Seasons Grid */
.seasons-grid{
 display:grid;
 grid-template-columns:repeat(4,1fr);
 gap:22px;
 margin-top:30px;
}

@media(max-width:1000px){
 .seasons-grid{grid-template-columns:repeat(2,1fr);}
}

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

.season-card{
 background:rgba(255,255,255,.03);
 border:1px solid rgba(255,255,255,.12);
 border-radius:16px;
 padding:22px;
 position:relative;
 transition:.25s;
}

.season-card:hover{
 border-color:#ffb800;
 box-shadow:0 0 20px rgba(255,184,0,.25);
 transform:translateY(-3px);
}

.season-badge{
 position:absolute;
 top:16px;
 left:16px;
 background:#ffb800;
 color:#111;
 font-weight:700;
 padding:4px 10px;
 border-radius:20px;
 font-size:11px;
 letter-spacing:.05em;
}

.season-card h3{
 color:#ffb800;
 font-weight:800;
 margin-top:8px;
}

.season-btn{
 display:inline-block;
 margin-top:14px;
 padding:8px 16px;
 border:1px solid #3b82f6;
 border-radius:20px;
 font-size:12px;
 letter-spacing:.08em;
}
