/* Spider Solitaire: the playfield is all canvas; only the Free Play suit toggle is DOM. */
.bg-game .bg-canvas { cursor: pointer; }

/* Safe-area probe (main.js reads its padding): the canvas HUD row keeps clear of a notch. */
.sp-safe {
  position: absolute; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

/* Free Play "1 suit / 2 suits" segmented control. DOM, so a tap never reaches the input log.
   Warm paper fill, opaque 2px darker border, dark ink text. Above the ready card scrim. */
.sp-suits {
  position: absolute; z-index: 4; display: flex; margin: 0; padding: 0;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: calc(env(safe-area-inset-left, 0px) + 10px);
}
.sp-suits[hidden] { display: none; }
.sp-suits__btn {
  appearance: none; margin: 0; padding: 0 8px; cursor: pointer;
  min-width: 64px; min-height: 48px; position: relative;
  font: 800 15px/1.1 "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
  color: #4B3A33; background: #FFFDF8; border: 2px solid #99968F;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sp-suits__btn:first-child { border-radius: 14px 0 0 14px; }
.sp-suits__btn:last-child { border-radius: 0 14px 14px 0; margin-left: -2px; }
.sp-suits__btn[aria-pressed="true"] { background: #F8E0A6; border-color: #958664; }
.sp-suits__btn:active { background: #EDE6D8; }
.sp-suits__btn[aria-pressed="true"]:active { background: #EDD18A; }
.sp-suits__btn:focus-visible { outline: 3px solid #2F7D4F; outline-offset: 2px; z-index: 1; }
