:root {
  --gold: #ffd700;
  --amber: #ffa500;
  --cyan: #4cc9f0;
  --deep: #1e3a5f;
  --navy: #0d1b2a;
  --panel: #2e5984;
  --green: #2e8b57;
  --cream: #fdfdfd;
  --crimson: #d22b2b;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(13, 27, 42, 0.45);
  --font: "Nunito", system-ui, sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--cream);
  background: linear-gradient(165deg, var(--deep) 0%, var(--navy) 55%, #061018 100%);
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255, 215, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(76, 201, 240, 0.15), transparent 50%);
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(13, 27, 42, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-icon {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.92;
}

.site-nav a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(76, 201, 240, 0.5);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.25rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-shadow: 0 2px 20px rgba(13, 27, 42, 0.8);
}

.lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 36ch;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--navy);
  box-shadow: var(--shadow);
}

.btn-ghost {
  border: 2px solid rgba(76, 201, 240, 0.65);
  color: var(--cream);
  background: rgba(30, 58, 95, 0.6);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-stats li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 27, 42, 0.65);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.window-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 3px rgba(255, 215, 0, 0.35);
  aspect-ratio: 16 / 11;
  background: var(--navy);
}

.window-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.window-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.92;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--gold);
}

.section-head p {
  margin: 0 0 1.75rem;
  opacity: 0.88;
  max-width: 52ch;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: linear-gradient(145deg, rgba(46, 89, 132, 0.85), rgba(13, 27, 42, 0.92));
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.card-wide .card-body {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

.card-photo {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.card-photo-round {
  border-radius: 14px;
  min-height: 140px;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--cyan);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.features-section {
  background: rgba(13, 27, 42, 0.45);
  border-radius: 24px;
  margin-bottom: 1rem;
  border: 1px solid rgba(76, 201, 240, 0.15);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.dispatch-panel {
  background: rgba(30, 58, 95, 0.55);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.dispatch-panel h3 {
  margin: 0 0 0.35rem;
  color: var(--gold);
}

.dispatch-icons {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.dispatch-icons img {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.35rem;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 27, 42, 0.75);
  border: 1px solid rgba(76, 201, 240, 0.35);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

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

.store-note {
  text-align: center;
  margin-top: 2rem;
  font-weight: 700;
  color: var(--amber);
  font-size: 0.95rem;
}

.legal-card {
  background: rgba(13, 27, 42, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.legal-card h3 {
  color: var(--cyan);
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-card h3:first-of-type {
  margin-top: 0.75rem;
}

.legal-card ul {
  padding-left: 1.2rem;
}

.legal-card li {
  margin-bottom: 0.4rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.support-link {
  font-size: 1.1rem;
  font-weight: 800;
}

.muted {
  font-size: 0.88rem;
  opacity: 0.75;
}

.faq {
  padding-left: 1.1rem;
  margin: 0;
}

.faq li {
  margin-bottom: 0.65rem;
}

.meta-list {
  margin: 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(76, 201, 240, 0.2);
  font-size: 0.9rem;
}

.meta-list dt {
  font-weight: 800;
  color: var(--cyan);
}

.meta-list dd {
  margin: 0;
  text-align: right;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(6, 16, 24, 0.9);
}

.site-footer img {
  margin: 0 auto 0.75rem;
  border-radius: 10px;
}

.site-footer p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.75rem !important;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-inner,
  .card-wide,
  .feature-row,
  .support-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .card-wide .card-body {
    padding: 1.25rem;
  }

  .dispatch-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 27, 42, 0.98);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-visual {
    order: -1;
  }
}
