:root{
  --bg0:#05060a;
  --bg1:#0a0b14;
  --card:#0f1222cc;
  --card2:#0b0e1bcc;
  --stroke:#2a2e4a;
  --text:#e9eaff;
  --muted:#b8bbda;
  --purple:#8B5CF6;
  --pink:#EC4899;
  --cyan:#22d3ee;
  --green:#22c55e;
  --gold:#fbbf24;
  --red:#ef4444;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 14px;
  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 0%, rgba(139,92,246,.18), transparent 55%),
              radial-gradient(900px 700px at 80% 10%, rgba(236,72,153,.16), transparent 55%),
              radial-gradient(900px 700px at 50% 100%, rgba(34,211,238,.10), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; }
.container{ width:min(var(--container), calc(100% - 32px)); margin:0 auto; }

/* subtle "minecraft-ish" pixel edges */
.pixel-card{
  position:relative;
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20,22,40,.72), rgba(10,12,28,.68));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.pixel-card::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    linear-gradient(90deg, rgba(139,92,246,.18), rgba(236,72,153,.14), rgba(34,211,238,.10));
  filter: blur(24px);
  opacity:.6;
  z-index:0;
}
.pixel-card > *{ position:relative; z-index:1; }

/* top nav */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(6,7,12,.70);
  border-bottom:1px solid rgba(42,46,74,.55);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.4px;
}
.brand .logo{
  width:34px; height:34px;
  border-radius:10px;
  border:1px solid rgba(42,46,74,.8);
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.9), rgba(236,72,153,.55) 40%, rgba(0,0,0,.25) 70%);
  box-shadow: 0 10px 30px rgba(139,92,246,.18);
}
.brand .text span{
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.nav-links{
  display:flex;
  gap:14px;
  align-items:center;
}
.nav-links a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
  font-weight:600;
  transition: all .18s ease;
}
.nav-links a:hover{ background: rgba(255,255,255,.05); color:var(--text); }
.nav-links a.active{
  background: rgba(139,92,246,.16);
  color: var(--text);
  border:1px solid rgba(139,92,246,.25);
}
.nav-actions{ display:flex; gap:10px; align-items:center; }

/* mobile menu */
.burger{
  display:none;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(42,46,74,.7);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.burger:active{ transform: translateY(1px); }
.mobile-drawer{
  display:none;
  padding:12px 0 16px;
  border-top:1px solid rgba(42,46,74,.4);
}
.mobile-drawer a{
  display:block;
  padding:10px 0;
  color:var(--muted);
  font-weight:700;
}
.mobile-drawer a:hover{ color:var(--text); }

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(42,46,74,.7);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:800;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  user-select:none;
  cursor:pointer;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.btn:active{ transform: translateY(0px); }
.btn.primary{
  border-color: rgba(139,92,246,.55);
  background: linear-gradient(90deg, rgba(139,92,246,.34), rgba(236,72,153,.26));
}
.btn.discord{
  border-color: rgba(88,101,242,.55);
  background: linear-gradient(90deg, rgba(88,101,242,.30), rgba(139,92,246,.18));
}
.btn.shop{
  border-color: rgba(34,197,94,.55);
  background: linear-gradient(90deg, rgba(34,197,94,.22), rgba(34,211,238,.14));
}
.btn.small{ padding:10px 12px; border-radius: 12px; font-weight:800; }
.btn.wide{ width:100%; }

/* hero */
.hero{
  position:relative;
  padding: 56px 0 36px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:stretch;
}
.h-title{
  font-family: "Press Start 2P", Inter, system-ui, sans-serif;
  line-height:1.3;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 14px;
  text-shadow: 0 10px 22px rgba(0,0,0,.55);
}
.h-title .grad{
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.h-sub{
  color: var(--muted);
  margin:0 0 18px;
  font-size: 16px;
  line-height: 1.6;
}
.hero-kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top: 18px;
}
.kpi{
  border:1px solid rgba(42,46,74,.6);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 12px 12px;
}
.kpi .label{ color:var(--muted); font-weight:700; font-size:12px; }
.kpi .value{ font-weight:900; font-size:16px; margin-top: 6px; }

/* sections */
.section{
  padding: 18px 0 46px;
}
.section h2{
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing:.2px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.card{
  border:1px solid rgba(42,46,74,.55);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding: 16px;
  overflow:hidden;
}
.card h3{ margin:0 0 8px; font-size:16px; }
.card p{ margin:0; color:var(--muted); line-height:1.55; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(42,46,74,.6);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:800;
  font-size:12px;
}
.badge.dot::before{
  content:"";
  width:8px; height:8px;
  border-radius:999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(34,211,238,.45);
}

/* discord embed wrapper */
.discord-embed{
  border:1px solid rgba(88,101,242,.45);
  background: rgba(88,101,242,.08);
  border-radius: var(--radius);
  padding: 14px;
}
.discord-embed iframe{
  width:100%;
  height: 430px;
  border:0;
  border-radius: 14px;
  overflow:hidden;
}

/* staff */
.staff-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.staff-card{
  border:1px solid rgba(42,46,74,.55);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding: 14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.staff-card:hover{
  transform: translateY(-2px);
  border-color: rgba(139,92,246,.40);
  background: rgba(255,255,255,.04);
}
.avatar{
  width:46px; height:46px;
  border-radius: 14px;
  border:1px solid rgba(42,46,74,.7);
  background: rgba(255,255,255,.03);
}
.staff-info{ flex:1; min-width:0; }
.staff-name{ font-weight:900; margin:0; }
.staff-desc{ margin:6px 0 0; color:var(--muted); font-size: 13px; line-height:1.45; }
.rank{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius: 12px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(42,46,74,.7);
  background: rgba(255,255,255,.03);
}
.rank.owner{
  color: #ffffff;
  border-color: rgba(251,191,36,.55);
  background: linear-gradient(90deg, rgba(251,191,36,.22), rgba(236,72,153,.12));
  box-shadow: 0 0 24px rgba(251,191,36,.12);
}
.rank.admin{
  color:#e9eaff;
  border-color: rgba(239,68,68,.50);
  background: linear-gradient(90deg, rgba(239,68,68,.18), rgba(139,92,246,.10));
}
.rank.moderator{
  border-color: rgba(34,211,238,.55);
  background: linear-gradient(90deg, rgba(34,211,238,.14), rgba(139,92,246,.10));
}
.rank.supporter{
  border-color: rgba(34,197,94,.55);
  background: linear-gradient(90deg, rgba(34,197,94,.14), rgba(34,211,238,.10));
}

/* faq / rules */
.acc{
  border:1px solid rgba(42,46,74,.55);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  overflow:hidden;
}
.acc details{
  border-bottom:1px solid rgba(42,46,74,.45);
  padding: 0;
}
.acc details:last-child{ border-bottom:0; }
.acc summary{
  list-style:none;
  cursor:pointer;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
}
.acc summary::-webkit-details-marker{ display:none; }
.acc .content{
  padding: 0 14px 14px;
  color: var(--muted);
  line-height:1.55;
}

/* footer */
.footer{
  padding: 28px 0 38px;
  border-top:1px solid rgba(42,46,74,.45);
  background: rgba(0,0,0,.10);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}
.footer small{ color:var(--muted); }
.footer .links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer .links a{
  color: var(--muted);
  font-weight:800;
  padding: 8px 10px;
  border-radius: 12px;
}
.footer .links a:hover{ color: var(--text); background: rgba(255,255,255,.05); }

/* toast */
.toast{
  position:fixed;
  left:50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(10,12,28,.88);
  border:1px solid rgba(42,46,74,.6);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow: var(--shadow);
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(-4px);
}
.toast .pill{
  font-size:12px;
  font-weight:900;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(139,92,246,.40);
  background: rgba(139,92,246,.16);
}
.toast .msg{ color: var(--text); font-weight:800; }

/* canvas bg */
#stars{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:-1;
  opacity:.7;
}

/* responsive */
@media (max-width: 840px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .staff-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer .links{ justify-content:flex-start; }
}
@media (max-width: 720px){
  .nav-links{ display:none; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
  .mobile-drawer{ display:block; }
  .hero-kpis{ grid-template-columns: 1fr; }
  .staff-grid{ grid-template-columns: 1fr; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
