/* ---------- Hero with gameplay video ---------- */

.game-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--header-h) 1.5rem 7rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg) url("Games/Fluffy Alchemist/PressKitIcon/Screan/Fluffy Alchemist  - Fishing cozy game _Screan_1.jpg") center / cover no-repeat;
}

/* Darkens the top for the header and dissolves the bottom into the page background */
.game-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(var(--bg-rgb), 0.35) 0%,
      rgba(var(--bg-rgb), 0) 22%,
      rgba(var(--bg-rgb), 0.25) 50%,
      rgba(var(--bg-rgb), 0.85) 78%,
      var(--bg) 100%
    );
}

.game-hero-content {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.game-hero-content .tags {
  justify-content: center;
}

.game-hero-content .tags li {
  background: rgba(var(--bg-rgb), 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.title-char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px) scale(0.85);
  animation: title-reveal 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes title-reveal {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px) scale(0.85);
    text-shadow: 0 0 0 rgba(200, 100, 42, 0);
  }
  55% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-3px) scale(1.08);
    text-shadow: 0 0 18px rgba(240, 150, 70, 0.8), 0 0 34px rgba(200, 100, 42, 0.4);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  }
}

.game-hero-text {
  color: var(--text-soft);
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.game-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -1.25rem;
  color: var(--text-muted);
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(6px);
  }
}

/* ---------- About ---------- */

.game-about {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.game-about-text p:not(.section-eyebrow) {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.steam-widget {
  margin-top: 1.5rem;
  max-width: 646px;
}

.steam-widget iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
}

.game-facts {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  padding: 0.5rem 1.5rem;
}

.game-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0;
  font-weight: 600;
}

.game-facts li + li {
  border-top: 1px solid var(--border);
}

.game-facts span {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-facts .game-facts-cta {
  padding: 1rem 0 0.75rem;
}

.game-facts-cta .ghost-btn {
  justify-content: center;
  width: 100%;
}

/* ---------- Trailer ---------- */

.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Screenshots ---------- */

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.shot {
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-raised);
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot:hover,
.shot:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(224, 164, 106, 0.45);
  box-shadow: var(--shadow-lg);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 4.5rem;
  background: rgba(15, 10, 7, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lb-btn {
  position: absolute;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lb-btn:hover {
  background: var(--btn);
  color: var(--btn-text);
}

.lb-btn svg {
  width: 1.4rem;
  height: 1.4rem;
}

.lb-close {
  top: 1rem;
  right: 1rem;
}

.lb-prev,
.lb-next {
  top: calc(50% - 1.5rem);
}

.lb-prev {
  left: 1rem;
}

.lb-next {
  right: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .game-about {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .game-hero {
    padding-bottom: 5.5rem;
  }

  .game-hero-text {
    font-size: 1.05rem;
  }

  .lightbox {
    padding: 4.5rem 0.5rem;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 1rem;
  }

  .lb-prev {
    left: calc(50% - 3.5rem);
  }

  .lb-next {
    right: calc(50% - 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-char {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .scroll-hint {
    animation: none;
  }
}
