* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, #fce4ec 0%, #e8eaf6 30%, #e0f7fa 60%, #fff9c4 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.08); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pop-press {
  0% { transform: scale(1); }
  50% { transform: scale(0.88); }
  100% { transform: scale(1); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}

@keyframes wallet-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.7); }
}

@keyframes gold-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(234, 179, 8, 0.5); }
  50% { box-shadow: 0 0 25px rgba(234, 179, 8, 0.9); }
}

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes pop-bubble {
  0% { transform: scale(1); box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 -3px 6px rgba(0,0,0,0.1); }
  30% { transform: scale(0.85); box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 3px 6px rgba(0,0,0,0.15); }
  100% { transform: scale(0.9); box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 2px 4px rgba(0,0,0,0.12); }
}

@keyframes spin-wheel {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(var(--spin-deg)); }
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-in {
  from { transform: translateY(-100%) scale(0.8); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(-100%) scale(0.8); opacity: 0; }
}

.animate-bounce-in { animation: bounce-in 0.5s ease-out; }
.animate-pop { animation: pop-press 0.2s ease-in-out; }
.animate-wiggle:hover { animation: wiggle 0.4s ease-in-out; }
.animate-wallet { animation: wallet-bounce 0.5s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow-purple { animation: glow-pulse 2s ease-in-out infinite; }
.animate-glow-gold { animation: gold-glow 2s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.3s ease-out; }

.shimmer-gold {
  background: linear-gradient(90deg, #f59e0b 0%, #fde68a 50%, #f59e0b 100%);
  background-size: 400px 100%;
  animation: shimmer 2s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pop-it-cell {
  transition: all 0.15s ease;
  cursor: pointer;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f0f0f0 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 -3px 6px rgba(0,0,0,0.1);
}

.pop-it-cell.popped {
  animation: pop-bubble 0.2s ease-out forwards;
  background: linear-gradient(145deg, #e0e0e0 0%, #d0d0d0 100%);
}

.pop-it-cell.x-cell.popped {
  background: linear-gradient(145deg, #fbb6ce 0%, #f687b3 100%);
}

.pop-it-cell.o-cell.popped {
  background: linear-gradient(145deg, #90cdf4 0%, #63b3ed 100%);
}

.btn-play {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-play:active {
  transform: scale(0.93);
}

.toast-notification {
  animation: toast-in 0.4s ease-out forwards;
}
.toast-notification.hiding {
  animation: toast-out 0.3s ease-in forwards;
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall linear forwards;
  pointer-events: none;
  z-index: 9999;
}

.squishy-card-locked {
  filter: brightness(0.3) saturate(0);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1c4e9;
  border-radius: 3px;
}