.sf-rotating-games-showcase {
  --sf-games-bg: #111a22;
  --sf-games-panel: #1b252d;
  --sf-games-text: #f7f8f9;
  --sf-games-muted: #d9dde1;
  --sf-games-accent: #ffb52f;
  --sf-games-accent-dark: #815f22;
  --sf-games-border: rgba(255, 181, 47, .42);
  --sf-games-shadow: rgba(0, 0, 0, .34);
  background: var(--sf-games-bg);
  color: var(--sf-games-text);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 4vw, 5rem);
}

.sf-rotating-games-showcase__header {
  max-width: 96rem;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.sf-rotating-games-showcase__title {
  margin: 0;
  color: var(--sf-games-text);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.sf-rotating-games-showcase__accent {
  display: block;
  width: 10rem;
  height: .32rem;
  margin-top: 1.15rem;
  border-radius: 999px;
  background: var(--sf-games-accent);
}

.sf-rotating-games-showcase__panel {
  position: relative;
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.4rem) clamp(3.6rem, 6vw, 4.8rem);
  border: .125rem solid var(--sf-games-border);
  border-radius: 1.35rem;
  background: var(--sf-games-panel);
  box-shadow: 0 2rem 4rem var(--sf-games-shadow);
}

.sf-rotating-games-showcase__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-rotating-games-showcase__item {
  min-width: 0;
}

.sf-rotating-games-showcase__item[hidden] {
  display: none;
}

.sf-rotating-games-showcase__card {
  min-width: 0;
  text-align: center;
}

.sf-rotating-games-showcase__media {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #0b1117;
  aspect-ratio: 192 / 269;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .24);
}

.sf-rotating-games-showcase__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-rotating-games-showcase__actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 1rem;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  transition: opacity .18s ease;
}

.sf-rotating-games-showcase__media:hover .sf-rotating-games-showcase__actions,
.sf-rotating-games-showcase__actions:focus-within {
  opacity: 1;
}

.sf-rotating-games-showcase__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 999px;
  background: var(--sf-games-accent);
  color: #111820;
  box-shadow: 0 .9rem 1.7rem rgba(0, 0, 0, .32);
}

.sf-rotating-games-showcase__play-icon {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.sf-rotating-games-showcase__demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0f151b;
  font-size: .95rem;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
}

.sf-rotating-games-showcase__play:focus-visible,
.sf-rotating-games-showcase__demo:focus-visible,
.sf-rotating-games-showcase__refresh:focus-visible {
  outline: .2rem solid #ffffff;
  outline-offset: .2rem;
}

.sf-rotating-games-showcase__name {
  margin: 1.55rem 0 0;
  color: var(--sf-games-text);
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.sf-rotating-games-showcase__refresh {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border: .28rem solid var(--sf-games-accent-dark);
  border-radius: 999px;
  background: var(--sf-games-accent);
  color: #0d151c;
  cursor: pointer;
  transform: translate(-50%, 50%);
  box-shadow: 0 .9rem 2.2rem rgba(255, 181, 47, .25);
}

.sf-rotating-games-showcase__refresh-icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-rotating-games-showcase__status {
  position: absolute;
  width: .0625rem;
  height: .0625rem;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 64rem) {
  .sf-rotating-games-showcase__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 38rem) {
  .sf-rotating-games-showcase__panel {
    border-radius: 1rem;
  }

  .sf-rotating-games-showcase__list {
    grid-template-columns: 1fr;
  }

  .sf-rotating-games-showcase__title {
    font-size: clamp(2rem, 13vw, 3.4rem);
  }
}
