/* Memory Match extras: daily board, peek, streak, 44px targets. */
.mm-size { min-height: 44px; font-size: 0.72rem; padding: 0 2px; }
.mm-sizes { gap: 4px; }
.mm-size.mm-daily { flex: 1.1; border-style: dashed; }
.hud .btn, .hud .mm-peek { min-height: 44px; }
.mm-hud-actions { display: flex; gap: 6px; align-items: center; }
.mm-peek { background: #fff; color: #be185d; border: 2px solid var(--color-ink, #2a1b3d); border-radius: 8px; padding: 0 0.8rem; font-family: inherit; font-weight: 700; font-size: 0.82rem; cursor: pointer; touch-action: manipulation; }
.mm-peek:disabled { opacity: 0.45; cursor: default; }
.mm-peek:focus-visible { outline: 3px solid var(--color-focus, #2f5fd0); outline-offset: 2px; }
.mm-card.peek .mm-inner { transform: rotateY(180deg); }
.mm-card.peek:not(.done) .mm-front { background: #fef9c3; }
#mm-streak { font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; text-align: center; color: #be185d; font-weight: 700; min-height: 1.2em; margin: 0 0 4px; }
#mm-streak[hidden] { display: none; }
@keyframes mm-hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0); } 50% { box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.55); } }
#card-grid.hint .mm-card:first-child { animation: mm-hint 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #card-grid.hint .mm-card:first-child { animation: none; } }

/* Phone, outside full screen: start the board high. The words stay in the page; only the chips collapse. */
@media (max-width: 520px) {
  .game-wrap { padding-top: 0.5rem; }
  .game-title { margin-bottom: 0.35rem; }
  .game-title p { display: none; }
  .game-title h1 { font-size: 1.2rem; }
  .facts { display: none; }
  .mm-how { font-size: 0.74rem; margin: 0 0 0.35rem; }
}
/* Press feedback on every card. */
.mm-card:not(.done):not(.up):active .mm-inner { transform: scale(0.94); }
html.pip-immersive .mm-card:not(.done):not(.up):active .mm-inner { transform: scale(0.94); }
