/* =====================================================
   L2 OldKing — Main Stylesheet
   Theme: Medieval Dark | Gold & Silver
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Cinzel+Decorative:wght@400;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --gold:          #D4AF37;
  --gold-bright:   #FFD700;
  --gold-dark:     #9A7B1A;
  --gold-deeper:   #6B5510;
  --silver:        #C8C8C8;
  --silver-bright: #F0F0F0;
  --silver-dark:   #888;
  --bg:            #060504;
  --bg-2:          #0c0a07;
  --bg-panel:      rgba(10,7,3,0.97);
  --bg-card:       rgba(18,13,6,0.92);
  --text:          #d0c8b8;
  --text-muted:    #888;
  --border-gold:   rgba(212,175,55,0.30);
  --border-bright: rgba(212,175,55,0.65);
  --glow-gold:     0 0 18px rgba(212,175,55,0.35);
  --glow-bright:   0 0 30px rgba(255,215,0,0.55);
  --radius:        6px;
  --font-heading:  'Cinzel', serif;
  --font-deco:     'Cinzel Decorative', serif;
  --font-body:     'Inter', sans-serif;
  --font-serif:    'Crimson Text', serif;
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }

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

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* ── Utilities ─────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-silver { color: var(--silver); }
.text-center { text-align: center; }
.container   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--silver-bright);
  text-align: center;
  margin-bottom: 8px;
}
.section-title span { color: var(--gold); }

.section-subtitle {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 52px;
}

.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px auto 48px;
}
.divider-gold::before,
.divider-gold::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider-gold::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider-gold .diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: var(--glow-gold);
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all .25s;
}

.btn-gold {
  background: linear-gradient(135deg, #9A7B1A 0%, #D4AF37 40%, #FFD700 60%, #C9960C 100%);
  color: #0a0600;
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,215,0,0.55);
  color: #000;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 0 var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
}

.btn-silver {
  background: linear-gradient(135deg, #888 0%, #C8C8C8 50%, #F0F0F0 100%);
  color: #0a0a0a;
}
.btn-silver:hover { filter: brightness(1.15); transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: .72rem; }
.btn-lg { padding: 16px 42px; font-size: .9rem; }

/* ── Navbar ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 72px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(6,5,4,0.98) 0%, rgba(6,5,4,0.85) 100%);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  transition: background .3s;
}
#navbar.scrolled {
  background: rgba(6,5,4,0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px;
}

.nav-logo img { height: 46px; filter: drop-shadow(0 0 10px rgba(212,175,55,0.5)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
  border-radius: 4px;
  position: relative;
  transition: color .2s;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--gold); }
.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.on  { background: #4caf50; box-shadow: 0 0 8px #4caf50; animation: pulse-green 2s infinite; }
.status-dot.off { background: #e53935; }

@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 8px #4caf50; }
  50%      { box-shadow: 0 0 16px #4caf50; }
}

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

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--silver); transition: .3s; border-radius: 2px; }

/* ── Hero Section ──────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(180,130,10,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(80,60,20,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #060504 0%, #0a0804 50%, #060504 100%);
}

/* Animated grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0%   { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

/* Particles */
.particles-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) scale(.5); }
  15%  { opacity: .8; }
  85%  { opacity: .6; }
  100% { opacity: 0; transform: translateY(-600px) scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-logo {
  max-width: 480px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 40px rgba(212,175,55,0.5));
  animation: heroLogoFloat 4s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%,100% { transform: translateY(0); filter: drop-shadow(0 0 40px rgba(212,175,55,0.5)); }
  50%      { transform: translateY(-10px); filter: drop-shadow(0 0 60px rgba(255,215,0,0.7)); }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--silver);
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.hero-chronicle {
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}

.hero-rates {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.rate-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 24px;
  background: rgba(18,13,6,0.8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  min-width: 90px;
  position: relative;
  overflow: hidden;
}
.rate-pill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rate-label {
  font-family: var(--font-heading);
  font-size: .62rem;
  letter-spacing: .15em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.rate-value {
  font-family: var(--font-deco);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(255,215,0,0.5);
}

.hero-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── Countdown ─────────────────────────────────────── */
#countdown-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(15,10,4,1) 50%, var(--bg) 100%);
  padding: 60px 0;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.countdown-label {
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 28px;
}

.countdown-blocks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}
.cd-num {
  font-family: var(--font-deco);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(255,215,0,0.6);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}
.cd-unit {
  font-family: var(--font-heading);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-top: 6px;
}
.cd-sep {
  font-family: var(--font-deco);
  font-size: 2.5rem;
  color: var(--gold-dark);
  align-self: flex-start;
  padding-top: 6px;
}

/* ── Features / Características ──────────────────── */
#features {
  padding: 100px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), var(--glow-gold);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.5));
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.feature-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* ── How to Play ───────────────────────────────────── */
#how-to-play {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(15,10,4,0.7), transparent);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  position: relative;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
}
.step-num {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-deco);
  font-size: 1.4rem;
  font-weight: 900;
  background: radial-gradient(circle, #9A7B1A, #6B5510);
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(212,175,55,0.4);
}
.step-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--silver-bright);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-desc {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.65;
}

/* ── Rankings Preview ──────────────────────────────── */
#rankings-preview {
  padding: 100px 0;
}
.ranks-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.rank-tab {
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  background: transparent;
}
.rank-tab:hover,
.rank-tab.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
}

.rank-panel { display: none; }
.rank-panel.active { display: block; }

.rank-table {
  width: 100%;
  border-collapse: collapse;
}
.rank-table thead th {
  font-family: var(--font-heading);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-gold);
}
.rank-table tbody tr {
  border-bottom: 1px solid rgba(212,175,55,0.06);
  transition: background .2s;
}
.rank-table tbody tr:hover { background: rgba(212,175,55,0.04); }
.rank-table tbody td {
  padding: 14px 16px;
  color: var(--text);
  font-size: .9rem;
}
.rank-table .rank-pos {
  font-family: var(--font-deco);
  font-weight: 700;
  color: var(--gold-dark);
  width: 48px;
}
.rank-table .rank-pos.pos-1 { color: var(--gold-bright); text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.rank-table .rank-pos.pos-2 { color: var(--silver-bright); }
.rank-table .rank-pos.pos-3 { color: #c87533; }
.rank-table .rank-char { font-weight: 600; color: var(--silver-bright); }
.rank-table .rank-val  { color: var(--gold); font-family: var(--font-heading); font-size: .85rem; }

.ranks-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── News ──────────────────────────────────────────── */
#news-section { padding: 100px 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 20px rgba(212,175,55,0.1);
}
.news-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1208, #0a0804);
}
.news-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #1a1208 0%, #0e0b06 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border-gold);
}
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-family: var(--font-heading);
  font-size: .62rem;
  letter-spacing: .15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.news-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--silver-bright);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-excerpt {
  color: var(--text-muted);
  font-size: .88rem;
  flex: 1;
  margin-bottom: 20px;
}
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--border-gold);
  padding-top: 16px;
  transition: gap .2s;
}
.news-read-more:hover { gap: 10px; }

/* ── Staff ─────────────────────────────────────────── */
#staff-section { padding: 80px 0; background: rgba(15,10,4,0.5); }

.staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  min-width: 180px;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), var(--glow-gold);
}
.staff-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(212,175,55,0.4);
  background: linear-gradient(135deg, #2a1d08, #1a1106);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.staff-name {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--silver-bright);
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.staff-role {
  font-family: var(--font-heading);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Modals ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.9), 0 0 60px rgba(212,175,55,0.15);
  transform: translateY(30px);
  transition: transform .3s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color .2s;
}
.modal-close:hover { color: var(--gold); }

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--silver-bright);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.modal-subtitle {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 28px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.form-control::placeholder { color: rgba(200,200,200,0.2); }

.suffix-display {
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: .85rem;
  color: var(--gold);
  margin-top: 8px;
}

.modal-switch {
  text-align: center;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--text-muted);
}
.modal-switch a { color: var(--gold); }

.modal-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  margin-bottom: 16px;
  display: none;
}
.modal-alert.success { background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.3); color: #81c784; }
.modal-alert.error   { background: rgba(229,57,53,0.12); border: 1px solid rgba(229,57,53,0.3); color: #e57373; }
.modal-alert.show { display: block; }

/* ── Footer ────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border-gold);
  background: var(--bg-2);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links li a {
  color: var(--text-muted);
  font-size: .88rem;
  transition: color .2s;
}
.footer-links li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-gold);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: .78rem;
  color: var(--text-muted);
}
.footer-ncsoft {
  font-size: .72rem;
  color: rgba(136,136,136,0.5);
  font-style: italic;
}

/* ── Inner Page Hero ───────────────────────────────── */
.page-hero {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 72px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(180,130,10,0.15) 0%, transparent 70%),
    linear-gradient(180deg, #0c0804 0%, #080504 100%);
  border-bottom: 1px solid var(--border-gold);
}
.page-hero h1 {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--silver-bright);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.page-hero h1 span { color: var(--gold); }
.page-hero p {
  position: relative;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  margin-top: 8px;
}

/* ── Rankings Page ─────────────────────────────────── */
.rankings-section { padding: 60px 0 100px; }

.tab-bar {
  display: flex;
  gap: 2px;
  background: rgba(18,13,6,0.95);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 36px;
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--silver); background: rgba(212,175,55,0.06); }
.tab-btn.active { background: var(--gold-dark); color: var(--gold-bright); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.rank-trophy { font-size: 1.2rem; }

/* ── Downloads Page ────────────────────────────────── */
.downloads-section { padding: 60px 0 100px; }

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 24px;
  transition: box-shadow .3s;
}
.dl-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--glow-gold); }
.dl-icon { font-size: 3rem; flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--silver-bright);
  margin-bottom: 6px;
}
.dl-desc { color: var(--text-muted); font-size: .9rem; }
.dl-meta { color: var(--text-muted); font-size: .8rem; margin-top: 4px; }
.dl-meta span { color: var(--gold); }

/* ── Donate Page ───────────────────────────────────── */
.donate-section { padding: 60px 0 100px; }
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.donate-package {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.donate-package.featured {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(212,175,55,0.15);
}
.donate-package.featured::before {
  content: '★ POPULAR';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  padding: 2px 16px;
  font-family: var(--font-heading);
  font-size: .6rem;
  letter-spacing: .15em;
  border-radius: 20px;
}
.donate-package:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.donate-coins {
  font-family: var(--font-deco);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
}
.donate-coin-label {
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.donate-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--silver-bright);
  margin-bottom: 24px;
}

/* ── News Page Full ─────────────────────────────────── */
.news-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  padding: 60px 0 100px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .dl-card { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links, .nav-status, .nav-ctas { display: none; }
  .nav-toggle { display: flex; }
  #navbar.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(6,5,4,0.99);
    border-bottom: 1px solid var(--border-gold);
    padding: 16px 28px;
    gap: 4px;
  }
  #navbar.mobile-open .nav-ctas {
    display: flex;
    position: absolute;
    top: auto;
    left: 0; right: 0;
    padding: 16px 28px;
    background: rgba(6,5,4,0.99);
    border-bottom: 1px solid var(--border-gold);
    top: calc(72px + (7 * 40px));
  }
  .hero-rates { gap: 8px; }
  .rate-pill { min-width: 75px; padding: 12px 16px; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .countdown-blocks { gap: 4px; }
  .cd-block { min-width: 70px; }
}

/* ── Ornament lines ────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin: 0 auto 56px;
}
.ornament-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark));
}
.ornament-line.right { background: linear-gradient(90deg, var(--gold-dark), transparent); }
.ornament-crown { font-size: 1.2rem; color: var(--gold); }

/* ── Loading spinner ───────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(212,175,55,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-row td {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
}
