/* Jeu a gratter : consigne, carte centree (90 vw sur mobile, 520 px sur
   ordinateur), couche grattable sans defilement, bouton son. */
.gr-jeu { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 16px 24px; min-height: 100%; box-sizing: border-box; }
.gr-jeu[hidden] { display: none; }
.gr-consigne { margin: 0; text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--jeu-hud-texte, #fff); max-width: 520px; }
.gr-carte-hote { width: min(90vw, 520px); }
.gr-carte { position: relative; width: 100%; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); user-select: none; -webkit-user-select: none; background: #ddd; }
.gr-dessous { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gr-couche { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity 400ms ease; }
.gr-cadre { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.gr-squelette .gr-couche { pointer-events: none; }
.gr-squelette::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 70%); background-size: 200% 100%; animation: gr-lueur 1.2s linear infinite; }
@keyframes gr-lueur { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.gr-revelee .gr-couche { opacity: 0; pointer-events: none; }
.gr-reveler { position: absolute; right: 10px; bottom: 10px; }
.gr-reveler-discret:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.gr-secousse { animation: gr-secousse 420ms ease; }
@keyframes gr-secousse { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.gr-reseau { margin: 0; text-align: center; color: var(--jeu-hud-texte, #fff); }
.gr-son { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 20px; background: rgba(0, 0, 0, 0.45); color: #fff; }
.gr-fete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
@media (prefers-reduced-motion: reduce) { .gr-couche { transition: none; } .gr-secousse, .gr-squelette::after { animation: none; } }
