html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #11161b;
  color: #eef4f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}

.hud {
  position: fixed;
  top: 16px;
  left: 16px;
  display: grid;
  gap: 10px;
  padding: 12px;
  max-width: min(360px, calc(100vw - 32px));
  background: rgb(15 22 30 / 76%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  user-select: none;
}

.title {
  font-size: 14px;
  font-weight: 700;
}

.mode {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.status {
  max-width: 320px;
  color: #b7c9d6;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.intro {
  display: grid;
  gap: 8px;
  max-width: 320px;
  padding: 10px;
  color: #dbe8ef;
  background: rgb(9 14 19 / 72%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.intro.hidden {
  display: none;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

button {
  min-height: 34px;
  padding: 0 10px;
  color: #eef4f8;
  background: #26323e;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 7px;
  cursor: pointer;
}

button:hover {
  background: #324253;
}

.mode-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  color: #061015;
  background: #a9ee6f;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mode-link:hover {
  background: #bdf58b;
}

.file-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 34px;
  padding: 0 10px;
  color: #eef4f8;
  background: #26323e;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
}

.file-picker:hover {
  background: #324253;
}

.file-picker input {
  display: none;
}

.asset-loader {
  display: flex;
  gap: 6px;
}

.asset-loader input {
  min-width: 0;
  width: 170px;
  height: 34px;
  box-sizing: border-box;
  padding: 0 9px;
  color: #eef4f8;
  background: #141d26;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 7px;
}

button.active {
  color: #061015;
  background: #62d6e8;
}

.xr-choice {
  display: grid;
  gap: 6px;
}

.xr-label {
  color: #b7c9d6;
  font-size: 12px;
  font-weight: 700;
}

.xr-choice .xr-launch-button {
  position: static !important;
  width: 100% !important;
  min-height: 36px !important;
  border-radius: 7px !important;
  font: 700 13px Inter, ui-sans-serif, system-ui, sans-serif !important;
}

.xr {
  width: max-content;
  background: #f2c94c;
  color: #10120d;
  font-weight: 700;
}

.xr:disabled {
  cursor: default;
  opacity: 0.5;
}

.fatal {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px;
  color: #fff4f4;
  background: #7d1d28;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
  font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}
