:root {
  --bg: #151b2c;
  --bg-alt: #1e2538;
  --card: #232c42;
  --text: #f4f7ff;
  --muted: #b6bcc8;
  --accent: #2f6fff;
  --accent-strong: #ff8a3d;
  --border: #3a4b6f;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top right, #2a3559, var(--bg) 52%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.narrow { width: min(760px, 92%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(21, 27, 44, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.site-nav { display: flex; gap: 1rem; align-items: center; }
.site-nav a {
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  background: rgba(47, 111, 255, 0.24);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

.hero {
  min-height: clamp(340px, 58vh, 600px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-home { background: linear-gradient(130deg, rgba(47, 111, 255, 0.24), rgba(255, 138, 61, 0.14)); }
.hero-game,
.hero-about,
.hero-press,
.hero-contact { background: linear-gradient(130deg, rgba(47, 111, 255, 0.2), rgba(255, 138, 61, 0.08)); }

.hero-content h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
}
.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2.7vw, 1.3rem);
  max-width: 60ch;
}
.eyebrow {
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section.alt {
  background: rgba(25, 32, 50, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-top: 0; }

.grid {
  display: grid;
  gap: 1rem;
}
.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.image-card { min-height: 180px; }
.image-placeholder,
.video-placeholder,
.asset-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}
.video-placeholder { min-height: 320px; }
.asset-placeholder { min-height: 120px; }

.media-card {
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.media-card img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

.trailer-card {
  padding: 0;
  overflow: hidden;
}

.trailer-card img {
  min-height: 220px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.feature-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
.icon { margin-right: 0.5rem; }

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.2s ease;
  min-height: 44px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  border: none;
}
.button-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.cta-section { text-align: center; }

#community-wishlist {
  text-align: center;
}

.steam-wishlist-button {
  display: inline-block;
  background: #1b2838;
  color: #66c0f4;
  padding: 14px 24px;
  margin-bottom: 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(102, 192, 244, 0.35);
}

.steam-wishlist-button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.steam-widget {
  margin: 0 auto 1.5rem;
  max-width: 646px;
  width: 100%;
  overflow: hidden;
}

.steam-widget iframe {
  display: block;
  width: 100%;
  border: 0;
}

#community-wishlist h3 {
  margin: 0.8rem 0 0.75rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255,255,255,0.03);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.social-links a:hover {
  text-decoration: none;
  background: rgba(47, 111, 255, 0.24);
}
.site-footer {
  padding: 1.3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .container {
    width: min(1100px, 95%);
  }

  .hero {
    min-height: clamp(320px, 50vh, 520px);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .nav-wrap {
    min-height: 62px;
  }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 2.5%;
    right: 2.5%;
    top: 62px;
    flex-direction: column;
    width: auto;
    padding: 0.75rem;
    border: 1px solid var(--border);
    background: #202a40;
    border-radius: 12px;
    display: none;
    gap: 0.4rem;
    box-shadow: var(--shadow);
  }

  .site-nav a {
    width: 100%;
    border-radius: 10px;
  }

  .hero-content {
    padding: 1.2rem 0;
  }

  .section {
    padding: 2.3rem 0;
  }

  .video-placeholder {
    min-height: 220px;
  }

  .button-row {
    flex-direction: column;
  }

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

  .steam-wishlist-button {
    width: 100%;
  }

  .social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .social-links a {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .logo {
    font-size: 0.95rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 10vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.35rem, 8vw, 1.6rem);
  }
}
