* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e8edf0;
  background: #f4f1e9;
}

#scene,
#confettiScene {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
}

#confettiScene {
  z-index: 0;
  pointer-events: none;
}

#scene {
  z-index: 1;
  pointer-events: none;
}

.sound-toggle {
  position: fixed;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  min-width: 76px;
  height: 40px;
  border: 1px solid rgba(27, 31, 35, 0.22);
  border-radius: 999px;
  background: rgba(244, 241, 233, 0.9);
  color: #1b1f23;
  font: 650 13px/1 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 8px 28px rgba(27, 31, 35, 0.12);
  backdrop-filter: blur(10px);
}

body.audio-ready .sound-toggle {
  display: none;
}

.control-panel {
  position: fixed;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: none;
  gap: 12px;
  width: min(280px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(27, 31, 35, 0.18);
  border-radius: 8px;
  background: rgba(244, 241, 233, 0.82);
  color: #1b1f23;
  backdrop-filter: blur(10px);
}

body.is-dev .control-panel {
  display: grid;
}

.control-panel label {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
}

.control-panel input,
.control-panel select {
  min-width: 0;
}

.control-panel select {
  grid-column: 2 / 4;
  height: 30px;
  border: 1px solid rgba(27, 31, 35, 0.22);
  border-radius: 6px;
  background: #f4f1e9;
  color: #1b1f23;
}

.control-panel output {
  min-width: 30px;
  text-align: right;
  color: rgba(27, 31, 35, 0.72);
}
