/* =====================================================================
   TRON SRO — design system
   Palette: deep midnight + imperial gold + crimson + jade
   Type:    Cinzel (display) + Inter (body) + JetBrains Mono (code)
   ===================================================================== */

:root {
  --bg-0: #050608;
  --bg-1: #0a0c12;
  --bg-2: #11141d;
  --bg-3: #161a26;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e9ecf3;
  --text-2: #c8cdd9;
  --muted: #98a0b0;
  --muted-2: #6e7585;

  --gold-1: #f5d98a;
  --gold-2: #e6c068;
  --gold-3: #b9963c;
  --gold-shadow: rgba(230, 192, 104, 0.4);

  --crimson: #c0392b;
  --crimson-2: #d6584b;
  --jade: #4ec9b0;
  --jade-2: #6fdac4;
  --danger: #e25c5c;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-1: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 22px 60px -22px rgba(0, 0, 0, 0.7), 0 6px 18px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 18px 40px -12px var(--gold-shadow);

  --content-w: 1240px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-2); color: #1a140a; }

/* =====================================================================
   Animated aurora background
   ===================================================================== */
.aurora {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(230, 192, 104, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 50%, rgba(192, 57, 43, 0.05), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(78, 201, 176, 0.03), transparent 60%),
    linear-gradient(180deg, #060710 0%, #07080d 60%, #04050a 100%);
}
.aurora-blob {
  position: absolute; width: 700px; height: 700px;
  border-radius: 50%; filter: blur(85px); opacity: 0.22;
  animation: drift 24s ease-in-out infinite alternate;
}
.aurora-blob.a { background: #c9a14a; top: -200px; left: -150px; }
.aurora-blob.b { background: #a83232; top: 30%; right: -200px; animation-duration: 30s; animation-delay: -8s; }
.aurora-blob.c { background: #2b3a67; bottom: -200px; left: 30%; animation-duration: 36s; animation-delay: -14s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, -50px) scale(1.12); }
  100% { transform: translate(-50px, 70px) scale(0.92); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
}

/* =====================================================================
   Layout
   ===================================================================== */
.container { width: min(var(--content-w), 92%); margin: 0 auto; }
.container.narrow { max-width: 820px; }
.container.wide { max-width: 1400px; }

/* =====================================================================
   Header / nav
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 8, 13, 0.7);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled { background: rgba(7, 8, 13, 0.92); border-color: var(--border-2); }
.nav { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; flex-shrink: 0; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold-3) 100%);
  color: #1a140a; font-size: 19px;
  box-shadow: 0 8px 24px -6px var(--gold-shadow);
}
.brand-text {
  font-size: 16px;
  background: linear-gradient(180deg, #fff 30%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-menu { display: flex; gap: 30px; align-items: center; flex: 1; justify-content: center; }
.nav-menu a {
  position: relative; color: var(--muted); font-weight: 500; font-size: 14px;
  letter-spacing: 0.04em; transition: color 0.2s;
  padding: 8px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  border-radius: 2px;
}
.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-2); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; padding: 11px 10px; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform 0.25s, opacity 0.25s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.user-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--border-2); border-radius: 999px;
  background: var(--surface);
}
.user-chip-link { display: inline-flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1a140a; font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.user-name { font-weight: 600; font-size: 13px; }
.user-silk { font-size: 12px; color: var(--gold-2); padding-left: 12px; border-left: 1px solid var(--border-2); display: inline-flex; align-items: center; gap: 4px; }
.silk-icon { color: var(--gold-2); }
.logout-mini { display: inline; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap; user-select: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(0); }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.large { padding: 16px 28px; font-size: 15px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(226, 92, 92, 0.1); border-color: rgba(226, 92, 92, 0.3); color: #f0a8a8; }
.btn.danger:hover { background: rgba(226, 92, 92, 0.18); }
.btn.primary, .btn-primary {
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
  color: #1a140a; border-color: transparent;
  box-shadow: 0 8px 24px -8px var(--gold-shadow);
}
.btn.primary:hover, .btn-primary:hover { box-shadow: 0 16px 40px -10px var(--gold-shadow); transform: translateY(-2px); }
.btn.crimson {
  background: linear-gradient(135deg, var(--crimson-2), var(--crimson));
  color: #fff; border-color: transparent;
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* =====================================================================
   Type
   ===================================================================== */
.display {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1rem;
}
.h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}
.h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  margin: 0 0 0.6rem;
}
.lede {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-2);
  padding: 6px 14px;
  border: 1px solid rgba(230, 192, 104, 0.25);
  border-radius: 999px;
  background: rgba(230, 192, 104, 0.06);
}
.grad {
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 35%, var(--crimson-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 13px; }
.center { text-align: center; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 720px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hero-stat {
  padding: 20px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0.7;
}
.hero-stat strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--gold-1);
  line-height: 1;
}
.hero-stat span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

/* Status / fortress / online card on the right of hero */
.status-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  position: relative;
}
.status-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, rgba(230, 192, 104, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.status-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
}
.status-head .muted { font-family: 'Inter', sans-serif; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; margin-left: auto; }
.status-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.status-row:last-of-type { border-bottom: none; }
.status-row b.ok { color: var(--jade); }
.status-row b { font-weight: 600; }
.status-bar {
  margin-top: 16px;
  height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.status-bar > span {
  display: block; height: 100%;
  width: var(--load, 50%);
  background: linear-gradient(90deg, var(--jade), var(--gold-2));
  animation: pulseBar 4s ease-in-out infinite;
}
@keyframes pulseBar {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted-2);
}
.dot.live {
  background: var(--jade);
  box-shadow: 0 0 0 0 rgba(78, 201, 176, 0.7);
  animation: ping 2s infinite;
}
.dot.danger { background: var(--danger); animation: ping 2s infinite; box-shadow: 0 0 0 0 rgba(226, 92, 92, 0.6); }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(78, 201, 176, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(78, 201, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 201, 176, 0); }
}

/* =====================================================================
   Section heads
   ===================================================================== */
.section { padding: 70px 0; }
.section.tight { padding: 40px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0;
  display: flex; align-items: center; gap: 14px;
}
.section-head h2::before {
  content: '';
  display: inline-block; width: 4px; height: 28px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  border-radius: 4px;
}
.link-arrow {
  color: var(--gold-2); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.link-arrow:hover { color: var(--gold-1); gap: 10px; }

/* =====================================================================
   Cards
   ===================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-4px); border-color: rgba(230, 192, 104, 0.28); box-shadow: var(--shadow-2); }
.card-cover {
  position: relative;
  min-height: 160px;
  background:
    radial-gradient(circle at 30% 30%, rgba(230, 192, 104, 0.18), transparent 60%),
    linear-gradient(135deg, #14100a 0%, #0a0810 100%);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border);
}
.card-cover .emoji { font-size: 64px; filter: drop-shadow(0 6px 18px rgba(230, 192, 104, 0.3)); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1.18rem;
  margin: 4px 0; line-height: 1.25;
}
.card-body p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }
.card-footer { display: flex; gap: 8px; align-items: center; color: var(--muted-2); font-size: 12px; margin-top: auto; padding-top: 8px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.grid.tight { gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* =====================================================================
   Badges, pills, chips
   ===================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1a140a; font-weight: 700;
  position: absolute; top: 16px; left: 16px; z-index: 2;
}
.badge.ghost {
  background: rgba(230, 192, 104, 0.1);
  color: var(--gold-1);
  border: 1px solid rgba(230, 192, 104, 0.25);
  position: static;
}
.badge.crimson { background: linear-gradient(135deg, var(--crimson-2), var(--crimson)); color: #fff; }
.badge.jade { background: rgba(78, 201, 176, 0.15); color: var(--jade-2); border: 1px solid rgba(78, 201, 176, 0.3); position: static; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); color: var(--muted-2);
}
.pill.ok { background: rgba(78, 201, 176, 0.15); color: var(--jade); }
.pill.warn { background: rgba(245, 217, 138, 0.12); color: var(--gold-1); }
.pill.danger { background: rgba(226, 92, 92, 0.15); color: var(--danger); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-2);
  color: var(--muted);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active {
  background: rgba(230, 192, 104, 0.12);
  color: var(--gold-1);
  border-color: rgba(230, 192, 104, 0.3);
}
.chip .count {
  font-size: 11px; opacity: 0.7;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.meta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted-2); font-size: 12px;
}

/* =====================================================================
   News-card variant (horizontal feature card)
   ===================================================================== */
.feature-card {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(230, 192, 104, 0.3); box-shadow: var(--shadow-2); }
.feature-card .feature-cover {
  background:
    radial-gradient(circle at 30% 30%, rgba(230, 192, 104, 0.28), transparent 60%),
    linear-gradient(135deg, #1a1306 0%, #0a0810 100%);
  display: grid; place-items: center; min-height: 320px;
  position: relative;
}
.feature-card .feature-cover .emoji { font-size: 130px; filter: drop-shadow(0 12px 32px rgba(230, 192, 104, 0.45)); }
.feature-card .feature-body { padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-card .feature-title { font-family: 'Cinzel', serif; font-size: clamp(1.4rem, 2.3vw, 2.1rem); margin: 0; line-height: 1.2; font-weight: 800; }
.feature-card .feature-excerpt { color: var(--muted); margin: 0; line-height: 1.7; font-size: 1.02rem; }

/* =====================================================================
   Ranking podium + table
   ===================================================================== */
.podium {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px;
  align-items: end; max-width: 720px; margin: 0 auto 36px;
}
.podium-card {
  text-align: center; padding: 24px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  position: relative;
  transition: transform 0.3s var(--ease);
}
.podium-card:hover { transform: translateY(-4px); }
.podium-card.gold {
  background: linear-gradient(180deg, rgba(230, 192, 104, 0.18), var(--surface-2));
  border-color: rgba(230, 192, 104, 0.4);
  padding-top: 32px; padding-bottom: 32px;
  transform: translateY(-12px);
  box-shadow: var(--shadow-gold);
}
.podium-card.silver { background: linear-gradient(180deg, rgba(198, 198, 198, 0.12), var(--surface-2)); border-color: rgba(198, 198, 198, 0.3); }
.podium-card.bronze { background: linear-gradient(180deg, rgba(205, 127, 50, 0.12), var(--surface-2)); border-color: rgba(205, 127, 50, 0.3); }
.podium-rank {
  font-family: 'Cinzel', serif; font-size: 48px; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.podium-card.silver .podium-rank { background: linear-gradient(180deg, #fff, #999); -webkit-background-clip: text; background-clip: text; color: transparent; }
.podium-card.bronze .podium-rank { background: linear-gradient(180deg, #d4a373, #8b5a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.podium-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; margin: 6px 0 4px; word-break: break-word; }
.podium-stat { color: var(--muted); font-size: 12px; }
.podium-medal { font-size: 28px; margin-bottom: 4px; }

.rank-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rank-table th, .rank-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.rank-table th { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.rank-table .rank-num { color: var(--gold-2); font-weight: 700; font-family: 'Cinzel', serif; }
.rank-table .rank-name { font-weight: 600; }

/* =====================================================================
   Events ticker
   ===================================================================== */
.events-ticker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.event-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.event-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.event-time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; font-size: 14px;
  color: var(--gold-2);
  padding: 8px 12px;
  background: rgba(230, 192, 104, 0.08);
  border-radius: 8px;
  min-width: 64px; text-align: center;
}
.event-name { font-weight: 600; flex: 1; }
.event-status { font-size: 11px; padding: 4px 8px; border-radius: 999px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.event-status.live { background: rgba(78, 201, 176, 0.18); color: var(--jade); }
.event-status.soon { background: rgba(245, 217, 138, 0.15); color: var(--gold-1); }
.event-status.later { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

/* =====================================================================
   Silk packages
   ===================================================================== */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.package {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; gap: 10px;
}
.package:hover { transform: translateY(-6px); border-color: rgba(230, 192, 104, 0.3); box-shadow: var(--shadow-2); }
.package.popular {
  background: linear-gradient(180deg, rgba(230, 192, 104, 0.12), var(--surface-2));
  border-color: rgba(230, 192, 104, 0.4);
  box-shadow: var(--shadow-gold);
}
.package-emoji { font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(230, 192, 104, 0.35)); }
.package-name { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; margin: 8px 0 0; }
.package-price { font-size: 2.4rem; font-family: 'Cinzel', serif; font-weight: 900; color: var(--gold-1); line-height: 1; margin: 6px 0; }
.package-price small { font-size: 0.95rem; font-family: 'Inter', sans-serif; color: var(--muted); font-weight: 400; }
.package-silk { color: var(--muted); font-size: 14px; }
.package-silk strong { color: var(--text); font-size: 16px; }
.package-bonus { font-size: 11px; color: var(--jade); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(78, 201, 176, 0.1); align-self: center; }
.package-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: #1a140a;
}

/* =====================================================================
   Vote sites
   ===================================================================== */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.vote-card {
  display: flex; align-items: center; gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}
.vote-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.vote-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, rgba(230, 192, 104, 0.18), rgba(230, 192, 104, 0.05));
  border: 1px solid rgba(230, 192, 104, 0.2);
}
.vote-body { flex: 1; }
.vote-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.vote-reward { color: var(--gold-2); font-size: 13px; font-weight: 600; }
.vote-cooldown { font-size: 11px; color: var(--muted-2); margin-top: 2px; }

/* =====================================================================
   Forms
   ===================================================================== */
.form { display: flex; flex-direction: column; gap: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label > span { font-weight: 500; letter-spacing: 0.02em; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], textarea, select {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(230, 192, 104, 0.5);
  box-shadow: 0 0 0 4px rgba(230, 192, 104, 0.1);
  background: var(--bg-2);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
textarea.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; }
input[type="checkbox"] { width: auto; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-help { font-size: 12px; color: var(--muted-2); }
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.alert.error { background: rgba(226, 92, 92, 0.12); border: 1px solid rgba(226, 92, 92, 0.35); color: #f0a8a8; }
.alert.success { background: rgba(78, 201, 176, 0.1); border: 1px solid rgba(78, 201, 176, 0.3); color: var(--jade-2); }
.alert.info { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-2); color: var(--text-2); }

/* =====================================================================
   Auth shell (login / register)
   ===================================================================== */
.auth-shell {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  width: 100%; max-width: 460px;
  padding: 38px 36px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-2);
}
.auth-card h1 { font-family: 'Cinzel', serif; margin: 0 0 4px; font-size: 1.7rem; }
.auth-card .form { margin-top: 20px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--gold-2); }

/* =====================================================================
   Page hero (subpages: news / ranking / etc.)
   ===================================================================== */
.page-hero {
  padding: 80px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 820px; }
.page-hero .display { font-size: clamp(2.2rem, 4vw, 3.4rem); }

/* Filter bar (used on news + ranking) */
.filter-bar {
  display: flex; flex-direction: column; gap: 14px;
  margin: 24px auto 0;
}
.filter-bar input[type="search"] {
  max-width: 440px; margin: 0 auto;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* =====================================================================
   Article (single news post)
   ===================================================================== */
.article-head { padding: 60px 0 20px; text-align: center; }
.article-head .container { max-width: 760px; }
.article-head .badge { position: static; margin-bottom: 14px; }
.article-cover {
  margin: 24px auto 32px;
  max-width: 900px;
  height: 280px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 35% 30%, rgba(230, 192, 104, 0.32), transparent 60%),
    linear-gradient(135deg, #1a1306 0%, #0a0710 100%);
  display: grid; place-items: center;
  border: 1px solid var(--border-2);
}
.article-cover .emoji { font-size: 150px; filter: drop-shadow(0 14px 36px rgba(230, 192, 104, 0.45)); }

.prose { font-size: 17px; line-height: 1.78; padding-bottom: 80px; }
.prose h1, .prose h2, .prose h3 {
  font-family: 'Cinzel', serif;
  margin: 2.2rem 0 0.9rem;
  line-height: 1.2;
}
.prose h2 { font-size: 1.7rem; color: var(--gold-1); }
.prose h3 { font-size: 1.3rem; }
.prose p { color: var(--text-2); margin: 0 0 1rem; }
.prose a { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(230, 192, 104, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gold-2); }
.prose ul, .prose ol { padding-left: 1.4rem; color: var(--text-2); }
.prose li { margin: 0.4rem 0; }
.prose code { font-family: 'JetBrains Mono', ui-monospace, monospace; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.prose pre { background: var(--bg-3); padding: 20px; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--border); }
.prose pre code { background: transparent; padding: 0; }
.prose blockquote { margin: 1.4rem 0; padding: 14px 22px; border-left: 3px solid var(--gold-2); background: rgba(230, 192, 104, 0.05); border-radius: 0 12px 12px 0; color: var(--muted); }
.prose img { border-radius: var(--radius); margin: 1.4rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95em; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--gold-2); font-weight: 600; }

/* =====================================================================
   CTA strip
   ===================================================================== */
.cta {
  margin: 60px 0 80px;
  padding: 44px 48px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(230, 192, 104, 0.22), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(192, 57, 43, 0.18), transparent 50%),
    var(--surface);
  border: 1px solid rgba(230, 192, 104, 0.25);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta h2 { font-family: 'Cinzel', serif; margin: 0 0 6px; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-grid h4 {
  font-family: 'Cinzel', serif;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-2); margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: 4px 0; font-size: 14px; color: var(--muted); }
.footer-grid ul li a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-weight: 700; font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--surface-2); border-color: rgba(230, 192, 104, 0.35); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted-2);
  flex-wrap: wrap;
}

/* =====================================================================
   Flash messages
   ===================================================================== */
.flash-stack {
  position: fixed; top: 90px; right: 24px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px;
}
.flash {
  display: flex; gap: 10px; align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  font-size: 14px;
  animation: flashIn 0.3s var(--ease);
}
@keyframes flashIn { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.flash-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.flash-success { border-color: rgba(78, 201, 176, 0.35); }
.flash-success .flash-icon { background: var(--jade); color: #08130f; }
.flash-error { border-color: rgba(226, 92, 92, 0.35); }
.flash-error .flash-icon { background: var(--danger); color: #fff; }
.flash-info .flash-icon { background: var(--gold-2); color: #1a140a; }

/* =====================================================================
   Empty state
   ===================================================================== */
.empty {
  padding: 70px 30px; text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty .emoji { font-size: 56px; margin-bottom: 12px; }

/* =====================================================================
   Reveal-on-scroll
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].visible { opacity: 1; transform: none; }

/* =====================================================================
   Admin layout
   ===================================================================== */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side {
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 26px;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border);
}
.admin-side nav { display: flex; flex-direction: column; gap: 4px; }
.admin-side nav a {
  padding: 11px 14px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; gap: 10px;
}
.admin-side nav a:hover { background: var(--surface); color: var(--text); }
.admin-side nav a.active { background: rgba(230, 192, 104, 0.12); color: var(--gold-1); }
.admin-side .logout { margin-top: auto; }
.admin-main { padding: 36px 40px; max-width: 100%; overflow-x: auto; }
.admin-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.admin-head h1 { font-family: 'Cinzel', serif; margin: 0 0 4px; font-size: 1.8rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 4px;
}
.stat strong { font-family: 'Cinzel', serif; font-size: 1.7rem; color: var(--gold-1); line-height: 1; }
.stat span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.admin-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-card-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.admin-card-head h2 { margin: 0; font-family: 'Cinzel', serif; font-size: 1.2rem; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.admin-table th { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { display: inline; margin: 0; }

.editor-grid { display: grid; grid-template-columns: 1fr 280px; gap: 22px; }
.editor-side { display: flex; flex-direction: column; gap: 14px; }

/* =====================================================================
   Account dashboard
   ===================================================================== */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.account-side {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: calc(var(--header-h) + 12px);
  align-self: start;
  height: fit-content;
}
.account-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1a140a; font-weight: 800;
  display: grid; place-items: center;
  font-size: 36px; font-family: 'Cinzel', serif;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-gold);
}
.account-side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.account-side nav a {
  padding: 10px 14px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.account-side nav a:hover { color: var(--text); background: var(--surface-2); }
.account-side nav a.active { color: var(--gold-1); background: rgba(230, 192, 104, 0.1); }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kv {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.kv span { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.kv strong { display: block; font-family: 'Cinzel', serif; font-size: 1.4rem; color: var(--gold-1); margin-top: 4px; }

/* =====================================================================
   Tabs
   ===================================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  padding: 12px 18px;
  font-weight: 600; font-size: 14px;
  color: var(--muted); cursor: pointer;
  border: none; background: none; font-family: inherit;
  position: relative;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold-1); }
.tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--gold-2); border-radius: 2px;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .feature-cover { min-height: 220px; }
}
@media (max-width: 880px) {
  .hero { padding: 60px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; align-items: center; }
  .nav-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--border);
    padding: 14px 22px; max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease), padding 0.3s;
  }
  .nav-menu.open { max-height: 500px; padding: 14px 22px 22px; }
  .nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-menu a.active::after { display: none; }
  .nav-actions .user-chip-link .user-name, .user-chip-link .user-silk { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    flex-direction: row; align-items: center; padding: 12px 18px;
    border-right: none; border-bottom: 1px solid var(--border);
    overflow-x: auto; gap: 10px;
  }
  .admin-side nav { flex-direction: row; gap: 4px; }
  .admin-side .logout { margin-top: 0; margin-left: auto; }
  .admin-main { padding: 22px 18px; }
  .editor-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 30px; flex-direction: column; align-items: flex-start; }
  .podium { grid-template-columns: 1fr; max-width: 360px; }
  .podium-card.gold { transform: none; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .flash-stack { right: 12px; left: 12px; max-width: none; }
}
