:root {
  --bg: #050806;
  --ink: #ecfff3;
  --muted: #81a18b;
  --green: #65ff8f;
  --acid: #c8ff2e;
  --card: rgba(101, 255, 143, 0.07);
  --border: 1px solid rgba(101, 255, 143, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(101, 255, 143, 0.13), transparent 60%),
    radial-gradient(800px 500px at 100% 80%, rgba(200, 255, 46, 0.09), transparent 60%),
    linear-gradient(180deg, #020403, var(--bg));
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow: hidden;
}

.page {
  width: min(1180px, 100%);
  height: 100dvh;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.topbar,
.data,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

h1,
h2,
.tagline,
.big {
  font-family: "Bungee", cursive;
  margin: 0;
  font-weight: 400;
}

h1 {
  font-size: clamp(1.8rem, 4.8vw, 3.6rem);
  color: var(--green);
  text-shadow: 0 0 28px rgba(101, 255, 143, 0.35);
  transform: rotate(-2deg);
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero {
  text-align: center;
  display: grid;
  place-items: center;
  gap: 0.35rem;
}

.virus-logo {
  width: clamp(92px, 15vh, 155px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 34px rgba(101, 255, 143, 0.42));
}

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  line-height: 1.05;
}

.flavor {
  max-width: 54rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  line-height: 1.25;
}

.ca-pill {
  max-width: 100%;
  padding: 0.42rem 0.85rem;
  border: 1px dashed rgba(101, 255, 143, 0.45);
  border-radius: 999px;
  background: rgba(101, 255, 143, 0.08);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Code", monospace;
  cursor: pointer;
}

#ca-pill-addr {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-toast,
.sub,
footer,
.card-head p {
  color: var(--muted);
}

.data {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.7fr);
  min-height: 0;
}

.card {
  background: var(--card);
  border: var(--border);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.stats {
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.stats > div {
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(101, 255, 143, 0.16);
}

.stats > div:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

h2 {
  font-size: 0.9rem;
  color: var(--muted);
}

.big {
  font-size: clamp(1.28rem, 2.6vw, 2rem);
  color: var(--acid);
  line-height: 1.1;
}

.big.green {
  color: var(--green);
}

.sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

.timer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--green);
}

.timer span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.timer strong {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1.2rem;
}

.map {
  min-height: 0;
  padding: 0.8rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-head {
  margin-bottom: 0.5rem;
}

.card-head p {
  margin: 0;
  font-size: 0.85rem;
}

svg {
  width: 100%;
  flex: 1 1 auto;
  height: auto;
  min-height: 170px;
}

.edge {
  stroke: rgba(101, 255, 143, 0.24);
  stroke-width: 1;
}

.edge-1 { stroke: rgba(200, 255, 46, 0.2); }
.edge-2 { stroke: rgba(236, 255, 243, 0.13); }

.core {
  fill: var(--green);
  filter: drop-shadow(0 0 18px rgba(101, 255, 143, 0.7));
}

.core-label {
  fill: #021406;
  font: 700 16px "DM Sans", sans-serif;
}

.node {
  fill: var(--acid);
  opacity: 0.9;
}

.node-1,
.node-3 { fill: var(--green); }
.node-2 { fill: #ecfff3; }

.empty-map {
  fill: var(--muted);
  font: 700 18px "DM Sans", sans-serif;
}

.victim-feed {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(101, 255, 143, 0.16);
}

.victim-feed h3 {
  margin: 0 0 0.35rem;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.victim-feed ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem 0.55rem;
}

.victim-feed li {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.32rem 0.45rem;
  border: 1px solid rgba(101, 255, 143, 0.13);
  border-radius: 0.7rem;
  background: rgba(101, 255, 143, 0.05);
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
}

.victim-feed a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.victim-feed span {
  flex: 0 0 auto;
  color: var(--muted);
}

footer {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.66rem;
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100dvh;
  }

  .topbar,
  .card-head {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .data {
    grid-template-columns: 1fr;
  }

  .victim-feed ol {
    grid-template-columns: 1fr;
  }
}
