/* ── KEYFRAMES ── */

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.15); opacity: 0.85; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { transform: scale(1.05); }
  80%  { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(34,197,94,0.2); }
  50%       { box-shadow: 0 0 32px rgba(34,197,94,0.45); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes countdownFlip {
  0%   { transform: rotateX(0deg); }
  50%  { transform: rotateX(-90deg); }
  100% { transform: rotateX(0deg); }
}
@keyframes checkmark {
  0%   { stroke-dashoffset: 50; opacity: 0; }
  60%  { opacity: 1; }
  100% { stroke-dashoffset: 0; }
}

/* ── ANIMATION CLASSES ── */
.animate-fade-in     { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up  { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.4s ease forwards; }
.animate-scale-in    { animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.animate-bounce-in   { animation: bounceIn 0.5s ease forwards; }
.animate-float       { animation: float 3s ease-in-out infinite; }
.animate-glow-pulse  { animation: glowPulse 2.5s ease-in-out infinite; }
.animate-spin        { animation: spin 1s linear infinite; }
.animate-pulse       { animation: pulse 2s ease-in-out infinite; }

/* ── STAGGERED DELAYS ── */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ── HERO BACKGROUND LINES (Field pattern) ── */
.hero-field-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  pointer-events: none;
}

/* ── FOOTBALL BALL FLOAT DECORATION ── */
.deco-ball {
  position: absolute;
  font-size: 4rem;
  opacity: 0.07;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

/* ── SKELETON LOADING ── */
.skeleton {
  background: linear-gradient(90deg,
    var(--dark-700) 25%,
    var(--dark-600) 50%,
    var(--dark-700) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}
.skeleton-text  { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; margin-bottom: 12px; width: 60%; }
.skeleton-card  { height: 140px; border-radius: var(--r-xl); }

/* ── PREDICTION BUTTON RIPPLE ── */
.pred-btn.selected::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-md);
  animation: glowPulse 2s ease-in-out infinite;
}

/* ── SAVE SUCCESS ANIMATION ── */
.save-success {
  animation: bounceIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── PAGE TRANSITION ── */
.page-enter {
  animation: fadeInUp 0.4s ease forwards;
}

/* ── ANIMATED GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, #22c55e, #facc15, #22c55e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}
