/*
Theme Name: MemoQuest Theme
Theme URI: https://example.com/mystery-memory
Author: MemoQuest
Description: Thème WordPress léger plein écran pour MemoQuest Game.
Version: 2.20.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mystery-memory-theme
*/
html, body { margin: 0; padding: 0; min-height: 100%; }
body { background: #ffcf72; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.mmg-fullscreen { overflow: hidden; }
.mmg-theme-fallback { max-width: 720px; margin: 40px auto; padding: 24px; border-radius: 24px; background: #fff7df; box-shadow: 0 20px 50px rgba(0,0,0,.12); }


/* MemoQuest 2.3.1 — viewport mobile fiable */
html, body { width: 100%; overflow-x: hidden; }
@supports (min-height: 100dvh) {
  html, body { min-height: 100dvh; }
}
body.mmg-fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}
body.mmg-fullscreen .mmg-wordpress-shell {
  height: var(--app-height, 100dvh);
}


/* MemoQuest 2.5.0 — ajustement plein écran jeu */
body.mmg-fullscreen .mmg-wordpress-shell {
  width: 100vw;
  max-width: 100vw;
}


/* MemoQuest 2.13.0 — PWA installable, son et interface mobile premium */
body.mmg-fullscreen { -webkit-tap-highlight-color: transparent; }
@media (display-mode: standalone) { body.mmg-fullscreen { background: #fff8df; } }


/* MemoQuest 2.16.0 — viewport mobile final et suppression contrôle son */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body.mmg-fullscreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
body.mmg-fullscreen .mmg-wordpress-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: var(--app-height, 100dvh);
  min-height: var(--app-height, 100dvh);
  max-height: var(--app-height, 100dvh);
  overflow: hidden;
}
.mmg-sound-control { display: none !important; }
