:root {
  --bg-deep: #110c0e;
  --bg-glass: rgba(21, 15, 18, 0.80);
  --bg-glass-strong: rgba(18, 12, 15, 0.90);
  --bg-card: rgba(31, 22, 26, 0.72);
  --bg-card-hover: rgba(42, 30, 34, 0.88);
  --border: rgba(255, 206, 98, 0.18);
  --border-strong: rgba(255, 206, 98, 0.38);
  --gold: #ffd15c;
  --gold-deep: #e89b1e;
  --crimson: #dc2626;
  --crimson-bright: #ef4444;
  --crimson-dark: #991b1b;
  --emerald: #10b981;
  --azure: #38bdf8;
  --flame: #fb923c;
  --violet: #a78bfa;
  --ink: #faf5ea;
  --ink-soft: #d5c7b2;
  --ink-muted: #9e8f7c;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 214, 118, 0.08) inset;
  --shadow-gold: 0 10px 30px rgba(245, 158, 11, 0.22);
  --shadow-crimson: 0 10px 28px rgba(220, 38, 38, 0.38);
  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Chakra Petch", "Be Vietnam Pro", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep) url(images/bg.jpg) center top / cover fixed no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmospheric dark vignette over bg.jpg */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(245, 158, 11, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(16, 10, 14, 0.52) 0%, rgba(16, 10, 14, 0.78) 46%, rgba(12, 8, 11, 0.94) 100%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.28;
  animation: orbDrift 16s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; background: #f59e0b; top: -120px; left: -100px; }
.orb-2 { width: 380px; height: 380px; background: #dc2626; bottom: -100px; right: -100px; animation-delay: -7s; }
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(35px, 25px) scale(1.1); }
}

a { color: var(--gold); transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
a:hover { color: #ffe799; }
img { max-width: 100%; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 11, 14, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 209, 92, 0.55);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  object-fit: cover;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(180deg, #fff5cc 0%, #ffd15c 52%, #e69519 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-txt small {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
  margin-left: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}
.nav-item svg { width: 16px; height: 16px; opacity: 0.85; }
.nav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}
.nav-item.on {
  color: var(--gold);
  background: rgba(255, 209, 92, 0.12);
  border-color: rgba(255, 209, 92, 0.32);
}
.nav-item.on svg { opacity: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 15px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.nav-login:hover, .nav-login.on {
  border-color: var(--border-strong);
  background: rgba(255, 209, 92, 0.1);
  color: var(--gold);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 18px;
  border-radius: 10px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, var(--crimson-bright), var(--crimson-dark));
  border: 1px solid rgba(255, 209, 92, 0.45);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
  filter: brightness(1.08);
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.nav-user:hover, .nav-user.on {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 209, 92, 0.12);
}
.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
.nav-adm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(255, 209, 92, 0.45);
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.nav-adm svg { width: 14px; height: 14px; }
.nav-adm:hover { background: rgba(245, 158, 11, 0.28); color: #fff5cc; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Layout & Panels ---------- */
.site-main {
  max-width: 1120px;
  width: 100%;
  margin: 26px auto 40px;
  padding: 0 18px;
  flex: 1 0 auto;
}

.panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 92, 0.45), transparent);
  pointer-events: none;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.sec-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sec-title svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }
.sec-sub { color: var(--ink-muted); font-size: 14px; margin: 4px 0 0; }

/* ---------- Buttons ---------- */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 209, 92, 0.5);
  color: #fff;
  background: linear-gradient(135deg, #e5352b 0%, #b91c1c 55%, #8f1414 100%);
  box-shadow: var(--shadow-crimson), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.52), 0 0 18px rgba(255, 209, 92, 0.22);
  filter: brightness(1.08);
}
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, #ffd464 0%, #f59e0b 65%, #d97706 100%);
  color: #1f1308;
  border-color: #ffe8a3;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { color: #160d04; box-shadow: 0 14px 34px rgba(245, 158, 11, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 209, 92, 0.28);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 209, 92, 0.14);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 9px; }
.btn-full { width: 100%; }
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
}

/* ---------- Hero Section (Homepage) ---------- */
.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 26px 34px;
  background:
    radial-gradient(ellipse 65% 55% at 50% 24%, rgba(255, 193, 69, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(24, 16, 20, 0.72) 0%, rgba(16, 11, 14, 0.86) 100%);
  overflow: hidden;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 4px auto 12px;
}
.hero-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 12% 10%;
  background: radial-gradient(circle, rgba(255, 196, 54, 0.38) 0%, transparent 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}
.hero-logo {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.65));
  animation: floatLogo 5.5s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-desc {
  max-width: 670px;
  margin: 6px auto 26px;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Live Server Stats Bar ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.stat-ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-ico svg { width: 24px; height: 24px; }
.stat-ico.gold { background: rgba(255, 209, 92, 0.14); color: var(--gold); border: 1px solid rgba(255, 209, 92, 0.3); }
.stat-ico.crimson { background: rgba(239, 68, 68, 0.14); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.stat-ico.emerald { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.stat-body { min-width: 0; }
.stat-label { font-size: 12.5px; color: var(--ink-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; }
.stat-val {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-note { font-size: 12px; color: var(--gold); margin-top: 1px; }

/* ---------- Features Grid ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 206, 98, 0.14);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.feat-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feat-badge svg { width: 22px; height: 22px; }
.feat-badge.f1 { background: rgba(245, 158, 11, 0.16); color: var(--gold); border: 1px solid rgba(245, 158, 11, 0.35); }
.feat-badge.f2 { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.35); }
.feat-badge.f3 { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.feat-badge.f4 { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.35); }
.feat-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.feat-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ---------- Split Grid (Mini Top 5 + Quick Start Steps) ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 22px;
}
.split-grid .panel { margin-bottom: 0; }

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 206, 98, 0.14);
  border-radius: var(--radius-md);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1f1308;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.step-item b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.step-item span { display: block; font-size: 13.5px; color: var(--ink-muted); }

/* ---------- Badges (Planets, Tiers, Ranks) ---------- */
.planet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.planet-td { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.35); }
.planet-nm { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }
.planet-xd { background: rgba(251, 146, 60, 0.16); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.38); }

.tier-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 209, 92, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 209, 92, 0.28);
}

.rank-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
}
.rank-1 { background: linear-gradient(135deg, #ffe27a, #d97706); color: #1b1004; box-shadow: 0 0 14px rgba(245, 158, 11, 0.45); }
.rank-2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #0f172a; }
.rank-3 { background: linear-gradient(135deg, #fdba74, #b45309); color: #1c0f06; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow: auto;
  max-height: 580px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(15, 10, 13, 0.65);
}
table.data-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.data-tbl th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(28, 19, 23, 0.96);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-strong);
}
table.data-tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
table.data-tbl tbody tr:hover td { background: rgba(255, 209, 92, 0.06); }
table.data-tbl tbody tr:last-child td { border-bottom: 0; }
.num-col {
  text-align: right !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.val-main { color: var(--gold); font-size: 15.5px; }
.val-sub { display: block; font-family: var(--font-body); font-size: 11.5px; color: var(--ink-muted); font-weight: 500; }

/* ---------- Leaderboard Podium & Tabs ---------- */
.tab-bar {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(12, 8, 10, 0.65);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
}
.tab-btn svg { width: 16px; height: 16px; }
.tab-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.tab-btn.on {
  background: linear-gradient(135deg, var(--crimson-bright), var(--crimson-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.podium-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin: 22px 0 24px;
}
.podium-card {
  flex: 1 1 0;
  max-width: 340px;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.podium-card.p1 {
  order: 2;
  padding-top: 28px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 209, 92, 0.22), rgba(31, 22, 26, 0.88) 72%);
  border-color: rgba(255, 209, 92, 0.58);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.18);
  transform: translateY(-6px);
}
.podium-card.p2 { order: 1; border-color: rgba(203, 213, 225, 0.36); }
.podium-card.p3 { order: 3; border-color: rgba(251, 146, 60, 0.36); }
.podium-crown {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.p1 .podium-crown { background: linear-gradient(135deg, #ffe580, #d97706); color: #1c1004; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5); }
.p2 .podium-crown { background: linear-gradient(135deg, #f8fafc, #94a3b8); color: #0f172a; }
.p3 .podium-crown { background: linear-gradient(135deg, #fdba74, #b45309); color: #1c0f06; }
.podium-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-meta { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.podium-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.podium-exact { font-size: 12px; color: var(--ink-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}
.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-muted);
  pointer-events: none;
}
.search-box input { padding-left: 40px; }
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip.on { background: rgba(255, 209, 92, 0.16); border-color: var(--gold); color: var(--gold); }

/* ---------- Download Cards ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.dl-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.45);
}
.dl-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.dl-android::after { background: linear-gradient(90deg, #10b981, #34d399); }
.dl-pc::after { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.dl-ios::after { background: linear-gradient(90deg, #f59e0b, #fcd34d); }

.dl-ico {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.dl-ico svg { width: 36px; height: 36px; }
.dl-android .dl-ico { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.dl-pc .dl-ico { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.dl-ios .dl-ico { background: rgba(255, 209, 92, 0.15); color: var(--gold); border: 1px solid rgba(255, 209, 92, 0.35); }

.dl-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
}
.dl-meta { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 16px; min-height: 42px; }
.dl-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.dl-ready { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.32); }
.dl-soon { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.28); }
.dl-card .btn { width: 100%; margin-top: auto; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.guide-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 206, 98, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.guide-item b { display: block; color: var(--gold); font-size: 15px; margin-bottom: 6px; }
.guide-item p { margin: 0; font-size: 13.5px; color: var(--ink-muted); }

/* ---------- Auth Cards & Forms ---------- */
.auth-wrap {
  max-width: 450px;
  margin: 18px auto 26px;
}
.auth-head {
  text-align: center;
  margin-bottom: 22px;
}
.auth-head img {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  border: 2px solid rgba(255, 209, 92, 0.55);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.28);
  margin-bottom: 12px;
}
.auth-head h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--ink);
}
.auth-head p { margin: 0; color: var(--ink-muted); font-size: 14px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}
input[type="text"], input[type="password"], input[type="search"], input:not([type]) {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 206, 98, 0.22);
  background: rgba(12, 8, 10, 0.72);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap.has-ico input,
.search-box input[type="search"] { padding-left: 42px; }
.input-wrap.has-eye input { padding-right: 44px; }
input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 209, 92, 0.16);
  background: rgba(16, 11, 14, 0.92);
}
input::placeholder { color: var(--ink-muted); }

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pw-toggle:hover { color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.pw-toggle svg { width: 18px; height: 18px; }
.field-hint { font-size: 12px; color: var(--ink-muted); margin-top: 5px; display: block; }
.field-hint.bad { color: #f87171; }
.field-hint.good { color: #6ee7b7; }

.auth-foot {
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--ink-muted);
}
.auth-foot a { font-weight: 700; text-decoration: none; }

/* ---------- Alerts ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert-err { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.alert-ok { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.alert-info { background: rgba(255, 209, 92, 0.12); border: 1px solid rgba(255, 209, 92, 0.35); color: #fde68a; }

/* ---------- Account Profile Dashboard ---------- */
.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.profile-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.profile-ava {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.28);
  object-fit: cover;
  background: #1a1216;
}
.profile-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-sub { font-size: 13.5px; color: var(--ink-muted); display: flex; gap: 14px; flex-wrap: wrap; }
.profile-sub strong { color: var(--ink-soft); }

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.wallet-tile {
  background: var(--bg-card);
  border: 1px solid rgba(255, 206, 98, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 15px;
}
.wallet-tile span { display: block; font-size: 12px; color: var(--ink-muted); margin-bottom: 4px; }
.wallet-tile b {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.wallet-tile.accent-gold b { color: var(--gold); }
.wallet-tile.accent-emerald b { color: #34d399; }
.wallet-tile.accent-crimson b { color: #fb7185; }
.wallet-tile.accent-azure b { color: #38bdf8; }

.combat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.combat-tile {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.combat-tile span { display: block; font-size: 12px; color: var(--ink-muted); margin-bottom: 3px; }
.combat-tile b {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.combat-tile small { display: block; font-size: 11.5px; color: var(--gold); margin-top: 2px; }

.account-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}
.account-split .panel { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: rgba(12, 8, 10, 0.92);
  border-top: 1px solid var(--border);
  padding: 24px 18px;
}
.foot-in {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border-strong); }
.foot-brand b { display: block; font-family: var(--font-display); color: var(--gold); font-size: 15px; }
.foot-brand small { display: block; color: var(--ink-muted); font-size: 12.5px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.foot-links a:hover { color: var(--gold); }
.foot-zalo { color: #38bdf8 !important; }
.foot-copy { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-muted); }

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15, 10, 13, 0.8); }
::-webkit-scrollbar-thumb { background: rgba(255, 209, 92, 0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 209, 92, 0.45); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid, .account-split { grid-template-columns: 1fr; }
  .dl-grid, .guide-grid { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: repeat(3, 1fr); }
  .combat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 18px 18px;
    background: rgba(16, 11, 14, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .site-nav.open { display: flex; }
  .nav-links, .nav-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-item, .nav-login, .nav-cta, .nav-user, .nav-adm { justify-content: center; padding: 11px 14px; }

  .stats-strip { grid-template-columns: 1fr; }
  .podium-grid { flex-direction: column; align-items: stretch; }
  .podium-card { max-width: none; }
  .podium-card.p1 { order: 1; transform: none; }
  .podium-card.p2 { order: 2; }
  .podium-card.p3 { order: 3; }
  .panel { padding: 20px 16px; }
  .hero-card { padding: 28px 16px 26px; }
  .wallet-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .brand-txt b { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .bg-orb, .status-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}


/* ==========================================================================
   NGOC RONG HUYEN THOAI — ORNATE CRIMSON & GOLD MMO PORTAL THEME (v7)
   ========================================================================== */
.bg-stage {
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(255, 209, 92, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(16, 10, 14, 0.18) 0%, rgba(18, 9, 10, 0.56) 44%, rgba(14, 7, 8, 0.90) 100%) !important;
}

.site-header {
  background: linear-gradient(180deg, #5e140c 0%, #380905 60%, #260503 100%) !important;
  border-bottom: 2px solid #eab308 !important;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 232, 150, 0.45) inset !important;
}
.site-header .nav-item.on {
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.28), rgba(180, 83, 9, 0.35)) !important;
  border: 1px solid rgba(250, 204, 21, 0.65) !important;
  color: #fef08a !important;
}
.site-header .nav-cta {
  background: linear-gradient(180deg, #facc15 0%, #d97706 100%) !important;
  color: #2b0904 !important;
  font-weight: 800 !important;
  border: 1px solid #fef08a !important;
}

/* Home Portal Container */
.portal-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Ornate Crimson-Gold Box */
.mmo-box {
  position: relative;
  background: linear-gradient(180deg, rgba(58, 13, 8, 0.94) 0%, rgba(30, 7, 5, 0.96) 100%);
  border: 2px solid #d49b35;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 228, 148, 0.25) inset;
  overflow: hidden;
}
.mmo-box::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 10px;
  pointer-events: none;
}
.mmo-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 15px;
  background: linear-gradient(180deg, #7c1c10 0%, #4a0d07 100%);
  border-bottom: 1.5px solid #d49b35;
}
.mmo-hd-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fde68a;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}
.mmo-hd-title svg { width: 18px; height: 18px; color: #facc15; flex-shrink: 0; }
.mmo-hd-more {
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.15s;
}
.mmo-hd-more:hover { background: #eab308; color: #2b0904; }

/* Hero Stage: Center Logo + Floating Right Login Card */
.portal-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 310px;
  align-items: center;
  gap: 20px;
  padding: 18px 8px 6px;
}
.portal-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.portal-logo {
  max-width: min(460px, 92%);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 18px rgba(250, 204, 21, 0.28));
  transition: transform 0.25s ease;
}
.portal-logo:hover { transform: scale(1.02); }

/* 3 Action Buttons below Logo */
.portal-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: #fef3c7;
  background: linear-gradient(180deg, #8b1e11 0%, #4b0c06 100%);
  border: 2px solid #eab308;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 236, 179, 0.45) inset;
  transition: transform 0.15s, filter 0.15s;
}
.pbtn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.pbtn svg { width: 24px; height: 24px; color: #fde047; flex-shrink: 0; }
.pbtn-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.pbtn-txt b { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.4px; text-transform: uppercase; color: #fff7d6; }
.pbtn-txt small { font-size: 11px; color: #fcd34d; }
.pbtn-main {
  padding: 13px 26px;
  background: linear-gradient(180deg, #c82817 0%, #7d1109 100%);
  border: 2.5px solid #fde047;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.5), 0 0 18px rgba(250, 204, 21, 0.3);
}
.pbtn-main .pbtn-txt b { font-size: 18px; color: #fff; }
.pbtn-play {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  border-color: #fef08a;
}
.pbtn-play svg { color: #2b0904; }
.pbtn-play .pbtn-txt b { color: #2b0904; font-weight: 800; }
.pbtn-play .pbtn-txt small { color: #451a03; font-weight: 600; }

/* Floating Login Card on Right */
.login-card .mmo-hd { justify-content: center; }
.login-card-body { padding: 14px 16px 16px; position: relative; z-index: 1; }
.l-field { position: relative; margin-bottom: 9px; }
.l-field input {
  width: 100%;
  padding: 10px 36px 10px 34px;
  border-radius: 8px;
  border: 1.5px solid rgba(234, 179, 8, 0.45);
  background: rgba(18, 5, 4, 0.85);
  color: #fff7ed;
  font: inherit;
  font-size: 13.5px;
  outline: none;
}
.l-field input:focus { border-color: #fde047; box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.22); }
.l-field .l-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #f59e0b; pointer-events: none; }
.l-field .l-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fcd34d; cursor: pointer; padding: 2px; font-size: 14px; }
.l-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #e7d5be; margin: 4px 0 11px; }
.l-meta label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.l-meta a { color: #fcd34d; text-decoration: none; }
.l-btn-red, .l-btn-gold {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s;
}
.l-btn-red {
  border: 1.5px solid #fbbf24;
  background: linear-gradient(180deg, #dc2626 0%, #881313 100%);
  color: #fff;
  margin-bottom: 8px;
}
.l-btn-gold {
  border: 1.5px solid #fef08a;
  background: linear-gradient(180deg, #fde047 0%, #d97706 100%);
  color: #2b0904;
}
.l-btn-red:hover, .l-btn-gold:hover { filter: brightness(1.1); }
.l-user-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.l-user-stat div {
  background: rgba(18, 5, 4, 0.7);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 8px;
  padding: 7px 9px;
}
.l-user-stat small { display: block; font-size: 11px; color: #d6bfa4; }
.l-user-stat b { font-size: 14px; color: #fde047; }

/* Middle 3-Column Bento Grid */
.portal-mid {
  display: grid;
  grid-template-columns: 285px 1fr 315px;
  gap: 14px;
  align-items: stretch;
}

/* Server Info List */
.sv-info-list { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.sv-info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #f3e5d0;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(234, 179, 8, 0.2);
}
.sv-info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sv-info-list .sv-ic { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.sv-info-list .sv-k { color: #d6bfa4; white-space: nowrap; }
.sv-info-list .sv-v { font-weight: 700; color: #fef08a; margin-left: auto; text-align: right; }

/* Banner Slider */
.banner-box { padding: 0; display: flex; flex-direction: column; min-height: 245px; }
.banner-track { position: relative; flex: 1; overflow: hidden; min-height: 245px; }
.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px 44px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background-size: cover;
  background-position: center;
}
.banner-slide.on { opacity: 1; pointer-events: auto; }
.banner-slide.s1 { background: linear-gradient(135deg, rgba(124, 28, 16, 0.86), rgba(32, 8, 5, 0.9)), url(images/bg.jpg) center/cover; }
.banner-slide.s2 { background: linear-gradient(135deg, rgba(180, 83, 9, 0.85), rgba(38, 10, 5, 0.92)), url(images/bg.jpg) left/cover; }
.banner-slide.s3 { background: linear-gradient(135deg, rgba(153, 27, 27, 0.85), rgba(24, 10, 22, 0.92)), url(images/bg.jpg) right/cover; }
.banner-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 99px;
  background: rgba(250, 204, 21, 0.2);
  border: 1px solid #facc15;
  color: #fef08a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.banner-slide h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
  text-transform: uppercase;
}
.banner-slide h2 span { color: #fde047; }
.banner-slide p { margin: 0 0 14px; font-size: 13.5px; color: #f5e6d3; max-width: 420px; }
.banner-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 99px;
  background: linear-gradient(180deg, #fde047, #d97706);
  color: #2b0904;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  border: 1.5px solid #fef9c3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 204, 21, 0.65);
  background: rgba(26, 6, 4, 0.75);
  color: #fde047;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
}
.banner-arrow.prev { left: 10px; }
.banner-arrow.next { right: 10px; }
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}
.banner-dots button {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: 1px solid #fde047;
  background: rgba(0, 0, 0, 0.45);
  padding: 0;
  cursor: pointer;
  transition: width 0.2s;
}
.banner-dots button.on { width: 22px; background: #facc15; }

/* Ranking Widget */
.rank-body { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 10px 12px 12px; position: relative; z-index: 1; }
.rank-tabs { display: flex; flex-direction: column; gap: 6px; }
.rank-tabs button {
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(20, 5, 4, 0.7);
  color: #e7d5be;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.rank-tabs button.on {
  background: linear-gradient(180deg, #fde047, #d97706);
  color: #2b0904;
  border-color: #fef08a;
}
.rank-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rank-tbl th { text-align: left; color: #fcd34d; font-size: 11px; padding: 3px 4px 6px; border-bottom: 1px solid rgba(234, 179, 8, 0.28); }
.rank-tbl td { padding: 5px 4px; border-bottom: 1px dashed rgba(234, 179, 8, 0.14); color: #faf0e1; }
.rank-tbl td:last-child, .rank-tbl th:last-child { text-align: right; }
.rank-tbl .rn-val { font-weight: 700; color: #fde047; }
.rank-pane { display: none; }
.rank-pane.on { display: block; }
.rank-more {
  display: inline-block;
  margin-top: 8px;
  float: right;
  padding: 4px 12px;
  border-radius: 99px;
  background: linear-gradient(180deg, #fde047, #d97706);
  color: #2b0904;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}

/* Bottom 2-Column Row */
.portal-bot {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
}
.news-body { display: grid; grid-template-columns: 155px 1fr; gap: 14px; padding: 12px 14px; align-items: center; position: relative; z-index: 1; }
.news-thumb {
  width: 100%;
  height: 126px;
  border-radius: 10px;
  border: 1.5px solid rgba(234, 179, 8, 0.5);
  background: linear-gradient(135deg, rgba(124, 28, 16, 0.35), rgba(15, 5, 4, 0.5)), url(images/bg.jpg) center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-thumb img { width: 88%; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)); }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.news-list li a {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #f8ecd9;
  font-size: 13px;
  padding: 5px 6px;
  border-radius: 8px;
  border-bottom: 1px dashed rgba(234, 179, 8, 0.16);
  transition: background 0.15s;
}
.news-list li a:hover { background: rgba(250, 204, 21, 0.1); color: #fef08a; }
.nbadge {
  flex-shrink: 0;
  min-width: 58px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
}
.nbadge.hot { background: #dc2626; }
.nbadge.upd { background: #0284c7; }
.nbadge.evt { background: #9333ea; }
.nbadge.gui { background: #d97706; }

/* 4 Feature Tiles */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 14px;
  position: relative;
  z-index: 1;
}
.feat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 11px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(124, 28, 16, 0.65) 0%, rgba(38, 8, 5, 0.88) 100%);
  border: 1.5px solid #d49b35;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, border-color 0.15s;
}
.feat-tile:hover { transform: translateY(-3px); border-color: #fef08a; }
.feat-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: radial-gradient(circle at 35% 30%, #fde047, #b45309);
  border: 2px solid #fef9c3;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.feat-tile b { font-size: 12.5px; line-height: 1.25; color: #fef3c7; }

@media (max-width: 1040px) {
  .portal-hero { grid-template-columns: 1fr; }
  .login-card { max-width: 380px; width: 100%; margin: 0 auto; }
  .portal-mid { grid-template-columns: 1fr; }
  .portal-bot { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .news-body { grid-template-columns: 1fr; }
  .news-thumb { height: 96px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-body { grid-template-columns: 1fr; }
  .rank-tabs { flex-direction: row; }
  .rank-tabs button { flex: 1; }
}


/* ==========================================================================
   V8 — FULL CUSTOM ARTWORK (KAME HOUSE BG + SUPER SAIYAN BANNER + GOLD TRIM)
   ========================================================================== */
body {
  background: #0f2544 url(images/bg_portal.jpg?v=8) center top / cover fixed no-repeat !important;
}
.bg-stage {
  background:
    linear-gradient(180deg, rgba(10, 24, 48, 0.04) 0%, rgba(12, 18, 34, 0.16) 52%, rgba(14, 7, 8, 0.72) 100%) !important;
}
.bg-orb { display: none !important; }

/* Ornate double-beveled golden MMO frames */
.mmo-box {
  background: linear-gradient(180deg, rgba(66, 15, 9, 0.94) 0%, rgba(34, 7, 5, 0.96) 100%);
  border: 2.5px solid #e5b244;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.58),
    0 0 0 1px #6e3d09,
    0 1px 0 rgba(255, 242, 178, 0.55) inset;
}
.mmo-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fef08a, transparent);
  z-index: 3;
  pointer-events: none;
}

/* Center Banner with Super Saiyan Goku on the left & crisp text on the right */
.banner-slide {
  align-items: flex-end !important;
  text-align: right !important;
  padding: 20px 52px 28px 42% !important;
}
.banner-slide.s1 {
  background:
    linear-gradient(90deg, rgba(20, 6, 4, 0.05) 0%, rgba(28, 7, 4, 0.35) 42%, rgba(36, 8, 5, 0.86) 66%, rgba(24, 5, 4, 0.92) 100%),
    url(images/banner_goku.jpg?v=8) left center / cover no-repeat !important;
}
.banner-slide.s2 {
  background:
    linear-gradient(90deg, rgba(20, 6, 4, 0.08) 0%, rgba(84, 28, 6, 0.45) 45%, rgba(42, 10, 5, 0.88) 70%, rgba(24, 5, 4, 0.92) 100%),
    url(images/banner_goku.jpg?v=8) left center / cover no-repeat !important;
}
.banner-slide.s3 {
  background:
    linear-gradient(90deg, rgba(20, 6, 4, 0.08) 0%, rgba(74, 12, 22, 0.45) 45%, rgba(34, 8, 16, 0.88) 70%, rgba(20, 5, 10, 0.92) 100%),
    url(images/banner_goku.jpg?v=8) left center / cover no-repeat !important;
}
.banner-slide h2 {
  font-size: clamp(19px, 2.2vw, 25px) !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 0 14px rgba(245, 158, 11, 0.45) !important;
}
.banner-slide p {
  font-size: 12.5px !important;
  max-width: 280px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* News Thumbnail Full-Bleed Dragon Ball Art */
.news-thumb {
  padding: 0 !important;
  background: #1a0604 !important;
}
.news-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

@media (max-width: 720px) {
  .banner-slide {
    align-items: center !important;
    text-align: center !important;
    padding: 20px 36px 28px !important;
  }
}
