/* Games showcase: Cassandra leads; all projects receive an expandable visual detail view. */
.project-grid-games {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.game-card {
  height: max-content;
}

.game-card .project-card-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.game-card .project-card-main h4 {
  min-height: 0;
  margin-bottom: 12px;
}

.game-card-intro,
.game-card-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.game-card .project-card-details {
  margin-top: auto;
}

.game-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.72fr);
  overflow: hidden;
  border-color: rgba(158, 105, 204, 0.44);
  background:
    radial-gradient(circle at 88% 10%, rgba(144, 83, 194, 0.29), transparent 34%),
    linear-gradient(145deg, #110b18, #1e1128 72%, #090710);
  box-shadow: 0 30px 80px rgba(35, 13, 52, 0.22);
}

.game-card-featured:hover {
  border-color: rgba(194, 143, 231, 0.72);
  box-shadow: 0 38px 92px rgba(35, 13, 52, 0.3);
}

.game-card-featured-media {
  min-height: 440px;
  aspect-ratio: auto;
}

.game-card-featured-media::after {
  background: linear-gradient(90deg, transparent 62%, rgba(15, 8, 22, 0.52));
}

.game-card-featured .project-card-main {
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

.game-card-featured .eyebrow {
  color: #d8b5f0;
}

.game-card-featured .project-card-main h4 {
  color: #fff;
  font-size: clamp(31px, 3.4vw, 48px);
  line-height: 1.04;
}

.game-card-featured .game-card-lead {
  color: #ddd0e7;
  font-size: 17px;
}

.game-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.game-feature-pills li {
  padding: 8px 11px;
  border: 1px solid rgba(217, 174, 239, 0.34);
  border-radius: 999px;
  color: #f2e8f8;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 800;
}

.game-play-link {
  align-self: flex-start;
  border-color: #c295dc;
  background: linear-gradient(135deg, #8b4db0, #bf7bd5);
  box-shadow: 0 16px 32px rgba(97, 43, 128, 0.34);
}

.game-play-link:hover {
  border-color: #e0b3ef;
  background: linear-gradient(135deg, #9d5fc0, #d18be3);
}

.game-featured-details {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 clamp(28px, 4vw, 54px) 34px;
  border-color: rgba(229, 202, 241, 0.18);
}

.game-featured-details > summary {
  color: #e2c3f2;
}

.game-featured-details > summary::after {
  color: #f7ebfb;
  border-color: rgba(226, 195, 242, 0.5);
}

.game-featured-details[open] > summary::after {
  color: #17101c;
  background: #d3a6e8;
}

.game-featured-details .project-card-content p,
.game-featured-details .project-card-content small {
  color: #d5c8dd;
}

.game-featured-details .game-detail-list {
  color: #eadff0;
}

.game-description {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.game-description p {
  margin: 0;
}

.game-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 22px 0 24px;
  padding: 0;
  color: #234c60;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  list-style: none;
}

.game-detail-list li {
  position: relative;
  padding-left: 17px;
}

.game-detail-list li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #7867d9);
  box-shadow: 0 0 0 4px rgba(16, 184, 239, 0.1);
  content: "";
}

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

.game-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(7, 31, 49, 0.14);
  border-radius: 14px;
  background: #07131b;
  box-shadow: 0 14px 32px rgba(2, 25, 39, 0.12);
}

.game-gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #07131b;
}

.game-gallery figcaption {
  padding: 10px 12px 12px;
  color: #d9e8ed;
  background: #0a1f2a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.game-featured-details .game-gallery figure {
  border-color: rgba(226, 195, 242, 0.2);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.game-featured-details .game-gallery figcaption {
  color: #f0e6f4;
  background: #160e1d;
}

@media (min-width: 801px) {
  .game-card:not(.game-card-featured):has(.project-card-details[open]) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  }

  .game-card:not(.game-card-featured):has(.project-card-details[open]) .project-card-media {
    min-height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 800px) {
  .project-grid-games {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-card-featured {
    display: block;
  }

  .game-card-featured-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .game-card-featured-media::after {
    background: linear-gradient(180deg, transparent 52%, rgba(15, 8, 22, 0.58));
  }

  .game-card-featured .project-card-main {
    padding: 30px 26px 32px;
  }

  .game-featured-details {
    padding: 0 26px 30px;
  }

  .game-description,
  .game-detail-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .game-card-featured .project-card-main,
  .game-featured-details {
    padding-right: 20px;
    padding-left: 20px;
  }

  .game-card-featured .project-card-main h4 {
    font-size: clamp(29px, 10.2vw, 40px);
  }

  .game-play-link {
    width: 100%;
  }

  .game-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card,
  .game-card .project-card-media > img:first-child {
    transition: none;
  }
}
