.hot-games {
  --hot-ink: #102b48;
  --hot-muted: #546b81;
  --hot-border: #d9e4ec;
  margin: 0 0 18px;
  padding: 16px;
  color: var(--hot-ink);
  background: #fff;
  border: 1px solid var(--hot-border);
  border-radius: 18px;
  box-shadow: 0 6px 20px #163c6510;
}

.hot-games-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 4px 12px;
  border-inline-start: 4px solid #c8a65a;
  border-radius: 6px;
  background: linear-gradient(100deg, #102b48 0%, #163c65 34%, #eff5fb 85%);
}

#hotGamesTitle {
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 3.6vw, 19px);
  font-weight: 800;
  line-height: 1.15;
}

.hot-games-controls {
  display: flex;
  flex: none;
  gap: 4px;
}

.hot-games-controls button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: #123c6a;
  background: #fff;
  border: 1px solid #c7d6e3;
  border-radius: 8px;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.hot-games-controls button:disabled {
  color: #788b9c;
  cursor: default;
}

.hot-games :is(.hot-games-controls, .hot-games-track, .hot-games-notice)[hidden] {
  display: none;
}

.hot-games-notice {
  margin: 13px 0 0;
  color: var(--hot-muted);
  font-size: 14px;
}

.hot-games-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 50px) / 6);
  gap: 10px;
  margin: 12px 0 0;
  padding: 2px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #b3c6d5 transparent;
  scrollbar-width: thin;
  list-style: none;
}

.hot-games-track li {
  min-width: 0;
  scroll-snap-align: start;
}

.hot-game-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--hot-ink);
  text-align: start;
  background: #f8fbff;
  border: 1px solid var(--hot-border);
  border-radius: 12px;
  cursor: pointer;
}

.hot-game-card:hover {
  border-color: #b19454;
}

.hot-games button:focus-visible {
  outline: 2px solid #1766ae;
  outline-offset: -2px;
}

.hot-game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e7eff6;
}

.hot-game-name {
  align-self: start;
  padding: 7px 8px 5px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.25;
}

.hot-game-rate {
  display: block;
  padding: 0 8px 8px;
  color: var(--hot-muted);
  font-size: 11px;
  line-height: 1.25;
}

.hot-game-maintenance {
  position: absolute;
  top: 5px;
  left: 5px;
  max-width: calc(100% - 10px);
  padding: 3px 5px;
  color: #fff7de;
  background: #18273bef;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.15;
}

@media (max-width: 1024px) {
  .hot-games-track { grid-auto-columns: calc((100% - 30px) / 4); }
}

@media (max-width: 500px) {
  .hot-games { padding: 12px; border-radius: 14px; }
  .hot-games-track { grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; }
}
