:root {
  --bg: #07090b;
  --panel: rgba(13, 17, 19, 0.94);
  --line: #384039;
  --line-hot: #7d8d33;
  --text: #f2ebdc;
  --muted: #beb6a3;
  --acid: #b8ff2c;
  --amber: #ffb14a;
  --max: 1220px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(3, 4, 5, 0.86), rgba(3, 4, 5, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(255, 177, 74, 0.14), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(98, 150, 167, 0.18), transparent 28%),
    url("./assets/hrnohud.png") center top / cover fixed no-repeat,
    linear-gradient(180deg, #16181b 0%, var(--bg) 22%, #040506 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.22), rgba(5, 6, 7, 0.72)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: normal;
  opacity: 0.72;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: overlay;
}

.page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
  padding: 10px 0 40px;
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brandlock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.brandlock img {
  width: 32px;
  height: 32px;
}

.nav {
  display: inline-flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #000;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 150ms ease, filter 150ms ease;
}

.cta:hover,
.ghost:hover,
.cta:focus-visible,
.ghost:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cta {
  color: #120d06;
  background: linear-gradient(180deg, #ffc66f, #ff9e34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: #494d44;
  color: var(--text);
}

.cta-top {
  min-height: 40px;
  padding-inline: 16px;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  padding: 34px 0 30px;
  align-items: start;
}

.kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-title h2,
.closing h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.hero h1 {
  font-size: clamp(3.3rem, 8vw, 6.4rem);
}

.lede,
.feature p,
.upgrade-choice-desc,
.closing p,
.buy-note {
  color: var(--muted);
  line-height: 1.5;
}

.dev-note {
  margin: 14px 0 0;
  max-width: 38rem;
  color: #d8d1c2;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.hooklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hooklist li {
  position: relative;
  padding-left: 16px;
}

.hooklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  background: var(--amber);
}

.hero-art {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.frame {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow);
}

.logo-frame {
  padding: 10px;
  overflow: hidden;
}

.cover-frame {
  padding: 10px;
}

.logo-frame img,
.cover-frame img,
.shot-large img {
  width: 100%;
}

.logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.18), rgba(0,0,0,0) 28%, rgba(164,255,55,0.08) 72%, rgba(0,0,0,0.22));
  pointer-events: none;
}

.cover-frame img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.steel-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0 34px;
}

.strip-card {
  padding: 16px;
  border-top: 3px solid var(--line-hot);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(165, 198, 60, 0.08), rgba(255, 255, 255, 0.02));
}

.strip-label {
  display: block;
  margin-bottom: 8px;
  color: var(--acid);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.strip-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.feature-block,
.shots,
.closing {
  padding: 28px 0;
}

.sales-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
  border-top: 3px solid var(--amber);
}

.sales-band-copy {
  display: grid;
  gap: 8px;
}

.sales-band-copy strong {
  font-size: 1.15rem;
  text-transform: uppercase;
}

.sales-band-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.sales-band-cta {
  white-space: nowrap;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2,
.closing h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

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

.feature {
  padding: 18px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  text-transform: uppercase;
}

.shots-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}

.media-stack {
  display: grid;
  gap: 14px;
}

.shot-large {
  padding: 10px;
}

.shot-large img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-gif {
  border-color: rgba(255, 177, 74, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 177, 74, 0.08) inset,
    0 20px 48px rgba(0, 0, 0, 0.42);
}

.shot-gif img {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
}

.shot-still img {
  max-height: 320px;
}

.detail-stack {
  display: grid;
  gap: 12px;
}

.site-upgrade-card {
  min-height: 0;
  height: auto;
  cursor: default;
  padding: 13px 13px 12px;
}

.upgrade-choice {
  --upgrade-rarity-fill: rgba(176, 193, 214, 0.96);
  --upgrade-rarity-glow: rgba(255, 255, 255, 0.28);
  position: relative;
  text-align: left;
  border: 1px solid rgba(157, 213, 255, 0.14);
  background:
    radial-gradient(circle at top center, rgba(62, 109, 152, 0.12), rgba(62, 109, 152, 0) 28%),
    linear-gradient(180deg, rgba(20, 29, 36, 0.95), rgba(11, 17, 21, 0.98));
  color: #eaf2ed;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  overflow: hidden;
}

.upgrade-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 24%);
  opacity: 0.52;
  pointer-events: none;
}

.upgrade-choice-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  height: 100%;
}

.upgrade-choice-copy-wrap {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.upgrade-choice-copy {
  min-width: 0;
  width: 100%;
}

.upgrade-choice-art {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
  perspective: 700px;
}

.upgrade-choice-icon-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.upgrade-choice-icon-wrap::before {
  content: "";
  position: absolute;
  left: 16.5%;
  right: 16.5%;
  top: 22%;
  bottom: 17%;
  background:
    radial-gradient(circle at 50% 28%, var(--upgrade-rarity-glow), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--upgrade-rarity-fill) 82%, white 18%), var(--upgrade-rarity-fill) 52%, color-mix(in srgb, var(--upgrade-rarity-fill) 72%, black 28%));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 0 -10px 18px rgba(0,0,0,0.12),
    0 0 18px rgba(0,0,0,0.18);
}

.upgrade-choice-icon-wrap::after {
  content: "";
  position: absolute;
  left: 16.5%;
  right: 16.5%;
  top: 22%;
  bottom: 17%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 36%, rgba(255,255,255,0.12) 45%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.12) 55%, rgba(255,255,255,0) 64%);
  mix-blend-mode: screen;
  opacity: 0.55;
  transform: translateX(-16%) skewX(-18deg);
  pointer-events: none;
}

.upgrade-choice-separator {
  width: 100%;
  height: 1px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.16), rgba(255,255,255,0));
}

.upgrade-choice-icon {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
}

.upgrade-rarity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upgrade-choice-title {
  margin: 0 0 8px;
  font: 800 19px/1.08 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: .02em;
  color: #f3fbff;
  text-transform: uppercase;
}

.upgrade-choice-desc {
  margin-top: 7px;
  font: 14px/1.4 "Segoe UI", sans-serif;
  color: #afc2ce;
}

.upgrade-choice-desc-main {
  color: #c6d5de;
}

.upgrade-rarity {
  margin-bottom: 5px;
  font: 800 10px/1 "Segoe UI", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c7d2cb;
}

.upgrade-choice.rarity-uncommon {
  --upgrade-rarity-fill: rgba(83, 217, 138, 0.96);
  --upgrade-rarity-glow: rgba(213, 255, 228, 0.3);
  border-color: rgba(89, 201, 128, 0.45);
  box-shadow: inset 0 0 0 1px rgba(89, 201, 128, 0.16);
}

.upgrade-choice.rarity-rare {
  --upgrade-rarity-fill: rgba(72, 141, 255, 0.97);
  --upgrade-rarity-glow: rgba(210, 233, 255, 0.32);
  border-color: rgba(87, 163, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(87, 163, 255, 0.2);
}

.upgrade-choice.rarity-legendary {
  --upgrade-rarity-fill: rgba(255, 178, 58, 0.98);
  --upgrade-rarity-glow: rgba(255, 241, 194, 0.34);
  border-color: rgba(255, 187, 84, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 187, 84, 0.28), 0 0 18px rgba(255, 187, 84, 0.14);
}

.closing {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: end;
}

.buy-box {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.cta-wide {
  width: 100%;
}

.buy-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.buy-points li {
  position: relative;
  padding-left: 16px;
}

.buy-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  background: var(--amber);
}

.indie-blurb {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid var(--amber);
}

.indie-blurb-kicker {
  margin-bottom: 8px;
  color: var(--acid);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.indie-blurb p {
  margin: 0;
}

.store-link {
  width: 100%;
}

.trailer-frame {
  padding: 10px;
}

.leaderboard-shell {
  padding: 18px;
  border-top: 3px solid var(--acid);
  overflow: hidden;
}

.leaderboard-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(184, 255, 44, 0.08), rgba(184, 255, 44, 0) 24%),
    linear-gradient(90deg, rgba(255, 177, 74, 0.05), rgba(0, 0, 0, 0) 32%);
  pointer-events: none;
}

.leaderboard-head,
.leaderboard-foot {
  position: relative;
  z-index: 1;
}

.leaderboard-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.leaderboard-head-copy {
  display: grid;
  gap: 6px;
}

.leaderboard-head-copy strong {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-head-copy span,
.leaderboard-foot p,
.leaderboard-status {
  color: var(--muted);
  line-height: 1.45;
}

.leaderboard-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.leaderboard-status {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaderboard-refresh {
  min-height: 40px;
}

.leaderboard-grid {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(5, 8, 9, 0.72);
}

.leaderboard-grid-head,
.leaderboard-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1.4fr) minmax(110px, 1fr) 88px 88px 96px;
  gap: 12px;
  align-items: center;
}

.leaderboard-grid-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #95a48e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.leaderboard-list {
  display: grid;
}

.leaderboard-row {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-row:last-child {
  border-bottom: 0;
}

.leaderboard-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: 62px;
  border: 1px solid rgba(255, 177, 74, 0.3);
  background: linear-gradient(180deg, rgba(255, 177, 74, 0.18), rgba(255, 177, 74, 0.03));
  color: #ffd38f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.leaderboard-player {
  min-width: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #f2ebdc;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-score,
.leaderboard-wave,
.leaderboard-kills,
.leaderboard-time {
  font-weight: 700;
}

.leaderboard-score {
  color: #f8f1e4;
}

.leaderboard-wave {
  color: #ffd38f;
}

.leaderboard-kills {
  color: #a7e6c2;
}

.leaderboard-time {
  color: #b7cce3;
}

.leaderboard-empty {
  padding: 18px 14px;
  color: var(--muted);
  line-height: 1.5;
}

.leaderboard-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.trailer-linkout {
  display: block;
  overflow: hidden;
}

.trailer-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trailer-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55)),
    radial-gradient(circle at center, rgba(255,177,74,0.12), rgba(0,0,0,0) 28%);
}

.trailer-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(8, 11, 12, 0.78);
  box-shadow: 0 18px 40px rgba(0,0,0,0.34);
}

.trailer-play {
  width: 68px;
  height: 68px;
  border: 2px solid rgba(255, 177, 74, 0.9);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.trailer-play::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 19px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid rgba(255, 177, 74, 0.95);
}

.trailer-copy {
  display: grid;
  gap: 4px;
  color: #f2ebdc;
  letter-spacing: 0.08em;
}

.trailer-copy strong {
  font-size: 1.05rem;
}

.trailer-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.trailer-linkout:hover .trailer-center,
.trailer-linkout:focus-visible .trailer-center {
  border-color: rgba(255, 177, 74, 0.7);
  transform: translate(-50%, -50%) scale(1.02);
}

.trailer-linkout:hover .trailer-scrim,
.trailer-linkout:focus-visible .trailer-scrim {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.46)),
    radial-gradient(circle at center, rgba(255,177,74,0.18), rgba(0,0,0,0) 30%);
}

@media (max-width: 720px) {
  .trailer-center {
    gap: 12px;
    padding: 14px 16px;
  }

  .trailer-play {
    width: 54px;
    height: 54px;
  }

  .trailer-play::before {
    left: 21px;
    top: 15px;
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 18px;
  }

  .trailer-copy strong {
    font-size: 0.9rem;
  }
}

code {
  color: var(--amber);
  font-family: Consolas, "Courier New", monospace;
}

@media (max-width: 980px) {
  .hero,
  .shots-grid,
  .closing {
    grid-template-columns: 1fr;
  }

  .sales-band {
    grid-template-columns: 1fr;
  }

  .masthead {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav {
    justify-content: start;
  }

  .leaderboard-head,
  .leaderboard-foot {
    grid-template-columns: 1fr;
  }

  .leaderboard-actions {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .steel-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-grid-head {
    display: none;
  }

  .leaderboard-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .leaderboard-rank {
    width: 70px;
  }

  .leaderboard-player {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(calc(100% - 16px), var(--max));
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta,
  .ghost {
    width: 100%;
  }
}
