/* attrape.css — attrape-les-produits (canvas plein écran, portrait) */
.attrape { position: absolute; inset: 0; padding-bottom: env(safe-area-inset-bottom); background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%), var(--fond); overflow: hidden; }
.attrape__canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.attrape__aide {
  position: absolute; left: 16px; right: 16px; bottom: calc(26% + env(safe-area-inset-bottom)); margin: 0; text-align: center; pointer-events: none;
  font-family: var(--police-titre); font-weight: 700; font-size: 18px; color: var(--encre); background: rgba(255,255,255,.85); border-radius: 14px; padding: 10px 14px;
  transition: opacity .3s ease; box-shadow: var(--ombre);
}
.attrape__aide--cachee { opacity: 0; }
.attrape__combo {
  position: absolute; top: calc(62px + env(safe-area-inset-top)); left: 12px; pointer-events: none; z-index: 4;
  font-family: var(--police-titre); font-weight: 800; font-size: 16px; color: var(--encre); background: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 999px;
}
.attrape__combo--actif { background: var(--secondaire); font-size: 22px; animation: attrape-combo .5s ease-in-out infinite alternate; }
@keyframes attrape-combo { from { transform: scale(1); } to { transform: scale(1.08); } }
.attrape__flash { position: absolute; inset: 0; pointer-events: none; background: rgba(200,16,46,.45); opacity: 0; z-index: 3; }
.attrape__flash--on { animation: attrape-flash .35s ease-out; }
@keyframes attrape-flash { from { opacity: 1; } to { opacity: 0; } }
.attrape__fin {
  position: absolute; left: 16px; right: 16px; top: 40%; z-index: 4; text-align: center; pointer-events: none;
  font-family: var(--police-titre); font-weight: 800; font-size: clamp(28px, 9vw, 42px); color: var(--primaire); background: rgba(255,255,255,.92); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre);
  animation: mc-pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
.attrape__fin[hidden], .attrape__combo[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .attrape__combo--actif { animation: none; }
  .attrape__flash--on { animation: none; opacity: .6; }
  .attrape__fin { animation: none; }
}
