/* Moksha Desktop 98 — collage shell over 98.css
   Type: Yatra One, Baloo 2, Kaushan Script, Tiro Devanagari Hindi (all OFL, vendored) */

@font-face {
  font-family: "Yatra One";
  src: url("../fonts/YatraOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2.ttf") format("truetype-variations");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Kaushan Script";
  src: url("../fonts/KaushanScript-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Tiro Devanagari Hindi";
  src: url("../fonts/TiroDevanagariHindi-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --taskbar-h: 30px;
  --sky: #2C64C8;
  --paper: #F3EAD3;
  --ink-a: #FF48B0;
  --ink-b: #0078BF;
  --sign-yellow: #FFE419;
  --sign-red: #D7261E;
  --sign-cyan: #1FB8E6;
  --outline: #1A0F2E;
  --hills: #4E9A2A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--sky);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#desktop {
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  overflow: hidden;
  touch-action: none;
  background: var(--sky);
}

/* slow cloud drift without touching layout */
#desktop::before {
  content: "";
  position: absolute;
  inset: -3%;
  background: url("../assets/wallpaper.svg") center 58% / cover no-repeat;
  animation: skyDrift 90s linear infinite alternate;
  z-index: 0;
  will-change: transform;
}
@keyframes skyDrift {
  from { transform: translateX(-12px) scale(1.01); }
  to   { transform: translateX(48px) scale(1.01); }
}

/* ---------- collage ---------- */
#collage-back, #collage-front {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#collage-back { z-index: 1; }
#collage-front { z-index: 3; }

.cut {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  user-select: none;
  filter:
    drop-shadow(3px 0 0 #fff)
    drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff)
    drop-shadow(0 -3px 0 #fff)
    drop-shadow(7px 8px 0 rgba(26, 15, 46, 0.22));
}

.stem {
  left: 0;
  top: 0;
  width: 170px;
  height: 100%;
}
.ghost {
  left: 76%;
  top: -3%;
  width: 260px;
  height: 340px;
  opacity: 0.45;
  transform: rotate(9deg);
}
.lotus-tl {
  left: -110px;
  top: -80px;
  width: 340px;
  height: 340px;
  transform: rotate(-10deg);
}
.lotus-bl {
  left: -90px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  transform: rotate(8deg);
}
.lotus-sm {
  left: 63%;
  bottom: -70px;
  width: 190px;
  height: 190px;
  transform: rotate(-4deg);
  z-index: 7;
}
.lips {
  left: 63.5%;
  top: 4.5%;
  width: 350px;
  height: 228px;
  transform: rotate(-8deg);
}
.eye-stack {
  right: -60px;
  bottom: 20px;
  width: 330px;
}
.eye-stack svg { display: block; width: 100%; height: auto; }
.eye-stack .eye2 { margin-top: -26px; margin-left: 46px; }
.stickers {
  left: 44%;
  bottom: 40px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.stickers svg {
  display: block;
  background: #fff;
  border: 2px solid var(--outline);
  border-radius: 7px;
  padding: 3px;
}
.stickers svg:nth-child(1) { width: 48px; height: 48px; }
.stickers svg:nth-child(2) { width: 40px; height: 50px; }
.stickers svg:nth-child(3) { width: 58px; height: 34px; }

/* front layer */
.dancer {
  left: 67%;
  top: 20%;
  width: 236px;
  height: 399px;
  transform: rotate(-4deg);
}
.note {
  left: 19%;
  bottom: 6.5%;
  width: 300px;
  height: 150px;
  transform: rotate(-6deg);
}
.fairy {
  right: 16%;
  top: 4%;
  width: 92px;
  height: 78px;
  transform: rotate(12deg);
  animation: fairyWiggle 4s ease-in-out infinite;
}
@keyframes fairyWiggle {
  0%, 100% { transform: rotate(9deg); }
  50% { transform: rotate(15deg); }
}
.tape { width: 120px; height: 33px; }
.tape svg { width: 100%; height: 100%; display: block; }
.tape-a { left: 34%; top: 1.5%; transform: rotate(-13deg); opacity: 0.95; }
.tape-b { left: 30.5%; bottom: 15.5%; transform: rotate(7deg); opacity: 0.92; }

.hand-script {
  position: absolute;
  left: 12%;
  bottom: 9%;
  font-family: "Kaushan Script", cursive;
  font-size: 46px;
  color: #fff;
  transform: rotate(-8deg);
  text-shadow: 2px 2px 0 var(--outline);
  letter-spacing: 0.01em;
}

/* ---------- the sign ---------- */
#sign {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}
#sign { pointer-events: auto; cursor: grab; touch-action: none; }
#sign.dragging { cursor: grabbing; }
.sign-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px 40px 15px;
  isolation: isolate;
}
/* the ragged tin plate lives behind the type so no glyph can be clipped */
.sign-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 12%, rgba(26, 15, 46, 0.10), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(26, 15, 46, 0.09), transparent 30%),
    var(--sign-yellow);
  border: 3px solid var(--sign-red);
  clip-path: polygon(1% 4%, 96.5% 0.6%, 100% 11%, 99% 90%, 96% 100%, 2% 97%, 0.4% 86%, 0% 14%);
  box-shadow: 7px 7px 0 var(--sign-cyan), 10px 11px 0 rgba(26, 15, 46, 0.22);
}
.sign-dev {
  font-family: "Yatra One", "Noto Sans Devanagari", serif;
  font-size: 60px;
  line-height: 1;
  white-space: nowrap;
  color: var(--sign-red);
  text-shadow: 3px 3px 0 var(--sign-cyan);
}
.sign-lat {
  display: flex;
  align-items: center;
  gap: 0.34em;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  margin-top: 2px;
  white-space: nowrap;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--sign-red);
  text-shadow: 3px 3px 0 var(--sign-cyan);
}
.sign-lat em {
  font-style: normal;
  font-size: 1.16em;
  letter-spacing: 0.04em;
  color: #fff8dc;
  background: var(--sign-red);
  padding: 0 0.22em 0.06em;
  border: 2px solid #8c0f0a;
  box-shadow: 3px 3px 0 var(--sign-cyan);
  transform: rotate(-2deg);
  text-shadow: 1px 1px 0 #6d0703;
}
.sign-micro {
  font-family: "Tiro Devanagari Hindi", serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-top: 6px;
  color: #7a2013;
  opacity: 0.9;
  white-space: nowrap;
}

/* ---------- desktop icons ---------- */
#icons {
  position: absolute;
  left: 8px;
  top: 296px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
}

.desk-icon {
  width: 86px;
  padding: 4px 2px 5px;
  border: 1px dotted transparent;
  background: transparent;
  color: #fff;
  text-align: center;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.25;
  cursor: default;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
  padding-inline: 2px;
}
.desk-icon:hover, .desk-icon:focus { outline: none; }
.desk-icon.selected {
  border-color: #fff;
  background: rgba(10, 36, 106, 0.45);
}
.desk-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(2px 2px 0 rgba(26, 15, 46, 0.55));
}
.desk-icon span { word-break: break-word; }

/* ---------- windows ---------- */
#windows { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.window {
  position: absolute;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  padding: 3px;
  box-shadow:
    inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px grey, inset 2px 2px #fff,
    4px 5px 0 rgba(26, 15, 46, 0.28);
  animation: winPop 120ms steps(4);
}
.cut.dragging {
  cursor: grabbing;
  z-index: 9 !important;
  filter:
    drop-shadow(3px 0 0 #fff)
    drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff)
    drop-shadow(0 -3px 0 #fff)
    drop-shadow(11px 13px 0 rgba(26, 15, 46, 0.30));
}

@keyframes winPop {
  from { transform: scale(0.92); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}
.window.hidden { display: none; }

.title-bar { cursor: default; touch-action: none; flex: 0 0 auto; }
#windows .title-bar {
  background: linear-gradient(90deg, #0A246A, #3A6EA5);
}
.title-bar-text { display: flex; align-items: center; gap: 5px; }

/* paint app */
#win-paint {
  left: 24%;
  top: 18%;
  width: 46%;
  min-width: 520px;
  height: 61%;
  min-height: 420px;
}

#win-paint .window-body {
  margin: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.menubar {
  display: flex;
  gap: 12px;
  padding: 1px 4px;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  position: relative;
  flex: 0 0 auto;
  z-index: 20;
}
.menubar > .menu { position: relative; }
.menubar > .menu > button.menu-title {
  min-width: 0;
  min-height: 0;
  padding: 2px 6px;
  background: transparent;
  box-shadow: none;
  color: #222;
  text-shadow: none;
  font-size: 11px;
}
.menubar > .menu > button.menu-title:hover,
.menubar > .menu.open > button.menu-title {
  background: #0A246A;
  color: #fff;
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 176px;
  padding: 2px;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px grey, inset 2px 2px #fff;
  z-index: 40;
}
.menu.open .menu-dropdown { display: block; }
.menu-dropdown button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 19px;
  text-align: left;
  padding: 2px 20px 2px 22px;
  background: transparent;
  box-shadow: none;
  color: #222;
  text-shadow: none;
  font-size: 11px;
  position: relative;
}
.menu-dropdown button:hover { background: #0A246A; color: #fff; }
.menu-dropdown hr { border: none; border-top: 1px solid grey; border-bottom: 1px solid #fff; margin: 3px 2px; }

.paint-main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  gap: 4px;
}

.toolbox {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 25px 25px;
  grid-auto-rows: 25px;
  gap: 1px;
  padding: 2px;
  align-content: start;
  background: silver;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}
.tool {
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
}
.tool[aria-pressed="true"] {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px grey, inset -2px -2px #dfdfdf;
  background: #cfcfcf;
}
.tool svg { width: 14px; height: 14px; display: block; }

.canvas-wrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: 2px;
  border: 9px solid transparent;
  border-image: repeating-linear-gradient(45deg,
      #D7261E 0 10px, #FFE419 10px 20px, #4E9A2A 20px 30px) 9;
  box-shadow: inset 0 0 0 2px rgba(26, 15, 46, 0.55);
}

#gpu-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  cursor: crosshair;
  touch-action: none;
}

.canvas-stamp {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.stamp-hand {
  position: absolute;
  right: 7%;
  top: 26%;
  width: 26%;
  height: auto;
}
.stamp-mandala {
  position: absolute;
  left: -3%;
  bottom: -12%;
  width: 38%;
  height: auto;
}

.gpu-overlay {
  position: absolute;
  inset: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(243, 234, 211, 0.96);
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  color: #222;
  text-align: left;
  padding: 18px;
  line-height: 1.5;
}
.gpu-overlay.show { display: flex; }
.gpu-overlay .box { max-width: 460px; }
.gpu-overlay h4 { margin: 0 0 8px; font-size: 12px; }

.paint-bottom {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding-top: 2px;
}

.palette {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0;
  padding: 2px;
  background: silver;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}
.swatch {
  width: 17px;
  height: 17px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff;
}
.swatch[aria-pressed="true"] { outline: 1px solid #000; outline-offset: 1px; }

.color-chip {
  width: 30px;
  flex: 0 0 auto;
  position: relative;
  background: silver;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}
.color-chip .fg, .color-chip .bg { position: absolute; border: 1px solid #000; }
.color-chip .fg { width: 18px; height: 18px; left: 3px; top: 3px; z-index: 2; background: var(--ink-a); }
.color-chip .bg { width: 16px; height: 16px; left: 10px; top: 10px; background: var(--ink-b); }

.status-bar { flex: 0 0 auto; font-size: 10px; }
.status-bar-field { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* generic windows: above the collage so their contents stay readable */
#win-sys, #win-readme, #win-trash, #win-about { z-index: 7; }
#win-chem { width: 340px; left: 57%; top: 50%; z-index: 8; }
#win-chem fieldset { padding: 10px; }
#win-chem .field-row-stacked + .field-row-stacked { margin-top: 10px; }
#win-chem input[type="range"] { height: 21px; margin-top: 4px; }
#win-chem label { font-size: 11px; }
#win-sys { width: 430px; left: 62%; top: 30%; }
#win-readme { width: 470px; left: 16%; top: 24%; }
#win-trash { width: 380px; left: 30%; top: 28%; }
#win-about { width: 410px; left: 26%; top: 22%; }

.notepad {
  background: #fff;
  padding: 6px 8px;
  height: 260px;
  overflow: auto;
  font-family: "Lucida Console", "DejaVu Sans Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  user-select: text;
}
.notepad b { font-weight: 700; }

table.specs { width: 100%; font-size: 11px; }
table.specs td { padding: 1px 4px; height: 18px; }
table.specs td.k { color: #333; }
table.specs td.v { font-family: "Lucida Console", monospace; font-size: 10px; background: #fff; }

.about-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
}
.about-body svg { width: 58px; height: 58px; flex: 0 0 auto; }

.trash-well {
  height: 170px;
  padding: 6px;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- taskbar ---------- */
#taskbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--taskbar-h);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  background: silver;
  box-shadow: inset 0 1px #fff, inset 0 2px #dfdfdf;
  z-index: 100;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
}
#start {
  min-width: 0;
  flex: 0 0 auto;
  height: 22px;
  padding: 0 7px 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 11px;
}
#start svg { width: 16px; height: 16px; }

#tasks { display: flex; gap: 3px; flex: 1 1 auto; overflow: hidden; }
.task-btn {
  min-width: 0;
  max-width: 170px;
  height: 22px;
  flex: 0 1 auto;
  padding: 0 8px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}
.task-btn[aria-pressed="true"] {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px grey, inset -2px -2px #dfdfdf;
  background: #c9c9c9;
  font-weight: 700;
}

#tray {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 6px;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey;
  font-size: 11px;
}
#tray .lamp {
  width: 9px; height: 9px;
  background: #12b312;
  box-shadow: 0 0 5px #12b312, inset 0 0 2px #fff;
  border-radius: 50%;
  border: 1px solid #064d06;
  display: inline-block;
}
#tray .lamp.bad { background: #d11; box-shadow: 0 0 5px #d11; border-color: #600; }
#tray .lamp.idle { background: #c8a000; box-shadow: none; border-color: #6b5600; }
#gpu-label { font-size: 10px; color: #222; }

/* ---------- start menu ---------- */
#startmenu {
  position: fixed;
  bottom: var(--taskbar-h);
  left: 2px;
  width: 224px;
  display: none;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px grey, inset 2px 2px #fff;
  padding: 2px;
  z-index: 200;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
}
#startmenu.open { display: flex; }
.sm-banner {
  flex: 0 0 24px;
  background: linear-gradient(180deg, #1FB8E6, #0A246A);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #d7ecff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 6px 2px;
  text-align: right;
  display: flex;
  align-items: flex-end;
}
.sm-banner em { color: var(--sign-yellow); font-style: normal; }

.sm-items { flex: 1 1 auto; display: flex; flex-direction: column; }
.sm-items button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  width: 100%;
  padding: 2px 12px 2px 6px;
  text-align: left;
  background: transparent;
  box-shadow: none;
  color: #222;
  text-shadow: none;
  font-size: 11px;
}
.sm-items button:hover { background: #0A246A; color: #fff; }
.sm-items button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.sm-items hr { border: none; border-top: 1px solid grey; border-bottom: 1px solid #fff; margin: 2px 4px; }
.sm-items .sub { font-size: 9px; color: #555; margin-left: auto; }
.sm-items button:hover .sub { color: #cfd9f2; }

/* ---------- shutdown ---------- */
#shutdown {
  position: fixed;
  inset: 0;
  display: none;
  background: #000;
  color: #f7a41d;
  z-index: 999;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  padding: 24px;
}
#shutdown.open { display: flex; }
#shutdown p { font-size: 15px; margin: 0; line-height: 1.6; }
#shutdown small { color: #8a6a1e; font-size: 11px; font-family: "Tiro Devanagari Hindi", serif; }

#toast {
  position: fixed;
  bottom: calc(var(--taskbar-h) + 8px);
  right: 8px;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px grey, inset 2px 2px #fff;
  padding: 8px 12px;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  z-index: 300;
  display: none;
  max-width: 280px;
}
#toast.open { display: block; }

/* ---------- touch ---------- */
@media (pointer: coarse) {
  .toolbox { grid-template-columns: 38px 38px; grid-auto-rows: 38px; }
  .tool svg { width: 18px; height: 18px; }
  .menu-title { padding: 6px 8px !important; }
  .swatch { width: 22px; height: 22px; }
  .status-bar { font-size: 9px; }
}

/* ---------- phone: inset window, collage keeps the frame ---------- */
@media (max-width: 820px) {
  #desktop::before { background-position: 42% 58%; }

  #sign { top: 6px; width: auto; max-width: 94%; }
  .sign-plate { padding: 12px 18px 12px; }
  .sign-dev { font-size: clamp(26px, 8.6vw, 40px); text-shadow: 2px 2px 0 var(--sign-cyan); }
  .sign-lat { font-size: clamp(13px, 4.6vw, 21px); letter-spacing: 0.06em; text-shadow: 2px 2px 0 var(--sign-cyan); }
  .sign-micro { display: none; }

  #icons {
    top: auto;
    bottom: 6px;
    left: 4px;
    right: 4px;
    flex-direction: row;
    gap: 0;
    justify-content: flex-start;
  }
  #icons {
    background: rgba(26, 15, 46, 0.30);
    padding: 3px 2px;
    border-radius: 4px;
    bottom: 4px;
    gap: 2px;
  }
  .desk-icon { width: 64px; font-size: 9px; }
  .desk-icon svg { width: 24px; height: 24px; }

  .window {
    left: 10px !important;
    top: 128px !important;
    width: calc(100% - 20px) !important;
    height: calc(100% - 128px - 118px) !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
  .title-bar-controls button[aria-label="Maximize"],
  .title-bar-controls button[aria-label="Restore"] { display: none; }

  .toolbox { grid-template-columns: 34px; grid-auto-rows: 34px; }
  .paint-bottom { gap: 2px; }
  .palette { align-content: flex-start; }
  .swatch { width: 19px; height: 19px; }
  .menu-dropdown { min-width: 150px; }
  .notepad { height: auto; max-height: 58vh; }
  .stamp-hand { width: 44%; right: -4%; }
  .stamp-mandala { width: 62%; }

  /* collage: edges only, never over the canvas */
  .stem { width: 110px; opacity: 0.9; }
  .ghost { display: none; }
  .lotus-tl { left: -120px; top: -70px; width: 230px; height: 230px; }
  .lotus-bl { left: -110px; bottom: -90px; width: 220px; height: 220px; }
  .lotus-sm { left: 52%; bottom: -60px; width: 130px; height: 130px; }
  .lips { left: auto; right: -70px; top: 118px; width: 190px; height: 124px; }
  .eye-stack { display: none; }
  .stickers { left: 40%; bottom: 24px; gap: 7px; }
  .stickers svg:nth-child(1) { width: 30px; height: 30px; }
  .stickers svg:nth-child(2) { width: 24px; height: 30px; }
  .stickers svg:nth-child(3) { width: 36px; height: 22px; }
  .dancer { left: auto; right: -118px; top: 150px; width: 150px; height: 254px; }
  .note { left: -112px; top: 44%; bottom: auto; width: 150px; height: 75px; }
  .fairy { right: 22%; top: 96px; width: 56px; height: 48px; }
  .tape { display: none; }
  .hand-script { display: none; }

  #win-chem, #win-sys, #win-readme, #win-trash, #win-about { width: calc(100% - 20px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  #desktop::before, .fairy, .window { animation: none !important; }
}
