:root {
  --bg: #050505;
  --bg-2: #0c0f08;
  --ink: #f4f7ef;
  --muted: #8a937a;
  --lime: #c6ff1a;
  --lime-dim: rgba(198, 255, 26, 0.18);
  --line: rgba(244, 247, 239, 0.12);
  --font-display: "Oxanium", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-mono);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(198, 255, 26, 0.12), transparent 55%),
    radial-gradient(900px 500px at 80% 110%, rgba(198, 255, 26, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 45%, #030403);
  overflow-x: hidden;
}

.ash,
.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.ash {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(198, 255, 26, 0.55), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1.5px 1.5px at 61% 34%, rgba(198, 255, 26, 0.4), transparent),
    radial-gradient(1px 1px at 78% 58%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 88% 22%, rgba(198, 255, 26, 0.35), transparent),
    radial-gradient(1px 1px at 44% 88%, rgba(255, 255, 255, 0.18), transparent);
  animation: drift 18s linear infinite;
  opacity: 0.7;
}

.scan {
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-40px);
  }
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3.5rem) 0 clamp(1.25rem, 3vh, 2rem);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-content: center;
  gap: clamp(1.5rem, 4vh, 3rem);
}

.brand {
  text-align: center;
}

.logo {
  display: block;
  width: min(520px, 86vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(198, 255, 26, 0.18));
  animation: brandIn 0.9s ease-out both;
}

.tagline {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  letter-spacing: 0.04em;
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.meters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  animation: fadeUp 0.9s ease-out 0.25s both;
}

.meter {
  text-align: center;
  min-width: 0;
}

.label {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(244, 247, 239, 0.08);
  transition: color 0.25s ease;
}

.value.accent {
  color: var(--lime);
  text-shadow: 0 0 42px rgba(198, 255, 26, 0.25);
}

.value.flash {
  animation: tickFlash 0.45s ease;
}

.value.counting {
  color: var(--lime);
  text-shadow: 0 0 36px rgba(198, 255, 26, 0.35);
}

.sub {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
}

.divider {
  width: 1px;
  height: clamp(4.5rem, 14vw, 7rem);
  background: linear-gradient(180deg, transparent, var(--lime), transparent);
  opacity: 0.55;
  align-self: center;
}

.progress-wrap {
  animation: fadeUp 0.9s ease-out 0.35s both;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.track {
  height: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7a9e00, var(--lime));
  box-shadow: 0 0 18px rgba(198, 255, 26, 0.45);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  animation: fadeUp 0.9s ease-out 0.45s both;
}

.foot a,
.how-btn {
  color: var(--ink);
  text-decoration: none;
  border: none;
  border-bottom: 1px solid var(--lime-dim);
  background: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot a:hover,
.how-btn:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.how-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.how-root[hidden] {
  display: none;
}

.how-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.how-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(82dvh, 720px);
  overflow: auto;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(198, 255, 26, 0.06), transparent 28%),
    #090b07;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: howIn 0.28s ease-out;
}

.how-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.how-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.how-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.how-close:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: var(--lime-dim);
}

.how-body {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.how-lead {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.how-body h3 {
  margin: 1.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.how-body p {
  margin: 0;
}

.how-body ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.how-body li {
  margin: 0.25rem 0;
}

.how-body strong {
  color: var(--ink);
  font-weight: 600;
}

@keyframes howIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.how-open {
  overflow: hidden;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 255, 26, 0.55);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 255, 26, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(198, 255, 26, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 255, 26, 0);
  }
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tickFlash {
  0% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(1.45);
  }
  100% {
    filter: brightness(1);
  }
}

@media (max-width: 720px) {
  .meters {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .divider {
    width: min(220px, 70%);
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--lime), transparent);
  }

  .value {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ash,
  .logo,
  .tagline,
  .meters,
  .progress-wrap,
  .foot,
  .live i,
  .value.flash,
  .how-panel {
    animation: none;
  }

  .fill {
    transition: none;
  }
}
