/* CTF Toys — styles. Class names say what an element is (.prep, .gear1, .shutter, .dial-face); the HTML hierarchy carries the rest. */
html,body{margin:0;background:#070914;color:#e8ecff;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box;font-variant-ligatures:none!important}
a{color:#e7e5e0;text-decoration:none}
a:hover{color:oklch(0.75 0.22 345)}
textarea:focus{outline:none}
::selection{background:oklch(0.75 0.22 345 / .35)}
#app:not(.ready) { visibility: hidden; }

.root {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Chakra Petch',system-ui,sans-serif;
  background: linear-gradient(rgba(120,150,255,.05) 1px,transparent 1px) 0 0/36px 36px,linear-gradient(90deg,rgba(120,150,255,.05) 1px,transparent 1px) 0 0/36px 36px,radial-gradient(ellipse 90% 60% at 50% 48%,#1a2048 0%,#070914 70%);
}

.tube {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.tube text {
  filter: drop-shadow(0 0 5px #ff4fc0);
}


















.tube circle {
  filter: drop-shadow(0 0 6px #ff4fc0);
}






.masthead {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1px;
  font: 800 26px/1 'JetBrains Mono',monospace;
  letter-spacing: -.01em;
}

.logo span {
  color: #e8ecff;
}

.logo .brace {
  color: #ff4fc0;
}

.logo svg {
  margin: 0 1px;
  flex: none;
}

.masthead h1 {
  margin: 0;
  font: 600 clamp(16px,1.8vw,22px)/1.2 'Chakra Petch',sans-serif;
  color: #c8d4ff;
  text-wrap: balance;
}

.panel {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 34px;
}

.nozzle {
  position: relative;
  border-radius: 24px;
  padding: 16px 18px;
  background: radial-gradient(ellipse at 30% 0%,rgba(140,200,255,.16),transparent 60%),linear-gradient(180deg,#252c4a 0%,#1a1f38 55%,#12162a 100%);
  box-shadow: inset 0 1px 0 rgba(180,220,255,.35),inset 0 0 0 2px rgba(90,110,200,.25),inset 0 -4px 10px rgba(0,0,10,.5),0 30px 50px -10px rgba(0,0,0,.85),0 0 0 1px #070914,0 0 0 1px oklch(0.85 0.15 195 / .3),0 0 40px oklch(0.85 0.15 195 / .1);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
}

.h-intake {
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px oklch(0.75 0.22 345 / .6),0 0 50px oklch(0.75 0.22 345 / .3);
}

.bolt-tl {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#4a5590 55%,#1a1f38);
  box-shadow: 0 1px 1px rgba(0,0,0,.8);
}

.bolt-tr {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#4a5590 55%,#1a1f38);
  box-shadow: 0 1px 1px rgba(0,0,0,.8);
}

.bolt-bl {
  position: absolute;
  left: 9px;
  bottom: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#4a5590 55%,#1a1f38);
  box-shadow: 0 1px 1px rgba(0,0,0,.8);
}

.bolt-br {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#4a5590 55%,#1a1f38);
  box-shadow: 0 1px 1px rgba(0,0,0,.8);
}

.input-col {
  flex: 1 1 300px;
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.loader-bar {
  padding-left: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  font: 600 10px/1 'JetBrains Mono',monospace;
  letter-spacing: .16em;
  color: #9fb3ff;
  text-shadow: 0 0 8px rgba(120,150,255,.4);
}

.loader-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.loader-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mode-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #05071a;
  box-shadow: inset 0 1px 3px #000,0 1px 0 rgba(180,220,255,.12);
}

.mode-btn {
  padding: 6px 11px;
  border: 0;
  border-radius: 6px;
  font: 700 10px/1 'JetBrains Mono',monospace;
  letter-spacing: .14em;
  text-shadow: none;
}

.size-read {
  display: flex;
  align-items: center;
  gap: 8px;
}

.size-value {
  padding: 4px 7px;
  border-radius: 4px;
  background: #05071a;
  color: oklch(0.85 0.15 195);
  text-shadow: 0 0 6px oklch(0.85 0.15 195 / .8);
  box-shadow: inset 0 1px 3px #000;
  white-space: nowrap;
}

.crt-box {
  position: relative;
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(180deg,#0b0e1e,#1a1f38);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8),0 1px 0 rgba(180,220,255,.15);
}

.crt {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 104px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 40%,#0a1a26,#03060c);
  color: #a8fff0;
  text-shadow: 0 0 6px rgba(80,240,220,.55);
  font: 400 13px/1.6 'JetBrains Mono',monospace;
  box-shadow: inset 0 0 30px rgba(0,0,0,.9),inset 0 0 0 1px rgba(122,240,255,.15);
}

.crt-2 {
  min-height: 104px;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  background: radial-gradient(ellipse at 50% 40%,#0a1a26,#03060c);
  font-family: 'JetBrains Mono',monospace;
  color: #a8fff0;
  text-shadow: 0 0 6px rgba(80,240,220,.55);
}

.file-icon {
  flex: none;
  width: 56px;
  height: 70px;
  border-radius: 6px 16px 6px 6px;
  border: 2px dashed rgba(168,255,240,.5);
  display: grid;
  place-items: center;
  font: 700 10px/1 'JetBrains Mono',monospace;
  letter-spacing: .08em;
}

.file-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.file-title {
  font-size: 14px;
  font-weight: 600;
}

.file-sub {
  font-size: 11.5px;
  opacity: .75;
}

.file-hex {
  font-size: 10.5px;
  opacity: .5;
  word-break: break-all;
}

.file-hint {
  font-size: 10.5px;
  opacity: .65;
  font-style: italic;
}

.file-in {
  display: none;
}

.scanlines {
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,rgba(0,0,0,.22) 0 1px,transparent 1px 3px),linear-gradient(160deg,rgba(255,255,255,.07),transparent 35%);
}

.piston-well {
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
}

.piston {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 100%;
  transform: translateY(-100%);
}

.piston-rod {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 22px;
  height: 400px;
  margin-left: -11px;
  background: linear-gradient(90deg,#151a30,#4a5590 30%,#b8c6ff 42%,#3a4478 70%,#11152a);
}

.piston-head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg,#b8c6ff,#4a5590 50%,#1a1f38);
  box-shadow: 0 4px 10px rgba(0,0,0,.7),0 0 16px oklch(0.75 0.22 345 / .5);
}

.shutter {
  position: absolute;
  inset: 0;
  transform: translateY(-102%);
  background: linear-gradient(160deg,rgba(190,235,255,.22),rgba(120,200,255,.07) 38%,rgba(255,255,255,.16) 52%,rgba(120,200,255,.05) 66%),rgba(10,20,40,.1);
  box-shadow: inset 0 0 0 1px rgba(170,230,255,.35),inset 0 -6px 0 #3a4478,inset 0 -8px 0 #0b0e1e;
}

.status-col {
  padding-left: 8px;
  display: grid;
  gap: 10px;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.phase-line {
  flex: 1;
  min-width: 0;
  font: 400 11.5px/1.4 'JetBrains Mono',monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-btn {
  flex: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #2f3866;
  border-radius: 7px;
  background: transparent;
  color: #9fb3ff;
  font: 700 10px/1 'JetBrains Mono',monospace;
  letter-spacing: .16em;
}

.panel-btn:hover {
  border-color: #7af0ff;
  color: #e8ecff;
}

.caret {
  display: inline-block;
  transition: transform .2s;
}

.set-count {
  padding: 2px 6px;
  border-radius: 4px;
  background: oklch(0.75 0.22 345);
  color: #fff;
  letter-spacing: .06em;
}

.settings-box {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #05071a;
  box-shadow: inset 0 2px 6px #000,0 1px 0 rgba(180,220,255,.1);
}

.setting {
  display: grid;
  grid-template-columns: minmax(0,130px) minmax(0,1fr);
  gap: 8px 14px;
  align-items: start;
}

.setting-name {
  display: grid;
  gap: 4px;
  padding-top: 6px;
}

.setting-label {
  font: 700 10px/1.2 'JetBrains Mono',monospace;
  letter-spacing: .14em;
  color: #c8d4ff;
}

.setting-hint {
  font: 400 10.5px/1.4 'JetBrains Mono',monospace;
  color: #7f8bc0;
}

.setting-value {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.choice-btn {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font: 600 11px/1 'JetBrains Mono',monospace;
  white-space: nowrap;
}

.text-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  background: #0b0e1e;
}

.affix {
  font: 600 12px/1 'JetBrains Mono',monospace;
  color: #7f8bc0;
}

.text-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  color: #a8fff0;
  font: 500 12px/1 'JetBrains Mono',monospace;
}

.setting-note {
  font: 400 10.5px/1.4 'JetBrains Mono',monospace;
}

.run-col {
  flex: none;
  align-self: flex-start;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-right: 6px;
}

.go-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
}

.go-btn:active {
  transform: scale(.96);
}

.dial-face {
  position: absolute;
  left: 0;
  top: 0;
  width: 230px;
  height: 230px;
  transform: scale(.5);
  transform-origin: 0 0;
}

.dial-index {
  position: absolute;
  left: 50%;
  top: -6px;
  width: 0;
  height: 0;
  margin-left: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  z-index: 2;
}

.dial-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(160deg,#c8d0ec,#5a628f 45%,#1a1f38);
  box-shadow: 0 12px 24px rgba(0,0,0,.7),inset 0 2px 0 rgba(255,255,255,.5);
}

.dial-well {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0b0e1e;
  box-shadow: inset 0 3px 8px #000;
}

.dial-rot {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
}

.dial-ticks-fine {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -.6deg,#c8d4ff 0 1.2deg,transparent 1.2deg 3.6deg);
  -webkit-mask: radial-gradient(closest-side,transparent 88%,#000 89% 97%,transparent 98%);
  mask: radial-gradient(closest-side,transparent 88%,#000 89% 97%,transparent 98%);
}

.dial-ticks {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1deg,#fff 0 2deg,transparent 2deg 36deg);
  -webkit-mask: radial-gradient(closest-side,transparent 82%,#000 83% 97%,transparent 98%);
  mask: radial-gradient(closest-side,transparent 82%,#000 83% 97%,transparent 98%);
}

.dial-num {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 12px;
  margin: -6px 0 0 -12px;
  text-align: center;
  font: 700 14px/1 'JetBrains Mono',monospace;
  color: #dfe5ff;
}

.dial-knurl {
  position: absolute;
  inset: 56px;
  border-radius: 50%;
  background: repeating-conic-gradient(#aab3d4 0 4deg,#454d7c 4deg 8deg);
  box-shadow: 0 8px 14px rgba(0,0,0,.75);
}

.dial-cap {
  position: absolute;
  inset: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 30%,#f4f6ff,#a3acd0 50%,#4a5280);
  box-shadow: inset 0 1px 0 #fff,inset 0 -3px 6px rgba(0,0,0,.35);
  font: 800 22px/1 'Chakra Petch',sans-serif;
  letter-spacing: .14em;
  padding-left: .14em;
}

.dial-word {
  display: block;
}

.key-socket {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,#03050f 0 15px,#2f3866 16px 19px,transparent 20px),radial-gradient(ellipse at 30% 20%,rgba(180,220,255,.35),transparent 60%),linear-gradient(160deg,#3a4478,#1a1f38 60%,#0b0e1e);
  box-shadow: inset 0 2px 0 rgba(180,220,255,.3),inset 0 -4px 10px rgba(0,0,0,.6),0 6px 14px rgba(0,0,0,.6),0 0 0 2px #070914;
}

.key-top {
  position: absolute;
  left: 50%;
  top: 13px;
  transform: translateX(-50%);
  font: 700 8px/1 'JetBrains Mono',monospace;
  letter-spacing: .2em;
  color: #7f8bc0;
}

.key-bottom {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font: 700 8px/1 'JetBrains Mono',monospace;
  letter-spacing: .2em;
  color: #7f8bc0;
}

.wkey {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.65));
}

.key-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 16px;
  margin: -8px 0 0 -35px;
  border-radius: 8px;
  background: linear-gradient(180deg,#ff9fdc,oklch(0.62 0.23 345) 55%,#5a0a3a);
  box-shadow: 0 0 0 2px #3a0624;
}

.key-wing-l {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 46px;
  height: 58px;
  margin-top: -29px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,#05071a 0 9px,transparent 10px),radial-gradient(ellipse at 35% 25%,#ffd0f0 0,oklch(0.72 0.23 345) 38%,#6e0c46 100%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.35),inset 0 2px 2px rgba(255,255,255,.35),0 0 0 2px #3a0624;
}

.key-wing-r {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 46px;
  height: 58px;
  margin-top: -29px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,#05071a 0 9px,transparent 10px),radial-gradient(ellipse at 35% 25%,#ffd0f0 0,oklch(0.72 0.23 345) 38%,#6e0c46 100%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.35),inset 0 2px 2px rgba(255,255,255,.35),0 0 0 2px #3a0624;
}

.key-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%,#d8fbff,#3ad0e8 45%,#0f4a5a);
  box-shadow: 0 0 0 2px #070914,0 0 14px oklch(0.82 0.13 200 / .6);
  color: #04121a;
  font: 800 10px/1 'Chakra Petch',sans-serif;
  letter-spacing: .04em;
}

.valve {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.7));
  background: radial-gradient(closest-side,transparent 0 30%,#7af0ff 31% 36%,transparent 37% 76%,#3ad0e8 77% 84%,#bff8ff 85% 87%,#0f4a5a 88% 100%),repeating-conic-gradient(#2aa8c0 0 8deg,transparent 8deg 60deg);
}

.valve-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 28%,#ffc2ec 0,oklch(0.70 0.24 345) 40%,#7a0f4e 100%);
  box-shadow: 0 4px 0 #3a0624,0 0 22px oklch(0.70 0.24 345 / .6);
  color: #fff;
  font: 700 13px/1 'Chakra Petch',sans-serif;
  letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.led-row {
  display: flex;
  gap: 8px;
}

.machine-row {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 6px 20px 16px;
  display: flex;
  flex-direction: column;
}

.wrap {
  flex: 1 1 0;
  min-height: max(340px,58vh);
  width: 100%;
  overflow: hidden;
}

.board {
  position: relative;
  margin: 0 auto;
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1320px;
  height: 620px;
  transform-origin: 0 0;
}

.pipes {
  position: absolute;
  left: 0;
  top: 0;
}

.leg-1 {
  position: absolute;
  left: 50px;
  top: 300px;
  width: 14px;
  height: 296px;
  background: linear-gradient(90deg,#0b0d1a,#3a4270 40%,#1a1f38 70%,#07080f);
}

.leg-2 {
  position: absolute;
  left: 170px;
  top: 300px;
  width: 14px;
  height: 296px;
  background: linear-gradient(90deg,#0b0d1a,#3a4270 40%,#1a1f38 70%,#07080f);
}

.leg-base {
  position: absolute;
  left: 850px;
  top: 450px;
  width: 70px;
  height: 146px;
  background: linear-gradient(90deg,#0b0d1a,#2a3060 30%,#4a5598 45%,#1a1f38 75%,#07080f);
  box-shadow: 0 0 0 1px #060607,inset 0 12px 14px -6px rgba(0,0,0,.8);
}

.leg-tall {
  position: absolute;
  left: 1290px;
  top: 160px;
  width: 12px;
  height: 436px;
  background: linear-gradient(90deg,#0b0d1a,#3a4270 40%,#1a1f38 70%,#07080f);
  box-shadow: 0 0 0 1px #060607;
}

.leg-3 {
  position: absolute;
  left: 470px;
  top: 310px;
  width: 14px;
  height: 286px;
  background: linear-gradient(90deg,#0b0d1a,#3a4270 40%,#1a1f38 70%,#07080f);
  box-shadow: 0 0 0 1px #060607;
}

.leg-4 {
  position: absolute;
  left: 600px;
  top: 310px;
  width: 14px;
  height: 286px;
  background: linear-gradient(90deg,#0b0d1a,#3a4270 40%,#1a1f38 70%,#07080f);
  box-shadow: 0 0 0 1px #060607;
}

.floor {
  position: absolute;
  left: 0;
  top: 596px;
  width: 1320px;
  height: 24px;
  background: linear-gradient(180deg,#4a5598 0,#232a48 3px,#141830 60%,#07080f);
  box-shadow: 0 -14px 30px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.12);
}

.shelf-1 {
  display: none;
  position: absolute;
  left: 0;
  top: 150px;
  width: 440px;
  height: 14px;
  background: linear-gradient(180deg,#4a5598 0,#232a48 3px,#141830 60%,#07080f);
  box-shadow: 0 6px 12px rgba(0,0,0,.6),inset 0 1px 0 rgba(180,220,255,.25);
}

.rivet-l {
  position: absolute;
  left: 8px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#4a5590 55%,#1a1f38);
}

.rivet-r {
  position: absolute;
  right: 8px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#4a5590 55%,#1a1f38);
}

.shelf-2 {
  display: none;
  position: absolute;
  left: 0;
  top: 455px;
  width: 440px;
  height: 14px;
  background: linear-gradient(180deg,#4a5598 0,#232a48 3px,#141830 60%,#07080f);
  box-shadow: 0 6px 12px rgba(0,0,0,.6),inset 0 1px 0 rgba(180,220,255,.25);
}

.shelf-3 {
  display: none;
  position: absolute;
  left: 0;
  top: 840px;
  width: 440px;
  height: 14px;
  background: linear-gradient(180deg,#4a5598 0,#232a48 3px,#141830 60%,#07080f);
  box-shadow: 0 6px 12px rgba(0,0,0,.6),inset 0 1px 0 rgba(180,220,255,.25);
}

.shelf-4 {
  display: none;
  position: absolute;
  left: 0;
  top: 1150px;
  width: 440px;
  height: 14px;
  background: linear-gradient(180deg,#4a5598 0,#232a48 3px,#141830 60%,#07080f);
  box-shadow: 0 6px 12px rgba(0,0,0,.6),inset 0 1px 0 rgba(180,220,255,.25);
}

.prep {
  position: absolute;
  left: 20px;
  top: 60px;
  width: 300px;
  height: 240px;
  border-radius: 20px;
  background: radial-gradient(ellipse at 30% 0%,rgba(140,200,255,.16),transparent 60%),linear-gradient(180deg,#252c4a 0%,#1a1f38 55%,#12162a 100%);
  box-shadow: inset 0 1px 0 rgba(180,220,255,.35),inset 0 0 0 2px rgba(90,110,200,.25),inset 0 -4px 10px rgba(0,0,10,.5),0 30px 50px -10px rgba(0,0,0,.85),0 0 0 1px #070914;
}

.h-prep {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px oklch(0.75 0.22 345 / .5),0 0 40px oklch(0.75 0.22 345 / .28);
}

.unit-head {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 500 10px/1 'JetBrains Mono',monospace;
  letter-spacing: .16em;
  color: #9fb3ff;
  text-shadow: 0 0 8px rgba(120,150,255,.4);
}

.unit-lamp {
  display: flex;
  align-items: center;
  gap: 6px;
}

.unit-state {
  font-size: 8px;
}

.gearbox {
  position: absolute;
  left: 142px;
  top: 40px;
  width: 146px;
  height: 186px;
  border-radius: 9px;
  background: radial-gradient(ellipse at 40% 40%,#141a34,#080a16);
  box-shadow: inset 0 4px 14px rgba(0,0,0,.9),inset 0 0 0 1px rgba(0,0,0,.6),0 1px 0 rgba(255,255,255,.06);
}

.gear1 {
  position: absolute;
  left: 5.1px;
  top: 88.2px;
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.85));
}

.gear-art {
  display: block;
}

.gear2 {
  position: absolute;
  left: 72.9px;
  top: 61.2px;
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.85));
}

.gear3 {
  position: absolute;
  left: 40.7px;
  top: 15.3px;
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.85));
}

.gear4 {
  position: absolute;
  left: 92.4px;
  top: 5.8px;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.85));
}

.lcd {
  position: absolute;
  left: 12px;
  top: 40px;
  width: 122px;
  height: 186px;
  border-radius: 7px;
  padding: 10px;
  background: #0a0518;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05),inset 0 4px 14px rgba(0,0,0,.95),0 0 0 3px #0b0e1e,0 0 0 4px #4a5598;
  font: 500 9px/1 'JetBrains Mono',monospace;
  letter-spacing: .08em;
  color: oklch(0.75 0.22 345 / .5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.lcd-row {
  display: flex;
  justify-content: space-between;
}

.lcd-value {
  color: oklch(0.88 0.15 345);
  text-shadow: 0 0 6px oklch(0.75 0.22 345 / .8);
}

.lcd-rule {
  height: 1px;
  background: oklch(0.75 0.22 345 / .15);
}

.lcd-stream {
  font: 400 9px/1.5 'JetBrains Mono',monospace;
  letter-spacing: 0;
  color: oklch(0.88 0.15 345 / .85);
  text-shadow: 0 0 5px oklch(0.75 0.22 345 / .5);
  word-break: break-all;
  flex: 1;
  overflow: hidden;
}

.lcd-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,rgba(0,0,0,.25) 0 1px,transparent 1px 3px);
  pointer-events: none;
}

.identify {
  position: absolute;
  left: 350px;
  top: 60px;
  width: 400px;
  height: 250px;
  border-radius: 20px;
  background: radial-gradient(ellipse at 30% 0%,rgba(140,200,255,.16),transparent 60%),linear-gradient(180deg,#252c4a 0%,#1a1f38 55%,#12162a 100%);
  box-shadow: inset 0 1px 0 rgba(180,220,255,.35),inset 0 0 0 2px rgba(90,110,200,.25),inset 0 -4px 10px rgba(0,0,10,.5),0 30px 50px -10px rgba(0,0,0,.85),0 0 0 1px #070914;
}

.h-identify {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px oklch(0.82 0.13 200 / .5),0 0 40px oklch(0.82 0.13 200 / .25);
}

.token-screen {
  position: absolute;
  left: 14px;
  top: 40px;
  width: 372px;
  height: 156px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(rgba(79,211,228,.04) 1px,transparent 1px) 0 0/100% 12px,linear-gradient(90deg,rgba(79,211,228,.04) 1px,transparent 1px) 0 0/12px 100%,#05071a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05),inset 0 4px 16px rgba(0,0,0,.95),0 0 0 3px #0b0e1e,0 0 0 4px #4a5598;
}

.token-list {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
  font: 500 9.5px/1.3 'JetBrains Mono',monospace;
}

.token {
  padding: 2px 5px;
  border-radius: 3px;
}

.laser {
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  height: 2px;
  opacity: 0;
  background: oklch(0.86 0.12 200);
  box-shadow: 0 0 10px 2px oklch(0.82 0.13 200 / .8),0 0 40px 8px oklch(0.82 0.13 200 / .2);
}

.glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,rgba(255,255,255,.06),transparent 30%);
  pointer-events: none;
}

.legend-grid {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 210px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 5px;
  background: #0b0e1e;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.05);
  font: 500 8.5px/1 'JetBrains Mono',monospace;
  letter-spacing: .1em;
  color: #7d8186;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-name {
  flex: 1;
}

.legend-count {
  color: #d6d3cd;
}

.process {
  position: absolute;
  left: 780px;
  top: 60px;
  width: 210px;
  height: 400px;
  border-radius: 20px;
  background: radial-gradient(ellipse at 30% 0%,rgba(140,200,255,.16),transparent 60%),linear-gradient(180deg,#252c4a 0%,#1a1f38 55%,#12162a 100%);
  box-shadow: inset 0 1px 0 rgba(180,220,255,.35),inset 0 0 0 2px rgba(90,110,200,.25),inset 0 -4px 10px rgba(0,0,10,.5),0 30px 50px -10px rgba(0,0,0,.85),0 0 0 1px #070914;
}

.h-process {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px oklch(0.82 0.13 200 / .5),0 0 50px oklch(0.82 0.13 200 / .3);
}

.cyl-cap-top {
  position: absolute;
  left: 35px;
  top: 38px;
  width: 140px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg,#151a30,#4a5590 30%,#b8c6ff 42%,#3a4478 70%,#11152a);
  box-shadow: 0 3px 6px rgba(0,0,0,.7);
}

.cylinder {
  position: absolute;
  left: 45px;
  top: 54px;
  width: 120px;
  height: 232px;
  background: #05080a;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,.9);
}

.core {
  position: absolute;
  left: 30px;
  top: 6px;
  width: 60px;
  height: 220px;
  border-radius: 30px;
  opacity: 0;
  background: radial-gradient(closest-side,#eaffff 0,oklch(0.86 0.12 200) 30%,oklch(0.70 0.13 205 / .5) 65%,transparent 100%);
  filter: blur(5px);
}

.coil-1 {
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  height: 5px;
  background: linear-gradient(90deg,#3a0f2e,oklch(0.70 0.22 345) 40%,#5a1844 75%,#220a1c);
}

.coil-2 {
  position: absolute;
  left: 0;
  right: 0;
  top: 112px;
  height: 5px;
  background: linear-gradient(90deg,#3a0f2e,oklch(0.70 0.22 345) 40%,#5a1844 75%,#220a1c);
}

.coil-3 {
  position: absolute;
  left: 0;
  right: 0;
  top: 174px;
  height: 5px;
  background: linear-gradient(90deg,#3a0f2e,oklch(0.70 0.22 345) 40%,#5a1844 75%,#220a1c);
}

.cyl-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,0,0,.55) 0,rgba(255,255,255,.03) 14%,rgba(255,255,255,.16) 24%,rgba(255,255,255,.02) 34%,transparent 70%,rgba(255,255,255,.06) 84%,rgba(0,0,0,.6));
  pointer-events: none;
}

.cyl-cap-bottom {
  position: absolute;
  left: 35px;
  top: 286px;
  width: 140px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg,#151a30,#4a5590 30%,#b8c6ff 42%,#3a4478 70%,#11152a);
  box-shadow: 0 3px 6px rgba(0,0,0,.7);
}

.gauge {
  position: absolute;
  left: 12px;
  top: 314px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(145deg,#c8d4ff,#2a3060 50%,#7a88d0);
  box-shadow: 0 4px 8px rgba(0,0,0,.8);
}

.gauge-face {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%,#0c1024,#05070f);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
}

.gauge-ticks {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -2deg,#7af0ff 0 2deg,transparent 2deg 24deg);
  -webkit-mask: radial-gradient(closest-side,transparent 72%,#000 73% 92%,transparent 93%);
  mask: radial-gradient(closest-side,transparent 72%,#000 73% 92%,transparent 93%);
}

.gauge-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  text-align: center;
  font: 600 7px/1 'JetBrains Mono',monospace;
  letter-spacing: .12em;
  color: #7af0ff;
}

.needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 26px;
  margin-left: -1px;
  transform-origin: 50% 100%;
  transform: rotate(-115deg);
  background: oklch(0.75 0.22 345);
  border-radius: 1px;
}

.gauge-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#1a1f38);
}

.proc-info {
  position: absolute;
  left: 96px;
  right: 12px;
  top: 318px;
  display: grid;
  gap: 8px;
  font: 500 8.5px/1 'JetBrains Mono',monospace;
  letter-spacing: .1em;
  color: #7f8bc0;
}

.proc-field {
  display: grid;
  gap: 3px;
}

.proc-cat {
  color: #e8f0ff;
  font-weight: 600;
  font-size: 10px;
}

.proc-method {
  color: #e8f0ff;
  font-weight: 600;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.output {
  position: absolute;
  left: 1020px;
  top: 60px;
  width: 280px;
  height: 100px;
  border-radius: 20px;
  background: radial-gradient(ellipse at 30% 0%,rgba(140,200,255,.16),transparent 60%),linear-gradient(180deg,#252c4a 0%,#1a1f38 55%,#12162a 100%);
  box-shadow: inset 0 1px 0 rgba(180,220,255,.35),inset 0 0 0 2px rgba(90,110,200,.25),inset 0 -4px 10px rgba(0,0,10,.5),0 30px 50px -10px rgba(0,0,0,.85),0 0 0 1px #070914;
}

.h-output {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px oklch(0.82 0.13 200 / .5),0 0 40px oklch(0.82 0.13 200 / .25);
}

.out-status {
  position: absolute;
  left: 14px;
  width: 170px;
  top: 40px;
  height: 40px;
  border-radius: 6px;
  padding: 0 12px;
  align-content: center;
  background: #061012;
  box-shadow: inset 0 4px 12px rgba(0,0,0,.95),0 0 0 3px #0b0e1e,0 0 0 4px #4a5598;
  font: 500 9px/1 'JetBrains Mono',monospace;
  letter-spacing: .12em;
  color: oklch(0.82 0.13 200 / .5);
  display: grid;
  gap: 8px;
}

.out-status-text {
  color: oklch(0.86 0.12 200);
  text-shadow: 0 0 6px oklch(0.82 0.13 200 / .8);
  font-size: 11px;
}

.meters {
  position: absolute;
  left: 198px;
  right: 14px;
  top: 38px;
  height: 44px;
  display: flex;
  gap: 6px;
}

.meter {
  flex: 1;
  position: relative;
  border-radius: 4px;
  background: linear-gradient(90deg,#0b0e1e,#2f3866 40%,#1a1f38);
  box-shadow: inset 0 1px 0 rgba(180,220,255,.25),0 2px 3px rgba(0,0,0,.7);
  overflow: hidden;
}

.meter-cap-cyan {
  height: 7px;
  background: oklch(0.82 0.2 195);
  box-shadow: 0 0 6px oklch(0.82 0.2 195);
}

.meter-well {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 5px;
  height: 20px;
  border-radius: 2px;
  background: #05071a;
  box-shadow: inset 0 1px 2px #000;
  overflow: hidden;
}

.meter-fill-cyan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80%;
  background: oklch(0.82 0.2 195);
  opacity: .75;
}

.meter-cap-pink {
  height: 7px;
  background: oklch(0.82 0.2 345);
  box-shadow: 0 0 6px oklch(0.82 0.2 345);
}

.meter-fill-pink {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: oklch(0.82 0.2 345);
  opacity: .75;
}

.meter-cap-lime {
  height: 7px;
  background: oklch(0.82 0.2 135);
  box-shadow: 0 0 6px oklch(0.82 0.2 135);
}

.meter-fill-lime {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: oklch(0.82 0.2 135);
  opacity: .75;
}

.meter-cap-amber {
  height: 7px;
  background: oklch(0.82 0.2 95);
  box-shadow: 0 0 6px oklch(0.82 0.2 95);
}

.meter-fill-amber {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: oklch(0.82 0.2 95);
  opacity: .75;
}

.rivet-bl {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#4a5590 55%,#1a1f38);
}

.rivet-br {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#c8d4ff,#4a5590 55%,#1a1f38);
}

.ticket-box {
  position: absolute;
  left: 1040px;
  top: 156px;
  width: 240px;
  overflow: hidden;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.6));
}

.ticket-in {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 10px 14px;
  background: linear-gradient(180deg,#e9e6de,#dcd8ce);
  color: #22211e;
  font: 400 9.5px/1.5 'JetBrains Mono',monospace;
  display: grid;
  gap: 6px;
  -webkit-mask: radial-gradient(circle at 4px 100%,transparent 3px,#000 3.5px) 0 0/8px 100% repeat-x;
  mask: radial-gradient(circle at 4px 100%,transparent 3px,#000 3.5px) 0 0/8px 100% repeat-x;
}

.receipt-head {
  font-weight: 600;
  letter-spacing: .14em;
  font-size: 11px;
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  color: #5b5953;
}

.receipt-rule {
  border-top: 1px dashed #8a877f;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt-value {
  text-align: right;
}

.receipt-label {
  font-weight: 600;
}

.receipt-finding {
  word-break: break-all;
}

.slot {
  position: absolute;
  left: 1030px;
  top: 148px;
  width: 260px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg,#2f3866,#0b0e1e);
  box-shadow: inset 0 -3px 0 #020203,0 2px 4px rgba(0,0,0,.8);
}

.cv {
  position: absolute;
  left: 0;
  top: 0;
  width: 1320px;
  height: 620px;
  pointer-events: none;
}

.steps-panel {
  position: relative;
  margin-top: 18px;
  border-radius: 24px;
  padding: 18px 20px 22px;
  background: radial-gradient(ellipse at 30% 0%,rgba(140,200,255,.16),transparent 60%),linear-gradient(180deg,#252c4a 0%,#1a1f38 55%,#12162a 100%);
  box-shadow: inset 0 1px 0 rgba(180,220,255,.35),inset 0 0 0 2px rgba(90,110,200,.25),inset 0 -4px 10px rgba(0,0,10,.5),0 30px 50px -10px rgba(0,0,0,.85),0 0 0 1px #070914,0 0 0 1px oklch(0.85 0.15 195 / .3);
  display: grid;
  gap: 14px;
}

.steps-bar {
  padding-left: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font: 600 10px/1 'JetBrains Mono',monospace;
  letter-spacing: .16em;
  color: #9fb3ff;
  text-shadow: 0 0 8px rgba(120,150,255,.4);
}

.steps-lamp {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: oklch(0.80 0.15 145);
  box-shadow: 0 0 6px oklch(0.80 0.15 145);
}

.steps-run {
  white-space: nowrap;
}

.steps-frame {
  position: relative;
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(180deg,#0b0e1e,#1a1f38);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8),0 1px 0 rgba(180,220,255,.15);
}

.steps-screen {
  border-radius: 12px;
  padding: 20px 22px 8px;
  background: radial-gradient(ellipse at 50% 30%,#0a1a26,#03060c);
  box-shadow: inset 0 0 30px rgba(0,0,0,.9),inset 0 0 0 1px rgba(122,240,255,.15);
  display: grid;
}

.step-entry {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 16px;
}

.step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #05071a;
  font: 700 11px/1 'JetBrains Mono',monospace;
}

.step-line {
  flex: 1;
  width: 1px;
  min-height: 14px;
  background: rgba(122,240,255,.15);
}

.step-body {
  padding: 4px 0 22px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.step-mod {
  padding: 3px 7px;
  border-radius: 4px;
  font: 700 9px/1.2 'JetBrains Mono',monospace;
  letter-spacing: .14em;
}

.step-title {
  color: #e8ecff;
  font: 600 16px/1.3 'Chakra Petch',sans-serif;
}

.step-detail {
  max-width: 760px;
  color: #a9b6e0;
  font: 400 12.5px/1.55 'JetBrains Mono',monospace;
  text-wrap: pretty;
}

.step-cmd {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 6px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #020409;
  box-shadow: inset 0 0 0 1px rgba(122,240,255,.12);
  font: 500 12px/1.5 'JetBrains Mono',monospace;
}

.prompt {
  color: oklch(0.75 0.22 345);
}

.cmd-text {
  color: #a8fff0;
  text-shadow: 0 0 6px rgba(80,240,220,.45);
  word-break: break-all;
}

.step-io {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  background: #05071a;
  font: 500 11.5px/1.45 'JetBrains Mono',monospace;
}

.io-label {
  color: #7f8bc0;
}

.io-in {
  color: #c8d4ff;
  word-break: break-all;
}

.io-out {
  color: oklch(0.92 0.15 135);
  word-break: break-all;
}

.card-veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: rgba(5,7,18,.7);
  backdrop-filter: blur(3px);
}

.card-frame {
  width: min(640px,100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 16px;
  padding: 7px;
  background: linear-gradient(135deg,oklch(0.75 0.22 345),oklch(0.80 0.15 200));
  box-shadow: inset 0 1px 0 rgba(255,236,190,.6),0 40px 80px -20px rgba(0,0,0,.9),0 0 0 1px #1a1106;
}

.card {
  border-radius: 11px;
  background: #0a0d1c;
  padding: 24px;
  box-shadow: inset 0 4px 18px rgba(0,0,0,.95);
  display: grid;
  gap: 18px;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(130px,1fr));
  gap: 1px;
  background: #232a4a;
  border-radius: 8px;
  overflow: hidden;
}

.stat {
  padding: 12px 14px;
  background: #10142a;
  display: grid;
  gap: 6px;
}

.card h2 {
  margin: 0;
}

.stat > span {
  color: #e8ecff;
}

.stat h2 {
  font: 500 9px/1 'JetBrains Mono',monospace;
  letter-spacing: .16em;
  color: #7f8bc0;
}

.flags-box {
  display: grid;
  gap: 8px;
}

.flags-box h2 {
  font: 500 9px/1 'JetBrains Mono',monospace;
  letter-spacing: .16em;
  color: oklch(0.88 0.2 135);
}

.flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flag-chip {
  padding: 5px 9px;
  border-radius: 4px;
  font: 500 12px/1.35 'JetBrains Mono',monospace;
  background: oklch(0.85 0.2 135 / .12);
  border: 1px solid oklch(0.85 0.2 135 / .5);
  color: oklch(0.92 0.15 135);
  overflow-wrap: break-word;
  max-width: 100%;
}

.findings-box {
  display: grid;
  gap: 6px;
}

.findings-box h2 {
  font: 500 9px/1 'JetBrains Mono',monospace;
  letter-spacing: .16em;
  color: oklch(0.82 0.13 200);
}

.finding {
  display: grid;
  grid-template-columns: minmax(90px,130px) minmax(0,1fr);
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #10142a;
  font: 500 11.5px/1.4 'JetBrains Mono',monospace;
}

.finding-kind {
  color: oklch(0.88 0.11 200);
}

.finding-out {
  color: #e8ecff;
  word-break: break-all;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.close-btn {
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid #3a4478;
  background: transparent;
  color: #c8d4ff;
  font: 600 12px/1 'JetBrains Mono',monospace;
  letter-spacing: .14em;
  white-space: nowrap;
}

.close-btn:hover {
  border-color: #7af0ff;
  color: #fff;
}

.steps-btn {
  cursor: pointer;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  font: 600 12px/1 'JetBrains Mono',monospace;
  letter-spacing: .14em;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg,oklch(0.78 0.22 345),oklch(0.60 0.23 345));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4),0 3px 0 #3a0624;
}

/* hover states for content sections */

/* the circled question mark on the HELP button */
.help-mark{display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;border:1px solid currentColor;font-size:9px}

/* ---- Guided tour: the veil, the hole around the element shown, and the card ---- */
.tour-veil{position:fixed;inset:0;z-index:1000}
.tour-hole{position:fixed;z-index:1001;border-radius:16px;box-shadow:0 0 0 9999px rgba(3,5,14,.8),0 0 0 2px #7af0ff,0 0 32px rgba(122,240,255,.45);pointer-events:none;transition:left .35s ease,top .35s ease,width .35s ease,height .35s ease}
.tour-card{position:fixed;z-index:1002;padding:20px;border-radius:12px;background:#10142a;border:1px solid #3a4478;box-shadow:0 18px 50px rgba(0,0,0,.6);display:grid;gap:10px;transition:left .35s ease,top .35s ease}
.tour-card h2{margin:0;font:600 19px/1.25 'Chakra Petch',sans-serif;color:#e8ecff}
.tour-card p{margin:0;font:400 14px/1.6 'Chakra Petch',sans-serif;color:#aab4dd;text-wrap:pretty}
.tour-card button{cursor:pointer;font:600 12px/1 'JetBrains Mono',monospace;letter-spacing:.08em}
.tour-count,.tour-nav{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tour-count{font:600 11px/1 'JetBrains Mono',monospace;letter-spacing:.16em;color:oklch(0.75 0.22 345)}
.tour-card .tour-close{background:none;border:0;color:#aab4dd;font-size:14px;letter-spacing:normal;padding:4px}
.tour-nav{margin-top:6px}
.tour-nav>div{display:flex;gap:8px}
.tour-card .tour-skip{background:none;border:0;padding:8px 0;color:#7f8bc0;font-weight:500}
.tour-back{padding:10px 14px;border-radius:8px;background:transparent;border:1px solid #3a4478;color:#e8ecff}
.tour-next{padding:10px 16px;border-radius:8px;background:oklch(0.75 0.22 345);border:0;color:#fff}

/* ---- Landing: the sections under the machine. Each is a header (kicker, title, intro) beside its topic ---- */
.landing{position:relative;z-index:1;width:100%;max-width:1320px;margin:0 auto;padding:56px 20px 40px;display:grid;gap:56px}
.landing>section,.landing>footer{border-top:1px solid #1c2246}
.landing>section{display:flex;flex-wrap:wrap;gap:24px 48px;padding-top:40px}
.landing>section>header{flex:1 1 260px;max-width:360px;display:grid;gap:12px;align-content:start}
.landing h2{margin:0;font:600 clamp(24px,2.6vw,32px)/1.15 'Chakra Petch',sans-serif;color:#e8ecff;text-wrap:balance}
.landing p{margin:0;font:400 14px/1.6 'Chakra Petch',sans-serif;color:#aab4dd;text-wrap:pretty}
.landing .topic{flex:2.4 1 480px;min-width:0;display:grid;gap:16px;align-content:start}
.landing .topic>p{font-size:16px;line-height:1.65}
.kicker{font:500 11px/1 'JetBrains Mono',monospace;letter-spacing:.2em}
.kicker.lime{color:oklch(0.88 0.2 135)}
.kicker.pink{color:oklch(0.75 0.22 345)}
.kicker.cyan{color:oklch(0.82 0.13 200)}

.cards{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:12px}
.cards.wide{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.cards>*{padding:20px;border-radius:10px;background:#10142a;border:1px solid #232a52;display:grid;gap:8px;align-content:start}
.cards.wide>*{gap:10px}
.cards h3{margin:0;font:600 17px/1.25 'Chakra Petch',sans-serif;color:#e8ecff}
.cards .step-no{font:600 12px/1 'JetBrains Mono',monospace;letter-spacing:.16em;color:oklch(0.88 0.11 200)}

.faq header p,.faq details p{line-height:1.65}
.faq .topic{gap:28px}
.faq .topic>div{display:grid;gap:8px}
.faq h3{margin:0 0 4px;font:600 12px/1 'JetBrains Mono',monospace;letter-spacing:.16em;color:#9fb3ff}
.faq details{padding:16px 20px;border-radius:10px;background:#10142a;border:1px solid #232a52}
.faq summary{cursor:pointer;font:600 16px/1.4 'Chakra Petch',sans-serif;color:#e8ecff}
.faq details p{margin-top:10px}
.faq b{color:#e8ecff}
.faq code{color:#7af0ff}

.landing .mail{justify-self:start;display:flex;align-items:center;gap:16px;padding:16px 20px;border-radius:10px;background:#10142a;border:1px solid #3a4478;color:#e8ecff;font:600 16px/1.2 'JetBrains Mono',monospace}
.landing .mail:hover{border-color:#7af0ff;color:#fff}
.landing .mail>span:last-child{color:oklch(0.75 0.22 345)}
.landing .topic>.note{font-size:13px;line-height:1.5;color:#7f8bc0}

.landing>footer{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center;padding-top:24px;font:500 12px/1.4 'JetBrains Mono',monospace;color:#7f8bc0}
.landing>footer nav{display:flex;gap:16px}
.landing>footer a{color:#aab4dd}
.landing>footer .brand{color:#e8ecff;font-weight:600}
.landing>footer a:hover{color:#7af0ff}
