/* Compact collection shortcuts and the existing detailed game sections. */
#choose-a-game { padding-top: 48px; scroll-margin-top: 96px; }
#choose-a-game > .hr-wrap > .hr-section-heading { display: block; max-width: 820px; margin: 0 auto 24px; }
#choose-a-game #hr-collection-title { font-size: clamp(27px, 2.5vw, 32px); line-height: 1.12; letter-spacing: -.025em; }
#choose-a-game > .hr-wrap > .hr-section-heading > p { max-width: none; margin: 12px 0 0; text-align: left; font-size: 13px; }

.hr-compact-shelf { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hr-compact-game { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 8px 0 2px; color: var(--hr-ink); text-align: center; text-decoration: none; }
#choose-a-game .hr-compact-game:focus-visible, #choose-a-game .hr-back-to-collection:focus-visible { outline: 3px solid var(--marigold, #f5b82e); outline-offset: 4px; }
.hr-compact-art { --compact-card-width: 78px; --compact-face-ratio: .714; --compact-card-radius: 6px; display: block; position: relative; isolation: isolate; width: calc(var(--compact-card-width) + 16px); height: 112px; margin-bottom: 15px; transition: transform .2s ease; }
.hr-compact-face { display: block; position: absolute; left: 50%; top: 50%; width: var(--compact-card-width); aspect-ratio: var(--compact-face-ratio); overflow: hidden; border-radius: var(--compact-card-radius); filter: drop-shadow(1px 3px 3px #00000020); }
.hr-compact-face img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; }
.hr-compact-rear { z-index: 1; transform: translate(-50%, -50%) translate(-6px, -2px) rotate(-8deg); }
.hr-compact-front { z-index: 2; transform: translate(-50%, -50%) translate(5px, 3px) rotate(3deg); }
.hr-compact-game:hover .hr-compact-art { transform: translateY(-5px) rotate(-2deg); }
.hr-compact-copy { display: block; min-width: 0; }
.hr-compact-name { display: block; font: 600 12px/1.3 var(--hr-font-sans); }
.hr-compact-type { display: block; margin-top: 4px; color: var(--hr-ink-secondary); font: 400 11px/1.35 var(--hr-font-sans); }
.hr-compact-arrow { display: inline-block; margin-left: 3px; color: var(--hr-red); font-size: 12px; transition: transform .18s ease; }
.hr-compact-last-word { white-space: nowrap; }
.hr-compact-game:hover .hr-compact-name, .hr-compact-game[aria-current="location"] .hr-compact-name { text-decoration: underline; text-decoration-color: var(--hr-red); text-underline-offset: 4px; }
.hr-compact-game:hover .hr-compact-arrow { transform: translateY(2px); }
.hr-compact-match-it .hr-compact-art { --compact-face-ratio: 1; --compact-card-radius: 50%; }
.hr-compact-match-it .hr-compact-face { width: calc(var(--compact-card-width) + 8px); }
.hr-compact-guess-who .hr-compact-art { --compact-face-ratio: .909; }
.hr-compact-top-trumps .hr-compact-art, .hr-compact-make-your-own .hr-compact-art, .hr-compact-poker-deck .hr-compact-art { --compact-card-radius: 7px; }
.hr-compact-poker-deck .hr-compact-front img { inset: auto; width: 116.3%; height: 101.3%; left: -7.58%; top: -1.03%; }
.hr-compact-poker-deck .hr-compact-rear img { inset: auto; width: 110%; height: 103.8%; left: -2.94%; top: -2.09%; }

#choose-a-game .hr-prototype-details { max-width: 1380px; margin: 40px auto 0; padding: 32px 24px 80px; border-top: 1px solid rgba(24, 25, 28, .1); }
.hr-prototype-details .games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px; }
.hr-prototype-details .game-tile[id], .hr-collection .hr-products .hr-product[id] { scroll-margin-top: 96px; }
.hr-prototype-details .tile-top-row { flex-wrap: wrap; }
.hr-back-to-collection { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; margin-left: auto; padding: 4px 0; color: var(--text-muted, #576170); font: 600 11px/1.3 var(--hr-font-sans); text-decoration: none; white-space: nowrap; }
.hr-back-to-collection:hover { color: var(--hr-red); text-decoration: underline; text-underline-offset: 3px; }

/* Hide the dark matte around the original artwork in all three Poker styles. */
#choose-a-game .poker-style-column .card-face { border-radius: 9% / 6.45%; }
#choose-a-game .poker-style-column .poker-card-art { position: absolute; inset: auto; width: var(--poker-art-width, 100%); height: var(--poker-art-height, 100%); max-width: none; left: var(--poker-art-left, 0); top: var(--poker-art-top, 0); object-fit: fill; transform: none; transform-origin: center; }

@media (max-width: 700px) {
  .hr-compact-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .hr-compact-art { --compact-card-width: 70px; height: 99px; margin-bottom: 12px; }
  .hr-compact-copy { width: 100%; }
  .hr-compact-name { min-height: 32px; }
  #choose-a-game .hr-prototype-details { padding: 28px 0 48px; }
  .hr-prototype-details .game-badge-pill { max-width: calc(100% - 85px); white-space: normal; line-height: 1.35; }
  .hr-back-to-collection { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .hr-compact-art, .hr-compact-arrow { transition: none; }
}
