/* CLACK · the room (app/room). The helloworld night room stays on screen; machines wear name tags,
   panels dock beside the machine they belong to. Bevelled keys that press in, sunken fields, BNB yellow. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Coolvetica HC";
  src: url("/fonts/coolvetica-hc.otf") format("opentype");
  font-display: swap;
}

:root {
  --bnb: #f0b90b;
  --bnb-2: #ffd24a;
  --bnb-ink: #1a1405;
  --night: #07080f;
  --bg0: #0b0c10;
  --bg1: #15161c;
  --bg2: #1c1d25;
  --bg3: #262833;
  --line: #2e303c;
  --hi: #474a5c;
  --lo: #030304;
  --text: #ece4d4;
  --text2: #aaa293;
  --text3: #77727f;
  --up: #2fcf8a;
  --down: #e5484d;
  --warn: #ffb35c;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC";
  --mono: "JetBrains Mono", ui-monospace, Menlo, var(--cjk), monospace;
  --sans: "Inter", system-ui, -apple-system, var(--cjk), "Segoe UI", sans-serif;
  --display: "Coolvetica HC", "Arial Narrow", "Inter", var(--cjk), sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: var(--text);
  font: 13px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}

/* ------------------------------------------------------------------ keys: the one button family */
.key,
.btn,
.chip,
.mini,
.wb,
.flip,
.slipbtn,
.dchip,
.pk {
  --face: linear-gradient(#2c2e3a, #23252f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 4px;
  background: var(--face);
  color: var(--text);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo),
    0 1px 0 rgba(0, 0, 0, 0.5);
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition:
    filter 0.12s,
    transform 0.06s;
  user-select: none;
}
.key:hover:not(:disabled),
.btn:hover:not(:disabled),
.chip:hover,
.mini:hover,
.wb:hover {
  filter: brightness(1.18);
}
.key:active:not(:disabled),
.btn:active:not(:disabled),
.chip:active,
.mini:active,
.wb:active,
.key.on,
.chip.on,
.flip:active {
  --face: linear-gradient(#191a21, #1e1f27);
  box-shadow:
    inset 1px 1px 0 var(--lo),
    inset -1px -1px 0 var(--hi);
  transform: translateY(1px);
}
.chip.on {
  color: var(--bnb);
}
/* primary: the yellow key */
.key.primary,
.btn.mint,
.start {
  --face: linear-gradient(var(--bnb-2), var(--bnb));
  color: var(--bnb-ink);
  box-shadow:
    inset 1px 1px 0 #fff4b8,
    inset -1px -1px 0 #9c7400,
    0 2px 0 #5c4500,
    0 6px 14px -6px rgba(240, 185, 11, 0.55);
}
.key.primary:active:not(:disabled),
.btn.mint:active:not(:disabled),
.start.on {
  --face: linear-gradient(var(--bnb), #e0a800);
  box-shadow:
    inset 1px 1px 0 #9c7400,
    inset -1px -1px 0 #ffe27a;
  transform: translateY(2px);
}
.btn.ghost {
  --face: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text2);
}
.btn.ghost:hover:not(:disabled) {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hi);
}
.btn {
  min-height: 32px;
  padding: 0 14px;
}
.btn.sm {
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
}
.btn.wide {
  width: 100%;
  min-height: 44px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
}
.btn:disabled,
.key:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.chip,
.mini,
.dchip,
.slipbtn {
  min-height: 24px;
  padding: 0 9px;
  font: 600 11.5px/1 var(--sans);
}
.chip.sm {
  min-height: 20px;
  font-size: 10.5px;
}
:focus-visible {
  outline: 1px dotted var(--bnb);
  outline-offset: 2px;
}
.chips {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}
.chips.wrap {
  flex-wrap: wrap;
}

/* sunken fields */
.inp,
.sbox,
#amt,
.clock {
  background: #08090c;
  border: 0;
  border-radius: 3px;
  box-shadow:
    inset 1px 1px 0 var(--lo),
    inset -1px -1px 0 var(--hi);
}
.inp {
  padding: 7px 9px;
  font: 500 13px/1.2 var(--mono);
  min-width: 0;
  color: var(--text);
}
.inp::placeholder,
#amt::placeholder {
  color: var(--text3);
}
.inp.bad {
  box-shadow:
    inset 0 0 0 1px var(--down),
    inset 1px 1px 0 var(--lo);
}
select.inp option {
  background: var(--bg1);
}

/* ------------------------------------------------------------------ hardware: keycaps (physical keys on the desk) */
.key {
  --face: linear-gradient(#f4eddd, #ddd1b9);
  color: #2d261a;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px #9c8e70,
    inset 0 1px 0 #fff,
    inset 0 -3px 0 rgba(120, 100, 60, 0.12),
    0 3px 0 #a99a7b,
    0 5px 8px rgba(0, 0, 0, 0.45);
  font: 700 13px/1 var(--sans);
  letter-spacing: 0.02em;
}
.key:active:not(:disabled),
.key.on {
  --face: linear-gradient(#ebe3d1, #d6caaf);
  transform: translateY(2px);
  box-shadow:
    0 0 0 1px #9c8e70,
    inset 0 1px 0 #fff,
    0 1px 0 #a99a7b,
    0 2px 4px rgba(0, 0, 0, 0.4);
}
.key.primary {
  --face: linear-gradient(#ffd859, #f0b90b);
  color: #1a1405;
  box-shadow:
    0 0 0 1px #9c7400,
    inset 0 1px 0 #fff3b0,
    inset 0 -3px 0 rgba(120, 80, 0, 0.15),
    0 3px 0 #a07800,
    0 5px 10px rgba(0, 0, 0, 0.45);
}
.key.primary:active:not(:disabled) {
  --face: linear-gradient(#f5c62a, #e2a900);
  box-shadow:
    0 0 0 1px #9c7400,
    inset 0 1px 0 #fff3b0,
    0 1px 0 #a07800,
    0 2px 4px rgba(0, 0, 0, 0.4);
}
kbd {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px 4px;
  border-radius: 5px;
  background: linear-gradient(#f4eddd, #ddd1b9);
  color: #2d261a;
  font: 700 12px/1 var(--sans);
  box-shadow:
    0 0 0 1px #9c8e70,
    inset 0 1px 0 #fff,
    0 2px 0 #a99a7b;
}

/* ------------------------------------------------------------------ the room */
.stage {
  position: fixed;
  inset: 0;
}
.room3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.hand .room3d {
  cursor: grab;
}
.grab .room3d {
  cursor: grabbing;
}
.room-flat .room3d {
  display: none;
}
.room-flat body::before {
  content: "";
  position: fixed;
  inset: -40px;
  background: url("/docs/key.jpg") center / cover var(--night);
  filter: blur(14px) brightness(0.45);
}
.hud {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: linear-gradient(rgba(7, 8, 15, 0.7), rgba(7, 8, 15, 0));
  pointer-events: none;
}
.hud > * {
  pointer-events: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark,
.mark svg {
  display: block;
}
.wm {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}
.wm b {
  font: 22px/0.9 var(--display);
  letter-spacing: 0.03em;
  color: var(--text);
}
.wm i {
  font: normal 15px/0.95 var(--display);
  letter-spacing: 0.16em;
  color: var(--bnb);
}
.wbox {
  position: relative;
}
.wallet {
  min-height: 38px;
  padding: 0 16px;
}
.wallet .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fcf8a;
  box-shadow:
    0 0 6px #2fcf8a,
    inset 0 -1px 1px rgba(0, 0, 0, 0.4);
}
.wallet .addr {
  font: 700 12.5px/1 var(--mono);
}
.wallet b {
  font: 600 12px/1 var(--mono);
  color: #6f6450;
}
.wmenu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 296px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-radius: 12px;
  background: linear-gradient(#e6dcc6, #d1c4a5);
  color: #2d261a;
  box-shadow:
    0 0 0 1px #8f8063,
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 24px 50px -14px #000;
  --text3: #6f6450;
}
.wmenu .k {
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  color: #6f6450;
}
.addrfull {
  font: 11.5px/1.4 var(--mono);
  color: #4d4433;
  word-break: break-all;
}
.wmenu .row > span:first-child {
  color: #6f6450;
}
.wmenu .btn {
  --face: linear-gradient(#f4eddd, #ddd1b9);
  color: #2d261a;
  box-shadow:
    0 0 0 1px #9c8e70,
    inset 0 1px 0 #fff,
    0 2px 0 #a99a7b;
}

/* name tags: Dymo label tape stuck above each machine, a thread down to it, a small LCD readout */
.tags {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
.mtag {
  --led: #8ff7d8;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: #f4f1ea;
  text-align: left;
  translate: -50% calc(-100% - 10px);
  pointer-events: auto;
  white-space: nowrap;
  transition:
    opacity 0.5s,
    filter 0.2s;
}
.mtag[data-key="desk"] {
  --led: #ffb35c;
}
.mtag[data-key="hall"],
.mtag[data-key="tape"] {
  --led: #7dff9a;
}
.mtag[data-key="otc"] {
  --led: #9fe3ff;
}
.mtag[data-key="rarity"] {
  --led: #e8eeff;
}
.mtag[data-key="docs"] {
  --led: #f0b90b;
}
.mtag .glyph {
  display: none;
}
.mtag > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
/* the tape: black, slightly glossy, letters pressed up in white */
.mtag b {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 6px 10px;
  border-radius: 2px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.25)),
    repeating-linear-gradient(90deg, #17171b 0 3px, #1b1b20 3px 4px);
  font: 800 13.5px/1 var(--sans);
  letter-spacing: 0.14em;
  color: #f7f3ea;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 -1px 0 rgba(255, 255, 255, 0.25);
  box-shadow:
    0 2px 0 #000,
    0 10px 18px -8px #000;
  rotate: var(--rot, -1deg);
}
.mtag b::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow:
    0 0 8px var(--led),
    inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}
.mtag:nth-child(2n) b {
  --rot: 1.2deg;
}
.mtag:nth-child(3n) b {
  --rot: -0.4deg;
}
.mtag i {
  font: normal 600 10.5px/1 var(--mono);
  padding: 3px 6px;
  border-radius: 2px;
  background: #0b1410;
  color: color-mix(in srgb, var(--led) 85%, white);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 10px -4px #000;
  text-shadow: 0 0 6px color-mix(in srgb, var(--led) 50%, transparent);
}
/* the thread from the tape down to its machine */
.mtag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: calc(var(--stem, 0px) + 10px);
  background: linear-gradient(rgba(244, 241, 234, 0.55), rgba(244, 241, 234, 0.1));
}
.mtag:hover b,
.mtag.hot b {
  background:
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(90deg, #f0b90b 0 3px, #f5c227 3px 4px);
  color: #1a1405;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.mtag:hover b::before,
.mtag.hot b::before {
  background: #1a1405;
  box-shadow: none;
}
.mtag.off {
  opacity: 0 !important;
  pointer-events: none;
}
[data-focus]:not([data-focus=""]) .mtag {
  opacity: 0.75;
}
.hint {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.2em;
  color: rgba(236, 228, 212, 0.75);
  text-shadow: 0 2px 10px #000;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.6s;
}
[data-focus]:not([data-focus=""]) .hint {
  opacity: 0;
}

/* the wall headline (helloworld's wall text): sized by distance, lit by the lamp */
.wall {
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--ppm, 600) * 0.012px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s;
  white-space: nowrap;
}
.wall.on {
  opacity: 1;
}
.wall b {
  font: calc(var(--ppm, 600) * 0.13px) / 0.9 var(--display);
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff1cf 10%, #f0b90b 75%, #b67f00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 calc(var(--ppm, 600) * 0.02px) rgba(255, 170, 60, 0.35));
}
.wall span {
  font: 700 calc(var(--ppm, 600) * 0.034px) / 1 var(--sans);
  letter-spacing: 0.32em;
  color: rgba(244, 228, 196, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* quick buy: a small ivory keypad terminal with a reflective LCD */
.dock {
  position: fixed;
  z-index: 12;
  left: 22px;
  bottom: 40px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%), linear-gradient(#e7ddc8, #cfc1a1);
  color: #2d261a;
  box-shadow:
    0 0 0 1px #8f8063,
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -4px 0 rgba(0, 0, 0, 0.14),
    0 26px 50px -16px #000;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
[data-focus]:not([data-focus=""]) .dock {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.dhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dhead b {
  padding: 4px 10px 5px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #17171b 0 3px, #1b1b20 3px 4px);
  font: 800 12px/1 var(--sans);
  letter-spacing: 0.16em;
  color: #f7f3ea;
  text-shadow:
    0 1px 0 #000,
    0 -1px 0 rgba(255, 255, 255, 0.25);
  rotate: -1deg;
}
.dprice {
  font: 700 11.5px/1 var(--mono);
  color: #6f6450;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* the LCD: grey-green glass, dark segments, a faint ghost of unlit digits */
.lcd {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px 7px;
  border-radius: 6px;
  background: linear-gradient(#b4c09d, #9eab86);
  color: #1b2414;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.6);
}
.dfield {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.dfield input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  padding: 0;
  font: 700 26px/1 var(--mono);
  color: #1b2414;
  caret-color: #1b2414;
}
.dfield input::placeholder {
  color: rgba(27, 36, 20, 0.22);
}
.dfield span {
  font: 800 12px/1 var(--mono);
  color: rgba(27, 36, 20, 0.7);
}
.dq {
  min-height: 15px;
  font: 600 11.5px/1.3 var(--mono);
  color: rgba(27, 36, 20, 0.82);
}
.drow {
  display: flex;
  gap: 8px;
}
.dock .chips {
  gap: 8px;
  flex: 1;
}
.dock .chip {
  flex: 1;
  min-height: 34px;
  --face: linear-gradient(#f4eddd, #ddd1b9);
  color: #2d261a;
  border-radius: 6px;
  font: 800 13px/1 var(--sans);
  box-shadow:
    0 0 0 1px #9c8e70,
    inset 0 1px 0 #fff,
    inset 0 -3px 0 rgba(120, 100, 60, 0.12),
    0 3px 0 #a99a7b,
    0 5px 8px rgba(0, 0, 0, 0.3);
}
.dock .chip:active {
  transform: translateY(2px);
  box-shadow:
    0 0 0 1px #9c8e70,
    inset 0 1px 0 #fff,
    0 1px 0 #a99a7b;
}
.dock .qgo {
  min-height: 46px;
  border-radius: 8px;
  font: 800 16px/1 var(--sans);
  letter-spacing: 0.12em;
}
.dock .txline {
  color: #4d4433;
  min-height: 0;
}
.dock .txline.err {
  color: #b2332b;
}
.dock .txline.ok {
  color: #1f7a4d;
}
.dafter:empty {
  display: none;
}
.dlink {
  align-self: flex-end;
  border: 0;
  background: none;
  padding: 0;
  font: 700 12px/1 var(--sans);
  color: #6f6450;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.dlink:hover {
  color: #2d261a;
}

/* screens: each machine's feature on its own glass. .scr is the visible glass on the viewport (--bw × --bh,
   placed per frame by main.js); .sglass is the fixed 600 px canvas inside it, zoomed to fill it; .sfx is the
   glass itself on top: bezel shadow, convex shading, reflections and scanlines */
.scr {
  --ph: #8ff7d8;
  --br: calc(var(--bh, 600px) * 0.012);
  --refl: transparent;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  width: var(--bw, 800px);
  height: var(--bh, 600px);
  transform-origin: 0 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--br);
  background: radial-gradient(120% 120% at 50% 45%, color-mix(in srgb, var(--ph) 9%, #040a07) 0, #010302 80%);
  font-size: 15px;
}
.scr.open {
  pointer-events: auto;
}
.scr.moving {
  will-change: transform, opacity;
}
.room-flat .scr.open {
  visibility: visible;
  opacity: 1;
}
/* the CRT's moulded opening has round corners; the lamp shows in the glass of the machines facing it */
.scr[data-key="terminal"] {
  --br: calc(var(--bh, 600px) * 0.045) / calc(var(--bh, 600px) * 0.05);
  --refl: radial-gradient(38% 46% at 4% 100%, rgba(255, 150, 70, 0.2), transparent 70%);
}
.scr[data-key="desk"] {
  --ph: #ffbf6b;
}
.scr[data-key="hall"],
.scr[data-key="tape"] {
  --ph: #8cffa8;
}
.scr[data-key="tape"] {
  --refl: radial-gradient(30% 40% at 100% 100%, rgba(255, 150, 70, 0.12), transparent 70%);
}
.scr[data-key="otc"] {
  --ph: #a8e6ff;
  --refl: radial-gradient(40% 50% at 100% 0%, rgba(255, 150, 70, 0.16), transparent 70%);
}
.scr[data-key="rarity"] {
  --ph: #eef2ff;
}
.sglass {
  position: relative;
  width: var(--cw, 800px);
  height: 600px;
  zoom: var(--z, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ph);
}
.sfx {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  background:
    /* scanlines and a faint aperture grille */
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(to right, rgba(255, 60, 60, 0.03) 0 1px, rgba(60, 255, 120, 0.03) 1px 2px, rgba(70, 120, 255, 0.03) 2px 3px),
    /* the lamp in the glass */
    var(--refl),
    /* convex glass: the room's window caught high on the left, a soft band along the top edge */
    radial-gradient(46% 30% at 22% 12%, rgba(255, 244, 225, 0.09), transparent 72%),
    radial-gradient(90% 16% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 80%),
    linear-gradient(152deg, rgba(255, 255, 255, 0.05), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.02)),
    /* the curve falls away from the light towards the edges and corners */
    radial-gradient(112% 122% at 50% 46%, transparent 56%, rgba(0, 0, 0, 0.38) 84%, rgba(0, 0, 0, 0.72) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.75),
    inset 0 calc(var(--bh, 600px) * 0.02) calc(var(--bh, 600px) * 0.03) calc(var(--bh, 600px) * -0.012) rgba(0, 0, 0, 0.7),
    inset 0 0 calc(var(--bh, 600px) * 0.035) calc(var(--bh, 600px) * 0.006) rgba(0, 0, 0, 0.6);
}
.sfx::before,
.sfx::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.sfx::before {
  inset: -128px;
  background: var(--grain);
  opacity: 0.035;
  mix-blend-mode: overlay;
  animation: grain 0.5s steps(4) infinite;
}
.sfx::after {
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ph) 5%, transparent) 60%, transparent);
  animation: roll 9s linear infinite;
}
@keyframes grain {
  25% {
    transform: translate(-37px, 22px);
  }
  50% {
    transform: translate(18px, -45px);
  }
  75% {
    transform: translate(-60px, -12px);
  }
  100% {
    transform: translate(41px, 53px);
  }
}
@keyframes roll {
  to {
    transform: translateY(433%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sfx::before,
  .sfx::after {
    animation: none;
  }
}
.room-flat .scr {
  overflow: visible;
  border-radius: 26px / 32px;
  box-shadow:
    0 0 0 18px #d9ccb0,
    0 0 0 19px #a8987a,
    0 40px 90px -20px #000;
}
.room-flat .sglass {
  border-radius: inherit;
}
.shead {
  flex: none;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  border-bottom: 1px solid color-mix(in srgb, var(--ph) 22%, transparent);
  font: 600 13px/1 var(--mono);
  text-shadow: 0 0 0.5em color-mix(in srgb, var(--ph) 40%, transparent);
}
.sled {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ph);
  box-shadow: 0 0 8px var(--ph);
}
.stitle {
  font: 800 16px/1 var(--sans);
  letter-spacing: 0.08em;
}
.ssub {
  color: color-mix(in srgb, var(--ph) 55%, transparent);
}
.sstat {
  margin-left: auto;
  color: color-mix(in srgb, var(--ph) 70%, transparent);
}
.sclock {
  min-width: 44px;
  text-align: right;
  color: color-mix(in srgb, var(--ph) 55%, transparent);
}
.sbody {
  position: relative;
  flex: 1;
  min-height: 0;
}
.sbody > .app {
  position: absolute;
  inset: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.page {
  position: absolute;
  inset: 0;
  padding: 14px 26px 12px;
  display: none !important;
}
.page.on {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
}
.skeys {
  flex: none;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-top: 1px solid color-mix(in srgb, var(--ph) 22%, transparent);
}
.sk {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 14px 0 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ph);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 45%, transparent);
  font: 700 14px/1 var(--sans);
  letter-spacing: 0.06em;
  text-shadow: 0 0 0.5em color-mix(in srgb, var(--ph) 35%, transparent);
}
.sk b {
  padding: 4px 6px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ph) 18%, transparent);
  font: 700 11px/1 var(--mono);
}
.sk:hover {
  background: color-mix(in srgb, var(--ph) 12%, transparent);
}
.sk.on {
  background: var(--ph);
  color: #031008;
  text-shadow: none;
}
.sk.on b {
  background: rgba(0, 0, 0, 0.18);
}
.sgap {
  flex: 1;
}
.sk.esc {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 28%, transparent);
  color: color-mix(in srgb, var(--ph) 80%, transparent);
}
/* overlays on the screen: machine detail, dialogs */
.dlayer:empty {
  display: none;
}
.dlayer {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #030705;
}
.modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.modal > * {
  width: min(520px, 90%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 40%, transparent);
}

/* the opening: loader, then the prompt under the monitor */
.loader {
  position: fixed;
  z-index: 50;
  inset: 0;
  overflow: hidden;
  background: #07080f;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
  --gx: 50%;
  --gy: 50%;
}
.loader.gone {
  opacity: 0;
  visibility: hidden;
}
.lglow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 32vw at var(--gx) var(--gy),
    rgba(255, 214, 120, 0.09),
    rgba(255, 214, 120, 0.03) 45%,
    transparent 70%
  );
}
.ltop {
  position: absolute;
  left: 2.5vw;
  right: 2.5vw;
  top: 2.4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 clamp(13px, 1vw, 18px) / 1 var(--mono);
  color: rgba(236, 228, 212, 0.7);
}
.lbrand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lbrand b {
  font: 20px/1 var(--display);
  letter-spacing: 0.06em;
  color: var(--text);
}
.lcount {
  position: absolute;
  left: 0.4vw;
  bottom: -0.11em;
  margin: 0;
  white-space: nowrap;
  font: 850 clamp(220px, 38vw, 740px) / 0.86 var(--display);
  letter-spacing: -0.01em;
  background: radial-gradient(76% 95% at 0% 100%, #fff8e2 0%, #f0b90b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lcount b {
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
}
.chint {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: 30px;
  translate: -50% 0;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(10, 11, 18, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(236, 228, 212, 0.14),
    0 12px 30px -10px #000;
  backdrop-filter: blur(8px);
  font: 600 13px/1 var(--sans);
  color: var(--text);
  white-space: nowrap;
}
.chint .or {
  color: var(--text3);
}
.skip {
  min-height: 30px;
  padding: 0 12px;
  margin-left: 6px;
  font-size: 12px;
}
.connecting .chint {
  display: flex;
  animation: rise 0.8s ease 0.6s both;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: -50% 10px;
  }
}
/* the room's controls wait for the opening, then come in one after another */
html:not(.entered):not(.room-flat) :is(.hud, .tags, .dock, .hint, .protocol-fee-note, .local-banner) {
  opacity: 0;
  pointer-events: none;
}
.hud,
.tags,
.dock,
.hint {
  transition: opacity 0.8s;
}
.entered .tags {
  transition-delay: 0.2s;
}
.entered .dock {
  transition-delay: 0.45s;
}
.entered .hint {
  transition-delay: 0.9s;
}

.toasts {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(#e6dcc6, #d1c4a5);
  color: #2d261a;
  box-shadow:
    0 0 0 1px #8f8063,
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 14px 28px -10px #000;
  font: 600 13px/1.35 var(--sans);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.toast::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f0b90b;
  box-shadow: 0 0 6px #f0b90b;
}
.toast.ok::before {
  background: #2fcf8a;
  box-shadow: 0 0 6px #2fcf8a;
}
.toast.err::before {
  background: #e5484d;
  box-shadow: 0 0 6px #e5484d;
}
.toast.out {
  opacity: 0;
  transform: translateY(6px);
}
/* live.js notes */
.protocol-fee-note,
.local-banner {
  position: fixed;
  z-index: 4;
  bottom: 8px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--text3);
  pointer-events: none;
}
.protocol-fee-note {
  left: 22px;
}
.local-banner {
  right: 22px;
}
[data-focus]:not([data-focus=""]) .local-banner {
  display: none;
}
.chain-status {
  position: fixed;
  z-index: 60;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 4px;
  background: #3a1410;
  color: #ffd2c4;
  font: 12px/1.3 var(--mono);
}
.glyph {
  display: inline-flex;
  flex: none;
}
.glyph svg {
  display: block;
}

/* no 3D: the name tags become a row of cards in the middle of the still */
.room-flat .hint,
.room-flat .mtag::after {
  display: none;
}
.room-flat .tags {
  left: 50%;
  top: 50%;
  width: min(980px, calc(100vw - 380px));
  height: auto;
  translate: -40% -50%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px 12px;
}
.room-flat .mtag {
  position: static;
  translate: none;
  transform: none !important;
  justify-content: center;
}
.room-flat[data-focus]:not([data-focus=""]) .tags {
  display: none;
}

/* ------------------------------------------------------------------ program content */
.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  overflow: hidden;
  font-size: 13px;
}
.app .k {
  font: 700 10px/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}
.app .v {
  font: 600 17px/1.25 var(--mono);
  white-space: nowrap;
}
.app .s,
.faint {
  font-size: 11.5px;
  color: var(--text3);
}
.app .big {
  font: 40px/1 var(--display);
  color: var(--bnb);
  letter-spacing: 0.01em;
}
.up {
  color: var(--up);
}
.down {
  color: var(--down);
}
.rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.row > span:first-child {
  color: var(--text3);
}
.row b {
  font-family: var(--mono);
  font-weight: 600;
}
.note {
  padding: 8px 10px;
  border-left: 3px solid var(--bnb);
  border-radius: 2px;
  background: rgba(240, 185, 11, 0.07);
  font-size: 12.5px;
}
.note.hot,
.note.amber {
  border-left-color: var(--warn);
  color: var(--warn);
  background: rgba(255, 179, 92, 0.07);
}
.txline {
  min-height: 18px;
  font: 500 12px/1.4 var(--mono);
  color: var(--text2);
}
.txline.wait::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
}
.txline.ok {
  color: var(--up);
}
.txline.err {
  color: var(--down);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 160px;
  text-align: center;
  color: var(--text2);
}
.h3 {
  font: 600 15px/1.3 var(--sans);
  color: var(--text);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px 16px;
}
.list,
.feed,
.tlist,
.trade {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--hi) transparent;
}
/* group boxes */
.trade,
.curve,
.rewards,
.qb {
  position: relative;
  padding: 12px;
  border-radius: 3px;
  box-shadow:
    inset 1px 1px 0 var(--lo),
    inset -1px -1px 0 #2b2d38,
    inset 2px 2px 0 #2b2d38,
    inset -2px -2px 0 var(--lo);
}

/* machine cards */
.mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 4px;
  background: var(--bg2);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);
}
.mcard.sel {
  box-shadow:
    inset 0 0 0 2px var(--bnb),
    inset -1px -1px 0 var(--lo);
}
.mcard.arm {
  box-shadow: inset 0 0 0 2px var(--warn);
}
.mcard.ignite {
  animation: ignite 1.6s ease-out;
}
@keyframes ignite {
  30% {
    box-shadow: 0 0 2.4em 0.3em var(--bnb);
  }
}
.mcard .open {
  padding: 0;
  border: 0;
  background: none;
  display: block;
}
.art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  background: #0b0c18;
}
.art.none {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--text3);
}
.l1 {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font: 600 12px/1.2 var(--mono);
}
.l1 .g,
.l2 {
  font: 500 11px/1.2 var(--sans);
  color: var(--text3);
}
.mcard .acts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mcard .acts .btn {
  flex: 1;
}
.pk {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 11px;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 12px;
}
.flag {
  color: var(--warn);
}
.hold {
  position: relative;
  overflow: hidden;
}
.hold i {
  position: absolute;
  inset: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.4);
}
.hold.on i {
  width: 100%;
  transition: width 0.9s linear;
}
.hold span {
  position: relative;
}
.warn {
  font-size: 11px;
  color: var(--warn);
}
/* the armed card keeps its size: the warning sits over the art instead of pushing the grid */
.mcard.arm .warn {
  position: absolute;
  z-index: 2;
  left: 6px;
  right: 6px;
  top: 6px;
  padding: 6px 8px;
  font: 600 11.5px/1.45 var(--sans);
  background: rgba(10, 6, 2, 0.88);
  border: 1px solid var(--warn);
  border-radius: 3px;
}
.mcard.arm .acts {
  flex-wrap: nowrap;
}
.mcard .acts .no {
  flex: none;
  width: 30px;
}
.hold span {
  white-space: nowrap;
}
.xfer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.obar {
  display: flex;
  height: 12px;
  gap: 2px;
  padding: 2px;
  background: #08090c;
  box-shadow:
    inset 1px 1px 0 var(--lo),
    inset -1px -1px 0 var(--hi);
}
.obar i {
  background: var(--bnb);
}
.olegend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font: 500 11px/1 var(--mono);
  color: var(--text2);
}

/* machine detail, over the panel body */
.dlayer:empty {
  display: none;
}
.dlayer {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--bg1);
}
.detail {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  overflow: auto;
}
.detail .close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 28px;
  padding: 0;
  font-size: 15px;
}
.dinfo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.traits {
  display: grid;
  gap: 3px;
}
.trow {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 8px;
  font-size: 12px;
  align-items: center;
}
.trow .p,
.trow b {
  font: 500 11.5px/1 var(--mono);
  color: var(--text2);
}
.app .acts,
.detail .acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ trade */
.tprice {
  text-align: right;
}
.tprice .pv {
  font: 600 26px/1.1 var(--mono);
  color: var(--bnb);
}
.tprice .pv small {
  font-size: 12px;
  color: var(--text3);
}
.chg {
  font: 500 11.5px/1.4 var(--mono);
}
.market {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.chartbox {
  position: relative;
  flex: 1;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #08090c;
  border-radius: 3px;
  box-shadow:
    inset 1px 1px 0 var(--lo),
    inset -1px -1px 0 var(--hi);
}
.chart {
  flex: 1;
  width: 100%;
  min-height: 0;
}
.curve {
  flex: none;
}
.rewards {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}
.trade {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.slipbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slip {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.slipc {
  width: 76px;
}
.sbox {
  padding: 9px 11px;
}
.srow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text3);
}
.srow + .srow {
  margin-top: 5px;
  color: var(--text);
}
#amt {
  width: 100%;
  min-width: 0;
  box-shadow: none;
  background: none;
  outline: 0;
  padding: 0;
  font: 600 24px/1.2 var(--mono);
  color: var(--text);
}
.outv {
  font: 600 24px/1.2 var(--mono);
}
.tok {
  font: 700 12.5px/1 var(--mono);
  color: var(--text2);
}
.minis {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.mini.one {
  color: var(--bnb);
}
.flip {
  align-self: center;
  width: 30px;
  height: 26px;
  margin: -4px 0;
  padding: 0;
  font-size: 14px;
  z-index: 1;
}
.notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notes:empty {
  display: none;
}
.dline {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.drare {
  border: 0;
  background: none;
  color: var(--warn);
  font: inherit;
  text-decoration: underline;
}
.oddsbox .k {
  margin-bottom: 6px;
}
.reveal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow: auto;
  background: var(--bg1);
}

/* ------------------------------------------------------------------ desk, hall, rarity, tape, otc */
.sum {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  text-align: right;
  max-width: 75%;
}
.sum .msg {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text2);
}
.sum .pend {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 12px;
  align-items: center;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.sum .pend .v {
  color: var(--bnb);
}
.sum .pend .txline {
  grid-column: 1 / -1;
}
.banners:empty {
  display: none;
}
.bar {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.list {
  flex: 1;
  min-height: 0;
  padding: 2px 4px 2px 2px;
}
.abar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 7px 9px;
  border-radius: 3px;
  background: var(--bg2);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);
  font-size: 12.5px;
}
.gtab {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.gtab th {
  text-align: left;
  font: 700 10px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 6px 6px 6px 0;
}
.gtab td {
  padding: 5px 6px 5px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}
.hall .stats {
  max-width: 75%;
}
.more {
  align-self: center;
  flex: none;
}
.lookup {
  display: flex;
  gap: 6px;
}
.lookup .inp {
  width: 120px;
}
.gens {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.gen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  text-align: left;
  border: 0;
  border-radius: 4px;
  background: var(--bg2);
  box-shadow:
    inset 1px 1px 0 var(--hi),
    inset -1px -1px 0 var(--lo);
}
.gen:hover {
  filter: brightness(1.15);
}
.gen .art {
  max-height: 110px;
}
.gname {
  font: 600 12.5px/1.2 var(--sans);
}
.gname b {
  color: var(--bnb);
  font-family: var(--mono);
}
.gen .row {
  font-size: 11px;
}
.calc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tlist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tb {
  height: 8px;
  background: #08090c;
  overflow: hidden;
}
.tb i {
  display: block;
  height: 100%;
  background: var(--bnb);
}
.feed {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feed li {
  display: grid;
  grid-template-columns: 52px 110px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.feed li.empty {
  display: flex;
  border: 0;
}
.feed time,
.feed .who {
  font-family: var(--mono);
  color: var(--text3);
}
.feed li.buy .what {
  color: var(--up);
}
.feed li.sell .what {
  color: var(--down);
}
.feed li.lit .what {
  color: var(--bnb);
}
.soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 620px;
}
.soon p {
  margin: 0;
  color: var(--text2);
}
.ways {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text2);
}
.ways b {
  color: var(--text);
}

/* ------------------------------------------------------------------ inside the screens: phosphor terminal UI */
.scr {
  --text: var(--ph);
  --text2: color-mix(in srgb, var(--ph) 72%, transparent);
  --text3: color-mix(in srgb, var(--ph) 48%, transparent);
  --bnb: var(--ph);
  --bnb-2: var(--ph);
  --line: color-mix(in srgb, var(--ph) 18%, transparent);
  --bg1: #040806;
  --bg2: color-mix(in srgb, var(--ph) 5%, #050907);
  --up: color-mix(in srgb, var(--ph) 40%, #6dffb0);
  --down: #ff6f5a;
  --warn: #ffb35c;
}
.scr .app {
  color: var(--ph);
  text-shadow: 0 0 0.5em color-mix(in srgb, var(--ph) 32%, transparent);
}
.scr .btn,
.scr .chip,
.scr .mini,
.scr .dchip,
.scr .slipbtn,
.scr .flip,
.scr .pk {
  --face: transparent;
  border-radius: 3px;
  color: var(--ph);
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 55%, transparent);
  text-shadow: inherit;
  font-family: var(--mono);
  font-weight: 700;
  transition:
    background 0.12s,
    color 0.12s;
}
.scr .btn:hover:not(:disabled),
.scr .chip:hover,
.scr .mini:hover,
.scr .dchip:hover,
.scr .slipbtn:hover,
.scr .flip:hover {
  filter: none;
  background: color-mix(in srgb, var(--ph) 16%, transparent);
}
.scr .btn:active:not(:disabled),
.scr .chip:active,
.scr .mini:active,
.scr .flip:active {
  transform: none;
  background: color-mix(in srgb, var(--ph) 30%, transparent);
  box-shadow: inset 0 0 0 1px var(--ph);
}
/* the selected chip and the main action: inverse video */
.scr .chip.on,
.scr .btn.mint {
  --face: var(--ph);
  background: var(--ph);
  color: #020604;
  text-shadow: none;
  box-shadow: 0 0 18px color-mix(in srgb, var(--ph) 40%, transparent);
}
.scr .btn.mint:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ph) 82%, white);
}
.scr .btn.ghost {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 30%, transparent);
  color: color-mix(in srgb, var(--ph) 80%, transparent);
}
.scr .btn.wide {
  min-height: 46px;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.scr .btn.wide.mint::before {
  content: "▶";
  font-size: 0.7em;
}
.scr .btn:disabled {
  opacity: 0.4;
  filter: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 35%, transparent);
  background: transparent;
  color: var(--ph);
}
.scr .inp,
.scr .sbox,
.scr .chartbox,
.scr .obar,
.scr .tb {
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 22%, transparent);
  color: var(--ph);
}
.scr .inp:focus,
.scr .sbox:focus-within {
  box-shadow: inset 0 0 0 1px var(--ph);
}
.scr #amt,
.scr .inp {
  caret-color: var(--ph);
}
.scr select.inp option {
  background: #050907;
  color: var(--ph);
}
/* group boxes: a dotted frame like a text-mode window */
.scr .trade,
.scr .curve,
.scr .rewards,
.scr .qb {
  box-shadow: none;
  border: 1px dashed color-mix(in srgb, var(--ph) 28%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--ph) 3%, transparent);
}
.scr .mcard,
.scr .gen,
.scr .abar {
  background: color-mix(in srgb, var(--ph) 4%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 22%, transparent);
}
.scr .mcard.sel {
  box-shadow: inset 0 0 0 2px var(--ph);
}
.scr .art {
  filter: saturate(0.9) contrast(1.02);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ph) 25%, transparent);
}
.scr .note {
  background: color-mix(in srgb, var(--ph) 6%, transparent);
  border-left-color: var(--ph);
}
.scr .tprice .pv,
.scr .sum .pend .v,
.scr .big {
  color: var(--ph);
  text-shadow: 0 0 0.4em color-mix(in srgb, var(--ph) 55%, transparent);
}
.scr .dlayer,
.scr .reveal {
  background: #040806;
}
.scr .txline.ok {
  color: var(--ph);
}
.scr ::-webkit-scrollbar {
  width: 8px;
}
.scr ::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ph) 30%, transparent);
  border-radius: 4px;
}

/* ------------------------------------------------------------------ the screens' layouts: each fits the 600 px canvas */
.scr .app .k {
  font-size: 11px;
}
.scr .stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.scr .stats .v {
  font-size: 18px;
}
/* trade: the order on the left, what it will do on the right */
.terminal .p-trade.on {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.p-trade .trade {
  overflow: visible;
  gap: 10px;
}
.p-trade #amt,
.p-trade .outv {
  font-size: 26px;
}
.qside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qside .tprice {
  text-align: left;
  padding-bottom: 12px;
  border-bottom: 1px dashed color-mix(in srgb, var(--ph) 25%, transparent);
}
.qside .tprice .pv {
  font-size: 34px;
}
.qside .row {
  font-size: 13.5px;
}
.p-market .chartbox {
  flex: 1;
  min-height: 0;
}
.terminal .p-curve.on {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
}
.p-curve .curve {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px 14px;
}
.p-curve .chead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.p-curve .ccv {
  flex: 1;
  width: 100%;
  min-height: 0;
}
.clegend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.clegend > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  font: 500 11px/1.35 var(--mono);
  border: 1px dashed color-mix(in srgb, var(--ph) 22%, transparent);
  border-radius: 3px;
  opacity: 0.7;
}
.clegend > div.on {
  opacity: 1;
  border-style: solid;
  border-color: var(--ph);
  background: color-mix(in srgb, var(--ph) 8%, transparent);
}
.clegend b {
  font-size: 12px;
}
.cnote {
  padding: 12px 14px;
  border: 1px dashed color-mix(in srgb, var(--ph) 22%, transparent);
  border-radius: 4px;
}
.cnote ul {
  margin: 8px 0 0;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  opacity: 0.85;
}
.cside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.p-curve .rewards {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px;
}
.p-curve .rewards .row {
  font-size: 14px;
}
/* desk */
.p-over .sum {
  max-width: none;
  justify-content: space-between;
  text-align: left;
  padding-bottom: 14px;
  border-bottom: 1px dashed color-mix(in srgb, var(--ph) 25%, transparent);
}
.p-over .sum .v {
  font-size: 22px;
}
.p-over .cols {
  flex: none;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.howto {
  padding: 14px 16px;
  border: 1px dashed color-mix(in srgb, var(--ph) 25%, transparent);
  border-radius: 4px;
}
.howto ol {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.9;
  font-size: 14px;
}
.p-list .list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 2px;
}
.p-list .mgrid {
  height: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px 10px;
}
.hall .p-list .mgrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.p-list .mcard {
  min-height: 0;
}
.p-list .mcard .art {
  aspect-ratio: auto;
  height: 96px;
}
.lfoot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 12.5px/1 var(--mono);
}
.lfoot .abar {
  padding: 4px 8px;
}
.desk .p-rw.on {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.p-rw section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed color-mix(in srgb, var(--ph) 25%, transparent);
  border-radius: 4px;
}
.p-rw .gtab {
  font-size: 13.5px;
}
.p-rw .gtab td,
.p-rw .gtab th {
  padding: 7px 8px 7px 0;
}
.strip {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.strip .shd {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.strip .mgrid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.strip .mcard .art {
  aspect-ratio: auto;
  height: 74px;
}
.ggrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.gtile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ph) 4%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 22%, transparent);
}
.gtile:hover,
.gtile:focus-visible {
  box-shadow: inset 0 0 0 1px var(--ph);
}
.gtile .art {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 2px;
}
.gtile .l1 {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font: 600 12px/1.3 var(--mono);
}
.gtile .l2 {
  font: 500 11px/1.3 var(--mono);
  opacity: 0.65;
}
/* hall */
.scr .hall .stats {
  max-width: none;
}
.scr .stats > div {
  min-width: 0;
}
.scr .stats .v {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gbars {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.gb {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border: 1px dashed color-mix(in srgb, var(--ph) 25%, transparent);
  border-radius: 4px;
}
.gb .l1 {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font: 600 12px/1.3 var(--mono);
}
.gb .l1,
.gb .l2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gb .l2 {
  font: 500 11px/1.3 var(--mono);
  opacity: 0.65;
}
.gbar {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 22%, transparent);
}
.gbar i {
  display: block;
  height: 100%;
  background: var(--ph);
}
.top6 {
  flex: 1;
  min-height: 0;
}
.top6 .mgrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
/* rarity */
.p-gens .gens {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.p-gens .gen .art {
  max-height: 120px;
}
.p-gens .gen .row {
  font-size: 12px;
}
.p-traits .tlist {
  display: block;
  columns: 2;
  column-gap: 34px;
  overflow: hidden;
}
.p-traits .trow {
  break-inside: avoid;
  margin-bottom: 7px;
  font-size: 13px;
}
.rarity .p-calc.on {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.p-calc section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lrow {
  display: flex;
  gap: 8px;
}
.lrow .inp {
  flex: 1;
  font-size: 16px;
}
.p-calc .gtab {
  font-size: 13.5px;
}
/* tape, otc */
.p-tape .feed {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.p-tape .feed li {
  font-size: 13.5px;
  padding: 6px 4px;
}
.p-otc.on {
  justify-content: center;
}
.p-otc .soon {
  flex: none;
  max-width: 820px;
}
/* machine detail and the buy reveal, over the page */
.dlayer .detail {
  position: absolute;
  inset: 0;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 26px;
  overflow: hidden;
}
.dlayer .detail .close {
  top: 14px;
  right: 16px;
}
.terminal .reveal {
  z-index: 10;
  padding: 20px 30px;
  overflow: hidden;
}
.terminal .reveal .mgrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.terminal .reveal .art {
  aspect-ratio: auto;
  height: 96px;
}

/* ------------------------------------------------------------------ phones: the screen is a sheet under the machine */
@media (max-width: 760px) {
  .hud {
    height: 58px;
    padding: 0 12px;
  }
  .wm b {
    font-size: 18px;
  }
  .wm i {
    font-size: 12px;
  }
  .wallet {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
  .wallet b {
    display: none;
  }
  .mtag b {
    padding: 4px 8px 5px 7px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .mtag i,
  .hint {
    display: none;
  }
  .scr {
    left: 0 !important;
    right: 0;
    top: 32vh !important;
    bottom: 0;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    transition: opacity 0.35s;
    font-size: 14px;
  }
  .scr,
  .room-flat .scr {
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    overflow: hidden;
  }
  .room-flat .scr {
    top: 62px !important;
  }
  /* on a phone the sheet is a flat panel under the room: no zoom, scrolling pages */
  .sglass {
    width: 100%;
    height: 100%;
    zoom: 1;
  }
  .sfx {
    background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  }
  .shead {
    height: 42px;
    padding: 0 14px;
  }
  .ssub,
  .sclock {
    display: none;
  }
  .page.on {
    overflow-y: auto;
    padding: 12px 14px;
  }
  .page > * {
    flex: none !important;
  }
  .p-curve .ccv {
    height: 200px;
  }
  .clegend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .terminal .p-trade.on,
  .terminal .p-curve.on,
  .desk .p-rw.on,
  .rarity .p-calc.on,
  .p-over .cols {
    display: flex !important;
    flex-direction: column;
  }
  .scr .stats,
  .gbars,
  .ggrid,
  .strip .mgrid,
  .p-gens .gens,
  .top6 .mgrid,
  .p-list .mgrid,
  .hall .p-list .mgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }
  .p-list .list,
  .p-tape .feed,
  .p-traits .tlist {
    overflow: visible;
  }
  .p-traits .tlist {
    columns: 1;
  }
  .p-market .chartbox {
    min-height: 220px;
  }
  .dlayer .detail {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .skeys {
    height: 52px;
    padding: 0 10px;
    gap: 6px;
  }
  .sk {
    padding: 0 10px 0 6px;
    font-size: 13px;
  }
  .sk.esc {
    font-size: 0;
    gap: 0;
    padding: 0 6px;
  }
  .sk.esc b {
    font-size: 11px;
  }
  .dock {
    left: 10px;
    right: 10px;
    bottom: 22px;
    width: auto;
  }
  .room-flat .tags {
    left: 10px;
    right: 10px;
    top: 74px;
    width: auto;
    translate: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .protocol-fee-note {
    display: none;
  }
  .local-banner {
    left: 10px;
    right: 10px;
    bottom: 6px;
    text-align: center;
  }
  .chint {
    bottom: 22px;
    font-size: 12px;
  }
  .chint .or,
  .chint kbd {
    display: none;
  }
  .ltop span:last-child {
    display: none;
  }
  .scr .sum {
    flex-direction: column;
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }
  .market > * {
    flex: none !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  .chartbox {
    min-height: 200px;
  }
  .gens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .feed li {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }
  .feed .who {
    display: none;
  }
  .mgrid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .txline.wait::after,
  .mcard.ignite,
  .scr {
    animation: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------ the manual (/docs/): read on the computer */
html:has(body.manualpage),
html:has(body.manualpage) body {
  height: auto;
  overflow: visible;
  overflow-y: auto;
}
.manualpage .hud {
  z-index: 30;
}
.mnav {
  display: flex;
  gap: 10px;
}
.mnav .key {
  min-height: 36px;
  padding: 0 14px;
}
.manual {
  --ph: #8ff7d8;
  color: var(--ph);
  font: 14.5px/1.75 var(--sans);
}
/* no scripts: an ordinary page */
html:not(.mjs) .manual {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 24px;
}
.mscreen {
  --ph: #8ff7d8;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 1.6% / 2.1%;
  background: radial-gradient(130% 110% at 50% 40%, color-mix(in srgb, var(--ph) 7%, #050b08) 0, #030605 75%);
  will-change: transform, opacity;
}
.mscreen.live {
  pointer-events: auto;
}
.mscreen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px),
    radial-gradient(140% 120% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
}
.mjs .manual {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.mindex {
  padding: 26px 0 26px 22px;
  border-right: 1px dashed color-mix(in srgb, var(--ph) 25%, transparent);
  overflow-y: auto;
  scrollbar-width: none;
}
.mindex ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: ch;
}
.mindex li {
  counter-increment: ch;
}
.mindex a {
  display: flex;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  color: color-mix(in srgb, var(--ph) 62%, transparent);
  text-decoration: none;
  font: 600 13px/1.35 var(--sans);
  border-radius: 3px 0 0 3px;
}
.mindex a::before {
  content: counter(ch, decimal-leading-zero);
  font: 600 11px/1.6 var(--mono);
  opacity: 0.6;
}
.mindex a:hover {
  color: var(--ph);
}
.mindex a.on {
  background: var(--ph);
  color: #031008;
}
.mk {
  font: 700 10.5px/1.2 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ph) 55%, transparent);
}
.mview {
  position: relative;
  overflow: hidden;
}
.room-flat .mview,
html:not(.mjs) .mview {
  overflow-y: auto;
}
.mscroll {
  padding: 34px 40px 140px;
  max-width: 860px;
  text-shadow: 0 0 0.5em color-mix(in srgb, var(--ph) 25%, transparent);
  will-change: transform;
}
.mcover {
  padding-bottom: 26px;
  margin-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--ph) 22%, transparent);
}
.mcover h1 {
  margin: 12px 0 10px;
  font: 46px/1.08 var(--display);
  letter-spacing: 0.01em;
  color: var(--ph);
}
.manual section {
  padding: 30px 0 8px;
  border-bottom: 1px dashed color-mix(in srgb, var(--ph) 16%, transparent);
}
.manual h2 {
  margin: 8px 0 12px;
  font: 700 24px/1.25 var(--sans);
  color: var(--ph);
}
.manual p {
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--ph) 88%, white);
}
.manual b {
  color: var(--ph);
}
.mnote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--ph);
  background: color-mix(in srgb, var(--ph) 6%, transparent);
  font-size: 13.5px;
}
.mnote b {
  display: block;
  margin-bottom: 4px;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.18em;
}
.mtable {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font: 13px/1.4 var(--sans);
}
.mtable th {
  text-align: left;
  font: 700 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--ph) 55%, transparent);
  padding: 8px 10px 8px 0;
}
.mtable td {
  padding: 8px 10px 8px 0;
  border-top: 1px solid color-mix(in srgb, var(--ph) 16%, transparent);
  word-break: break-all;
}
.mtable td:last-child {
  font-family: var(--mono);
}
.mcode {
  margin: 14px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 18%, transparent);
  font: 12.5px/1.6 var(--mono);
  color: var(--ph);
  white-space: pre;
}
.mc {
  color: color-mix(in srgb, var(--ph) 50%, transparent);
}
.mterms,
.mfaq {
  margin: 10px 0;
}
.mterms dt,
.mfaq dt {
  margin-top: 12px;
  font: 700 14.5px/1.4 var(--sans);
  color: var(--ph);
}
.mterms dd,
.mfaq dd {
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--ph) 80%, white);
}
.msteps {
  margin: 10px 0;
  padding-left: 22px;
}
.msteps li {
  margin: 6px 0;
}
.mroad {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.mroad > div {
  padding: 12px 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 22%, transparent);
}
.mroad b {
  display: block;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.18em;
}
.mroad span {
  display: block;
  margin: 6px 0;
  font: 700 16px/1.3 var(--sans);
}
.mroad ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
}
.mend {
  margin-top: 30px !important;
  text-align: center;
  opacity: 0.5;
}
.mcue {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.24em;
  color: rgba(236, 228, 212, 0.8);
  text-shadow: 0 2px 10px #000;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mcue i {
  width: 1px;
  height: 26px;
  background: linear-gradient(rgba(236, 228, 212, 0.8), transparent);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  50% {
    transform: translateY(6px);
    opacity: 0.4;
  }
}
.mcue.off,
.room-flat .mcue {
  opacity: 0;
}
/* widgets, drawn in the screen's phosphor */
.manual .w {
  margin: 16px 0;
}
.manual .btn,
.manual .inp {
  --face: transparent;
  color: var(--ph);
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 55%, transparent);
  border-radius: 3px;
  font-family: var(--mono);
  text-decoration: none;
}
.manual .btn.mint {
  background: var(--ph);
  color: #031008;
}
.manual input[type="range"] {
  accent-color: var(--ph);
  flex: 1;
}
.wgens {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.wgen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ph) 4%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 22%, transparent);
  color: var(--ph);
  text-align: left;
  font: 12px/1.3 var(--sans);
}
.wgen:hover {
  box-shadow: inset 0 0 0 1px var(--ph);
}
.wgen b {
  font-size: 13px;
}
.wgen span {
  opacity: 0.6;
}
.wrow {
  margin: 12px 0;
}
.wpick {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 12px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 22%, transparent);
}
.wpick .big {
  font: 30px/1 var(--display);
  color: var(--ph);
}
.wpick .rows {
  margin: 10px 0 12px;
}
.wpick .row b {
  font: 600 12px/1.4 var(--mono);
}
.wslider,
.wfield {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  font: 600 12.5px/1.3 var(--mono);
}
.wfield > span:first-child {
  min-width: 190px;
}
.wline {
  font: 600 13px/1.5 var(--mono);
}
.wmachines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.wm {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 600 11px/1 var(--mono);
  text-align: center;
}
.wout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.wout > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 22%, transparent);
}
.wout span {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  opacity: 0.6;
}
.wout b {
  font: 700 20px/1.1 var(--mono);
}
.wbar {
  display: flex;
  height: 14px;
  gap: 2px;
  margin: 10px 0;
  padding: 2px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph) 30%, transparent);
}
.wbar i {
  transition: flex-grow 0.2s;
}
.wbar .a {
  background: color-mix(in srgb, var(--ph) 35%, transparent);
}
.wbar .b {
  background: var(--ph);
}
/* no GPU: the manual in a plain ivory monitor */
.room-flat .mscreen {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  left: 50%;
  top: 80px;
  bottom: 20px;
  width: min(1120px, calc(100vw - 40px));
  translate: -50% 0;
  transform: none !important;
  border-radius: 14px;
  box-shadow:
    0 0 0 14px #d9ccb0,
    0 0 0 15px #a8987a,
    0 40px 90px -20px #000;
}
@media (max-width: 760px) {
  .mscreen {
    left: 0 !important;
    top: 58px !important;
    right: 0;
    bottom: 0;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    border-radius: 0;
  }
  .mjs .manual {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .mindex {
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--ph) 25%, transparent);
    overflow-x: auto;
    white-space: nowrap;
  }
  .mindex .mk {
    display: none;
  }
  .mindex ol {
    display: flex;
    gap: 4px;
    margin: 0;
  }
  .mscroll {
    padding: 20px 16px 120px;
  }
  .mcover h1 {
    font-size: 32px;
  }
  .wgens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wpick {
    grid-template-columns: 1fr;
  }
  .wfield {
    flex-wrap: wrap;
  }
  .mnav .key:last-child {
    display: none;
  }
  html:not(.mjs) .manual {
    grid-template-columns: 1fr;
  }
}
