html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

#renderCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#ui {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

#actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#startButton,
#wakeButton {
  border: 0;
  border-radius: 8px;
  background: #2f7be8;
  color: #fff;
  font-size: 15px;
  padding: 8px 12px;
  cursor: pointer;
}

#wakeButton {
  background: #1f9a57;
}

#startButton:disabled,
#wakeButton:disabled {
  opacity: 0.7;
  cursor: default;
}

#hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
  white-space: pre-line;
}

#debugPanel {
  margin-top: 8px;
  font-size: 12px;
}

#debugPanel summary {
  cursor: pointer;
  user-select: none;
  opacity: 0.9;
}

#debugStatus {
  margin: 6px 0 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.35;
}
