:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --panel: #141821;
  --panel-2: #191e29;
  --line: #232a38;
  --line-2: #2e3647;
  --text: #e9edf5;
  --muted: #8a93a6;
  --dim: #5b6478;
  --gold: #f5c542;
  --gold-2: #ffdb6e;
  --gold-ink: #1a1405;

  --t1: #f5c542;
  --t2: #c9d3e6;
  --t3: #e5894a;
  --t4: #4fd18b;
  --t5: #8693ad;

  --radius: 14px;
  --radius-sm: 9px;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
svg { display: block; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }

/* Background */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 900px; height: 600px; left: 50%; top: -320px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245,197,66,.13), transparent);
  filter: blur(10px);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,18,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2a2210, #17130a);
  border: 1px solid rgba(245,197,66,.35);
  color: var(--gold);
  box-shadow: 0 0 24px rgba(245,197,66,.15), inset 0 1px 0 rgba(255,255,255,.08);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .04em; }
.logo-text span { color: var(--gold); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.main-nav a.active { color: var(--text); background: rgba(255,255,255,.06); }

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

/* Search */
.search { position: relative; }
.search input {
  width: 230px; height: 40px; padding: 0 36px 0 38px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 14px;
  transition: border-color .2s, width .3s var(--ease), box-shadow .2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: rgba(245,197,66,.5); width: 280px; box-shadow: 0 0 0 4px rgba(245,197,66,.08); }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.search-ico svg { width: 16px; height: 16px; }
.search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 280px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 6px; display: none;
}
.search-results.open { display: block; animation: pop .18s var(--ease); }
.sr-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.sr-item:hover, .sr-item.active { background: rgba(255,255,255,.05); }
.sr-item img { width: 28px; height: 28px; border-radius: 5px; image-rendering: pixelated; }
.sr-item .sr-name { font-weight: 700; font-size: 14px; }
.sr-item .sr-meta { font-size: 12px; color: var(--muted); }
.sr-item .sr-pts { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--gold); }
.sr-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel); font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--panel-2); border-color: #3a4459; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: transparent;
  box-shadow: 0 8px 30px rgba(245,197,66,.25), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { background: linear-gradient(180deg, #ffe48a, var(--gold-2)); box-shadow: 0 10px 36px rgba(245,197,66,.35); }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn-discord:hover { background: #6b77ff; border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { color: #ff8a8a; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Main */
main { flex: 1; outline: none; }
.page { animation: fadeUp .45s var(--ease); }
section { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 520px; margin: 10px 0 0; }
.link-arrow { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, gap .2s; }
.link-arrow:hover { color: var(--gold); gap: 10px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
}

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 700; margin: 18px 0 20px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--gold-2), var(--gold) 40%, var(--t3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* Podium card */
.podium { padding: 22px; position: relative; overflow: hidden; }
.podium::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(245,197,66,.35), transparent 35%, transparent 70%, rgba(245,197,66,.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.podium-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.podium-head h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.top-row {
  display: grid; grid-template-columns: 30px 48px 1fr auto; gap: 14px; align-items: center;
  padding: 12px; border-radius: 12px; cursor: pointer; transition: background .2s, transform .2s var(--ease);
}
.top-row:hover { background: rgba(255,255,255,.035); transform: translateX(3px); }
.top-row + .top-row { margin-top: 4px; }
.rank-num { font-family: var(--display); font-weight: 700; font-size: 22px; text-align: center; color: var(--dim); }
.rank-num.r1 { color: var(--t1); text-shadow: 0 0 18px rgba(245,197,66,.5); }
.rank-num.r2 { color: var(--t2); }
.rank-num.r3 { color: var(--t3); }
.avatar { width: 48px; height: 48px; border-radius: 9px; image-rendering: pixelated; background: var(--panel-2); border: 1px solid var(--line-2); }
.avatar.sm { width: 32px; height: 32px; border-radius: 7px; }
.avatar.xs { width: 24px; height: 24px; border-radius: 5px; }
.pname { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.pmeta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pts { font-family: var(--mono); font-weight: 700; color: var(--gold); font-size: 15px; text-align: right; }
.pts small { display: block; color: var(--dim); font-size: 10px; letter-spacing: .1em; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.podium-empty { padding: 30px; text-align: center; color: var(--muted); }

/* Region badge */
.region {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line-2);
}
.region.NA { color: #ff9a9a; background: rgba(255,90,90,.08); border-color: rgba(255,90,90,.25); }
.region.EU { color: #8fd5ff; background: rgba(80,180,255,.08); border-color: rgba(80,180,255,.25); }
.region.AS { color: #ffd38a; background: rgba(255,190,80,.08); border-color: rgba(255,190,80,.25); }
.region.SA { color: #9fffb8; background: rgba(80,255,140,.08); border-color: rgba(80,255,140,.25); }
.region.AU { color: #d6a6ff; background: rgba(180,100,255,.08); border-color: rgba(180,100,255,.25); }
.region.AF { color: #ffb88a; background: rgba(255,140,80,.08); border-color: rgba(255,140,80,.25); }

/* Title badge */
.title-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.title-badge i { width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; border-radius: 1px; }

/* Tier chips */
.tier {
  --c: var(--t5);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 40px; height: 22px; padding: 0 6px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 9%, transparent);
  white-space: nowrap;
}
.tier.ht { background: color-mix(in srgb, var(--c) 20%, transparent); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 18%, transparent); }
.tier svg { width: 12px; height: 12px; }
.tier.t1 { --c: var(--t1); } .tier.t2 { --c: var(--t2); } .tier.t3 { --c: var(--t3); } .tier.t4 { --c: var(--t4); } .tier.t5 { --c: var(--t5); }
.tier.retired { opacity: .55; border-style: dashed; }
.tier-none { color: var(--line-2); font-family: var(--mono); font-size: 12px; }

/* Gamemodes */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .modes-grid { grid-template-columns: 1fr 1fr; } }
.mode-card {
  padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.mode-card::after {
  content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,197,66,.16), transparent); opacity: 0; transition: opacity .3s;
}
.mode-card:hover { transform: translateY(-3px); border-color: rgba(245,197,66,.4); }
.mode-card:hover::after { opacity: 1; }
.mode-ico {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--gold);
  transition: transform .3s var(--ease);
}
.mode-card:hover .mode-ico { transform: rotate(-8deg) scale(1.06); }
.mode-ico svg { width: 22px; height: 22px; }
.mode-card h3 { font-size: 19px; }
.mode-card .mode-meta { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.mode-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-height: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.step { padding: 22px; position: relative; }
.step-n {
  font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--gold-ink);
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--gold); margin-bottom: 16px; box-shadow: 0 0 20px rgba(245,197,66,.3);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.callout {
  margin-top: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px;
}
.callout b { color: var(--text); }
.callout .btn { margin-left: auto; }

/* Ladder */
.ladder-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.ladder { padding: 22px; }
.ladder h3, .titles h3 { font-size: 20px; margin-bottom: 4px; }
.ladder > p, .titles > p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lrow { display: grid; grid-template-columns: 48px 1fr 64px; gap: 12px; align-items: center; padding: 6px 0; }
.lbar { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.lbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1.1s var(--ease); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); }
.lrow .lpts { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--muted); }
.lrow .lpts b { color: var(--text); }
.titles { padding: 22px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trow:last-child { border: 0; }
.trow .tdot { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.trow .tname { font-weight: 700; }
.trow .tpts { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* CTA */
.cta {
  padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,197,66,.18), transparent 60%), var(--panel);
}
.cta h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 12px; }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 460px; }

/* Rankings */
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); margin: 10px 0 8px; }
.page-head p { color: var(--muted); margin: 0; }
.tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 -4px 18px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-weight: 700; font-size: 13px;
  transition: all .2s;
}
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); box-shadow: 0 6px 20px rgba(245,197,66,.25); }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .filter {
  height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: inherit; font-size: 14px; min-width: 220px;
}
.toolbar .filter:focus { outline: none; border-color: rgba(245,197,66,.5); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: transparent; padding: 0 12px; height: 36px; font-size: 12px; font-weight: 700; color: var(--muted); font-family: var(--mono); }
.seg button.active { background: rgba(245,197,66,.14); color: var(--gold); }
.toolbar .count { margin-left: auto; color: var(--muted); font-size: 13px; }

.table-wrap { overflow: hidden; }
table.lb { width: 100%; border-collapse: collapse; }
.lb th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap;
}
.lb th.mcol { text-align: center; padding: 14px 4px; }
.lb th.mcol span { display: inline-grid; place-items: center; color: var(--muted); }
.lb th.mcol svg { width: 16px; height: 16px; }
.lb td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb td.mcol { text-align: center; padding: 12px 4px; }
.lb tbody tr { cursor: pointer; transition: background .15s; }
.lb tbody tr:hover { background: rgba(255,255,255,.025); }
.lb tbody tr:last-child td { border-bottom: 0; }
.lb .pcell { display: flex; align-items: center; gap: 12px; }
.lb .rk { width: 44px; }
.medal {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--muted); background: var(--panel-2);
}
.medal.r1 { background: linear-gradient(145deg, #ffe38a, #d9a520); color: var(--gold-ink); box-shadow: 0 0 18px rgba(245,197,66,.35); }
.medal.r2 { background: linear-gradient(145deg, #eef2fa, #9aa6bd); color: #151922; }
.medal.r3 { background: linear-gradient(145deg, #f4a875, #b8622c); color: #1d0f05; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-family: var(--display); font-size: 20px; margin-bottom: 6px; }

/* Tier board */
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.tcol { overflow: hidden; }
.tcol-head {
  --c: var(--t5);
  padding: 14px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, transparent), transparent);
}
.tcol-head b { font-family: var(--display); font-size: 17px; color: var(--c); display: flex; align-items: center; gap: 8px; }
.tcol-head b svg { width: 16px; height: 16px; }
.tcol-head span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tcol.t1 .tcol-head { --c: var(--t1); } .tcol.t2 .tcol-head { --c: var(--t2); } .tcol.t3 .tcol-head { --c: var(--t3); }
.tcol.t4 .tcol-head { --c: var(--t4); } .tcol.t5 .tcol-head { --c: var(--t5); }
.tcol-body { padding: 8px; min-height: 90px; }
.tplayer {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; cursor: pointer;
  transition: background .15s, transform .2s var(--ease);
}
.tplayer:hover { background: rgba(255,255,255,.04); transform: translateX(2px); }
.tplayer .tn { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.hl { font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.06); color: var(--muted); }
.hl.ht { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.tcol-empty { padding: 28px 8px; text-align: center; color: var(--dim); font-size: 13px; }

/* Player */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 40px 0 72px; }
.p-side { padding: 24px; text-align: center; position: relative; overflow: hidden; align-self: start; }
.p-side::before {
  content: ""; position: absolute; left: 50%; top: 40px; width: 240px; height: 240px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245,197,66,.18), transparent); pointer-events: none;
}
.p-body-img { height: 260px; margin: 6px auto 16px; image-rendering: pixelated; position: relative; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); animation: bob 4s ease-in-out infinite; }
.p-side h1 { font-size: 30px; margin-bottom: 8px; word-break: break-all; }
.p-side .p-tags { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.p-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.p-main { display: flex; flex-direction: column; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 18px; }
.kpi span { font-size: 11px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.kpi b { display: block; font-family: var(--display); font-size: 30px; margin-top: 6px; line-height: 1.1; }
.kpi b.gold { color: var(--gold); }
.progress { padding: 18px; }
.progress-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; color: var(--muted); }
.progress-top b { color: var(--text); }
.pbar { height: 10px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--t3), var(--gold)); border-radius: inherit; transition: width 1.2s var(--ease); box-shadow: 0 0 14px rgba(245,197,66,.5); }
.ptiers { padding: 18px; }
.ptiers h3 { font-size: 18px; margin-bottom: 14px; }
.ptier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ptier {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px;
  background: var(--panel-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease);
}
a.ptier:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ptier .mode-ico { width: 36px; height: 36px; }
.ptier .mode-ico svg { width: 18px; height: 18px; }
.ptier .pm { flex: 1; min-width: 0; }
.ptier .pm b { display: block; font-size: 14px; }
.ptier .pm small { font-size: 11px; color: var(--dim); font-family: var(--mono); }
.ptier.none { opacity: .45; }
.ptier.none .mode-ico { color: var(--dim); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,6,10,.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: translateY(16px) scale(.97); opacity: 0;
  transition: transform .3s var(--ease), opacity .25s;
}
.modal.open .modal-card { transform: none; opacity: 1; }
.m-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.m-head .avatar { width: 58px; height: 58px; }
.m-head h3 { font-size: 22px; }
.m-close { margin-left: auto; align-self: flex-start; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; color: var(--muted); }
.m-close:hover { color: var(--text); background: var(--panel-2); }
.m-close svg { width: 16px; height: 16px; }
.m-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.m-kpis div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px; }
.m-kpis span { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .1em; font-weight: 700; }
.m-kpis b { display: block; margin-top: 4px; font-size: 15px; }
.m-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.m-row .mi { color: var(--gold); } .m-row .mi svg { width: 16px; height: 16px; }
.m-row .tier { margin-left: auto; }
.m-row small { color: var(--dim); font-weight: 600; font-family: var(--mono); font-size: 11px; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tier-order { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tier-order .arrow { color: var(--dim); font-size: 12px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--gold); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Admin */
.admin-note { padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(245,197,66,.3); background: rgba(245,197,66,.06); color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.admin-note b { color: var(--gold); }
.admin-grid { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.admin-list .lb td { padding: 10px 12px; }
.form { padding: 20px; position: sticky; top: 86px; }
.form h3 { font-size: 18px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--text); font: inherit; font-size: 14px;
}
.field input:focus, .field select:focus { outline: none; border-color: rgba(245,197,66,.55); }
.mode-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.mode-fields .field { margin: 0; }
.mode-fields .field label { display: flex; align-items: center; gap: 6px; }
.mode-fields .field label svg { width: 13px; height: 13px; color: var(--gold); }
.form-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.admin-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 40px; background: rgba(0,0,0,.2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 340px; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 14px; }
.footer-col > a, .footer-modes a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; transition: color .2s; }
.footer-col > a:hover, .footer-modes a:hover { color: var(--gold); }
.footer-modes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 200;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); padding: 11px 18px; border-radius: 11px;
  font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Responsive */
@media (max-width: 1080px) {
  .board { grid-template-columns: repeat(3, 1fr); }
  .lb .hide-md { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .form { position: static; }
}
@media (max-width: 900px) {
  .hero-grid, .ladder-grid, .guide-grid, .profile { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ptier-grid { grid-template-columns: repeat(2, 1fr); }
  .lb .mcol { display: none; }
  .lb .m-chips { display: flex; }
}
@media (min-width: 901px) { .lb .m-chips { display: none; } }
.lb .m-chips { margin-top: 6px; }
@media (min-width: 1081px) { .lb .hide-big { display: none; } }
@media (max-width: 760px) {
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 10px 20px 16px;
    background: rgba(11,13,18,.97); border-bottom: 1px solid var(--line); display: none;
  }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: 12px; }
  .menu-btn { display: block; }
  .search input, .search input:focus { width: 150px; }
  .search kbd, .hide-sm { display: none; }
  .btn-discord { width: 40px; padding: 0; }
  .board { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .lb .hide-sm-col { display: none; }
}
@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .logo-text { display: none; }
  .search { flex: 1; }
  .header-actions { flex: 1; }
  .search input, .search input:focus { width: 100%; }
  .steps, .board, .ptier-grid { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .cta { padding: 40px 22px; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
