/* ===================================================================
   GAME PAGE — hero still, features, gallery + lightbox, spec table
   =================================================================== */

/* main is a flex column on page-bg pages: a .section with auto margins would
   size to its grid's max-content and overflow the viewport */
body.has-page-bg main > .section {
  width: 100%;
}

.game-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
  overflow: hidden;
}

.game-hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.game-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(6, 8, 14, 0.55) 0%, rgba(6, 8, 14, 0.35) 40%, var(--color-bg) 100%);
}

.game-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.game-hero-content h1,
.game-pitch,
.game-hero-content .label {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.game-pitch {
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  margin: var(--space-sm) 0 var(--space-md);
}

.game-hero .hero-actions a {
  text-decoration: none;
}

.game-platforms {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.game-clips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  max-width: var(--container-max);
  margin: 0 auto;
}

.game-clip {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}

.game-clip video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-clip figcaption {
  padding: 0.8rem 1rem 1rem;
  background: var(--color-bg-card);
}

.game-clip figcaption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.game-clip figcaption span {
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

/* Story / arsenal / worlds come from the home page sections; the band gives
   the story its own dark surface since it is not inside an expandable here */
.game-band {
  background: var(--color-bg-card);
}

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

@media (max-width: 1024px) {
  .game-clips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .game-clips {
    grid-template-columns: 1fr;
  }
}

.game-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm);
  max-width: var(--container-max);
  margin: 0 auto;
}

.game-feature {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(30, 42, 70, 0.5) 0%, rgba(8, 10, 18, 0.8) 100%);
}

.game-feature h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.game-feature p {
  color: var(--color-text-dim);
  font-size: 0.95rem;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xs);
  max-width: var(--container-max);
  margin: 0 auto;
}

.game-shot {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.game-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-shot:hover img {
  transform: scale(1.04);
}

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
}

.lightbox::backdrop {
  background: var(--color-overlay-dark);
}

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 8px;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(6, 8, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
}

.game-specs {
  max-width: 860px;
  margin: 0 auto;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.spec-table thead th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cyan-light);
}

.spec-table tbody th {
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
}

.spec-table td {
  color: var(--color-text-dim);
}

.game-specs-note {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

@media (max-width: 768px) {
  .game-hero {
    min-height: 60vh;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* Hero title as the game logo, same sizing as the FAQ / Press page-game-logo */
.game-hero-content .page-game-logo {
  display: block;
  width: clamp(180px, 26vw, 300px);
  height: auto;
  margin: 0 auto var(--space-sm);
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.16)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
@media (max-width: 640px) {
  .game-hero-content .page-game-logo { width: clamp(160px, 55vw, 240px); }
}

/* Roadmap: Now / Next / Later from the portal (tasks tagged public) */
.roadmap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-md);
}

.roadmap-lane {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-md);
}

.roadmap-lane h3 {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-sm);
}

.roadmap-lane li {
  color: var(--color-text);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
}

.roadmap-lane li:last-child { border-bottom: 0; }
