/* Pummel Tale — Dark Fantasy MMORPG Server */

:root {
  --bg: #07060a;
  --bg-2: #0d0b13;
  --bg-3: #14111c;
  --panel: rgba(20, 17, 28, 0.72);
  --panel-edge: rgba(200, 153, 90, 0.22);
  --panel-edge-soft: rgba(200, 153, 90, 0.08);
  --ink: #e9e3d4;
  --ink-dim: #a7a092;
  --ink-mute: #6a6457;

  --gold: #c8995a;
  --gold-bright: #f0c97a;
  --gold-deep: #7a5a2e;
  --blood: #a31d22;
  --blood-bright: #d63a3f;
  --blood-deep: #4a0e10;
  --arcane: #5b8fd4;
  --arcane-bright: #9bc1f5;
  --arcane-deep: #1f3a66;

  --rare: #6aa6ff;
  --epic: #c772ff;
  --legend: #ffb648;

  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Menlo", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Global page atmosphere ---------- */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(163, 29, 34, 0.18), transparent 60%),
    radial-gradient(900px 700px at 10% 30%, rgba(91, 143, 212, 0.10), transparent 65%),
    radial-gradient(1000px 1000px at 50% 110%, rgba(200, 153, 90, 0.10), transparent 60%),
    linear-gradient(180deg, #07060a 0%, #0a0810 100%);
}

.bg-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.5;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 2;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 14px 40px;
  background: linear-gradient(180deg, rgba(7,6,10,0.92) 0%, rgba(7,6,10,0.7) 80%, rgba(7,6,10,0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,153,90,0.10);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
}

.brand-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(200,153,90,0.35)); }

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-transform: uppercase;
}

.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-family: var(--font-display);
  transition: color 180ms ease;
}

.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--gold-bright); }

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 220ms ease, left 220ms ease;
}
.nav a:hover::after, .nav a.active::after { width: 70%; left: 15%; }

.header-spacer { flex: 1; }

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

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(91,143,212,0.10);
  border: 1px solid rgba(91,143,212,0.30);
  color: var(--arcane-bright);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 200ms ease;
}
.discord-btn:hover {
  background: rgba(91,143,212,0.18);
  box-shadow: 0 0 24px rgba(91,143,212,0.30);
}

.login-btn {
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--gold-deep);
  background: linear-gradient(180deg, rgba(200,153,90,0.10), rgba(200,153,90,0.02));
  border-radius: 3px;
  transition: all 200ms ease;
}
.login-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(200,153,90,0.35), inset 0 0 16px rgba(200,153,90,0.10);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn-primary {
  color: #1a0608;
  background: linear-gradient(180deg, #e34a4f 0%, #a31d22 55%, #6a1115 100%);
  border: 1px solid #f06065;
  box-shadow:
    0 0 0 1px rgba(255,90,95,0.15),
    0 0 30px rgba(214,58,63,0.40),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -8px 14px rgba(0,0,0,0.35);
  color: #fff5e8;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,90,95,0.25),
    0 0 50px rgba(214,58,63,0.55),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -8px 14px rgba(0,0,0,0.4);
}

.btn-ghost {
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(200,153,90,0.08), rgba(200,153,90,0.02));
  border: 1px solid var(--gold-deep);
}
.btn-ghost:hover {
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(200,153,90,0.30), inset 0 0 20px rgba(200,153,90,0.08);
}

.btn .glint {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.btn .glint::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: skewX(-20deg);
  animation: glint 5s infinite;
}
@keyframes glint {
  0%, 80% { left: -60%; }
  100% { left: 140%; }
}

/* ---------- Section base ---------- */
.section {
  position: relative;
  padding: 110px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3d6 0%, #c8995a 60%, #7a5a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 12px;
}
.section-head p {
  color: var(--ink-dim);
  margin-top: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 0;
  color: var(--gold);
}
.ornament .line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.ornament svg { width: 14px; height: 14px; filter: drop-shadow(0 0 6px rgba(200,153,90,0.5)); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 40px 80px;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(450px 380px at 70% 50%, rgba(163,29,34,0.30), transparent 70%),
    radial-gradient(380px 320px at 30% 80%, rgba(91,143,212,0.15), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.hero-copy { max-width: 600px; position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(200,153,90,0.30);
  background: rgba(200,153,90,0.05);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-tag .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4cd97a;
  box-shadow: 0 0 8px #4cd97a;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 22px 0 14px;
}
.hero h1 .red {
  background: linear-gradient(180deg, #ff8a8e 0%, #d63a3f 45%, #6a1115 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(214,58,63,0.35));
}
.hero h1 .gold {
  background: linear-gradient(180deg, #fff3d6 0%, #c8995a 55%, #5a3f1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0 0 24px;
}

.hero-desc {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(200,153,90,0.18);
  border-bottom: 1px solid rgba(200,153,90,0.18);
}
.hero-stat {
  padding: 18px 16px;
  border-right: 1px solid rgba(200,153,90,0.10);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-stat .value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-bright);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.hero-stat .value.online {
  color: #6dd99a;
}

/* Hero character side */
.hero-art {
  position: relative;
  height: 78vh;
  min-height: 540px;
  border: 1px solid var(--panel-edge);
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(91,143,212,0.18), transparent 70%),
    linear-gradient(180deg, rgba(20,17,28,0.6), rgba(7,6,10,0.85));
  overflow: hidden;
  border-radius: 2px;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.hero-art .runes {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200,153,90,0.20);
  pointer-events: none;
}
.hero-art .runes::before, .hero-art .runes::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
}
.hero-art .runes::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-art .runes::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero-art .corner-tl, .hero-art .corner-tr, .hero-art .corner-bl, .hero-art .corner-br {
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
}
.hero-art .corner-tr { top: 17px; right: 17px; border-left: none; border-bottom: none; }
.hero-art .corner-bl { bottom: 17px; left: 17px; border-right: none; border-top: none; }

.character {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 40px;
}

.character .silhouette {
  width: 78%;
  max-width: 480px;
  aspect-ratio: 3/4;
  position: relative;
  background:
    linear-gradient(180deg, rgba(91,143,212,0.04) 0%, rgba(163,29,34,0.06) 50%, rgba(0,0,0,0.4) 100%);
  border: 1px dashed rgba(200,153,90,0.22);
  display: grid;
  place-items: center;
  text-align: center;
}

.character .silhouette::before {
  content: "";
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 30%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(163,29,34,0.30), transparent 75%);
  filter: blur(20px);
}

.character .silhouette-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.character .silhouette-label strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
}

.float-card {
  position: absolute;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 2px;
  min-width: 180px;
  font-size: 12px;
  animation: float 6s ease-in-out infinite;
}
.float-card.tl { top: 60px; left: 28px; animation-delay: 0s; }
.float-card.br { bottom: 90px; right: 28px; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-card .fc-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.float-card .fc-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}
.float-card .fc-row {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.float-card .fc-row svg { width: 14px; height: 14px; }

.ping-bars {
  display: inline-flex; align-items: flex-end; gap: 2px;
}
.ping-bars span {
  width: 3px;
  background: var(--gold);
  display: inline-block;
}
.ping-bars span:nth-child(1) { height: 4px; }
.ping-bars span:nth-child(2) { height: 7px; }
.ping-bars span:nth-child(3) { height: 10px; }
.ping-bars span:nth-child(4) { height: 13px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 26px 22px 22px;
  background:
    linear-gradient(180deg, rgba(20,17,28,0.85), rgba(13,11,19,0.85));
  border: 1px solid var(--panel-edge-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(200,153,90,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,153,90,0.35);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6), 0 0 40px rgba(200,153,90,0.10);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200,153,90,0.40);
  border-radius: 2px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  position: relative;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(200,153,90,0.18), transparent 70%);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--gold-bright); }

.feature-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(200,153,90,0.4), transparent 60%);
  filter: blur(8px);
  z-index: -1;
  opacity: 0.5;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature-card p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
}

.feature-card .feature-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.2em;
}

/* ---------- Mix System ---------- */
.mix-section { padding-top: 60px; }

.mix-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  border: 1px solid rgba(200,153,90,0.20);
  border-radius: 2px;
  background: rgba(20,17,28,0.55);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 4px;
}

.mix-tab {
  padding: 12px 26px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-radius: 2px;
  transition: all 200ms ease;
  position: relative;
}

.mix-tab.active {
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(200,153,90,0.18), rgba(200,153,90,0.05));
  box-shadow: inset 0 0 18px rgba(200,153,90,0.15);
}

.mix-tab:hover:not(.active) { color: var(--ink); }

.mix-stage {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.mix-preview {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(200,153,90,0.10), transparent 70%),
    linear-gradient(180deg, rgba(20,17,28,0.8), rgba(7,6,10,0.95));
  border: 1px solid var(--panel-edge);
  overflow: hidden;
}

.mix-preview .corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); }
.mix-preview .corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.mix-preview .corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.mix-preview .corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.mix-preview .corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.mix-orb {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(200,153,90,0.15) 35%, transparent 70%);
  filter: blur(2px);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mix-orb::before, .mix-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(200,153,90,0.25);
}
.mix-orb::after { inset: 14%; border-style: dotted; }

.mix-item-display {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.mix-item-card {
  width: 140px;
  aspect-ratio: 3/4;
  border: 1px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(200,153,90,0.12), rgba(7,6,10,0.7));
  display: grid;
  place-items: center;
  position: relative;
  padding: 12px;
  text-align: center;
  box-shadow:
    0 0 30px rgba(200,153,90,0.25),
    inset 0 0 30px rgba(200,153,90,0.10);
}
.mix-item-card.legend { border-color: var(--legend); box-shadow: 0 0 40px rgba(255,182,72,0.45), inset 0 0 30px rgba(255,182,72,0.12); }
.mix-item-card.epic { border-color: var(--epic); box-shadow: 0 0 40px rgba(199,114,255,0.40), inset 0 0 30px rgba(199,114,255,0.10); }
.mix-item-card.rare { border-color: var(--rare); box-shadow: 0 0 30px rgba(106,166,255,0.35), inset 0 0 20px rgba(106,166,255,0.10); }

.mix-item-card .rune-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.mix-item-card .rune-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px currentColor); }

.mix-item-card .item-tier {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: currentColor;
  text-transform: uppercase;
}
.mix-item-card .item-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 6px;
}

.mix-preview-label {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.mix-preview-stats {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.16em;
}
.mix-preview-stats b { color: var(--gold-bright); font-weight: 400; }

/* Mix recipe */
.mix-recipe { display: flex; flex-direction: column; gap: 16px; }

.mix-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.mix-recipe h3 {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff3d6 0%, #c8995a 60%, #7a5a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mix-recipe-desc {
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.mix-success {
  margin-top: 6px;
  padding: 18px 20px;
  border: 1px solid var(--panel-edge);
  background: rgba(20,17,28,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mix-success-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mix-success-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.mix-success-value {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.success-bar {
  position: relative;
  height: 6px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(200,153,90,0.20);
  overflow: hidden;
}
.success-bar .fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #6a1115 0%, #d63a3f 30%, #c8995a 60%, #f0c97a 100%);
  transition: width 600ms ease;
  box-shadow: 0 0 12px rgba(200,153,90,0.55);
}

.mix-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.mix-slot {
  aspect-ratio: 1;
  border: 1px solid rgba(200,153,90,0.25);
  background: rgba(7,6,10,0.7);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: all 200ms ease;
}
.mix-slot:hover {
  border-color: var(--gold);
  box-shadow: inset 0 0 20px rgba(200,153,90,0.18);
}
.mix-slot.active {
  border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(200,153,90,0.30), inset 0 0 18px rgba(200,153,90,0.18);
}
.mix-slot svg { width: 26px; height: 26px; color: var(--gold); }
.mix-slot .slot-label {
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.mix-rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.mix-reward {
  padding: 12px;
  border: 1px solid rgba(200,153,90,0.15);
  background: rgba(7,6,10,0.5);
}
.mix-reward .r-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.26em; color: var(--ink-mute); text-transform: uppercase; }
.mix-reward .r-value { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-top: 6px; letter-spacing: 0.06em; }
.mix-reward .r-value.legend { color: var(--legend); }
.mix-reward .r-value.epic { color: var(--epic); }
.mix-reward .r-value.rare { color: var(--rare); }

/* ---------- Ranking ---------- */
.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.rank-tab {
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid rgba(200,153,90,0.18);
  border-radius: 2px;
  transition: all 220ms ease;
}
.rank-tab.active {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(200,153,90,0.15), rgba(200,153,90,0.02));
  box-shadow: 0 0 18px rgba(200,153,90,0.20);
}
.rank-tab:hover:not(.active) { color: var(--ink); }

.rank-table {
  border: 1px solid var(--panel-edge);
  background: rgba(13,11,19,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.rank-podium {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 14px;
  padding: 28px;
  border-bottom: 1px solid var(--panel-edge-soft);
  background: radial-gradient(80% 80% at 50% 0%, rgba(200,153,90,0.10), transparent 70%);
}

.podium-card {
  position: relative;
  padding: 20px 16px;
  border: 1px solid;
  text-align: center;
  background: linear-gradient(180deg, rgba(20,17,28,0.8), rgba(7,6,10,0.95));
  transition: transform 240ms ease;
}
.podium-card:hover { transform: translateY(-4px); }

.podium-card.gold { border-color: var(--legend); box-shadow: 0 0 30px rgba(255,182,72,0.20), inset 0 0 30px rgba(255,182,72,0.08); }
.podium-card.silver { border-color: #b0b0b0; box-shadow: 0 0 24px rgba(180,180,180,0.20); }
.podium-card.bronze { border-color: #b07a3d; box-shadow: 0 0 24px rgba(176,122,61,0.18); }

.podium-rank {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0;
  color: #0a070a;
  background: linear-gradient(180deg, #fff, #888);
  border: 1px solid rgba(0,0,0,0.4);
}
.podium-card.gold .podium-rank { background: linear-gradient(180deg, #ffe48a, #b88420); color: #1a0608; }
.podium-card.silver .podium-rank { background: linear-gradient(180deg, #f0f0f0, #888); }
.podium-card.bronze .podium-rank { background: linear-gradient(180deg, #d99a5a, #6e4520); color: #1a0608; }

.podium-avatar {
  width: 56px;
  height: 56px;
  margin: 6px auto 12px;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 30%, rgba(200,153,90,0.25), rgba(7,6,10,1));
  border: 1px solid var(--gold-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-bright);
}

.podium-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.podium-class {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 4px;
}
.podium-meta { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.podium-meta div { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); }
.podium-meta b { color: var(--gold-bright); font-weight: 400; font-family: var(--font-display); }

.rank-list { padding: 6px 0; }
.rank-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 100px 100px 100px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--panel-edge-soft);
  transition: background 200ms ease;
}
.rank-row:hover { background: rgba(200,153,90,0.04); }
.rank-row:last-child { border-bottom: none; }
.rank-row .pos {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.rank-row .who { display: flex; align-items: center; gap: 12px; }
.rank-row .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 30%, rgba(200,153,90,0.30), rgba(7,6,10,1));
  border: 1px solid var(--gold-deep);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold-bright);
}
.rank-row .name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
}
.rank-row .class { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); letter-spacing: 0.18em; text-transform: uppercase; }
.rank-row .num { font-family: var(--font-display); font-size: 14px; color: var(--gold-bright); letter-spacing: 0.06em; }
.rank-row .num.muted { color: var(--ink-dim); }

.rank-head {
  display: grid;
  grid-template-columns: 60px 1fr 140px 100px 100px 100px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--panel-edge);
  background: rgba(7,6,10,0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Download ---------- */
.download-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.download-main {
  position: relative;
  padding: 40px;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(163,29,34,0.18), transparent 60%),
    linear-gradient(135deg, rgba(20,17,28,0.85), rgba(13,11,19,0.85));
  border: 1px solid var(--panel-edge);
  overflow: hidden;
}

.download-main::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(200,153,90,0.10), transparent 60%);
  pointer-events: none;
}

.download-main h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3d6 0%, #c8995a 60%, #7a5a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.download-main p { color: var(--ink-dim); max-width: 480px; margin-bottom: 24px; }

.download-options { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.download-version {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(200,153,90,0.15);
  background: rgba(7,6,10,0.5);
  margin-top: 14px;
}
.download-version .v-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.28em; text-transform: uppercase; }
.download-version .v-version { font-family: var(--font-display); color: var(--gold-bright); font-size: 14px; letter-spacing: 0.16em; }
.download-version .v-size { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); letter-spacing: 0.18em; }

.download-side {
  display: flex; flex-direction: column; gap: 18px;
}

.download-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(20,17,28,0.78), rgba(13,11,19,0.78));
  border: 1px solid var(--panel-edge-soft);
  flex: 1;
}
.download-card h4 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.req-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.req-list li { display: flex; gap: 12px; font-size: 13px; color: var(--ink-dim); }
.req-list li span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.22em;
  width: 70px;
  text-transform: uppercase;
}
.req-list li span:last-child { color: var(--ink); }

.tutorial-steps { display: flex; flex-direction: column; gap: 10px; }
.tutorial-step {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px;
  color: var(--ink-dim);
}
.tutorial-step .num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--gold-deep);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold-bright);
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}

.news-card {
  position: relative;
  border: 1px solid var(--panel-edge-soft);
  background: rgba(13,11,19,0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,153,90,0.30);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.6), 0 0 30px rgba(200,153,90,0.08);
}

.news-card.featured { grid-row: span 2; }

.news-img {
  position: relative;
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(135deg, rgba(200,153,90,0.04) 0 8px, rgba(7,6,10,0.6) 8px 18px),
    linear-gradient(180deg, rgba(20,17,28,0.6), rgba(7,6,10,0.95));
  border-bottom: 1px solid var(--panel-edge-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.news-card.featured .news-img { aspect-ratio: 16/9; }

.news-img-placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  text-align: center;
}
.news-img-placeholder strong { display: block; color: var(--gold); margin-bottom: 4px; font-family: var(--font-display); letter-spacing: 0.3em; }

.news-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(7,6,10,0.85);
  border: 1px solid rgba(200,153,90,0.30);
  color: var(--gold);
}
.news-cat.update { color: var(--arcane-bright); border-color: rgba(91,143,212,0.35); }
.news-cat.event { color: var(--legend); border-color: rgba(255,182,72,0.35); }
.news-cat.patch { color: #6dd99a; border-color: rgba(109,217,154,0.30); }

.news-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.news-date { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.26em; text-transform: uppercase; }
.news-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
}
.news-card.featured h4 { font-size: 24px; }
.news-card p { color: var(--ink-dim); font-size: 13px; line-height: 1.6; }
.news-more { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.news-more:hover { color: var(--gold-bright); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 80px;
  padding: 60px 40px 30px;
  border-top: 1px solid var(--panel-edge);
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(200,153,90,0.10), transparent 70%),
    linear-gradient(180deg, rgba(7,6,10,0), rgba(7,6,10,0.95));
}

.footer-inner { max-width: 1440px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h5 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: var(--ink-dim);
  transition: color 180ms ease;
}
.footer-links a:hover { color: var(--gold-bright); }

.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--ink-dim); font-size: 13px; line-height: 1.7; margin-bottom: 18px; }

.socials { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px;
  border: 1px solid rgba(200,153,90,0.20);
  display: grid; place-items: center;
  color: var(--ink-dim);
  transition: all 200ms ease;
}
.social-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(200,153,90,0.30);
}
.social-link svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-edge-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Section divider ornament ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 30px auto 0;
  max-width: 900px;
}
.divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.divider svg { width: 18px; height: 18px; color: var(--gold); opacity: 0.6; }

/* ---------- Fade-in animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Tweaks panel positioning ---------- */
.tweaks-host { position: fixed; bottom: 18px; right: 18px; z-index: 80; }

/* ---------- Mobile menu (base — overridden by media queries below) ---------- */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(200,153,90,0.22);
  background: rgba(20,17,28,0.55);
  color: var(--gold);
  border-radius: 3px;
  transition: all 200ms ease;
}
.menu-btn:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(200,153,90,0.25); }
.menu-btn svg { width: 18px; height: 18px; }

.mobile-nav {
  position: fixed;
  top: 64px;
  left: 12px; right: 12px;
  z-index: 60;
  padding: 14px;
  background: rgba(10,8,14,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--panel-edge);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--panel-edge-soft);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav a { padding: 10px 10px; font-size: 11px; letter-spacing: 0.14em; }
  .header { gap: 20px; padding: 14px 24px; }
}

@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .mix-stage { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-row: auto; grid-column: span 2; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { height: 60vh; min-height: 420px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 720px) {
  .header { padding: 12px 16px; gap: 12px; }
  .header-actions .login-btn { display: none; }
  .discord-btn span { display: none; }
  .discord-btn { padding: 8px 10px; }
  .section { padding: 70px 20px; }
  .hero { padding: 30px 20px 50px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .features-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; }
  .rank-row, .rank-head { grid-template-columns: 50px 1fr 90px 80px; }
  .rank-row .col-pvp, .rank-row .col-clan, .rank-head .col-pvp, .rank-head .col-clan { display: none; }
  .mix-rewards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}


