.game-page {
  width: min(100% - 48px, 1180px);
  margin: 30px auto 100px;
}

.game-detail-hero {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 8%, rgba(184, 255, 57, 0.09), transparent 25rem),
    linear-gradient(135deg, #171e2b, #202436);
  box-shadow: 10px 10px 0 #080b11;
  color: #e8edf6;
}

.game-page-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 2px, transparent 2px),
    linear-gradient(135deg, var(--blue), var(--purple));
  background-size: 30px 30px, 30px 30px, auto;
  box-shadow: 7px 7px 0 var(--ink);
  color: var(--white);
  font-family: "Archivo Black", sans-serif;
  font-size: 4rem;
  transform: rotate(-2deg);
}

.game-page-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-detail-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #e8edf6;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-shadow: none;
}

.game-detail-hero .eyebrow {
  color: #67dcec;
}

.game-detail-hero .hero-deck {
  max-width: 760px;
  color: #c4cedd;
}

.game-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.game-page-actions a {
  min-height: 50px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.game-page-actions .primary-cta {
  border-color: #58b7ff;
  background: #58b7ff;
  color: #07101b;
}

.game-page-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.game-page-facts > span {
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.game-page-facts strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.game-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.game-page-copy > section {
  margin-top: 60px;
}

.game-page-copy h2 {
  margin: 0 0 16px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.game-page-copy h3 {
  margin: 0 0 10px;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.4rem;
}

.game-page-copy p,
.game-page-copy li {
  color: #b8c3d3;
  line-height: 1.7;
}

.game-page-copy > section > .eyebrow {
  color: #7fd8e6;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fit-grid article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #172335;
  box-shadow: 5px 5px 0 #080b11;
  color: #e8edf6;
}

.fit-grid article:last-child {
  background: #2b2029;
}

.fit-grid h3 {
  color: #e8edf6;
}

.fit-grid .eyebrow {
  color: #67dcec;
}

.fit-grid article:last-child .eyebrow {
  color: #f3a6bd;
}

.game-page-copy .fit-grid p:not(.eyebrow) {
  color: #c4cedd;
}

.detail-tips {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.detail-tips li {
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.detail-tips li::before {
  content: "✓";
  float: left;
  margin-left: -32px;
  color: var(--blue);
  font-weight: 900;
}

.media-note,
.media-fallback {
  max-width: 760px;
}

.game-media-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.game-media-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 11px;
  background: #e9edf5;
  box-shadow: 4px 4px 0 var(--ink);
}

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

.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.creator-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #171d2a;
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--white);
}

.creator-card > span,
.creator-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid var(--white);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  font-family: "Archivo Black", sans-serif;
}

.creator-card-avatar {
  position: relative;
  overflow: hidden;
}

.creator-card-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-card p {
  margin: 6px 0 9px;
  color: #bec7d6;
  font-size: 0.82rem;
  line-height: 1.45;
}

.creator-card strong {
  color: #f3f7ff;
}

.creator-card a,
.youtube-search-link,
.related-game a,
.creator-channel-link {
  color: #72dcea;
  font-weight: 900;
}

.creator-card a {
  color: var(--portal-cyan);
}

.youtube-search-link {
  display: inline-block;
  padding: 13px 16px;
  border: 2px solid #111722;
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 #111722;
  color: #111722;
  font-weight: 900;
  text-decoration: none;
}

.youtube-search-link:hover,
.youtube-search-link:focus-visible {
  background: #ffe27d;
  color: #090d14;
}

.youtube-search-link:focus-visible {
  outline: 3px solid var(--portal-cyan);
  outline-offset: 4px;
}

.related-game-grid {
  display: grid;
  gap: 14px;
}

.related-game {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 11px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.related-game-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
  font-family: "Archivo Black", sans-serif;
  font-size: 1.7rem;
}

.related-game-art-link {
  display: block;
  align-self: start;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.related-game-art-link:focus-visible {
  outline: 3px solid var(--portal-cyan);
  outline-offset: 4px;
}

.related-game-art {
  width: 100%;
  transition: transform 150ms ease, border-color 150ms ease;
}

.related-game-art-link:hover .related-game-art,
.related-game-art-link:focus-visible .related-game-art {
  transform: translateY(-2px);
  border-color: var(--portal-cyan);
}

.related-game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-game small,
.related-game strong {
  display: block;
}

.related-game small {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
}

.related-game strong {
  margin-top: 4px;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.25rem;
}

.related-game p {
  margin: 8px 0;
  font-size: 0.85rem;
}

.game-page-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 12px;
  margin-top: 60px;
}

.game-page-sidebar > div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: #171e2b;
  box-shadow: 4px 4px 0 #080b11;
}

.game-page-sidebar strong {
  display: block;
  color: #e8edf6;
  font-family: "Archivo Black", sans-serif;
}

.game-page-sidebar p {
  margin-bottom: 0;
  color: #b9c4d4;
  font-size: 0.82rem;
  line-height: 1.55;
}

.creator-hero {
  margin-inline: auto;
}

.creator-directory {
  width: min(100% - 48px, 1100px);
  margin: 54px auto 110px;
}

.creator-disclosure {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #202436;
  box-shadow: 4px 4px 0 #080b11;
}

.creator-disclosure p {
  margin-bottom: 0;
  color: #c4cedd;
}

.creator-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.creator-directory-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #171e2a;
  box-shadow: 5px 5px 0 #080b11;
}

.creator-directory-card .creator-avatar {
  width: 76px;
  height: 76px;
  border-color: rgba(255, 255, 255, 0.7);
  color: #101621;
}

.creator-directory-card h2 {
  margin: 0;
  color: #e3e9f2;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.8rem;
}

.creator-directory-card p {
  color: #bdc8d7;
  line-height: 1.6;
}

.creator-game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.creator-game-links a {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: #273142;
  color: #d6deea;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.creator-game-links a:hover,
.creator-game-links a:focus-visible {
  border-color: rgba(82, 231, 255, 0.58);
  color: #7eddea;
}

.creator-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.creator-card-actions a {
  font-weight: 900;
}

.creator-kit-link {
  color: #7eddea;
}

@media (max-width: 900px) {
  .game-page-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-page-layout {
    grid-template-columns: 1fr;
  }

  .game-page-sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .game-page {
    width: min(100% - 28px, 1180px);
  }

  .game-detail-hero,
  .game-page-facts,
  .fit-grid,
  .game-media-gallery,
  .creator-grid,
  .creator-directory-grid,
  .game-page-sidebar {
    grid-template-columns: 1fr;
  }

  .game-page-icon {
    width: 160px;
  }

  .game-detail-hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .related-game {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }

  .related-game p {
    display: none;
  }

  .creator-directory-card {
    grid-template-columns: 1fr;
  }
}
