:root {
  color-scheme: dark;
  --carbon: #17140b;
  --soot: #1f1a10;
  --soot-2: #2b2416;
  --well: #110e08;
  --line: #4a3b22;
  --frame: #7b551f;
  --groove: #523714;
  --outline: #26180a;
  --brass: #b7832d;
  --brass-2: #e6b34a;
  --copper: #c88851;
  --copper-2: #d48f5c;
  --pipe: #a65729;
  --verdigris: #2e4029;
  --screen: #5fe08a;
  --screen-dim: #2d7a4b;
  --parchment: #ead9b8;
  --muted: #a89778;
  --warn: #ff7a59;
  --plastic: #3a2f1c;
  --plastic-2: #4d3d24;
  --display: "Press Start 2P", "Courier New", monospace;
  --body: "VT323", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 20%, #2b241655 0%, transparent 55%),
    linear-gradient(180deg, #1a160e 0%, var(--carbon) 40%, #0e0c08 100%);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.3;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--brass-2);
}

::selection {
  background: var(--copper);
  color: var(--carbon);
}

button,
input {
  font-family: inherit;
  font-size: inherit;
}

.hidden {
  display: none !important;
}

/* CRT overlay */
.crt {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    #0000001f 2px,
    #0000001f 4px
  );
  mix-blend-mode: multiply;
}

.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, #0000008c);
}

/* ========== BOOT / CONSOLE ========== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 70%, #2b241640 0%, transparent 50%),
    #000;
  transition: opacity 0.4s linear;
}

.boot.done {
  opacity: 0;
  pointer-events: none;
}

.console-stage {
  width: min(1120px, 96vw);
  height: min(92vh, 860px);
  transform-origin: 50% 40%;
  transition: transform 1.15s cubic-bezier(0.55, 0, 0.85, 0.35);
}

.boot.zooming .console-stage {
  transform: scale(2.2);
}

.boot.zooming .glass-content {
  opacity: 0;
  animation: none;
}

.boot.zooming .sprite-scene {
  filter: brightness(0.55);
  transition: filter 1.1s linear;
}

/* Layered sprite scene — screen dominates */
.sprite-scene {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  filter: drop-shadow(12px 18px 0 #000);
}

.sprite-scene .sprite {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  user-select: none;
  pointer-events: none;
}

.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.layer-tv {
  z-index: 1;
  inset: 0 0 18% 0;
}

.sprite-tv {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Big CRT glass */
.screen-cutout {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 9%;
  bottom: 14%;
  background: #000;
  overflow: hidden;
  border-radius: 6px;
  box-shadow:
    inset 0 0 60px #000000f2,
    inset 0 0 12px #5fe08a22,
    0 0 0 4px #1a1208,
    0 0 0 7px var(--brass);
}

.screen-cutout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    #00000052 2px,
    #00000052 4px
  );
}

.screen-cutout::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 14%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, #8cffb412, transparent);
  animation: crtroll 5.5s linear infinite;
}

@keyframes crtroll {
  from {
    top: -20%;
  }
  to {
    top: 110%;
  }
}

.glass-content {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 3vw, 36px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.45s linear;
  animation: crtflicker 4s steps(1) infinite;
  z-index: 2;
}

@keyframes crtflicker {
  0%,
  100% {
    opacity: 1;
  }
  7% {
    opacity: 0.96;
  }
  8% {
    opacity: 1;
  }
  31% {
    opacity: 0.93;
  }
  32% {
    opacity: 1;
  }
  63% {
    opacity: 0.97;
  }
  64% {
    opacity: 1;
  }
}

.layer-console {
  z-index: 2;
  inset: auto 8% 0 8%;
  height: 26%;
}

.sprite-console {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.power-led {
  position: absolute;
  left: 14%;
  top: 42%;
  width: 12px;
  height: 12px;
  border-radius: 1px;
  background: #3a2010;
  border: 2px solid var(--outline);
  box-shadow: inset 0 0 0 1px #000;
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 3;
}

.power-led.on {
  background: var(--screen);
  box-shadow: 0 0 10px var(--screen), inset 0 0 0 1px #000;
}

.cart-layer {
  position: absolute;
  left: 44%;
  top: -18%;
  width: 12%;
  z-index: 4;
  transform: translateY(-120%);
  transition: transform 0.55s steps(6);
  filter: drop-shadow(3px 4px 0 #000);
}

.cart-layer.in {
  transform: translateY(0);
}

.sprite-cart {
  width: 100%;
  height: auto;
}

.cart-label {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: clamp(5px, 1vw, 8px);
  color: var(--brass-2);
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.layer-pad {
  z-index: 5;
  inset: auto 1% 1% auto;
  width: min(28%, 280px);
  height: auto;
  animation: ctrlbob 3.2s ease-in-out infinite;
  filter: drop-shadow(6px 8px 0 #000);
}

.sprite-pad {
  width: 100%;
  height: auto;
}

@keyframes ctrlbob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.boot-brand {
  font-family: var(--display);
  font-size: clamp(18px, 3.5vw, 32px);
  color: var(--brass-2);
  letter-spacing: 0.06em;
  text-shadow:
    0 0 8px rgba(95, 224, 138, 0.25),
    3px 3px 0 var(--outline);
  margin-bottom: 8px;
}

.boot-sub {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 22px);
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(95, 224, 138, 0.35);
}

.bootlog {
  font-family: var(--body);
  font-size: clamp(18px, 2.6vw, 24px);
  margin: 0 0 14px;
  min-height: 7.5em;
  color: var(--parchment);
  white-space: pre-wrap;
  text-align: left;
  text-shadow: 0 0 6px rgba(95, 224, 138, 0.35);
}

.bootlog .line {
  display: block;
}

.bootlog .ok {
  color: var(--screen);
}

.bootlog .cur {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--screen);
  vertical-align: -2px;
  animation: blink 1s linear infinite;
}

.bootlog .ready {
  color: var(--screen);
  animation: blink 0.36s linear 5;
}

.bar {
  height: 20px;
  border: 3px solid var(--brass);
  padding: 2px;
  background: var(--well);
}

.bar i {
  display: block;
  height: 100%;
  background: var(--screen);
  box-shadow: inset 0 -3px 0 var(--screen-dim);
  transition: width 0.25s steps(4);
}

.boot-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  text-shadow: 0 0 6px rgba(95, 224, 138, 0.35);
}

.boot-foot .pct {
  font-family: var(--display);
  font-size: 12px;
  color: var(--screen);
}

.press {
  font-family: var(--display);
  font-size: clamp(11px, 2vw, 15px);
  color: var(--brass-2);
  text-align: center;
  margin: 18px 0 0;
  min-height: 1.4em;
  opacity: 0;
  letter-spacing: 0.06em;
  text-shadow: 0 0 6px rgba(95, 224, 138, 0.35);
}

.press.on {
  opacity: 1;
  animation: blink 1.1s linear infinite;
}

@keyframes blink {
  0%,
  60% {
    opacity: 1;
  }
  60.001%,
  100% {
    opacity: 0;
  }
}

/* Wipe transition */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  pointer-events: none;
}

.wipe i {
  background: var(--carbon);
  animation: blockout 0.28s steps(3) forwards;
}

@keyframes blockout {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 1;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* ========== APP SHELL ========== */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  animation: fadein 0.5s ease;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.site {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.site-wide {
  max-width: 1400px;
}

.bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 14px 20px 12px;
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 3px 0 var(--groove), 0 4px #000;
}

.brandlink {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.minilogo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  background: var(--soot);
  border: 3px solid var(--outline);
  box-shadow: 3px 3px 0 #000;
  padding: 2px;
}

.minilogo {
  width: 48px;
  height: 48px;
  background:
    linear-gradient(135deg, var(--brass-2), var(--pipe)),
    var(--soot);
  border: 3px solid var(--outline);
  box-shadow: 3px 3px 0 #000;
  position: relative;
  image-rendering: pixelated;
}

.minilogo::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid var(--carbon);
  background: var(--screen);
  box-shadow: inset 0 0 0 4px var(--screen-dim);
}

.logo {
  font-family: var(--display);
  font-size: 14px;
  color: var(--copper);
  text-shadow: 3px 3px 0 var(--outline);
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--brass-2);
}

.logo small {
  display: block;
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  text-shadow: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.key {
  font-family: var(--display);
  font-size: 10px;
  padding: 12px 14px;
  border: 3px solid var(--brass);
  background: var(--soot-2);
  color: var(--brass-2);
  cursor: pointer;
  box-shadow: 0 5px 0 var(--pipe);
  transition:
    transform 0.08s steps(2),
    box-shadow 0.08s steps(2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.key:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--pipe);
}

.key:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--pipe);
}

.key:focus-visible {
  outline: 3px dashed var(--screen);
  outline-offset: 3px;
}

.key.primary {
  background: var(--brass);
  color: var(--carbon);
  border-color: var(--brass-2);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 10px 0 20px;
}

.eyebrow {
  font-family: var(--display);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.35;
  margin: 0 0 18px;
  color: var(--copper);
  text-shadow: 4px 4px 0 var(--outline);
  letter-spacing: 0.04em;
}

h1 span {
  color: var(--brass-2);
}

.hero > div > p {
  max-width: 34em;
  margin: 0 0 22px;
  font-size: 23px;
  color: var(--parchment);
}

.btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.readouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 26px 0 10px;
}

.readout {
  background: var(--soot);
  border: 3px solid var(--line);
  padding: 10px 12px 8px;
  box-shadow: 4px 4px #000, inset 0 0 0 2px #000;
}

.readout span {
  font-size: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.readout b {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  color: var(--screen);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.readout small {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-top: 6px;
}

.hero-console {
  display: grid;
  place-items: center;
}

.mini-console {
  width: min(340px, 100%);
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.mini-screen {
  background: #000;
  border: 4px solid var(--outline);
  box-shadow:
    0 0 0 3px var(--brass),
    8px 8px 0 #000,
    inset 0 0 30px #5fe08a22;
  padding: 10px;
}

.mini-screen canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #06140a;
}

.mini-base {
  margin-top: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, var(--plastic-2), var(--plastic));
  border: 3px solid var(--outline);
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 8px 8px 0 #000;
}

.mini-base span {
  font-family: var(--display);
  font-size: 9px;
  color: var(--brass-2);
  letter-spacing: 0.06em;
}

.mini-leds {
  display: flex;
  gap: 6px;
}

.mini-leds i {
  width: 8px;
  height: 8px;
  background: #3a2010;
  border: 1px solid #000;
}

.mini-leds i.on {
  background: var(--screen);
  box-shadow: 0 0 6px var(--screen);
}

/* Sections */
.section {
  margin-top: 12px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

h2 {
  font-family: var(--display);
  font-size: 14px;
  margin: 0;
  color: var(--brass-2);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

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

.panel {
  background: var(--soot);
  border: 4px solid var(--line);
  padding: 16px;
  box-shadow: 8px 8px #000, inset 0 0 0 3px #000;
}

.play-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 220px;
}

input[type="text"] {
  background: var(--well);
  color: var(--parchment);
  border: 3px solid var(--line);
  padding: 8px 10px;
  font-family: var(--body);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}

.cart-chip {
  font-family: var(--display);
  font-size: 9px;
  padding: 14px 8px;
  text-align: center;
  border: 3px solid var(--line);
  background: var(--soot-2);
  color: var(--copper);
  cursor: pointer;
  box-shadow: 3px 3px #000;
  letter-spacing: 0.04em;
}

.cart-chip:hover,
.cart-chip.sel {
  border-color: var(--brass-2);
  color: var(--brass-2);
  background: var(--verdigris);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.hint {
  color: var(--muted);
  font-size: 18px;
  margin: 14px 0 0;
}

.hint.warn {
  color: var(--warn);
}

.hint.ok {
  color: var(--screen);
}

.tablewrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 20px;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--display);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td .pill {
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 2px solid var(--line);
  padding: 4px 6px;
}

td .pill.ok {
  color: var(--screen);
  border-color: var(--screen-dim);
}

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.step {
  background: var(--soot);
  border: 3px solid var(--line);
  padding: 14px 16px;
  box-shadow: 5px 5px #000;
}

.step b {
  display: block;
  font-family: var(--display);
  font-size: 10px;
  color: var(--brass-2);
  margin-bottom: 10px;
  line-height: 1.6;
}

.step p {
  margin: 0;
  color: var(--parchment);
  font-size: 20px;
}

.claims {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.claims li {
  background: var(--soot);
  border-left: 6px solid var(--brass);
  padding: 12px 16px;
  font-size: 20px;
}

.claims b {
  color: var(--brass-2);
}

.site-foot {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px 40px;
  border-top: 4px solid var(--frame);
  font-size: 18px;
  color: var(--muted);
}

.credit {
  font-family: var(--display);
  font-size: 10px;
  color: var(--brass-2);
  animation: blink 2.4s linear infinite;
}

/* ========== SHOWROOM ========== */
.showroom-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.showroom-head h2 {
  font-family: var(--display);
  font-size: 14px;
  color: var(--brass-2);
  margin: 0;
}

.room-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-tab {
  font-family: var(--display);
  font-size: 8px;
  padding: 10px 12px;
  border: 3px solid var(--line);
  background: var(--soot);
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px #000;
}

.room-tab:hover {
  color: var(--brass-2);
  border-color: var(--brass);
}

.room-tab.sel {
  color: var(--brass-2);
  border-color: var(--brass-2);
  background: var(--soot-2);
  box-shadow: 3px 3px #000, inset 0 0 0 2px #000;
}

.showroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.55fr);
  gap: 16px;
  align-items: stretch;
}

.room-frame {
  position: relative;
  background: var(--well);
  border: 5px solid var(--brass);
  box-shadow:
    8px 8px #000,
    inset 0 0 0 3px var(--outline),
    inset 0 0 0 6px #3a2a14;
  overflow: hidden;
}

.room-frame::before,
.room-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass-2);
  border: 2px solid var(--outline);
  z-index: 2;
  box-shadow: inset 0 0 0 2px #7a5518;
}

.room-frame::before {
  top: 8px;
  left: 8px;
  box-shadow:
    inset 0 0 0 2px #7a5518,
    calc(100% - 26px) 0 0 0 var(--brass-2);
}

.room-frame::after {
  top: 8px;
  right: 8px;
}

#roomCanvas {
  display: block;
  width: 100%;
  min-height: 560px;
  height: clamp(560px, 68vh, 780px);
  aspect-ratio: auto;
  image-rendering: pixelated;
  cursor: grab;
  background: #0c0a06;
}

#roomCanvas.dragging {
  cursor: grabbing;
}

.room-reset {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  font-size: 8px;
  padding: 10px 10px;
}

.room-slots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--display);
  font-size: 10px;
  color: var(--brass-2);
  background: #000000aa;
  border: 2px solid var(--line);
  padding: 8px 10px;
}

.room-side {
  background: var(--soot);
  border: 4px solid var(--line);
  padding: 16px;
  box-shadow: 8px 8px #000, inset 0 0 0 3px #000;
  min-height: 100%;
}

.room-side h3 {
  font-family: var(--display);
  font-size: 12px;
  color: var(--brass-2);
  margin: 0 0 16px;
  line-height: 1.5;
}

.stats {
  margin: 0;
  display: grid;
  gap: 10px;
}

.stats > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: baseline;
}

.stats dt {
  font-family: var(--display);
  font-size: 9px;
  color: var(--brass-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats dd {
  margin: 0;
  color: var(--screen);
  font-size: 20px;
}

.mining-list {
  color: var(--screen) !important;
  word-break: break-word;
  line-height: 1.35;
}

.side-help {
  margin: 18px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-actions .key {
  width: 100%;
  text-align: center;
}

.models-panel {
  margin-top: 22px;
}

.models-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.model-card {
  background: var(--soot);
  border: 3px solid var(--line);
  box-shadow: 5px 5px #000;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.08s steps(2);
}

.model-card:hover,
.model-card.sel {
  border-color: var(--brass-2);
}

.model-card .preview {
  height: 88px;
  background: var(--well);
  border: 2px solid var(--outline);
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.model-card .preview img {
  max-width: 92%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.model-card b {
  display: block;
  font-family: var(--display);
  font-size: 9px;
  color: var(--brass-2);
  margin-bottom: 6px;
  line-height: 1.5;
}

.model-card small {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.3;
}

.model-card .price {
  margin-top: 8px;
  color: var(--screen);
  font-family: var(--display);
  font-size: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--soot);
  border: 3px solid var(--brass);
  box-shadow: 6px 6px #000;
  padding: 12px 16px;
  font-family: var(--display);
  font-size: 10px;
  color: var(--brass-2);
  max-width: min(520px, calc(100vw - 24px));
  text-align: center;
  line-height: 1.5;
}

.key[aria-pressed="true"] {
  background: var(--verdigris);
  border-color: var(--brass-2);
  color: var(--brass-2);
  box-shadow: inset 0 3px #00000073, 0 2px 0 var(--pipe);
  transform: translateY(3px);
}

@media (max-width: 980px) {
  .showroom-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero-console {
    order: -1;
  }

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

  .controller {
    display: none;
  }

  .console-vent {
    display: none;
  }

  .layer-pad {
    width: min(48%, 200px);
  }
}

@media (max-width: 560px) {
  .bar-top {
    padding-inline: 14px;
  }

  .nav .key {
    font-size: 8px;
    padding: 10px 10px;
  }

  h1 {
    font-size: clamp(24px, 10vw, 36px);
  }

  .room-tab {
    font-size: 7px;
    padding: 8px 8px;
  }
}
