:root {
  --void: #0a0705;
  --void-2: #14100c;
  --panel: rgba(18, 12, 8, 0.94);
  --panel-edge: rgba(212, 175, 55, 0.35);
  --neon-cyan: #c9a84c;
  --neon-cyan-dim: #8a6d1f;
  --neon-magenta: #b87333;
  --neon-gold: #f2c337;
  --neon-gold-dim: #c9a020;
  --gold: #d4af37;
  --gold-bright: #f2c337;
  --gold-soft: #c9a84c;
  --gold-dim: #8a6d1f;
  --bronze: #b87333;
  --ember: #c45c26;
  --ember-soft: #e07835;
  --ember-glow: rgba(196, 92, 38, 0.45);
  --marble: #e8dcc8;
  --text: #fff8eb;
  --text-muted: #d8c9ad;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --line: rgba(212, 175, 55, 0.2);
  --line-strong: rgba(212, 175, 55, 0.42);
  --line-gold: rgba(242, 195, 55, 0.4);
  --glass: rgba(12, 8, 5, 0.96);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  --shadow-neon: 0 0 30px rgba(196, 92, 38, 0.1);
  --shadow-gold: 0 0 24px rgba(242, 195, 55, 0.18);
  --radius: 2px;
  --radius-lg: 4px;
  --max: 1240px;
  --shinsoo: #ff2244;
  --chunjo: #f2c337;
  --jinno: #2d9cff;
  --sidebar-left-w: 188px;
  --sidebar-right-w: min(400px, 34vw);
  --hud-h: 44px;
  --ticker-h: 44px;
  --panel-bg: rgba(18, 12, 8, 0.94);
  --panel-bg-deep: rgba(12, 8, 5, 0.97);
  --clip: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  background: var(--void);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--ticker-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.auth-open {
  overflow: hidden;
}

body.lightning-struck .bg-video {
  filter: contrast(1.1) saturate(1.08);
  transition: filter 0.08s ease-out;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Ancient forge background (login video loop) ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.06) saturate(1.04);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.bg-forge-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 72%, rgba(10, 7, 5, 0.1) 100%);
  pointer-events: none;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 92% 85% at 50% 44%, transparent 68%, rgba(10, 7, 5, 0.1) 100%);
  pointer-events: none;
}

/* ── Hephaestus lightning (forge storm) ── */
.lightning-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
}

.lightning-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background:
    radial-gradient(ellipse 55% 42% at var(--flash-x, 50%) var(--flash-y, 28%), rgba(255, 248, 220, 0.5) 0%, transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(242, 195, 55, 0.18) 0%, transparent 72%);
  transition: opacity 0.04s ease-out;
}

.lightning-flash.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .lightning-canvas,
  .lightning-flash {
    display: none;
  }
}

/* ── Loader ── */
.live-loader {
  position: fixed;
  top: 1rem;
  right: calc(var(--sidebar-right-w) + 1rem);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  clip-path: var(--clip);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  color: var(--gold-bright);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.live-loader.is-visible { opacity: 1; transform: translateY(0); }

.loader-ring {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Side layout: nav left, panels right, center clear for video ── */
.site-layout {
  display: grid;
  grid-template-columns: var(--sidebar-left-w) 1fr var(--sidebar-right-w);
  min-height: calc(100vh - var(--ticker-h));
}

.sidebar-left {
  position: fixed;
  top: 0;
  left: 0;
  bottom: var(--ticker-h);
  width: var(--sidebar-left-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.55rem;
  background: rgba(10, 7, 5, 0.06);
  border-right: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow: none;
}

.brand-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.35rem 0.25rem 0.85rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  background: transparent;
}

.brand-logo-img {
  display: block;
  width: 100%;
  max-width: 162px;
  height: auto;
  max-height: 148px;
  object-fit: contain;
  object-position: center center;
  border-radius: 2px;
  filter:
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 22px rgba(242, 195, 55, 0.22));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.brand-sidebar:hover .brand-logo-img {
  filter:
    drop-shadow(0 8px 22px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 28px rgba(242, 195, 55, 0.35));
  transform: scale(1.02);
}

.brand-logo-img-sm {
  max-width: 110px;
  max-height: 72px;
}

.brand-footer {
  justify-content: center;
}

.site-stage {
  grid-column: 2;
  min-height: calc(100vh - var(--ticker-h));
  pointer-events: none;
}

.sidebar-right {
  position: fixed;
  top: 0;
  right: 0;
  bottom: var(--ticker-h);
  width: var(--sidebar-right-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(10, 7, 5, 0.06);
  border-left: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow: none;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-footer img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(242, 195, 55, 0.35)) drop-shadow(0 0 20px rgba(196, 92, 38, 0.25));
}

.brand-sidebar .brand-logo-img {
  width: 100%;
  max-width: 162px;
  height: auto;
  max-height: 148px;
}

.brand strong {
  display: block;
  font-family: "Cinzel", serif;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.brand-accent { color: var(--gold-bright); }

.brand span {
  font-family: var(--font-ui);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  clip-path: var(--clip);
  background: rgba(196, 92, 38, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-status.is-online .status-dot {
  background: #00ff88;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.8);
  animation: pulse 2s ease infinite;
}

.server-status.is-offline .status-dot {
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember-glow);
}

.status-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.status-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.top-actions { display: flex; gap: 0.5rem; }

/* ── HUD bar (hidden on overview — video title stays clear) ── */
.hud-bar {
  display: none;
  background: rgba(18, 12, 8, 0.88);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.hud-bar.is-visible {
  display: block;
}

.hud-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: var(--hud-h);
  padding: 0 0.5rem;
  overflow-x: auto;
}

.hud-stat {
  flex: 1;
  min-width: 52px;
  padding: 0.35rem 0.45rem;
  border-right: 1px solid rgba(212, 175, 55, 0.12);
  text-align: center;
  position: relative;
}

.hud-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  opacity: 0.4;
}

.hud-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hud-stat strong {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-gold);
  text-shadow: 0 0 20px rgba(242, 195, 55, 0.4);
}

.hud-updated {
  flex-shrink: 0;
  padding: 0 1rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  color: var(--neon-cyan-dim);
  white-space: nowrap;
}

/* ── Navigation (vertical, left sidebar) ── */
.main-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.forge-nav-tabs-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  padding: 0.35rem 0 0.5rem;
  min-height: 0;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  min-height: 3.6rem;
  width: 100%;
  padding: 0.75rem 0.45rem;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-left: 2px solid rgba(212, 175, 55, 0.06);
  clip-path: var(--clip);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
  white-space: nowrap;
  text-align: center;
}

.nav-tab-glyph {
  font-size: 1rem;
  line-height: 1;
  color: var(--gold-dim);
  opacity: 0.85;
  transition: color 0.25s, text-shadow 0.25s, transform 0.2s;
}

.nav-tab-label {
  line-height: 1.15;
}

.nav-index {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem;
  color: var(--neon-cyan-dim);
  opacity: 0.7;
}

.nav-tab:hover {
  color: var(--gold-soft);
  background: rgba(10, 7, 5, 0.08);
  border-color: rgba(212, 175, 55, 0.22);
  transform: translateX(2px);
}

.nav-tab:hover .nav-tab-glyph {
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(242, 195, 55, 0.45);
}

.nav-tab.is-active {
  color: var(--neon-gold);
  border-color: rgba(242, 195, 55, 0.32);
  border-left-color: var(--neon-gold);
  background: rgba(10, 7, 5, 0.1);
  box-shadow: 0 0 14px rgba(242, 195, 55, 0.08);
  text-shadow: 0 0 14px rgba(242, 195, 55, 0.35);
}

.nav-tab.is-active .nav-tab-glyph {
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(242, 195, 55, 0.55);
  transform: scale(1.08);
}

.nav-tab.is-active .nav-index { color: var(--neon-gold); opacity: 1; }

.nav-tab-discord {
  flex: 0 0 auto;
  min-height: 3.2rem;
  margin-top: auto;
  color: #c9a84c;
}

.nav-tab-discord:hover {
  color: var(--gold-bright);
  background: rgba(10, 7, 5, 0.08);
}

.mobile-toggle {
  display: none;
  width: 100%;
  padding: 0.7rem;
  background: rgba(10, 7, 5, 0.06);
  border: 1px solid var(--line);
  clip-path: var(--clip);
  color: var(--gold-soft);
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin: 0.5rem 0;
}

/* ── Sci-fi buttons ── */
.btn-forge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, rgba(196, 92, 38, 0.25) 0%, rgba(242, 195, 55, 0.18) 100%);
  border: 1px solid var(--gold-bright);
  clip-path: var(--clip);
  color: #fff8eb;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 20px rgba(196, 92, 38, 0.15), inset 0 0 20px rgba(242, 195, 55, 0.04);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}

.btn-forge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(242, 195, 55, 0.2), transparent);
  transition: left 0.4s ease;
}

.btn-forge:hover::before { left: 100%; }

.btn-forge:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 0 30px rgba(196, 92, 38, 0.25), 0 0 15px rgba(242, 195, 55, 0.2);
}

.btn-forge:active { transform: translateY(0); }

.btn-forge-outline {
  background: rgba(18, 12, 8, 0.85);
  border-color: var(--line-gold);
  color: var(--neon-gold);
  box-shadow: inset 0 0 20px rgba(242, 195, 55, 0.04);
}

.btn-forge-outline:hover {
  border-color: var(--neon-gold);
  box-shadow: 0 0 20px rgba(242, 195, 55, 0.15);
}

.btn-forge-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-muted);
  box-shadow: none;
}

.btn-forge-ghost:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn-forge-sm { padding: 0.5rem 1rem; font-size: 0.68rem; }
.btn-forge-lg {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: none;
  padding: 0.85rem 1rem;
  font-size: 0.76rem;
  text-align: center;
}
.btn-icon { font-size: 0.9em; color: var(--gold-bright); }

/* ── Panels (right sidebar) ── */
.game-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.panel-shell {
  padding: 0.85rem 1rem 1.25rem;
}

.game-panel { display: none; animation: panelIn 0.35s ease; }
.game-panel.is-active { display: block; }

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

.forge-panel {
  position: relative;
  clip-path: var(--clip);
}

.forge-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, var(--bronze) 0%, transparent 40%, var(--neon-gold) 70%, var(--ember) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.forge-panel::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--bronze);
  border-left: 2px solid var(--bronze);
  pointer-events: none;
  opacity: 0.7;
}

.panel-frame {
  background:
    linear-gradient(160deg, rgba(26, 18, 12, 0.82) 0%, rgba(12, 8, 5, 0.88) 100%);
  padding: 1.1rem;
  box-shadow: var(--shadow), var(--shadow-neon);
  position: relative;
  color: var(--text);
}

.panel-frame::before {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--neon-gold);
  border-right: 2px solid var(--neon-gold);
  opacity: 0.5;
  pointer-events: none;
}

/* ── Hero (CTA buttons in right panel) ── */
.hero-stage {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: auto;
  margin: 0;
  padding: 0;
}

.hero-cta-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem;
  background: rgba(10, 7, 5, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.28);
  clip-path: var(--clip);
  backdrop-filter: blur(6px);
}

.hero-vote-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.hero-vote-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-vote-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-vote-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  background: rgba(10, 7, 5, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero-vote-badge:hover {
  border-color: rgba(242, 195, 55, 0.45);
  box-shadow: 0 0 16px rgba(242, 195, 55, 0.15);
  transform: translateY(-1px);
}

.hero-vote-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}

.modern-cms-content .hero-vote-row {
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.modern-cms-content .hero-vote-badges {
  justify-content: flex-start;
}

.account-vote4coins-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.account-vote4coins-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
  width: 100%;
}

.account-vote4coins-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.account-vote-table {
  margin-top: 0.35rem;
}

.account-vote-table .btn-forge {
  white-space: nowrap;
}

.hero-vote-badge-action {
  flex-direction: column;
  gap: 0.35rem;
  min-width: 7.5rem;
}

.hero-vote-badge-reward {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero-vote-badge-text {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.account-vote4coins-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modern-cms-content.forge-panel {
  padding: 1rem 1.1rem 1.25rem;
  background:
    linear-gradient(160deg, rgba(26, 18, 12, 0.82) 0%, rgba(12, 8, 5, 0.88) 100%);
  box-shadow: var(--shadow), var(--shadow-neon);
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.account-summary-item {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 12, 0.55);
}

.account-summary-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.account-summary-value {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-bright);
  word-break: break-word;
}

.account-actions-panel .row {
  align-items: center;
  margin-bottom: 0.35rem;
}

.account-actions-panel .col-sm-8 {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.auth-overlay.is-hidden {
  display: none;
}

.auth-overlay {
  position: fixed;
  top: 0;
  left: var(--sidebar-left-w);
  right: var(--sidebar-right-w);
  bottom: var(--ticker-h);
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-scrim {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(8, 5, 3, 0.28);
  cursor: pointer;
}

.auth-center-wrap {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: 100%;
  overflow-y: auto;
}

.auth-panel.is-hidden {
  display: none;
}

.auth-panel {
  width: 100%;
  padding: 1.35rem 1.45rem;
  background: rgba(12, 8, 5, 0.96) !important;
  border: 1px solid rgba(242, 195, 55, 0.42);
  clip-path: var(--clip);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(242, 195, 55, 0.08);
  animation: panelIn 0.3s ease;
  color: #fff8eb !important;
}

.auth-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-panel-head h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #fff4c8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.auth-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(10, 7, 5, 0.5);
  color: var(--text-muted);
  clip-path: var(--clip);
  font-size: 0.85rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
}

.auth-close:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.forge-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.forge-field > span {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff0cc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.forge-field input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: rgba(6, 4, 2, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  clip-path: var(--clip);
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.forge-field input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(242, 195, 55, 0.15);
}

.forge-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.captcha-row img {
  border: 1px solid rgba(212, 175, 55, 0.3);
  clip-path: var(--clip);
  background: #1a1410;
}

.auth-foot {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.auth-foot a,
.auth-foot button {
  color: var(--gold-soft);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.auth-foot a:hover,
.auth-foot button:hover {
  color: var(--gold-bright);
}

.auth-lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.auth-req-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-req-block h4 {
  margin: 0 0 0.55rem;
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.auth-req-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.65;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.auth-req-list li::marker {
  color: var(--gold-bright);
}

.auth-form .btn-forge-lg + .btn-forge-lg,
.auth-form .btn-forge-lg + .btn-forge-outline {
  margin-top: 0.5rem;
}

.hero-3d-scene {
  text-align: center;
  transform-style: preserve-3d;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50%       { transform: translateY(-8px) rotateX(1.5deg); }
}

.login-title-block {
  position: relative;
  transform: translateZ(60px);
  margin-bottom: 1.2rem;
}

.login-metin {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--gold-soft);
  text-shadow:
    0 0 18px rgba(242, 195, 55, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.35rem;
}

.login-title {
  margin: 0;
  font-family: "Cinzel Decorative", "Times New Roman", serif;
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff4c0 0%, #f2c337 38%, #c97810 72%, #8a5a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  filter: drop-shadow(0 4px 0 rgba(60, 40, 8, 0.85)) drop-shadow(0 0 36px rgba(196, 92, 38, 0.45));
}

.login-subtitle {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--marble);
  margin: 0.35rem 0 0.15rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  opacity: 0.92;
}

.login-mt2 {
  display: block;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.55em;
  margin-top: 0.25rem;
  color: #d4af37;
  text-shadow:
    0 0 20px rgba(242, 195, 55, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-tagline {
  max-width: 62ch;
  margin: 0 auto 1.5rem;
  color: rgba(245, 230, 200, 0.9);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.75;
  transform: translateZ(20px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-actions-center {
  justify-content: center;
  transform: translateZ(30px);
}

/* ── Core Systems ticker — fixed bottom ── */
.core-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: stretch;
  gap: 0;
  height: var(--ticker-h);
  margin: 0;
  border-top: 1px solid var(--line-strong);
  background: rgba(12, 8, 5, 0.94);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(212, 175, 55, 0.12);
  overflow: hidden;
}

.core-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--void);
  background: linear-gradient(135deg, #f2c337 0%, #c97810 55%, #b87333 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.45);
  white-space: nowrap;
}

.core-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}

.core-ticker-viewport::before,
.core-ticker-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.55), transparent);
  z-index: 2;
  pointer-events: none;
}

.core-ticker-viewport::before { left: 0; }
.core-ticker-viewport::after { right: 0; }

.core-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 38s linear infinite;
}

.core-ticker-track:hover {
  animation-play-state: paused;
}

.core-ticker-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.85rem 2rem;
  white-space: nowrap;
}

.ticker-chip {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  color: rgba(245, 230, 200, 0.92);
  letter-spacing: 0.03em;
}

.ticker-chip em {
  display: inline-block;
  margin-right: 0.55rem;
  padding: 0.12rem 0.4rem;
  font-family: "Cinzel", serif;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(196, 92, 38, 0.12);
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.section-head-center {
  justify-content: center;
  text-align: center;
  border-bottom: none;
}

.section-head-center p { margin-left: auto; margin-right: auto; }

/* ── Sections ── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.section-head {
  flex-direction: column;
  align-items: flex-start;
}

.section-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(242, 195, 55, 0.2);
  letter-spacing: 0.06em;
}

.section-head p {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* ── Features (compact 3D cards) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-grid-compact {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  perspective: 900px;
}

.feature-card-3d {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  will-change: transform;
}

.feature-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(145deg, rgba(26, 18, 12, 0.92) 0%, rgba(14, 9, 6, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  clip-path: var(--clip);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 88px;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.feature-card-3d:hover .feature-card-inner {
  border-color: rgba(242, 195, 55, 0.45);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(242, 195, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-icon-sm {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 100, 30, 0.12);
  border: 1px solid rgba(242, 195, 55, 0.35);
  clip-path: var(--clip);
  color: var(--neon-gold);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
}

.feature-card-inner h3 {
  margin: 0 0 0.2rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.feature-card-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* ── Sub-tabs ── */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.sub-tab {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
  margin-bottom: -1px;
}

.sub-tab:hover { color: var(--neon-cyan); }

.sub-tab.is-active {
  color: var(--neon-gold);
  border-bottom-color: var(--neon-gold);
  text-shadow: 0 0 12px rgba(242, 195, 55, 0.3);
}

.sub-panel { display: none; }
.sub-panel.is-active { display: block; animation: panelIn 0.25s ease; }

/* ── Rankings ── */
.table-panel .panel-frame { padding: 0; overflow: hidden; }

.rank-table { width: 100%; border-collapse: collapse; }

.rank-table th,
.rank-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.rank-table th {
  background: rgba(212, 175, 55, 0.06);
  color: var(--neon-cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rank-table tbody tr {
  transition: background 0.15s;
}

.rank-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.04);
}

.rank-table tbody tr:last-child td { border-bottom: none; }

.rank-1 { color: var(--neon-gold); font-weight: 700; text-shadow: 0 0 10px rgba(242, 195, 55, 0.4); }
.rank-2 { color: #c0d8f0; font-weight: 600; }
.rank-3 { color: #cd7f32; font-weight: 600; }

.empire-shinsoo { color: var(--shinsoo); font-weight: 700; text-shadow: 0 0 8px rgba(255, 34, 68, 0.4); }
.empire-chunjo  { color: var(--chunjo);  font-weight: 700; text-shadow: 0 0 8px rgba(242, 195, 55, 0.3); }
.empire-jinno   { color: var(--jinno);   font-weight: 700; text-shadow: 0 0 8px rgba(45, 156, 255, 0.4); }

.panel-actions { margin-top: 0.75rem; text-align: right; }

/* ── World ── */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.zone-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line);
  clip-path: var(--clip);
  filter: saturate(1.15) contrast(1.05);
}

.zone-info h3 {
  margin: 0 0 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.zone-info p {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.zone-card-wide { grid-column: span 1; }

.pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  clip-path: var(--clip);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-gold);
  color: var(--neon-gold);
  background: rgba(242, 195, 55, 0.06);
}

.pill-danger {
  color: var(--ember-soft);
  border-color: rgba(255, 122, 69, 0.4);
  background: rgba(255, 77, 42, 0.08);
}

.pill-legend {
  color: var(--neon-cyan);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.06);
}

/* ── News ── */
.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.news-featured .panel-frame {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(22, 14, 10, 0.7) 0%, rgba(12, 8, 5, 0.95) 100%),
    url("../assets/hero-brand.png") right center / 45% no-repeat;
}

.featured-tag {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  background: rgba(196, 92, 38, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  clip-path: var(--clip);
  color: var(--gold-bright);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.news-featured h3 {
  margin: 0 0 0.4rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.news-featured h3 a { color: var(--text); transition: color 0.2s, text-shadow 0.2s; }
.news-featured h3 a:hover { color: var(--neon-cyan); text-shadow: 0 0 12px rgba(212, 175, 55, 0.4); }
.news-featured p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.88rem; }

.news-list { list-style: none; margin: 0; padding: 0; }

.news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
  transition: background 0.15s;
}

.news-item:hover { background: rgba(212, 175, 55, 0.03); }
.news-item:last-child { border-bottom: none; }
.news-item a { color: var(--text); font-weight: 600; font-size: 0.92rem; transition: color 0.2s; }
.news-item a:hover { color: var(--neon-cyan); }
.news-item > span:last-child { font-family: "Share Tech Mono", monospace; color: var(--text-muted); font-size: 0.75rem; }

.badge {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  clip-path: var(--clip);
  border: 1px solid transparent;
  white-space: nowrap;
  text-transform: uppercase;
}

.badge-new, .badge-media {
  color: var(--neon-cyan);
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
}

.badge-hot, .badge-featured {
  color: var(--ember-soft);
  border-color: rgba(196, 92, 38, 0.4);
  background: rgba(196, 92, 38, 0.12);
}

.badge-shop {
  color: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(196, 92, 38, 0.1);
}

.badge-update {
  color: var(--neon-gold);
  border-color: var(--line-gold);
  background: rgba(242, 195, 55, 0.06);
}

/* ── Download ── */
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.download-cta .cta-inner {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(12, 8, 5, 0.92) 0%, rgba(22, 14, 10, 0.75) 100%),
    url("../assets/season-banner.jpg") center / cover;
}

.download-cta .cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 8, 5, 0.95) 0%, transparent 60%);
  pointer-events: none;
}

.download-cta h2,
.download-cta p,
.download-cta .hero-actions {
  position: relative;
  z-index: 1;
}

.download-cta h2 {
  margin: 0 0 0.6rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--neon-gold);
  letter-spacing: 0.06em;
}

.download-cta p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.download-req h3 {
  margin: 0 0 0.5rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.download-req p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.req-list {
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.9rem;
}

.req-list li::marker { color: var(--neon-cyan); }

/* ── Footer (scrollable, above fixed ticker) ── */
.game-footer {
  position: relative;
  z-index: 50;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: var(--ticker-h);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(18, 12, 8, 0.94);
}

.game-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), var(--neon-gold), var(--bronze), transparent);
  opacity: 0.45;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
  color: var(--text-muted);
}

.footer-brand-col .brand {
  justify-content: flex-start;
}

.footer-brand-col .socials {
  margin-top: 0.35rem;
}

.footer-brand-col .socials a {
  width: 28px;
  height: 28px;
  font-size: 0.58rem;
}

.footer-tagline {
  margin: 1rem 0 0;
  max-width: 36ch;
  font-size: 0.88rem;
  line-height: 1.6;
}

.game-footer h4 {
  margin: 0 0 0.25rem;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.game-footer ul { list-style: none; margin: 0; padding: 0; }
.game-footer li + li { margin-top: 0.35rem; }
.game-footer li a { font-size: 0.82rem; display: inline-block; }
.game-footer a { transition: color 0.2s, text-shadow 0.2s; }
.game-footer a:hover { color: var(--neon-gold); text-shadow: 0 0 8px rgba(242, 195, 55, 0.3); }

.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }

.socials a {
  width: 36px;
  height: 36px;
  clip-path: var(--clip);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--neon-cyan);
  background: rgba(212, 175, 55, 0.04);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.socials a:hover {
  border-color: var(--neon-cyan);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --sidebar-left-w: 148px;
    --sidebar-right-w: min(360px, 42vw);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --sidebar-left-w: 100%;
    --sidebar-right-w: 100%;
    --ticker-h: 40px;
  }

  .site-layout {
    display: block;
    min-height: auto;
  }

  .sidebar-left {
    position: relative;
    width: 100%;
    bottom: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--line-strong);
  }

  .brand-sidebar {
    flex-direction: row;
    text-align: left;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    flex: 1;
  }

  .brand-sidebar .brand-logo-img {
    max-width: 96px;
    max-height: 64px;
  }

  .main-nav { flex: 1 1 100%; }

  .mobile-toggle { display: block; }

  .forge-nav-tabs-vertical {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0.5rem;
  }

  .forge-nav-tabs-vertical.open { display: flex; }

  .nav-tab {
    flex: 1 1 auto;
    flex-direction: row;
    min-height: 2.6rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    justify-content: center;
    padding: 0.55rem 0.65rem;
    font-size: 0.62rem;
    gap: 0.45rem;
  }

  .nav-tab-glyph { font-size: 0.85rem; }

  .nav-tab.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--neon-gold);
  }

  .nav-tab-discord { margin-top: 0; }

  .site-stage { display: none; }

  .sidebar-right {
    position: relative;
    width: 100%;
    bottom: auto;
    min-height: 50vh;
    border-left: none;
  }

  .auth-overlay {
    left: 0;
    right: 0;
    padding: 1rem;
  }

  .server-status { display: none; }
  .hud-updated { display: none; }
  .live-loader { right: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .core-ticker-track { animation-duration: 28s; }
  .ticker-chip { font-size: 0.85rem; }
}

.auth-alerts {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.auth-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.auth-alert-error {
  background: rgba(120, 24, 24, 0.55);
  border: 1px solid rgba(255, 120, 120, 0.45);
  color: #ffd4d4;
}

.auth-alert-ok {
  background: rgba(24, 88, 48, 0.55);
  border: 1px solid rgba(120, 255, 160, 0.35);
  color: #d4ffe4;
}

.auth-alert-info {
  background: rgba(24, 48, 88, 0.45);
  border: 1px solid rgba(120, 180, 255, 0.35);
  color: #d4e8ff;
}

.auth-alerts .alert {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.modern-cms-content {
  color: #e8e2d6;
}

.modern-cms-content .container {
  max-width: 100%;
  padding: 0;
}

.modern-cms-content .page-hd {
  display: none;
}

.modern-cms-content .table {
  width: 100%;
  color: #e8e2d6;
  background: rgba(8, 8, 12, 0.55);
}

.modern-cms-content .table th,
.modern-cms-content .table td {
  border-color: rgba(212, 175, 55, 0.18);
  vertical-align: middle;
}

.modern-cms-content .btn-primary {
  background: linear-gradient(180deg, #c9a227, #8a6b12);
  border: 1px solid rgba(242, 195, 55, 0.45);
  color: #1a1205;
}

.modern-cms-content .alert {
  border-radius: 6px;
}

.modern-cms-content .form-control,
.modern-cms-content select.form-control {
  background: rgba(8, 8, 12, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #f0ebe0;
  border-radius: 8px;
}

.modern-cms-content .form-control:focus {
  background: rgba(12, 12, 18, 0.9);
  border-color: rgba(242, 195, 55, 0.55);
  box-shadow: 0 0 0 2px rgba(242, 195, 55, 0.12);
  color: #fff8e8;
}

.modern-cms-content .btn-outline-danger,
.modern-cms-content .btn-danger {
  border-color: rgba(200, 72, 48, 0.55);
  color: #ffb8a8;
}

.modern-cms-content .list-group-item {
  background: rgba(8, 8, 12, 0.55);
  border-color: rgba(212, 175, 55, 0.18);
  color: #e8e2d6;
}

.modern-cms-content .list-group-item-action:hover {
  background: rgba(242, 195, 55, 0.08);
  color: #fff4c7;
}

.modern-cms-content .modal-content {
  background: rgba(10, 10, 14, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #e8e2d6;
}

.modern-cms-content .page-hd {
  display: none;
}

.modern-cms-content a {
  color: #f2c337;
}

.modern-cms-content a:hover {
  color: #ffe08a;
}

.modern-cms-content .account-summary-grid {
  margin-top: 0.15rem;
}

body.is-account-page #panel-cms {
  display: block !important;
}

body.is-account-page .game-main > .panel-shell > .game-panel:not(#panel-cms) {
  display: none !important;
}

body.is-account-page #panel-cms .modern-cms-content,
body.is-account-page #panel-cms .account-summary-grid-native {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.is-account-page #panel-cms .account-summary-grid-native {
  margin-bottom: 1rem;
}

.account-cms-shell {
  clip-path: none;
}