/* AugmentBoard presentation from the Scarlet desktop augmentation stylesheet. */
.aug-board {
  position: relative;
  width: 100%;
  isolation: isolate;
  aspect-ratio: 900 / 580;
  min-height: 300px;
  background:
    radial-gradient(
      ellipse at 50% 49%,
      color-mix(in srgb, var(--scarlet-selected) 26.67%, transparent),
      transparent 45%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 29px,
      color-mix(in srgb, var(--scarlet-border) 7.06%, transparent) 29px 30px
    ),
    repeating-linear-gradient(
      90deg,
      var(--scarlet-surface) 0 29px,
      color-mix(in srgb, var(--scarlet-border) 7.84%, transparent) 29px 30px
    );
}
.aug-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  box-shadow: inset 0 0 80px var(--scarlet-surface);
}
.aug-wiring {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.aug-frame {
  fill: none;
  stroke: var(--scarlet-accent-dim);
  stroke-width: 1;
}
.aug-backplane {
  fill: none;
  stroke: var(--scarlet-border);
  stroke-width: 1;
}
.aug-backplane circle {
  stroke-dasharray: 3 9;
}
.aug-route {
  fill: none;
  stroke: var(--scarlet-border);
  stroke-width: 1.3;
}
.aug-route circle {
  fill: var(--scarlet-surface);
  stroke: var(--scarlet-border-strong);
}
.aug-route.is-connected {
  stroke: var(--scarlet-accent-text);
}
.aug-route.is-connected > path:first-child {
  filter: drop-shadow(
    0 0 3px color-mix(in srgb, var(--scarlet-accent) 46.67%, transparent)
  );
}
.aug-route .aug-route-shadow {
  stroke: var(--scarlet-border);
  stroke-width: 0.8;
}
.aug-route.is-connected circle {
  fill: var(--scarlet-accent-text);
  stroke: var(--scarlet-accent-text);
}
.aug-board-notation {
  fill: var(--scarlet-border-strong);
  font: var(--scarlet-size-meta) var(--scarlet-font-mono);
  letter-spacing: 1.6px;
}
.aug-route .aug-route-runner {
  stroke: var(--scarlet-accent-text);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-dasharray: 4 96;
  filter: drop-shadow(0 0 6px var(--scarlet-accent));
  opacity: 0;
}
.aug-board[data-motion="true"] .aug-route-runner {
  animation: aug-link-signal 950ms ease-out both;
}
.aug-core {
  position: absolute;
  width: 18%;
  max-width: 156px;
  min-width: 76px;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  padding: 6px;
  z-index: 2;
}
.aug-core-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  border: 1px solid var(--scarlet-accent-text);
  box-shadow:
    0 0 0 4px var(--scarlet-surface),
    0 0 0 5px var(--scarlet-accent-dim),
    0 0 26px color-mix(in srgb, var(--scarlet-accent) 10.98%, transparent),
    inset 0 0 35px
      color-mix(in srgb, var(--scarlet-accent-dim) 20%, transparent);
  background: radial-gradient(
    ellipse,
    var(--scarlet-selected),
    var(--scarlet-surface)
  );
}
.aug-core-body::before,
.aug-core-body::after {
  content: "";
  position: absolute;
  width: 14%;
  height: 14%;
  border: solid var(--scarlet-accent-text);
  pointer-events: none;
}
.aug-core-body::before {
  top: 6px;
  left: 6px;
  border-width: 1px 0 0 1px;
}
.aug-core-body::after {
  bottom: 6px;
  right: 6px;
  border-width: 0 1px 1px 0;
}
.aug-core-body > svg {
  width: 27%;
  height: auto;
  color: var(--scarlet-accent-text);
  filter: drop-shadow(
    0 0 5px color-mix(in srgb, var(--scarlet-accent) 40%, transparent)
  );
}
.aug-core-body b {
  font: var(--scarlet-font-heading-weight)
    clamp(var(--scarlet-size-data), 1.25vw, var(--scarlet-size-h3))
    var(--scarlet-font-display);
  color: var(--scarlet-text);
  letter-spacing: 2px;
}
.aug-core-body span {
  font-size: var(--scarlet-size-meta);
  letter-spacing: 1.5px;
  color: var(--scarlet-accent-text);
}
.aug-core-body small {
  font-size: var(--scarlet-size-meta);
  color: var(--scarlet-muted);
  letter-spacing: 0.6px;
}
.aug-core-orbit {
  position: absolute;
  inset: -14%;
  border: 1px dashed
    color-mix(in srgb, var(--scarlet-border-strong) 33.33%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.aug-core-pins {
  text-align: center;
  color: var(--scarlet-muted);
  font-size: var(--scarlet-size-meta);
  letter-spacing: 2px;
  position: absolute;
  bottom: -9px;
  width: 100%;
  left: 0;
}
.aug-board[data-motion="true"].is-linking .aug-core-body {
  animation: aug-core-ignition 950ms ease-out;
}
.aug-socket {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20%;
  min-height: 60px;
  height: 16%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  background: linear-gradient(
    130deg,
    var(--scarlet-raised),
    var(--scarlet-surface)
  );
  border: 1px solid var(--scarlet-accent-dim);
  border-left: 2px solid var(--scarlet-border-strong);
  border-radius: 0;
  z-index: 3;
}
.aug-socket::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid
    color-mix(in srgb, var(--scarlet-accent-text) 6.67%, transparent);
  pointer-events: none;
}
.aug-socket:hover {
  border-color: var(--scarlet-accent-text);
  background: var(--scarlet-selected);
}
.aug-socket > svg {
  width: 22px;
  height: 22px;
  color: var(--scarlet-muted);
}
.aug-port-number {
  position: absolute;
  top: 6px;
  left: 7px;
  color: var(--scarlet-muted);
  font-size: var(--scarlet-size-meta);
}
.aug-socket-label {
  font: var(--scarlet-font-heading-weight)
    clamp(var(--scarlet-size-meta), 0.86vw, var(--scarlet-size-data))
    var(--scarlet-font-display);
  letter-spacing: 0.7px;
}
.aug-socket > small {
  color: var(--scarlet-muted);
  font-size: var(--scarlet-size-meta);
  letter-spacing: 1px;
}
.aug-socket.is-docked {
  border-color: var(--scarlet-accent-text);
  border-left-color: var(--scarlet-accent-text);
  background: linear-gradient(
    130deg,
    var(--scarlet-selected),
    var(--scarlet-surface)
  );
  box-shadow: 0 0 16px
    color-mix(in srgb, var(--scarlet-accent) 4.71%, transparent);
}
.aug-socket.is-docked > svg {
  color: var(--scarlet-accent-text);
  filter: drop-shadow(
    0 0 3px color-mix(in srgb, var(--scarlet-accent) 33.33%, transparent)
  );
}
.aug-socket.is-docked > small {
  color: var(--scarlet-accent-text);
}
.aug-socket.is-selected {
  outline: 1px solid var(--scarlet-data);
  outline-offset: 3px;
}
.aug-board[data-motion="true"] .aug-socket.is-plugging {
  animation: aug-socket-snap 950ms ease-out;
}
.aug-core-orbit::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--scarlet-accent-text);
  border-bottom-color: color-mix(
    in srgb,
    var(--scarlet-accent) 33.33%,
    transparent
  );
}
.aug-core-orbit::after {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 3px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--scarlet-accent-text);
  box-shadow: 0 0 9px var(--scarlet-accent);
}
.aug-board[data-motion="true"] .aug-core-orbit {
  animation: aug-core-orbit 16s linear infinite;
}
.aug-board[data-motion="true"] .aug-core-orbit::before {
  animation: aug-core-breathe 4s ease-in-out infinite;
}
.aug-board[data-motion="true"] .aug-core-body .nav-icon-runner {
  animation: aug-core-trace 5.5s linear infinite;
}
@keyframes aug-core-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes aug-core-breathe {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.85;
  }
}
@keyframes aug-core-trace {
  0%,
  100% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  10%,
  88% {
    opacity: 0.9;
  }
  95% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
}

.aug-route .aug-route-ambient {
  fill: none;
  stroke: var(--scarlet-accent-text);
  stroke-width: 1.8;
  stroke-dasharray: 2 98;
  opacity: 0;
  --packet-alpha: 0.32;
}
.aug-route.is-connected .aug-route-ambient {
  --packet-alpha: 0.7;
}
.aug-board[data-motion="true"] .aug-route-ambient {
  animation: aug-track-packet 5s linear infinite;
}
.aug-route .aug-route-runner {
  stroke-width: 3.8;
  stroke-dasharray: 6 94;
}
.aug-board[data-motion="true"] .aug-route-runner {
  animation-duration: 1550ms;
}
@keyframes aug-track-packet {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  12%,
  86% {
    opacity: var(--packet-alpha);
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
