.decision-orbit {
  --do-angle: -139deg;
  --do-gold: #e7cc93;
  position: absolute;
  inset: 0;
  container-type: size;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
  pointer-events: none;
}

.do-frame {
  position: relative;
  flex: none;
  width: min(100%, 610px);
  width: min(100cqw, 114.1cqh);
  aspect-ratio: 500 / 438;
}

.do-light, .do-object, .do-orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.do-light {
  background: radial-gradient(ellipse closest-side at 50% 50%, #71929b24, #45647013 67%, transparent 100%);
}

.do-object img {
  position: absolute;
  left: -16%;
  top: 13%;
  width: 101%;
  max-width: none;
  height: auto;
  display: block;
  mix-blend-mode: lighten;
  mask-image:
    radial-gradient(ellipse 55% 58% at 66% 48%, #000 69%, #000c 83%, transparent 100%),
    linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent),
    linear-gradient(to right, transparent, #000 12%, #000 93%, transparent);
  mask-composite: intersect;
}

.do-mechanism {
  position: absolute;
  width: 72%;
  height: auto;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.do-object[data-rendered] img { visibility: hidden; }
.do-object[data-rendered] .do-mechanism { opacity: 1; }
.do-object::after {
  content: "";
  position: absolute;
  top: 85%;
  left: 34%;
  width: 32%;
  height: 4%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(187 153 86 / 18%), transparent 72%);
  pointer-events: none;
}

.do-orbits { color: #d8c392; overflow: visible; }
.do-outer { stroke: #b9a780; stroke-width: .62; opacity: .55; }
.do-major { stroke: #dfc68d; stroke-width: 1; opacity: .74; }
.do-minor { stroke: #c5b288; stroke-width: .75; opacity: .62; }
.do-track { stroke: #d2b57e; stroke-width: .62; opacity: .32; }
.do-transit { stroke: #c4ad80; stroke-width: .7; opacity: .42; }
.do-carriage {
  stroke: #e4c489;
  stroke-width: 1.35;
  transform-origin: 250px 219px;
  transform: rotate(var(--do-angle));
  transition: transform .85s cubic-bezier(.2,.72,.22,1);
}

.do-carriage .do-pointer { fill: #f9e2ae; stroke: none; }
.do-glint {
  fill: #ecd399;
  transform-origin: 250px 219px;
  animation: do-revolve 64s linear infinite;
}

.decision-orbit .do-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--do-gold);
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.do-pin-face {
  position: relative;
  width: clamp(29px, 6cqw, 38px);
  aspect-ratio: 1;
  border: 1px solid #c4a76f;
  border-radius: 50%;
  background: radial-gradient(ellipse at 34% 20%,#34545a,#152e38 68%,#091f2c);
  box-shadow: 0 0 0 3px #0b2630ad, inset 0 0 0 2px #d3b88316, 0 2px 8px #041a23;
  display: grid;
  place-items: center;
  transition: color .22s, background .22s, transform .22s;
}

.do-pin-face svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.do-pin[aria-pressed="true"] { z-index: 3; }
.do-pin[aria-pressed="true"] .do-pin-face {
  color: #1c3034;
  background: linear-gradient(145deg,#fff0c5,#e9cb90 36%,#bb955a 84%);
  border-color: #fce7b2;
}
.do-pin[aria-pressed="true"] .do-pin-face::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #dfc28b;
  border-radius: 50%;
  animation: do-pulse 4.8s ease-out infinite;
}

.do-pin-label {
  position: absolute;
  z-index: 1;
  top: 50%;
  padding: .36em .62em;
  border: 1px solid #ab916348;
  background: #0a232eea;
  color: #f5dfb3;
  font: 550 clamp(.71rem, 2.4cqw, .88rem)/1.15 var(--sans, Arial, sans-serif);
  white-space: nowrap;
  letter-spacing: .015em;
  pointer-events: none;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .18s ease-out;
}
.do-label-right .do-pin-label { left: calc(100% + 1px); }
.do-label-left .do-pin-label { right: calc(100% + 1px); }
.do-pin[aria-pressed="true"] .do-pin-label, .do-pin:focus-visible .do-pin-label { opacity: 1; }
.do-pin:focus-visible { outline: 2px solid #f3d49b; outline-offset: 3px; }

@media (hover: hover) {
  .do-pin:hover { z-index: 4; }
  .do-pin:hover .do-pin-face { transform: scale(1.12); }
  .do-frame:has(.do-pin:hover) .do-pin:not(:hover) .do-pin-label { opacity: 0; }
  .do-pin:hover .do-pin-label { opacity: 1; }
}
@media (max-width: 680px) {
  .ih-instrument:has(.decision-orbit) { height: clamp(206px, 56vw, 295px); }
}
@keyframes do-revolve { from { transform: rotate(-80deg); } to { transform: rotate(280deg); } }
@keyframes do-pulse { 0%,18% { opacity: .6; transform: scale(.98); } 70%,100% { opacity: 0; transform: scale(1.38); } }
:root[data-motion="paused"] .decision-orbit :is(.do-glint,.do-pin-face)::after,
:root[data-motion="paused"] .decision-orbit .do-glint { animation-play-state: paused; }
:root[data-motion="paused"] .decision-orbit * { transition: none; }
:root[data-motion="paused"] .decision-orbit .do-object { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .decision-orbit *, .decision-orbit *::after { animation: none !important; transition: none !important; }
  .decision-orbit .do-object { transform: none; }
}
