.category-page {
  color: #212529;
}

.games-page {
  --page-background-image: url("../img/bg-goose-games-hd.png");
}

.astro-page {
  --page-background-image: url("../img/bg-goose-astro-hd.png");
}

.photos-page {
  --page-background-image: url("../img/bg-goose-photos-hd.png");
}

.category-content {
  padding: clamp(2rem, 6vh, 4rem) 0;
}

.category-intro {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(33, 37, 41, 0.14);
}

.category-intro h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.category-tile {
  display: flex;
  width: 100%;
  max-width: 15rem;
  min-height: 10rem;
  margin: 2rem auto 0;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(33, 37, 41, 0.2);
  color: #212529;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 15rem));
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.category-tile-grid .category-tile {
  margin: 0;
}

.category-tile:hover {
  box-shadow: 0 14px 34px rgba(33, 37, 41, 0.26);
  color: #212529;
  text-decoration: none;
  transform: translateY(-4px);
}

.category-tile:focus {
  outline: 3px solid #007bff;
  outline-offset: 4px;
}

.category-tile i,
.category-tile-symbol {
  font-size: 2.25rem;
}

.category-tile-symbol {
  line-height: 1;
}

.category-tile h2 {
  margin-top: 0.75rem !important;
  font-size: 1.3rem;
}

.category-tile p {
  font-size: 1rem;
}

.photo-grid {
  padding-top: 2rem;
}

.photo-card {
  overflow: hidden;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(33, 37, 41, 0.2);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card .card-body {
  padding: 0.75rem;
}

.photo-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.photo-card p {
  margin: 0.25rem 0 0;
  color: #6c757d;
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .category-content {
    padding: 1.5rem 0;
  }

  .category-tile-grid {
    margin-top: 1.5rem;
  }

  .category-content > .container > .category-tile {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-tile {
    transition: none;
  }
}
