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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0d0d0d;
  font-family: 'SUIT Variable', sans-serif;
}

/* ── 전체화면 배경 캔버스 ── */
#mainCanvas {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
}

/* ── 가사 오버레이 ── */
#lyric-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

#lyric-line {
  text-align: left;
  font-size: 100vh;
  font-weight: 900;
  font-variation-settings: 'wght' 900;
  color: #fff;
  line-height: 1;
  white-space: pre-wrap;
  opacity: 0;
  /* transform: translateX(-12px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0s; */
}
#lyric-line.visible  { opacity: 1; transform: translateX(0); }
#lyric-line.fade-out { opacity: 0; transform: translateX(10px); }

/* ── 하단 컨트롤 ── */
.controls {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 2rem 1.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.controls audio {
  flex: 1;
  height: 36px;
  /* 브라우저 기본 audio 컨트롤 최소 스타일 */
  filter: invert(1) brightness(0.85);
  opacity: 0.85;
}

audio::-webkit-media-controls-volume-slider { display: none; }
audio::-webkit-media-controls-mute-button { display: none; }

.info {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── 시작 오버레이 ── */
#start-overlay {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: opacity 0.5s ease;
}
#start-overlay.hidden { opacity: 0; pointer-events: none; }

#start-icon {
  width: 76px; height: 76px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s, border-color 0.2s;
}
#start-overlay:hover #start-icon { transform: scale(1.09); border-color: #fff; }
#start-icon svg { margin-left: 5px; fill: #fff; }
#start-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
}