/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== TOKENS ===== */
:root {
  --bg: #0e0e0e;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --fg: #e8e8e8;
  --fg-dim: #888;
  --accent: #39ff14;
  --accent-dim: rgba(57, 255, 20, 0.15);
  --accent-glow: rgba(57, 255, 20, 0.08);
  --grave-dirt: #2a1f14;
  --grave-rim: #3d3020;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Creepster', cursive;
  --font-body: 'Barlow Condensed', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(57,255,20,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(57,255,20,0.02) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0a0a0a 100%);
  z-index: 0;
}

/* subtle noise texture via SVG filter */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  border: 1px solid rgba(57,255,20,0.25);
  padding: 6px 14px;
  border-radius: 2px;
  background: var(--accent-dim);
  width: fit-content;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hero-title .accent {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(57,255,20,0.4);
}

.hero-tagline {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 17px;
  font-weight: 400;
  color: var(--fg-dim);
  max-width: 420px;
  line-height: 1.7;
}

/* ===== GRAVE ARENA ===== */
.grave-arena {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}

.arena-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.grave-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.grave-hole {
  position: relative;
  aspect-ratio: 1;
  background: var(--grave-dirt);
  border-radius: 8px;
  border: 2px solid var(--grave-rim);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}

.grave-hole:hover {
  border-color: var(--accent);
}

.grave-dirt {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--grave-dirt), #1e1610);
  z-index: 1;
}

.grave-hole::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.6);
  z-index: 2;
  pointer-events: none;
}

/* ===== ZOMBIE ===== */
.zombie {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 70%;
  height: 80%;
  z-index: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.z-up {
  transform: translateX(-50%) translateY(10%);
  animation: zombieUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay, 0s) both;
}

.z-down {
  transform: translateX(-50%) translateY(100%);
}

@keyframes zombieUp {
  from { transform: translateX(-50%) translateY(100%); }
  to { transform: translateX(-50%) translateY(10%); }
}

.zom-head {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 28%;
  background: #5a8a5a;
  border-radius: 50% 50% 45% 45%;
  border: 2px solid #3d5c3d;
}

.zom-head::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 18%;
  width: 18%;
  height: 20%;
  background: #1a1a1a;
  border-radius: 50%;
  box-shadow: calc(18px * 1) 0 0 #1a1a1a;
}

.zom-head::after {
  content: '';
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 1px;
}

.zom-body {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 35%;
  background: #3a3a4a;
  border-radius: 4px 4px 8px 8px;
  border: 2px solid #2a2a35;
}

.zom-arm-l, .zom-arm-r {
  position: absolute;
  top: 35%;
  width: 20%;
  height: 40%;
  background: #4a6a4a;
  border-radius: 6px;
  border: 1px solid #3d5c3d;
}

.zom-arm-l {
  left: -5%;
  transform: rotate(15deg);
  transform-origin: top right;
}

.zom-arm-r {
  right: -5%;
  transform: rotate(-15deg);
  transform-origin: top left;
}

/* ===== SCORE ROW ===== */
.score-row {
  display: flex;
  gap: 12px;
}

.score-pill {
  flex: 1;
  background: var(--accent-dim);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(57,255,20,0.6);
  text-transform: uppercase;
}

.score-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

/* ===== CTA BUTTON ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 6px;
  width: fit-content;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 0 24px rgba(57,255,20,0.25);
}
.btn-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(57,255,20,0.4);
}
.btn-cta:active { transform: translateY(0); }

/* ===== STATS BAR ===== */
.stats {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 64px;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 30px rgba(57,255,20,0.3);
}

.stat-unit {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
}

.stat-label {
  font-size: 13px;
  color: var(--fg-dim);
  opacity: 0.7;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 48px;
  background: var(--bg);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 64px;
  max-width: 600px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  padding: 40px 36px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(57,255,20,0.15);
  border-radius: 8px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.7;
  font-weight: 400;
}

/* ===== GAMEPLAY SECTION ===== */
.gameplay {
  padding: 120px 48px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.gameplay-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.gameplay-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gameplay-left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  color: var(--fg);
  line-height: 1.15;
}

.gameplay-left > p {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 460px;
}

.gameplay-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.detail-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-key {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
  min-width: 100px;
}

.detail-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

/* ===== ROUND DISPLAY ===== */
.round-display {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 20px;
}

.round-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.round-number {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 40px rgba(57,255,20,0.3);
  margin-bottom: 20px;
}

.round-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.round-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(57,255,20,0.5);
}

.round-meta {
  font-size: 13px;
  color: var(--fg-dim);
  font-weight: 500;
}

.wave-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wave-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.wave-key {
  font-size: 13px;
  color: var(--fg-dim);
  font-weight: 500;
}

.wave-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.accent-green {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(57,255,20,0.4);
}

/* ===== CLOSING ===== */
.closing {
  padding: 160px 48px;
  background: var(--bg);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.closing-mist {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(57,255,20,0.03), transparent);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.closing-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 60px);
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 40px;
  text-shadow: 0 0 60px rgba(57,255,20,0.1);
}

.closing-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 48px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-dim);
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 48px;
  }

  .grave-arena {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gameplay-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-inner {
    padding: 0 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat {
    padding: 32px 40px;
  }

  .features, .gameplay, .closing {
    padding: 80px 24px;
  }

  .footer {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .stat {
    padding: 24px 28px;
  }

  .stat-num {
    font-size: 40px;
  }

  .hero-title {
    font-size: 72px;
  }

  .round-number {
    font-size: 56px;
  }
}