/* Main Styles */
.font-geist-mono {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Loading Animation */
@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

#loading-progress {
  animation: loadProgress 2.5s ease-in-out forwards;
}

@keyframes pulseStar {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

#animated-logo path {
  animation: pulseStar 2s infinite ease-in-out;
}

/* Modal Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.modal-show {
  animation: fadeIn 0.3s forwards, slideUp 0.3s forwards;
}

/* Notification Animations */
.notification-show {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Achievement Animation */
.achievement-show {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Interactive States */
.action-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.training-option:hover, 
.performance-option:hover, 
.fanmeet-option:hover, 
.gift-option:hover, 
.support-option:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

/* Scene Animation */
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#scene-svg {
  animation: scaleIn 0.5s forwards;
}

/* Idol Animation */
@keyframes bounceIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.idol-bounce {
  animation: bounceIdle 3s infinite ease-in-out;
}

/* Dialog Animation */
@keyframes typeText {
  from { width: 0; }
  to { width: 100%; }
}

.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typeText 1.5s steps(40, end);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .game-container {
    grid-template-columns: 1fr;
  }
  
  .idol-status {
    margin-bottom: 1rem;
  }
}

/* Stats Progress Bar Animations */
@keyframes fillBar {
  from { width: 0; }
  to { width: var(--target-width); }
}

.animate-fill {
  animation: fillBar 0.8s ease-out forwards;
}

/* Scene Transition */
@keyframes fadeScene {
  0% { opacity: 0; filter: blur(5px); }
  100% { opacity: 1; filter: blur(0); }
}

.scene-transition {
  animation: fadeScene 0.5s ease-out forwards;
}

/* Resource Sparkle Effect */
@keyframes sparkle {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.resource-sparkle {
  position: relative;
}

.resource-sparkle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  z-index: -1;
  animation: sparkle 0.8s ease-out;
}

/* Logo Text Animation */
@keyframes glowText {
  0% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)); }
  100% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5)); }
}

.logo-text {
  animation: glowText 3s infinite ease-in-out;
}
