/* ======================================================
   GHOST GAMING — GAME DETAIL PAGE
====================================================== */

/* ===== Hero ===== */
.game-hero {
  position: relative;
  margin-top: var(--nav-h);
  min-height: 74vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 90px clamp(24px, 6vw, 90px);
}
.game-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.55) 46%, rgba(8,8,8,0.2) 100%),
    linear-gradient(180deg, transparent 58%, rgba(8,8,8,0.96) 100%);
}

.game-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.game-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
  transition: var(--transition);
}
.game-back svg { width: 16px; height: 16px; }
.game-back:hover { color: var(--yellow); }

.game-hero-logo {
  display: block;
  width: clamp(220px, 27vw, 390px);
  max-height: 180px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 24px;
  filter: drop-shadow(0 8px 26px rgba(0,0,0,0.6));
}
.game-hero-title {
  font-family: 'GhostFont', 'Outfit', sans-serif;
  font-weight: normal;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.game-hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 520px;
}
.game-hero-icon {
  position: absolute;
  right: clamp(16px, 5vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(190px, 22vw, 300px);
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  z-index: 1;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
@media (max-width: 980px) {
  .game-hero-icon { opacity: 0.55; right: -4%; }
}
.game-hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.game-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(255,207,0,0.25);
  background: rgba(255,207,0,0.07);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}
.game-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.game-hero-character {
  position: absolute;
  right: clamp(10px, 4vw, 90px);
  bottom: -4%;
  height: clamp(320px, 44vw, 560px);
  z-index: 1;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
  filter: drop-shadow(0 20px 42px rgba(0,0,0,0.55));
}
@media (max-width: 980px) {
  .game-hero-character { opacity: 0.5; right: -8%; }
}

/* title line-break helper: one line on desktop, two lines on mobile (instant pages) */
.game-hero-title .hero-br { display: none; }

/* ===== Mobile: game detail page ===== */
@media (max-width: 768px) {
  .game-hero {
    min-height: auto;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 18px) 18px 36px;
  }
  .game-hero-inner { max-width: 100%; width: 100%; position: relative; z-index: 2; }
  .game-hero-logo { width: clamp(170px, 50vw, 240px); max-height: 120px; margin-bottom: 14px; }
  .game-hero-title { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 12px; }
  .game-hero-title .hero-br { display: inline; }   /* first word top, second below */
  .game-hero-tagline { display: none; }
  .game-hero-meta { margin-bottom: 20px; }
  /* stack pills so they don't overlap the icon (instant pages) */
  .instant-hero .game-hero-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* hide character where requested (Space Club) */
  .game-hero-character.hide-mobile { display: none; }
  /* narrower Play Demo button */
  .game-hero-actions { gap: 10px; }
  .game-hero-actions .btn { width: auto; align-self: flex-start; padding: 12px 26px; }

  /* character/icon visible, anchored bottom-right, partly behind content */
  .game-hero-character {
    opacity: 1;
    right: -12%;
    bottom: 0;
    height: clamp(300px, 64vw, 460px);
  }
  .game-hero-icon {
    opacity: 1;
    right: 10px;
    width: clamp(150px, 40vw, 220px);
  }

  /* demo modal: shorter frame on mobile */
  .demo-modal { padding: 10px; }
  .demo-modal-panel { width: 100%; height: 66vh; max-height: 560px; }
}

/* ===== Body ===== */
.game-section { padding: 84px 0 96px; }
.game-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.game-about .section-title { margin-bottom: 22px; }
.game-about p {
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.game-feature-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.game-feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.game-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow-glow);
}

.game-specs {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 26px 30px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.game-specs h3 {
  font-family: 'GhostFont', 'Outfit', sans-serif;
  font-weight: normal;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 16px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-secondary); font-size: 0.92rem; }
.spec-val {
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: right;
}
.game-specs .btn { width: 100%; justify-content: center; margin-top: 22px; }

@media (max-width: 820px) {
  .game-grid { grid-template-columns: 1fr; gap: 38px; }
  .game-specs { position: static; }
}

/* ===== Demo modal (play in-site) ===== */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(8,8,8,0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.demo-modal.open { display: flex; }
.demo-modal-panel {
  position: relative;
  width: min(960px, 94vw);
  height: min(80vh, 680px);
  background: #000;
  border: 1px solid rgba(255,207,0,0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.demo-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* close button sits on the overlay (top-right of the screen), not on the player */
.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(8,8,8,0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.demo-modal-close:hover {
  background: var(--yellow);
  color: #0a0a0a;
  border-color: var(--yellow);
}

/* ===== Shared nav (mobile) ===== */
@media (max-width: 768px) {
  .burger span {
    height: 3px !important;
    width: 28px !important;
    border-radius: 3px !important;
    background: #ffffff !important;
  }
  .burger { gap: 6px !important; }
  .burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg) !important; }
  .burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg) !important; }
  #navLinks { display: none; }
  #navLinks.open { display: flex !important; flex-direction: column; }
  #navLinks .nav-cta {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    margin-top: 6px !important;
    align-self: center !important;
  }
  #navbar {
    background: rgba(8,8,8,0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255,207,0,0.1) !important;
    position: sticky !important;
    top: 0 !important;
  }
}
