.lab-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(39, 79, 129, 0.3), transparent 42rem),
    #070d19;
  color: #e8f0fa;
}

.lab-page::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 17% 26%, rgba(218, 233, 255, 0.62), transparent 100%),
    radial-gradient(1px 1px at 71% 62%, rgba(218, 233, 255, 0.5), transparent 100%),
    radial-gradient(1px 1px at 48% 13%, rgba(218, 233, 255, 0.48), transparent 100%);
  background-size: 280px 280px, 370px 370px, 420px 420px;
  content: "";
  pointer-events: none;
}

.lab-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(183, 208, 240, 0.09);
  background: rgba(5, 10, 20, 0.68);
  backdrop-filter: blur(16px);
}

.lab-nav {
  display: flex;
  width: min(1320px, calc(100% - 2.5rem));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
}

.lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #f0f6ff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.lab-brand-mark {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid rgba(140, 208, 255, 0.5);
  border-radius: 50%;
  color: #a6e2ff;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
}

.lab-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.lab-nav nav a {
  color: #a8b9d0;
  font-size: 0.8rem;
  text-decoration: none;
}

.lab-nav nav a:hover,
.lab-nav nav a[aria-current="page"] {
  color: #a4e1ff;
}

.lab-layout {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.3rem 0 1.6rem;
}

.lab-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.lab-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  color: #9bdcff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.lab-eyebrow > span {
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.lab-intro h1 {
  margin: 0;
  color: #f0f6ff;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.lab-intro h1 em {
  color: #9bdbf5;
  font-style: normal;
  font-weight: 500;
}

.lab-lead {
  max-width: 690px;
  margin: 0.7rem 0 0;
  color: #a8b9d0;
  font-size: 0.89rem;
  line-height: 1.7;
}

.lab-reset {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(185, 209, 239, 0.15);
  border-radius: 8px;
  background: rgba(11, 20, 36, 0.72);
  color: #b6c8dd;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.lab-reset:hover {
  border-color: rgba(156, 218, 255, 0.45);
  color: #ecf7ff;
}

.lab-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  overflow: hidden;
  border: 1px solid rgba(164, 195, 231, 0.15);
  border-radius: 14px;
  background: rgba(9, 17, 31, 0.91);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.lab-view {
  min-width: 0;
  padding: 0.85rem;
}

.lab-view-top,
.lab-view-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #71849e;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.lab-view-top {
  min-height: 1.7rem;
  padding: 0 0.25rem 0.65rem;
}

.lab-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #a9d8ca;
}

.lab-live i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #6bd3a7;
  box-shadow: 0 0 9px rgba(107, 211, 167, 0.75);
}

.lab-coordinate {
  color: #9eacc0;
  text-align: right;
}

.lab-earth-stage {
  position: relative;
  min-height: 410px;
  height: min(49vw, 530px);
  overflow: hidden;
  border: 1px solid rgba(137, 178, 224, 0.11);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(26, 57, 88, 0.3), transparent 54%),
    radial-gradient(ellipse at 50% 100%, rgba(12, 24, 43, 0.9), transparent 65%),
    #080f1e;
  cursor: crosshair;
  touch-action: none;
}

.lab-earth-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

.lab-earth-stage canvas:focus-visible {
  outline: 2px solid rgba(134, 211, 255, 0.8);
  outline-offset: -3px;
}

.lab-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(177, 216, 255, 0.18);
  border-radius: 50%;
  color: rgba(196, 222, 250, 0.52);
  font-size: 1.15rem;
  font-weight: 300;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.lab-target {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid rgba(163, 228, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(74, 191, 255, 0.42);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.lab-target::before,
.lab-target::after {
  position: absolute;
  background: #b4eaff;
  content: "";
}

.lab-target::before {
  width: 2.4rem;
  height: 1px;
}

.lab-target::after {
  width: 1px;
  height: 2.4rem;
}

.lab-target span {
  z-index: 1;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #e5f8ff;
  box-shadow: 0 0 7px #61caff;
}

.lab-target[hidden] {
  display: none;
}

.lab-cutaway[hidden] {
  display: none;
}

.lab-cutaway {
  position: absolute;
  z-index: 3;
  top: 0.55rem;
  right: 0.65rem;
  width: min(250px, calc(100% - 1rem));
  padding: 0.58rem;
  border: 1px solid rgba(170, 203, 237, 0.2);
  border-radius: 9px;
  background: rgba(7, 15, 29, 0.88);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.lab-cutaway-heading {
  display: grid;
  gap: 0.16rem;
  margin-bottom: 0.42rem;
}

.lab-cutaway-heading > span {
  color: #8cb8d6;
  font-size: 0.5rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.lab-cutaway-heading > strong {
  color: #e4edf8;
  font-size: 0.74rem;
  font-weight: 650;
}

.lab-cutaway-content {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.lab-cutaway-diagram {
  width: 66px;
  aspect-ratio: 1;
  border: 1px solid rgba(236, 182, 127, 0.7);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffe3a0 0 12%,
    #df704d 12.5% 25%,
    #b95d47 25.5% 43%,
    #dd8d5b 43.5% 70%,
    #dcaa70 70.5% 92%,
    #7fd5e7 93% 100%
  );
  box-shadow: 0 0 22px rgba(239, 135, 82, 0.22);
}

.lab-layer-list {
  display: grid;
  gap: 0.27rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-layer-list li {
  display: grid;
  grid-template-columns: 0.42rem minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
}

.lab-layer-list li > i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
}

.lab-layer-list li > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.lab-layer-list strong {
  color: #dce7f3;
  font-size: 0.53rem;
  font-weight: 620;
}

.lab-layer-list small {
  color: #98aabd;
  font-size: 0.44rem;
  text-align: right;
}

.lab-layer-crust { background: #7fd5e7; }
.lab-layer-upper { background: #dcaa70; }
.lab-layer-lower { background: #dd8d5b; }
.lab-layer-outer { background: #b95d47; }
.lab-layer-inner { background: #ffe3a0; }

.lab-scan-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 203, 255, 0.22), transparent);
  animation: lab-scan 9s linear infinite;
  pointer-events: none;
}

@keyframes lab-scan {
  from { transform: translateY(0); }
  to { transform: translateY(530px); }
}

.lab-toast {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  max-width: calc(100% - 2rem);
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(184, 209, 240, 0.15);
  border-radius: 999px;
  background: rgba(6, 14, 27, 0.78);
  color: #c4d6eb;
  font-size: 0.69rem;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.28s ease;
}

.lab-toast.is-dismissed {
  opacity: 0;
}

.lab-view-bottom {
  position: absolute;
  right: 0.8rem;
  bottom: 0.7rem;
  left: 0.8rem;
  color: rgba(161, 180, 205, 0.64);
  font-size: 0.56rem;
}

.lab-view-bottom b {
  color: #9cdfff;
  font-weight: 500;
}

.lab-instrument-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(100px, 0.75fr) minmax(125px, 0.8fr);
  gap: 0.7rem;
  margin-top: 0.75rem;
}

.lab-meter,
.lab-stat {
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(164, 195, 231, 0.1);
  border-radius: 8px;
  background: rgba(15, 26, 43, 0.74);
}

.lab-meter-heading,
.lab-meter-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #7f92ab;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.lab-meter-heading strong {
  color: #9fdbc4;
  font-size: 0.56rem;
}

.lab-meter-track,
.lab-energy-track,
.lab-mission-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(175, 197, 226, 0.12);
}

.lab-meter-track {
  margin-top: 0.65rem;
}

.lab-meter-track span,
.lab-energy-track span,
.lab-mission-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #73cfad;
  transition: width 0.35s ease, background-color 0.35s ease;
}

.lab-meter-scale {
  margin-top: 0.35rem;
  font-size: 0.53rem;
  font-weight: 500;
}

.lab-stat > span {
  display: block;
  color: #7f92ab;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lab-stat > strong {
  display: block;
  margin-top: 0.18rem;
  color: #ecf5ff;
  font-size: 1.05rem;
  line-height: 1.2;
}

.lab-stat > strong small,
.lab-stat > small {
  color: #8193a9;
  font-size: 0.62rem;
  font-weight: 500;
}

.lab-energy-track {
  margin-top: 0.45rem;
}

.lab-energy-track span {
  background: #88cced;
}

.lab-score-stat > small {
  display: block;
  margin-top: 0.17rem;
}

.lab-console {
  padding: 1.2rem;
  border-left: 1px solid rgba(164, 195, 231, 0.12);
  background: rgba(12, 21, 37, 0.88);
}

.lab-console-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.lab-console-heading .lab-eyebrow {
  margin-bottom: 0.28rem;
  font-size: 0.59rem;
}

.lab-console-heading h2 {
  margin: 0;
  color: #f0f6ff;
  font-size: 1.13rem;
  letter-spacing: -0.03em;
}

.lab-console-id {
  padding: 0.28rem 0.4rem;
  border: 1px solid rgba(156, 187, 224, 0.16);
  border-radius: 4px;
  color: #7789a2;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.lab-tool-list {
  display: grid;
  gap: 0.45rem;
}

.lab-tool {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid rgba(167, 195, 229, 0.12);
  border-radius: 8px;
  background: rgba(17, 29, 48, 0.76);
  color: #e8f1fa;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.lab-tool:hover {
  border-color: rgba(155, 213, 250, 0.32);
  background: rgba(23, 39, 62, 0.9);
}

.lab-tool.is-selected {
  border-color: rgba(134, 210, 250, 0.55);
  background: rgba(34, 64, 91, 0.58);
  box-shadow: inset 2px 0 #8edcff;
}

.lab-tool:focus-visible,
.lab-fire-button:focus-visible,
.lab-secondary-actions button:focus-visible,
.lab-reset:focus-visible {
  outline: 2px solid #8edcff;
  outline-offset: 2px;
}

.lab-tool-icon {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-family: Georgia, serif;
  font-size: 1.28rem;
}

.lab-icon-pulse { color: #86d4f3; }
.lab-icon-meteor { color: #e8a776; }
.lab-icon-flare { color: #e4c379; }
.lab-icon-laser { color: #ff8ba5; }
.lab-icon-barrage { color: #ffb17f; }
.lab-icon-gravity { color: #c4a5ff; }

.lab-tool-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.lab-tool-copy strong {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-tool-copy small {
  color: #8f9fb4;
  font-size: 0.62rem;
}

.lab-tool-cost {
  color: #c0d1e4;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.lab-tool-cost i {
  color: #8295ac;
  font-size: 0.52rem;
  font-style: normal;
}

.lab-tool-detail {
  min-height: 3.2rem;
  padding: 0.75rem 0.2rem 0.6rem;
}

.lab-tool-detail > span {
  color: #8397af;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lab-tool-detail p {
  margin: 0.16rem 0 0;
  color: #a9b9ce;
  font-size: 0.67rem;
  line-height: 1.5;
}

.lab-fire-button {
  display: flex;
  width: 100%;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(114, 199, 241, 0.38);
  border-radius: 7px;
  background: linear-gradient(100deg, #175278, #244675);
  color: #effaff;
  font: inherit;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.lab-fire-button:hover:not(:disabled) {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.lab-fire-button:disabled {
  border-color: rgba(139, 164, 195, 0.14);
  background: rgba(31, 44, 63, 0.66);
  color: #74869f;
  cursor: not-allowed;
}

.lab-fire-button > span:first-child {
  font-size: 1.1rem;
}

.lab-fire-button > span:nth-child(2) {
  flex: 1;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
}

.lab-fire-button kbd {
  padding: 0.15rem 0.28rem;
  border: 1px solid rgba(230, 242, 255, 0.19);
  border-radius: 3px;
  color: #afc1d6;
  font: inherit;
  font-size: 0.52rem;
}

.lab-split-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(229, 151, 110, 0.35);
  border-radius: 6px;
  background: linear-gradient(105deg, rgba(91, 45, 42, 0.62), rgba(58, 39, 53, 0.72));
  color: #f0d0bc;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.lab-split-button:hover:not(:disabled) {
  border-color: rgba(244, 172, 126, 0.68);
  background-color: rgba(112, 61, 51, 0.72);
}

.lab-split-button:focus-visible {
  outline: 2px solid #f0b488;
  outline-offset: 2px;
}

.lab-split-button:disabled {
  opacity: 0.62;
  cursor: default;
}

.lab-split-button > span:first-child {
  color: #ffb17f;
  font-size: 1.05rem;
}

.lab-split-button > span:last-child {
  display: grid;
  gap: 0.12rem;
}

.lab-split-button strong {
  font-size: 0.64rem;
  font-weight: 700;
}

.lab-split-button small {
  color: #c49b8b;
  font-size: 0.53rem;
}

.lab-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.lab-secondary-actions button {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.55rem 0.48rem;
  border: 1px solid rgba(160, 192, 226, 0.13);
  border-radius: 6px;
  background: rgba(16, 29, 47, 0.8);
  color: #a9c3da;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lab-secondary-actions button:hover {
  border-color: rgba(159, 207, 242, 0.35);
}

.lab-secondary-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lab-secondary-actions button > span:first-child {
  color: #a0d8c1;
  font-size: 0.88rem;
}

.lab-secondary-actions button:last-child > span:first-child {
  color: #94caff;
}

.lab-secondary-actions button > span:last-child {
  display: grid;
  gap: 0.12rem;
}

.lab-secondary-actions strong {
  font-size: 0.61rem;
}

.lab-secondary-actions small {
  color: #8699b0;
  font-size: 0.51rem;
  line-height: 1.4;
}

.lab-mission {
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(166, 193, 225, 0.12);
  border-radius: 8px;
  background: rgba(14, 25, 42, 0.78);
}

.lab-mission-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #8fd6f7;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lab-mission-top span:last-child {
  color: #8ca0b8;
}

.lab-mission h3 {
  margin: 0.55rem 0 0.15rem;
  font-size: 0.84rem;
}

.lab-mission > p {
  margin: 0;
  color: #97a9bf;
  font-size: 0.63rem;
  line-height: 1.5;
}

.lab-objectives {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0;
}

.lab-objectives span {
  color: #788ca5;
  font-size: 0.62rem;
}

.lab-objectives b {
  color: #acbdd1;
  font-weight: 500;
}

.lab-objectives .is-complete {
  color: #74d1a6;
}

.lab-objectives .is-complete b {
  color: #b4dfcb;
}

.lab-mission-progress span {
  background: #80d6b3;
}

.lab-console-note {
  margin: 0.65rem 0 0;
  color: #70829a;
  font-size: 0.58rem;
  line-height: 1.55;
}

.lab-log-section {
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(164, 195, 231, 0.12);
  border-radius: 10px;
  background: rgba(9, 17, 31, 0.72);
}

.lab-log-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.lab-log-heading .lab-eyebrow {
  margin-bottom: 0.25rem;
  font-size: 0.56rem;
}

.lab-log-heading h2 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.lab-log-heading > span {
  color: #788ca5;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.lab-log {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.lab-log li {
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border-left: 2px solid #5997b7;
  background: rgba(19, 33, 52, 0.62);
  color: #aabbd0;
  font-size: 0.63rem;
  line-height: 1.5;
}

.lab-log li small {
  display: block;
  margin-bottom: 0.2rem;
  color: #839ab2;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.lab-log .lab-log-empty {
  grid-column: 1 / -1;
  border-left-color: #586a80;
  color: #899ab0;
}

.lab-footnote {
  margin: 0.8rem 0 0;
  color: #71839a;
  font-size: 0.62rem;
  text-align: center;
}

@media (max-width: 1000px) {
  .lab-game {
    grid-template-columns: minmax(0, 1fr) 315px;
  }

  .lab-console {
    padding: 1rem;
  }

  .lab-earth-stage {
    height: 55vw;
  }
}

@media (max-width: 760px) {
  .lab-game {
    grid-template-columns: 1fr;
  }

  .lab-console {
    border-top: 1px solid rgba(164, 195, 231, 0.12);
    border-left: 0;
  }

  .lab-earth-stage {
    min-height: 330px;
    height: min(74vw, 460px);
  }

  .lab-console-note {
    font-size: 0.65rem;
  }
}

@media (max-width: 540px) {
  .lab-nav,
  .lab-layout {
    width: calc(100% - 1.2rem);
  }

  .lab-nav {
    min-height: 60px;
  }

  .lab-nav nav {
    gap: 0.75rem;
  }

  .lab-nav nav a {
    font-size: 0.67rem;
  }

  .lab-layout {
    padding-top: 1.5rem;
  }

  .lab-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .lab-lead {
    font-size: 0.82rem;
  }

  .lab-view {
    padding: 0.55rem;
  }

  .lab-earth-stage {
    min-height: 290px;
  }

  .lab-instrument-row {
    grid-template-columns: 1fr 1fr;
  }

  .lab-meter {
    grid-column: 1 / -1;
  }

  .lab-console {
    padding: 0.85rem;
  }

  .lab-tool {
    grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  }

  .lab-log {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-scan-line {
    animation: none;
    display: none;
  }

  .lab-tool,
  .lab-fire-button,
  .lab-split-button,
  .lab-reset,
  .game-home-link {
    transition: none;
  }
}
