@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Orbitron', monospace;
  overflow: hidden;
}

#gameWrapper {
  position: relative;
  width: min(480px, 100vw);
  aspect-ratio: 480 / 700;
  max-height: 100vh;
  cursor: none;
  touch-action: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #0ff3;
  box-shadow: 0 0 40px #0ff3, 0 0 80px #0055ff33;
}

#ui {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.ui-val {
  color: #0ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #0ff;
}

.ui-label {
  color: #0ff8;
  font-size: 8px;
  letter-spacing: 3px;
  margin-bottom: 2px;
}

#lives-display { display: flex; gap: 5px; justify-content: flex-end; }

.heart {
  font-size: 14px;
  filter: drop-shadow(0 0 6px #ff2266);
}

.status-icons {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 4px;
  font-size: 12px;
  min-height: 14px;
}

.status-icon {
  filter: drop-shadow(0 0 6px currentColor);
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.88);
  z-index: 10;
  gap: 20px;
  padding: 20px;
}

#overlay.hidden { display: none; }

#overlay h1 {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(90deg, #0ff, #f0f, #0ff);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 2s linear infinite;
  letter-spacing: 4px;
  text-align: center;
}

@keyframes shimmer {
  0% { background-position: 0% }
  100% { background-position: 200% }
}

#overlay p {
  color: #88ccff;
  font-size: 11px;
  letter-spacing: 2px;
  text-align: center;
  line-height: 2.2;
}

#startBtn {
  margin-top: 10px;
  padding: 14px 40px;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #000;
  background: linear-gradient(90deg, #0ff, #0af);
  border: none;
  cursor: pointer;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: all 0.2s;
  text-transform: uppercase;
}

#startBtn:hover {
  background: linear-gradient(90deg, #f0f, #a0f);
  transform: scale(1.05);
  box-shadow: 0 0 30px #f0f8;
}

#finalScore {
  font-size: 28px;
  color: #ff0;
  text-shadow: 0 0 20px #ff0;
  letter-spacing: 4px;
}

#controls-hint {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  color: #0ff4;
  font-size: 8px;
  letter-spacing: 2px;
  pointer-events: none;
}

@media all and (max-width: 480px) {
  #overlay h1 {
    font-size: 36px;
  }
  #overlay p {
    font-size: 10px;
  }
}