/* =====================================================================
   Angel Fish — card open motion (v1.0.7)
   Soft dive-in when the home / game-over card opens.
   Sky/sea waterline stripe removed. Force solid white panels so any
   cached older rule cannot paint the wave across cards again.
   ===================================================================== */

.game-menu:not(.game-help) {
  --af-split: 0px;
  background-color: #ffffff !important;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(165deg, #7fd0f5 0%, #0a86b8 52%, #14b0ac 100%) !important;
  background-origin: padding-box, border-box !important;
  background-clip: padding-box, border-box !important;
  background-size: auto, auto !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: 0 0, 0 0 !important;
}

.game-over.show:not(.game-help),
#startMenu {
  animation: afDive 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
@keyframes afDive {
  0% { transform: translate(-50%, calc(-50% - 34px)) scale(0.96); opacity: 0; }
  60% { transform: translate(-50%, calc(-50% + 5px)) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .game-over.show:not(.game-help),
  #startMenu {
    animation: afFade 0.2s ease both;
  }
  @keyframes afFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
