* { box-sizing: border-box; touch-action: none; }
html, body { 
  height: 100%; margin: 0; 
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
  background: #050508; color: #eee; 
  display: flex; align-items: center; justify-content: center; 
  overflow: hidden;
}

#ui { position: absolute; top: 20px; left: 20px; z-index: 2; pointer-events: none; }

#score { 
  font-size: 32px; font-weight: bold; color: #00d4ff; 
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6); 
}

#lives { font-size: 24px; margin: 5px 0; filter: drop-shadow(0 0 5px red); }

.controls { display: flex; gap: 12px; align-items: center; pointer-events: auto; margin-top: 15px; }

/* Attractive High Score UI */
#highScoreContainer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(5px);
  animation: goldPulse 2s infinite ease-in-out;
}

.trophy-icon { font-size: 18px; filter: drop-shadow(0 0 5px gold); }
.hs-label { font-size: 12px; color: #ffd700; font-weight: bold; letter-spacing: 1px; }
.hs-value { font-size: 20px; color: #fff; font-weight: 900; text-shadow: 0 0 10px gold; }

@keyframes goldPulse {
  0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); transform: scale(1.02); }
  100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); transform: scale(1); }
}

canvas { 
  background: radial-gradient(circle at center, #1a1a2e 0%, #07070a 100%); 
  border: 3px solid #222; border-radius: 20px; 
  max-width: 95vw; max-height: 90vh; 
  box-shadow: 0 0 60px rgba(0,0,0,0.9);
  display: block;
}

button { 
  background: #ff0055; color: white; border: none; 
  padding: 12px 22px; border-radius: 10px; cursor: pointer; 
  font-weight: bold; font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 #990033;
}

button:active { transform: translateY(2px); box-shadow: 0 2px 0 #990033; }
#muteBtn { background: #444; box-shadow: 0 4px 0 #222; }
