:root {
  --bg: #04070D;
  --bg-2: #081224;
  --panel: rgba(8, 18, 36, .72);
  --panel-strong: rgba(8, 18, 36, .9);
  --line: rgba(93, 173, 226, .22);
  --line-gold: rgba(231, 184, 92, .28);
  --text: #F8FAFC;
  --muted: #B8C4D6;
  --muted-2: #7F8CA3;
  --gold: #E7B85C;
  --gold-2: #F4D48A;
  --blue: #5DADE2;
  --blue-2: #2D7FB7;
  --discord: #5865F2;
  --success: #22C55E;
  --danger: #F87171;
  --shadow: 0 28px 90px rgba(0, 0, 0, .45);
  --glow-blue: 0 0 46px rgba(93, 173, 226, .26);
  --glow-gold: 0 0 36px rgba(231, 184, 92, .22);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 10%, rgba(231, 184, 92, .22), transparent 22rem),
    radial-gradient(circle at 18% 18%, rgba(93, 173, 226, .22), transparent 30rem),
    linear-gradient(180deg, rgba(4, 7, 13, .15), rgba(4, 7, 13, .98) 62%),
    linear-gradient(135deg, #081224 0%, #04070D 62%, #02040A 100%);
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(5, 12, 24, .8) 42% 46%, transparent 46%),
    linear-gradient(148deg, transparent 0 52%, rgba(2, 6, 14, .94) 52% 58%, transparent 58%),
    linear-gradient(125deg, transparent 0 60%, rgba(1, 4, 10, .98) 60% 70%, transparent 70%),
    radial-gradient(ellipse at 52% 30%, rgba(248, 250, 252, .12), transparent 24rem);
  opacity: .95;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(248,250,252,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,250,252,.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.52), transparent 70%);
}

.site-shell { min-height: 100vh; position: relative; overflow: hidden; }
.site-shell::before {
  content: '';
  position: fixed;
  left: -10vw;
  right: -10vw;
  bottom: -8vh;
  height: 46vh;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(142deg, transparent 0 23%, rgba(5, 11, 24, .94) 23% 34%, transparent 34%),
    linear-gradient(155deg, transparent 0 36%, rgba(3, 8, 18, .96) 36% 49%, transparent 49%),
    linear-gradient(130deg, transparent 0 53%, rgba(1, 4, 10, 1) 53% 68%, transparent 68%),
    linear-gradient(180deg, transparent 0%, rgba(4, 7, 13, .92) 42%, #04070D 100%);
}

.site-shell::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(93,173,226,.12), transparent 36rem),
    linear-gradient(180deg, transparent 0 40%, rgba(4,7,13,.68) 100%);
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.72; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
code { color: var(--blue); }

.section-pad { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 92px 0; }
.section-pad.compact { padding: 60px 0; }

.topbar {
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(4, 7, 13, .74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 58px rgba(0, 0, 0, .34), var(--glow-blue);
}
.topbar.is-scrolled { background: rgba(4, 7, 13, .92); border-color: rgba(231, 184, 92, .24); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; font-size: 1.22rem; }
.brand img { border-radius: 14px; box-shadow: var(--glow-blue); }
.brand .brand-zion, .brand > span { color: var(--gold); }
.brand .brand-scape, .brand > span > span { color: var(--blue); }
.brand-footer { margin-bottom: 14px; }

.main-nav { justify-self: center; display: flex; align-items: center; gap: 3px; }
.main-nav a, .ghost-link {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: .94rem;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.main-nav a:hover, .main-nav a.is-active, .ghost-link:hover { color: var(--text); background: rgba(93, 173, 226, .11); box-shadow: inset 0 0 0 1px rgba(93,173,226,.12); }
.account-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 14px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: #07101D;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(231, 184, 92, .24);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 24px 56px rgba(231, 184, 92, .34); filter: saturate(1.07); }
.button-large { padding: 15px 24px; font-size: 1rem; }
.button-small { padding: 9px 14px; font-size: .88rem; }
.button-blue { color: #03101B; background: linear-gradient(135deg, var(--blue), #A7D8F4); box-shadow: 0 18px 42px rgba(93, 173, 226, .24); }
.button-blue:hover { box-shadow: 0 24px 56px rgba(93, 173, 226, .34); }
.button-ghost { color: var(--text); background: rgba(248, 250, 252, .06); border: 1px solid var(--line); box-shadow: none; }
.button-ghost:hover { border-color: var(--line-gold); box-shadow: var(--glow-gold); }
.discord-button { color: #fff; background: linear-gradient(135deg, var(--discord), #7F8CFF); box-shadow: 0 18px 42px rgba(88, 101, 242, .28); }
.text-link { color: var(--blue); font-weight: 900; }
.text-link:hover { color: var(--gold); }
.danger, .danger-text { color: var(--danger) !important; }

.flash { width: min(var(--max), calc(100% - 40px)); margin: 18px auto 0; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8,18,36,.82); }
.flash-success { border-color: rgba(34, 197, 94, .38); color: var(--success); }
.flash-error { border-color: rgba(248, 113, 113, .38); color: var(--danger); }
.flash-warning { border-color: var(--line-gold); color: var(--gold); }

.hero { min-height: 720px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 58px; align-items: center; padding-top: 94px; }
.hero-fantasy { position: relative; }
.eyebrow { margin: 0 0 14px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 900; }
h1, h2, h3 { margin: 0; letter-spacing: -.055em; line-height: 1.03; }
h1 { font-size: clamp(3.1rem, 7vw, 6.9rem); max-width: 940px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.28rem; }
.brand-title .brand-zion, .brand-zion { color: var(--gold); text-shadow: 0 0 28px rgba(231,184,92,.2); }
.brand-title .brand-scape, .brand-scape { color: var(--blue); text-shadow: 0 0 30px rgba(93,173,226,.22); }
.hero-copy { max-width: 700px; font-size: 1.18rem; margin: 24px 0 0; color: #D8E1EE; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 700px; }
.hero-metrics div, .stat-card, .panel-card, .feature-card, .news-card, .download-card, .price-card, .staff-card, .list-card, .form-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248,250,252,.055), rgba(248,250,252,.025)), var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-metrics div { padding: 18px; }
.hero-metrics strong, .stat-card strong { display: block; font-size: 1.58rem; color: var(--text); }
.hero-metrics span, .stat-card span { color: var(--muted); font-size: .92rem; }

.hero-card { position: relative; }
.hero-card::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: conic-gradient(from 180deg, rgba(231,184,92,.42), rgba(93,173,226,.25), transparent, rgba(231,184,92,.42)); filter: blur(20px); inset: 50% auto auto 50%; transform: translate(-50%, -50%); opacity: .78; animation: spin 14s linear infinite; }
.orbital-card { position: relative; min-height: 470px; padding: 34px; border-radius: 36px; border: 1px solid rgba(248,250,252,.14); background: radial-gradient(circle at top right, rgba(93,173,226,.26), transparent 18rem), radial-gradient(circle at bottom left, rgba(231,184,92,.20), transparent 18rem), rgba(8, 18, 36, .88); box-shadow: 0 34px 110px rgba(0,0,0,.52); overflow: hidden; }
.orbital-card::after { content: ''; position: absolute; inset: 80px -90px -120px; background: linear-gradient(135deg, rgba(248,250,252,.10), transparent 55%); transform: rotate(-16deg); }
.orbital-card h2 { position: absolute; bottom: 88px; left: 34px; right: 34px; z-index: 1; }
.orbital-card p { position: absolute; bottom: 36px; left: 34px; right: 34px; z-index: 1; margin: 0; }
.status-line { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.status-line span { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 18px var(--danger); }
.status-line.online span { background: var(--success); box-shadow: 0 0 18px var(--success); }
.mini-grid { position: absolute; left: 34px; right: 34px; top: 112px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; z-index: 1; }
.mini-grid span { border: 1px solid var(--line); background: rgba(248,250,252,.055); border-radius: 16px; padding: 18px; color: var(--text); }

.feature-strip, .card-grid, .staff-grid, .pricing-grid, .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .news-card, .price-card, .staff-card, .panel-card, .form-card { padding: 26px; }
.feature-card:hover, .download-card:hover, .list-card:hover, .panel-card:hover { border-color: var(--line-gold); box-shadow: var(--shadow), var(--glow-gold); }
.icon-dot { display: inline-block; width: 14px; height: 14px; background: var(--success); border-radius: 50%; box-shadow: 0 0 24px var(--success); margin-bottom: 22px; }
.icon-dot.blue { background: var(--blue); box-shadow: 0 0 24px var(--blue); }
.icon-dot.gold { background: var(--gold); box-shadow: 0 0 24px var(--gold); }
.icon-dot.violet { background: var(--discord); box-shadow: 0 0 24px var(--discord); }

.split-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: start; }
.compact-list, .card-stack, .admin-list { display: grid; gap: 14px; }
.list-card { display: block; padding: 18px; box-shadow: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.list-card:hover { transform: translateY(-2px); }
.list-card span, .admin-row span, .download-card p, .form-note, small { color: var(--muted-2); font-size: .9rem; }
.list-card strong { display: block; margin-top: 6px; font-size: 1.08rem; }
.muted-card { opacity: .84; }

.page-hero { text-align: left; position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.3rem); }
.page-hero p:not(.eyebrow) { max-width: 760px; font-size: 1.1rem; color: #D8E1EE; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-two.wide-left { grid-template-columns: 1.05fr .95fr; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.download-grid .download-card.primary { grid-column: span 1; }
.download-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; min-height: 265px; box-shadow: none; }
.download-card h3 { margin-top: 6px; }
.download-card code { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue); background: rgba(0,0,0,.24); padding: 9px 10px; border-radius: 10px; margin-top: 10px; font-size: .78rem; }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-flex; color: #EAF4FF; background: rgba(93,173,226,.13); border: 1px solid rgba(93,173,226,.24); border-radius: 999px; padding: 7px 10px; font-size: .78rem; font-weight: 900; margin-bottom: 14px; }
.pill.gold { color: #FFF3D5; background: rgba(231,184,92,.13); border-color: rgba(231,184,92,.28); }
.pill.green { color: #DFFFEA; background: rgba(34,197,94,.13); border-color: rgba(34,197,94,.28); }

.auth-wrap, .contact-layout, .player-profile { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.auth-panel { padding: 58px 0; }
.form-card label { display: grid; gap: 8px; color: var(--muted); margin-bottom: 16px; }
input, textarea, select { width: 100%; color: var(--text); background: rgba(0,0,0,.24); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus, select:focus { border-color: rgba(93,173,226,.55); box-shadow: 0 0 0 4px rgba(93,173,226,.08); }
.check-row { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; }
.check-row input { width: auto; }
.inline-search { display: flex; gap: 10px; max-width: 560px; margin-top: 24px; }
.inline-search input { flex: 1; }

.table-header { display: flex; gap: 12px; margin-bottom: 14px; }
.table-header div { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; background: rgba(248,250,252,.04); }
.table-header strong { display: block; font-size: 1.25rem; }
.table-header span { color: var(--muted); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8,18,36,.72); }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { text-align: left; padding: 16px; border-bottom: 1px solid rgba(93,173,226,.1); }
.data-table th { color: #DDEBFF; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.data-table tr:hover td { background: rgba(248,250,252,.025); }
.status-badge { color: var(--muted); }
.status-badge.online { color: var(--success); }
.table-form { display: flex; gap: 8px; align-items: center; min-width: 360px; }

.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 12px; margin: 24px 0; }
.detail-list dt { color: var(--muted-2); }
.detail-list dd { margin: 0; color: var(--text); }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.dashboard-grid .panel-card { min-height: 240px; }
.discord-profile-card { grid-row: span 2; }
.discord-profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 12px; }

/* Character preview sizing override for live player renders. */
.character-stage {
    min-height: clamp(400px, 48vh, 470px) !important;
}

.character-render {
    bottom: 70px !important;
    max-width: 318px !important;
    max-height: 370px !important;
}

.character-platform {
    bottom: 48px !important;
    width: 225px !important;
    height: 46px !important;
}

@media (max-width: 620px) {
    .character-stage {
        min-height: 370px !important;
    }

    .character-render {
        bottom: 58px !important;
        max-width: 260px !important;
        max-height: 315px !important;
    }

    .character-platform {
        bottom: 42px !important;
        width: 190px !important;
        height: 40px !important;
    }
}
.discord-avatar { width: 92px; height: 92px; border-radius: 26px; border: 1px solid rgba(248,250,252,.18); box-shadow: 0 20px 48px rgba(0,0,0,.32); object-fit: cover; }
.discord-hero { position: relative; overflow: hidden; border-radius: 34px; }
.discord-hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(88,101,242,.3), transparent 62%); pointer-events: none; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skill-grid div { background: rgba(248,250,252,.045); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.skill-grid span, .skill-grid small { display: block; color: var(--muted); }
.skill-grid strong { font-size: 1.35rem; }

.article-page { max-width: 900px; }
.article-lead { font-size: 1.22rem; color: #D8E1EE; }
.article-body { margin-top: 30px; color: var(--text); font-size: 1.08rem; line-height: 1.8; }
.article-meta { margin-top: 38px; color: var(--muted-2); }
.price { font-size: 2.4rem; color: var(--text); margin: 16px 0 6px; font-weight: 900; }
.policy-box { border-top: 1px solid var(--line); }
.rules-list { display: grid; gap: 14px; }
.rules-list article { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.rules-list span { color: var(--blue); font-size: 1.3rem; font-weight: 900; }
.avatar-ring { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 18px; background: linear-gradient(135deg, var(--gold), var(--blue)); color: #06101C; font-size: 2rem; font-weight: 900; }
.contact-card { position: sticky; top: 120px; }

.admin-nav { width: min(var(--max), calc(100% - 40px)); margin: -28px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(248,250,252,.04); }
.admin-nav a.is-active, .admin-nav a:hover { color: var(--text); border-color: var(--line-gold); }
.admin-hero { padding-bottom: 52px; }
.stat-grid { grid-template-columns: repeat(6, 1fr); padding-top: 34px; }
.stat-card { padding: 18px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(248,250,252,.035); }
.admin-row form { display: flex; gap: 10px; align-items: center; }
.admin-row small { display: block; margin-top: 4px; word-break: break-all; }

.empty-state { text-align: center; max-width: 760px; }
.compact-empty { padding: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 54px 0 70px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 28px; }
.footer p { max-width: 520px; margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; color: var(--muted); }
.footer-grid a:hover { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (max-width: 1080px) {
  .topbar { grid-template-columns: auto auto 1fr; }
  .nav-toggle { display: block; justify-self: end; }
  .main-nav { position: absolute; left: 0; right: 0; top: calc(100% + 10px); display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(4,7,13,.96); }
  .main-nav.is-open { display: flex; }
  .account-actions { justify-self: end; }
  .hero, .split-section, .auth-wrap, .contact-layout, .player-profile { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .feature-strip, .card-grid, .staff-grid, .pricing-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .section-pad { width: min(100% - 24px, var(--max)); padding: 54px 0; }
  .topbar { width: calc(100% - 20px); top: 10px; grid-template-columns: auto auto; }
  .account-actions { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .brand { font-size: 1rem; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.2rem); }
  h2 { font-size: 2rem; }
  .hero-metrics, .feature-strip, .card-grid, .staff-grid, .pricing-grid, .download-grid, .grid-two, .grid-two.wide-left, .stat-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .discord-profile-card { grid-row: auto; }
  .discord-profile-head { align-items: flex-start; flex-direction: column; }
  .orbital-card { min-height: 390px; }
  .download-card, .admin-row, .footer { flex-direction: column; align-items: stretch; }
  .inline-search { flex-direction: column; }
  .detail-list { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .table-form { min-width: 0; flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Clean premium refresh */
.topbar {
  grid-template-columns: auto 1fr auto;
  padding: 10px 12px;
  border-radius: 20px;
  box-shadow: 0 14px 42px rgba(0,0,0,.32);
}
.main-nav { gap: 0; }
.main-nav a, .ghost-link { padding: 9px 11px; font-size: .91rem; }
.account-actions .ghost-link { display: inline-flex; }

.home-hero {
  min-height: 680px;
  display: grid;
  place-items: center;
  position: relative;
  text-align: center;
  padding-top: 90px;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 70px 0 40px;
  border: 1px solid rgba(93,173,226,.14);
  border-radius: 42px;
  background:
    radial-gradient(ellipse at 50% 4%, rgba(231,184,92,.16), transparent 24rem),
    radial-gradient(circle at 18% 24%, rgba(93,173,226,.14), transparent 26rem),
    linear-gradient(180deg, rgba(8,18,36,.62), rgba(4,7,13,.46));
  box-shadow: 0 34px 110px rgba(0,0,0,.32);
  pointer-events: none;
}
.home-status {
  position: absolute;
  top: 104px;
  left: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(93,173,226,.18);
  border-radius: 999px;
  background: rgba(4,7,13,.62);
  color: var(--muted);
  font-size: .9rem;
  backdrop-filter: blur(14px);
}
.home-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 16px var(--danger);
}
.home-status.online span { background: var(--success); box-shadow: 0 0 16px var(--success); }
.home-hero-inner { position: relative; z-index: 1; width: min(850px, 100%); }
.home-hero .brand-title { font-size: clamp(4.2rem, 10vw, 8.2rem); line-height: .92; }
.home-hero .hero-copy { margin: 26px auto 0; max-width: 680px; }
.centered-actions { justify-content: center; }
.home-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 38px auto 0;
}
.home-summary article {
  border: 1px solid rgba(93,173,226,.16);
  border-radius: 18px;
  background: rgba(8,18,36,.48);
  padding: 16px;
}
.home-summary strong { display: block; font-size: 1.05rem; color: var(--text); }
.home-summary span { display: block; margin-top: 4px; color: var(--muted-2); font-size: .88rem; }
.clean-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.clean-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.clean-cards .feature-card { box-shadow: none; min-height: 190px; }
.clean-page-hero { text-align: center; }
.clean-page-hero p { margin-left: auto; margin-right: auto; }

.simple-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.simple-download-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(93,173,226,.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(248,250,252,.055), rgba(248,250,252,.02)), rgba(8,18,36,.70);
  box-shadow: 0 26px 82px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
  min-height: 520px;
}
.simple-download-card img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(248,250,252,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.simple-download-card h2 { font-size: 1.7rem; }
.simple-download-card p { margin-bottom: 0; }
.simple-download-card .button { margin-top: auto; width: 100%; }
.simple-download-card:hover { border-color: rgba(231,184,92,.34); box-shadow: 0 30px 90px rgba(0,0,0,.42), var(--glow-gold); }

@media (max-width: 1080px) {
  .simple-download-grid, .clean-cards { grid-template-columns: 1fr; }
  .clean-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: auto auto; }
  .account-actions { grid-column: 1 / -1; }
  .account-actions .ghost-link { display: none; }
  .home-hero { min-height: 620px; padding-top: 54px; }
  .home-hero::before { inset: 34px 0 24px; border-radius: 28px; }
  .home-status { top: 58px; left: 16px; font-size: .82rem; }
  .home-summary { grid-template-columns: 1fr; }
  .home-hero .brand-title { font-size: clamp(3.4rem, 18vw, 5.4rem); }
  .simple-download-card { min-height: auto; }
}

/* Premium raster download card artwork */
.simple-download-grid {
  align-items: stretch;
}
.simple-download-card {
  min-height: 620px;
  height: 100%;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(93,173,226,.075), rgba(248,250,252,.018)),
    #081224;
  border-color: rgba(93,173,226,.20);
}
.simple-download-card img {
  aspect-ratio: 16 / 10;
  height: 260px;
  object-fit: cover;
  background: #04070D;
}
.simple-download-card div:not(.download-meta) {
  min-height: 118px;
}
.simple-download-card h2 {
  color: var(--text);
  margin-bottom: 12px;
}
.simple-download-card p {
  font-size: 1.02rem;
  color: #C8D4E5;
}
.simple-download-card .button {
  min-height: 54px;
  font-size: .98rem;
}
.simple-download-card:hover {
  transform: translateY(-5px);
  border-color: rgba(231,184,92,.42);
  box-shadow: 0 34px 100px rgba(0,0,0,.46), 0 0 42px rgba(231,184,92,.18), 0 0 56px rgba(93,173,226,.14);
}
.simple-download-card:hover img {
  filter: saturate(1.08) contrast(1.03);
}

@media (max-width: 1080px) {
  .simple-download-card { min-height: 560px; }
  .simple-download-card img { height: 300px; }
}

@media (max-width: 720px) {
  .simple-download-card { min-height: auto; }
  .simple-download-card img { height: auto; }
  .simple-download-card div:not(.download-meta) { min-height: 0; }
}

/* Clean launcher-focused downloads page */
.clean-download-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.clean-download-card {
  min-height: 430px;
  height: 100%;
  padding: 18px;
  gap: 16px;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 0%, rgba(93,173,226,.11), transparent 42%),
    linear-gradient(180deg, rgba(248,250,252,.045), rgba(248,250,252,.015)),
    #081224;
  border: 1px solid rgba(93,173,226,.18);
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  overflow: hidden;
}

.clean-download-card .launcher-card-preview {
  width: 100%;
  height: 150px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(2,6,23,.82), rgba(4,7,13,.96));
  border: 1px solid rgba(231,184,92,.18);
  box-shadow: 0 16px 42px rgba(0,0,0,.30);
}

.clean-download-card div:not(.download-meta) {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clean-download-card h2 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  margin: 0;
}

.clean-download-card p {
  font-size: .98rem;
  line-height: 1.55;
  margin: 0;
  color: #C8D4E5;
}

.download-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(93,173,226,.20);
  background: rgba(2,6,23,.42);
  color: var(--muted-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.clean-download-card .button {
  min-height: 52px;
  width: 100%;
  margin-top: auto;
}

.clean-download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231,184,92,.38);
  box-shadow: 0 30px 86px rgba(0,0,0,.42), 0 0 38px rgba(231,184,92,.15), 0 0 44px rgba(93,173,226,.11);
}

@media (max-width: 1080px) {
  .clean-download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .clean-download-card { min-height: 410px; padding: 15px; }
  .clean-download-card .launcher-card-preview { height: 126px; }
  .clean-download-card p { font-size: .92rem; }
}

@media (max-width: 820px) {
  .clean-download-grid { grid-template-columns: 1fr; }
  .clean-download-card { min-height: auto; }
  .clean-download-card .launcher-card-preview { height: auto; max-height: 210px; }
}

/* Character preview sizing override for live player renders. */
.character-stage {
  min-height: clamp(400px, 48vh, 470px) !important;
}

.character-render {
  bottom: 70px !important;
  max-width: 318px !important;
  max-height: 370px !important;
}

.character-platform {
  bottom: 48px !important;
  width: 225px !important;
  height: 46px !important;
}

@media (max-width: 620px) {
  .character-stage {
    min-height: 370px !important;
  }

  .character-render {
    bottom: 58px !important;
    max-width: 260px !important;
    max-height: 315px !important;
  }

  .character-platform {
    bottom: 42px !important;
    width: 190px !important;
    height: 40px !important;
  }
}

/* ZionScape fantasy MMO theme refresh. Structure stays unchanged. */
:root {
  --bg: #08111f;
  --bg-2: #0d1628;
  --panel: rgba(13, 22, 40, .76);
  --panel-strong: rgba(18, 29, 51, .92);
  --line: rgba(77, 163, 255, .20);
  --line-gold: rgba(212, 175, 55, .34);
  --text: #f8fafc;
  --muted: #c6d1e1;
  --muted-2: #8fa0ba;
  --gold: #d4af37;
  --gold-2: #f0d889;
  --blue: #4da3ff;
  --blue-2: #2b76bd;
  --rare: #7a5cff;
  --boss: #c84545;
  --discord: #7a5cff;
  --success: #38d27d;
  --danger: #c84545;
  --glow-blue: 0 0 32px rgba(77, 163, 255, .20);
  --glow-gold: 0 0 34px rgba(212, 175, 55, .24);
}

body {
  color: var(--text);
  background:
    radial-gradient(ellipse at 18% -10%, rgba(212, 175, 55, .14), transparent 34%),
    radial-gradient(ellipse at 78% 4%, rgba(77, 163, 255, .15), transparent 36%),
    radial-gradient(ellipse at 50% 112%, rgba(122, 92, 255, .12), transparent 38%),
    linear-gradient(180deg, #08111f 0%, #0d1628 48%, #121d33 100%);
}

body::before {
  background:
    linear-gradient(180deg, rgba(8, 17, 31, .05), rgba(8, 17, 31, .62)),
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, .075), transparent 36%);
}

body::after {
  opacity: .28;
  background-image:
    linear-gradient(135deg, rgba(212, 175, 55, .09) 0 1px, transparent 1px 24px),
    radial-gradient(circle at center, rgba(77, 163, 255, .16) 0 1px, transparent 1.5px);
  background-size: 34px 34px, 88px 88px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 74%, transparent);
}

::selection {
  background: rgba(212, 175, 55, .32);
  color: #fff;
}

.topbar,
.panel-card,
.feature-card,
.stat-card,
.list-card,
.simple-download-card,
.clean-download-card,
.home-summary article,
.flash {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .045), rgba(248, 250, 252, .014)),
    linear-gradient(145deg, rgba(13, 22, 40, .92), rgba(8, 17, 31, .86));
  border-color: rgba(212, 175, 55, .20);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(248, 250, 252, .06);
}

.topbar {
  background:
    linear-gradient(180deg, rgba(18, 29, 51, .95), rgba(8, 17, 31, .88)),
    rgba(8, 17, 31, .92);
}

.brand,
.brand-title,
.page-hero h1,
.panel-card h2,
.feature-card h2,
.simple-download-card h2,
.clean-download-card h2 {
  text-shadow: 0 0 28px rgba(212, 175, 55, .15);
}

.brand-scape,
.brand-title span,
.page-hero strong,
.stat-card strong,
.list-card strong,
.panel-card h2,
.feature-card h2 {
  color: var(--gold);
}

.main-nav a,
.ghost-link,
.download-note,
.pill {
  border-color: rgba(212, 175, 55, .18);
  background: rgba(8, 17, 31, .42);
}

.main-nav a:hover,
.main-nav a.active,
.ghost-link:hover {
  color: var(--gold-2);
  border-color: rgba(212, 175, 55, .42);
  background: rgba(212, 175, 55, .10);
  box-shadow: 0 0 22px rgba(212, 175, 55, .14);
}

.button {
  color: #08111f;
  border: 1px solid rgba(212, 175, 55, .62);
  background:
    linear-gradient(180deg, #f0d889, #d4af37 58%, #a87818);
  box-shadow: 0 14px 38px rgba(212, 175, 55, .20), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.button:hover {
  border-color: rgba(240, 216, 137, .86);
  box-shadow: 0 20px 46px rgba(212, 175, 55, .28), 0 0 26px rgba(77, 163, 255, .12);
}

.button-blue,
.discord-button {
  color: #f8fafc;
  border-color: rgba(212, 175, 55, .34);
  background:
    linear-gradient(180deg, rgba(77, 163, 255, .30), rgba(122, 92, 255, .20)),
    linear-gradient(180deg, #121d33, #08111f);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32), 0 0 22px rgba(77, 163, 255, .14);
}

.button-blue:hover,
.discord-button:hover {
  border-color: rgba(212, 175, 55, .56);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, .18), rgba(77, 163, 255, .20)),
    linear-gradient(180deg, #121d33, #08111f);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38), var(--glow-gold), var(--glow-blue);
}

.panel-card:hover,
.feature-card:hover,
.stat-card:hover,
.list-card:hover,
.clean-download-card:hover,
.simple-download-card:hover {
  border-color: rgba(212, 175, 55, .46);
  box-shadow: 0 32px 96px rgba(0, 0, 0, .48), 0 0 34px rgba(212, 175, 55, .16), 0 0 42px rgba(77, 163, 255, .10);
}

.page-hero::before,
.home-hero::before {
  background:
    radial-gradient(ellipse at 28% 18%, rgba(212, 175, 55, .18), transparent 38%),
    radial-gradient(ellipse at 72% 24%, rgba(77, 163, 255, .16), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(200, 69, 69, .11), transparent 45%),
    linear-gradient(180deg, rgba(18, 29, 51, .74), rgba(8, 17, 31, .92));
  border-color: rgba(212, 175, 55, .20);
}

.pill {
  color: var(--blue);
  background: rgba(77, 163, 255, .10);
}

.pill.gold {
  color: var(--gold-2);
  border-color: rgba(212, 175, 55, .36);
  background: rgba(212, 175, 55, .12);
}

.pill.green {
  color: #7df0ad;
  border-color: rgba(56, 210, 125, .28);
  background: rgba(56, 210, 125, .10);
}

.pill.blue {
  color: #9dccff;
  border-color: rgba(77, 163, 255, .30);
  background: rgba(77, 163, 255, .11);
}

.pill.red,
.pill.boss {
  color: #ffb0b0;
  border-color: rgba(200, 69, 69, .34);
  background: rgba(200, 69, 69, .12);
}

.pill.rare,
.status-badge.rare {
  color: #c8bcff;
  border-color: rgba(122, 92, 255, .36);
  background: rgba(122, 92, 255, .13);
}

.status-badge.online,
.flash-success {
  border-color: rgba(56, 210, 125, .32);
  background: rgba(56, 210, 125, .10);
}

.flash-error {
  border-color: rgba(200, 69, 69, .36);
  background: rgba(200, 69, 69, .12);
}

.data-table th,
.data-table td {
  border-color: rgba(212, 175, 55, .13);
}

.data-table th {
  color: var(--gold-2);
  background: rgba(8, 17, 31, .56);
}

input,
select,
textarea {
  background: rgba(8, 17, 31, .72);
  border-color: rgba(212, 175, 55, .18);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(212, 175, 55, .56);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .12), 0 0 24px rgba(77, 163, 255, .10);
}

.character-platform {
  background:
    radial-gradient(ellipse at center, rgba(212, 175, 55, .38), rgba(77, 163, 255, .14) 45%, transparent 72%);
}

/* Premium MMORPG navbar polish. */
.topbar {
  gap: 14px;
  padding: 10px 12px;
  border-color: rgba(212, 175, 55, .22);
}

.brand {
  position: relative;
  padding-right: 6px;
  font-size: 1.32rem;
}

.brand img {
  width: 46px;
  height: 46px;
  box-shadow: 0 0 26px rgba(212, 175, 55, .18), 0 0 22px rgba(77, 163, 255, .12);
}

.brand::after {
  content: '';
  width: 1px;
  height: 30px;
  margin-left: 8px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, .34), transparent);
}

.main-nav {
  gap: 8px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 11px;
  overflow: hidden;
  color: #c6d1e1;
  border: 1px solid transparent;
  transform: translateY(0);
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease, transform .2s ease;
}

.main-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, .12);
  background: linear-gradient(180deg, rgba(212, 175, 55, .075), rgba(77, 163, 255, .04));
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18), 0 0 14px rgba(212, 175, 55, .08);
}

.main-nav a:hover::after,
.main-nav a.is-active::after,
.main-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a.is-active,
.main-nav a.active {
  color: var(--gold-2);
  border-color: rgba(212, 175, 55, .24);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, .12), rgba(77, 163, 255, .05)),
    rgba(8, 17, 31, .54);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .06), 0 0 18px rgba(212, 175, 55, .10);
}

.main-nav a.nav-featured {
  color: #f0d889;
  border-color: rgba(212, 175, 55, .34);
  background: rgba(212, 175, 55, .10);
}

.main-nav a.nav-featured:hover,
.main-nav a.nav-featured.is-active,
.main-nav a.nav-featured.active {
  color: #08111f;
  background: linear-gradient(180deg, #f0d889, #d4af37 62%, #a87818);
  border-color: rgba(240, 216, 137, .72);
  box-shadow: 0 16px 34px rgba(212, 175, 55, .22);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--gold);
  font-size: .82rem;
  line-height: 1;
  opacity: .9;
  text-shadow: 0 0 14px rgba(212, 175, 55, .30);
}

.nav-featured:hover .nav-icon,
.nav-featured.is-active .nav-icon,
.nav-featured.active .nav-icon {
  color: #08111f;
  text-shadow: none;
}

.account-actions {
  gap: 9px;
  margin-left: 4px;
}

.nav-discord-link {
  margin-left: 8px;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(212, 175, 55, .24);
  border-radius: 999px;
  background: rgba(8, 17, 31, .52);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, .025);
}

.server-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 14px var(--danger);
}

.server-pill.online {
  color: #dfffea;
  border-color: rgba(56, 210, 125, .28);
  background: rgba(56, 210, 125, .08);
}

.server-pill.online .server-dot {
  background: var(--success);
  box-shadow: 0 0 16px var(--success);
}

.server-separator {
  color: rgba(212, 175, 55, .72);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(212, 175, 55, .24);
  border-radius: 999px;
  background: rgba(8, 17, 31, .58);
  color: var(--text);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 900;
  list-style: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary::after {
  content: '⌄';
  color: var(--gold);
  font-size: .76rem;
  transform: translateY(-1px);
}

.account-menu[open] summary,
.account-menu summary:hover {
  border-color: rgba(212, 175, 55, .48);
  background: rgba(212, 175, 55, .10);
  box-shadow: 0 0 24px rgba(212, 175, 55, .14);
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #08111f;
  background: linear-gradient(180deg, #f0d889, #d4af37);
  box-shadow: 0 0 18px rgba(212, 175, 55, .22);
}

.account-avatar-img {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, .36);
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 29, 51, .98), rgba(8, 17, 31, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48), var(--glow-gold);
  z-index: 70;
}

.account-dropdown a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
}

.account-dropdown a:hover {
  color: var(--gold-2);
  background: rgba(212, 175, 55, .10);
}

@media (max-width: 1180px) {
  .server-players,
  .server-separator {
    display: none;
  }
}

@media (max-width: 1080px) {
  .main-nav a {
    justify-content: flex-start;
  }

  .main-nav a::after {
    display: none;
  }

  .server-pill {
    order: -1;
  }
}

@media (max-width: 720px) {
  .brand::after {
    display: none;
  }

  .server-pill {
    flex: 1 1 auto;
    justify-content: center;
  }

  .account-menu {
    flex: 1 1 auto;
  }

  .account-menu summary {
    justify-content: center;
  }

  .account-dropdown {
    left: 0;
    right: 0;
  }
}

.account-menu summary::after {
  content: 'v' !important;
}

/* Homepage adventure polish. */
.home-hero::before {
  background:
    radial-gradient(ellipse at 24% 18%, rgba(212, 175, 55, .22), transparent 34%),
    radial-gradient(ellipse at 72% 20%, rgba(77, 163, 255, .18), transparent 38%),
    radial-gradient(ellipse at 50% 104%, rgba(200, 69, 69, .16), transparent 42%),
    linear-gradient(180deg, rgba(18, 29, 51, .78), rgba(8, 17, 31, .96));
}

.home-hero .hero-copy {
  color: #e4edf8;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}

.home-status {
  border-color: rgba(212, 175, 55, .30);
  background: rgba(8, 17, 31, .68);
  box-shadow: 0 0 24px rgba(212, 175, 55, .10);
}

.home-summary article,
.clean-cards .feature-card {
  border-color: rgba(212, 175, 55, .18);
}

.clean-cards .feature-card h3 {
  color: var(--gold-2);
}

.clean-cards .feature-card:hover {
  transform: translateY(-3px);
}

/* Final clean navbar pass: fewer outlines, calmer MMO header. */
.topbar {
  width: min(1500px, calc(100% - 40px));
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 14px;
  border-color: rgba(212, 175, 55, .10) !important;
  background:
    linear-gradient(180deg, rgba(18, 29, 51, .88), rgba(8, 17, 31, .82)),
    rgba(8, 17, 31, .86) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

.brand {
  padding-right: 4px;
}

.brand::after {
  display: none;
}

.brand img {
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(77, 163, 255, .16), 0 0 24px rgba(212, 175, 55, .12);
}

.main-nav {
  justify-content: center;
  min-width: 0;
  gap: 5px;
}

.main-nav a {
  min-height: 38px;
  padding: 8px 10px;
  border-color: transparent !important;
  background: transparent;
  box-shadow: none;
}

.main-nav a::after {
  display: none;
}

.main-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
  border-color: transparent !important;
  background: rgba(212, 175, 55, .07);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

.main-nav a.is-active,
.main-nav a.active {
  color: var(--gold-2);
  border-color: transparent !important;
  background: rgba(212, 175, 55, .095);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .055);
}

.main-nav a.nav-featured {
  color: var(--gold-2);
  border-color: rgba(212, 175, 55, .24) !important;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, .13), rgba(212, 175, 55, .075));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .06);
}

.main-nav a.nav-featured:hover,
.main-nav a.nav-featured.is-active,
.main-nav a.nav-featured.active {
  color: #08111f;
  border-color: rgba(240, 216, 137, .42) !important;
  background: linear-gradient(180deg, #f0d889, #d4af37 64%, #b48a25);
  box-shadow: 0 14px 30px rgba(212, 175, 55, .20);
}

.nav-icon {
  opacity: .75;
  text-shadow: none;
}

.account-actions {
  min-width: max-content;
  gap: 8px;
}

.server-pill,
.nav-discord-link,
.account-menu summary {
  border-color: transparent !important;
  background: rgba(8, 17, 31, .36);
  box-shadow: none;
}

.server-pill.online {
  border-color: rgba(56, 210, 125, .18) !important;
  background: rgba(56, 210, 125, .10);
  box-shadow: inset 0 0 0 1px rgba(56, 210, 125, .06);
}

.nav-discord-link {
  margin-left: 4px;
  color: var(--muted);
}

.nav-discord-link:hover,
.account-menu summary:hover,
.account-menu[open] summary {
  background: rgba(212, 175, 55, .08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

@media (max-width: 1280px) {
  .topbar {
    width: calc(100% - 24px);
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding: 8px 8px;
  }
}

/* Final alignment pass: remove letter clutter and keep only primary actions loud. */
.topbar {
  min-height: 74px;
  align-items: center;
}

.main-nav {
  gap: 4px;
}

.main-nav a {
  gap: 0;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 850;
}

.main-nav .nav-icon {
  display: none;
}

.main-nav a:not(.nav-featured):hover {
  color: #fff;
  background: rgba(248, 250, 252, .045);
  box-shadow: none;
}

.main-nav a:not(.nav-featured).is-active,
.main-nav a:not(.nav-featured).active {
  color: var(--gold-2);
  background: rgba(212, 175, 55, .075);
  box-shadow: none;
}

.main-nav a.nav-featured {
  padding-inline: 18px;
  border-radius: 18px;
}

.main-nav a.nav-featured.is-active,
.main-nav a.nav-featured.active {
  color: #08111f;
  background: linear-gradient(180deg, #f0d889, #d4af37 64%, #b48a25);
  box-shadow: 0 12px 28px rgba(212, 175, 55, .20);
}

.account-actions {
  gap: 7px;
}

.server-pill {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 16px;
}

.nav-discord-link {
  min-height: 34px;
  padding-inline: 12px;
  border-radius: 12px;
  background: transparent;
}

.account-menu summary {
  min-height: 38px;
  padding: 6px 10px 6px 7px;
  border-radius: 18px;
}

.account-avatar {
  width: 27px;
  height: 27px;
}

@media (max-width: 1360px) {
  .main-nav a {
    padding-inline: 9px;
  }

  .main-nav a.nav-featured {
    padding-inline: 13px;
  }

  .server-players,
  .server-separator {
    display: none;
  }
}

/* Navbar CTA polish. */
.main-nav {
  gap: 9px;
}

.main-nav a {
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.main-nav a:hover {
  transform: translateY(-2px);
}

.main-nav a::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .86), transparent);
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity .18s ease, transform .18s ease;
}

.main-nav a.is-active::before,
.main-nav a.active::before {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a[href$="play-now"] {
  color: #08111f !important;
  border-color: rgba(240, 216, 137, .52) !important;
  background: linear-gradient(180deg, #f0d889, #d4af37 64%, #a87818) !important;
  box-shadow: 0 16px 34px rgba(212, 175, 55, .24), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}

.main-nav a[href$="play-now"]:hover {
  box-shadow: 0 20px 42px rgba(212, 175, 55, .32), 0 0 22px rgba(77, 163, 255, .10) !important;
}

.main-nav a[href$="play-now"]::before {
  display: none;
}

.main-nav a[href$="vote"],
.main-nav a[href$="store"] {
  color: var(--gold-2);
  border-color: rgba(212, 175, 55, .18) !important;
  background: rgba(212, 175, 55, .075) !important;
  box-shadow: none !important;
}

.main-nav a[href$="vote"]:hover,
.main-nav a[href$="store"]:hover,
.main-nav a[href$="vote"].is-active,
.main-nav a[href$="store"].is-active {
  color: var(--gold-2);
  background: rgba(212, 175, 55, .12) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14) !important;
}

.server-pill {
  color: #d8fbe6;
}

.server-players {
  color: #f8fafc;
}

/* Live chat widget */
.live-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  font-family: inherit;
}

.live-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 29, 51, .96), rgba(8, 17, 31, .94));
  color: var(--gold-2);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), var(--glow-gold);
}

.live-chat-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 29, 51, .98), rgba(8, 17, 31, .98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .54), var(--glow-gold);
}

.live-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, .12);
}

.live-chat-panel header strong {
  display: block;
  color: var(--gold-2);
}

.live-chat-panel header span,
.live-chat-note,
.live-chat-typing {
  color: var(--muted-2);
  font-size: .84rem;
}

.live-chat-panel header button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.live-chat-name,
.live-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.live-chat-name a {
  align-self: center;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}

.live-chat-messages,
.admin-chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.chat-message {
  border: 1px solid rgba(212, 175, 55, .12);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(8, 17, 31, .48);
}

.chat-message strong {
  color: var(--gold-2);
  font-size: .88rem;
}

.chat-message p {
  margin: 5px 0;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-message span {
  color: var(--muted-2);
  font-size: .76rem;
}

.chat-staff {
  border-color: rgba(77, 163, 255, .28);
  background: rgba(77, 163, 255, .08);
}

.chat-system {
  border-color: rgba(122, 92, 255, .22);
  background: rgba(122, 92, 255, .08);
}

.live-chat-form {
  border-top: 1px solid rgba(212, 175, 55, .10);
}

.live-chat-form input,
.live-chat-name input {
  min-width: 0;
  flex: 1;
}

.live-chat-form button,
.chat-message button {
  border: 1px solid rgba(212, 175, 55, .24);
  border-radius: 12px;
  background: rgba(212, 175, 55, .12);
  color: var(--gold-2);
  cursor: pointer;
  font-weight: 900;
}

.live-chat-form button {
  padding: 0 14px;
}

.live-chat-note,
.live-chat-typing {
  padding: 0 14px 12px;
  margin: 0;
}

.admin-chat-log {
  height: 560px;
  border: 1px solid rgba(212, 175, 55, .12);
  border-radius: 18px;
  background: rgba(8, 17, 31, .38);
}

.admin-visitor-list {
  display: grid;
  gap: 12px;
}

@media (max-width: 620px) {
  .live-chat {
    right: 12px;
    bottom: 12px;
  }

  .live-chat-panel {
    right: -2px;
    bottom: 58px;
    width: calc(100vw - 20px);
    height: min(560px, calc(100vh - 90px));
  }
}
