.orbit-view {
  position: absolute;
  top: 0;
  left: 50%;
  width: 214px;
  height: 428px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px #0005);
}
.orbit-enabled .character-sprite {
  visibility: hidden;
}
.orbit-figure {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 400% 200%;
  background-position: 0% 0%;
}
.orbit-controls {
  padding: 0 24px 17px;
  color: var(--muted, #96afb6);
  font-size: 12px;
}
.orbit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.orbit-modes {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line, #304851);
  border-radius: 9px;
  background: #09181e;
}
.orbit-mode-button,
.orbit-auto-button,
.orbit-step-button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}
.orbit-mode-button {
  padding: 6px 10px;
  white-space: nowrap;
}
.orbit-mode-button[aria-pressed="true"] {
  background: #25414a;
  color: #effffb;
  box-shadow: 0 2px 8px #0003;
}
.orbit-auto-button {
  padding: 6px 8px;
  color: var(--gold, #e5ca91);
  border-color: #79674570;
  white-space: nowrap;
}
.orbit-mode-button:hover:not(:disabled),
.orbit-step-button:hover:not(:disabled) {
  color: #effffb;
  background: #25414a;
}
.orbit-auto-button:hover:not(:disabled) {
  background: #d6b97810;
  border-color: #b29964;
}
.orbit-angle-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 8px;
}
.orbit-step-button {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-color: var(--line, #304851);
  font-size: 25px;
  line-height: 1;
}
.orbit-angle-range {
  flex: 1 1 auto;
  min-width: 40px;
  width: 100%;
  height: 32px;
  margin: 0;
  accent-color: var(--cyan, #81ded1);
  cursor: pointer;
}
.orbit-angle-range:disabled {
  cursor: not-allowed;
  opacity: .4;
}
.orbit-angle-label {
  min-width: 83px;
  text-align: right;
  color: #c3d8da;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.orbit-controls button:focus-visible,
.orbit-angle-range:focus-visible {
  outline: 2px solid var(--cyan, #81ded1);
  outline-offset: 3px;
}
.orbit-explainer {
  margin: 0;
  color: var(--muted, #96afb6);
  font-size: 12px;
  line-height: 1.6;
}
.orbit-status {
  margin: 4px 0 0;
  color: var(--gold, #e5ca91);
  font-size: 12px;
  line-height: 1.6;
}
@media (min-width: 1500px) {
  .orbit-view { width: 231px; height: 462px; }
}
@media (max-width: 1100px) {
  .orbit-controls { padding-right: 20px; padding-left: 20px; }
  .orbit-toolbar { gap: 6px; }
  .orbit-mode-button { padding-right: 8px; padding-left: 8px; }
}
@media (max-width: 760px) {
  .orbit-view { width: 201.5px; height: 403px; }
  .orbit-controls { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 370px) {
  .orbit-controls { padding-right: 16px; padding-left: 16px; }
  .orbit-mode-button { padding-right: 6px; padding-left: 6px; }
  .orbit-auto-button { padding-right: 6px; padding-left: 6px; }
  .orbit-angle-controls { gap: 6px; }
}

/* v1.2 真人式微動作：呼吸／搖擺／點頭用 transform，眨眼／微笑畫在覆蓋的 canvas 上 */
.live-wrap { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform; }
.live-face { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.character-sprite { transform: translateX(-50%) var(--live, translate(0, 0)); transform-origin: 50% 100%; }
