/* Screenshot-first game pages and the homepage Recent Games band.
   Phone shots stay at or below their source width so they are not blown up. */

.gp-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.gp-icon {
  width: 56px;
  height: 56px;
  border-radius: 22%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.gp-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.gp-store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3.25rem;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.45rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(248, 244, 232, 0.16);
  background: #111416;
  color: #f8f4e8;
  line-height: 1.15;
}

.gp-store strong {
  font-size: 0.98rem;
}

.gp-store small {
  color: #b9b5aa;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gp-carousel {
  display: grid;
  gap: 0.75rem;
}

.gp-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  overscroll-behavior-x: contain;
  padding-bottom: 0.35rem;
  scrollbar-color: rgba(248, 244, 232, 0.35) transparent;
}

.gp-track:focus-visible {
  outline: 2px solid #7ae8ff;
  outline-offset: 4px;
}

.gp-slide {
  margin: 0;
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: start;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(248, 244, 232, 0.14);
  background: #101516;
}

.gp-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.gp-slide figcaption {
  padding: 0.65rem 0.85rem 0.8rem;
  color: #b9b5aa;
  font-size: 0.88rem;
}

.gp-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.gp-nav {
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 244, 232, 0.2);
  background: transparent;
  color: #f8f4e8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gp-nav:focus-visible {
  outline: 2px solid #7ae8ff;
  outline-offset: 3px;
}

.gp-status {
  margin: 0 0 0 auto;
  color: #b9b5aa;
  font-size: 0.88rem;
}

.gp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gp-feature-grid article {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(248, 244, 232, 0.14);
  background: linear-gradient(165deg, #1d2426 0%, #0c1011 100%);
}

.gp-feature-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.gp-feature-grid p {
  margin: 0;
  color: rgba(248, 244, 232, 0.78);
}

.gp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.fc-body .project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body.fc-body .project-showcase .project-showcase-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  height: auto;
  grid-template-rows: none;
  overflow: hidden;
}

body.fc-body .project-showcase .project-showcase-media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0.9rem 1rem 0;
  border-bottom: 0;
  background: transparent;
}

body.fc-body .project-showcase .project-showcase-media img {
  width: 44px;
  height: 44px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  filter: none;
}

body.fc-body .project-showcase .project-showcase-copy {
  flex: 1;
  gap: 0.45rem;
  padding: 0.75rem 1rem 1rem;
}

body.fc-body .project-showcase .project-showcase-copy h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

body.fc-body .project-showcase .project-showcase-copy p {
  font-size: 0.95rem;
  line-height: 1.45;
}

body.fc-body .project-showcase .project-showcase-actions {
  gap: 0.5rem;
}

.recent-games {
  border-top: 1px solid rgba(248, 244, 232, 0.1);
  background: transparent;
}

.recent-games .section-heading {
  margin-bottom: 0.75rem;
}

.recent-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.recent-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(248, 244, 232, 0.14);
  border-radius: 16px;
  background: linear-gradient(165deg, #1a2123 0%, #0c1011 100%);
}

.recent-game-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-game-name h3 {
  margin: 0;
  font-size: 1.05rem;
}

.recent-game .gp-icon {
  width: 28px;
  height: 28px;
  box-shadow: none;
}

.recent-game p {
  margin: 0.35rem 0 0.6rem;
  color: rgba(248, 244, 232, 0.78);
  font-size: 0.92rem;
  line-height: 1.4;
}

.recent-game-shot {
  margin: 0;
  width: 104px;
  justify-self: end;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(248, 244, 232, 0.14);
  background: #101516;
}

.recent-game-shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  body.fc-body .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.fc-body .project-grid,
  .recent-games-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gp-feature-grid {
    grid-template-columns: 1fr;
  }

  .gp-identity {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gp-track {
    scroll-behavior: auto;
  }
}
