:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-color: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.4);
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-hover: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 20s infinite alternate;
}

.blob-1 {
  width: 400px; height: 400px;
  background-color: rgba(99, 102, 241, 0.3);
  top: -100px; left: -100px;
}

.blob-2 {
  width: 500px; height: 500px;
  background-color: rgba(236, 72, 153, 0.2);
  bottom: -200px; right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  z-index: 10;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.logo-text {
  font-family: 'Playpen Sans', cursive;
  font-size: 3.5rem;
  font-weight: 800;
}

.logo-text span {
  color: transparent;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
}

.interactive-zone {
  flex: 1;
  min-width: 300px;
  min-height: 150px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px dashed var(--glass-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

#toy {
  position: absolute;
  font-size: 1.5rem;
  user-select: none;
  pointer-events: none;
  transition: transform 0.1s;
  transform: translate(-50%, -50%);
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}

.pet-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.pet-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-glow);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.pet-card.active {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.pet-sprite-preview {
  width: 64px;
  height: 64px;
  background-size: 200%;
  image-rendering: pixelated;
  margin-bottom: 1rem;
}

.pet-name {
  font-family: 'Playpen Sans', cursive;
  font-size: 1.1rem;
  font-weight: 600;
}

.trait-tag {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--text-muted);
}

footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}
