/* Richiamo compatto al catalogo Giochi nella home. */
.sr-home-games {
  --home-games-ink: #faf7ee;
  --home-games-link: #f1d298;
  --home-games-tile: #1a3027;
  --home-games-hover: #254236;
  --home-games-line: #466052;
  margin: 18px 0;
  padding: 14px 16px 5px;
  border: 1px solid var(--home-games-line);
  border-radius: 14px;
  background: #13251f;
  color: var(--home-games-ink);
}

.sr-home-games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-bottom: 8px;
}

.sr-home-games-header h2 {
  margin: 0;
  color: var(--home-games-ink);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.sr-home-games-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(12px, 2vw, 24px);
}

.sr-home-games-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-games-link);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

#home-games-title,
#home-arcade-title { scroll-margin-top: 90px; }

.sr-home-games-featured,
.sr-home-games-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-home-games-card {
  display: grid;
  grid-template-columns: minmax(28px, 28%) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--home-games-line);
  border-radius: 8px;
  background: var(--home-games-tile);
  color: var(--home-games-ink);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.sr-home-games-card img {
  display: block;
  width: 100%;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

.sr-home-games-more { margin-top: 4px; }

.sr-home-games-more summary {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding-right: 8px;
  color: var(--home-games-link);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.sr-home-games-more summary::-webkit-details-marker { display: none; }

.sr-home-games-more summary::before {
  width: 7px;
  height: 7px;
  margin: 0 3px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  content: "";
}

.sr-home-games-more[open] summary::before { transform: translateY(-2px) rotate(45deg); }

.sr-home-games-list { margin: 4px 0 8px; }

.sr-home-games :is(a, summary) { -webkit-tap-highlight-color: #f1d29830; }

.sr-home-games-card:hover { background: var(--home-games-hover); }

.sr-home-games :is(a, summary):focus-visible {
  outline: 2px solid var(--home-games-link);
  outline-offset: 2px;
  border-radius: 5px;
}

@media (max-width: 760px) {
  .sr-home-games {
    padding: 8px 10px 4px;
  }

  .sr-home-games-header { margin-bottom: 5px; }

  .sr-home-games-featured,
  .sr-home-games-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-home-games-card { font-size: .875rem; }

  .sr-home-games-card img { height: 42px; }
}

@media (max-width: 360px) {
  .sr-home-games-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 5px;
    padding-right: 4px;
    font-size: .8125rem;
  }

  .sr-home-games-nav a { font-size: .8125rem; }
}
