:root {
  color-scheme: dark;
  background: #000;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

#scene {
  width: 100vw;
  height: 100svh;
  display: block;
  background: #000;
  cursor: url("cursor.png") 0 37, auto;
  touch-action: none;
}

#scene:active {
  cursor: url("cursor.png") 0 37, auto;
}

.debug {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.78);
  color: #fff;
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.debug.is-hidden {
  display: none;
}

.debug__header,
.debug label span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.debug__header {
  margin-bottom: 12px;
}

.debug__actions {
  display: flex;
  gap: 8px;
}

.debug strong {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.debug button,
.debug-toggle-button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.debug-toggle-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.debug-toggle-button.is-hidden {
  display: none;
}

.debug label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.debug .debug-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.debug-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.debug output {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.debug input[type="range"] {
  width: 100%;
  margin: 6px 0 0;
  accent-color: #fff;
}

@media (max-width: 700px) {
  .debug {
    top: 10px;
    right: 10px;
    width: min(240px, calc(100vw - 20px));
    padding: 12px;
  }

  .debug-toggle-button {
    top: 10px;
    right: 10px;
  }
}
