.dust,
.base-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dust i {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--seed-color, #e4ecbe);
  box-shadow: 0 0 5px #c1e3a76b;
  animation: drift 15s ease-in-out infinite alternate;
}
@keyframes drift {
  to {
    transform: translate(14px, -16px);
  }
}
.base-labels span {
  position: absolute;
  transform: translate(-50%, -50%);
  font: bold clamp(11px, 1.3vw, 17px) var(--mono);
  color: #101c18;
  text-shadow: 0 0 3px #fff8;
}
.context-specimen {
  position: absolute;
  width: 150%;
  height: 150%;
  object-fit: contain;
  left: -100%;
  top: -19%;
  opacity: 0.075;
  pointer-events: none;
  filter: blur(5px);
}
.labdiagram {
  display: block;
  width: 100%;
  height: clamp(110px, 15vh, 180px);
  background: #172c22;
  border-radius: 3px;
}
.spool {
  stroke-dasharray: 1;
  animation: unspool 1.1s ease-out;
}
@keyframes unspool {
  from {
    stroke-dashoffset: 1;
  }
}
.snip {
  animation: snip 0.5s ease-out;
}
@keyframes snip {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
}
.scanner,
.protein,
.codons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scanner {
  gap: 15px;
  padding: 12px;
  border: 1px solid #64816b;
  border-radius: 5px;
  background: #1b3229;
}
.scanner small,
.cover {
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: #a8c2ac;
}
.scanner strong {
  display: block;
  font:
    18px Georgia,
    serif;
}
.lamp {
  width: 32px;
  height: 32px;
  border: 4px solid #5d7767;
  border-radius: 50%;
}
.cover {
  border-top: 1px solid #36523c;
  padding-top: 6px;
  letter-spacing: 0;
}
.triplet {
  border: 1px solid #6b8772;
  padding: 3px;
  border-radius: 4px;
}
.triplet:disabled {
  opacity: 1;
  border-color: transparent;
}
.protein {
  margin: 10px 0;
  gap: 0;
}
.protein b {
  font: 13px var(--mono);
  border-radius: 50%;
  background: #c7accc;
  color: #261b2a;
  padding: 10px 7px;
}
.protein i {
  background: #9fa784;
  height: 3px;
  width: 12px;
}
.protein small {
  font: 10px var(--mono);
  margin-left: 8px;
}
.lab .scene #pin {
  display: none;
}
.lab .spec {
  z-index: 1;
}
.lab .scene > canvas {
  pointer-events: none;
}
.lab .scene {
  z-index: 2;
}
.lab article {
  z-index: 1;
}
.lab #labPanel {
  z-index: 2;
}
.codons {
  gap: 4px;
}
.lab .orbit-ring {
  opacity: 0.35;
}
@media (prefers-reduced-motion: reduce) {
  .dust i,
  .spool,
  .snip {
    animation: none;
  }
}
@media (max-width: 680px) {
  .labdiagram {
    height: 105px;
  }
  .lab .message {
    margin: 4px 0;
  }
  .lab .spec {
    top: 6px;
  }
  .lab #labPanel {
    top: 20px;
  }
  .codons {
    gap: 2px;
  }
  .lab .instrument {
    max-width: 420px;
  }
  .lab .scene {
    height: auto;
    min-height: 0;
  }
  .lab #labPanel {
    position: relative;
    inset: auto;
    padding: 25px 4% 5px;
  }
}
@media (min-width: 681px) {
  article {
    width: 49%;
    padding-bottom: 45px;
  }
  h1 {
    font-size: clamp(45px, 5.65vw, 102px);
  }
  .fig {
    bottom: 13px;
  }
}
@media (min-width: 681px) and (max-height: 700px) {
  header {
    height: 59px;
  }
  .plate {
    height: 64vh;
    min-height: 380px;
  }
  h1 {
    margin-top: 15px;
    font-size: clamp(41px, 5.4vw, 76px);
  }
  article p {
    margin: 13px 0 16px;
  }
  .map {
    padding-top: 13px;
  }
  .maphead {
    margin-bottom: 8px;
  }
  .step {
    min-height: 73px;
  }
}
.scene #pin {
  transform: translate(-7px, -50%);
}
.scene .tools {
  z-index: 3;
}
nav button {
  white-space: nowrap;
}
@media (max-width: 400px) {
  header {
    gap: 4px;
    padding: 0 9px;
  }
  nav button {
    padding: 5px 7px;
  }
}
.depth {
  display: flex;
  gap: 3px;
  margin: 5px 0;
}
.depth span {
  flex: 1;
  text-align: center;
  padding: 2px;
  background: #46634b;
  color: #edf3db;
}
.depth [data-n="0"] {
  background: #19261e;
  color: #d3c09e;
}
.depth [data-n="2"] {
  background: #b6d6ac;
  color: #203222;
}
