/* An actual native button owns the complete card, independent of its layout.
   The title/description remain headings and text; the heart is a sibling. */
.menu-home .game-card>.card-launch{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;appearance:none;touch-action:manipulation;transition:none}
.menu-home .game-card>.card-launch:hover,.menu-home .game-card>.card-launch:active{transform:none;filter:none;background:transparent}
.menu-home .game-card:has(>.card-launch:focus-visible){outline:3px solid #a05272;outline-offset:4px}
.menu-home .game-card>.card-launch:focus-visible{outline:3px solid #a05272;outline-offset:-4px}
.menu-home .game-card .play-btn{pointer-events:none}
.menu-home .game-card .play-btn:before{content:none}
.menu-home .game-card>.save-game{z-index:3;top:8px;right:8px;width:44px;height:44px;touch-action:manipulation}
.menu-home .game-card>.save-game:focus-visible{outline-offset:-3px}

/* Slow, small illustration movements. At most six visible cards are enabled
   by card-previews.js. Pausing preserves the phase instead of restarting. */
.menu-home .game-card .card-preview{display:grid;place-items:center;flex:none;pointer-events:none}
.menu-home .game-card .card-art:before{animation:none}
.menu-home .game-card .game-illustration{animation:none;transform:none;transition:none}
.menu-home .game-card .card-preview{animation:preview-float 4.8s ease-in-out infinite;animation-play-state:paused}
.menu-home .game-card .game-illustration>*{animation-duration:4.8s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-play-state:paused}
.menu-home .game-card.is-previewing .card-preview,.menu-home .game-card.is-previewing .game-illustration>*{animation-play-state:running}
.menu-home .game-card[data-game-id=mindcards] .game-illustration>rect:nth-child(1){animation-name:preview-deal}
.menu-home .game-card[data-game-id=mindcards] .game-illustration>rect:nth-child(2){animation-name:preview-deal;animation-delay:-2.4s}
.menu-home .game-card[data-game-id=wavelength] .game-illustration>path:nth-child(2){transform-origin:100px 100px;animation-name:preview-needle}
.menu-home .game-card[data-game-id=knowme] .game-illustration>text{animation-name:preview-mark}
.menu-home .game-card[data-game-id=tictactoe] .game-illustration>g{animation-name:preview-mark}
.menu-home .game-card[data-game-id=tictactoe] .game-illustration>g:nth-child(3){animation-delay:-2.4s}
.menu-home .game-card[data-game-id=memory] .game-illustration>g{animation-name:preview-mark}
.menu-home .game-card[data-game-id=rather] .game-illustration>circle{animation-name:preview-choice}
.menu-home .game-card[data-game-id=rather] .game-illustration>circle:nth-child(2){animation-delay:-2.4s}
.menu-home .game-card[data-game-id=scramble] .game-illustration>g:nth-child(2){animation-name:preview-deal}
.menu-home .game-card[data-game-id=charades] .game-illustration>path:nth-child(3){animation-name:preview-mark}
.menu-home .game-card[data-game-id=truths] .game-illustration>path:nth-child(2){animation-name:preview-choice}
.menu-home .game-card[data-game-id=story] .game-illustration>path:nth-child(2){animation-name:preview-mark}
.menu-home .game-card[data-game-id=dares] .game-illustration>path:nth-child(2){transform-origin:100px 83px;animation-name:preview-wheel}
.menu-home .game-card[data-game-id=date] .game-illustration>g{animation-name:preview-mark}
.menu-home .game-card[data-game-id=reaction] .game-illustration>path:nth-child(4){animation-name:preview-mark}
@keyframes preview-float{0%,100%{translate:0 0}50%{translate:0 -4px}}
@keyframes preview-deal{0%,100%{translate:0 0}50%{translate:0 -7px}}
@keyframes preview-needle{0%,100%{rotate:-24deg}50%{rotate:16deg}}
@keyframes preview-mark{0%,100%{opacity:1}45%,60%{opacity:.3}}
@keyframes preview-choice{0%,100%{fill:#fff9f2}50%{fill:#f6d6e3}}
@keyframes preview-wheel{0%,15%{rotate:0deg}75%,100%{rotate:90deg}}

/* CSS also pauses immediately while observer callbacks are queued. */
html.page-away .game-card .card-preview,html.page-away .game-card .game-illustration>*,
body:has(dialog[open]) .game-card .card-preview,body:has(dialog[open]) .game-card .game-illustration>*{animation-play-state:paused!important}
html[data-motion=off] .game-card .card-preview,html[data-motion=off] .game-card .game-illustration>*{animation:none!important}
@media(max-width:600px){.menu-home .game-card>.save-game{top:5px;left:42px;right:auto}.menu-home .game-card .game-illustration{transform:rotate(-5deg)}}
@media(prefers-reduced-motion:reduce){.menu-home .game-card .card-preview,.menu-home .game-card .game-illustration>*{animation:none!important}.menu-home .game-card .game-illustration{transform:none}}
@media(forced-colors:active){.menu-home .game-card:has(>.card-launch:focus-visible){outline-color:Highlight}.menu-home .game-card>.card-launch:focus-visible{outline-color:Highlight}}
