* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: radial-gradient(ellipse at 50% 35%, #2b3f78 0%, #16224a 45%, #0b1530 100%) fixed;
  background-color: #0b1530;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Twinkling background stars */
#stars { position: fixed; inset: 0; pointer-events: none; }
#stars i {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: .2;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: .9; } }

/* Bottom song bar */
#controls {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
  pointer-events: none;
}
#songs, #actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

.round {
  width: 64px; height: 64px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 4px 14px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.round:active { transform: scale(.9); }
.round.active {
  background: rgba(255, 214, 120, .35);
  box-shadow: inset 0 0 0 3px #ffd678, 0 0 22px rgba(255, 214, 120, .6);
  transform: scale(1.08);
}

#actions .round { background: rgba(160, 200, 255, .2); }

@media (max-width: 600px) {
  .round { width: 54px; height: 54px; font-size: 26px; }
  #songs, #actions { gap: 8px; }
}

/* Start overlay */
#start {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 14, 34, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity .5s ease;
  z-index: 10;
}
#start.hidden { opacity: 0; pointer-events: none; }
#startBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 48px;
  border-radius: 40px;
  background: rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 10px 40px rgba(0,0,0,.4);
  color: #fff;
  animation: bob 2.4s ease-in-out infinite;
}
#startBtn .big { font-size: 80px; line-height: 1; }
#startBtn .label { font-size: 30px; font-weight: 700; letter-spacing: .5px; }
@keyframes bob { 50% { transform: translateY(-10px) scale(1.03); } }
