.game-page {
  max-width: 1440px;
  margin: auto;
  padding: 45px 6% 80px;
}
.back-link {
  display: inline-block;
  color: #bfc8df;
  font-size: 14px;
  padding: 10px 0;
  margin-bottom: 30px;
}
.back-link:hover {
  color: white;
}
.detail-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 65px;
  align-items: center;
  margin-bottom: 65px;
}
.detail-title {
  display: flex;
  align-items: center;
  gap: 18px;
}
.detail-title img {
  border-radius: 20px;
  border: 1px solid #ffffff45;
}
.detail-title h1 {
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -2.4px;
  line-height: 1.1;
}
.detail-tagline {
  font-size: 22px;
  color: #e0d7ff;
  line-height: 1.5;
}
.detail-description {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 630px;
}
.download-panel,
.feature-panel,
.related-game {
  background: var(--glass);
  border: 1px solid #d7e7ff35;
  box-shadow: var(--rim);
  border-radius: 25px;
}
.download-panel {
  padding: 28px;
}
.download-panel h2 {
  font-size: 27px;
  letter-spacing: -1px;
}
.download-panel p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.requirements-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: #c4cbdf;
}
.detail-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}
.detail-section-heading .eyebrow {
  margin-bottom: 15px;
}
#gallery-count {
  font-size: 14px;
  color: var(--muted);
}
.gallery-main {
  display: block;
  position: relative;
  width: 100%;
  padding: 10px;
  background: var(--glass);
  border: 1px solid #d7e7ff35;
  border-radius: 26px;
  box-shadow: var(--rim);
}
.gallery-main > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 18px;
  background: #0a1127;
}
.expand-label {
  position: absolute;
  bottom: 25px;
  right: 25px;
  padding: 12px 17px;
  background: #111a37dc;
  border: 1px solid #fff5;
  border-radius: 30px;
  font-size: 13px;
  backdrop-filter: blur(12px);
}
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.gallery-thumb {
  position: relative;
  padding: 4px;
  background: #ffffff08;
  border: 2px solid transparent;
  border-radius: 13px;
  min-width: 0;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 7px;
}
.gallery-thumb span {
  position: absolute;
  bottom: 5px;
  right: 5px;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 11px;
  background: #0a1127dd;
}
.gallery-thumb[aria-pressed="true"] {
  border-color: #b4a3ff;
  background: #b4a3ff25;
}
.gallery-thumb:hover {
  background: #fff2;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 55px 0 75px;
}
.feature-panel {
  padding: 27px;
}
.feature-panel h3 {
  font-size: 23px;
}
.feature-panel p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0;
}
.detail-trailer {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
  padding: 45px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detail-trailer h2 {
  font-size: 38px;
}
.detail-trailer p {
  color: var(--muted);
  line-height: 1.8;
}
.detail-trailer a {
  color: #c5b8ff;
  font-size: 14px;
}
#trailer-stage {
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
  background: #090e20;
  border: 1px solid #ffffff30;
}
#play-detail-trailer {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
}
#play-detail-trailer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.7);
}
#trailer-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.related-section {
  margin-top: 65px;
}
.related-section h2 {
  font-size: 32px;
  margin-bottom: 25px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.related-game {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 23px;
  transition: background 0.2s;
}
.related-game:hover {
  background: #ffffff15;
}
.related-game img {
  border-radius: 15px;
}
.related-game > span:last-child {
  margin-left: auto;
}
#screenshot-dialog {
  width: min(1250px, 96vw);
  max-height: 94dvh;
  padding: 18px;
}
#large-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70dvh;
  object-fit: contain;
}
.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  gap: 12px;
}
.lightbox-controls button {
  border: 1px solid #ffffff35;
  background: #ffffff10;
  padding: 12px 18px;
  border-radius: 30px;
  min-height: 44px;
}
.lightbox-controls span {
  font-size: 14px;
  color: var(--muted);
}
.detail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px 0;
  margin-top: 20px;
  border-top: 1px solid #ffffff20;
  font-size: 14px;
  color: #d0c3ff;
}
.detail-link:hover {
  color: white;
}
@media (max-width: 1000px) {
  .detail-intro {
    gap: 30px;
    grid-template-columns: 1fr;
  }
  .download-panel {
    max-width: 550px;
  }
  .feature-grid {
    gap: 14px;
  }
  .feature-panel {
    padding: 22px;
  }
  .detail-trailer {
    gap: 25px;
  }
  .gallery-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gallery-thumb span {
    font-size: 12px;
  }
}
@media (max-width: 650px) {
  .game-page {
    padding: 25px 6% 55px;
  }
  .detail-intro {
    margin-bottom: 45px;
  }
  .detail-title {
    gap: 12px;
  }
  .detail-title img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .detail-title h1 {
    font-size: 32px;
    letter-spacing: -1.3px;
  }
  .detail-tagline {
    font-size: 20px;
  }
  .download-panel {
    padding: 23px;
  }
  .detail-section-heading {
    display: block;
  }
  .detail-section-heading > span {
    display: block;
    margin-top: 15px;
  }
  .detail-section-heading h2 {
    font-size: 33px;
  }
  .gallery-main {
    padding: 6px;
    border-radius: 18px;
  }
  .gallery-main > img {
    border-radius: 12px;
  }
  .expand-label {
    font-size: 12px;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
  }
  .gallery-thumbnails {
    gap: 7px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    margin: 35px 0 45px;
  }
  .detail-trailer {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }
  .detail-trailer h2 {
    font-size: 32px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-game {
    font-size: 21px;
  }
  .lightbox-controls button {
    font-size: 13px;
    padding: 10px 12px;
  }
  #screenshot-dialog .dialog-heading h2 {
    font-size: 17px;
    line-height: 1.4;
  }
  .back-link {
    margin-bottom: 20px;
  }
}