/* Merienda Masones · base común de los seis diseños: caras, reinicio mínimo y el aviso flotante. */

@font-face { font-family: 'Press Start 2P'; src: url('fonts/PressStart2P-Regular.ttf') format('truetype'); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Texto alternativo del botón de compartir: «mándala» cuando el móvil adjunta el audio. */
.mm-if-file { display: none; }
.mm-can-file .mm-if-file { display: inline; }
.mm-can-file .mm-if-link { display: none; }

.mm-toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1000; translate: -50% 140%; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: var(--toast-radius, 999px);
  background: var(--toast-bg, #111); color: var(--toast-fg, #fff);
  font: var(--toast-font, 600 15px/1.3 system-ui, sans-serif);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.35);
  transition: translate 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mm-toast.is-on { translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
