html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07090c;
  color: #f3f7fb;
  font-family: Arial, Helvetica, sans-serif;
}

canvas {
  display: block;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.panel {
  position: absolute;
  left: 18px;
  top: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(150, 230, 255, 0.18);
  border-radius: 8px;
  background: rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.titleRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.versionBadge {
  padding: 2px 6px;
  border: 1px solid rgba(132, 220, 255, 0.35);
  border-radius: 999px;
  background: rgba(10, 30, 42, 0.72);
  color: #bfeeff;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
}

p {
  margin: 0;
  color: #c8d4df;
  font-size: 13px;
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.demoActions {
  margin-top: 10px;
}

.actionButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(96, 221, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 34, 46, 0.96), rgba(7, 13, 20, 0.96));
  color: #f7fbff;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.actionButton.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(28, 34, 44, 0.96), rgba(9, 13, 20, 0.96));
}

.actionButton.demo {
  min-width: 142px;
  min-height: 36px;
  padding: 0 13px;
  border-color: rgba(132, 220, 255, 0.36);
  background: linear-gradient(180deg, rgba(21, 33, 45, 0.96), rgba(6, 12, 19, 0.96));
  font-size: 13px;
}

.actionButton.demo.klingon {
  border-color: rgba(117, 255, 168, 0.42);
  background: linear-gradient(180deg, rgba(21, 33, 45, 0.96), rgba(6, 12, 19, 0.96));
}

.actionButton.demo.blackHole {
  border-color: rgba(255, 188, 105, 0.5);
  background: linear-gradient(180deg, rgba(21, 33, 45, 0.96), rgba(6, 12, 19, 0.96));
}

.actionButton.demo.help {
  min-height: 36px;
  padding: 0 13px;
  border-color: rgba(122, 255, 167, 0.55);
  background: linear-gradient(180deg, rgba(21, 42, 33, 0.96), rgba(6, 13, 12, 0.96));
  color: #dfffea;
  font-size: 13px;
}

.actionButton:disabled {
  cursor: default;
  opacity: 0.72;
}

.poseDebugOutput {
  box-sizing: border-box;
  width: 100%;
  min-height: 92px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(117, 255, 168, 0.38);
  border-radius: 8px;
  background: rgba(3, 9, 12, 0.86);
  color: #d9fff0;
  font: 12px/1.35 Consolas, "Courier New", monospace;
  resize: vertical;
  pointer-events: auto;
}

@media (max-width: 520px) {
  .panel {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
  }

  .actions {
    flex-direction: column;
  }

  .actionButton {
    width: 100%;
  }
}
