/* Mahjong Solitaire: the playfield is all canvas; only the zoom buttons are DOM. */
.bg-game .bg-canvas { cursor: pointer; }

/* Safe-area probe (main.js reads its padding): the canvas HUD row and button bar keep clear of a notch. */
.mj-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);
}

/* Zoom − / Fit / + over the board's top-right corner. DOM, so a tap never reaches the input log.
   Warm paper fill, opaque 2px darker border, dark ink text, 48px touch targets. */
.mj-zoom {
  position: absolute; z-index: 3; display: flex; gap: 6px; margin: 0; padding: 0;
  top: 64px; right: 14px;
}
.mj-zoom__btn {
  appearance: none; margin: 0; padding: 0 10px; cursor: pointer;
  min-width: 48px; min-height: 48px; border-radius: 14px;
  font: 800 20px/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;
}
.mj-zoom__btn:nth-child(2) { font-size: 16px; }
.mj-zoom__btn:active { background: #EDE6D8; }
.mj-zoom__btn:disabled { color: #9C918A; background: #EFE8DC; border-color: #A7A094; cursor: default; }
.mj-zoom__btn:focus-visible { outline: 3px solid #2F7D4F; outline-offset: 2px; }
