/* game pages (buildacountry.canardev.com and friends), on top of styles.css */

.game-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.game-head-icon {
  width: clamp(64px, 9vw, 96px);
  height: clamp(64px, 9vw, 96px);
  flex: none;
  border-radius: 22%;
  border: 3px solid var(--line-2);
  object-fit: cover;
}

.game-hero h1 {
  font-size: clamp(40px, 6.6vw, 84px);
  overflow-wrap: anywhere;
}

.game-hero .hero-lede {
  max-width: 34ch;
}

.game-facts {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dim);
}

.game-hero-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--line-2);
  box-shadow: 10px 10px 0 var(--duck);
  transform: rotate(1.5deg);
}

.hero-video {
  position: relative;
  overflow: hidden;
  background: var(--card);
}

.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video .sound-btn {
  top: auto;
  bottom: 14px;
  right: 14px;
}

@media (max-width: 880px) {
  .game-hero-shot {
    transform: none;
    box-shadow: 6px 6px 0 var(--duck);
  }
}

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--card);
}

/* on phones the screenshots become a row you swipe through */
@media (max-width: 620px) {
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar {
    display: none;
  }
  .shots li {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

/* ---------- about ---------- */

.about {
  max-width: 70ch;
  padding: clamp(18px, 3vw, 28px);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 17px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ---------- passes + badges ---------- */

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

@media (hover: hover) {
  .item:hover {
    transform: translate(-2px, -2px);
    border-color: var(--duck);
    box-shadow: 4px 4px 0 var(--duck);
  }
}

.item img,
.item-blank {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 12px;
  background: var(--card-2);
  object-fit: cover;
}

.item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.item-text strong {
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.item-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.item-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.item-price {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--duck);
}

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

.footer a {
  color: var(--muted);
}
