/* ===== Room, desk, monitor, keyboard ===== */
:root {
  --bg: #120e17;
  --wall: #2a2140;
  --wood: #6e4b2e;
  --wood-hi: #8a603b;
  --wood-edge: #3d2716;
  --beige: #ddd4bc;
  --beige-d: #c4ba9f;
  --beige-dd: #9d937a;
  --key: #ebe4cf;
  --key-mod: #c3bca9;
  --ink: #ebe5f3;
  --muted: #a99fbd;
  --kbh: 212px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }

.intro { max-width: 1100px; margin: 0 auto; padding: 28px 16px 6px; text-align: center; }
.intro h1 {
  font-family: 'Orbitron', sans-serif; font-weight: 800; letter-spacing: .22em;
  font-size: clamp(20px, 4vw, 34px); margin: 0 0 6px; color: #f3ecff;
  text-shadow: 0 0 14px #b84dff99;
}
.intro p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.outro { max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; text-align: center; color: var(--muted); font-size: 13px; }
.outro p { margin: 4px 0; }
.outro a { color: #d6b8ff; }

/* ---------- Room ---------- */
.room {
  position: relative;
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 44px 16px 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 35% 45% at 11% 28%, #2dff7a14, transparent 70%),
    radial-gradient(circle at 50% 120%, #00000088, transparent 60%),
    radial-gradient(#ffffff0b 1.4px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(135deg, transparent 0 46%, #ffffff06 46% 54%, transparent 54%) 0 0 / 44px 44px,
    var(--wall);
}
.wall { position: absolute; inset: 0; pointer-events: none; }

.matrix-poster { /* her poster image, img/matrix-poster.png */
  position: absolute; left: 3%; top: 34px; width: 150px; height: 225px; overflow: hidden;
  background: #000; border: 3px solid #0a0a0a; transform: rotate(-1.5deg);
  box-shadow: 4px 6px 16px #0009, 0 0 50px #2dff7a2e;
}
.matrix-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }

.poster {
  position: absolute; right: 5%; top: 38px; width: 150px; height: 205px;
  background: linear-gradient(#170530, #3b0c5c 55%, #0b0418 55%);
  border: 4px solid #111; box-shadow: 4px 6px 16px #0008;
  transform: rotate(2deg); overflow: hidden;
}
.poster-sun {
  position: absolute; left: 50%; top: 52px; width: 90px; height: 90px; margin-left: -45px;
  border-radius: 50%;
  background: repeating-linear-gradient(#ffcf3a 0 9px, #ff3fa4 9px 12px, transparent 12px 14px), linear-gradient(#ffcf3a, #ff3fa4);
  -webkit-mask: linear-gradient(#000 0 60%, transparent 60%);
          mask: linear-gradient(#000 0 60%, transparent 60%);
}
.poster-grid {
  position: absolute; left: -40%; right: -40%; bottom: 0; height: 46%;
  background:
    repeating-linear-gradient(90deg, #ff3fd2 0 1px, transparent 1px 18px),
    repeating-linear-gradient(#ff3fd2 0 1px, transparent 1px 12px);
  transform: perspective(120px) rotateX(55deg); transform-origin: top;
}
.poster-title {
  position: absolute; top: 10px; left: 0; right: 0; text-align: center;
  font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 19px; line-height: 1;
  color: #5ff; text-shadow: 0 0 8px #0ff;
}
.poster-title small { display: block; font-size: 12px; color: #ffcf3a; text-shadow: none; margin-top: 2px; }

.shelf { position: absolute; right: 3%; top: 326px; width: 200px; }
.shelf-board { position: absolute; left: 0; right: 0; top: 52px; height: 9px; background: var(--wood-hi); box-shadow: 0 6px 10px #0007; }
.boxes { display: flex; gap: 4px; align-items: flex-end; height: 52px; padding-left: 8px; }
/* two books lying on their sides, spines out, with the mug on top */
.stack { display: flex; flex-direction: column; align-items: flex-start; }
.stack .mug { margin-left: 62px; }
.stack .dune { /* her box-set photo's green Dune spine, turned on its side: img/dune-spine-side.jpg */
  display: block; width: 168px; height: auto; margin-left: 9px;
  border-radius: 2px; box-shadow: 0 2px 2px #0007;
}
.stack .simulacra { /* the dark green cloth hardcover from The Matrix, gold title on the spine */
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 184px; height: 28px; padding: 0 7px; border-radius: 3px 3px 2px 2px;
  background:
    repeating-linear-gradient(90deg, #ffffff08 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, #0000001a 0 1px, transparent 1px 3px),
    linear-gradient(#2f7040, #1f5230 55%, #173f25);
  color: #d9c47e; font: 600 9.5px Georgia, 'Times New Roman', serif; letter-spacing: .1em; white-space: nowrap;
  text-shadow: 0 1px 0 #0008;
  box-shadow: inset 0 2px 0 #ffffff1f, inset 0 -2px 0 #0005, 2px 3px 5px #0009;
}
.stack .simulacra i { width: 4px; height: 100%; border-left: 1px solid #c9b46c99; border-right: 1px solid #c9b46c99; }   /* gold bands */

/* ---------- Desk ---------- */
.desk {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 600px) 1fr;
  grid-template-areas: "lava computer right" ". keyboard mouse";
  align-items: end;
  column-gap: 16px;
  margin: 0 -16px;
  padding: 0 16px;
  background: linear-gradient(transparent 0 calc(100% - var(--kbh) - 52px),
                              var(--wood-hi) calc(100% - var(--kbh) - 52px),
                              var(--wood) calc(100% - var(--kbh) - 30px),
                              var(--wood) calc(100% - 16px),
                              var(--wood-edge) calc(100% - 16px));
}

.computer { grid-area: computer; position: relative; z-index: 1; }

/* ---------- Monitor ---------- */
/* moulded beige plastic: fine texture, top edge catching the room light, right and bottom edges rolling into shadow */
.monitor {
  position: relative;
  background:
    radial-gradient(#0000000a 1px, transparent 1.2px) 0 0 / 3px 3px,
    linear-gradient(170deg, #f2ebd8, #ddd4bc 50%, #c9bfa5);
  border-radius: 22px 22px 16px 16px;
  padding: 30px 34px 0;
  box-shadow:
    0 30px 50px -12px #000d,                 /* cast shadow on the wall and desk */
    0 0 0 1px #0000001f,
    inset 0 2px 0 #fffffff0,                 /* crisp top edge */
    inset 0 16px 18px -12px #ffffff99,       /* top edge curving toward the light */
    inset 14px 0 16px -12px #ffffff55,       /* left edge, lit */
    inset -16px 0 18px -12px #00000038,      /* right edge, turning away */
    inset 0 -20px 22px -14px #0000004d;      /* bottom edge, in shadow */
}
.monitor::before { /* the top of the deep tube housing behind the front frame (seen slightly from above, like the speakers) */
  content: ''; position: absolute; left: 6%; right: 6%; top: -24px; height: 30px; z-index: -1;
  border-radius: 10px 10px 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, #00000014 9px 11px) 50% 7px / 34% 7px no-repeat,
    linear-gradient(#cbc2a8, #e4dcc7 55%, #efe8d5);
  clip-path: polygon(11% 0, 89% 0, 100% 100%, 0 100%);
}
.bezel { position: relative; }
.bezel::before { /* the sloped frame down to the tube (top slope in shadow, bottom slope lit) with a dark gasket at the glass */
  content: ''; position: absolute; inset: -16px; border-radius: 38px / 34px;
  border: 16px solid; border-color: #988e75 #c6bca2 #f7f1e1 #b3a98f;
  background: #1d1c19;
  box-shadow: inset 0 0 0 1px #0005, 0 2px 0 #fffc, 0 -2px 2px #0000002e;
}
.screen {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #050605;
  border-radius: 26px / 22px;
  overflow: hidden;
  box-shadow: 0 0 0 2px #1d1c19, inset 0 0 50px #000;
}
.screen.off { background: radial-gradient(ellipse 85% 75% at 50% 45%, #3a3f3e, #202423 60%, #121413); }  /* slightly convex dark tube glass */
.viewport { position: absolute; inset: 0; transform-origin: center; }
.os {
  position: absolute; left: 0; top: 0; width: 640px; height: 480px;
  transform-origin: 0 0; overflow: hidden;
  background: #000;
}
.scanlines, .glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
/* a mid-90s monitor: sharp picture, only a whisper of scanline and edge shading */
.scanlines {
  background: repeating-linear-gradient(#0000 0 1px, #00000059 1px 3px);
  mix-blend-mode: multiply;
  opacity: .1;
}
.glare { /* soft reflection of the room light on the curved glass; the frame above casts a shadow onto the recessed tube */
  background: radial-gradient(ellipse 90% 55% at 35% -5%, #ffffff12, transparent 60%);
  box-shadow: inset 0 0 22px 2px #0008, inset 0 16px 18px -10px #000a;
}
.screen.off .glare { /* switched off, the reflection shows more */
  background:
    radial-gradient(ellipse 90% 55% at 35% -5%, #ffffff2a, transparent 62%),
    radial-gradient(ellipse 30% 20% at 78% 85%, #ffffff0c, transparent 70%);
}

.screen.off .viewport { opacity: 0; }
.screen.powering-on .viewport { animation: crtOn .7s ease-out both; }
.screen.powering-off .viewport { animation: crtOff .55s ease-in both; }
@keyframes crtOn {
  0%   { transform: scale(1, .004); filter: brightness(4); opacity: 1; }
  35%  { transform: scale(1, .004); filter: brightness(4); }
  70%  { transform: scale(1, 1.04); filter: brightness(1.6); }
  100% { transform: scale(1, 1); filter: brightness(1); }
}
@keyframes crtOff {
  0%   { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
  50%  { transform: scale(1, .006); filter: brightness(5); }
  85%  { transform: scale(.006, .006); filter: brightness(8); opacity: 1; }
  100% { transform: scale(0, 0); opacity: 0; }
}

.sticky { /* stuck on the right edge of the frame, off the glass and clear of the buttons */
  position: absolute; right: -88px; top: 26%; z-index: 2;
  width: 74px; padding: 10px 6px 14px;
  background: #fff27a; color: #333;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', cursive; font-size: 13px; text-align: center;
  transform: rotate(-7deg); box-shadow: 2px 3px 6px #0005;
}

.chin { /* the top 16px are taken by the sloped frame around the glass (.bezel::before), so the controls start below it */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 66px; padding: 18px 14px 6px;
}
.brand { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: .25em; color: #7d755f; text-shadow: 0 1px 0 #fff8; }
.brand b { font-weight: 500; }
.knobs { display: flex; align-items: center; gap: 10px; }
.knobs i { /* brightness / contrast / position: just for looks */
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f6f0de, #b9b09a);
  box-shadow: 0 1px 0 #fff9, inset 0 -1px 2px #0003, 0 0 0 1px #0000001a;
}
.pwr { justify-self: end; display: flex; align-items: center; gap: 10px; }
.chin-btn {
  background: var(--beige-d); border: 0; border-radius: 3px; padding: 4px 8px;
  font-size: 10px; letter-spacing: .15em; color: #6f6852;
  box-shadow: inset 0 -2px 0 #0002, 0 1px 0 #fff8;
}
.chin-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px #0003; }
/* power LED: amber blinking standby while off (that's the "press me"), steady green when on */
.led {
  width: 7px; height: 7px; border-radius: 50%;
  background: #f0a020; box-shadow: 0 0 5px #f0a020, inset 0 -1px 1px #0004;
  animation: standby 1.8s ease-in-out infinite;
}
.led.on { animation: none; background: #6dff6d; box-shadow: 0 0 8px #6dff6d; }
@keyframes standby { 50% { background: #5e4210; box-shadow: inset 0 1px 1px #0006; } }
.well { /* the power button sits in a slot moulded into the case */
  display: inline-flex; padding: 3px; border-radius: 7px;
  background: linear-gradient(#b3a98f, #cfc6ad);
  box-shadow: inset 0 2px 3px #0006, inset 0 -1px 0 #0002, 0 1px 0 #fffc;
}
.pwr-box { display: flex; flex-direction: row-reverse; align-items: center; gap: 7px; }   /* label to the left of the button */
.pwr-box small { font: 600 8px 'Orbitron', sans-serif; letter-spacing: .22em; color: #8a8169; text-shadow: 0 1px 0 #fff9; }
.power { /* square, like the real ones */
  width: 40px; height: 30px; border-radius: 4px; border: 0;
  background: linear-gradient(#f7f1df, #d9d0b8);
  box-shadow: 0 1px 0 #8f8670, inset 0 1px 0 #fff, inset 0 -2px 2px #0002;
  position: relative;
}
.power::after { /* the ⏻ symbol, centred */
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -7px 0 0 -8px;
  border: 2px solid #7d755f; border-top-color: transparent; border-radius: 50%;
}
.power::before { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 10px; margin: -11px 0 0 -1px; background: #7d755f; z-index: 1; }
.power:active { transform: translateY(1px); box-shadow: inset 0 1px 3px #0004; }
/* while the monitor is off: the symbol lights amber and the button face breathes warm light, in step with the standby LED.
   Everything stays inside the button, so nothing floats outside the case. */
.power.hint { animation: hint 1.8s ease-in-out infinite; }
.power.hint::after { border-color: #e08a10; border-top-color: transparent; }
.power.hint::before { background: #e08a10; }
@keyframes hint {
  0%, 100% { box-shadow: 0 1px 0 #8f8670, inset 0 1px 0 #fff, inset 0 -2px 2px #0002; }
  50%      { box-shadow: 0 1px 0 #8f8670, inset 0 1px 0 #fff, inset 0 0 14px #ffb84dcc; }
}

/* swivel stand: a short neck on a round foot */
.stand { /* in the monitor's shadow, so darker at the top */
  width: 26%; height: 16px; margin: 0 auto;
  background: linear-gradient(#8f8670, #b9af95 60%, #c9bfa5);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}
.mon-foot { /* named mon-foot, not foot: the screens use .foot too */
  width: 54%; height: 22px; margin: -3px auto 0; border-radius: 50%;
  background: radial-gradient(ellipse 65% 70% at 50% 35%, #f1ead6, #d4cbb3 60%, #b3a98f);
  box-shadow: 0 6px 9px #0007, inset 0 -4px 0 #00000026;
}

/* ---------- Speakers: one each side of the monitor ---------- */
.spk {
  position: absolute; bottom: 0; width: 68px; height: 172px; padding: 0; border: 0;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(90deg, #c9bfa5, #ece5d1 22%, #e2dac4 70%, #bdb398);
  box-shadow: 0 10px 14px #0008, inset 0 2px 0 #fff9, inset 0 -4px 0 #0002;
}
.spk-l { left: -88px; }
.spk-r { right: -88px; cursor: pointer; }
.spk::before { /* top face, seen from slightly above */
  content: ''; position: absolute; left: 2px; right: 2px; top: -9px; height: 10px;
  background: linear-gradient(#c8bfa6, #efe8d4);
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}
.spk .port { position: absolute; left: 17px; right: 17px; top: 14px; height: 9px; border-radius: 5px; background: #2b2a26; box-shadow: inset 0 2px 3px #000, 0 1px 0 #fff8; }
.spk .grille {
  position: absolute; left: 9px; right: 9px; top: 34px; bottom: 36px; border-radius: 6px;
  background:
    radial-gradient(circle at 50% 60%, #0000004d 0 17px, #ffffff0d 18px 20px, transparent 21px),
    radial-gradient(#6f7376 1px, transparent 1.4px) 0 0 / 4px 4px,
    linear-gradient(#55595c, #3c4043);
  box-shadow: inset 0 2px 4px #0009, 0 1px 0 #fff9;
}
.spk .knob { position: absolute; left: 11px; bottom: 9px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3ecd8, #a99f86); box-shadow: 0 1px 2px #0006, inset 0 0 0 1px #0001; }
.spk .sled { position: absolute; right: 14px; bottom: 14px; width: 6px; height: 6px; border-radius: 50%; background: #3c4a35; box-shadow: inset 0 1px 1px #0006; }
.spk[aria-pressed="true"] .sled { background: #6dff6d; box-shadow: 0 0 6px #6dff6d; }
.spk em { position: absolute; left: 0; right: 0; bottom: 26px; font-style: normal; font-size: 8px; letter-spacing: .08em; color: #6f6852; text-align: center; }
.spk[aria-pressed="true"] em { color: #2f8f2f; }

/* ---------- Desk props ---------- */
/* lava lamp: an SVG (chrome cap and base, glowing liquid, gooey glossy wax moved by js/lava.js) */
.lava { grid-area: lava; justify-self: start; margin-left: 6px; position: relative; z-index: 0; }
.lava::before { /* its light on the wall */
  content: ''; position: absolute; left: -90px; right: -90px; top: 10px; bottom: -20px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, #ff3d8a40, #ff3d8a14 60%, transparent);
}
.lava::after { /* and the pool of light on the desk */
  content: ''; position: absolute; left: -24px; right: -24px; bottom: -12px; height: 28px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, #ff7a5a70, transparent);
}
.lava svg { display: block; width: 88px; height: auto; overflow: visible; }

.desk-right { grid-area: right; justify-self: end; display: flex; align-items: flex-end; gap: 14px; }
.floppy-box svg { display: block; width: 130px; height: auto; }   /* drawn by js/floppies.js */
.mug { /* white mug with a Memphis-style wrap, drawn in index.html */
  display: block; width: 58px; height: 54px;
  filter: drop-shadow(2px 3px 3px #0008);
}
.mug svg { display: block; width: 100%; height: 100%; }

/* ---------- Keyboard: IBM Model M style (layout built in crt.js) ---------- */
.keyboard { /* light grey case with a raised lip around a recessed tray */
  grid-area: keyboard; position: relative; z-index: 1;
  height: var(--kbh); margin: 24px 0 28px; padding: 20px 12px 12px;
  background: linear-gradient(#f1efe9, #dcd9d0);
  border-radius: 10px 10px 14px 14px;
  box-shadow: 0 12px 20px #0009, inset 0 2px 0 #fff, inset 0 -5px 0 #00000024, inset 2px 0 0 #ffffff80, inset -2px 0 0 #0000001a;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.kb-badge {
  position: absolute; left: 20px; top: 5px; height: 11px; padding: 0 6px; border-radius: 2px;
  background: linear-gradient(#e3e7ef, #a3abbd); box-shadow: 0 1px 0 #fff, inset 0 0 0 1px #0002;
  font: 700 7px/11px Verdana, sans-serif; letter-spacing: .12em; color: #26366e;
}
.kb-well {
  height: 100%; display: flex; gap: 2.2%; padding: 4px; border-radius: 4px;
  background: #b9b6ad; box-shadow: inset 0 2px 4px #0006, 0 1px 0 #fff;
}
.kb-main { flex: 15 1 0; }
.kb-side { flex: 3 1 0; }
.kb-main, .kb-side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kb-row { flex: 1; display: flex; gap: 3px; }
.kb-frow { margin-bottom: 5px; }          /* the function row sits apart */
.kb-gap { flex: var(--w, 1) 1 0; }
.key { /* sculpted keycap: sloped sides (the button) under a smaller dished top (::before) */
  position: relative; flex: var(--w, 1) 1 0; min-width: 0; overflow: hidden;
  border: 0; border-radius: 3px; padding: 0;
  background: linear-gradient(#d9d6ce, #bdbab1);
  box-shadow: 0 2px 0 #8f8c84, 0 3px 3px #0000004d;
  transition: transform .04s, box-shadow .04s;
}
.key::before {
  content: ''; position: absolute; left: 3px; right: 3px; top: 1px; bottom: 4px; border-radius: 3px;
  background: linear-gradient(#f6f4ef, #e3e0d9);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 2px #0000001f;
}
.key.d { background: linear-gradient(#a9a7a0, #908e87); box-shadow: 0 2px 0 #6c6a64, 0 3px 3px #0000004d; }
.key.d::before { background: linear-gradient(#c6c4bd, #b1afa8); box-shadow: inset 0 1px 0 #ffffff80, inset 0 -1px 2px #0000001f; }
.key .lg {
  position: absolute; left: 6px; top: 3px; z-index: 1; pointer-events: none;
  font: 9px/1.05 Arial, Helvetica, sans-serif; color: #2a2a28; text-align: left; white-space: pre;
}
.key.d .lg { font-size: 8px; }
.kb-side .lg { font-size: 7px; left: 4px; }
.key.down { transform: translateY(2px); box-shadow: 0 0 0 #8f8c84, 0 1px 1px #0000004d; }

.mouse { grid-area: mouse; justify-self: start; align-self: center; margin-left: 10px; }
.mouse i {
  display: block; width: 48px; height: 74px; border-radius: 24px 24px 22px 22px;
  background: linear-gradient(160deg, #eee6d0, var(--beige-d));
  box-shadow: 0 8px 12px #0008, inset 0 -3px 0 #0002;
  position: relative;
}
.mouse i::after { content: ''; position: absolute; left: 23px; top: 0; width: 2px; height: 26px; background: #a99f84; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1040px) {
  .spk-l { display: none; }          /* it would bump into the lava lamp */
  .floppy-box svg { width: 96px; }
}
@media (max-width: 1000px) {
  .desk-right { display: none; }     /* no room left beside the right speaker */
}
@media (max-width: 900px) {
  .matrix-poster, .poster, .shelf { display: none; }
  .desk { grid-template-columns: 70px minmax(0, 1fr) 70px; }
  .lava svg { width: 60px; }
  .mouse { display: none; }
  .spk-r { right: -80px; width: 60px; height: 150px; }
}
@media (max-width: 640px) {
  :root { --kbh: 186px; }
  .room { padding: 20px 12px 0; border-radius: 0; margin-top: 10px; }
  .desk {
    margin: 0 -12px; padding: 0 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "computer" "keyboard";
  }
  .lava, .desk-right { display: none; }
  .monitor { padding: 14px 14px 0; border-radius: 12px; }
  .screen { border-radius: 16px / 13px; box-shadow: 0 0 0 3px #2f2e29, inset 0 0 30px #000; }
  .bezel::before { inset: -7px; border-width: 7px; border-radius: 22px / 19px; }
  .monitor::before { top: -14px; height: 18px; }
  .sticky, .spk { display: none; }
  .chin { height: 46px; gap: 8px; padding: 8px 6px 2px; }
  .pwr-box small { display: none; }
  .power { width: 34px; height: 26px; }
  .knobs { gap: 7px; }
  .knobs i { display: none; }
  .chin .mobile-sound { display: inline-flex; }
  .brand { font-size: 9px; letter-spacing: .15em; }
  .keyboard { margin: 18px -4px 22px; padding: 16px 5px 8px; }
  .kb-side { display: none; }              /* phones get the typing block only; menus can be tapped on screen */
  .kb-frow .key:not([data-k="Escape"]) { visibility: hidden; }   /* ...but keep Esc, it's the way back in Hackers */
  .kb-frow { margin-bottom: 3px; }
  .kb-badge { left: 12px; top: 3px; }
  .kb-row, .kb-main { gap: 2px; }
  .key::before { left: 2px; right: 2px; bottom: 3px; }
  .key .lg, .key.d .lg { font-size: 7px; left: 3px; top: 2px; }
  .intro p { font-size: 14px; }
}
.mobile-sound {
  display: none; align-items: center; gap: 4px;
  background: var(--beige-d); border: 0; border-radius: 3px; padding: 4px 7px;
  font-size: 10px; letter-spacing: .1em; color: #6f6852;
}
.mobile-sound[aria-pressed="true"] { color: #2f8f2f; }

/* ---------- Shared OS chrome ---------- */
.os * { box-sizing: border-box; }
.os .boot {
  position: absolute; inset: 0; padding: 26px 30px;
  font-family: 'VT323', monospace; font-size: 24px; line-height: 1.15; color: #c8c8c8;
  background: #000;
  white-space: pre-wrap;
}
.os .boot .sel { color: #000; background: #c8c8c8; }
.os .boot .menu-item { cursor: pointer; display: inline-block; padding: 0 6px; margin-left: -6px; }
.os .boot .dim { color: #7a7a7a; }
.os .cursor { display: inline-block; width: .55em; height: 1em; vertical-align: -.12em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
