html,
body {
  background: #2d7770;
  color: #f6f3ec;
}

.bg-game {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  --ob-ink: #2d7770;
}

.bg-game canvas {
  touch-action: none;
  -webkit-user-drag: none;
}

/* The playfield owns its mode line. Shared sound and pause remain top-right. */
.bg-game .bg-run-label {
  visibility: hidden;
}

.pv-access {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pv-access:focus-within {
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: auto;
  height: auto;
  padding: 12px;
  border: 2px solid #75958e;
  border-radius: 12px;
  background: #f6f3ec;
  color: #2d7770;
  clip-path: none;
  white-space: normal;
}

.pv-access button {
  min-width: 44px;
  min-height: 44px;
  margin: 3px;
  padding: 8px 12px;
  border: 2px solid #86a69f;
  border-radius: 8px;
  color: #275d62;
  background: #c5e1dc;
  font: 700 14px "Atkinson Hyperlegible Next", system-ui, sans-serif;
}

.pv-access button:focus-visible {
  outline: 3px solid #3d7be0;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bg-game *,
  .bg-game *::before,
  .bg-game *::after {
    scroll-behavior: auto;
  }
}
