html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#design {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.widget {
  position: absolute;
  overflow: visible;
}

.widget canvas {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}

.led-input {
  position: absolute;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
  color: #000;
}

.presets {
  position: absolute;
  left: 0;
  bottom: 100%;
  min-width: 320px;
  max-height: 320px;
  overflow-y: auto;
  background: #ffffff;
  color: #1c1b1f;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: none;
}

.presets.open {
  display: block;
}

.presets div {
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.presets div:hover {
  background: rgba(244, 8, 26, 0.12);
}

#hud {
  position: fixed;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #eee;
  font-size: 13px;
  z-index: 100;
}

#hud #status {
  opacity: 0.85;
}

#hud label {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}
