:root {
  color-scheme: dark;
  --ink: #190f1d;
  --frame: #382635;
  --cream: #f1ddd8;
  --muted: #c5a9b9;
  --accent: #ffd39b;
  --wallpaper-light: #566a83;
  --wallpaper-mid: #4d6079;
  --wallpaper-dark: #465972;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

:root[data-wallpaper="mint"] {
  --wallpaper-light: #55817d;
  --wallpaper-mid: #4d7774;
  --wallpaper-dark: #466e6b;
}

:root[data-wallpaper="lilac"] {
  --wallpaper-light: #887d9d;
  --wallpaper-mid: #7b708f;
  --wallpaper-dark: #706683;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: system-ui, sans-serif;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.room {
  position: relative;
  height: 100vh;
  height: 100dvh;
}

.room-viewport {
  --stage-height: calc(100vw * 993 / 1584);
  --stage-width: 100vw;
  --stage-offset-y: calc(max(0px, var(--stage-height) - 100dvh) * .32);
  --vertical-extension: max(0px, (100dvh - var(--stage-height)) / 2);
  --horizontal-extension: max(0px, (100vw - var(--stage-width)) / 2);
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.room-viewport::before, .room-viewport::after {
  position: absolute;
  inset-inline: 0;
  height: var(--vertical-extension);
  background-size: 100% 100%;
  transition: filter 380ms ease;
  content: "";
}

.room-viewport::before { top: 0; background-image: url("assets/room-standard-top.webp"); }
.room-viewport::after { bottom: 0; background-image: url("assets/room-standard-bottom.webp"); }
.lamp-off .room-viewport::before, .lamp-off .room-viewport::after {
  filter: brightness(.53) saturate(.82);
}

.stage {
  --lava-position: 93% 57%;
  --screen-position: 35% 46%;
  position: relative;
  flex: none;
  isolation: isolate;
  container-type: inline-size;
  width: var(--stage-width);
  height: var(--stage-height);
  /* Preserve the illustration's proportions and keep the corkboard in frame. */
  top: var(--stage-offset-y);
  z-index: 1;
  background: #2b1124;
}

.desk-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: filter 380ms ease;
}

.cd-tower {
  position: absolute;
  top: 50.15%;
  left: 73.1%;
  width: 10.7cqw;
  margin: 0;
  container-type: inline-size;
  transform: translate(-50%, -100%);
  pointer-events: none;
  transition: filter 380ms ease;
}

.cd-tower::before {
  position: absolute;
  inset: auto -13% -3% -7%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #230a087d, transparent 72%);
  content: "";
}

.cd-tower img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.cd-spines {
  position: absolute;
  inset: 11.9% 17.5% 4.2% 10.2%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(10, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff1dd;
}

.cd-spines li {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding-inline: 2cqw;
  font: 500 3.8cqw/1 Arial, sans-serif;
  white-space: nowrap;
  pointer-events: auto;
}

.cd-spines li:nth-child(2), .cd-spines li:nth-child(6), .cd-spines li:nth-child(8) { color: #2d1b19; }
.cd-spines li:nth-child(4), .cd-spines li:nth-child(6), .cd-spines li:nth-child(8), .cd-spines li:nth-child(10) { font-size: 3.1cqw; }
.cd-spines strong { font-weight: 750; }

.lamp-off :is(.desk-art, .cd-tower) { filter: brightness(.53) saturate(.82); }

.stage::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at var(--lava-position), #1a0417a8, transparent 28%);
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s ease;
  content: "";
}

.lava-off .stage::before { opacity: 1; }

.stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at var(--lava-position), var(--lava-spill, #f9482d2b), transparent 23%),
    radial-gradient(ellipse at var(--screen-position), #b45cd927, transparent 24%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
  content: "";
}

.lamp-off .stage::after { opacity: 1; }
.lava-off .stage { --lava-spill: transparent; }

.screen {
  background-color: var(--wallpaper-mid);
  background-image:
    repeating-linear-gradient(135deg, transparent 0 3px, var(--wallpaper-dark) 3px 4px, transparent 4px 8px),
    repeating-linear-gradient(45deg, transparent 0 3px, var(--wallpaper-light) 3px 4px, transparent 4px 8px);
}

.screen {
  position: absolute;
  z-index: 2;
  inset: 32.3% 54.4% 40.5% 24.2%;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 4% / 6%;
  box-shadow: inset 0 0 1.15cqw #1b132791;
}

.screen::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(133deg, #fff1e829, transparent 37%),
    repeating-linear-gradient(0deg, #0e0c201c 0 1px, transparent 1px 3px);
  content: "";
}

.desktop-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: stretch;
  gap: .65cqw;
  height: max(14px, 7.8cqw);
  padding-inline: 2.8cqw;
  border-block: 1px solid #f4f2eb;
  border-bottom-color: #3f4246;
  background: linear-gradient(#e8e7e1, #c4c6c9);
  color: #20242a;
  font: 650 max(.44rem, 3.95cqw)/1 Geneva, Verdana, sans-serif;
}

.desktop-mark, .desktop-name {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.desktop-mark { padding-inline: .65cqw; color: #245c63; }

.desktop-name {
  min-width: 0;
  margin: 0 0 0 auto;
  padding-left: 2cqw;
  border-left: 1px solid #9c9fa3;
  font: inherit;
  white-space: nowrap;
}

.desktop-menu { position: relative; }
.desktop-menu summary {
  display: grid;
  height: 100%;
  padding-inline: 1.7cqw;
  place-items: center;
  list-style: none;
  cursor: pointer;
}
.desktop-menu summary::-webkit-details-marker { display: none; }

.desktop-menu-items {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 29cqw;
  padding-block: 1px;
  border: 1px solid #34383e;
  background: #e2e1dc;
  box-shadow: 1px 1px #282c35, inset 1px 1px #fff;
}

.desktop-menu:not([open]) .desktop-menu-items { display: none; }

.desktop-menu-items button {
  display: block;
  width: 100%;
  padding: max(3px, 2cqw) max(4px, 2.6cqw);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: nowrap;
}

.desktop-menu-items [aria-pressed="true"]::before { content: "✓ " / ""; }
.desktop-menu[open] summary,
.desktop-menu :is(summary, button):is(:hover, .cursor-hover) {
  background: #34566d;
  color: #fff;
}
.desktop-menu :is(summary, button):focus-visible { outline-offset: -1px; }

.desktop-icons {
  position: absolute;
  top: max(18px, 11cqw);
  right: 4.5cqw;
  display: grid;
  gap: 2cqw;
}

.desktop-icon {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: max(2px, 1.1cqw);
  min-width: max(36px, 23cqw);
  padding: max(2px, 1cqw);
  border: 0;
  background: transparent;
  color: #1c2129;
  font: 650 max(.46rem, 4cqw)/1.13 Geneva, Verdana, sans-serif;
}

.desktop-icon-label {
  padding: 1px max(2px, .9cqw);
  background: #dfdfd9;
  box-shadow: 1px 1px #1b2d43a8;
}

.desktop-icon:is(:hover, :focus-visible, .cursor-hover) .desktop-icon-label {
  background: #304a72;
  color: #fff;
}
.desktop-icon:focus-visible { outline-offset: 0; }

.desktop-workspace {
  position: absolute;
  inset: max(14px, 7.8cqw) 0 0;
  z-index: 2;
  pointer-events: none;
}

.crt-window {
  position: absolute;
  top: 11%;
  left: 5%;
  display: flex;
  flex-direction: column;
  width: 69%;
  max-height: 89%;
  border: 1px solid #353a40;
  background: #c9c9c5;
  color: #20242a;
  box-shadow: 1px 1px #272d38, inset 1px 1px #f6f3ed;
  font: max(.44rem, 3.6cqw)/1.25 Geneva, Verdana, sans-serif;
  pointer-events: auto;
}

.crt-window[hidden] { display: none; }
.crt-window.is-front { z-index: 1; }
.crt-notebook { top: 23%; left: 11%; width: 74%; max-height: 77%; }

.crt-titlebar {
  position: relative;
  display: grid;
  flex: none;
  min-height: max(13px, 7.4cqw);
  padding-inline: max(12px, 7.6cqw);
  place-items: center;
  border-bottom: 1px solid #797d82;
  background: #c7c8c6;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crt-titlebar:active { cursor: grabbing; }
.is-front .crt-titlebar {
  background: repeating-linear-gradient(#d8d8d3 0 1px, #acaeb1 1px 2px);
}

.crt-titlebar h2 {
  margin: 0;
  padding: 0 max(2px, 1.5cqw);
  background: #deded9;
  font: 700 1em/1.2 Geneva, Verdana, sans-serif;
}

.crt-close {
  position: absolute;
  left: max(2px, 1.1cqw);
  top: 50%;
  width: max(9px, 4.65cqw);
  aspect-ratio: 1;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #4c5259;
  background: #c8cac9;
  box-shadow: inset 1px 1px #f8f7f3, inset -1px -1px #93979d;
}

.crt-close:is(:hover, .cursor-hover) { background: #8496ac; }
.crt-close:focus-visible { outline: 1px solid #263e66; outline-offset: 1px; }

.crt-window-body {
  min-height: 0;
  margin: 1px;
  padding: max(3px, 2.2cqw);
  overflow: auto;
  overscroll-behavior: contain;
  background: #f3f0e6;
}

.crt-window-body :is(h3, p, ul) { margin: 0; }
.crt-window-body h3 { margin-bottom: .25em; font-size: 1em; }
.crt-window-body ul { padding-inline-start: 1em; }

.crt-cursor {
  position: absolute;
  z-index: 6;
  width: 12px;
  height: 17px;
  filter: drop-shadow(0 0 1px #080414);
  pointer-events: none;
}

.crt-cursor::before, .crt-cursor::after {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 68%, 61% 68%, 80% 94%, 62% 100%, 42% 74%, 0 100%);
  background: #fff6f6;
  content: "";
}

.crt-cursor::after {
  inset: 1.5px 2px 3px 1px;
  background: #120e19;
}

.folder-icon, .notebook-icon {
  position: relative;
  display: block;
  height: max(11px, 7.8cqw);
  border: 1px solid;
  box-shadow: inset 1px 1px #ffffffb0, 1px 1px #23314599;
}

.folder-icon {
  width: max(16px, 11.3cqw);
  margin-top: max(2px, 1.2cqw);
  border-color: #3d4b62;
  border-radius: 1px;
  background: linear-gradient(#aebdce, #798da9);
}

.folder-icon::before {
  position: absolute;
  bottom: 100%;
  left: -1px;
  width: 48%;
  height: max(2px, 1.3cqw);
  border: 1px solid #3d4b62;
  border-bottom: 0;
  border-radius: 1px 2px 0 0;
  background: #aebdce;
  content: "";
}

.notebook-icon {
  width: max(12px, 8cqw);
  border-color: #4d535d;
  border-left: 2px solid #65758b;
  border-radius: 0 2px 2px 0;
  background:
    repeating-linear-gradient(#abb2bd 0 1px, transparent 1px 3px) center / 62% 62% no-repeat,
    #efede2;
}

.lava-glass {
  position: absolute;
  z-index: 2;
  inset: 39.9% 2.6% 39.8% 89.65%;
  overflow: hidden;
  clip-path: polygon(25% 0, 76% 0, 99% 77%, 99% 86%, 92% 99%, 8% 99%, 1% 86%, 1% 78%);
  pointer-events: none;
}

.lava-glass::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, #472014, #390710 65%, #290617);
  opacity: 0;
  transition: opacity 1.6s ease;
  content: "";
}

.lava-off .lava-glass::after { opacity: .87; }

.lava-wax {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 1.6s ease, transform 1.9s ease-in;
}

.lava-off .lava-wax { opacity: 0; transform: translateY(16%); }

.hotspot {
  position: absolute;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
}

.hotspot:focus-visible { outline: 0; }

.hotspot:focus-visible::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .66rem;
  height: .66rem;
  transform: translate(-50%, -50%);
  border: 2px solid #fff0cf;
  border-radius: 50%;
  background: #874518;
  box-shadow: 0 0 0 2px #23111e;
  content: "";
}

.hotspot-board { inset: 2.2% 47.2% 76.5% 31%; }
.hotspot-lava { inset: 33.9% 2.5% 24.8% 89.5%; }
.hotspot-notebook { inset: 78% 84.8% 10.5% 0; }

.desk-mouse {
  --mouse-width: 6.6cqw;
  /* Safe travel from the resting point, in fractions of the scene width. */
  --mouse-travel-x: .023;
  --mouse-travel-y: .024;
  top: 82.5%;
  left: 59.5%;
  width: max(44px, var(--mouse-width));
  height: max(44px, calc(var(--mouse-width) * 178 / 240));
  transform: translate(
    calc(-50% + var(--puck-x, 0) * 100cqw),
    calc(-50% + var(--puck-y, 0) * 100cqw)
  );
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.desk-mouse:active { cursor: grabbing; }

.desk-mouse::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--mouse-width);
  aspect-ratio: 240 / 178;
  transform: translate(-50%, -50%);
  background: url("assets/bondi-puck.webp") center / contain no-repeat;
  filter: drop-shadow(1px 2px 2px #24090abf);
  transition: filter 380ms ease;
  pointer-events: none;
  content: "";
}

.desk-mouse:focus-visible::before { z-index: 1; }
.lamp-off .desk-mouse::after { filter: brightness(.53) saturate(.82) drop-shadow(1px 2px 2px #24090abf); }

.mouse-jack { position: absolute; top: 83.4%; left: 54%; pointer-events: none; }
.mouse-cord { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lamp-off .mouse-cord { opacity: .65; }

.radio-knob {
  top: 68.65%;
  left: 83.62%;
  z-index: 4;
  display: grid;
  width: max(44px, 3.65cqw);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.radio-knob::after {
  width: 3.4cqw;
  aspect-ratio: 1;
  transform: rotate(-42deg);
  border-radius: 50%;
  background: linear-gradient(#eab27f, #89492b) center .4cqw / max(1px, .1cqw) .42cqw no-repeat;
  opacity: .9;
  pointer-events: none;
  transition: transform 250ms ease;
  content: "";
}

.radio-knob[aria-pressed="true"]::after { transform: rotate(35deg); }

.radio-dial {
  position: absolute;
  z-index: 2;
  inset: 63.4% 18.2% 32.9% 73.2%;
  border-radius: .19cqw;
  background: #25101a;
  opacity: .74;
  transition: opacity 280ms ease, box-shadow 280ms ease;
  pointer-events: none;
}

.stage:is([data-radio-state="tuning"], [data-radio-state="playing"]) .radio-dial {
  opacity: 1;
  background: transparent;
  box-shadow: 0 0 .65cqw #ff9b4666;
}

.print-controls button {
  min-height: 2.5rem;
  padding: .35rem .75rem;
  border: 1px solid #654858;
  border-radius: .3rem;
  background: #271927;
  font: .815rem/1.15 var(--mono);
}

.print-controls button:hover {
  border-color: #be8f92;
  background: #3d2637;
}

.radio-fallback, .no-script {
  position: absolute;
  z-index: 1;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: .65rem .85rem;
  border-radius: .3rem;
  background: #211321;
  color: var(--muted);
  font-size: .875rem;
}
.radio-fallback a { color: var(--accent); }

.desktop-window {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid #b78d9f;
  border-radius: .54rem;
  background: #241925;
  color: var(--cream);
  box-shadow: 0 1.5rem 6rem #0b050cc9;
}

.desktop-window::backdrop {
  background: #130911ad;
  backdrop-filter: blur(4px);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.15rem;
  padding: .3rem .4rem .3rem .9rem;
  border-bottom: 1px solid #80576d;
  background: linear-gradient(#513648, #3b293d);
  font: .875rem/1.3 var(--mono);
}

.window-close {
  width: 2.45rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid #9a7385;
  border-radius: .25rem;
  background: #322234;
  font-size: 1.45rem;
  line-height: 1;
}

.window-close:hover { background: #654052; }
.window-close:focus-visible { outline-offset: 1px; }

.window-content { padding: clamp(1.1rem, 4vw, 1.85rem); }

.window-content h2 {
  margin: 0;
  color: var(--accent);
  font: 700 clamp(1.6rem, 5vw, 2rem)/1.16 var(--mono);
  letter-spacing: -.075em;
}

.board-window .window-content { background: #4a2c28; }
.print { margin: 0; padding: .55rem .55rem .75rem; background: #f1d8b5; color: #301d24; }
.print img { display: block; width: 100%; height: auto; background: #392030; }
.print figcaption { padding: .65rem .25rem 0; font: .93rem/1.2 var(--mono); }
.print-controls { display: flex; justify-content: space-between; gap: .65rem; margin-top: 1rem; }
.notebook-window ul { margin: .85rem 0 0; padding-inline-start: 1.25rem; line-height: 1.7; }
.notebook-window li + li { margin-top: .3rem; }

.sr-only {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-aspect-ratio: 7/4) {
  .room-viewport {
    /* Keep at least 1238 source pixels in view, from notebook to lava lamp. */
    --stage-height: clamp(100dvh, calc(100vw * 724 / 1238), 106dvh);
    --stage-width: calc(var(--stage-height) * 3);
    --stage-offset-y: calc((var(--stage-height) - 100dvh) / 8);
  }

  .stage {
    --lava-position: 74.1% 57%;
    --screen-position: 41.6% 47.7%;
    left: clamp(0px, calc(var(--stage-height) * .054), (var(--stage-width) - 100vw) / 2);
  }

  .screen { inset: 33.3% 52.4% 38.1% 35.7%; }
  .cd-tower { top: 48.85%; left: 62.15%; width: 7.2cqw; }

  .hotspot-board { inset: 2.6% 47% 74.8% 38.9%; }
  .hotspot-lava { inset: 34.5% 23.6% 22.3% 71.8%; }
  .hotspot-notebook { inset: 80.4% 69.4% 7.8% 20.2%; }
  .desk-mouse {
    --mouse-width: 3.72cqw;
    --mouse-travel-x: .014;
    --mouse-travel-y: .014;
    top: 85.7%;
    left: 55.35%;
  }
  .mouse-jack { top: 86.15%; left: 52.13%; }
  .lava-glass { inset: 41.1% 23.75% 37.5% 72%; }

  .radio-dial { inset: 65.7% 32.53% 30.15% 62.65%; }
  .radio-knob { top: 71.13%; left: 68.55%; width: max(44px, 2.02cqw); }
  .radio-knob::after { width: 1.9cqw; background-size: max(1px, .055cqw) .23cqw; background-position: center .22cqw; }
}

@media (min-aspect-ratio: 3/1) {
  /* Extend only the edge pixels on displays wider than the panorama. */
  .room-viewport::before, .room-viewport::after {
    inset: 0 auto;
    width: var(--horizontal-extension);
    height: var(--stage-height);
    top: calc((100dvh - var(--stage-height)) / 2 + var(--stage-offset-y));
  }

  .room-viewport::before { left: 0; background-image: url("assets/room-wide-left.webp"); }
  .room-viewport::after { right: 0; background-image: url("assets/room-wide-right.webp"); }
}

@media (max-aspect-ratio: 7/8) {
  .room-viewport {
    --stage-height: min(calc(100vw * 1684 / 934), 119dvh);
    --stage-width: calc(var(--stage-height) * 934 / 1684);
    --stage-offset-y: calc(max(0px, var(--stage-height) - 100dvh) / 6);
  }

  .room-viewport::before { background-image: url("assets/room-portrait-top.webp"); }
  .room-viewport::after { background-image: url("assets/room-portrait-bottom.webp"); }

  .stage {
    --lava-position: 87% 50%;
    --screen-position: 45% 48%;
  }

  .screen { inset: 39.55% 36.3% 44.3% 27.6%; }
  .cd-tower { top: 37.15%; left: 86.25%; width: 16.1cqw; }

  .hotspot-board { inset: 16.45% 25.5% 65.6% 39%; }
  .hotspot-lava { inset: 39.4% 6.4% 34.7% 79.5%; }
  .hotspot-notebook, .radio-dial, .radio-knob, .radio-fallback { display: none; }
  .desk-mouse {
    --mouse-width: 9.3cqw;
    --mouse-travel-x: .057;
    --mouse-travel-y: .018;
    top: 68.9%;
    left: 82.4%;
  }
  .mouse-jack { top: 69.7%; left: 71.7%; }
  .lava-glass { inset: 43.24% 6.43% 43.6% 79.55%; }

}

@media (min-aspect-ratio: 55573/84200) and (max-aspect-ratio: 7/8) {
  .room-viewport::before, .room-viewport::after {
    inset: 0 auto;
    width: var(--horizontal-extension);
    height: 100%;
    background-size: 100% var(--stage-height);
    background-position: center calc((100dvh - var(--stage-height)) / 2 + var(--stage-offset-y));
  }

  .room-viewport::before { left: 0; background-image: url("assets/room-portrait-left.webp"); }
  .room-viewport::after { right: 0; background-image: url("assets/room-portrait-right.webp"); }
}

@media (max-width: 600px) and (aspect-ratio < 55573/84200) {
  .room-viewport {
    /* Zoom into the desk while keeping the keyboard and its controls in frame. */
    --stage-height: min(calc(109vw * 1684 / 934), 119dvh);
    --minimum-offset: calc(max(0px, var(--stage-height) - 100dvh) / 6);
    --centered-gap: calc((100dvh - var(--stage-height)) / 2);
    --stage-offset-y: clamp(var(--minimum-offset), calc(var(--centered-gap) + var(--stage-height) * .08), 9dvh);
  }

  .room-viewport::before, .room-viewport::after {
    background-size: var(--stage-width) 100%;
    background-position: center;
  }

  .room-viewport::before { height: max(0px, var(--centered-gap) + var(--stage-offset-y)); }
  .room-viewport::after { height: max(0px, var(--centered-gap) - var(--stage-offset-y)); }
}

@media (prefers-reduced-motion: reduce) {
  .room-viewport::before, .room-viewport::after, .desk-art, .cd-tower, .stage::before, .stage::after, .lava-wax, .lava-glass::after,
  .radio-dial, .radio-knob::after, .desk-mouse::after { transition: none; }
}
