:root {
  color-scheme: dark;
  --bg: #07131f;
  --bg-deep: #02070d;
  --bg-gradient-highlight: #123047;
  --bg-card: rgba(8, 24, 38, 0.82);
  --line: rgba(120, 180, 210, 0.18);
  --text: #e8f4ff;
  --muted: #8eb3c9;
  --accent: #d4a853;
  --accent-soft: rgba(212, 168, 83, 0.15);
  --entry-bg: rgba(255, 255, 255, 0.04);
  --entry-fg: #e8f4ff;
  --button-bg: #333333;
  --button-hover: #4d4d4d;
  --button-fg: #ffffff;
  --backdrop-glow-1: rgba(212, 168, 83, 0.08);
  --backdrop-glow-2: rgba(80, 160, 220, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --content-max: 960px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
    circle at 20% 0%,
    var(--bg-gradient-highlight) 0%,
    var(--bg) 42%,
    var(--bg-deep) 100%
  );
  color: var(--text);
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 20%, var(--backdrop-glow-1), transparent 30%),
    radial-gradient(circle at 10% 80%, var(--backdrop-glow-2), transparent 35%);
}

.sprite-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(72px, 10vw, 112px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 5rem 0.5rem 2rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
}

.sprite-rail--left {
  left: max(0.35rem, calc((100vw - var(--content-max)) / 2 - 8.5rem));
}

.sprite-rail--right {
  right: max(0.35rem, calc((100vw - var(--content-max)) / 2 - 8.5rem));
}

.sprite-slot {
  display: block;
  flex: 0 0 auto;
  animation: sprite-float 6s ease-in-out infinite;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.sprite-slot:nth-child(odd) {
  animation-delay: -2s;
}

.sprite-slot img {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

@keyframes sprite-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
  margin-left: auto;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-size: 0.85rem;
  color: var(--muted);
}

.theme-field {
  min-width: 10rem;
}

select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--entry-bg);
  color: var(--entry-fg);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  cursor: pointer;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.site-logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[href^="#"]:hover {
  color: var(--accent);
}

.shell {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-badge {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.2);
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn--primary {
  background: var(--button-bg);
  color: var(--button-fg);
  border-color: var(--line);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn__icon {
  flex: 0 0 auto;
  display: block;
}

.btn__icon--steam {
  width: 1.25rem;
  height: 1.25rem;
  background: url("/icons/steam.png") center / contain no-repeat;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stat-strip {
  margin-bottom: 2.5rem;
  padding: 1rem 1.1rem;
}

.stat-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-strip__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 5rem;
  text-align: center;
}

.stat-strip__list strong {
  font-size: 1.28rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1.1;
}

.stat-strip__list span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feature-section {
  margin-bottom: 2.5rem;
}

.feature-section--split {
  margin-bottom: 2.5rem;
}

.section-heading {
  margin: 0 0 1.15rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  text-align: center;
  color: var(--text);
  letter-spacing: 0.02em;
}

.section-heading--left {
  text-align: left;
}

.split-card {
  padding: 1.35rem 1.5rem;
}

.split-card__body {
  max-width: 42rem;
}

.split-card__body p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.85rem;
}

.split-card__body .btn {
  margin-top: 0.35rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-grid {
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.cards--features {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.card--with-sprite {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card--with-sprite > p:last-of-type {
  margin-bottom: 0;
}

.card__sprite-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 0.85rem;
  min-height: 75px;
}

.card__sprite-slot {
  animation: none;
}

.card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.card p:last-child {
  margin-bottom: 0;
}

.card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.notice {
  margin-bottom: 0;
}

.notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.notice code {
  color: var(--text);
  font-size: 0.92em;
}

.footer {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0.35rem 0;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .sprite-rail {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header__right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .theme-field {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
