/* =============================================================
   Barham Army - the look of the site
   Dark, glowing, misty style based on your reference picture.

   Easy things to change are at the top (the "tokens").
   Change a colour here and it updates everywhere.
   ============================================================= */

:root {
  --bg:        #0b0c0c;   /* page background around the frame */
  --panel:     #000000;   /* the big black frame */
  --text:      #f2f4f1;   /* main text */
  --muted:     #8a918b;   /* grey text */
  --line:      rgba(255,255,255,0.10);  /* thin borders */
  --chip:      rgba(255,255,255,0.07);  /* pill / button backgrounds */
  --glow-1:    #b9c8c0;   /* misty grey-green glow (top right) */
  --glow-2:    #8f9e88;   /* olive glow - a nod to airsoft kit */
  --radius:    22px;
  --font:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 600px at 90% 110%, #1c2420 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: 28px;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* ---------- The rounded black frame around everything ---------- */
.frame {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 18px 24px 28px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 18px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo-text { font-size: 14px; letter-spacing: 0.01em; }

.pill-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 5px 5px 14px;
}
.pill-nav a {
  font-size: 13px;
  font-weight: 500;
  color: #d7dbd6;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.pill-nav a:hover, .pill-nav a.active { color: #fff; background: rgba(255,255,255,0.06); }
.pill-nav .nav-chip { background: rgba(255,255,255,0.08); margin-left: 18px; padding: 6px 12px; }
.nav-badge {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: #000; margin-left: 4px;
}

.account-link { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.account-link:hover { color: #fff; opacity: .8; }

.menu-btn { display: none; }

/* ---------- The big hero panel ---------- */
.hero {
  position: relative;
  min-height: 620px;
  border-radius: var(--radius);
  background: #050606;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}

/* The soft, blurry glow blobs */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.glow-a {
  width: 780px; height: 560px;
  right: -140px; top: -180px;
  background: radial-gradient(closest-side, var(--glow-1), rgba(185,200,192,0.45) 55%, transparent);
  opacity: .9;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-b {
  width: 520px; height: 420px;
  left: -180px; bottom: -220px;
  background: radial-gradient(closest-side, var(--glow-2), rgba(143,158,136,0.35) 60%, transparent);
  opacity: .75;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}

/* Tiny stars/dust drawn by main.js */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .6; }

/* Falling "tracer" lines in the middle */
.tracers {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 26%;
  display: flex; justify-content: space-between;
  z-index: -1;
}
.tracers span {
  position: relative;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12));
  overflow: hidden;
}
.tracers span::after {
  content: "";
  position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: fall 3.6s linear infinite;
}
.tracers span:nth-child(2)::after { animation-delay: 1.1s; animation-duration: 4.2s; }
.tracers span:nth-child(3)::after { animation-delay: 2.3s; }
.tracers span:nth-child(4)::after { animation-delay: .6s;  animation-duration: 5s; }
.tracers span:nth-child(5)::after { animation-delay: 1.8s; animation-duration: 3.2s; }
@keyframes fall { to { top: 110%; } }

/* The connector lines */
.wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
.wires path { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Floating stats */
.stat {
  position: absolute;
  display: flex; align-items: flex-start; gap: 14px;
}
.stat-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #111; border: 1px solid var(--line);
  flex-shrink: 0;
}
.stat-icon svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-label { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat-label::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.stat-value { font-size: 11px; color: var(--muted); padding-left: 10px; }

.stat-left.stat-1  { left: 7%;  top: 18%; }
.stat-left.stat-2  { left: 5%;  top: 68%; }
.stat-right.stat-1 { right: 7%; top: 18%; flex-direction: row-reverse; text-align: right; }
.stat-right.stat-2 { right: 5%; top: 68%; flex-direction: row-reverse; text-align: right; }
.stat-right .stat-value { padding-left: 0; padding-right: 10px; }

/* Middle content */
.hero-center {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 40px 20px;
  max-width: 760px;
}
.play {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  margin-bottom: 40px;
  backdrop-filter: blur(6px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #c9f2c0; box-shadow: 0 0 10px #c9f2c0; }

h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 18px;
}
h1 .fade {
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.35) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { color: #c8ccc7; font-size: 15px; max-width: 560px; margin: 0 auto; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(20,20,20,0.9); border: 1px solid var(--line); }
.btn-ghost:hover { background: #1c1c1c; }
.btn-solid { background: #fff; color: #000; }
.btn-solid:hover { background: #e6e8e4; }

/* Bottom-left "scroll down" and bottom-right corner */
.scroll-hint {
  position: absolute; left: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.scroll-icon {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: #000; font-size: 13px;
}
.hero-corner { position: absolute; right: 32px; bottom: 30px; }
.hero-corner p { font-size: 13px; color: #d7dbd6; margin-bottom: 12px; }
.bars { display: flex; gap: 4px; }
.bars i { width: 26px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.12); }
.bars i.on { width: 14px; background: #fff; }

/* ---------- The strip under the hero ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 56px;
  padding: 34px 10px 6px;
}
.logo-strip span {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em;
  color: #6d746e;
  transition: color .2s;
}
.logo-strip span:hover { color: #fff; }

/* ---------- Inner pages (Games, About, FAQ, Join) ---------- */
.page {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  background: #050606;
  overflow: hidden;
  isolation: isolate;
  padding: 70px 48px 60px;
}
.page .glow-a { opacity: .55; }
.page .glow-b { opacity: .5; }
.page-head { max-width: 640px; margin-bottom: 44px; }
.page-head .lead { margin: 0; }
.page-center { display: grid; place-items: center; text-align: center; }
.page-center .page-head { margin: 0 auto; }
.page-center .lead { margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.card h2 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin: 14px 0 4px; }
.card p { font-size: 14px; color: #c8ccc7; }
.card .muted, .muted { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.date { font-size: 12px; color: var(--muted); }
.num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.faq { max-width: 720px; display: grid; gap: 10px; }
.faq details {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-size: 20px; font-weight: 300; transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { color: #c8ccc7; font-size: 14px; margin-top: 10px; }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--muted);
  padding: 26px 6px 0;
}
.footer a:hover { color: #fff; }

/* ---------- Phones and small screens ---------- */
@media (max-width: 900px) {
  .stat, .wires { display: none; }        /* hide floating stats on small screens */
  .hero-corner { display: none; }
}
@media (max-width: 760px) {
  body { padding: 10px; }
  .frame { padding: 14px 12px 20px; border-radius: 22px; }
  .account-link { display: none; }
  .menu-btn {
    display: grid; gap: 5px; place-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid var(--line);
    cursor: pointer;
  }
  .menu-btn span { display: block; width: 16px; height: 1.5px; background: #fff; }
  .topbar { flex-wrap: wrap; }
  .pill-nav {
    display: none;
    width: 100%; flex-direction: column; align-items: stretch;
    border-radius: 18px; padding: 8px;
  }
  .pill-nav.open { display: flex; }
  .pill-nav .nav-chip { margin-left: 0; }
  .nav-badge { display: none; }
  .hero { min-height: 560px; }
  .play { margin-bottom: 24px; }
  .page { padding: 48px 20px 40px; }
  .logo-strip { gap: 14px 28px; }
  .logo-strip span { font-size: 15px; }
}

/* Respect people who turn animations off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
