:root {
  color-scheme: dark;
  --bg: #030303;
  --ink: #f4f1e8;
  --paper: #e7e0ce;
  --muted: #9b9b95;
  --faint: rgba(244, 241, 232, 0.1);
  --line: rgba(244, 241, 232, 0.18);
  --hard-line: rgba(244, 241, 232, 0.34);
  --red: #ff3737;
  --green: #39ff83;
  --blue: #3488ff;
  --panel: rgba(11, 11, 11, 0.86);
  --panel-solid: #0d0d0d;
  --warning: #ffd34d;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 14%, rgba(52, 136, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 18% 78%, rgba(57, 255, 131, 0.1), transparent 26rem),
    radial-gradient(circle at 18% 22%, rgba(255, 55, 55, 0.11), transparent 23rem),
    var(--bg);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.24));
  content: "";
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.pixel-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 92px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.78);
  backdrop-filter: blur(16px);
}

.rail-mark {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  border: 1px solid var(--hard-line);
  background: #050505;
  overflow: hidden;
}

.rail-mark::before {
  position: absolute;
  z-index: 0;
  top: 13px;
  left: 13px;
  width: 7px;
  height: 7px;
  background: var(--red);
  box-shadow: 15px 6px 0 var(--green), 7px 22px 0 var(--blue);
  content: "";
}

.rail-mark img {
  position: absolute;
  z-index: 1;
  inset: -1px;
  display: block;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
}

.rail-word {
  align-self: center;
  justify-self: center;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-orientation: mixed;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.rail-status {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.rail-status span {
  width: 10px;
  height: 10px;
  background: var(--green);
}

.rail-status span:nth-child(2) {
  background: var(--red);
}

.rail-status span:nth-child(3) {
  background: var(--blue);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  margin-left: 92px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 0 clamp(22px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.brandline {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brandline strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.brandline span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.command-button,
.hud-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--hard-line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.command-button:hover,
.hud-button:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 241, 232, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.command-button.primary {
  border-color: rgba(57, 255, 131, 0.72);
  color: #001306;
  background: var(--green);
  box-shadow: 0 0 34px rgba(57, 255, 131, 0.22);
}

.command-button.red {
  border-color: rgba(255, 55, 55, 0.72);
  color: #190202;
  background: var(--red);
}

.hero-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: stretch;
  min-height: calc(100vh - 78px);
  padding: clamp(34px, 5vw, 68px) clamp(22px, 5vw, 64px) 56px;
}

.signal {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.signal::before {
  width: 44px;
  height: 8px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--green) 33% 66%, var(--blue) 66%);
  content: "";
}

.headline {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: 6.3rem;
  line-height: 0.86;
  letter-spacing: 0;
}

.headline span {
  display: block;
}

.headline span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 1px var(--paper);
}

.intro {
  max-width: 670px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.22rem;
}

.intro strong {
  color: var(--ink);
}

.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 42px;
}

.metric {
  min-height: 118px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.metric b {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.instrument {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 610px;
  border: 1px solid var(--hard-line);
  background: rgba(4, 4, 4, 0.78);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.46);
}

.instrument-bar,
.instrument-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.instrument-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.leds {
  display: flex;
  gap: 7px;
}

.leds span {
  width: 8px;
  height: 8px;
  background: var(--red);
}

.leds span:nth-child(2) {
  background: var(--green);
}

.leds span:nth-child(3) {
  background: var(--blue);
}

.scope {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 241, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.045) 1px, transparent 1px),
    #010101;
  background-size: 24px 24px;
}

.scope::before {
  position: absolute;
  top: -72%;
  bottom: -72%;
  left: 0;
  width: 96%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.006) 22%,
      rgba(225, 230, 236, 0.035) 44%,
      rgba(255, 255, 255, 0.055) 50%,
      rgba(220, 225, 232, 0.03) 58%,
      rgba(255, 255, 255, 0.006) 78%,
      rgba(255, 255, 255, 0) 100%);
  animation: sweep 5.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  content: "";
  filter: blur(10px);
  opacity: 0.42;
  pointer-events: none;
  transform: translate3d(-150%, 0, 0) rotate(16deg);
  transform-origin: center;
}

.repair-target {
  position: absolute;
  width: 7px;
  height: 7px;
  z-index: 5;
  background: var(--red);
  box-shadow: 0 0 14px currentColor;
  color: var(--red);
  opacity: 0;
  transform: scale(0);
  transition: opacity 240ms ease, transform 240ms ease;
}

.repair-target.is-visible {
  opacity: 1;
  transform: scale(1);
}

.repair-target.is-cleared {
  opacity: 0;
  transform: scale(0);
}

.fixer-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 164px;
  height: 164px;
  border: 1px solid rgba(244, 241, 232, 0.42);
  background: #000;
  box-shadow: 0 0 52px rgba(244, 241, 232, 0.16);
  image-rendering: pixelated;
  opacity: 0;
  transform: translate(0, 0);
  transition: transform 860ms cubic-bezier(0.18, 0.84, 0.26, 1), opacity 420ms ease;
}

.scope.is-fixer-visible .fixer-canvas {
  opacity: 1;
}

.scope.is-resetting .fixer-canvas {
  opacity: 0;
}

.scope.is-positioning .fixer-canvas {
  transition: none;
}

.section {
  padding: 78px clamp(22px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.45fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: 3.4rem;
  line-height: 0.96;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
}

.protocol {
  border-top: 1px solid var(--hard-line);
}

.protocol-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 0.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 140px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.protocol-row b {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.protocol-row h3 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.protocol-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.fault-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hard-line);
  border-left: 1px solid var(--hard-line);
}

.fault-cell {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--hard-line);
  border-bottom: 1px solid var(--hard-line);
  background: rgba(0, 0, 0, 0.28);
}

.fault-cell h3 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.fault-cell p {
  color: var(--muted);
}

.fault-swatch {
  width: 100%;
  height: 92px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  background: #000;
}

.fault-swatch.stuck {
  background:
    linear-gradient(var(--red), var(--red)) 48% 52% / 8px 8px no-repeat,
    linear-gradient(var(--green), var(--green)) 58% 38% / 8px 8px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 38% 42% / 8px 8px no-repeat,
    #000;
}

.fault-swatch.dead {
  background:
    linear-gradient(#000, #000) 50% 50% / 14px 14px no-repeat,
    linear-gradient(90deg, #d8d8d8, #f6f6f6);
}

.source-stack {
  display: grid;
  gap: 14px;
}

.source-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.source-row:last-child {
  border-bottom: 1px solid var(--line);
}

.source-row b {
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.source-row h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.source-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.source-row a {
  color: var(--ink);
  font-weight: 900;
}

.ad-zone {
  min-height: 250px;
  margin: 0 clamp(22px, 5vw, 64px) 70px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.46);
  overflow-x: auto;
  text-align: center;
}

.post-ad-cta {
  display: flex;
  justify-content: center;
  margin: -42px clamp(22px, 5vw, 64px) 78px;
}

.start-repair-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  min-width: min(100%, 360px);
  padding: 0 48px;
  border: 1px solid rgba(57, 255, 131, 0.82);
  color: #001306;
  background: var(--green);
  box-shadow: 0 0 44px rgba(57, 255, 131, 0.24);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.start-repair-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 62px rgba(57, 255, 131, 0.34);
}

.screen-page .ad-zone {
  margin: 44px 0 0;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 34px;
  padding: 42px clamp(22px, 5vw, 64px) 58px;
  border-top: 1px solid var(--line);
}

.footer h2,
.footer h3 {
  font-size: 1.08rem;
}

.footer p,
.footer li {
  color: var(--muted);
}

.footer a {
  color: var(--ink);
}

.footer ul {
  margin: 0;
  padding-left: 18px;
}

.screen-page,
.placeholder-page {
  padding: 60px clamp(22px, 5vw, 64px) 80px;
}

.route-head {
  max-width: 930px;
  margin-bottom: 44px;
}

.route-head h1,
.placeholder-panel h1 {
  margin-bottom: 22px;
  font-size: 5.4rem;
  line-height: 0.9;
}

.route-head p,
.placeholder-panel p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.18rem;
}

.route-list {
  display: grid;
  gap: 14px;
}

.route-option {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 174px;
  padding: 22px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.34);
  text-decoration: none;
}

.route-option:hover {
  border-color: var(--hard-line);
  background: rgba(255, 255, 255, 0.055);
}

.device-icon {
  position: relative;
  justify-self: center;
  border: 1px solid var(--hard-line);
  background: linear-gradient(145deg, #1a1a1a, #050505 58%, #141414);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 48px rgba(0, 0, 0, 0.34);
}

.device-screen {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.16);
  background:
    linear-gradient(rgba(244, 241, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.04) 1px, transparent 1px),
    #010101;
  background-size: 12px 12px;
}

.device-screen::before {
  position: absolute;
  top: 22%;
  left: 24%;
  width: 5px;
  height: 5px;
  background: var(--red);
  box-shadow:
    26px 17px 0 var(--green),
    54px 31px 0 var(--blue),
    72px 12px 0 var(--red);
  content: "";
}

.device-screen::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 34%);
  content: "";
  pointer-events: none;
}

.device-pc {
  width: 132px;
  height: 84px;
  border-radius: 5px 5px 3px 3px;
}

.device-laptop-base {
  position: absolute;
  left: 50%;
  bottom: -25px;
  width: 154px;
  height: 25px;
  background: rgba(244, 241, 232, 0.3);
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.device-laptop-base::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(145deg, #191919, #050505 62%, #111);
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
  content: "";
}

.device-laptop-base::after {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 7px;
  width: 38px;
  height: 8px;
  border: 1px solid rgba(244, 241, 232, 0.24);
  border-radius: 2px;
  background: rgba(244, 241, 232, 0.08);
  transform: translateX(-50%);
  content: "";
}

.device-pc .device-screen {
  inset: 8px 9px 11px;
  border-radius: 2px;
}

.device-phone {
  width: 62px;
  height: 118px;
  border-radius: 14px;
}

.device-phone::before {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(244, 241, 232, 0.28);
  transform: translateX(-50%);
  content: "";
}

.device-phone::after {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(244, 241, 232, 0.3);
  border-radius: 999px;
  transform: translateX(-50%);
  content: "";
}

.device-phone .device-screen {
  inset: 14px 7px 15px;
  border-radius: 7px;
}

.device-phone .device-screen::before {
  top: 16%;
  left: 24%;
  width: 4px;
  height: 4px;
  box-shadow:
    14px 24px 0 var(--green),
    25px 52px 0 var(--blue);
}

.device-tv {
  width: 152px;
  height: 84px;
  border-radius: 3px;
}

.device-tv::before {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 12px;
  height: 14px;
  border: 1px solid rgba(244, 241, 232, 0.24);
  border-top: 0;
  background: linear-gradient(145deg, #151515, #060606);
  transform: translateX(-50%);
  content: "";
}

.device-tv::after {
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 42px;
  height: 4px;
  border: 1px solid rgba(244, 241, 232, 0.26);
  border-radius: 999px;
  background: linear-gradient(145deg, #161616, #050505);
  transform: translateX(-50%);
  content: "";
}

.device-tv .device-screen {
  inset: 7px;
  border-radius: 2px;
}

.route-option h2 {
  margin-bottom: 8px;
  font-size: 1.72rem;
}

.route-option p {
  margin-bottom: 0;
  color: var(--muted);
}

.route-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(57, 255, 131, 0.72);
  color: #001306;
  background: var(--green);
  box-shadow: 0 0 24px rgba(57, 255, 131, 0.16);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.placeholder-panel {
  max-width: 900px;
  padding: 46px 0;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.instruction-list {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.instruction-list li::marker {
  color: var(--green);
  font-weight: 900;
}

.instruction-list a {
  color: var(--ink);
  font-weight: 900;
}

.instruction-list .instruction-address {
  display: block;
  margin: 20px 0 16px;
  color: var(--green);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.92;
  text-decoration: none;
}

.instruction-list .bonus-step {
  margin-top: 24px;
  font-weight: 900;
}

.instruction-list .bonus-step span {
  color: transparent;
  background: linear-gradient(90deg, var(--red), var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.instruction-list .bonus-step::marker {
  color: var(--warning);
}

.error-page {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.62fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(40px, 7vw, 92px) clamp(22px, 5vw, 64px);
}

.error-copy h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 10vw, 9.4rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.error-display {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 520px;
  border: 1px solid var(--hard-line);
  background: rgba(4, 4, 4, 0.82);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

.error-display-top,
.error-display-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-display-bottom {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.error-grid {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 408px;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 241, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.045) 1px, transparent 1px),
    #010101;
  background-size: 24px 24px;
}

.error-grid::before {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(244, 241, 232, 0.18);
  content: "";
}

.error-code {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(12px, 3vw, 26px);
  color: transparent;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 900;
  line-height: 0.85;
  -webkit-text-stroke: 1px rgba(244, 241, 232, 0.7);
}

.error-code span:nth-child(1) {
  text-shadow: 6px 0 0 rgba(255, 55, 55, 0.24);
}

.error-code span:nth-child(2) {
  text-shadow: -5px 0 0 rgba(57, 255, 131, 0.22);
}

.error-code span:nth-child(3) {
  text-shadow: 5px 0 0 rgba(52, 136, 255, 0.24);
}

.error-pixel,
.error-hole {
  position: absolute;
  width: 9px;
  height: 9px;
  z-index: 2;
}

.error-pixel.red {
  top: 25%;
  left: 24%;
  background: var(--red);
  box-shadow: 0 0 18px var(--red);
}

.error-pixel.green {
  right: 22%;
  bottom: 28%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.error-pixel.blue {
  right: 31%;
  top: 22%;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue);
}

.error-hole {
  left: 50%;
  bottom: 25%;
  border: 1px solid rgba(244, 241, 232, 0.82);
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 3px 3px no-repeat,
    linear-gradient(var(--green), var(--green)) 100% 0 / 3px 3px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 50% 100% / 3px 3px no-repeat,
    #000;
  transform: translateX(-50%);
}

.fix-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#fixScreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

#canvas {
  display: block;
  width: 256px;
  height: 256px;
}

#canvasFrame {
  position: absolute;
  z-index: 4;
  width: 276px;
  height: 276px;
  top: 100px;
  left: 100px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(244, 241, 232, 0.42);
  background: #111;
  box-shadow: 0 0 48px rgba(255, 255, 255, 0.14);
  cursor: move;
}

#dragTip {
  position: absolute;
  z-index: 6;
  top: 392px;
  left: 100px;
  width: 280px;
  padding: 16px 18px;
  border: 1px solid rgba(244, 241, 232, 0.24);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.88);
}

#sponsorFrameVertical {
  position: fixed;
  z-index: 2;
  min-width: 160px;
  min-height: 600px;
}

#sponsorFrameHorizontalWrapper {
  position: fixed;
  z-index: 2;
  right: 10px;
  text-align: center;
}

#sponsorFrameHorizontal {
  display: inline-block;
  width: 728px;
  height: 90px;
}

#backButtonWrapper {
  position: fixed;
  z-index: 5;
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.fix-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(244, 241, 232, 0.28);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.9);
  font-weight: 900;
  text-decoration: none;
}

.fix-control:hover {
  border-color: rgba(244, 241, 232, 0.52);
}

.moveLeft {
  left: 8px;
}

.moveRight {
  right: 8px;
}

.moveTop {
  top: 8px;
}

.moveBottom {
  bottom: 8px;
}

.offscreen {
  left: -1000px;
  top: -1000px;
}

@keyframes tileShift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 32px 32px;
  }
}

@keyframes sweep {
  from {
    transform: translate3d(-150%, 0, 0) rotate(16deg);
  }

  to {
    transform: translate3d(230%, 0, 0) rotate(16deg);
  }
}

@media (max-width: 1060px) {
  .hero-lab {
    grid-template-columns: 1fr;
  }

  .error-page {
    grid-template-columns: 1fr;
  }

  .headline,
  .route-head h1,
  .placeholder-panel h1 {
    font-size: 4.2rem;
  }

  .instrument {
    min-height: 520px;
  }

  .scope {
    min-height: 420px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title,
  .footer,
  .fault-grid {
    grid-template-columns: 1fr;
  }

  .protocol-row {
    grid-template-columns: 110px 1fr;
  }

  .protocol-row p {
    grid-column: 2;
  }

  .source-row,
  .route-option {
    grid-template-columns: 1fr;
  }

  .source-row a,
  .route-arrow {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-rail {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-mark {
    width: 44px;
    height: 44px;
  }

  .rail-mark::before {
    top: 10px;
    left: 10px;
  }

  .rail-word {
    writing-mode: horizontal-tb;
    text-orientation: initial;
  }

  .rail-status {
    display: flex;
  }

  .page {
    margin-left: 0;
  }

  .topbar {
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .topbar .brandline {
    display: none;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .headline,
  .route-head h1,
  .placeholder-panel h1,
  .error-copy h1 {
    font-size: 3.1rem;
  }

  .error-page {
    min-height: auto;
  }

  .error-display {
    min-height: 420px;
  }

  .intro,
  .route-head p,
  .placeholder-panel p {
    font-size: 1.04rem;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2.45rem;
  }

  .protocol-row {
    grid-template-columns: 1fr;
  }

  .protocol-row p {
    grid-column: auto;
  }

  .instrument {
    min-height: 440px;
  }

  .scope {
    min-height: 340px;
  }

  .fixer-canvas {
    width: 116px;
    height: 116px;
  }
}
