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

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

:root {
  --win-gray: #ece9d8;
  --win-light: #ffffff;
  --win-mid: #aca899;
  --win-dark: #716f64;
  --win-blue: #0754c5;
  --desktop: #4a8bd2;
  --font: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, Arial, sans-serif;
  color: #000;
  font-family: var(--font);
  font-size: 14px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button, input, textarea { font: inherit; }
a { color: inherit; }

html,
body {
  cursor: url("cursors/default.png") 0 0, default;
}

body {
  min-height: 100svh;
  background: var(--desktop);
  overflow: hidden;
  -webkit-font-smoothing: none;
}

button,
[role="button"] {
  cursor: url("cursors/default.png") 0 0, default;
}

a,
button[type="submit"] {
  cursor: pointer;
}

input,
textarea {
  cursor: text;
}

.desktop {
  position: relative;
  min-height: 100svh;
  padding: 20px 22px 56px 118px;
}

.desktop-shortcuts {
  position: absolute;
  top: 16px;
  left: 10px;
  display: grid;
  gap: 22px;
  width: 92px;
}

.desktop-shortcuts a {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px #000;
}

.desktop-shortcuts a:focus { outline: 1px dotted #fff; outline-offset: 3px; }

.shortcut-icon {
  display: grid;
  width: 40px;
  height: 35px;
  place-items: center;
  border: 1px solid #102755;
  background: linear-gradient(135deg, #fff 0 18%, #f6d66d 19% 75%, #b88720 76%);
  box-shadow: 1px 1px 0 #fff inset, 2px 2px 0 rgba(0,0,0,.35);
  color: #071d4c;
  font-size: 12px;
  font-weight: 700;
  text-shadow: none;
}

.retro-window {
  border: 2px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  background: var(--win-gray);
  box-shadow: 1px 1px 0 #000;
}

.home-window {
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% + 40px);
  width: min(980px, calc(100vw - 146px));
  height: min(460px, calc(100svh - 92px));
  min-height: 400px;
  margin: 0;
  display: grid;
  grid-template-rows: 32px 34px 42px 1fr 28px;
  transform: translate(-50%, -50%);
}

.window-titlebar, .dialog-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 4px 7px;
  color: #fff;
  background: linear-gradient(90deg, var(--win-blue), #3a6ea5);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.window-title { display: inline-flex; align-items: center; gap: 7px; }

.tiny-app-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid #fff;
  background: #2f7f79;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.window-controls { display: flex; gap: 2px; }
.window-controls button,
.dialog-titlebar button {
  display: grid;
  width: 23px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: var(--win-gray);
  color: #000;
  font: 700 14px/1 Arial, sans-serif;
}

.window-controls button { background: #2f78d7; color: #fff; }
.window-controls button:last-child,
.dialog-titlebar button { background: #d85b45; color: #fff; }

.home-window.is-closed { display: none; }

.home-window.is-maximized {
  position: fixed;
  inset: 4px 4px 44px;
  z-index: 18;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  transform: none;
}

.window-menu {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 0 13px;
  border-bottom: 1px solid var(--win-mid);
  font-size: 14px;
}

.address-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #808080;
  font-size: 13px;
}

.address-bar strong {
  height: 28px;
  padding: 5px 9px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
  font-weight: 400;
}

.address-bar button,
.start-button,
.confirm-actions button {
  padding: 3px 12px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: var(--win-gray);
  color: #000;
}

.address-bar button:active,
.start-button:active,
.confirm-actions button:active {
  border-color: #404040 #fff #fff #404040;
}

.window-content {
  position: relative;
  overflow: hidden;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
}

.opening { display: grid; place-items: center; padding: 42px; }

h1 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .18em;
  margin: 0;
  color: #111;
  font-size: clamp(3.8rem, 8.4vw, 9rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: .055em;
  transform: translateY(-4.5vh);
}

.word { display: inline-flex; align-items: baseline; white-space: nowrap; }
.word--small { margin-inline: .04em; font-size: .68em; font-weight: 400; opacity: .55; }
.letter { display: inline-block; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.tag { position: relative; color: inherit; text-decoration: none; }
.tag-letter { display: inline-block; transition: transform 140ms ease; }
.tag:hover .tag-letter, .tag:focus-visible .tag-letter { transform: scale(1.1); }

.tag-label {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  z-index: 4;
  padding: 4px 6px;
  border: 1px solid #000;
  background: #ffffe1;
  box-shadow: 2px 2px 0 rgba(0,0,0,.28);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 100ms linear, transform 100ms linear;
  white-space: nowrap;
}

.tag:hover .tag-label, .tag:focus-visible .tag-label { opacity: 1; transform: translate(-50%, 0); }

.guide {
  position: absolute;
  top: 52px;
  left: 50%;
  display: grid;
  gap: 10px;
  width: min(760px, calc(100% - 64px));
  transform: translateX(-50%);
  text-align: center;
}

.guide p { margin: 0; color: #333; font-size: 16px; animation: guide-in 350ms linear both; }
.guide p:first-child { font-size: 19px; font-weight: 700; animation-delay: .7s; }
.guide p:last-child { animation-delay: 1s; }
.guide blockquote {
  margin: 0;
  color: #2d2d2d;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 400;
  line-height: 1.75;
  text-align: justify;
  text-indent: 2em;
}

.guide blockquote.is-typing::after {
  display: inline-block;
  margin-left: 2px;
  content: "▌";
  text-indent: 0;
  animation: caret-blink .75s steps(1) infinite;
}
.message-link { text-decoration: underline; text-underline-offset: 2px; }

.window-status {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 3px;
  padding: 3px;
  font-size: 12px;
}
.window-status span { padding: 2px 5px; border: 1px solid; border-color: #808080 #fff #fff #808080; }

.taskbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 3px;
  border-top: 2px solid #fff;
  background: #1769c8;
  box-shadow: 0 -1px #808080;
  color: #fff;
  font-size: 13px;
}

.start-button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 2px 12px 2px 7px; background: #3b9b3f; color: #fff; font-weight: 700; }
.start-button span { color: #185f48; font-size: 18px; }
.task-divider { width: 2px; height: 24px; border-left: 1px solid #808080; border-right: 1px solid #fff; }
.task-windows { display: flex; min-width: 0; gap: 4px; overflow: hidden; }
.task-item { display: inline-flex; align-items: center; gap: 6px; width: min(250px, 36vw); height: 32px; padding: 3px 10px; border: 2px solid; border-color: #0c4893 #6fa9ec #6fa9ec #0c4893; background: #2b78cf; color: #fff; font-weight: 700; text-align: left; }
.task-item.is-minimized { border-color: #6fa9ec #0c4893 #0c4893 #6fa9ec; background: #1760b7; color: #dbeaff; }
.task-item .task-mini-icon { display: inline-grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1px solid #fff; background: #2f7f79; color: #fff; font-size: 8px; }
.task-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-spacer { flex: 1; }
.task-clock { min-width: 92px; padding: 7px 9px; border: 2px solid; border-color: #0c68aa #57bdf1 #57bdf1 #0c68aa; background: #1596d8; text-align: center; }

.start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  z-index: 110;
  width: 260px;
  padding: 3px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: var(--win-gray);
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.start-menu[hidden] { display: none; }
.start-menu header { margin-bottom: 3px; padding: 12px 14px; background: linear-gradient(90deg, #0754c5, #3a86df); color: #fff; font-size: 20px; font-weight: 700; }
.start-menu button { display: grid; width: 100%; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: transparent; color: #000; font-size: 14px; text-align: left; }
.start-menu button:hover, .start-menu button:focus-visible { background: var(--win-blue); color: #fff; outline: 0; }
.start-menu button span { display: grid; width: 28px; height: 26px; place-items: center; border: 1px solid #315071; background: #fff; color: #164b9a; font-size: 10px; font-weight: 700; }
.start-menu button .start-item-copy { display: flex; width: auto; height: auto; justify-content: space-between; border: 0; background: transparent; color: inherit; font-size: 14px; font-weight: 400; }
.start-item-copy b { color: #555; font-size: 11px; font-weight: 400; }
.start-menu button:hover .start-item-copy b { color: #fff; }
.start-menu hr { margin: 4px 3px; border: 0; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }

.shutdown-icon { background: #d85b45; font-size: 14px; }
.shutdown-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; gap: 28px; background: #051a4c; color: #fff; text-align: center; }
.shutdown-screen[hidden] { display: none; }
.shutdown-screen p { margin: 0; font-size: clamp(20px, 3vw, 34px); }
.shutdown-screen button { justify-self: center; padding: 7px 24px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: var(--win-gray); color: #000; }

.confirm-dialog {
  width: min(360px, calc(100vw - 30px));
  padding: 2px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: var(--win-gray);
  box-shadow: 2px 2px 0 #000;
}
.confirm-dialog::backdrop { background: rgba(0,0,0,.28); }
.dialog-titlebar { height: 25px; }
.dialog-body { display: flex; align-items: center; gap: 18px; min-height: 92px; padding: 18px 24px 12px; }
.dialog-body p { margin: 0; font-size: 13px; }
.dialog-question { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #164b9a; color: #fff; font-size: 25px; font-weight: 700; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 14px 14px; }
.confirm-actions button { min-width: 82px; font-size: 11px; }

.content-dialog {
  position: fixed;
  top: 18%;
  left: 26%;
  z-index: 30;
  width: min(560px, calc(100vw - 34px));
  min-height: 330px;
  margin: 0;
  padding: 2px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: var(--win-gray);
  box-shadow: 3px 3px 0 rgba(0,0,0,.45);
}

.content-dialog[data-content-panel="work"] { top: 24%; left: 34%; }
.content-dialog[data-content-panel="note"] { top: 30%; left: 42%; }
.content-dialog[data-content-panel="work-txt"] { top: 20%; left: 31%; }
.content-dialog[data-content-panel="life-txt"] { top: 27%; left: 39%; }
.content-dialog[data-content-panel="letsgo-txt"] { top: 22%; left: 33%; }
.content-dialog[data-content-panel="room-txt"] { top: 25%; left: 36%; }
.content-dialog[data-content-panel="paint"] { top: 12%; left: 22%; }
.content-dialog.is-maximized { inset: 6px 6px 46px; width: auto; height: auto; max-width: none; }
.content-dialog.is-maximized .content-dialog-body { min-height: 0; flex: 1; }
.content-dialog[open] { display: flex; flex-direction: column; }
.content-dialog .dialog-titlebar { height: 29px; }
.content-dialog [data-drag-handle],
.home-window [data-drag-handle] { cursor: url("cursors/default.png") 0 0, move; touch-action: none; user-select: none; }
.content-dialog-body { min-height: 265px; display: grid; place-content: center; padding: 34px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #fff; text-align: center; }
.content-dialog-body h2 { margin: 5px 0 12px; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
.content-dialog-body p { margin: 0; color: #444; font-size: 14px; }
.content-dialog-body .dialog-file-number { margin-bottom: 10px; color: #666; font-size: 11px; }
.dialog-status { margin-top: 3px; padding: 4px 7px; border: 1px solid; border-color: #808080 #fff #fff #808080; font-size: 11px; }

.folder-view {
  grid-template-columns: repeat(2, 92px);
  place-content: start;
  gap: 28px;
  padding: 30px;
  text-align: center;
}

.text-file {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #111;
  font-size: 13px;
  text-decoration: none;
}

.text-file:focus-visible { outline: 1px dotted #000; outline-offset: 4px; }
.text-file--wide { width: 150px; }

.txt-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 52px;
  place-items: end center;
  padding-bottom: 7px;
  border: 2px solid #3d3d3d;
  background: #fff;
  box-shadow: 2px 2px #808080;
  color: #174f9c;
  font: 700 10px/1 Arial, sans-serif;
}

.txt-icon::before { position: absolute; top: 6px; right: 6px; left: 6px; height: 2px; background: #9b9b9b; box-shadow: 0 6px #9b9b9b, 0 12px #9b9b9b; content: ""; }

.text-window { width: min(650px, calc(100vw - 34px)); min-height: 390px; }
.notepad-menu { display: flex; gap: 22px; padding: 7px 10px; border-bottom: 1px solid #808080; background: var(--win-gray); font-size: 13px; }
.notepad-page { min-height: 315px; flex: 1; overflow: auto; padding: 22px 24px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #fff; color: #111; font: 16px/1.65 var(--font); }
.notepad-page p { margin: 0 0 1em; }
.notepad-outline { font-size: 15px; line-height: 1.5; }
.offline-outline p:first-child { margin-bottom: 1.4em; font-weight: 700; letter-spacing: .04em; }

.paint-window { width: min(820px, calc(100vw - 34px)); min-height: 570px; }
.paint-toolbar { display: flex; align-items: center; gap: 18px; padding: 8px 10px; border-bottom: 1px solid #808080; background: var(--win-gray); font-size: 12px; }
.paint-toolbar button { padding: 4px 14px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: var(--win-gray); color: #000; }
.paint-toolbar button.is-active { border-color: #404040 #fff #fff #404040; background: #d8d3bf; outline: 1px dotted #000; outline-offset: -4px; }
.paint-canvas-wrap { min-height: 0; flex: 1; overflow: auto; padding: 10px; background: #808080; }
.paint-canvas-wrap canvas { display: block; width: 100%; height: auto; max-width: 760px; background: #fff; box-shadow: 1px 1px #404040; touch-action: none; }
.paint-toolbar label { display: inline-flex; align-items: center; gap: 7px; }
.paint-toolbar input[type="color"] { width: 34px; height: 25px; padding: 1px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #fff; }
.paint-toolbar input[type="range"] { width: 110px; }
.paint-toolbar button { margin-left: auto; padding: 4px 14px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: var(--win-gray); }
.paint-canvas-wrap { flex: 1; overflow: auto; padding: 12px; border: 2px solid; border-color: #808080 #fff #fff #808080; background: #808080; }
.paint-canvas-wrap canvas { display: block; width: 100%; height: auto; background: #fff; cursor: crosshair; image-rendering: pixelated; }

/* Mail / Outlook Express */
.mail-page { overflow: auto; background: var(--win-gray); }
.mail-shell { min-height: 100svh; display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 74px 1fr; }
.mail-topbar { grid-column: 1/-1; display: grid; grid-template-columns: 108px 135px minmax(210px, 500px) 1fr; align-items: center; gap: 14px; padding: 8px 12px; border-bottom: 2px solid; border-color: #fff #404040 #404040 #fff; background: var(--win-gray); }
.mail-top-back { padding: 8px 9px; border: 2px solid; border-color: #fff #404040 #404040 #fff; font-size: 15px; font-weight: 700; text-decoration: none; text-align: center; }
.mail-brand { margin: 0; font-size: 22px; font-weight: 700; }
.mail-brand { transform: translateX(10px); }
.mail-search { position: relative; }
.mail-search input { width: 100%; padding: 8px 10px; border: 2px solid; border-color: #808080 #fff #fff #808080; border-radius: 0; background: #fff; font-size: 16px; outline: 0; }
.mail-status { justify-self: end; margin: 0; font-size: 15px; }
.search-easter-egg { position: absolute; top: calc(100% + 9px); left: 50%; z-index: 8; padding: 6px 9px; border: 1px solid #000; background: #ffffe1; box-shadow: 2px 2px #808080; font-size: 13px; opacity: 0; pointer-events: none; transform: translateX(-50%); white-space: nowrap; }
.mail-search.is-found .search-easter-egg { opacity: 1; }

.mail-sidebar { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; padding: 16px 12px; border-right: 2px solid; border-color: #fff #808080 #808080 #fff; background: var(--win-gray); }
.mail-owner { margin: 4px 4px 20px; padding-bottom: 10px; border-bottom: 1px solid #808080; font-size: 20px; font-weight: 700; }
.mail-folders { display: grid; gap: 5px; font-size: 16px; }
.mail-folders span { display: grid; grid-template-columns: 23px auto auto; padding: 6px 7px; }
.mail-folders small { font-size: 13px; color: #666; }
.mail-folders b { margin-left: 5px; font-size: 14px; font-weight: 400; }
.mail-folders .is-active { background: var(--win-blue); color: #fff; }
.mail-index { margin: auto 4px 0; font-size: 14px; color: #555; }

.mail-compose { grid-column: 2; grid-row: 2; min-width: 0; display: flex; flex-direction: column; padding: 0; background: #fff; }
.mail-compose-header { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 7px 12px; border-bottom: 1px solid #808080; background: var(--win-gray); }
.mail-compose-header h1 {
  display: block;
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transform: none;
}
.draft-mark { font-size: 14px; color: #555; }
.mail-form { min-height: 0; display: flex; flex: 1; flex-direction: column; padding: 0 12px 12px; }
.mail-field { display: grid; grid-template-columns: 90px 1fr; align-items: center; min-height: 47px; border-bottom: 1px solid #c4c4c4; color: #555; font-size: 16px; }
.mail-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; }
.mail-body { display: flex; min-height: 220px; flex: 1; padding: 12px 0; }
.mail-body textarea { width: 100%; min-height: 220px; resize: none; border: 0; outline: 0; background: #fff; font: 18px/1.55 var(--font); }
.mail-body textarea::placeholder { color: #999; }
.mail-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 2px; border-top: 1px solid #b4b4b4; color: #666; font-size: 14px; }
.mail-actions button { transform: translateY(2px); padding: 7px 25px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: var(--win-gray); color: #000; font-size: 16px; }
.mail-action-left { display: flex; min-width: 0; align-items: center; gap: 10px; }
.attach-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 6px 10px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: var(--win-gray); color: #000; font-size: 14px; }
.attach-button:active { border-color: #404040 #fff #fff #404040; }
.attach-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); opacity: 0; }
.attachment-name { max-width: 220px; overflow: hidden; color: #555; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; border-top: 1px solid #d0d0d0; }
.attachment-preview[hidden] { display: none; }
.attachment-card { position: relative; width: 104px; flex: 0 0 104px; margin: 0; padding: 4px; border: 1px solid #9c9c9c; background: #f5f5f5; }
.attachment-card img { display: block; width: 94px; height: 66px; object-fit: cover; border: 1px solid #bbb; background: #fff; }
.attachment-card figcaption { overflow: hidden; padding-top: 4px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-card button { position: absolute; top: 1px; right: 1px; width: 20px; height: 20px; padding: 0; border: 1px solid #fff; background: #d85b45; color: #fff; font: 700 14px/1 Arial, sans-serif; }
.mail-actions button:active { border-color: #404040 #fff #fff #404040; }
.mail-actions button:disabled { color: #808080; }
.form-honey, .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); opacity: 0; }

/* Simple inner windows */
.inner-page { display: grid; place-items: center; min-height: 100svh; padding: 28px; background: var(--desktop); }
.inner-page .page-content { position: relative; width: min(680px, 100%); min-height: 380px; display: grid; place-content: center; padding: 70px 30px 40px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: #fff; box-shadow: 2px 2px #000; text-align: center; }
.inner-page .page-content::before { position: absolute; top: 2px; right: 2px; left: 2px; height: 25px; padding: 5px 7px; background: linear-gradient(90deg,var(--win-blue),#3a6ea5); color: #fff; content: "YSW / WORLD"; font-size: 11px; font-weight: 700; text-align: left; }
.page-number { margin: 0 0 12px; color: #666; font-size: 10px; }
.page-content h2 { margin: 0; font-size: clamp(2.5rem,7vw,5.5rem); line-height: 1; }
.page-note { margin: 22px 0 0; color: #555; font-size: 12px; }
.back-link { position: fixed; top: 8px; left: 8px; z-index: 2; padding: 5px 13px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: var(--win-gray); color: #000; font-size: 11px; font-weight: 700; text-decoration: none; }

.cursor-dot, .cursor-trail { display: none; }

@keyframes float {
  to { transform: translate(calc(var(--x) + 1px), calc(var(--y) - 4px)) rotate(calc(var(--r) + .6deg)); }
}
@keyframes guide-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes caret-blink { 50% { opacity: 0; } }

@media (max-width: 720px) {
  .desktop { padding: 10px 8px 43px; }
  .desktop-shortcuts { top: 9px; left: 8px; display: flex; width: calc(100% - 16px); gap: 6px; overflow-x: auto; }
  .desktop-shortcuts a { min-width: 68px; font-size: 11px; }
  .shortcut-icon { width: 34px; height: 30px; }
  .home-window { top: 84px; left: 8px; width: calc(100% - 16px); height: calc(100svh - 132px); min-height: 360px; grid-template-rows: 27px 28px 35px 1fr 24px; transform: none; }
  h1 { font-size: clamp(2.1rem, 10.5vw, 4rem); gap: .1em; letter-spacing: .025em; }
  .guide { top: 34px; width: calc(100% - 40px); }
  .window-menu { gap: 14px; }
  .address-bar span { display: none; }
  .window-status { grid-template-columns: 1fr 110px; }
  .mail-shell { grid-template-columns: 1fr; grid-template-rows: 58px auto 1fr; }
  .mail-topbar { grid-template-columns: 88px 1fr auto; }
  .mail-search { display: none; }
  .mail-sidebar { padding: 8px; border-right: 0; border-bottom: 2px solid #808080; }
  .mail-sidebar { grid-column: 1 !important; grid-row: 2 !important; }
  .mail-owner, .mail-index { display: none; }
  .mail-folders { display: flex; gap: 3px; overflow-x: auto; }
  .mail-folders span { display: block; min-width: max-content; padding: 5px 8px; }
  .mail-folders small, .mail-folders b { display: none; }
  .mail-compose-header { min-height: 38px; }
  .mail-compose { grid-column: 1 !important; grid-row: 3 !important; }
  .content-dialog { top: 76px !important; left: 8px !important; width: calc(100vw - 16px); max-height: calc(100svh - 124px); min-height: 0; }
  .content-dialog-body { min-height: 230px; overflow: auto; padding: 22px 16px; }
  .paint-window { height: calc(100svh - 124px); }
  .paint-toolbar { flex-wrap: wrap; gap: 7px; }
  .paint-toolbar button { margin-left: 0; padding-inline: 9px; }
  .paint-toolbar input[type="range"] { width: 84px; }
  .task-windows { flex: 1; overflow-x: auto; }
  .task-item { min-width: 150px; width: 150px; }
  .task-clock { min-width: 72px; padding-inline: 4px; }
  .dialog-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mail-actions { align-items: flex-end; gap: 8px; }
  .mail-action-left { flex-wrap: wrap; }
  .attachment-name { max-width: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  .letter, .guide p { animation: none; }
}
