* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.game-header {
  text-align: center;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.game-header h1 {
  font-size: 2.5em;
  color: #4a5568;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-board {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.score {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.2em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pets-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.pet-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.pet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pet-image-container {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.pet-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
  background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
  padding: 10px;
  transition: transform 0.3s ease;
}

.pet-image:hover {
  transform: scale(1.1) rotate(5deg);
}

.mood-indicator {
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 2em;
  background: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.pet-info h3 {
  text-align: center;
  font-size: 1.8em;
  color: #4a5568;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.status-bars {
  margin-bottom: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.status-item span {
  width: 80px;
  font-size: 0.9em;
  color: #666;
}

.status-bar {
  flex: 1;
  height: 20px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: 10px;
}

.status-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.status-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hunger {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.happiness {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.cleanliness {
  background: linear-gradient(45deg, #a8edea, #fed6e3);
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.action-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.feed-btn {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
}

.play-btn {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: white;
}

.clean-btn {
  background: linear-gradient(45deg, #a8edea, #fed6e3);
  color: #666;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
  transform: translateY(0);
}

.game-tips {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.game-tips h4 {
  color: #4a5568;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.game-tips ul {
  list-style: none;
  padding-left: 0;
}

.game-tips li {
  padding: 5px 0;
  color: #666;
  position: relative;
  padding-left: 20px;
}

.game-tips li::before {
  content: '🌟';
  position: absolute;
  left: 0;
}

.floating-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px 30px;
  border-radius: 15px;
  font-size: 1.5em;
  font-weight: bold;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-message.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .pets-container {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  
  .game-header h1 {
    font-size: 2em;
  }
  
  .pet-image {
    width: 120px;
    height: 120px;
  }
}

.pet-card.happy {
  border-color: #4ecdc4;
  animation: glow 2s ease-in-out infinite alternate;
}

.pet-card.sad {
  border-color: #ff6b6b;
  animation: shake 0.5s ease-in-out;
}

@keyframes glow {
  from {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }
  to {
    box-shadow: 0 15px 35px rgba(78, 205, 196, 0.3);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkle 1s ease-out forwards;
  pointer-events: none;
}

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