:root{
  --bg:#060a14;
  --panel:#0b1224;
  --panel2:#0a0f1f;
  --text:#e7ecff;
  --muted:#9fb0d1;
  --accent:#4aa3ff;
  --accent2:#7cf4c7;
  --danger:#ff5c7a;
  --warn:#ffd36e;
  --radius:18px;
  --shadow:0 20px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 70% 0%, rgba(74,163,255,.18), transparent 60%),
              radial-gradient(900px 500px at 10% 20%, rgba(124,244,199,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit}
.container{width:min(1100px, 92vw); margin: 30px auto 60px;}

.siteHeader{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(6,10,20,.65);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.headerInner{
  width:min(1100px, 92vw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.brandMark{
  width:44px; height:44px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(74,163,255,.45), rgba(124,244,199,.25));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-weight:800;
}
.brandText{display:flex; flex-direction:column; line-height:1.1}
.brandTitle{font-weight:800; letter-spacing:.2px}
.brandSub{font-size:.85rem; color:var(--muted)}

.menuBtn{
  display:none;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(11,18,36,.55);
  color:var(--text);
  cursor:pointer;
}
.menuIcon{
  width:18px; height:2px; background: var(--text);
  position:relative;
}
.menuIcon::before,.menuIcon::after{
  content:"";
  position:absolute; left:0;
  width:18px; height:2px; background: var(--text);
}
.menuIcon::before{top:-6px}
.menuIcon::after{top:6px}

.nav{
  display:flex; align-items:center;
  gap:14px;
}
.nav a{
  text-decoration:none;
  color: var(--muted);
  padding:10px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.nav .navAdmin{
  color: var(--text);
  background: rgba(74,163,255,.18);
  border: 1px solid rgba(74,163,255,.22);
}

.hero{
  width:100%;
  padding: 18px 0 0;
}
.heroSlides{
  width:min(1100px, 92vw);
  margin:0 auto;
  border-radius: calc(var(--radius) + 8px);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
  position:relative;
  height: clamp(320px, 46vh, 540px);
  background: #000;
}
.heroSlide{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  opacity:0;
  transform: scale(1.02);
  transition: opacity .6s ease, transform 1.2s ease;
  z-index: 1;
}
.heroSlide.isActive{
  opacity:1;
  transform: scale(1);
}
.heroOverlay{
  position:absolute; inset:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding: 22px;
  background: linear-gradient( to top, rgba(6,10,20,.82), rgba(6,10,20,.18) 55%, rgba(6,10,20,.05));
  z-index: 5;
}
.heroCopy{
  max-width: 680px;
}
.heroCopy h1{
  margin: 0 0 8px;
  font-size: clamp(2.0rem, 3.2vw, 3.1rem);
  letter-spacing: .2px;
}
.heroCopy p{
  margin:0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}
.heroButtons{display:flex; gap:10px; flex-wrap:wrap;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(74,163,255,.20);
  text-decoration:none;
  font-weight:700;
}
.btn:hover{background: rgba(74,163,255,.28)}
.btnGhost{
  background: rgba(11,18,36,.55);
}
.btnGhost:hover{background: rgba(255,255,255,.08)}

.heroCaption{
  align-self:flex-start;
  max-width:min(900px, 96%);
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(6,10,20,.55);
  color: var(--text);
  font-size: .95rem;
}

.heroControls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.heroCtrl{
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(6,10,20,.55);
  color: var(--text);
  font-size: 28px;
  cursor:pointer;
}
.heroCtrl:hover{background: rgba(255,255,255,.10)}
.heroDots{
  display:flex; gap:8px; align-items:center; justify-content:center; flex:1;
}
.heroDot{
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.25);
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
}
.heroDot.isActive{
  background: rgba(74,163,255,.85);
}

.card{
  background: linear-gradient(180deg, rgba(11,18,36,.78), rgba(10,15,31,.62));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 18px 0;
}
.card h2{
  margin:0 0 10px;
  font-size: 1.35rem;
}
.small{color: var(--muted); font-size: .93rem}

/* ---------- Stats page ---------- */
.chartWrap{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}

#playersChart{
  width: 100%;
  height: auto;
  display: block;
}

.tableWrap{
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
}

.table{
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td{
  text-align: left;
  padding: .75rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table th{color: rgba(255,255,255,0.85); font-weight: 700}

.pill{
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.20);
  font-size: .85rem;
}
.rules{padding-left: 18px; color: var(--text)}
.bullets{padding-left: 18px; color: var(--text)}
.ctaRow{display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px}

.statusList{padding-left:18px; margin:0}

/* Status block (home page) */
.statusGrid{display:grid; gap: 14px; margin:0}
/* Two-column layout for clean spacing between label and value */
.statusRow{
  display:grid;
  grid-template-columns: 180px auto;
  align-items:center;
  column-gap: 22px;
  row-gap: 12px;
  padding: 4px 0;
}
.statusKey{color: rgba(255,255,255,0.85); font-weight: 700}

@media (max-width: 520px){
  .statusRow{grid-template-columns: 1fr;}
}

.statusBadge{
  display:inline-flex;
  width: fit-content;
  justify-self: start;
  align-items:center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.statusOnline{background: rgba(124,244,199,.16); border-color: rgba(124,244,199,.28)}
.statusOffline{background: rgba(255,92,122,.14); border-color: rgba(255,92,122,.28)}
.statusUnknown{background: rgba(255,211,110,.14); border-color: rgba(255,211,110,.28)}

.footer{margin-top: 22px; text-align:center}

/* Mobile nav */
@media (max-width: 860px){
  .menuBtn{display:inline-flex}
  .nav{
    position:absolute;
    top: 64px;
    right: 4vw;
    left: 4vw;
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(6,10,20,.92);
    border:1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
    display:none;
  }
  .nav.isOpen{display:flex}
  .nav a{padding: 12px 12px}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .heroSlide{transition:none}
  .nav a{transition:none}
  .btn{transition:none}
}

/* --------------------------------------------------
   Static page hero (About / How to Join)
-------------------------------------------------- */
.pageHero {
  position: relative;
  height: clamp(320px, 52vh, 520px);
  border-radius: 18px;
  overflow: hidden;
  margin: 24px auto 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.pageHero .bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}
.pageHero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.25) 55%, rgba(0,0,0,.35));
}
.pageHero .inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 28px;
}
.pageHero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
}
.pageHero p {
  margin: 0;
  color: rgba(255,255,255,.86);
  max-width: 70ch;
}
.pageHero .badgeRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.9);
  font-size: 14px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}

/* Discord page helpers */
.discordWidget{
  width: 100%;
  max-width: 520px;
}

.discordWidget iframe{
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 16px;
}
