/* El mando ocupa una esquina y se puede plegar sin abandonar la escena. */
.camera-pad {
  position: absolute;
  left: 12px;
  bottom: 54px;
  width: 150px;
  z-index: 7;
  color: #eaf2ff;
  font-size: 11px;
}
.camera-pad details {
  border: 1px solid #bdcced3b;
  border-radius: 13px;
  background: rgba(13, 23, 41, 0.62);
  backdrop-filter: blur(7px);
  box-shadow: 0 7px 24px #0002;
  overflow: hidden;
}
.camera-pad summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  list-style: none;
}
.camera-pad summary::after {
  content: '−';
  margin-left: auto;
  color: #adbee2;
  font-size: 16px;
}
.camera-pad details:not([open]) summary::after {
  content: '+';
}
.camera-pad summary::-webkit-details-marker {
  display: none;
}
.camera-pad svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.camera-pad-content {
  padding: 0 7px 7px;
}
.camera-pad button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #aabfe033;
  border-radius: 9px;
  min-width: 0;
  color: #e8f0ff;
  background: #7185ad20;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.camera-pad button:hover,
.camera-pad button.pressed {
  background: #6689b770;
  border-color: #a5c6fa88;
}
.camera-pad button:focus-visible,
.camera-pad summary:focus-visible {
  outline: 2px solid #b1d3ff;
  outline-offset: -2px;
}
.camera-pad button:disabled {
  opacity: 0.35;
  cursor: default;
}
.camera-pad-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 5px;
}
.camera-pad-modes button {
  min-height: 29px;
  font-size: 10px;
}
.camera-pad-modes button[aria-pressed='true'] {
  background: #7a67aa70;
  border-color: #baa1e899;
}
.camera-pad-buttons {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(3, 36px);
  gap: 2px;
  justify-content: center;
}
.camera-pad-buttons button {
  font-size: 21px;
  min-height: 36px;
}
.pad-forward {
  grid-area: 1/2;
}
.pad-left {
  grid-area: 2/1;
}
.pad-center {
  grid-area: 2/2;
}
.pad-right {
  grid-area: 2/3;
}
.pad-backward {
  grid-area: 3/2;
}
.camera-pad .pad-center {
  background: transparent;
  border-color: transparent;
  color: #9cb6d9;
}
.camera-pad-height {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 4px;
}
.camera-pad-height button {
  flex: 1;
  min-height: 27px;
  font-size: 10px;
}
.camera-pad-height[hidden] {
  display: none;
}
.camera-pad-hint {
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.3;
  color: #b5c5dd;
  text-align: center;
}
#observatory-stage.is-immersive .camera-pad {
  bottom: 14px;
}
@media (pointer: coarse) {
  .camera-pad-buttons {
    grid-template-rows: repeat(3, 44px);
  }
  .camera-pad-modes button,
  .camera-pad-height button {
    min-height: 36px;
  }
}
@media (max-width: 600px) {
  .camera-pad {
    left: 8px;
    bottom: 48px;
  }
  .camera-pad details {
    background: rgba(13, 23, 41, 0.5);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .camera-pad details {
    background: #142139;
  }
}
