@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("../fonts/ms_sans_serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("../fonts/ms_sans_serif_bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("../fonts/vt323.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --desktop-teal: #008080;
  --chrome: #c0c0c0;
  --chrome-light: #ffffff;
  --chrome-soft: #dfdfdf;
  --chrome-mid: #808080;
  --chrome-dark: #000000;
  --text: #000000;
  --paper: #ffffff;
  --void: #000000;
  --pois-hair: #e8742a;
  --pois-skin: #f4a08e;
  --pois-lips: #d62f2f;
  --pois-shorts: #a6e03c;
  --pois-spots: #8e44c9;
  --pois-earring: #2bb8c9;
  --title-active: linear-gradient(90deg, var(--pois-hair), var(--pois-skin));
  --title-inactive: linear-gradient(90deg, #808080, #b5b5b5);
  --bevel-out: inset -1px -1px var(--chrome-dark), inset 1px 1px var(--chrome-light), inset -2px -2px var(--chrome-mid), inset 2px 2px var(--chrome-soft);
  --bevel-in: inset -1px -1px var(--chrome-light), inset 1px 1px var(--chrome-dark), inset -2px -2px var(--chrome-soft), inset 2px 2px var(--chrome-mid);
  --bevel-field: inset -1px -1px var(--chrome-light), inset 1px 1px var(--chrome-mid), inset -2px -2px var(--chrome-soft), inset 2px 2px var(--chrome-dark);
  --font-ui: "Pixelated MS Sans Serif", Tahoma, "MS Sans Serif", Arial, sans-serif;
  --font-display: "VT323", "Courier New", monospace;
  --font-mono: "VT323", "Courier New", Courier, monospace;
  --taskbar-h: 40px;
  --icon-size: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--desktop-teal);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.3;
}

html { background: var(--desktop-teal); }

body {
  min-height: 100dvh;
  overflow: hidden;
}

img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 1px dotted var(--text);
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.pix { image-rendering: pixelated; }

/* Bevels */
.bevel-out { box-shadow: var(--bevel-out); }
.bevel-in { box-shadow: var(--bevel-in); }
.bevel-field { box-shadow: var(--bevel-field); background: var(--paper); }

.btn95 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 76px;
  padding: 2px 12px;
  border: 0;
  background: var(--chrome);
  box-shadow: var(--bevel-out);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.btn95:active, .btn95.is-in {
  box-shadow: var(--bevel-in);
  padding-top: 3px;
  padding-bottom: 1px;
}
.btn95.default { font-weight: 700; box-shadow: inset 0 0 0 1px var(--chrome-dark), var(--bevel-out); }
.btn95.small { min-width: 0; min-height: 22px; padding: 0 6px; }
.btn95:disabled { color: var(--chrome-mid); text-shadow: 1px 1px 0 var(--chrome-light); cursor: default; }

/* Boot */
#boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  color: var(--chrome);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  display: none;
}
#boot.is-on { display: flex; flex-direction: column; }
#boot.bios { padding: 24px 32px; background: #000; }
#boot.splash {
  background: var(--desktop-teal);
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  text-align: center;
}
#boot .bios-line { white-space: pre-wrap; }
#boot .blink { animation: blink 1s step-end infinite; }
#boot .skip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}
#boot.splash h1 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 700;
  text-shadow: 3px 3px 0 #000;
  color: #fff;
}
#boot.splash h1 span { color: var(--pois-hair); }
#boot .bar {
  width: min(360px, 100%);
  height: 26px;
  background: var(--chrome);
  box-shadow: var(--bevel-field);
  padding: 3px;
}
#boot .bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, var(--pois-hair) 0 10px, #fff 10px 12px);
}
#boot .status { font-family: var(--font-ui); font-size: 13px; color: #fff; text-shadow: 1px 1px 0 #000; min-height: 1.3em; }
#boot .mascot { width: 180px; height: 180px; object-fit: contain; animation: bob 1.2s ease-in-out infinite; }

/* Desktop shell */
#os {
  display: none;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  background: var(--desktop-teal);
}
#os.is-on { display: flex; }
#os.wall-hair { background: var(--pois-hair); }
#os.wall-shorts { background: var(--pois-shorts); }
#os.wall-spots { background: var(--pois-spots); }
#os.wall-void { background: #000; }

#desktop {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

#windows {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
#windows .window { pointer-events: auto; }

#icons {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 88px);
  align-content: start;
  justify-content: start;
  gap: 4px 8px;
  padding: 8px 8px 8px 8px;
  pointer-events: none;
}
#icons > * { pointer-events: auto; }

.icon {
  width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: url("../assets/cursor-pois.png") 2 2, pointer;
  padding: 4px 2px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  font-size: 12px;
  text-align: center;
  min-width: 0;
}
.icon .glyph {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.icon .label {
  padding: 1px 3px;
  max-width: 82px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.icon.is-sel .label,
.icon:focus-visible .label {
  background: var(--pois-hair);
  outline: 1px dotted #fff;
}

#play-game {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: url("../assets/cursor-pois.png") 2 2, pointer;
  color: #fff;
}
#play-game .frame {
  width: 104px;
  height: 104px;
  background: var(--chrome);
  box-shadow: var(--bevel-out);
  padding: 4px;
}
#play-game .frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--desktop-teal);
}
#play-game .tag {
  background: var(--pois-hair);
  color: #fff;
  font-weight: 700;
  padding: 2px 8px;
  outline: 1px dotted #fff;
  text-shadow: 1px 1px 0 #000;
  font-size: 15px;
}

#buddy {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 8px;
  max-width: min(360px, calc(100% - 24px));
}
#buddy button.face {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: url("../assets/cursor-pois.png") 2 2, pointer;
  flex: 0 0 auto;
}
#buddy button.face img { width: 72px; height: 72px; object-fit: contain; }
#buddy .bubble {
  display: none;
  background: var(--chrome);
  box-shadow: var(--bevel-out);
  padding: 8px 10px;
  font-size: 13px;
  max-width: 240px;
}
#buddy .bubble.is-on { display: block; }

/* Windows */
.window {
  position: absolute;
  z-index: 10;
  left: 120px;
  top: 36px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  min-height: 120px;
  max-width: calc(100% - 8px);
  background: var(--chrome);
  box-shadow: var(--bevel-out), 2px 2px 0 rgba(0,0,0,.35);
  padding: 3px;
}
.window.is-min { display: none; }
.window.is-max {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
}
.window.is-shake { animation: shake 0.45s linear; }
.window.modal-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 3px 0 4px;
  background: var(--title-inactive);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: grab;
  user-select: none;
  flex: 0 0 auto;
}
.window.is-active .titlebar { background: var(--title-active); }
.titlebar .ti {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.titlebar .tb {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}
.titlebar .tb button {
  width: 16px;
  height: 14px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: var(--chrome);
  box-shadow: var(--bevel-out);
  border: 0;
  cursor: pointer;
  color: #000;
  font-size: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.titlebar .tb button:active { box-shadow: var(--bevel-in); }

.win-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--chrome);
}

.menu95 {
  display: flex;
  gap: 0;
  height: 24px;
  align-items: center;
  padding: 0 4px;
  flex: 0 0 auto;
  position: relative;
}
.menu95 > .m {
  position: relative;
}
.menu95 button.top {
  border: 0;
  background: transparent;
  padding: 2px 8px;
  min-height: 20px;
  cursor: pointer;
}
.menu95 button.top:hover, .menu95 button.top.is-open {
  background: var(--pois-hair);
  color: #fff;
}
.menu95 .drop {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 20;
  min-width: 180px;
  background: var(--chrome);
  box-shadow: var(--bevel-out);
  padding: 2px;
}
.menu95 .m.is-open .drop { display: block; }
.menu95 .drop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 4px 16px;
  min-height: 24px;
  cursor: pointer;
}
.menu95 .drop button:hover:not(:disabled) { background: var(--pois-hair); color: #fff; }
.menu95 .drop button:disabled { color: var(--chrome-mid); cursor: default; }

.scroll95 { overflow: auto; }
.field {
  background: var(--paper);
  box-shadow: var(--bevel-field);
  padding: 8px;
}

/* Taskbar */
#taskbar {
  position: relative;
  z-index: 5000;
  flex: 0 0 var(--taskbar-h);
  height: var(--taskbar-h);
  background: var(--chrome);
  box-shadow: inset 0 1px 0 var(--chrome-light);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  min-width: 0;
}
#start-btn {
  min-width: 64px;
  height: 32px;
  font-weight: 700;
  padding: 0 8px;
  gap: 6px;
}
#start-btn img { width: 20px; height: 20px; }
#start-btn.is-in { box-shadow: var(--bevel-in); }
#tasks {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 3px;
  overflow: hidden;
}
#tasks button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
  height: 30px;
  justify-content: flex-start;
  padding: 0 8px;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tasks button img, #tasks button .glyph { width: 16px; height: 16px; flex: 0 0 16px; }
#tray {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px;
  box-shadow: var(--bevel-in);
  font-size: 13px;
  white-space: nowrap;
}
#tray .clock { font-variant-numeric: tabular-nums; }
#tray .emo { margin-left: 4px; }

/* Start menu */
#start-menu {
  display: none;
  position: absolute;
  left: 4px;
  bottom: calc(var(--taskbar-h) + 2px);
  z-index: 6000;
  width: min(280px, calc(100% - 8px));
  max-height: min(520px, calc(100dvh - var(--taskbar-h) - 16px));
  background: var(--chrome);
  box-shadow: var(--bevel-out);
  padding: 3px;
  flex-direction: row;
}
#start-menu.is-open { display: flex; }
#start-menu .banner {
  width: 28px;
  flex: 0 0 28px;
  background: linear-gradient(0deg, var(--pois-hair), var(--pois-skin));
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}
#start-menu .list {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  padding: 2px;
}
#start-menu .item,
#start-menu .sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 4px 8px;
  cursor: pointer;
}
#start-menu .item:hover,
#start-menu .sub-item:hover {
  background: var(--pois-hair);
  color: #fff;
}
#start-menu .glyph { width: 32px; height: 32px; flex: 0 0 32px; }
#start-menu .has-sub { position: relative; }
#start-menu .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 180px;
  background: var(--chrome);
  box-shadow: var(--bevel-out);
  padding: 2px;
  z-index: 2;
}
#start-menu .has-sub:hover .submenu,
#start-menu .has-sub:focus-within .submenu { display: block; }

/* App chrome */
pre.lore {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  white-space: pre-wrap;
  margin: 12px 0;
  line-height: 1.35;
}
figure.shot { margin: 0 0 8px; display: inline-block; max-width: 100%; }
figure.shot img { display: block; width: min(340px, 100%); height: auto; }
figure.shot.wide img { width: min(480px, 100%); }
figure.shot figcaption { font-family: "Courier New", Courier, monospace; font-size: 12px; text-align: center; margin-top: 4px; }

.ca-row {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  word-break: break-all;
  background: var(--paper);
  box-shadow: var(--bevel-field);
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.grid-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  padding: 8px;
}
.grid-files button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  cursor: pointer;
  min-width: 0;
}
.grid-files button img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #000;
  box-shadow: var(--bevel-in);
}
.grid-files button span { font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.grid-files button:hover { background: var(--pois-hair); color: #fff; }

.wizard { display: flex; flex: 1; min-height: 0; }
.wizard .side {
  width: 35%;
  flex: 0 0 35%;
  background: linear-gradient(180deg, var(--desktop-teal), #00b3b3 60%, var(--pois-earring));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.wizard .side img { width: 150px; height: 150px; object-fit: contain; }
.wizard .pane { flex: 1; min-width: 0; padding: 12px; overflow: auto; display: flex; flex-col: column; flex-direction: column; gap: 8px; }
.wizard .pane h3 { margin: 0 0 6px; font-size: 15px; }
.wizard .pane p { margin: 0 0 8px; }
.wizard .actions { display: flex; justify-content: flex-end; gap: 6px; padding: 8px; border-top: 1px solid var(--chrome-mid); box-shadow: inset 0 1px 0 var(--chrome-light); }

/* Explorer geo page */
.geo {
  min-height: 100%;
  padding: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--pois-shorts);
  background-color: #000020;
  background-image: radial-gradient(1px 1px at 10px 20px, #fff, transparent), radial-gradient(1px 1px at 60px 80px, #fff, transparent), radial-gradient(2px 2px at 120px 40px, #ff0, transparent);
  background-size: 180px 140px;
}
.geo .marq {
  overflow: hidden;
  background: var(--pois-spots);
  color: #ffff00;
  font-weight: 700;
  padding: 4px 0;
  border: 2px solid #ffff00;
  white-space: nowrap;
}
.geo .marq span { display: inline-block; padding-left: 100%; animation: marquee 14s linear infinite; }
.geo h2 {
  margin: 12px 0 6px;
  font-size: 32px;
  color: var(--pois-hair);
  text-shadow: 3px 3px 0 var(--pois-spots);
}
.geo a { color: #66aaff; }
.geo .counter span {
  display: inline-flex;
  width: 20px;
  height: 30px;
  background: #222;
  color: #3f3;
  font-family: var(--font-mono);
  font-size: 22px;
  align-items: center;
  justify-content: center;
}
.geo .new { color: #ff0000; font-weight: 700; font-size: 14px; animation: blink 1s step-end infinite; margin-right: 6px; }

/* Paint */
.paint-wrap { display: flex; flex: 1; min-height: 0; min-width: 0; }
.paint-tools { display: flex; flex-direction: column; gap: 2px; padding: 4px; width: 56px; flex: 0 0 56px; overflow: auto; }
.paint-tools button { min-width: 48px; min-height: 32px; }
.paint-stage { flex: 1; min-width: 0; overflow: auto; background: var(--chrome-mid); padding: 6px; }
.paint-stage canvas { background: #fff; display: block; max-width: 100%; height: auto; box-shadow: var(--bevel-in); cursor: crosshair; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 4px; }
.swatches button { width: 100%; aspect-ratio: 1; min-height: 0; min-width: 0; padding: 0; border: 1px solid #000; box-shadow: none; }

/* System / tables */
.tabs { display: flex; gap: 2px; }
.tabs button { min-width: 80px; }
table.list95 { width: 100%; border-collapse: collapse; text-align: left; }
table.list95 th { font-weight: 400; height: 22px; padding: 0 8px; box-shadow: var(--bevel-out); }
table.list95 td { padding: 4px 8px; }

.help-about {
  margin-top: 12px;
  font-size: 11px;
  color: #222;
  line-height: 1.4;
}

/* Chart */
.chart-msg { display: flex; gap: 12px; align-items: flex-start; padding: 4px; }
.chart-msg .lips { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--pois-lips); margin: 4px 0; }
.chart-msg .bang { font-size: 20px; font-weight: 700; margin: 0; }

/* DOS */
#dos {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  color: #c0c0c0;
  font-family: var(--font-mono);
  font-size: 18px;
  padding: 12px;
  flex-direction: column;
}
#dos.is-on { display: flex; }
#dos-log { flex: 1; overflow: auto; white-space: pre-wrap; }
#dos-form { display: flex; gap: 0; }
#dos-form span { flex: 0 0 auto; }
#dos-in {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #c0c0c0;
  font: inherit;
  min-width: 0;
}

/* Shutdown */
#power {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: var(--desktop-teal);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 22px;
  text-shadow: 2px 2px 0 #000;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
#power.is-on { display: flex; flex-direction: column; gap: 16px; }

/* Toast */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--taskbar-h) + 16px);
  transform: translateX(-50%);
  z-index: 12000;
  background: var(--chrome);
  box-shadow: var(--bevel-out);
  padding: 8px 14px;
  max-width: calc(100% - 24px);
  display: none;
}
#toast.is-on { display: block; }

body.os-cursor, body.os-cursor button, body.os-cursor a {
  cursor: url("../assets/cursor-pois.png") 2 2, pointer;
}
body.is-busy, body.is-busy * { cursor: progress; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes shake {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(6px, -2px); }
  60% { transform: translate(-4px, -1px); }
  80% { transform: translate(4px, 1px); }
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
  :root { --taskbar-h: 48px; }
  #icons {
    inset: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    grid-auto-flow: unset;
    grid-template-rows: unset;
    align-items: flex-start;
    align-content: start;
    height: 108px;
    bottom: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .icon { width: 76px; flex: 0 0 76px; }
  #play-game { top: 116px; right: 8px; }
  #play-game .frame { width: 80px; height: 80px; }
  #buddy { bottom: 8px; right: 8px; }

  .window:not(.is-modal):not(.no-sheet) {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: min(78dvh, 100%) !important;
    max-width: none;
    transform: none;
    border-radius: 8px 8px 0 0;
  }
  .window.no-sheet:not(.is-max) {
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%);
    width: min(96vw, 420px) !important;
    height: auto !important;
    max-height: calc(100dvh - var(--taskbar-h) - 16px);
  }
  .window.is-modal, .window.modal-center {
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%);
    width: min(96vw, 420px) !important;
    height: auto !important;
    max-height: calc(100dvh - var(--taskbar-h) - 16px);
  }
  .titlebar { height: 36px; font-size: 15px; }
  .titlebar .tb button { width: 28px; height: 28px; font-size: 14px; }
  .btn95 { min-height: 40px; padding: 4px 14px; }
  #start-menu .item { min-height: 48px; font-size: 16px; }
  .menu95 { height: 40px; }
  .wizard { flex-direction: column; }
  .wizard .side { width: 100%; flex-basis: 110px; height: 110px; }
  .wizard .side img { width: 100px; height: 100px; }
  #boot { font-size: 18px; }
  #tasks button { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  #boot .mascot, #boot .blink, .geo .marq span, .geo .new, .window.is-shake {
    animation: none !important;
  }
}
