.personal-reactor.reactor-outline {
  width: min(100%, 490px);
  margin: 0 auto;
  isolation: isolate;
  --reactor-power: 0;
  --reactor-whiteout: 0;
  --reactor-halo: 2px;
}

.reactor-outline-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  perspective: 950px;
  --reactor-art-inset: 12px;
}

.reactor-outline-control {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
  /* Only this target owns a hold; the surrounding artwork stays scrollable. */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  perspective: 950px;
}

.reactor-outline-control:disabled { cursor: wait; }
.reactor-outline-control:focus-visible {
  outline: 1px solid #a7b3bc;
  outline-offset: -10px;
  border-radius: 50%;
}

.reactor-outline-plate {
  display: block;
  position: absolute;
  inset: var(--reactor-art-inset);
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

.reactor-outline-plate svg {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translateZ(.6px);
  filter: drop-shadow(0 0 var(--reactor-halo) rgba(180, 228, 255, calc(var(--reactor-power) * .7)));
}

.reactor-outline-plate .reactor-lit {
  stroke: color-mix(in srgb, #626f79 calc(100% - var(--reactor-power) * 100%), #e5f7ff);
  filter: drop-shadow(0 0 calc(var(--reactor-power) * 6px) #bceaff);
}

.reactor-outline-plate .reactor-inscription {
  fill: #c0c6ca;
  stroke: #071017;
  stroke-width: 1.4px;
  paint-order: stroke fill;
  stroke-linejoin: round;
}

/* Show the light behind the lettering, retaining the opaque inner mechanism. */
.reactor-outline-plate .reactor-inscription-ring > circle:first-child {
  fill: transparent;
}

/* The SVG inscription occupies radii 215..268 in its 600-unit viewBox.
   A moving arc fills the band's width; the rest stays dark at idle. */
.reactor-orbit-light {
  display: block;
  position: absolute;
  inset: 5.333333%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  background: transparent;
  filter: drop-shadow(0 0 5px rgba(213, 240, 255, .95))
          drop-shadow(0 0 calc(10px + var(--reactor-power) * 9px) rgba(178, 221, 247, .75));
  transform: translateZ(0);
}

.reactor-orbit-light::before,
.reactor-orbit-light::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: reactor-orbit-light-turn 7s linear infinite;
  will-change: transform;
}

.reactor-orbit-light::before {
  background: conic-gradient(from 0deg,
    transparent 0deg 258deg,
    rgba(200, 227, 244, .05) 276deg,
    rgba(203, 232, 251, .4) 307deg,
    rgba(220, 241, 255, .9) 330deg,
    #f1faff 342deg,
    #fff 354deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 80.22%, #000 80.5%, #000 99.4%, transparent 100%);
  mask: radial-gradient(farthest-side, transparent 80.22%, #000 80.5%, #000 99.4%, transparent 100%);
}

.reactor-orbit-light::after {
  /* Circular head: radius26.5 on the inscription band's radius241.5 path. */
  background: radial-gradient(circle closest-side at 50% 4.94403%,
    #fff 0% 90%, rgba(241, 250, 255, .92) 94%, transparent 100%);
}

@keyframes reactor-orbit-light-turn {
  to { transform: rotate(360deg); }
}

.reactor-outline-glow {
  position: absolute;
  z-index: 2;
  inset: 3%;
  border-radius: 50%;
  transform: translateZ(1px);
  opacity: var(--reactor-whiteout);
  background: radial-gradient(circle, #fff 0%, #f6fdff 43%, rgba(223, 246, 255, .95) 61%, rgba(194, 234, 255, .38) 72%, transparent 79%);
  box-shadow: 0 0 48px 10px rgba(191, 230, 255, .4);
  filter: blur(6px);
  pointer-events: none;
}

.reactor-outline-status {
  display: block;
  margin-top: 8px;
  color: #83888c;
  text-align: center;
  font: 12px/1.5 'DM Sans', sans-serif;
}
.reactor-outline-status[hidden] { display: none; }
.reactor-outline:not([data-ready="true"]) .reactor-orbit-light { visibility: hidden; }

/* Pausing, rather than removing the animation, preserves its current position.
   Full is the site's explicit override for the OS preference. */
html[data-motion="reduced"] .reactor-orbit-light::before,
html[data-motion="reduced"] .reactor-orbit-light::after,
.reactor-outline[data-suspended="true"] .reactor-orbit-light::before,
.reactor-outline[data-suspended="true"] .reactor-orbit-light::after {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .reactor-orbit-light::before,
  html:not([data-motion="full"]) .reactor-orbit-light::after { animation-play-state: paused; }
}
@media (max-width: 560px) {
  .personal-reactor.reactor-outline { max-width: 390px; }
  .reactor-outline-stage { --reactor-art-inset: 7px; }
}

/* Match the inner core, not the enclosing square or inscription ring. Clipping
   also excludes the square's corners from hit testing and touch-action:none. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .reactor-outline-control {
    inset: 50% auto auto 50%;
    width: 32%;
    height: 32%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    -webkit-clip-path: circle(50%);
    clip-path: circle(50%);
  }
}
