/* ============================================================
   GAME PAGES + PRESSKIT — Styles
   ============================================================ */

/* ============ STATIC PAGES (contact, privacy) ============ */
.static-page {
  background: var(--void);
  min-height: 100vh;
  padding: 140px 40px 80px;
}

.static-page__container {
  max-width: 720px;
  margin: 0 auto;
}

.static-page__container--narrow {
  max-width: 640px;
}

.static-page__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.static-page__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 40px;
}

.static-page__date {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 40px;
}

/* Honeypot hidden field */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* Cloudflare Turnstile */
.contact-form__turnstile {
  margin-bottom: 20px;
}

/* Form status messages */
.contact-form__status {
  font-size: 0.88rem;
  margin-top: 16px;
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}

.contact-form__status--ok {
  color: #4ade80;
}

.contact-form__status--err {
  color: #f87171;
}

/* Contact confirmation */
.contact-confirmation {
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.6s var(--ease-out-expo);
}

.contact-confirmation__icon {
  color: #4ade80;
  margin-bottom: 20px;
}

.contact-confirmation__title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-confirmation__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-confirmation__text strong {
  color: var(--text);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-email-alt {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 32px;
  text-align: center;
}

.contact-email-alt a {
  color: var(--accent);
  transition: color 0.3s ease;
}

.contact-email-alt a:hover {
  color: var(--accent-glow);
}

/* Prose (privacy policy) */
.prose h2 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.prose ul {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 12px;
}

.prose a {
  color: var(--accent);
  transition: color 0.3s ease;
}

.prose a:hover { color: var(--accent-glow); }

/* ============ BRANDED GAME HEROES ============ */

/* BlindTest hero */
.game-hero--bt-branded {
  background: linear-gradient(135deg, #020617 0%, #0f172a 40%, #1a1a2e 100%);
  padding-top: 140px;
  padding-bottom: 64px;
}

.bt-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.bt-hero-blind,
.bt-hero-test {
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bt-hero-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #94a3b8;
  font-weight: 400;
  margin-bottom: 32px;
}

.btn--bt {
  background: linear-gradient(to right, #6366f1, #a855f7);
  color: #fff;
}

.btn--bt:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* QPUG hero */
.game-hero--qpug-branded {
  background: #0a0a0f;
  background-image:
    linear-gradient(to right, rgba(255,107,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,107,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  padding-top: 140px;
  padding-bottom: 64px;
}

.qpug-hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qpug-hero-q {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 107, 0, 0.3);
}

.qpug-hero-g {
  color: #FF6B00;
  text-shadow: 0 0 30px #FF6B00, 0 0 60px rgba(255, 45, 0, 0.3);
}

.qpug-hero-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: #808090;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  max-width: 500px;
  text-align: center;
}

.btn--qpug {
  background: linear-gradient(135deg, #FF6B00, #FF9500);
  color: #0a0a0f;
}

.btn--qpug:hover {
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}

/* Dungeon Heist hero */
.game-hero--dh-branded {
  background: linear-gradient(135deg, #0f0a04 0%, #1a1008 40%, #0f0a04 100%);
  padding-top: 140px;
  padding-bottom: 64px;
}

.dh-hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
}

.dh-hero-dungeon {
  color: #c4a882;
  text-shadow: 0 0 30px rgba(196, 168, 130, 0.3);
}

.dh-hero-heist {
  color: #f0a830;
  text-shadow: 0 0 30px rgba(240, 168, 48, 0.4);
}

.dh-hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #8a7a60;
  font-weight: 400;
  margin-bottom: 32px;
}

.btn--dh {
  background: linear-gradient(135deg, #c4a050, #f0a830);
  color: #1a1008;
}

.btn--dh:hover {
  box-shadow: 0 0 20px rgba(240, 168, 48, 0.4);
  transform: translateY(-2px);
}

/* ============ GAME PAGE ============ */
.game-page {
  background: var(--void);
}

/* Game Hero — Capsule */
.game-hero--capsule {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 40px 48px;
  background: var(--void);
  animation: gameHeroIn 0.8s var(--ease-out-expo) 0.1s both;
}

.game-hero__capsule {
  width: 100%;
  max-width: 920px;
  border-radius: 16px;
  display: block;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
}

.game-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

@keyframes gameHeroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Game Sections */
.game-section {
  padding: clamp(60px, 10vh, 120px) 0;
}

.game-section--dark {
  background: var(--void-mid);
}

.game-section__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.game-section__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 16px;
}

.game-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Game About layout */
.game-about {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.game-about__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.game-about__meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--void-mid);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.meta-value {
  font-size: 0.92rem;
  font-weight: 500;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--void-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-card__icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--void-light);
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.screenshot-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.screenshot-link:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Trailer — placeholder */
.trailer-placeholder {
  aspect-ratio: 16 / 9;
  max-width: 800px;
  background: var(--void-light);
  border: 1px dashed var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.trailer-placeholder__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-dim);
}

.trailer-placeholder__inner svg { opacity: 0.3; }
.trailer-placeholder__inner p { font-size: 0.88rem; }

/* Trailer — video */
.trailer-wrap {
  max-width: 800px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--void-mid);
}

.trailer-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Game CTA */
.game-cta {
  background: linear-gradient(180deg, var(--void) 0%, var(--void-mid) 100%);
  text-align: center;
  padding: clamp(80px, 14vh, 160px) 0;
}

.game-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-cta__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.game-cta__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 480px;
}

/* ============ PRESSKIT PAGE ============ */
.presskit-page {
  background: var(--void);
  min-height: 100vh;
}

.presskit-hero {
  padding: 140px 40px 60px;
  text-align: center;
}

.presskit-hero__container {
  max-width: var(--container);
  margin: 0 auto;
}

.presskit-hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.presskit-hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
}

/* Presskit sections */
.presskit-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.presskit-section__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.presskit-section__title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 12px;
}

.presskit-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.presskit-section__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 12px;
  margin-bottom: 32px;
}

/* Studio card */
.presskit-studio-card {
  background: var(--void-mid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
}

.presskit-studio-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.presskit-studio-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.presskit-studio-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.presskit-studio-meta strong {
  color: var(--text);
  font-weight: 500;
}

.presskit-studio-meta a {
  color: var(--accent);
  transition: color 0.3s ease;
}

.presskit-studio-meta a:hover { color: var(--accent-glow); }

/* Presskit game cards */
.presskit-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.presskit-game-card {
  background: var(--void-mid);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.presskit-game-card:hover {
  border-color: var(--border-hover);
}

.presskit-game-card__header {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.presskit-game-card__header--delvers {
  background: linear-gradient(135deg, #0a0a20 0%, #1a0a2e 50%, #0d1a2e 100%);
}

.presskit-game-card__header--idle {
  background: linear-gradient(135deg, #0a1520 0%, #0a2030 50%, #051525 100%);
}

.presskit-game-card__name {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.presskit-game-card__body {
  padding: 24px 32px 32px;
}

.presskit-game-card__genre {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.presskit-game-card__langs h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.presskit-lang-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.presskit-lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  background: var(--void-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 120px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.presskit-lang-card--unavailable {
  opacity: 0.5;
  cursor: not-allowed;
}

.presskit-lang-card__flag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.presskit-lang-card__label {
  font-size: 0.82rem;
  font-weight: 500;
}

.presskit-lang-card__status {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease-out-expo);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.2s ease;
  z-index: 1002;
}

.lightbox__close:hover {
  color: var(--text);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 1002;
}

.lightbox__nav:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .game-hero--capsule {
    padding: 80px 16px 32px;
  }

  .game-about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .game-section__container {
    padding: 0 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .presskit-hero {
    padding: 100px 24px 40px;
  }

  .presskit-section__container {
    padding: 0 24px;
  }

  .presskit-games-grid {
    grid-template-columns: 1fr;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 480px) {
  .presskit-lang-cards {
    flex-direction: column;
  }

  .presskit-lang-card {
    width: 100%;
  }
}