/* The face is a solitaire .sol-card, which sets cursor: default on itself and so hides the
   hand .sp-card.live gives the card. */
.sp-card.live .sol-card { cursor: pointer; }

/* Safari < 15 (iOS 14) has no aspect-ratio: the felt holds nothing in flow, so it would be 0px
   tall. A % padding is a share of the stage's width; the two ratios must match .sp-stage's
   aspect-ratio in site.css. */
@supports not (aspect-ratio: 1) {
  .game-root[data-game="hearts"] .sol:not(.sol-full) .sp-stage::before {
    content: ''; display: block; padding-top: 82%;
  }
  @media (max-width: 560px) {
    .game-root[data-game="hearts"] .sol:not(.sol-full) .sp-stage::before { padding-top: 144.1176%; }
  }
}
/* `inset` and flex `gap` both arrived in Safari 14.1, so this matches exactly the browsers
   that have neither. Without the offsets every card is 0x0 and the full-screen fallback covers
   only its own content. */
@supports not (inset: 0) {
  .game-root[data-game="hearts"] .sol-full,
  .game-root[data-game="hearts"] .sp-flip,
  .game-root[data-game="hearts"] .sp-scrim,
  .game-root[data-game="hearts"] .jj-confetti { top: 0; right: 0; bottom: 0; left: 0; }
  .game-root[data-game="hearts"] .sp-flip > .sol-card { top: 0; left: 0; }
  .game-root[data-game="hearts"] .sp-flip > .sol-down > .sol-back {
    top: calc(var(--cw) * .07); right: calc(var(--cw) * .07);
    bottom: calc(var(--cw) * .07); left: calc(var(--cw) * .07);
  }
  .game-root[data-game="hearts"] .sol-fsicon::before { top: 2px; right: 2px; bottom: 2px; left: 2px; }
  /* The bar wraps on a phone, so its 14px gap is needed between rows as well. */
  .game-root[data-game="hearts"] .sol-bar { margin-top: -14px; margin-left: -7px; margin-right: -7px; }
  .game-root[data-game="hearts"] .sol-bar > * { margin: 14px 7px 0; }
  .game-root[data-game="hearts"] .sol-opts > * + * { margin-left: 14px; }
  .game-root[data-game="hearts"] .sol-controls > * + * { margin-left: 8px; }
  .game-root[data-game="hearts"] .sol-fs > * + * { margin-left: 7px; }
  .game-root[data-game="hearts"] .sol-seg > * + * { margin-left: 3px; }
}
