/* ─── CryptoSpin Custom Styles ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #0a0a1a; overflow-x: hidden; }

/* Gradient backgrounds */
.bg-gradient-game {
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 50%, #24243e 100%);
}
.glow-green { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
.glow-red { box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
.glow-blue { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
.glow-yellow { box-shadow: 0 0 20px rgba(234, 179, 8, 0.3); }

/* Card shine effect */
.card-shine {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

/* Neon text */
.neon-green { color: #10b981; text-shadow: 0 0 10px rgba(16,185,129,0.5); }
.neon-red { color: #ef4444; text-shadow: 0 0 10px rgba(239,68,68,0.5); }

/* Coin flip animation */
@keyframes coinFlip {
  0% { transform: rotateY(0deg) scale(1); }
  25% { transform: rotateY(900deg) scale(1.2); }
  50% { transform: rotateY(1800deg) scale(1); }
  75% { transform: rotateY(2700deg) scale(1.1); }
  100% { transform: rotateY(3600deg) scale(1); }
}
.coin-flip { animation: coinFlip 1.5s ease-in-out; }

/* Dice animation */
@keyframes diceRoll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(180deg) scale(1.1); }
  50% { transform: rotate(360deg) scale(0.9); }
  75% { transform: rotate(540deg) scale(1.1); }
  100% { transform: rotate(720deg) scale(1); }
}
.dice-roll { animation: diceRoll 1s ease-in-out; }

/* Mine tile */
.mine-tile {
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(135deg, #1e1e3f, #2a2a50);
  border: 1px solid rgba(255,255,255,0.1);
}
.mine-tile:hover:not(.revealed) {
  transform: scale(1.05);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
.mine-tile.safe {
  background: linear-gradient(135deg, #065f46, #047857) !important;
  border-color: #10b981 !important;
}
.mine-tile.mine {
  background: linear-gradient(135deg, #7f1d1d, #991b1b) !important;
  border-color: #ef4444 !important;
}

/* Pulse animation */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #10b981, #eab308, #ef4444);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Toast notification */
.toast {
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Tab active */
.tab-active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
}

/* Button press effect */
.btn-press:active { transform: scale(0.95); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #4f46e5; border-radius: 3px; }

/* Modal overlay */
.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

/* Result overlay */
.result-overlay {
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
