/* 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) {
  html:not(.fills-window) .game-root[data-game="spades"] .sol:not(.sol-full) .sp-stage::before {
    content: ''; display: block; padding-top: 82%;
  }
  @media (max-width: 560px) {
    html:not(.fills-window) .game-root[data-game="spades"] .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="spades"] .sol-full,
  .game-root[data-game="spades"] .sp-flip,
  .game-root[data-game="spades"] .sp-scrim { top: 0; right: 0; bottom: 0; left: 0; }
  .game-root[data-game="spades"] .sp-flip > .sol-card { top: 0; left: 0; }
  .game-root[data-game="spades"] .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="spades"] .sol-bar > * + *,
  .game-root[data-game="spades"] .sol-opts > * + * { margin-left: 14px; }
  .game-root[data-game="spades"] .sol-controls > * + * { margin-left: 8px; }
  .game-root[data-game="spades"] .sol-fs > * + * { margin-left: 7px; }
  .game-root[data-game="spades"] .sol-seg > * + * { margin-left: 3px; }
  .game-root[data-game="spades"] .sp-bid > * + * { margin-top: calc(var(--cwq) * var(--u) * .14px); }
}
