/* =========================================================
   NYC:RP — styles
   ========================================================= */
:root {
  --bg: #06080f;
  --bg-2: #0b0f1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --muted: #98a2b8;
  --dim: #6b7489;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --red: #ef4444;
  --gold: #f5c542;
  --green: #22c55e;
  --discord: #5865f2;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.accent { color: var(--red); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- Police light bar ---------- */
.lightbar {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; display: flex; pointer-events: none;
}
.lightbar span { flex: 1; }
.lb-red { background: var(--red); animation: flashA 1.2s infinite; }
.lb-blue { background: var(--blue); animation: flashB 1.2s infinite; }
@keyframes flashA { 0%, 45% { opacity: 1; box-shadow: 0 0 24px 4px var(--red); } 50%, 100% { opacity: 0.15; box-shadow: none; } }
@keyframes flashB { 0%, 45% { opacity: 0.15; box-shadow: none; } 50%, 95% { opacity: 1; box-shadow: 0 0 24px 4px var(--blue); } 100% { opacity: 0.15; } }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s;
}
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #2f6df0, #4f8cff);
  box-shadow: 0 8px 30px -8px rgba(59, 130, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(59, 130, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.btn-discord { background: var(--discord); width: 100%; }
.btn-discord:hover { background: #4752c4; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 3px 0 auto 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 8, 15, 0.72); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); object-fit: cover; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: var(--muted); border-radius: 8px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 170px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-banner {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease), transform 6s var(--ease);
  filter: saturate(1.1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 60%, transparent);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 60%, transparent);
}
.hero-banner.loaded { opacity: 0.32; transform: scale(1); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.g1 { width: 520px; height: 520px; background: #1d4ed8; top: -120px; left: -120px; animation: drift 14s ease-in-out infinite alternate; }
.g2 { width: 460px; height: 460px; background: #b91c1c; top: 10%; right: -140px; animation: drift 16s ease-in-out infinite alternate-reverse; opacity: 0.35; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.skyline .bld { fill: #0a0e18; }
.skyline .bld-far { fill: #0d1220; }
.skyline .win { fill: #f5c542; opacity: 0; animation: win var(--d, 6s) ease-in-out var(--delay, 0s) infinite; }
@keyframes win { 0%, 100% { opacity: 0; } 10%, 70% { opacity: var(--o, 0.7); } }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25); color: #b7f5cb; font-size: 14px;
  margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: ping 2s infinite; display: inline-block; }
.dot-grey { background: var(--dim); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }

.hero-title { font-size: clamp(44px, 8.2vw, 104px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; }
.hero-title .line { display: block; }
.grad {
  background: linear-gradient(100deg, #ff5b5b 0%, #ffffff 45%, #5b9bff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.hero-sub { max-width: 640px; margin: 26px auto 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; justify-content: center; }

.code-chip {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  border-radius: 12px; border: 1px dashed var(--border-2); background: rgba(6, 8, 15, 0.5); cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.code-chip:hover { border-color: var(--gold); background: rgba(245, 197, 66, 0.06); }
.code-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); }
.code-value { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; }
.code-copy { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }

.scroll-cue { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Stats ---------- */
.stats {
  position: relative; z-index: 2; margin-top: -40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius); background: rgba(11, 15, 26, 0.75); backdrop-filter: blur(14px);
  overflow: hidden;
}
.stat { padding: 30px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--border); }
.stat-num { font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- Marquee ---------- */
.marquee { margin: 90px 0 0; padding: 22px 0; border-block: 1px solid var(--border); overflow: hidden; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.marquee-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue-2); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue)); border-radius: 2px; }
.section-head h2, .cta h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; letter-spacing: -0.035em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  --mx: 50%; --my: 50%;
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transform-style: preserve-3d; transition: transform 0.5s var(--ease), border-color 0.3s; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(91, 155, 255, 0.14), transparent 45%);
}
.feature:hover { border-color: var(--border-2); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(239, 68, 68, 0.15)); border: 1px solid var(--border-2);
}
.feature-icon svg { width: 26px; height: 26px; color: #cfe0ff; }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--muted); }

/* ---------- Departments ---------- */
.dept-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.dept-tabs { display: flex; flex-direction: column; gap: 8px; }
.dept-tab {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 14px;
  background: transparent; border: 1px solid transparent; cursor: pointer; transition: background 0.25s, border-color 0.25s;
}
.dept-tab:hover { background: var(--surface); }
.dept-tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--border-2); }
.dept-tab .ti { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); transition: transform 0.4s var(--ease); }
.dept-tab[aria-selected="true"] .ti { transform: scale(1.08); box-shadow: 0 0 24px -4px var(--c); }
.dept-tab .ti svg { width: 22px; height: 22px; }
.dept-tab b { display: block; font-family: var(--display); font-size: 17px; }
.dept-tab small { color: var(--dim); font-size: 13px; }

.dept-panel {
  position: relative; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); padding: 44px; overflow: hidden; min-height: 400px;
}
.dept-panel::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -200px; border-radius: 50%;
  background: var(--c, var(--blue)); filter: blur(120px); opacity: 0.22; transition: background 0.6s;
}
.dept-inner { position: relative; animation: panelIn 0.6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.dept-big-icon { position: absolute; right: 0; top: 0; width: 140px; height: 140px; color: var(--c); opacity: 0.18; }
.dept-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); margin-bottom: 18px; }
.dept-inner h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; }
.dept-tagline { color: var(--c); font-weight: 600; margin-top: 8px; font-size: 18px; }
.dept-desc { color: var(--muted); margin-top: 18px; max-width: 560px; font-size: 17px; }
.dept-hl { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.dept-hl li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 15px; opacity: 0; animation: panelIn 0.5s var(--ease) forwards; }
.dept-hl svg { width: 18px; height: 18px; color: var(--c); flex: none; }

/* ---------- Rules ---------- */
.rules-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.search { flex: 1 1 320px; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--dim); transition: border-color 0.25s, box-shadow 0.25s; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; padding: 14px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border-2); background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.25s; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.rules-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.rule { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.25s, background 0.25s; animation: panelIn 0.45s var(--ease) both; }
.rule:hover { border-color: var(--border-2); }
.rule.open { background: var(--surface-2); border-color: var(--border-2); }
.rule-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 18px; background: none; border: 0; cursor: pointer; text-align: left; }
.rule-num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--dim); min-width: 28px; }
.rule-title { flex: 1; font-weight: 600; }
.rule-cat { font-size: 12px; color: var(--dim); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); }
.rule-btn svg { width: 18px; height: 18px; color: var(--dim); transition: transform 0.35s var(--ease); flex: none; }
.rule.open .rule-btn svg { transform: rotate(180deg); }
.rule-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.rule.open .rule-body { grid-template-rows: 1fr; }
.rule-body > div { overflow: hidden; }
.rule-body p { padding: 0 18px 18px 60px; color: var(--muted); }
.rule mark { background: rgba(245, 197, 66, 0.25); color: inherit; border-radius: 3px; padding: 0 2px; }
.rules-empty { text-align: center; color: var(--dim); padding: 40px 0; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member {
  position: relative; padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.3s; overflow: hidden;
}
.member:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.member::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 25%, transparent), transparent); }
.avatar {
  position: relative; width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 30px; font-weight: 700; background: var(--bg-2); color: var(--c);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c), 0 10px 30px -8px var(--c); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 20px; position: relative; }
.member .role { position: relative; display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--c); }

/* ---------- CTA / Widget ---------- */
.cta {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  padding: 64px; border-radius: 28px; border: 1px solid var(--border-2); overflow: hidden;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.18), rgba(11, 15, 26, 0.6) 50%, rgba(185, 28, 28, 0.14));
}
.cta-glow { position: absolute; inset: auto -20% -60% auto; width: 600px; height: 600px; border-radius: 50%; background: var(--discord); filter: blur(140px); opacity: 0.25; }
.cta-left { position: relative; }
.cta-left p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 480px; }
.cta .hero-actions { justify-content: flex-start; }
.widget { position: relative; padding: 26px; border-radius: 20px; background: rgba(6, 8, 15, 0.7); border: 1px solid var(--border-2); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.widget-top { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.widget-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); object-fit: cover; }
.widget-name { font-weight: 700; font-family: var(--display); font-size: 18px; }
.widget-sub { color: var(--dim); font-size: 14px; }
.widget-stats { display: flex; gap: 22px; margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.widget-stats div { display: flex; align-items: center; gap: 8px; }
.widget-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.widget-live { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- Footer ---------- */
.footer { margin-top: 120px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand p { color: var(--dim); font-size: 14px; margin-top: 16px; max-width: 340px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 14px; font-family: var(--body); }
.footer-cols a { display: block; color: var(--muted); padding: 5px 0; font-size: 15px; transition: color 0.2s, transform 0.25s var(--ease); }
.footer-cols a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 30px; border-top: 1px solid var(--border); color: var(--dim); font-size: 14px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: #f1f5ff; color: #0b0f1a; font-weight: 600; font-size: 14px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animation ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--rd, 0s); }
.js-reveal .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .dept-wrap { grid-template-columns: 1fr; }
  .dept-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .dept-tab { flex: none; }
  .dept-tab small { display: none; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 44px; }
  .cta > * { min-width: 0; }
}
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 75px 16px auto 16px; flex-direction: column; padding: 12px; border-radius: 16px;
    background: rgba(11, 15, 26, 0.96); border: 1px solid var(--border-2); backdrop-filter: blur(16px);
    opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; transition: opacity 0.3s, transform 0.35s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .burger { display: block; }
  .nav-cta { margin-left: auto; }
  .scroll-cue { display: none; }
  .hero { padding-bottom: 110px; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .rules-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .nav-cta .btn span, .nav-cta .btn { font-size: 0; gap: 0; padding: 10px; }
  .nav-cta .btn svg { width: 20px; height: 20px; }
  .hero { padding-top: 120px; }
  .hero-actions .btn { width: 100%; }
  .dept-panel { padding: 28px; }
  .dept-hl { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: 12px; }
  .member { padding: 24px 14px; }
  .cta { padding: 28px 20px; border-radius: 22px; }
  .widget { padding: 20px; }
  .widget-stats { gap: 14px; flex-wrap: wrap; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   RULES — homepage preview
   ========================================================= */
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 680px; }
.section-head-row b { color: var(--text); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { --c: var(--green); position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform 0.45s var(--ease), border-color 0.3s; }
.tier-kick { --c: #f59e0b; }
.tier-ban { --c: var(--red); }
.tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); box-shadow: 0 0 20px var(--c); }
.tier:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.tier-head { display: flex; align-items: center; justify-content: space-between; }
.tier-head b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--c); }
.tier-desc { color: var(--muted); margin: 10px 0 18px; font-size: 15px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tier li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.tier li > span:first-child { flex: none; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--dim); min-width: 38px; }
.tier li em { font-style: normal; font-size: 12px; color: var(--dim); }
.tier-more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--c); }
.tier-more:hover { text-decoration: underline; }

/* ---------- Punishment pills ---------- */
.pill { --c: var(--dim); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.p-warning { --c: #4ade80; }
.p-kick { --c: #fbbf24; }
.p-ban { --c: #f87171; }
.p-warnkick { --c: #a3e635; }
.p-discretion { --c: #93c5fd; }
.p-off { --c: #6b7489; }
.p-off::before { background: none; border: 1.5px solid var(--c); width: 4px; height: 4px; }

/* =========================================================
   RULES PAGE
   ========================================================= */
.page-hero { position: relative; padding: 150px 0 40px; overflow: hidden; isolation: isolate; }
.page-hero .hero-glow { opacity: 0.35; }
.page-title { font-size: clamp(44px, 7vw, 84px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.page-sub { max-width: 640px; margin-top: 18px; color: var(--muted); font-size: 18px; }
.page-meta { margin-top: 18px; color: var(--dim); font-size: 13.5px; }

.tally { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tally-btn[data-f="all"] { --c: var(--text); }
.tally-btn { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.tally-btn b { font-family: var(--display); font-size: 20px; color: var(--c); }
.tally-btn span { font-size: 14px; color: var(--muted); }
.tally-btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.tally-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: var(--c); }
.tally-btn[aria-pressed="true"] span { color: var(--text); }

.notices-wrap { margin-top: 30px; }
.mini-title { font-size: 13px; font-family: var(--body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 16px; }
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.notice { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(59,130,246,0.07), rgba(255,255,255,0.02)); border: 1px solid var(--border); }
.notice-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(59,130,246,0.14); color: var(--blue-2); }
.notice-icon svg { width: 21px; height: 21px; }
.notice h3 { font-size: 16px; margin-bottom: 6px; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.notice p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.rulebook { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; margin-top: 70px; align-items: start; }
.rb-side { position: sticky; top: 96px; }
.rb-side-inner { display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 116px); overflow-y: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }
.rb-side .search { max-width: none; flex: none; }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--dim); }
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: background 0.2s, color 0.2s; position: relative; }
.toc a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(var(--red), var(--blue)); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.toc a:hover { background: var(--surface); color: var(--text); }
.toc a.active { color: var(--text); background: var(--surface-2); }
.toc a.active::before { transform: scaleY(1); }
.toc a.is-empty { opacity: 0.35; pointer-events: none; }
.toc-code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--dim); width: 22px; }
.toc-name { flex: 1; }
.toc-n { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--dim); font-variant-numeric: tabular-nums; }
.ladder { padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.ladder h3 { font-size: 13px; font-family: var(--body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 12px; }
.ladder ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ladder li { font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; justify-items: start; }
.ladder p { font-size: 13.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }
.ladder p b { color: var(--text); }

.rb-main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.rb-section { scroll-margin-top: 96px; animation: panelIn 0.5s var(--ease) both; }
.rb-sec-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.rb-sec-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(239,68,68,0.15)); border: 1px solid var(--border-2); color: #cfe0ff; }
.rb-sec-icon svg { width: 26px; height: 26px; }
.rb-sec-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--blue-2); letter-spacing: 0.06em; }
.rb-sec-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; margin-top: 2px; }
.rb-sec-head p { color: var(--muted); margin-top: 6px; }

.rb-rules { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.rb-rule { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 20px; scroll-margin-top: 110px; transition: background 0.2s; }
.rb-rule + .rb-rule { border-top: 1px solid var(--border); }
.rb-rule:hover { background: rgba(255,255,255,0.025); }
.rule-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--dim); padding: 3px 0; position: relative; transition: color 0.2s; }
.rule-code:hover { color: var(--blue-2); }
.rule-code:hover::after { content: "# copy"; position: absolute; left: 0; top: 100%; font-size: 10.5px; color: var(--blue-2); white-space: nowrap; }
.rb-rule h3 { font-family: var(--body); font-size: 16.5px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.abbr { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); margin-left: 6px; vertical-align: 2px; font-family: ui-monospace, Consolas, monospace; }
.rb-rule p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.rb-rule .note { font-size: 13.5px; color: #cdb06a; padding-left: 12px; border-left: 2px solid rgba(245,197,66,0.4); margin-top: 8px; }
.rb-rule-p { padding-top: 1px; }
.rb-rules mark, .rp-grid mark { background: rgba(245,197,66,0.28); color: inherit; border-radius: 3px; padding: 0 2px; }

.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rp-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid rgba(248,113,113,0.2); background: linear-gradient(160deg, rgba(239,68,68,0.08), rgba(255,255,255,0.015)); scroll-margin-top: 110px; transition: transform 0.35s var(--ease), border-color 0.25s; }
.rp-card:hover { transform: translateY(-3px); border-color: rgba(248,113,113,0.45); }
.rp-top { display: flex; justify-content: space-between; align-items: center; }
.rp-card b { font-size: 16px; }
.rp-card small { color: #cdb06a; font-size: 13px; line-height: 1.45; }

.safezones { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(59,130,246,0.07); border: 1px dashed rgba(96,165,250,0.35); font-size: 14px; color: var(--muted); }
.safezones svg { width: 18px; height: 18px; color: var(--blue-2); flex: none; }
.safezones b { color: var(--text); }

.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 30% { background: rgba(96,165,250,0.16); box-shadow: inset 3px 0 0 var(--blue-2); } 100% { background: transparent; box-shadow: inset 3px 0 0 transparent; } }

.rb-empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--border-2); border-radius: 18px; color: var(--muted); }
.rb-empty svg { width: 34px; height: 34px; color: var(--dim); margin-bottom: 12px; }
.rb-empty h3 { font-size: 20px; color: var(--text); margin-bottom: 6px; }
.rb-empty button { background: none; border: 0; color: var(--blue-2); cursor: pointer; padding: 0; text-decoration: underline; }

.rb-cta { margin-top: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: 24px; border: 1px solid var(--border-2); background: linear-gradient(135deg, rgba(29,78,216,0.16), rgba(11,15,26,0.6) 55%, rgba(185,28,28,0.12)); }
.rb-cta h2 { font-size: clamp(24px, 3vw, 32px); }
.rb-cta p { color: var(--muted); margin-top: 6px; }

@media (max-width: 1020px) {
  .tiers { grid-template-columns: 1fr; }
  .rulebook { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 50px; }
  .rb-side, .rb-side-inner, .toc { min-width: 0; }
  .rb-side { position: sticky; top: 75px; z-index: 50; margin: 0 -24px; padding: 10px 24px; background: rgba(6,8,15,0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
  .rb-side-inner { max-height: none; overflow: visible; gap: 10px; padding: 0; }
  .toc { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .toc a { flex: none; padding: 7px 12px; font-size: 14px; border: 1px solid var(--border); }
  .toc a::before { display: none; }
  .toc a.active { border-color: var(--border-2); }
  .ladder { display: none; }
  .kbd { display: none; }
  .rb-section, .rb-rule, .rp-card { scroll-margin-top: 200px; }
}
@media (max-width: 560px) {
  .page-hero { padding-top: 120px; }
  .rb-side { margin: 0 -16px; padding: 10px 16px; }
  .rb-rule { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px; }
  .rb-rule .rule-code { grid-column: 1 / -1; padding: 0; font-size: 12px; }
  .rule-code:hover::after { display: none; }
  .rb-rule-p { grid-column: 1 / -1; grid-row: 3; }
  .rb-sec-icon { width: 44px; height: 44px; }
  .rb-cta { padding: 28px 22px; }
  .tally-btn { padding: 8px 12px; }
}

/* =========================================================
   LEADERSHIP
   ========================================================= */
.leaders { display: flex; flex-direction: column; gap: 48px; }
.lead-team-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.lead-team-head h3 { font-size: 14px; font-family: var(--body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }
.lead-team-head span { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-2), transparent); }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.leader {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 18px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
}
.leader::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(180deg, color-mix(in srgb, var(--g1) 22%, transparent), transparent); pointer-events: none; }
.leader:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--g1) 45%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--g1) 70%, transparent); }
.leader-av { position: relative; width: 92px; height: 92px; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 10px 30px -10px var(--g1); margin-bottom: 16px; transition: box-shadow 0.45s var(--ease); }
.leader:hover .leader-av { box-shadow: 0 0 0 4px color-mix(in srgb, var(--g1) 18%, transparent), 0 14px 36px -8px var(--g1); }
.leader-av-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--bg-2); border: 3px solid var(--bg); font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--g1); }
.leader-av-in img { width: 100%; height: 100%; object-fit: cover; }
.leader-name {
  position: relative; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; word-break: break-word;
  background: linear-gradient(90deg, color-mix(in srgb, var(--g1) 72%, #fff), var(--g1) 55%, var(--g2) 150%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.leader-role { position: relative; margin-top: 10px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--g1), var(--g2)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); }
@media (max-width: 560px) {
  .lead-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .leader { padding: 22px 10px 18px; }
  .leader-av { width: 76px; height: 76px; }
  .leader-name { font-size: 16px; }
}

/* Site version (stamped by deploy.ps1) */
.site-ver { margin-left: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #22c55e; opacity: 0.8; }

