/* `inset`, `padding-inline`/`margin-block` and flex `gap` all arrived in Safari 14.1, so this
   matches exactly the browsers (iOS 14) that have none of them. Without the offsets the glass,
   the liquid and the win card are all 0px boxes. Values mirror site.css. */
@supports not (inset: 0) {
  .game-root[data-game="water-sort"] .ws-stage::before { top: auto; right: 3%; bottom: 30px; left: 3%; }
  .game-root[data-game="water-sort"] .ws-glass { top: 23px; right: 4px; bottom: 2px; left: 4px; }
  .game-root[data-game="water-sort"] .ws-rim::after { top: 3px; right: 6px; bottom: 3px; left: 6px; }
  .game-root[data-game="water-sort"] .ws-liquid,
  .game-root[data-game="water-sort"] .ws-effects,
  .game-root[data-game="water-sort"] .ws-stream,
  .game-root[data-game="water-sort"] .ws-win { top: 0; right: 0; bottom: 0; left: 0; }
  .game-root[data-game="water-sort"] .ws-bar > * + * { margin-left: 18px; }
  .game-root[data-game="water-sort"] .ws-controls { margin: -4px; }
  .game-root[data-game="water-sort"] .ws-controls > * { margin: 4px; }
  @media (max-width: 760px) {
    .game-root[data-game="water-sort"] .ws-tube { padding-left: 4px; padding-right: 4px; }
    .game-root[data-game="water-sort"] .ws-glass { top: 19px; }
  }
  @media (max-width: 410px) {
    .game-root[data-game="water-sort"] .ws-status { margin-top: 7px; margin-bottom: 7px; }
  }
}
/* No color-mix before Safari 16.2: white at 76% over the fill is the same 24% mix. */
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .game-root[data-game="water-sort"] .ws-bubble {
    background: linear-gradient(rgba(255, 255, 255, .76), rgba(255, 255, 255, .76)), var(--fill);
  }
}
