/* Warm original picture scenes. Each tap reveals artwork with a finite motion. */
.play-hub .tap-panel { scroll-margin-top: 1rem; padding-block: 1.25rem; }
.play-hub .tap-panel .family-section-head { margin-bottom: .75rem; }
.play-hub .tap-panel h2 { font-size: clamp(1.3rem, 5vw, 2rem); margin-block: 0; text-wrap: balance; }
.play-hub .tap-scene { width: 100%; max-width: 32rem; margin-inline: auto; }
.play-hub .tap-picture {
  display: block; width: 100%; padding: 0; margin: 0; overflow: hidden;
  border: 3px solid #588768; border-radius: 1.5rem;
  background: #edf5f0; color: #253f35; cursor: pointer;
  box-shadow: 0 5px 0 #c4d6aa;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  /* Deliberately no hover/press scaling, transitions or autonomous motion. */
  transform: none; transition: none; animation: none;
}
.play-hub .tap-picture svg { display: block; width: 100%; height: auto; pointer-events: none; }
.play-hub .tap-picture[aria-disabled="true"] { cursor: default; opacity: 1; }
.play-hub .tap-picture:focus-visible,
.play-hub .tap-replay:focus-visible { outline: 4px solid #253f35; outline-offset: 5px; }
.play-hub .tap-replay-space { display: flex; justify-content: center; min-height: 5.25rem; padding-top: .75rem; }
.play-hub .tap-replay {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4.5rem; height: 4.5rem; border: 3px solid #27715c; border-radius: 50%;
  padding: .5rem; background: #fff8df; color: #27715c; cursor: pointer;
  touch-action: manipulation; transform: none; transition: none; animation: none;
}
.play-hub .tap-replay[hidden] { display: none; }
.play-hub .tap-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.play-hub .tap-panel .play-return { margin-block: .75rem 0; }
.play-hub .game-chooser a[data-game-link] { position: relative; }
.play-hub .game-chooser .tap-choice-cue { position: absolute; left: 2.4rem; top: 2.2rem; width: 2rem; height: 2rem; }
.play-hub details.game-age-note,
.play-hub details.game-room-note { font-size: .875rem; }
.play-hub details.game-age-note summary,
.play-hub details.game-room-note summary { cursor: pointer; padding-block: .5rem; }
@media (max-width: 480px) {
  .play-hub .tap-panel { padding-block: .75rem; }
  .play-hub .tap-panel .family-section-head { margin-bottom: .5rem; }
}
@media (forced-colors: active) {
  .play-hub .tap-picture, .play-hub .tap-replay { border-color: ButtonText; }
  .play-hub .tap-picture:focus-visible, .play-hub .tap-replay:focus-visible { outline-color: Highlight; }
}

/* Illustrated paper worlds. All movement is a single finite JS animation after
   activation, never an idle loop. Stable controls remain outside animated layers. */
.play-hub .tap-picture {
  border-color: #779d85;
  border-radius: 1.65rem;
  background: #f6f5e9;
  box-shadow: 0 5px 0 #bfd0b5, 0 12px 28px #355b4014;
}
.play-hub .tap-picture [data-tap-from] {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.play-hub .tap-picture [data-tap-motion="arc"] { transform-origin: center; }
.play-hub .tap-picture [data-tap-motion="flutter"],
.play-hub .tap-picture [data-tap-motion="sun"],
.play-hub .tap-picture [data-tap-motion="heart"] { transform-origin: center; }
.play-hub .tap-scene[data-tap-palette="1"] .tap-sky-stop { stop-color: #f5e1d7; }
.play-hub .tap-scene[data-tap-palette="2"] .tap-sky-stop { stop-color: #dfe6f4; }
.play-hub .tap-picture [data-tap-from="8"] { filter: drop-shadow(0 2px 1px #65875b22); }
.play-hub .tap-replay { box-shadow: 0 4px 0 #d6dcba; }
@media (prefers-reduced-motion: reduce) {
  .play-hub .tap-picture [data-tap-from] { animation: none !important; transition: none !important; }
}

/* Expressive rigs use static facial states when reduced motion is enabled. */
[data-tap-character] .face-smile,[data-tap-character] .face-wink,[data-tap-character] .face-brows,[data-tap-character] .mouth-oh,[data-tap-character] .mouth-joy,[data-tap-character] .mouth-chew{display:none}
[data-face="curious"] .face-brows,[data-face="surprised"] .face-brows,[data-face="surprised"] .mouth-oh,[data-face="delighted"] .face-smile,[data-face="delighted"] .mouth-joy,[data-face="munch"] .face-smile,[data-face="munch"] .mouth-chew{display:inline}
[data-face="surprised"] .mouth-smile,[data-face="delighted"] .mouth-smile,[data-face="munch"] .mouth-smile,[data-face="delighted"] .face-open,[data-face="munch"] .face-open{display:none}
[data-face="wink"] .face-wink{display:inline}
[data-face="wink"] .face-open ellipse:first-child,[data-face="wink"] .face-open circle:nth-child(3){display:none}
[data-character-body],[data-character-ears]{transform-box:fill-box;transform-origin:center bottom}

/* Whole painted portraits preserve expressions without synthetic facial overlays. */
.play-hub .tap-picture [data-tap-character] [data-painted-expression]{display:none}
.play-hub .tap-picture [data-tap-character][data-face="curious"] [data-painted-expression="curious"],
.play-hub .tap-picture [data-tap-character][data-face="surprised"] [data-painted-expression="surprised"],
.play-hub .tap-picture [data-tap-character][data-face="delighted"] [data-painted-expression="delighted"],
.play-hub .tap-picture [data-tap-character][data-face="wink"] [data-painted-expression="wink"],
.play-hub .tap-picture [data-tap-character][data-face="munch"] [data-painted-expression="munch"]{display:inline}
