:root {
  --bg-deep: #010402;
  --bg: #041008;
  --panel: #0a1a10;
  --panel-soft: rgba(8, 24, 14, 0.92);
  --line: #1a4a28;
  --line-soft: rgba(26, 74, 40, 0.55);
  --green: #2dff7a;
  --green-dim: #18b855;
  --green-glow: rgba(45, 255, 122, 0.22);
  --mint: #a8f5c8;
  --amber: #f0c040;
  --red: #ff3d5a;
  --red-soft: rgba(255, 61, 90, 0.12);
  --muted: #6a9478;
  --text: #d4ffe4;
  --black: #000;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius: 2px;
  --max: 960px;
  --font: "Cascadia Code", "Fira Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--green);
  color: var(--bg-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}

.skip-link:focus {
  left: 0.75rem;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(255, 61, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 90%, rgba(45, 255, 122, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 5% 60%, rgba(45, 255, 122, 0.05), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, #052010 100%);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 6px
  );
  z-index: 0;
  opacity: 0.35;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) clamp(1rem, 4vw, 1.75rem) 4.5rem;
}

/* —— Music control —— */
.music-bar {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(4, 16, 8, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 20px var(--green-glow);
  animation: rise-in 0.6s ease both;
}

.music-toggle {
  appearance: none;
  border: 1px solid var(--green);
  background: rgba(45, 255, 122, 0.12);
  color: var(--green);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.music-toggle:hover {
  background: var(--green);
  color: var(--bg-deep);
  transform: scale(1.04);
}

.music-toggle .icon {
  width: 1.1rem;
  height: 1.1rem;
  grid-area: 1 / 1;
  fill: currentColor;
  stroke: none;
}

.music-toggle .icon-pause {
  display: none;
}

.music-toggle[data-state="playing"] .icon-play {
  display: none;
}

.music-toggle[data-state="playing"] .icon-pause {
  display: block;
}

.music-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.music-meta strong {
  color: var(--mint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.music-meta span {
  color: var(--muted);
  font-size: 0.68rem;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.1rem;
  margin-left: 0.15rem;
}

.music-bars i {
  display: block;
  width: 3px;
  background: var(--green);
  border-radius: 1px;
  opacity: 0.35;
  height: 30%;
  transition: height 0.2s, opacity 0.2s;
}

.music-bar.is-playing .music-bars i {
  opacity: 1;
  animation: eq 0.85s ease-in-out infinite;
}

.music-bar.is-playing .music-bars i:nth-child(1) { animation-delay: 0s; height: 45%; }
.music-bar.is-playing .music-bars i:nth-child(2) { animation-delay: 0.15s; height: 90%; }
.music-bar.is-playing .music-bars i:nth-child(3) { animation-delay: 0.3s; height: 55%; }
.music-bar.is-playing .music-bars i:nth-child(4) { animation-delay: 0.1s; height: 75%; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Top —— */
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--red);
  color: var(--red);
  background: var(--red-soft);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
  animation: blink 1.15s infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.credit {
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* —— Header —— */
header {
  margin-bottom: var(--space-lg);
}

header h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: var(--green);
  text-shadow: 0 0 22px rgba(0, 255, 106, 0.4);
  margin-bottom: 0.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

header .kill {
  color: var(--red);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 14px rgba(255, 51, 85, 0.45);
}

header .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: none;
}

header .sub strong {
  color: var(--mint);
  font-weight: 700;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--green);
  background: rgba(45, 255, 122, 0.12);
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 22px var(--green-glow);
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.dl-btn:hover {
  background: var(--green);
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--green-glow);
}

.dl-btn:active {
  transform: translateY(0);
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 1.45rem;
  height: 1.45rem;
}

/* —— Sections —— */
section {
  margin: var(--space-lg) 0;
  border: 1px solid var(--line-soft);
  background: var(--panel-soft);
  padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.1rem, 2.5vw, 1.5rem);
  box-shadow: inset 0 1px 0 rgba(45, 255, 122, 0.04);
}

section h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}

p {
  margin-bottom: 0.95rem;
  color: var(--text);
  font-size: 0.95rem;
}

p.dim {
  color: var(--muted);
  font-size: 0.88rem;
}

p.aggro {
  color: var(--mint);
  font-size: 1.05rem;
  border-left: 3px solid var(--red);
  padding: 0.35rem 0 0.35rem 1rem;
  margin: 0.35rem 0 1.35rem;
  line-height: 1.55;
}

code {
  color: var(--amber);
  font-family: inherit;
  font-size: 0.92em;
}

/* —— Ops grid —— */
.ops {
  display: grid;
  gap: 0.85rem;
}

.op {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.38);
  transition: border-color 0.2s, background 0.2s, transform 0.18s, box-shadow 0.2s;
}

.op:hover {
  border-color: var(--green-dim);
  background: rgba(45, 255, 122, 0.06);
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--green-dim);
}

.op-num {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 800;
  font-size: 0.75rem;
  background: var(--red-soft);
  letter-spacing: 0.04em;
}

.op-title {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.op-desc {
  color: var(--mint);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* —— Burn list —— */
ul.burn {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 0.5rem 0 1.1rem;
}

ul.burn li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--mint);
  font-size: 0.92rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.32);
  line-height: 1.5;
}

ul.burn li .icon {
  color: var(--red);
  margin-top: 0.15rem;
}

.strike {
  margin-top: 0.35rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
}

/* —— Terminal —— */
.terminal {
  margin-top: 0.85rem;
  background: var(--black);
  border: 1px solid var(--line);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: #0c1e12;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.85;
}

.dot:nth-child(2) { background: var(--amber); }
.dot:nth-child(3) { background: var(--green-dim); }

.terminal pre {
  padding: 1rem 1.1rem;
  overflow-x: auto;
  color: var(--green);
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.55;
}

.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-soft);
  color: var(--green);
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tag:hover {
  border-color: var(--red);
  color: var(--amber);
  background: rgba(255, 61, 90, 0.06);
}

.tag .icon {
  width: 0.95rem;
  height: 0.95rem;
}

/* —— Verdict —— */
.verdict {
  border-color: rgba(255, 61, 90, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 61, 90, 0.14), transparent 48%),
    linear-gradient(225deg, rgba(45, 255, 122, 0.1), transparent 42%),
    rgba(8, 22, 12, 0.96);
  padding: clamp(1.4rem, 3.5vw, 1.9rem) clamp(1.2rem, 3vw, 1.7rem);
}

.verdict blockquote {
  color: var(--mint);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  border-left: 4px solid var(--red);
  padding-left: 1.15rem;
  margin: 0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.verdict blockquote span {
  display: block;
  margin-top: 0.9rem;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.55;
}

/* —— Footer —— */
footer {
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 700;
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

footer .small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .wrap {
    padding-top: var(--space-lg);
    padding-bottom: 5.5rem;
  }

  .music-bar {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    justify-content: flex-start;
  }

  .op {
    gap: 0.85rem;
    padding: 0.9rem;
  }

  .op-num {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.7rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
