* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: linear-gradient(#e0f7fa, #fff); min-height: 100vh; display: flex; justify-content: center; align-items: center; }
#container { text-align: center; width: 90%; max-width: 500px; padding: 20px; background: white; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
h1 { margin-bottom: 20px; color: #333; }
#pet-select { width: 100%; padding: 12px; margin-bottom: 20px; border-radius: 12px; font-size: 16px; }
#custom-btn { margin-bottom: 20px; padding: 10px 20px; background: #FFD700; color: #333; border: none; border-radius: 12px; cursor: pointer; }
#pet-area { width: 300px; height: 300px; margin: 0 auto 30px; border-radius: 50%; overflow: hidden; background: #f0f0f0; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
#pet-video, #pet-img { width: 100%; height: 100%; object-fit: cover; }
#status { margin: 20px 0; font-size: 18px; color: #555; }
#controls { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
#mic-btn, #camera-btn { padding: 15px 25px; font-size: 18px; border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
#mic-btn { background: #FF6B6B; color: white; }
#camera-btn { background: #4ECDC4; color: white; }
.active { animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

#custom-modal div { text-align: center; }
#custom-modal label { display: block; margin-top: 20px; }
#custom-modal input { width: 100%; padding: 10px; margin-bottom: 10px; }
#save-custom, #close-modal { padding: 10px 20px; margin: 10px; border: none; cursor: pointer; }
#save-custom { background: #4CAF50; color: white; }
#close-modal { background: #ccc; color: #333; }