:root {
  --bg: #11122B;
  --bg-2: #171839;
  --panel: #1E1F4A;
  --panel-2: #2A2A5C;
  --shadow: #0A0B1F;
  --text: #FFFFFF;
  --muted: #C9CCF2;
  --faint: #8F92C6;
  --gold: #FFD24A;
  --gold-d: #C98F12;
  --orange: #FF6B3D;
  --orange-d: #B23E17;
  --blurple: #5865F2;
  --blurple-d: #3A45B8;
  --display: "Lilita One", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 700 16px/1.6 var(--body); overflow-x: hidden; }
a { color: var(--gold); }
a:hover { color: #FFE48F; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  font: 900 15px var(--body); letter-spacing: .03em; text-decoration: none; color: #fff;
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); color: inherit; }
.btn:active { transform: translateY(3px); }
.btn:focus-visible, .nav-link:focus-visible, .ip-box:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-gold { background: var(--gold); box-shadow: 0 4px 0 var(--gold-d); color: #3A2400; }
.btn-orange { background: var(--orange); box-shadow: 0 4px 0 var(--orange-d); color: #fff; }
.btn-blurple { background: var(--blurple); box-shadow: 0 4px 0 var(--blurple-d); color: #fff; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px #3A3B7A; color: #fff; }
.count-chip { padding: 1px 8px; border-radius: 6px; background: rgba(0,0,0,.25); font-size: 12px; }

/* ── Top bar ──────────────────────────────────────────────────── */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.page-top .topbar { position: relative; background: var(--bg-2); border-bottom: 4px solid var(--shadow); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav .logo img { width: 50px; height: 50px; object-fit: contain; margin-right: 8px; }
.nav-link {
  min-height: 40px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center;
  color: #fff; text-decoration: none; font-weight: 900; font-size: 14px; letter-spacing: .05em;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.nav-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-link.active { background: var(--gold); color: #3A2400; box-shadow: 0 3px 0 var(--gold-d); text-shadow: none; }
.top-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 720px; display: flex; align-items: center; justify-content: center;
  padding: 110px 20px 120px; text-align: center; overflow: hidden;
  background: url("assets/hero.jpg") center 60% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,18,43,.15) 0%, rgba(17,18,43,.05) 50%, var(--bg) 100%); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.join-pill {
  padding: 8px 18px; border-radius: 999px; background: rgba(17,18,43,.78); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
  font-weight: 900; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
}
.join-pill .num { color: var(--gold); }
.hero-logo { width: 300px; height: 300px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.ip-box {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 26px; border: 0; cursor: pointer;
  border-radius: 14px; background: rgba(17,18,43,.88); color: #fff; box-shadow: 0 5px 0 var(--shadow), inset 0 0 0 2px rgba(255,255,255,.15);
  font: 900 20px var(--body); letter-spacing: .04em; text-transform: uppercase;
}
.ip-box small { padding: 1px 10px; border-radius: 6px; background: var(--gold); color: #3A2400; font-size: 11px; letter-spacing: .08em; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section-title { margin: 0 0 8px; text-align: center; font: 400 44px/1.1 var(--display); color: var(--gold); text-shadow: 0 4px 0 #6B4A00; }
.section-sub { margin: 0 auto 40px; max-width: 620px; text-align: center; color: var(--muted); }

.mode-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 22px; }
.mode-head h3 { margin: 0; font: 400 32px var(--display); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #17321F; color: #8CF0A0; font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #5BE07C; box-shadow: 0 0 0 3px rgba(91,224,124,.25); }
.soon-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: #3A2A12; color: #FFC46B; font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.soon-card { margin-top: 24px; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 20px; border: 3px dashed #3A3B7A; }
.soon-card h3 { margin: 0 0 4px; font: 400 24px var(--display); }
.soon-card p { margin: 0; color: var(--muted); }
.soon-ico { flex: none; width: 56px; height: 56px; border-radius: 16px; background: #2A2A5C; display: flex; align-items: center; justify-content: center; font: 400 30px var(--display); color: var(--gold); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { background: var(--panel); border-radius: 20px; box-shadow: 0 6px 0 var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 0; font: 400 24px var(--display); }
.feature p { margin: 0; color: var(--muted); }
.f-ico { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; }
.f-ico svg { width: 28px; height: 28px; }
.f-ico code { font: 900 12px var(--body); }
.ico-green { background: #5BD46E; box-shadow: 0 4px 0 #2E9440; }
.ico-purple { background: #B57BFF; box-shadow: 0 4px 0 #7240C0; }
.ico-gold { background: var(--gold); box-shadow: 0 4px 0 var(--gold-d); color: #5C3D00; }
.ico-red { background: #FF5A5A; box-shadow: 0 4px 0 #B32626; }
.ico-cyan { background: #3FC8F5; box-shadow: 0 4px 0 #1A86B0; }
.ico-pink { background: #FF6FB5; box-shadow: 0 4px 0 #C03C7E; }
.cmd { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #12133A; color: var(--gold); font-size: 14px; }

.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px; }
.split-art { flex: 0 0 auto; display: flex; justify-content: center; }
.split-text { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.split-text h2 { margin: 0; font: 400 40px/1.1 var(--display); }
.split-text p { margin: 0; color: var(--muted); }
.discord-art { width: 150px; height: 150px; border-radius: 40px; background: var(--blurple); box-shadow: 0 8px 0 var(--blurple-d); display: flex; align-items: center; justify-content: center; color: #fff; transform: rotate(-6deg); }
.discord-art svg { width: 90px; height: 90px; stroke-width: 2; }
.chest-art { width: 240px; height: 240px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }

/* ── Page header (inner pages) ────────────────────────────────── */
.page-head { text-align: center; padding: 56px 0 32px; }
.page-head h1 { margin: 0 0 8px; font: 400 52px/1.1 var(--display); color: var(--gold); text-shadow: 0 4px 0 #6B4A00; }
.page-head p { margin: 0 auto; max-width: 600px; color: var(--muted); }

/* ── Rules / legal ────────────────────────────────────────────── */
.rule-block { background: var(--panel); border-radius: 20px; box-shadow: 0 6px 0 var(--shadow); padding: 24px 28px; margin-bottom: 22px; }
.rule-block h2 { margin: 0 0 12px; font: 400 28px var(--display); display: flex; align-items: center; gap: 12px; }
.rule-block h2 .tag { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.rule-block ol, .rule-block ul { margin: 0; padding-left: 22px; color: var(--muted); }
.rule-block li { margin: 6px 0; }
.rule-block li strong, .rule-block p strong { color: #fff; }
.rule-block p { color: var(--muted); margin: 8px 0; }
.note { background: #3A2400; color: var(--gold); border-radius: 14px; padding: 14px 18px; margin-bottom: 22px; }

/* ── Vote ─────────────────────────────────────────────────────── */
.vote-list { display: flex; flex-direction: column; gap: 14px; }
.vote-card { display: flex; align-items: center; gap: 16px; background: var(--panel); border-radius: 18px; box-shadow: 0 6px 0 var(--shadow); padding: 14px 16px; color: #fff; text-decoration: none; transition: transform .15s; }
.vote-card:hover { transform: translateY(-3px); color: #fff; }
.vote-num { width: 44px; height: 44px; border-radius: 12px; background: var(--orange); box-shadow: 0 3px 0 var(--orange-d); display: flex; align-items: center; justify-content: center; font: 400 22px var(--display); }
.vote-name { flex: 1; font-size: 18px; font-weight: 900; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lb { background: var(--panel); border-radius: 18px; box-shadow: 0 6px 0 var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.lb h3 { margin: 0; font: 400 22px var(--display); }
.lb p { margin: 0; color: var(--muted); }

/* ── Staff ────────────────────────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.staff-card { --r: #8F92C6; background: var(--panel); border-radius: 20px; box-shadow: 0 6px 0 var(--shadow), inset 0 -4px 0 var(--r); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.staff-card img { height: 135px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.staff-card h3 { margin: 0; font: 400 22px var(--display); word-break: break-all; }
.rank-tag { padding: 3px 12px; border-radius: 8px; background: var(--r); color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.r-owner { --r: #C62828; } .r-manager { --r: #B04FD8; } .r-sradmin { --r: #E8542A; } .r-developer { --r: #E89A12; }
.r-admin { --r: #E53935; } .r-mod { --r: #1A9FD6; } .r-helper { --r: #2E9E4A; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { background: #0B0C22; padding: 48px 0 28px; margin-top: 0; color: var(--faint); font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.footer h4 { margin: 0 0 10px; color: #fff; font-size: 15px; }
.footer p { margin: 0 0 10px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 2px #2A2B5C; color: #fff; text-decoration: none; }
.social:hover { box-shadow: inset 0 0 0 2px var(--gold); color: #fff; }
.ip-copy { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: #fff; color: #11122B; font: 900 14px var(--body); cursor: pointer; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 2px solid #1A1B3D; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom nav { display: flex; gap: 16px; }
.footer-bottom a { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: #5BD46E; color: #0E3D17; padding: 12px 20px; border-radius: 12px; box-shadow: 0 4px 0 #2E9440; font-weight: 900; max-width: calc(100% - 32px); text-align: center; }

@media (max-width: 640px) {
  .hero { min-height: 600px; padding-top: 170px; }
  .hero-logo { width: 220px; height: 220px; }
  .section-title, .page-head h1 { font-size: 38px; }
  .ip-box { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
