/* =========================================================
   Purpify Network — main stylesheet
   ========================================================= */

:root {
  --accent-h: 285;              /* purple hue, tweakable */
  --accent-c: 0.17;
  --accent: oklch(0.65 var(--accent-c) var(--accent-h));
  --accent-bright: oklch(0.78 var(--accent-c) var(--accent-h));
  --accent-dim: oklch(0.45 0.12 var(--accent-h));
  --accent-deep: oklch(0.28 0.10 var(--accent-h));
  --accent-glow: oklch(0.65 var(--accent-c) var(--accent-h) / 0.35);

  --bg-0: #07040d;
  --bg-1: #0d0818;
  --bg-2: #140c22;
  --bg-card: rgba(24, 16, 40, 0.55);
  --bg-card-solid: #15102a;

  --text-0: #f5f0ff;
  --text-1: #d8cfe8;
  --text-2: #9a8eb8;
  --text-3: #6d6388;

  --border: rgba(160, 120, 220, 0.14);
  --border-strong: rgba(180, 140, 240, 0.28);

  --gold: #f4c430;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, oklch(0.32 0.14 var(--accent-h) / 0.45), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, oklch(0.28 0.12 calc(var(--accent-h) + 20) / 0.3), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 40%, var(--bg-0) 100%);
  min-height: 100vh;
  position: relative;
}

/* Ambient cloud texture layer */
.cloud-bg {
  position: fixed;
  inset: -10%;
  background-image: url('assets/clouds.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: blur(1px) hue-rotate(-10deg);
  pointer-events: none;
  z-index: 0;
  animation: drift 90s ease-in-out infinite alternate;
}
.cloud-bg.layer-2 {
  opacity: 0.09;
  background-size: 140% auto;
  background-position: 20% 40%;
  animation: drift2 140s ease-in-out infinite alternate;
  filter: blur(3px) hue-rotate(10deg);
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, -2%, 0) scale(1.08); }
}
@keyframes drift2 {
  0% { transform: translate3d(0, 0, 0) scale(1.05); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.12); }
}

/* Noise grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Star / spark dots */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

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

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 6, 20, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-0);
  text-decoration: none;
  font-size: 18px;
}
.nav-brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.nav-brand .nb-sub {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text-0); background: rgba(255,255,255,0.04); }
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(0.3 0.1 145 / 0.25);
  border: 1px solid oklch(0.55 0.15 145 / 0.4);
  font-size: 12px;
  color: oklch(0.85 0.12 145);
  font-weight: 500;
}
.nav-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.75 0.2 145);
  box-shadow: 0 0 8px oklch(0.75 0.2 145);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #0a0612;
  box-shadow: 0 8px 28px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-0);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }
.btn-discord {
  background: #5865F2;
  color: white;
  box-shadow: 0 8px 28px -6px rgba(88, 101, 242, 0.5);
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: 80px 32px 120px;
  overflow: hidden;
}
.hero-bg-orb {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-logo-wrap {
  position: relative;
  order: 2;
}
.hero-logo {
  width: 100%;
  max-width: 520px;
  display: block;
  filter: drop-shadow(0 20px 60px oklch(0.5 0.2 var(--accent-h) / 0.5));
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.hero-logo-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: oklch(0.3 0.12 var(--accent-h) / 0.3);
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-bright); }

.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-0);
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--accent-bright), oklch(0.82 0.1 calc(var(--accent-h) + 30)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-1);
  margin: 0 0 36px;
  max-width: 520px;
}

.ip-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  max-width: 460px;
  transition: border-color .2s, box-shadow .2s;
}
.ip-card:hover { border-color: var(--accent); box-shadow: 0 0 40px -10px var(--accent-glow); }
.ip-card .label {
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.ip-card .ip {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-0);
  display: flex;
  align-items: center;
}
.ip-card .copy-btn {
  background: linear-gradient(135deg, var(--accent-deep), oklch(0.35 0.12 var(--accent-h)));
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-0);
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
  font-family: inherit;
}
.ip-card .copy-btn:hover { background: linear-gradient(135deg, var(--accent-dim), var(--accent)); }
.ip-card .copy-btn.copied { background: oklch(0.45 0.15 145); }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta-item .v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-0);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta-item .v .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.75 0.2 145);
  box-shadow: 0 0 8px oklch(0.75 0.2 145);
  animation: pulse 2s infinite;
}
.hero-meta-item .k {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { position: relative; z-index: 2; }
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-0);
  margin: 0 0 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================
   STATS BAR
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(180deg, rgba(30, 20, 54, 0.7), rgba(18, 12, 32, 0.7));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.stat:last-child { border-right: none; }
.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.stat-sub {
  font-size: 13px;
  color: var(--text-2);
}
.stat .live-pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.75 0.2 145);
  box-shadow: 0 0 8px oklch(0.75 0.2 145);
  animation: pulse 2s infinite;
}

/* =========================================================
   GAMEMODES
   ========================================================= */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mode {
  position: relative;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(40, 24, 70, 0.45), rgba(16, 10, 28, 0.7));
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .25s, border-color .25s;
}
.mode:hover { transform: translateY(-4px); border-color: var(--accent); }
.mode::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, var(--accent-glow), transparent 55%);
  opacity: 0.6;
}
.mode-icon {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  font-size: 36px;
  image-rendering: pixelated;
}
.mode-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}
.mode-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--text-0);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  position: relative;
}
.mode-desc {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 20px;
  max-width: 380px;
  position: relative;
}
.mode-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
  position: relative;
}
.mode-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mode-meta b { color: var(--text-0); font-weight: 600; font-family: var(--f-display); }

/* =========================================================
   LEADERBOARDS
   ========================================================= */
.leader-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.leader-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(16, 10, 28, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.leader-tab {
  padding: 8px 18px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.leader-tab:hover { color: var(--text-0); }
.leader-tab.is-active {
  background: linear-gradient(180deg, oklch(0.35 0.15 var(--accent-h) / 0.4), rgba(20, 12, 36, 0.6));
  color: var(--text-0);
}
.leader-sub { display: flex; align-items: center; gap: 10px; }
.nav-active { color: var(--text-0) !important; }
.leader {
  background: linear-gradient(180deg, rgba(30, 20, 54, 0.5), rgba(18, 12, 32, 0.6));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.leader-head {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.leader-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-0);
  display: flex;
  align-items: center;
  gap: 12px;
}
.leader-title .chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: oklch(0.32 0.12 var(--accent-h) / 0.5);
  color: var(--accent-bright);
  font-weight: 700;
  border: 1px solid var(--border-strong);
}
.leader-sub { font-size: 12px; color: var(--text-3); }
.leader-row {
  display: grid;
  grid-template-columns: 36px 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.leader-row:last-child { border-bottom: none; }
.leader-row:hover { background: rgba(255,255,255,0.02); }
.leader-rank {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-3);
  text-align: center;
}
.leader-row.top-1 .leader-rank { color: var(--gold); }
.leader-row.top-2 .leader-rank { color: #c9cad1; }
.leader-row.top-3 .leader-rank { color: #d08b5b; }
.leader-avatar {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  image-rendering: pixelated;
  display: block;
}
.leader-name {
  font-weight: 600;
  color: var(--text-0);
  font-size: 14px;
}
.leader-name .sub {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-top: 1px;
}
.leader-value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-0);
  letter-spacing: -0.01em;
}
.leader-value .unit {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 4px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   STORE
   ========================================================= */
.ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.ranks-single {
  grid-template-columns: 1fr;
  max-width: 640px;
}
.rank-detail { padding-top: 40px; }
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent-bright); }
.store-tabs {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 6px;
  background: rgba(16, 10, 28, 0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.store-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.store-tab:hover { color: var(--text-0); }
.store-tab.is-active {
  background: linear-gradient(180deg, oklch(0.35 0.15 var(--accent-h) / 0.35), rgba(20, 12, 36, 0.6));
  border-color: var(--border-strong);
  color: var(--text-0);
}
.store-tab-price {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-3);
}
.store-tab.is-active .store-tab-price { color: var(--accent-bright); }
.rank-page[hidden] { display: none; }
.rank-section-title {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 8px 0 12px;
}
.rank-cmds {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.rank-cmds li {
  font-size: 14px;
  color: var(--text-1);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.rank-cmds code {
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--accent-bright);
}
.rank.featured .rank-cmds code {
  color: var(--gold);
  background: oklch(0.75 0.15 90 / 0.1);
  border-color: oklch(0.75 0.15 90 / 0.3);
}
.cmd-note { color: var(--text-3); font-size: 12px; }
.cmd-inherit {
  font-style: italic;
  color: var(--text-2);
  font-size: 13px;
}
.rank-summary {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.6;
  margin: 0 0 28px;
}
.rank-price .was {
  font-size: 18px;
  color: var(--text-3);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 600;
}
.rank {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(32, 22, 58, 0.6), rgba(16, 10, 28, 0.7));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rank.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, oklch(0.35 0.15 var(--accent-h) / 0.35), rgba(20, 12, 36, 0.8));
  box-shadow: 0 20px 60px -20px var(--accent-glow);
}
.rank.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--gold);
  color: #0a0612;
  font-weight: 700;
}
.rank-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  background: linear-gradient(135deg, var(--accent-bright), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank.featured .rank-name {
  background: linear-gradient(135deg, var(--gold), oklch(0.92 0.1 90));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank-tagline {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 24px;
}
.rank-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}
.rank-price .amount {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 52px;
  color: var(--text-0);
  letter-spacing: -0.02em;
  line-height: 1;
}
.rank-price .cur { color: var(--text-2); font-size: 20px; font-weight: 600; }
.rank-price .once { color: var(--text-3); font-size: 13px; margin-left: 4px; }
.rank-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.rank-perks li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.5;
}
.rank-perks .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: oklch(0.35 0.15 var(--accent-h) / 0.5);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}
.rank.featured .rank-perks .check {
  background: oklch(0.75 0.15 90 / 0.2);
  border-color: oklch(0.75 0.15 90 / 0.5);
  color: var(--gold);
}

/* =========================================================
   STAFF
   ========================================================= */
.staff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.staff-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.staff-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.staff-avatar {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: var(--bg-2);
  image-rendering: pixelated;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.staff-info { flex: 1; min-width: 0; }
.staff-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-0);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.staff-role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.staff-role.owner { color: var(--gold); }
.staff-role.admin { color: var(--accent-bright); }
.staff-role.mod { color: #8fc4ff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: 80px;
  padding: 60px 32px 40px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--text-0); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-desc { color: var(--text-2); font-size: 14px; max-width: 340px; margin: 8px 0 16px; }
.footer-col h4 {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--text-1);
  text-decoration: none;
  padding: 4px 0;
  font-size: 14px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.footer-bottom .dis { font-family: var(--f-mono); }

/* =========================================================
   TWEAKS PANEL
   ========================================================= */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 280px;
  background: rgba(12, 8, 22, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  font-size: 13px;
}
.tweaks.open { display: block; }
.tweaks-head {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--text-0);
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tweaks label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.tweaks .row { margin-bottom: 14px; }
.tweaks input[type="range"] {
  width: 100%;
  accent-color: var(--accent-bright);
}
.tweaks .val { color: var(--text-0); font-family: var(--f-mono); font-size: 12px; }
.tweaks .swatch {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  border: 1px solid var(--border-strong);
  margin-top: 8px;
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: oklch(0.35 0.15 145);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo-wrap { order: 0; }
  .hero-logo { max-width: 320px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .modes, .leader-wrap, .ranks, .staff, .footer-inner { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
  .nav-links a.nav-status, .nav-links .btn { display: inline-flex; }
}
