:root {
  color-scheme: light;
  color-scheme: only light;
  font-family: "Geneva", Tahoma, Arial, sans-serif;
  font-size: 13px;
  --paper: #dfded8;
  --light: #fffef5;
  --edge: #7c7c72;
  --black: #242720;
  --blue: #181f83;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; color: #171917; background: #05a0a8; forced-color-adjust: none; }
button, input { font: inherit; color: inherit; }
button { appearance: none; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px dashed currentColor; outline-offset: -3px; }
::selection { color: #fff; background: #181f83; }
.menubar {
  position: relative; z-index: 1000; display: flex; align-items: stretch; height: 30px;
  padding: 0 10px; color: #171917; background: #eeede7; border-bottom: 2px solid #262822;
  box-shadow: inset 0 -1px #fffef9, 0 1px 1px #0005; user-select: none;
}
.menu { position: relative; }
.menu-trigger { height: 100%; padding: 0 11px; border: 0; background: transparent; font-weight: 700; }
.menu-trigger.brand { padding: 0 9px 0 5px; display: grid; place-items: center; }
.brand img { image-rendering: pixelated; }
.menu-trigger:hover, .menu-trigger[aria-expanded="true"] { background: var(--blue); color: white; }
.menu-list {
  position: absolute; min-width: 205px; top: 27px; left: 0; padding: 3px 0;
  background: #f4f3ed; border: 1px solid var(--black); box-shadow: 2px 3px #102e3380;
}
.menu-list button, .menu-list a {
  display: block; text-align: left; width: 100%; padding: 6px 13px; border: 0;
  background: none; white-space: nowrap; text-decoration: none; color: inherit;
}
.menu-list button:hover, .menu-list a:hover, .menu-list button:focus-visible, .menu-list a:focus-visible { background: var(--blue); color: white; }
.menu-list hr { border: 0; border-top: 1px solid #b2b1a8; margin: 3px 0; }
.menu-spacer, .status-spacer { flex: 1; }
.menu-app, #clock { align-self: center; white-space: nowrap; }
.menu-app { margin-right: 15px; font-size: 12px; font-weight: 700; }
#clock { font-size: 12px; font-variant-numeric: tabular-nums; }

.desktop {
  position: relative; min-height: 670px; height: calc(100dvh - 30px); overflow: hidden; isolation: isolate;
  background: repeating-linear-gradient(to bottom, #ffffff15 0 1px, #10525515 1px 2px, transparent 2px 4px), #05a6ad;
  background-image: repeating-linear-gradient(to bottom, #ffffff18 0 1px, #1052551f 1px 2px, transparent 2px 4px), radial-gradient(ellipse at 43% 20%, #10bfc1, #079a9f 70%, #058f97);
}
.desktop-icons {
  position: absolute; display: grid; gap: 12px; top: 25px; right: 14px; width: 110px;
  z-index: 1; user-select: none;
}
.desktop-icon {
  display: grid; justify-items: center; gap: 7px; padding: 4px 0; border: 0; background: none; cursor: pointer;
}
.desktop-icon span { padding: 2px 4px; color: #171917; background: #dce7df; border: 1px solid #174d5090; font-size: 11px; font-weight: bold; }
.desktop-icon:is(:hover, :focus-visible) span { color: white; background: var(--blue); outline: none; }
.file-icon { display: block; width: 40px; height: 40px; object-fit: none; image-rendering: pixelated; filter: drop-shadow(2px 2px #07595f8a); }
.icon-drive { object-position: 0 0; }
.icon-terminal { object-position: -40px 0; }
.icon-folder { object-position: -80px 0; }
.icon-film { object-position: -120px 0; }

.window {
  position: absolute; left: var(--x); top: var(--y); width: var(--width); z-index: 2;
  min-width: 200px; padding: 2px; border: 1px solid #37372b; color: #171917; background: var(--paper);
  box-shadow: inset 1px 1px var(--light), inset -1px -1px #86857a, 3px 4px #163e4470;
  outline: none; overscroll-behavior: contain;
}
.window.is-active { box-shadow: inset 1px 1px var(--light), inset -1px -1px #717067, 4px 5px #15444991; }
.titlebar {
  display: flex; align-items: stretch; height: 24px; padding: 1px;
  border: 1px solid var(--edge); background: repeating-linear-gradient(#f6f5ee 0 1px, #deddd5 1px 3px);
  touch-action: none; user-select: none; cursor: grab;
}
.titlebar:active { cursor: grabbing; }
.window.is-active .titlebar { background: repeating-linear-gradient(#252ea7 0 2px, #161c7d 2px 4px); }
.window-title {
  flex: 1; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 0 7px; margin-right: 4px; font-weight: 700; line-height: 18px; letter-spacing: .015em;
}
.window.is-active .window-title { color: #fff; }
.title-control, .classic-button {
  color: #171917; background: #eae9e1; border: 1px solid #6e6e66; box-shadow: inset 1px 1px #fffef9, inset -1px -1px #9d9c92;
  border-radius: 0; font-size: 11px;
}
.title-control:active, .classic-button:active { background: #c7c6bd; box-shadow: inset 1px 1px #88877e; }
.close-square { width: 18px; padding: 0; }
.close-square::after { content: ""; display: block; width: 8px; height: 8px; margin: auto; border: 1px solid #65665e; box-shadow: 1px 1px #fff; }
.close-word { min-width: 44px; }
.shade, .zoom { width: 19px; padding: 0; }
.window-inner { position: relative; border: 1px solid #929189; border-top: 0; min-width: 0; background: #eae9e1; }
.window.is-shaded .window-inner, .window.is-shaded .resize-grip { display: none; }
.window.is-shaded .shade { transform: rotate(180deg); }
.resize-grip {
  position: absolute; width: 14px; height: 14px; right: 2px; bottom: 2px; z-index: 2; cursor: nwse-resize;
  background: repeating-linear-gradient(135deg, #e3e2db 0 2px, #77766d 2px 3px, #fff 3px 4px);
  clip-path: polygon(100% 0, 100% 100%, 0 100%); touch-action: none;
}
.window-label {
  display: flex; align-items: center; justify-content: space-between; padding: 3px 7px;
  border-bottom: 1px solid #b5b4aa; background: #f3f2eb; letter-spacing: .025em;
}
.window-label small { color: #51514b; letter-spacing: .06em; font-size: 9px; }
.sprite {
  position: relative; margin: 7px; background: #f3f3ef; border: 1px solid #7f8078;
  aspect-ratio: var(--ratio, 3 / 2); overflow: hidden;
}
.sprite::after {
  content: ""; pointer-events: none; position: absolute; inset: 0;
  background: repeating-linear-gradient(#fff1 0 1px, transparent 1px 3px);
}
.sprite-frame { width: 100%; height: 100%; background-repeat: no-repeat; }
.sprite-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; }
.sprite-window[data-key="celery"] .sprite, .sprite-window[data-key="hat"] .sprite { background: #be2b9e; }
.sprite-window[data-key="celery"]:not(.is-zoomed) .sprite { max-height: 385px; }
.nude-scene {
  position: relative; isolation: isolate; margin: 7px; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid #7f8078; background: radial-gradient(ellipse at 50% 32%, #fffefb, #e3e1d8 85%);
}
.nude-silhouette { position: absolute; inset: 21% 6% 4%; filter: blur(7px); }
.nude-silhouette::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(40% 0, 60% 0, 85% 8%, 94% 24%, 100% 54%, 90% 65%, 83% 52%, 78% 67%, 74% 98%, 54% 100%, 50% 80%, 45% 100%, 24% 98%, 22% 68%, 16% 52%, 11% 72%, 1% 65%, 4% 42%, 7% 19%, 18% 8%);
  background: radial-gradient(ellipse at 46% 31%, #edc3a2 18%, #c68f73 56%, #a36d5d 88%);
}
.nude-censor {
  position: absolute; left: 20%; top: 31%; width: 60%; height: 48%;
  background: conic-gradient(from 90deg, #d4a382 0 25%, #b98872 0 50%, #e6b998 0 75%, #d1a18a 0) 0 0 / 31% 26%;
  filter: blur(5px);
}
.nude-face { position: absolute; left: 24%; top: 2%; width: 52%; height: 32%; object-fit: contain; }
.nude-scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(#fff3 0 1px, transparent 1px 3px);
}
.sprite-foot, .statusbar {
  display: flex; align-items: center; gap: 7px; padding: 3px 8px; min-height: 25px;
  border-top: 1px solid #b0afa5; box-shadow: inset 0 1px #fffef6; background: #dad9d0;
}
.sprite-foot { font-size: 11px; padding-right: 17px; }
.sprite-foot .classic-button { margin-left: auto; }
.sprite-foot .classic-button + .classic-button { margin-left: 0; white-space: nowrap; }
.classic-button { padding: 3px 9px; font-weight: 700; }
.status-light { width: 7px; height: 7px; flex: 0 0 7px; border: 1px solid #425c28; background: #9cbd5b; }
.statusbar { padding-right: 17px; font-size: 11px; }
.console {
  display: flex; flex-direction: column; background: #07090a; color: #f3f3ed; margin: 4px;
  border: 1px solid #77786e; box-shadow: inset 0 0 13px #a4d0ed27;
  font: 14px/1.42 "Courier New", monospace;
}
.console-log { height: 82px; overflow: auto; padding: 6px 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.console-log div { margin: 0 0 2px; }
.console-input { color: #c0bfd1; }
.command-line {
  position: relative; display: flex; align-items: center; min-height: 30px; gap: 7px; padding: 2px 5px 2px 9px;
  border-top: 1px solid #555864;
}
.command-line input { min-width: 0; flex: 1; color: inherit; background: transparent; padding: 4px 0; border: 0; outline: none; caret-color: white; }
.command-line input::placeholder { color: #9a9ca2; }
.command-line button { border: 1px solid #8a8c91; background: #22272d; color: #fff; min-width: 24px; }
.command-line .mic-button { min-width: 43px; padding: 3px 6px; white-space: nowrap; }
.command-line .mic-button[aria-pressed="true"] { background: #135d44; border-color: #86d5a4; }
.mic-status { padding: 4px 9px; background: #eceae4; color: #212322; font-size: 12px; }
.command-suggestions {
  position: absolute; z-index: 3; bottom: 100%; inset-inline: 5px; margin: 0; padding: 2px;
  list-style: none; color: #171917; background: #f4f3ed; border: 1px solid #282920;
  box-shadow: 2px 2px #1017199c; font: 12px/1.35 "Courier New", monospace;
}
.command-suggestions li { padding: 4px 6px; cursor: pointer; }
.command-suggestions li:is(:hover, [aria-selected="true"]) { color: #fff; background: var(--blue); }

.login { padding: 17px 15px 13px; color: #171917; }
.login-header { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.login-header img { flex: 0 0 auto; width: 33px; height: 33px; image-rendering: pixelated; }
.login-header strong { display: block; font-size: 16px; }
.login-header small { display: block; margin-top: 3px; color: #3d3c34; font-size: 12px; }
.login-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 8px; }
.login-fields label { font-weight: 600; }
.login-fields input {
  appearance: none; min-width: 0; width: 100%; padding: 5px; border-radius: 0; color: #171917;
  caret-color: #171917; background: #fffef7; border: 1px solid #67685e; box-shadow: inset 1px 1px #bcbbb1;
}
.login-fields input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.login-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-top: 13px; }
.login-buttons button { font-size: 12px; }
.default-button { outline: 1px solid #272924; outline-offset: 1px; min-width: 56px; }
.dialog-copy { margin: 0; padding: 15px; line-height: 1.45; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 8px; padding: 0 15px 14px; }
.confirm-dialog {
  width: min(400px, calc(100% - 26px)); padding: 2px; border: 1px solid #292921; background: var(--paper); color: #141614;
  box-shadow: inset 1px 1px #fffef9, inset -1px -1px #88877e, 4px 5px #143f4680;
}
.confirm-dialog::backdrop { background: #1228254d; }
.confirm-dialog .window-title { background: #f3f2ea; flex: 0 1 auto; }
.confirm-dialog p { font-weight: 700; }
.load-panel { padding: 20px 15px; text-align: center; }
.progress {
  height: 13px; margin: 13px 0 0; border: 1px solid #686861; background: #d0cfc6; box-shadow: inset 1px 1px #aaaa9d;
}
.progress div { height: 100%; background: #2529b4; animation: progress .75s linear both; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.commands { margin: 0; padding: 10px; display: grid; gap: 4px; }
.commands button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px;
  text-align: left; padding: 6px 7px; border: 1px solid #bebdb2; background: #f4f3eb;
}
.commands button:hover, .commands button:focus-visible { color: white; background: var(--blue); }
.commands code { font-weight: 700; white-space: normal; }
.commands small { text-align: right; }
.movie-player { display: grid; gap: 0; place-items: center; background: #080809; }
.movie-player video { width: 100%; max-height: min(66dvh, 620px); display: block; }
.warning-word { font: bold clamp(40px, 8vw, 66px)/1 Arial, sans-serif; text-align: center; padding: 15px; }
.warning-word.flash { color: #a00217; }
.overlay-sprite {
  position: absolute; left: 2%; bottom: 1%; width: min(17vw, 180px); z-index: 900;
  aspect-ratio: var(--ratio); pointer-events: none;
}
.overlay-sprite.mini-tayne { width: 51px; left: auto; right: 9%; }
.overlay-sprite.on-titlebar { left: var(--overlay-x); right: auto; top: var(--overlay-y); bottom: auto; transform: translateY(-100%); }
.overlay-sprite.mini-tayne.entrance.on-titlebar { animation: tayne-entrance 760ms cubic-bezier(.2,.7,.32,1) both; }
.overlay-sprite.flarh-performer { animation: flarh-entrance 240ms ease-out both; }
.window[data-sprite="tayne-intro"] { animation: tayne-portrait 310ms cubic-bezier(.15,.8,.3,1) both; }
[data-paused] :is(.progress div, .overlay-sprite, .window[data-sprite="tayne-intro"]) { animation-play-state: paused; }
@keyframes tayne-entrance {
  from { transform: translate(-35%, 70%) scale(.55); }
  72% { transform: translateY(-110%) scale(1.04); }
  to { transform: translateY(-100%); }
}
@keyframes flarh-entrance {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tayne-portrait {
  from { transform: scale(.22); opacity: .65; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .overlay-sprite.mini-tayne.entrance.on-titlebar,
  .overlay-sprite.flarh-performer,
  .window[data-sprite="tayne-intro"] { animation: none; }
}
.window.is-zoomed .sprite { max-height: 65dvh; }
.window.is-zoomed .console-log { height: min(42dvh, 400px); }

@media (max-width: 880px) {
  .menu-app { display: none; }
  .desktop { height: auto; min-height: calc(100dvh - 30px); overflow: visible; padding: 10px 10px 24px; }
  .desktop-icons { position: relative; inset: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; width: auto; margin-bottom: 14px; }
  .desktop-icon span { font-size: 10px; }
  #windows { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 13px; }
  #windows .window { position: relative; left: auto; top: auto; width: min(100%, var(--width)); }
  .resize-grip, .zoom { display: none; }
  .titlebar { cursor: default; }
  .overlay-sprite { position: fixed; width: min(28vw, 160px); }
  .menu:last-of-type .menu-list { left: auto; right: 0; }
}
@media (max-width: 390px) {
  .menu-trigger { padding: 0 6px; }
  .menubar { padding-right: 5px; padding-left: 4px; }
  .window-label small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .progress div { animation-duration: .01s; }
}
