:root {
  --bg: #060B18;
  --bg-deep: #040812;
  --surface: rgba(14, 24, 48, 0.76);
  --surface-soft: rgba(10, 18, 36, 0.62);
  --surface-hover: rgba(20, 35, 68, 0.90);
  --accent: #38bdf8;
  --accent-rgb: 56,189,248;
  --crimson: #e63950;
  --gold: #fde68a;
  --emerald: #34d399;
  --discord: #5865f2;
  --text: #f4f8ff;
  --text-soft: #cbd5e1;
  --muted: #7c93b8;
  --border: rgba(56, 189, 248, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font: 'Bahnschrift', 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
  --mono: 'Consolas', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(920px 540px at 78% 12%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    radial-gradient(660px 460px at 12% 10%, rgba(230, 57, 80, 0.09), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffffff; }
button, input, textarea, select { font: inherit; color: inherit; }

.hidden { display: none !important; }
.small { font-size: 13px; }
.soft { color: var(--text-soft); }
.muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

.px-ico {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex-shrink: 0;
  object-fit: contain;
}
.px-14 { width: 14px; height: 14px; }
.px-15 { width: 15px; height: 15px; }
.px-16 { width: 16px; height: 16px; }
.px-18 { width: 18px; height: 18px; }
.px-20 { width: 20px; height: 20px; }
.px-22 { width: 22px; height: 22px; }
.px-24 { width: 24px; height: 24px; }
.px-26 { width: 26px; height: 26px; }
.px-28 { width: 28px; height: 28px; }
.px-32 { width: 32px; height: 32px; }

.ui-svg { width: 16px; height: 16px; flex-shrink: 0; }

.eden-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 36px;
}

.top-energy {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--crimson) 22%, var(--accent) 55%, var(--gold) 100%);
  position: relative;
  z-index: 60;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 31, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  flex-shrink: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}

.main-nav .tab-btn,
.tab-dock .tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  color: #95aad0;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.main-nav .tab-btn:hover,
.tab-dock .tab-btn:hover {
  color: #ffffff;
}

.main-nav .tab-btn.active,
.tab-dock .tab-btn.active {
  color: #ffffff;
}

.main-nav .tab-btn.active::after,
.tab-dock .tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.75);
}

.tab-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--discord);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  transition: background 0.15s ease, transform 0.12s ease;
}
.discord-pill:hover {
  background: #6774ff;
  color: #ffffff;
  transform: translateY(-1px);
}

.mc-btn.mobile-menu-btn { display: none; }
.mobile-drawer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 18px;
  background: rgba(10, 16, 31, 0.96);
  border-top: 1px solid var(--border);
}

.maintenance-banner {
  background: rgba(230, 57, 80, 0.14);
  border-bottom: 1px solid rgba(230, 57, 80, 0.35);
  color: #ffd5dc;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 600;
}
.maintenance-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-root {
  flex: 1;
  padding: 28px 0 56px;
}

.page-loading {
  padding: 90px 0;
}
.loading-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-soft);
}

/* ---------- Studio Interactive 3D Parallax Hero Stage ---------- */
.hero-parallax {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.72), 0 0 64px rgba(56, 189, 248, 0.10);
  margin: 8px 0 24px;
  min-height: 520px;
  perspective: 1400px;
}
.hp-bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: brightness(0.92) saturate(1.16) blur(1px);
  pointer-events: none;
  will-change: transform;
}
.hp-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 11, 24, 0.84) 0%, rgba(6, 11, 24, 0.42) 52%, rgba(6, 11, 24, 0.28) 100%),
    linear-gradient(180deg, rgba(6, 11, 24, 0.26) 0%, transparent 32%, transparent 72%, rgba(6, 11, 24, 0.84) 100%);
}
.hp-bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(11px);
  z-index: 6;
  pointer-events: none;
  will-change: transform;
}
.hp-b1 { left: -24px; top: -20px; width: 120px; height: 120px; background: rgba(125, 211, 252, 0.20); }
.hp-b2 { right: -26px; top: 8%; width: 136px; height: 136px; background: rgba(253, 230, 138, 0.16); }
.hp-b3 { left: 44%; bottom: -28px; width: 110px; height: 110px; background: rgba(196, 181, 253, 0.18); }

.hp-inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  align-items: center;
  gap: 24px;
  padding: 38px 44px;
  min-height: 520px;
}
.hp-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}
.hp-meta-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.88);
}
.hp-live { display: inline-flex; align-items: center; gap: 8px; color: #6ee7b7; }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.hp-gold { color: #fde68a; }
.hp-cyan { color: #bae6fd; }
.hp-sep { color: rgba(255, 255, 255, 0.35); }
.hp-logo-title {
  width: min(390px, 100%);
  height: auto;
  filter: drop-shadow(16px 24px 40px rgba(0, 0, 0, 0.85));
}
.hp-headline {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.86);
}
.hp-headline span { color: #7dd3fc; }
.hp-feats {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.48;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
}
.hp-feats b { color: #fde68a; }

.hp-cards {
  position: relative;
  height: 440px;
  transform-style: preserve-3d;
}
.hp-layer {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}
.hp-quests {
  left: 0;
  top: 8px;
  width: 66%;
  z-index: 2;
  filter: brightness(0.95) drop-shadow(14px 24px 40px rgba(0, 0, 0, 0.82));
}
.hp-trainer {
  left: 7%;
  bottom: 6px;
  width: 62%;
  z-index: 4;
  filter: drop-shadow(22px 32px 52px rgba(0, 0, 0, 0.88));
}
.hp-cosmetics {
  right: 0;
  top: 18px;
  width: 34%;
  height: 392px;
  z-index: 5;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.78);
  box-shadow: 26px 38px 66px rgba(0, 0, 0, 0.90), 0 0 36px rgba(245, 158, 11, 0.28);
}
.hp-cosmetics img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* Showcase strip of pub slides with 3D tilt */
.pub-showcase {
  margin-top: 28px;
}
.pub-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pub-tilt-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0b1428;
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pub-tilt-card:hover {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.82), 0 0 28px rgba(56, 189, 248, 0.22);
}
.pub-tilt-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0;
}

.btn-chamfer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.btn-chamfer:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn-cyan {
  background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
  color: #05131d;
}
.btn-cyan:hover { color: #05131d; }
.btn-dark {
  background: #16213b;
  color: #ebf3ff;
}
.btn-dark:hover { color: #ffffff; }
.btn-discord-c {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #ffffff;
}
.btn-discord-c:hover { color: #ffffff; }

.rank-peek {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 2px;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 4px 0;
  text-align: left;
  transition: transform 0.14s ease;
}
.rank-chip:hover { transform: translateY(-1px); }
.rank-chip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.rank-chip span {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}
.rank-chip strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--gold);
}

/* ---------- Home Lower Bands ---------- */
.steps-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.step-card {
  background: linear-gradient(180deg, rgba(20, 30, 54, 0.72) 0%, rgba(13, 20, 38, 0.64) 100%);
  padding: 20px 22px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.14s ease;
}
.step-card:hover {
  background: linear-gradient(180deg, rgba(27, 41, 74, 0.85) 0%, rgba(16, 25, 48, 0.8) 100%);
  transform: translateY(-2px);
}

.step-badge {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.step-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 3px;
}
.step-card h3 {
  margin: 0 0 3px;
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
}
.step-card p {
  margin: 0;
  font-size: 13px;
  color: #95a9cc;
  line-height: 1.4;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.col-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.col-hdr h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}
.col-hdr-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.col-hdr-link:hover { color: #ffffff; }

.news-clean {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.news-clean-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 15px 17px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.14s ease;
}
.news-clean-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.news-clean-card .d {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.news-clean-card .t {
  font-size: 14px;
  font-weight: 700;
  color: #f0f5ff;
  line-height: 1.35;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.g-tile {
  position: relative;
  height: 102px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #0d1629;
}
.g-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.g-tile:hover img { transform: scale(1.05); }
.g-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 12px 8px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 20, 0.92) 100%);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

/* ---------- Clean Subpage Containers & Cards (ZERO 9-slice stacked frames) ---------- */
.mc-panel,
.mc-panel-rotom {
  background: rgba(14, 22, 42, 0.56);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.mc-panel-rotom {
  border-top: 2px solid var(--crimson);
}

.mc-inset {
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
}

.cyber-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(72, 202, 228, 0.11);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.14s ease;
}
.cyber-card:hover {
  background: var(--surface-hover);
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}
.cyber-card.crimson-accent {
  border-color: rgba(230, 57, 80, 0.35);
}

.cyber-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(230, 57, 80, 0.35), rgba(var(--accent-rgb), 0.25), transparent);
  margin: 4px 0;
}
.cyber-divider.cyan {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.35), transparent);
}

.mc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}
.mc-title.crimson {
  border-bottom-color: rgba(230, 57, 80, 0.22);
}

.mc-slot,
.mc-bigslot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}
.mc-slot { width: 34px; height: 34px; }
.mc-bigslot { width: 46px; height: 46px; }

.panel-pad { padding: 24px; }
.panel-pad-sm { padding: 14px 16px; }

/* ---------- Clean Buttons & Form Controls ---------- */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #16213b;
  color: #eef4ff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}
.mc-btn:hover {
  background: #1d2c4f;
  border-color: rgba(var(--accent-rgb), 0.32);
  color: #ffffff;
}
.mc-btn.active {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: var(--accent);
  color: #ffffff;
}

.mc-btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; }
.mc-btn-sm { padding: 7px 13px; font-size: 13px; }
.mc-btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 7px; }

.mc-btn-primary,
.mc-btn-emerald {
  background: linear-gradient(135deg, var(--accent) 0%, #249ec2 100%);
  border-color: transparent;
  color: #05131d;
  font-weight: 800;
}
.mc-btn-primary:hover,
.mc-btn-emerald:hover {
  color: #05131d;
  filter: brightness(1.08);
  border-color: transparent;
}

.mc-btn-gold {
  background: linear-gradient(135deg, #ffd86b 0%, #e0a726 100%);
  border-color: transparent;
  color: #1c1303;
  font-weight: 800;
}
.mc-btn-gold:hover { color: #1c1303; filter: brightness(1.06); }

.mc-btn-danger {
  background: rgba(230, 57, 80, 0.16);
  border-color: rgba(230, 57, 80, 0.36);
  color: #ff99a8;
}
.mc-btn-danger:hover {
  background: rgba(230, 57, 80, 0.28);
  color: #ffffff;
}

.mc-btn-discord {
  background: var(--discord);
  border-color: transparent;
  color: #ffffff;
  font-weight: 800;
}
.mc-btn-discord:hover { background: #6774ff; color: #ffffff; }

.mc-input,
.mc-textarea {
  width: 100%;
  background: rgba(7, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 10px 13px;
  color: #f4f8ff;
  outline: none;
  transition: border-color 0.15s ease;
}
.mc-input:focus,
.mc-textarea:focus {
  border-color: var(--accent);
}
.mc-textarea { min-height: 110px; resize: vertical; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 6px;
}

/* ---------- Utilities & Grids ---------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.row-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.center-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.banner-strip {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 28px 32px;
  margin-bottom: 22px;
  background: #0e182e;
}
.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.banner-content {
  position: relative;
  z-index: 2;
}

.mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.news-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}

.news-card { cursor: pointer; }
.news-thumb {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-card {
  padding: 12px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.15s ease;
}
.gallery-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.gal-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 9px;
}

.quest-track { display: flex; flex-direction: column; gap: 12px; }
.quest-node { display: flex; align-items: flex-start; gap: 14px; }
.step-num { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 2px; }

.faq-item { padding: 13px 16px; cursor: pointer; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.faq-a { margin-top: 8px; color: var(--text-soft); font-size: 13.5px; }

/* ---------- Wiki ---------- */
.wiki-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  align-items: start;
}
.wiki-sidebar { padding: 18px; position: sticky; top: 94px; }
.wiki-nav-group { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.wiki-group-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0 4px 4px; }
.wiki-nav-btn { justify-content: flex-start; text-align: left; }
.wiki-article { padding: 26px 30px; min-height: 480px; }

.md-body h2 { margin: 18px 0 8px; font-size: 18px; color: #ffffff; }
.md-body h3 { margin: 14px 0 6px; font-size: 15.5px; color: var(--accent); }
.md-body p { margin: 8px 0; color: var(--text-soft); }
.md-body ul, .md-body ol { padding-left: 20px; color: var(--text-soft); }
.md-body code { background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 5px; font-family: var(--mono); font-size: 13px; }

/* ---------- Live Tablist & GTS ---------- */
.tablist-row {
  display: grid;
  grid-template-columns: 44px 36px 1.4fr 1fr 0.7fr 0.9fr;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}
.tablist-row:hover { background: rgba(255, 255, 255, 0.03); }
.tablist-head { font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); cursor: default; }
.tablist-head:hover { background: transparent; }
.player-head { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; }

.gts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gts-iv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.gts-iv-box { padding: 6px 8px; border-radius: 8px; }
.gts-iv-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; }
.gts-moves-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 4px; }
.gts-move-pill { background: rgba(255, 255, 255, 0.05); border-radius: 6px; padding: 4px 8px; font-size: 12px; text-align: center; }

/* ---------- Bars, Tables & Leaderboards ---------- */
.mc-bar {
  position: relative;
  height: 22px;
  background: rgba(6, 10, 20, 0.75);
  border-radius: 999px;
  overflow: hidden;
}
.mc-bar-sm { height: 14px; }
.mc-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.mc-bar-fill.emerald { background: var(--emerald); }
.mc-bar-fill.gold { background: var(--gold); }
.mc-bar-fill.crimson { background: var(--crimson); }
.mc-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px #000000, 0 0 4px rgba(0, 0, 0, 0.95);
}

.podium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.podium-card { text-align: center; align-items: center; }

.mc-table-wrap { overflow-x: auto; }
.mc-table { width: 100%; border-collapse: collapse; }
.mc-table th,
.mc-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.mc-table th { font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.mc-table tr:hover td { background: rgba(255, 255, 255, 0.025); }

.ticket-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ticket-cat-btn { flex-direction: column; align-items: flex-start; text-align: left; padding: 12px; }

.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.preset-btn { justify-content: flex-start; }
.preset-swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.switch-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; }
.kpi-val { font-size: 20px; font-weight: 900; color: var(--accent); }

/* ---------- Minimalist Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(7, 12, 24, 0.65);
  padding: 24px 0 20px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}

.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-logo { width: 28px; height: 28px; object-fit: contain; }
.footer-title { font-size: 17px; font-weight: 900; color: #ffffff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
}
.footer-links a { color: #8da2c7; font-weight: 600; }
.footer-links a:hover { color: #ffffff; }

.footer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}
.footer-admin-link:hover { color: var(--text); }

/* ---------- Modals, Lightbox & Toasts ---------- */
.modal-backdrop,
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 9, 18, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal-box {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #0f172b;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-title-wrap { display: flex; align-items: center; gap: 10px; }
.modal-title-wrap h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; overflow-y: auto; }

.lb-frame {
  max-width: 1060px;
  width: 100%;
  background: #0f172b;
  border: 1px solid var(--border);
  padding: 16px;
}
.lb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lb-img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 8px; background: #070b15; }
.lb-desc { margin: 10px 0 0; }
.lb-nav { margin: 0 10px; }

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #131e38;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  font-size: 13.5px;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  .main-nav { gap: 12px; }
  .main-nav .tab-btn { font-size: 13px; }
  .hp-inner { grid-template-columns: 1fr; padding: 30px; }
  .hp-cards { height: 360px; }
  .pub-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .mc-btn.mobile-menu-btn { display: inline-flex; }
  .steps-band, .bottom-grid, .grid-3, .gallery-grid, .gts-grid, .podium-grid, .wiki-layout {
    grid-template-columns: 1fr;
  }
  .wiki-sidebar { position: static; }
}

@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .grid-2, .news-clean, .gallery-strip, .pub-showcase-grid { grid-template-columns: 1fr; }
  .hp-cards { display: none; }
  .tablist-row { grid-template-columns: 40px 32px 1fr 1fr; }
  .hide-tab { display: none; }
}
