:root {
  --bg: #0c100a;
  --panel: #161e14;
  --line: #3a5234;
  --goo: #8ae85a;
  --goo-dim: #5cb840;
  --text: #f0ffe8;
  --muted: #8aaa7a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

body {
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(125, 255, 74, 0.08), transparent 55%),
    radial-gradient(700px 420px at 110% 10%, rgba(80, 160, 90, 0.08), transparent 50%),
    var(--bg);
}

a { color: var(--goo); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  font-size: 1.05rem;
}

.site-nav nav { display: flex; gap: 18px; }
.site-nav nav a { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.site-nav nav a[aria-current="page"],
.site-nav nav a:hover { color: var(--text); text-decoration: none; }

.hero {
  min-height: calc(100dvh - 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 80px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(3.4rem, 12vw, 7rem);
  letter-spacing: 0.12em;
  line-height: 0.9;
}

.hero p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
}

.play-btn {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 999px;
  background: var(--goo);
  color: #102010;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 40px rgba(125, 255, 74, 0.2);
}

.play-btn:hover { text-decoration: none; filter: brightness(1.06); }

.latest {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.page-title {
  margin: 28px 0 8px;
  font-size: 2rem;
}

.lede {
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.5;
}

.log-list { display: grid; gap: 14px; }

.log-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 30, 20, 0.72);
  color: inherit;
}

.log-card:hover { border-color: var(--goo-dim); text-decoration: none; }

.log-card time,
.post-meta time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.log-card h2,
.log-card h3 {
  margin: 6px 0 8px;
  font-size: 1.15rem;
}

.log-card p { margin: 0; color: var(--muted); line-height: 1.45; }

article.post h1 { margin: 18px 0 8px; font-size: 2rem; line-height: 1.15; }
article.post p,
article.post li { line-height: 1.65; color: #d8f0cc; }
article.post p { margin: 0 0 16px; }
article.post ul { padding-left: 1.2rem; }
article.post h2 { margin: 28px 0 10px; font-size: 1.2rem; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-foot {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-log { max-width: 760px; margin: -40px auto 0; padding: 0 24px 80px; }
.home-log h2 { font-size: 1rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* COD-style loadout home */
body.loadout {
  height: 100dvh;
  overflow: hidden;
  background: #07080a;
  color: #f4f1e8;
  user-select: none;
}
body.loadout .lo-stage {
  position: fixed;
  top: 0;
  left: 0;
  right: min(380px, 42vw);
  bottom: 0;
  z-index: 0;
  background: #1c1914;
}
body.loadout .lo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
body.loadout .lo-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,10,8,0.28) 0%, transparent 32%, transparent 70%, rgba(12,10,8,0.5) 100%),
    linear-gradient(180deg, rgba(12,10,8,0.22) 0%, transparent 22%, transparent 70%, rgba(12,10,8,0.35) 100%);
  pointer-events: none;
}
body.loadout .lo-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.18;
  pointer-events: none;
}
body.loadout .lo-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 22px 0;
}
body.loadout .lo-top .logo {
  font-family: "Barlow Condensed", "Space Grotesk", sans-serif;
  letter-spacing: 0.28em;
  font-size: 1.15rem;
  font-weight: 800;
}
body.loadout .lo-top nav { display: flex; gap: 18px; }
body.loadout .lo-coins {
  margin-left: auto;
  margin-right: 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #c8a45a;
  font-size: 0.85rem;
}
body.loadout .lo-top nav a {
  color: rgba(244,241,232,0.62);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
body.loadout .lo-top nav a:hover { color: #fff; }

body.loadout .lo-nameplate {
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  top: max(52px, calc(env(safe-area-inset-top) + 44px));
  bottom: auto;
  z-index: 3;
  pointer-events: none;
}
body.loadout .lo-op,
body.loadout .lo-kicker,
body.loadout .lo-slot-label {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8a45a;
  font-size: 0.72rem;
}
body.loadout .lo-nameplate h1 {
  margin: 2px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: 0.1em;
  line-height: 0.88;
  text-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
body.loadout .lo-weapon,
body.loadout .lo-skin {
  margin: 2px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: #8ae85a;
}
body.loadout .lo-skin { color: #c8a45a; font-size: 0.82rem; }

body.loadout .lo-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: min(380px, 42vw);
  padding: 72px 22px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10,12,14,0.28) 0%, rgba(8,10,12,0.78) 100%);
  border-left: 1px solid rgba(200,164,90,0.22);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  overflow: auto;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}
body.loadout .lo-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
body.loadout .lo-tabs button {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8,10,12,0.45);
  color: rgba(244,241,232,0.6);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 4px;
  cursor: pointer;
}
body.loadout .lo-tabs button.on {
  color: #102010;
  background: #8ae85a;
  border-color: #8ae85a;
}
body.loadout .lo-pane { display: none; }
body.loadout .lo-pane.on { display: block; }
body.loadout .lo-mode,
body.loadout .lo-skin-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  padding: 12px 12px 12px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8,10,12,0.55);
  color: #f4f1e8;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
}
body.loadout .lo-mode.slim { grid-template-columns: 1fr; }
body.loadout .lo-mode.featured {
  border-color: rgba(200, 164, 90, 0.35);
  background: rgba(40, 32, 22, 0.72);
  padding-top: 14px;
  padding-bottom: 14px;
}
body.loadout .lo-online {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(255, 230, 200, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
body.loadout .lo-mode:hover,
body.loadout .lo-skin-card:hover { border-color: rgba(200,164,90,0.45); }
body.loadout .lo-skin-card {
  grid-template-columns: 1fr;
  gap: 2px;
}
body.loadout .lo-skin-card.on {
  border-color: #c8a45a;
  box-shadow: inset 3px 0 0 #c8a45a;
}
body.loadout .lo-skin-card b {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.loadout .lo-skin-card small,
body.loadout .lo-skin-tag,
body.loadout .lo-price {
  color: rgba(244,241,232,0.55);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.loadout .lo-price { color: #8ae85a; }
body.loadout .lo-price s { color: rgba(244,241,232,0.35); margin-right: 6px; }
body.loadout .lo-join {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
body.loadout .lo-join input {
  flex: 1;
  min-width: 0;
  background: rgba(8,10,12,0.7);
  border: 1px solid rgba(200,164,90,0.35);
  color: #f4f1e8;
  font: 800 1.1rem "Barlow Condensed", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 12px;
}
body.loadout .lo-join-go {
  background: #8ae85a;
  color: #102010;
  border: 0;
  font: 800 0.95rem "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 14px;
  cursor: pointer;
}
body.loadout .lo-priv-hint { color: #c8a45a; font-size: 0.8rem; min-height: 1.2em; }
body.loadout .lo-slot-label {
  margin: 10px 0 12px;
  color: rgba(244,241,232,0.55);
}
body.loadout .lo-guns {
  display: grid;
  gap: 8px;
}
body.loadout .lo-gun {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 12px 12px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8,10,12,0.55);
  color: #f4f1e8;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-family: "Barlow Condensed", sans-serif;
}
body.loadout .lo-gun:hover { border-color: rgba(200,164,90,0.45); }
body.loadout .lo-gun.on {
  border-color: #c8a45a;
  background: linear-gradient(90deg, rgba(200,164,90,0.22), rgba(8,10,12,0.7));
  box-shadow: inset 3px 0 0 #c8a45a;
}
body.loadout .lo-num {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c8a45a;
  font-size: 0.95rem;
}
body.loadout .lo-gun-copy { display: flex; flex-direction: column; }
body.loadout .lo-gun-copy b {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.loadout .lo-gun-copy small {
  color: rgba(244,241,232,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.loadout .lo-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 52px;
}
body.loadout .lo-bars i {
  display: block;
  height: 3px;
  background: rgba(255,255,255,0.12);
  position: relative;
}
body.loadout .lo-bars i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--v);
  background: #8ae85a;
}
body.loadout .lo-gun.on .lo-bars i::after { background: #c8a45a; }
body.loadout .lo-blurb {
  margin: 14px 0 auto;
  color: rgba(244,241,232,0.7);
  font-size: 0.92rem;
}
body.loadout .lo-deploy {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  height: 56px;
  background: #8ae85a;
  color: #102010;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 10px 40px rgba(138,232,90,0.25);
}
body.loadout .lo-deploy:hover { filter: brightness(1.08); text-decoration: none; }

@media (max-width: 820px) {
  body.loadout .lo-stage {
    right: 0;
    bottom: 158px;
  }
  body.loadout .lo-nameplate {
    left: 18px;
    top: max(48px, calc(env(safe-area-inset-top) + 40px));
  }
  body.loadout .lo-nameplate h1 { font-size: 1.8rem; }
  body.loadout .lo-panel {
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    clip-path: none;
    border-left: 0;
    border-top: 1px solid rgba(200,164,90,0.22);
    padding: 14px 14px max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(8,10,12,0.2), rgba(8,10,12,0.92));
  }
  body.loadout .lo-kicker { display: none; }
  body.loadout .lo-guns {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  body.loadout .lo-gun {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 8px;
    text-align: center;
  }
  body.loadout .lo-num { display: none; }
  body.loadout .lo-bars { display: none; }
  body.loadout .lo-blurb { display: none; }
  body.loadout[data-tab="shop"] .lo-stage,
  body.loadout[data-tab="play"] .lo-stage { bottom: 200px; }
  body.loadout .lo-skins { max-height: 28vh; overflow: auto; }
  body.loadout .lo-panel {
    max-height: min(42vh, 280px);
    overflow-y: auto;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }
  body.loadout .lo-mode {
    padding: 8px 9px;
    margin-bottom: 5px;
    grid-template-columns: 28px 1fr;
    gap: 7px;
  }
  body.loadout .lo-mode.featured {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  body.loadout .lo-mode b { font-size: 0.82rem; }
  body.loadout .lo-mode small { font-size: 0.62rem; }
  body.loadout .lo-gun-copy b { font-size: 1rem; }
  body.loadout .lo-gun-copy small { font-size: 0.64rem; }
  body.loadout .lo-online {
    padding: 7px;
    margin-bottom: 6px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  body.loadout .lo-panel {
    max-height: min(48vh, 220px);
  }
  body.loadout .lo-mode small { display: none; }
  body.loadout[data-tab="shop"] .lo-stage,
  body.loadout[data-tab="play"] .lo-stage { bottom: 160px; }
}
