.how-to-play {
  display: block;
  width: 100%;
  max-width: min(96rem, 100%);
  margin: 0 auto;
  min-width: 0;
  text-align: center;
  opacity: 0;
}

.how-to-play.is-ready {
  opacity: 1;
}

.how-to-play__frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.how-to-play__track {
  display: flex;
  min-width: 0;
  width: 100%;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0 0.35rem;
}

.how-to-play__track::-webkit-scrollbar {
  display: none;
}

.how-to-play__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin: 0;
}

.how-to-play__slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(82dvh, calc((100vw - 7.5rem) * 0.5625));
  margin: 0 auto;
  object-fit: contain;
  border: 3px solid var(--cta, #f0b429);
  border-radius: 18px;
  background: rgba(12, 10, 9, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.how-to-play__nav {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(240, 180, 41, 0.45);
  border-radius: 50%;
  background: rgba(12, 10, 9, 0.72);
  color: var(--gold-hot, #ffd36a);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.how-to-play__nav:hover,
.how-to-play__nav:focus-visible {
  background: rgba(12, 10, 9, 0.9);
  border-color: var(--gold-hot, #ffd36a);
}

.how-to-play__nav:focus-visible {
  outline: 2px solid var(--gold-hot, #ffd36a);
  outline-offset: 3px;
}

.how-to-play__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.how-to-play__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(196, 181, 165, 0.45);
  cursor: pointer;
}

.how-to-play__dot.is-active {
  background: var(--gold, #f0b429);
}

.how-to-play__dot:focus-visible {
  outline: 2px solid var(--gold-hot, #ffd36a);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .how-to-play__frame {
    gap: 0.4rem;
  }

  .how-to-play__nav {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-to-play__track {
    scroll-behavior: auto;
  }
}
