.animation-wheel {
  --wheel-size: max(308px, min(430px, 90vw, calc(100dvh - 390px)));
  width: calc(var(--wheel-size) + 30px);
  max-height: 94dvh;
  scrollbar-gutter: auto;
}
.animation-wheel:has(.uploaded-clips:not([hidden])) {
  --wheel-size: max(308px, min(430px, 90vw, calc(100dvh - 435px)));
}
.animation-wheel-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 8px;
  overflow: visible;
  padding: 8px 2px 5px;
}
.motion-wheel-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 10px;
  color: #c3b6d5;
}
.animation-wheel-groups select {
  min-height: 44px;
  width: 100%;
  min-width: 0;
  border: 1px solid #a18aba66;
  border-radius: 9px;
  background: #211a2d;
  color: #f4f0e8;
  font: 12px Arial, sans-serif;
  padding: 8px;
}
.animation-wheel-groups select:focus-visible,
.animation-wheel-groups button:focus-visible,
.motion-pin:focus-visible {
  outline: 2px solid #e2ef88;
  outline-offset: 2px;
}
.motion-wheel-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}
.animation-wheel-groups .motion-wheel-actions button {
  flex: 1;
  min-height: 44px;
  font-size: 11px;
  border-radius: 8px;
  color: #e2ef88;
  border-color: #e2ef8840;
  background: #e2ef880a;
  white-space: normal;
}
.motion-wheel-pin-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #b8aac9;
  font-size: 10px;
  line-height: 1.4;
}
.animation-wheel-board {
  background: radial-gradient(circle at center, #b592e80b, transparent 60%);
}
.animation-wheel-board .motion-ring-outer {
  width: calc(93% - 40.92px);
  height: calc(93% - 40.92px);
}
.motion-orb { --orb-size: min(48px, 13cqw); font-size: clamp(22px, 7cqw, 30px); }
.motion-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9685a8;
  font-size: 13px;
}
.motion-pin:hover { background: #ffffff10; color: #f5f0ed; }
.motion-pin[aria-pressed="true"] { color: #e2ef88; background: #e2ef8812; }
.motion-orb.pinned > span:first-child { border-color: #e2ef88a6; }
.motion-orb.slot-focused > span:first-child { box-shadow: 0 0 0 2px #a18aba66; }
.motion-orb.active.slot-focused > span:first-child { box-shadow: 0 0 0 3px #e2ef8835, 0 0 22px #e2ef883f; }
.animation-wheel-center { width: 37%; }
.motion-character { max-width: 82px; }
.animation-wheel-center p { font-size: 9px; }
@container (max-width: 380px) {
  .animation-wheel-center { gap: 3px; }
  .animation-wheel-center .motion-character { max-width: 64px; }
  .animation-wheel-center p { display: none; }
}
@media (max-width: 650px) {
  .animation-wheel,
  .animation-wheel:has(.uploaded-clips:not([hidden])) {
    --wheel-size: max(308px, min(90vw, calc(100dvh - 350px)));
    width: calc(var(--wheel-size) + 18px);
    max-height: 94dvh;
  }
  .animation-wheel-head p { max-width: 250px; line-height: 1.4; }
  .animation-wheel-groups { display: grid; }
}
@media (max-height: 550px) {
  .animation-wheel-groups { display: grid; }
  .animation-wheel-head p { display: block; }
}
@media (max-width: 335px) {
  .animation-wheel,
  .animation-wheel:has(.uploaded-clips:not([hidden])) { --wheel-size: 280px; }
  .animation-wheel-groups { grid-template-columns: 1fr; }
}
