﻿:root {
  color-scheme: dark;
  --bg: #061426;
  --panel: #0b2038;
  --panel-2: #102b49;
  --line: #244766;
  --text: #edf7ff;
  --muted: #a8bfd2;
  --accent: #43c7ff;
  --accent-2: #ffd166;
  --danger: #ff8a80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #12375b 0, #061426 36rem);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(6, 20, 38, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.top-nav a,
.button {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  color: var(--text);
  background: #0d263f;
  text-decoration: none;
  font-weight: 700;
}

.top-nav a:hover,
.button:hover {
  border-color: var(--accent);
}

.hero {
  min-height: 28rem;
  display: grid;
  align-items: center;
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 3vw, 2.5rem);
}

.hero-inner,
.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 6vw, 5.5rem);
  line-height: .98;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.section {
  padding: clamp(1.8rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section h2,
.page-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.section-lede,
.page-lede {
  max-width: 780px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.game-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .5rem;
  overflow: hidden;
}

.card img,
.image-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0d263f;
}

.image-fallback {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.card-body {
  padding: .9rem;
}

.card h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.card a {
  text-decoration: none;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.feature-media {
  border: 1px solid var(--line);
  border-radius: .5rem;
  overflow: hidden;
  background: var(--panel);
}

.feature-media img,
.feature-media .image-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-panel {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: rgba(11, 32, 56, .9);
}

.content-panel p {
  color: var(--muted);
}

.list {
  display: grid;
  gap: .65rem;
}

.list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: rgba(11, 32, 56, .75);
  text-decoration: none;
}

.meta-row {
  color: var(--accent-2);
  font-size: .9rem;
  font-weight: 700;
}

.site-footer {
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .site-header,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 24rem;
  }
}
