/* Shared How to play modal chrome. Per-game copy lives in Pages/{Game}/_HowToContent.cshtml. */

.game-howto__box {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 36rem;
  max-height: min(88dvh, 42rem);
  padding-top: 1.25rem;
}

.game-howto__close {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
}

.game-howto__kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.game-howto__title {
  margin: 0.15rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  padding-right: 2rem;
}

.game-howto__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.game-howto__body h4 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
}

.game-howto__body p,
.game-howto__body ul,
.game-howto__body ol {
  margin: 0;
}

.game-howto__body ul,
.game-howto__body ol {
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.game-howto__body li + li {
  margin: 0;
}

.game-howto__example {
  margin: 0.5rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in oklab, var(--color-base-content, #fff) 12%, transparent);
  background: color-mix(in oklab, var(--color-base-200, #191e24) 88%, transparent);
  font-size: 0.9rem;
}

.game-howto__example strong {
  font-weight: 700;
}

.game-howto__actions {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .game-howto {
    scroll-behavior: auto;
  }
}
