* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #101214;
  color: #f2f5f7;
  font-family: "Segoe UI", Arial, sans-serif;
}

body.audio-locked {
  overflow: hidden;
}

.stage {
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #2d3338;
  padding-bottom: 18px;
}

.label {
  color: #78d5ff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.05;
}

button {
  min-width: 112px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #e84f78;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button.hidden {
  display: none;
}

button:disabled {
  cursor: default;
  opacity: 0.8;
}

.audio-prompt {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 6, 8, 0.82);
  backdrop-filter: blur(10px);
}

.audio-prompt.hidden {
  display: none;
}

.audio-prompt-panel {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid #33404a;
  border-radius: 8px;
  background: #15191d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.audio-prompt-panel h2 {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.1;
}

.audio-prompt-panel p {
  margin: 0 0 22px;
  color: #b8c4ce;
  line-height: 1.45;
}

.audio-prompt-panel button {
  width: 100%;
}

.now {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 14px;
  border-bottom: 1px solid #2d3338;
}

#time {
  color: #9aa7b2;
  font-variant-numeric: tabular-nums;
}

#currentLine {
  font-size: clamp(34px, 8vw, 82px);
  font-weight: 800;
  line-height: 1.08;
}

#nextLine {
  display: none;
}

audio {
  display: none;
}

.lyrics {
  display: none;
}

.line {
  padding: 10px 0;
  color: #7f8b96;
  font-size: 20px;
  border-bottom: 1px solid #1d2226;
}

.line.active {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .audio-prompt-panel h2 {
    font-size: 25px;
  }
}
