:root {
  --sky-1: #8fd8ff;
  --sky-2: #5aa9ef;
  --sky-3: #256fc3;
  --sky-4: #0b316d;
  --sky-5: #071a3b;
  --panel: #24365d;
  --panel-hi: #355184;
  --panel-deep: #111b31;
  --panel-ink: #0a1223;
  --line: #8fb7ea;
  --white: #f4f4f4;
  --ink: #111;
  --gold-1: #ffe16d;
  --gold-2: #f0ab1c;
  --gold-3: #9f6200;
  --cyan: #76d6ff;
  --green: #97ea54;
  --page-width: 1120px;
  --pixel-shadow: 0 4px 0 rgba(0, 0, 0, 0.38);
  --text-main: #f6f8ff;
  --text-soft: #d7e3ff;
  --text-dim: #a9bddf;
}

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

html {
  scroll-behavior: smooth;
  color: var(--white);
  font-family: "VT323", monospace;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 3%, rgba(255, 240, 168, 0.28), rgba(255, 240, 168, 0) 240px),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 34%),
    linear-gradient(
      180deg,
      #99ddff 0%,
      #86d3fb 18%,
      #67b6ef 38%,
      #3f88d4 58%,
      #225ea9 76%,
      #103d80 88%,
      var(--sky-5) 100%
    );
  color: var(--text-main);
}

body::before,
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle at 78% 14%, rgba(118, 214, 255, 0.08), rgba(118, 214, 255, 0) 18%);
  opacity: 0.9;
}

body::after {
  background:
    linear-gradient(180deg, rgba(6, 16, 36, 0) 0%, rgba(6, 16, 36, 0.05) 42%, rgba(6, 16, 36, 0.22) 68%, rgba(6, 16, 36, 0.42) 100%);
  z-index: -2;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(calc(100% - 18px), var(--page-width));
  margin: 0 auto;
}

.status-row {
  padding-top: 18px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 8px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 28, 65, 0.62);
  color: var(--text-main);
  font-size: 19px;
  letter-spacing: 0.03em;
  box-shadow: var(--pixel-shadow);
}

.status-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.hero {
  position: relative;
  padding: 18px 0 36px;
}

.hero-grid {
  display: block;
}

.logo-wrap img {
  max-width: 420px;
  image-rendering: auto;
  margin: 0 auto;
}

.logo-wrap {
  position: relative;
}

.hero-kicker,
.panel-tag {
  font-family: "Press Start 2P", cursive;
  font-size: 11px;
  line-height: 1.7;
  color: #fff3a7;
  text-transform: uppercase;
}

.hero-kicker {
  margin-top: 14px;
  color: #ffe78e;
  text-shadow: 0 2px 0 rgba(10, 20, 42, 0.72), 0 0 10px rgba(10, 20, 42, 0.18);
}

h1,
h2,
.cta-title {
  font-family: "Press Start 2P", cursive;
  text-transform: uppercase;
  line-height: 1.18;
  text-shadow: 3px 3px 0 rgba(8, 17, 36, 0.34);
}

h1 {
  margin-top: 18px;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.32;
}

h1 .alt {
  color: #ffe38a;
}

h1 {
  color: #f3f6ff;
  text-shadow:
    4px 4px 0 rgba(8, 17, 36, 0.38),
    0 0 18px rgba(8, 17, 36, 0.12);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 18px;
  text-align: center;
}

.hero-copy p {
  max-width: 660px;
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  color: #233556;
  font-size: 24px;
  line-height: 1.14;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-copy p,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-copy p::before {
  content: "";
  position: absolute;
  inset: -14px -18px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(152, 206, 244, 0.18), rgba(152, 206, 244, 0.36));
  border-radius: 12px;
  filter: blur(10px);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-block;
  padding: 14px 18px 12px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.08s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #4a2800;
}

.button-secondary {
  background: rgba(9, 23, 50, 0.52);
  color: var(--text-main);
}

.frame img {
  width: 100%;
}

.video-frame {
  background: #081122;
}

.video-frame video,
.video-frame img {
  display: block;
  width: 100%;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-shell {
  padding: 26px 0 10px;
}

.content {
  position: relative;
  padding: 10px 0 52px;
}

.content .wrap {
  position: relative;
  z-index: 1;
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 18px;
  border: 4px solid var(--panel-deep);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 18%),
    linear-gradient(180deg, rgba(8, 17, 36, 0.16), rgba(8, 17, 36, 0.42)),
    var(--panel);
  box-shadow: 0 0 0 4px rgba(170, 212, 255, 0.08), 0 14px 24px rgba(0, 0, 0, 0.28);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 1.04fr);
  gap: 18px;
  align-items: start;
}

.feature.reverse {
  grid-template-columns: minmax(300px, 1.04fr) minmax(0, 0.96fr);
}

.feature.reverse .media {
  order: 2;
}

.feature.reverse .copy {
  order: 1;
}

.frame,
.mini-frame {
  overflow: hidden;
  border: 4px solid #10182b;
  background: #1b2944;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.copy {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: flex-start;
  padding-top: 4px;
}

.copy h2,
.cta-title {
  margin-top: 12px;
  font-size: clamp(20px, 3vw, 34px);
}

.copy p {
  margin-top: 14px;
  color: rgba(241, 245, 255, 0.94);
  font-size: 28px;
  line-height: 1.1;
  max-width: 34ch;
  text-shadow: 0 1px 0 rgba(7, 14, 28, 0.32);
}

.impact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  list-style: none;
}

.impact-list li {
  padding: 12px 12px 10px;
  border-left: 4px solid var(--gold-2);
  background: linear-gradient(180deg, rgba(73, 101, 154, 0.56), rgba(39, 59, 98, 0.82));
  color: var(--text-main);
  font-size: 24px;
  line-height: 1.04;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.showcase {
  margin-top: 18px;
}

.showcase-copy {
  max-width: 760px;
}

.showcase-copy h2 {
  margin-top: 12px;
  font-size: clamp(20px, 3vw, 34px);
}

.showcase-copy p {
  margin-top: 14px;
  color: rgba(241, 245, 255, 0.94);
  font-size: 28px;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(7, 14, 28, 0.32);
  max-width: 30ch;
}

.showcase-frame {
  margin-top: 0;
}

.cta {
  display: block;
  margin-top: 18px;
  padding: 18px;
  border: 4px solid var(--gold-3);
  background: linear-gradient(180deg, #6f520d 0%, #4f3908 42%, #332405 100%);
  box-shadow: 0 0 0 4px rgba(255, 225, 109, 0.18), 0 14px 24px rgba(0, 0, 0, 0.3);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.cta-actions .button {
  min-width: 240px;
  text-align: center;
}

.cta-text p {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.02;
  color: #fff4cf;
}

.cta-note {
  margin-top: 10px;
  color: rgba(255, 243, 207, 0.82);
  font-size: 20px;
  line-height: 1.06;
}

.support-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid rgba(255, 243, 207, 0.18);
  color: #fff4cf;
}

.support-proof-label {
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  line-height: 1.6;
  color: #fff0a9;
  text-transform: uppercase;
}

.support-proof-link {
  color: #ffe16d;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 225, 109, 0.28);
}

.support-proof-link:hover {
  border-bottom-color: rgba(255, 225, 109, 0.72);
}

.support {
  margin-top: 14px;
  color: rgba(240, 245, 255, 0.92);
  font-size: 22px;
  line-height: 1.05;
}

.support-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.16);
}

.support-line strong {
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  line-height: 1.5;
  color: #fff0a9;
  text-transform: uppercase;
}

.support-link {
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.24);
}

.support-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ── Stats pages ─────────────────────────────────────────────────────────── */

.stats-header {
  padding: 14px 0;
  border-bottom: 3px solid var(--panel-deep);
  background: rgba(8, 17, 36, 0.62);
}

.stats-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.stats-logo {
  max-width: 80px;
  image-rendering: auto;
}

.stats-home-link {
  display: block;
  flex-shrink: 0;
}

.stats-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-nav-link {
  font-family: "Press Start 2P", cursive;
  font-size: 9px;
  padding: 8px 12px 7px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 23, 50, 0.52);
  color: var(--text-soft);
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: var(--pixel-shadow);
  transition: transform 0.08s ease;
  white-space: nowrap;
}

.stats-nav-link:hover {
  transform: translateY(-1px);
  color: var(--text-main);
}

.stats-nav-active {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #4a2800;
  border-color: var(--gold-3);
}

.stats-nav-active:hover {
  color: #4a2800;
}

.site-nav-download {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #4a2800;
  border-color: var(--gold-3);
}

.site-nav-download:hover {
  color: #4a2800;
}

.site-nav-play {
  opacity: 0.7;
}

.site-nav-play:hover {
  opacity: 1;
}

.stats-snapshot {
  background: rgba(8, 17, 36, 0.48);
  border-bottom: 2px solid rgba(143, 183, 234, 0.12);
  padding: 10px 0;
}

.snapshot-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.snapshot-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "VT323", monospace;
  font-size: 22px;
  color: var(--text-soft);
}

.snapshot-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.snapshot-val {
  font-size: 26px;
  color: var(--text-main);
  font-family: "Press Start 2P", cursive;
  font-size: 14px;
}

.snapshot-label {
  font-size: 20px;
  color: var(--text-dim);
}

.stats-main {
  padding: 28px 0 52px;
}

.stats-page-title {
  margin-bottom: 18px;
}

.stats-h1 {
  font-family: "Press Start 2P", cursive;
  font-size: clamp(18px, 3vw, 30px);
  text-transform: uppercase;
  line-height: 1.25;
  margin-top: 10px;
  text-shadow: 3px 3px 0 rgba(8, 17, 36, 0.38);
}

.stats-sub {
  font-family: "VT323", monospace;
  font-size: 24px;
  color: #233556;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  margin-top: 8px;
}

.stats-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.stats-hub-card {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.08s ease;
}

.stats-hub-card:hover {
  transform: translateY(-2px);
}

.stats-hub-card p {
  font-family: "VT323", monospace;
  font-size: 22px;
  color: var(--text-soft);
  margin-top: 10px;
  line-height: 1.1;
}

.stats-table-wrap {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "VT323", monospace;
  font-size: 22px;
}

.stats-table thead tr {
  border-bottom: 3px solid var(--panel-deep);
}

.stats-table th {
  font-family: "Press Start 2P", cursive;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(143, 183, 234, 0.08);
  vertical-align: middle;
  color: var(--text-main);
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-table tr.rank-gold td {
  color: var(--gold-1);
  border-left: 4px solid var(--gold-2);
}

.stats-table tr.rank-gold td:first-child {
  border-left: 4px solid var(--gold-2);
}

.rank-cell {
  font-family: "Press Start 2P", cursive;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  width: 48px;
}

.sprite-cell {
  width: 56px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.char-sprite {
  image-rendering: pixelated;
  display: block;
  margin: 0 auto;
  width: 32px !important;
  height: 32px !important;
}

.name-cell {
  font-size: 24px;
  font-weight: normal;
}

.fame-cell,
.count-cell,
.alive-cell,
.deaths-cell {
  font-family: "Press Start 2P", cursive;
  font-size: 11px;
  color: var(--gold-1);
  white-space: nowrap;
}

.class-cell,
.killer-cell,
.level-cell,
.age-cell,
.time-cell,
.rate-cell {
  color: var(--text-dim);
  font-size: 20px;
  white-space: nowrap;
}

.error-cell {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 24px;
}

@media (max-width: 640px) {
  .stats-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .stats-nav {
    gap: 6px;
  }

  .stats-nav-link {
    font-size: 8px;
    padding: 7px 10px 6px;
  }

  .snapshot-row {
    gap: 18px;
  }

  .stats-table th,
  .stats-table td {
    padding: 8px 8px;
  }

  .class-cell,
  .level-cell,
  .age-cell,
  .time-cell,
  .rate-cell {
    display: none;
  }
}

/* ── End stats pages ─────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid,
  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
  }

  .feature.reverse .media,
  .feature.reverse .copy {
    order: initial;
  }

  .cta {
    display: block;
  }

  .cta-actions {
    justify-content: stretch;
  }

  .cta-actions .button {
    width: 100%;
  }
}

@media (min-width: 961px) {
}

@media (max-width: 640px) {
  .status-badge {
    font-size: 16px;
  }

  .logo-wrap img {
    max-width: 300px;
  }

  h1 {
    font-size: clamp(20px, 7.5vw, 30px);
  }

  .hero-copy p,
  .copy p,
  .cta-text p {
    font-size: 22px;
  }

  .hero-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .copy p {
    max-width: none;
  }

  .hero-shell {
    padding: 18px 0 8px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .support-proof-link {
    font-size: 20px;
    line-height: 1.15;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .cta {
    padding: 14px;
  }
}
