/* ===== Game Detail Page ===== */

/* Tighter section spacing */
.gd-hero~.section {
  padding: 64px 0
}

/* Hero */
.gd-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10px 0 0;
}

.gd-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1458 25%, #4a1a7a 50%, #3b1266 75%, #0C0615 100%);
}

.gd-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
  z-index: 2;
}

.gd-hero-text {
  flex: 1;
  min-width: 0;
}


.gd-hero-game-logo {
  width: 320px;
  height: auto;
  object-fit: contain;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .4));
}

.gd-tagline {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
}

.gd-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 28px;
}

.gd-play-now-label {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--white);
  margin-bottom: 14px;
}

.gd-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

/* Store badges */
.gd-badge-link {
  display: inline-block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s;
}

.gd-badge-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .4);
}

.gd-badge-img {
  height: 46px;
  width: auto;
  display: block
}

/* Hero visual — screenshot deck */
.gd-hero-visual {
  flex: 0 0 auto;
  overflow: visible;
}

.gd-hero-deck {
  position: relative;
  width: 580px;
  height: 720px;
  margin-top: 80px;
}

.gd-deck-card {
  position: absolute;
  height: 900px;
  width: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  object-fit: cover;
}

.gd-deck-far {
  top: 100px;
  left: 0;
  transform: rotate(2deg);
  z-index: 0;
}

.gd-deck-back {
  top: 50px;
  left: 120px;
  transform: rotate(6deg);
  z-index: 1;
}

.gd-deck-front {
  top: 0;
  left: 240px;
  transform: rotate(10deg);
  z-index: 2;
}

/* ===== Screenshots Carousel ===== */
.gd-screenshots-section {
  overflow: hidden;
  padding-top: 48px;
  padding-bottom: 48px
}

.gd-screenshots-viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 2%, #000 10%, #000 90%, transparent 98%);
  -webkit-mask-image: linear-gradient(to right, transparent 2%, #000 10%, #000 90%, transparent 98%);
}

.gd-screenshots-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: gd-ss-scroll 30s linear infinite;
}

@keyframes gd-ss-scroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.gd-ss-img {
  height: 560px;
  width: auto;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}


/* ===== Feature Sections ===== */
.gd-feature {
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Contain reveal-animation translateX so they don't widen the page.
   This stylesheet only loads on game-detail pages, so .section is safe to target. */
.section {
  overflow-x: clip
}

.gd-feature--reverse {
  flex-direction: row-reverse;
}

.gd-feature-text {
  flex: 1;
  min-width: 0;
}

.gd-feature-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gd-feature-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 500px;
}

.gd-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gd-feature-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
}

.gd-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .6;
}

.gd-feature-img {
  flex: 0 0 auto;
}

.gd-feature-visual {
  width: 520px;
  height: auto;
  object-fit: contain;
  display: block;
}

.gd-feature-phone {
  width: 260px;
  height: 520px;
  border-radius: 36px;
  border: 3px solid #2a2a2a;
  background: #111;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .5),
    0 0 30px rgba(245, 197, 24, .03);
  overflow: hidden;
}

.gd-feature-phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
  display: block;
}

/* ===== Lower CTA ===== */
.gd-lower-cta {
  padding: 48px 0;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1458 25%, #4a1a7a 50%, #3b1266 75%, #0C0615 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.gd-lower-logo {
  width: 320px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .4));
}

.gd-lower-btn {
  padding: 16px 52px;
  font-size: 1.2rem;
  font-weight: 900;
  border-radius: 50px;
  background: linear-gradient(to bottom, #f5a623, #e88a00);
  color: #fff;
  border: 4px solid #f5c518;
  box-shadow:
    0 6px 0 #b36b00,
    0 8px 24px rgba(0, 0, 0, .4),
    inset 0 2px 0 rgba(255, 255, 255, .3);
  text-shadow: 1px 2px 2px rgba(0, 0, 0, .3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gd-lower-btn-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform .25s var(--ease);
}

.gd-lower-btn:hover .gd-lower-btn-arrow {
  transform: translateX(4px);
}

.gd-lower-btn:hover {
  background: linear-gradient(to bottom, #ffb838, #f59a10);
  box-shadow:
    0 4px 0 #b36b00,
    0 8px 30px rgba(245, 166, 35, .5),
    inset 0 2px 0 rgba(255, 255, 255, .3);
  transform: translateY(2px);
}

/* ===== Scroll Reveal Animations ===== */
.gd-reveal {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.gd-reveal-right {
  transform: translateX(-60px);
}

.gd-reveal-left {
  transform: translateX(60px);
}

.gd-reveal.gd-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Responsive ===== */
@media(max-width:1024px) {
  .gd-hero-inner {
    gap: 48px
  }

  .gd-feature {
    gap: 48px
  }
}

@media(max-width:768px) {
  .gd-hero {
    padding: 120px 0 60px;
    min-height: auto
  }

  .gd-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .gd-hero-text {
    order: 1
  }

  .gd-hero-visual {
    order: 0
  }

  .gd-desc {
    margin-left: auto;
    margin-right: auto
  }

  .gd-hero-btns {
    justify-content: center
  }

  .gd-hero-game-logo {
    width: 260px;
    margin-left: auto;
    margin-right: auto
  }

  .gd-hero-visual {
    display: none
  }

  .gd-feature,
  .gd-feature--reverse {
    flex-direction: column;
    text-align: center;
  }

  .gd-feature-desc {
    margin-left: auto;
    margin-right: auto
  }

  .gd-feature-phone {
    width: 220px;
    height: 440px;
    border-radius: 32px
  }

  .gd-feature-phone-screen {
    border-radius: 29px
  }

  .gd-feature-visual {
    width: 520px
  }

  .gd-feature-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto
  }

  .gd-ss-img {
    height: 420px;
    border-radius: 12px
  }

  .gd-screenshots-track {
    gap: 16px
  }
}

@media(max-width:480px) {
  .gd-hero-game-logo {
    width: 140px
  }

  .gd-hero-game-logo {
    width: 220px
  }

  .gd-feature-phone {
    width: 180px;
    height: 360px;
    border-radius: 28px
  }

  .gd-feature-phone-screen {
    border-radius: 24px
  }

  .gd-feature-visual {
    width: 400px
  }

  .gd-ss-img {
    height: 340px;
    border-radius: 10px
  }
}

/* ===== More Games Section ===== */
.gd-more-games {
  padding: 64px 0 56px;
  background: #0C0615;
}

.gd-more-games-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 36px;
  letter-spacing: -.01em;
}

.gd-more-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.gd-more-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 18px 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.gd-more-game-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(245, 166, 35, .4);
}

.gd-more-game-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 14px;
}

.gd-more-game-name {
  font-size: .72rem;
  font-weight: 600;
  color: #c8b8f0;
  text-align: center;
  line-height: 1.3;
}

.gd-more-games-all {
  display: block;
  text-align: center;
  margin-top: 36px;
  color: #f5a623;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}

.gd-more-games-all:hover {
  color: #ffb838;
}

@media (max-width: 768px) {
  .gd-more-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
  }

  .gd-more-game-logo {
    width: 56px;
    height: 56px;
  }
}