/* =====================================================================
   WindowsRC (Really Chill Edition) - shell styles (desktop, windows, taskbar)
   ===================================================================== */

:root { --taskbar-h: 30px; --title-h: 18px; }
body.mobile { --taskbar-h: 44px; --title-h: 28px; }

html, body#os { height: 100%; overflow: hidden; overscroll-behavior: none; }
body#os { background: #000; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
body#os input, body#os textarea { user-select: text; -webkit-user-select: text; }

/* ---------- Desktop ---------- */
#desktop {
  position: fixed; inset: 0 0 var(--taskbar-h) 0; overflow: hidden;
  background-color: var(--desktop);
}
#wallpaper { position: absolute; inset: 0; pointer-events: none; image-rendering: pixelated; }
#wallpaper.blend { background-blend-mode: soft-light, normal; }
#icons { position: absolute; inset: 0; }
#windows { position: absolute; inset: 0; pointer-events: none; }
#windows > * { pointer-events: auto; }

.dicon {
  position: absolute; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 2px; color: #fff; text-align: center; cursor: default; touch-action: none;
}
.dicon img { width: 32px; height: 32px; image-rendering: pixelated; pointer-events: none; }
.dicon span { padding: 1px 2px; line-height: 1.2; text-shadow: 1px 1px 0 #000; word-break: break-word; max-height: 3.6em; overflow: hidden; }
.dicon.selected img { filter: brightness(.65) sepia(1) hue-rotate(185deg) saturate(4); }
.dicon.selected span { background: var(--hilite); color: var(--hilite-text); text-shadow: none; outline: 1px dotted #fff; }
.dicon.cut img { opacity: .5; }
.dicon.dragging { opacity: .7; z-index: 5; }
.dicon .rename { width: 76px; font: inherit; text-align: center; padding: 0 2px; border: 1px solid #000; outline: none; resize: none; overflow: hidden; color: #000; background: #fff; }
#marquee { position: absolute; border: 1px dotted #fff; mix-blend-mode: difference; pointer-events: none; display: none; }

/* ---------- WindowsRC ---------- */
.win {
  position: absolute; display: flex; flex-direction: column; padding: 3px; min-width: 120px;
}
.win.minimized { display: none; }
.win.maximized { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.win.maximized .rz { display: none; }
.titlebar {
  height: var(--title-h); flex: none; display: flex; align-items: center; gap: 3px; padding: 0 2px 0 2px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b)); color: var(--title-text);
  font-weight: bold; white-space: nowrap; overflow: hidden; touch-action: none;
}
.win.inactive .titlebar { background: linear-gradient(90deg, var(--title-off-a), var(--title-off-b)); color: var(--title-off-text); }
.tb-icon { width: 16px; height: 16px; flex: none; image-rendering: pixelated; }
.tb-title { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tb-buttons { display: flex; flex: none; }
.tb-btn {
  width: 16px; height: 14px; padding: 0; border: 0; border-radius: 0; background: var(--face) no-repeat center; color: var(--text);
  box-shadow: inset -1px -1px var(--face-dark), inset 1px 1px var(--face-hi), inset -2px -2px var(--face-shadow), inset 2px 2px var(--face-light);
}
.tb-btn:active:not(:disabled) { box-shadow: inset -1px -1px var(--face-hi), inset 1px 1px var(--face-dark), inset -2px -2px var(--face-light), inset 2px 2px var(--face-shadow); background-position: calc(50% + 1px) calc(50% + 1px); }
.tb-close { margin-left: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='7'%3E%3Cpath d='M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0z'/%3E%3C/svg%3E"); }
.tb-min { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='2'%3E%3Cpath d='M0 0h6v2H0z'/%3E%3C/svg%3E"); background-position: 4px 8px; }
.tb-max { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M0 0h9v9H0zm1 2v6h7V2z'/%3E%3C/svg%3E"); }
.win.maximized .tb-max { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='9'%3E%3Cpath d='M2 0h6v6H6V5h1V2H3v1H2zM0 3h6v6H0zm1 2v3h4V5z'/%3E%3C/svg%3E"); }
.tb-btn:disabled { opacity: .5; }
.win-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; margin-top: 2px; }
.win-frame { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: var(--face); }
.win-block { display: none; position: absolute; inset: 0; z-index: 50; }
.win.blocked .win-block { display: block; }
body.dragging iframe { pointer-events: none; }
body.dragging { cursor: move; }

.rz { position: absolute; z-index: 10; touch-action: none; }
.rz-n { top: -2px; left: 6px; right: 6px; height: 5px; cursor: ns-resize; }
.rz-s { bottom: -2px; left: 6px; right: 6px; height: 5px; cursor: ns-resize; }
.rz-e { right: -2px; top: 6px; bottom: 6px; width: 5px; cursor: ew-resize; }
.rz-w { left: -2px; top: 6px; bottom: 6px; width: 5px; cursor: ew-resize; }
.rz-ne { right: -2px; top: -2px; width: 10px; height: 10px; cursor: nesw-resize; }
.rz-sw { left: -2px; bottom: -2px; width: 10px; height: 10px; cursor: nesw-resize; }
.rz-nw { left: -2px; top: -2px; width: 10px; height: 10px; cursor: nwse-resize; }
.rz-se { right: -2px; bottom: -2px; width: 14px; height: 14px; cursor: nwse-resize; }

.zoom-rect { position: fixed; z-index: 99999; pointer-events: none; border: 2px solid var(--face-shadow); outline: 1px solid var(--face-hi); }

/* Dialogs size to their content */
.win.dialog { height: auto !important; max-width: calc(100vw - 8px); }
.dlg { display: flex; flex-direction: column; }
.dlg-main { display: flex; gap: 14px; align-items: flex-start; padding: 14px 14px 6px; }
.dlg-icon { width: 32px; height: 32px; flex: none; }
.dlg-text { padding-top: 4px; line-height: 1.35; user-select: text; word-break: break-word; }
.dlg-buttons { display: flex; justify-content: center; gap: 6px; padding: 10px 10px 8px; flex-wrap: wrap; }
.filedlg-list { height: 170px; margin: 4px 10px; }
.filedlg-list { display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; overflow-x: auto; overflow-y: hidden; }
.filedlg-list .row { width: 150px; }
.filedlg-grid { display: grid; grid-template-columns: 90px 1fr 80px; gap: 6px 6px; align-items: center; padding: 6px 10px 10px; }

/* ---------- Taskbar ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 50000;
  display: flex; align-items: center; gap: 3px; padding: 2px 2px 0;
  background: var(--face); box-shadow: inset 0 1px var(--face-light), inset 0 2px var(--face-hi);
}
#start-btn {
  display: inline-flex; align-items: center; gap: 3px; font-weight: bold; height: calc(var(--taskbar-h) - 6px);
  min-width: 0; padding: 2px 6px 2px 4px; flex: none;
}
#start-btn img { width: 18px; height: 18px; image-rendering: pixelated; }
#start-btn.pressed { padding: 3px 5px 1px 5px; }
.tb-divider { width: 2px; align-self: stretch; margin: 2px 1px; box-shadow: inset 1px 0 var(--face-shadow), inset -1px 0 var(--face-hi); flex: none; }
.tb-grip { width: 3px; align-self: stretch; margin: 3px 2px; box-shadow: inset 1px 1px var(--face-hi), inset -1px -1px var(--face-shadow); flex: none; }
#quick { display: flex; gap: 1px; flex: none; }
#quick .tool { padding: 2px; min-width: 22px; min-height: 22px; }
#tasks { flex: 1; display: flex; gap: 3px; min-width: 0; overflow: hidden; height: 100%; align-items: center; }
.task-btn {
  flex: 0 1 160px; min-width: 0; display: flex; align-items: center; gap: 4px; text-align: left; justify-content: flex-start;
  height: calc(var(--taskbar-h) - 6px); padding: 2px 6px;
}
.task-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-btn img { width: 16px; height: 16px; flex: none; image-rendering: pixelated; }
.task-btn.active { font-weight: bold; background: repeating-conic-gradient(var(--face-hi) 0 25%, var(--face) 0 50%) 0 0 / 2px 2px; }
#tray {
  display: flex; align-items: center; gap: 4px; padding: 0 6px 0 4px; height: calc(var(--taskbar-h) - 6px); flex: none;
  box-shadow: inset -1px -1px var(--face-hi), inset 1px 1px var(--face-shadow);
}
#tray img { width: 16px; height: 16px; image-rendering: pixelated; cursor: default; }
#clock { padding: 0 2px 0 6px; cursor: default; white-space: nowrap; }

/* ---------- Start menu ---------- */
#startmenu { position: fixed; left: 2px; bottom: calc(var(--taskbar-h) - 2px); z-index: 60000; display: flex; padding: 3px; min-width: 0; }
#startmenu.hidden { display: none; }
.sm-banner {
  width: 24px; flex: none; position: relative; overflow: hidden;
  background: linear-gradient(0deg, var(--title-a), var(--title-b));
}
.sm-banner span {
  position: absolute; left: 3px; bottom: 6px; writing-mode: vertical-rl; transform: rotate(180deg);
  color: #fff; font: bold 17px/1 "Arial Black", Arial, sans-serif; white-space: nowrap; letter-spacing: .5px;
}
.sm-banner span b { color: #ffd6eb; font-weight: 900; }
.sm-items { display: flex; flex-direction: column; min-width: 180px; }
.sm-item { display: flex; align-items: center; gap: 10px; padding: 0 22px 0 6px; height: 34px; position: relative; cursor: default; white-space: nowrap; }
.sm-item img { width: 24px; height: 24px; image-rendering: pixelated; }
.sm-item.has-sub::after { content: ""; position: absolute; right: 8px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left-color: currentColor; border-right: 0; }
.sm-item:hover, .sm-item.active { background: var(--hilite); color: var(--hilite-text); }
.sm-sep { height: 2px; margin: 2px 2px; box-shadow: inset 0 1px var(--face-shadow), inset 0 -1px var(--face-hi); }

/* ---------- Tooltip ---------- */
#tooltip { position: fixed; z-index: 99998; background: var(--tooltip); color: #000; border: 1px solid #000; padding: 2px 4px; pointer-events: none; white-space: pre; display: none; }

/* ---------- Tray popups ---------- */
.tray-pop { position: fixed; right: 4px; bottom: calc(var(--taskbar-h) + 2px); z-index: 60000; padding: 8px; }
.vol-pop { width: 90px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vol-pop input[type=range] { writing-mode: vertical-lr; direction: rtl; height: 110px; width: 24px; }

/* ---------- Boot / login / shutdown ---------- */
.screen { position: fixed; inset: 0; z-index: 90000; }
#bios { background: #000; color: #c0c0c0; font: 16px/1.25 "Lucida Console", "Courier New", monospace; padding: 20px; white-space: pre-wrap; overflow: hidden; }
#bios .bios-logo { position: absolute; top: 16px; right: 20px; text-align: center; color: #7fd8ff; }
#bios .bios-logo img { width: 96px; height: 96px; image-rendering: pixelated; display: block; margin: 0 auto 4px; }
#bios .hl { color: #fff; }
#bios .bios-foot { position: absolute; left: 20px; bottom: 16px; right: 20px; }
@media (max-width: 700px) { #bios { font-size: 11px; padding: 10px; } #bios .bios-logo img { width: 56px; height: 56px; } }

#splash {
  background: radial-gradient(ellipse at 50% 40%, #a8d8ff 0%, #3d8fe0 55%, #0b3d91 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center;
}
#splash .logo-row { display: flex; align-items: center; gap: 18px; }
#splash .flag { transform: perspective(300px) rotateY(18deg) skewY(-4deg); }
#splash .flag img { width: 150px; height: 150px; display: block; image-rendering: pixelated; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.35)); }
#splash .wordmark { text-align: left; text-shadow: 2px 2px 0 rgba(0,0,0,.35); }
#splash .wordmark small { font: italic bold 18px Arial, sans-serif; display: block; }
#splash .wordmark big { font: 900 54px/1 "Arial Black", Arial, sans-serif; display: block; letter-spacing: -1px; }
#splash .wordmark em { font: bold 26px Arial, sans-serif; display: block; font-style: normal; background: linear-gradient(90deg, #ffffff, #ffd6eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
#splash .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; overflow: hidden; background: #0b3d91; }
#splash .bar i { position: absolute; top: 0; bottom: 0; width: 200%; background: linear-gradient(90deg, #1565c0, #7fd8ff, #f06aa8, #b0185f, #1565c0, #7fd8ff, #f06aa8, #b0185f, #1565c0); animation: bootbar 2.4s linear infinite; }
@keyframes bootbar { from { transform: translateX(-50%); } to { transform: translateX(0); } }
#splash .hint { position: absolute; bottom: 34px; font-size: 13px; opacity: .85; }
@media (max-width: 700px) {
  #splash .logo-row { flex-direction: column; }
  #splash .wordmark { text-align: center; }
  #splash .wordmark big { font-size: 40px; }
  #splash .flag img { width: 110px; height: 110px; }
}

#login { background: var(--desktop); display: grid; place-items: center; }
#login .win { position: relative; width: min(420px, calc(100vw - 16px)); }
.login-body { display: flex; gap: 14px; padding: 14px; }
.login-body .keys { width: 48px; height: 48px; image-rendering: pixelated; flex: none; }
.login-users { display: flex; gap: 10px; margin: 10px 0; }
.login-user { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; cursor: default; }
.login-user img { width: 48px; height: 48px; image-rendering: pixelated; }
.login-user.selected { background: var(--hilite); color: var(--hilite-text); }

#shutdown-screen { background: #000; display: grid; place-items: center; color: #ff8c1a; font: bold 28px/1.4 "Arial Black", Arial, sans-serif; text-align: center; padding: 20px; cursor: pointer; }
#shutdown-screen small { display: block; font: 14px Arial, sans-serif; color: #888; margin-top: 24px; }
.backdrop { position: absolute; inset: 0; background: repeating-conic-gradient(rgba(0,0,0,.55) 0 25%, transparent 0 50%) 0 0 / 2px 2px; }

#bsod { background: #0000aa; color: #fff; font: 16px/1.4 "Lucida Console", "Courier New", monospace; display: grid; place-items: center; padding: 20px; cursor: pointer; }
#bsod .box { max-width: 640px; }
#bsod .title { background: #aaa; color: #0000aa; padding: 0 6px; display: table; margin: 0 auto 18px; }

#screensaver { background: #000; cursor: none; }
#screensaver canvas { width: 100%; height: 100%; display: block; }

/* ---------- Mobile ---------- */
body.mobile .win:not(.dialog) { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; padding: 0; }
/* The on-screen keyboard is open (os/shell.js fitAboveKeyboard): windows end above it, the taskbar waits. */
body.mobile.kb-open #desktop { bottom: var(--kb, 0px); }
body.mobile.kb-open #taskbar { display: none; }
body.mobile .win:not(.dialog) .rz { display: none; }
body.mobile .tb-btn { width: 30px; height: 24px; background-size: auto; }
body.mobile .tb-min { background-position: center 15px; }
body.mobile .win:not(.dialog) .tb-max { display: none; }
body.mobile .tb-icon { width: 20px; height: 20px; }
body.mobile .titlebar { font-size: 14px; }
body.mobile .win.dialog { width: min(420px, calc(100vw - 16px)) !important; left: 50% !important; transform: translateX(-50%); top: 20% !important; }
body.mobile #quick, body.mobile #quick + .tb-divider { display: none; }
body.mobile .task-btn { flex: 0 0 auto; height: 36px; padding: 2px 8px; min-width: 0; max-width: 46px; }
body.mobile .task-btn span { display: none; }
body.mobile .task-btn img { width: 24px; height: 24px; }
body.mobile #tasks { overflow-x: auto; scrollbar-width: none; }
body.mobile #start-btn { height: 36px; font-size: 15px; }
body.mobile #start-btn img { width: 24px; height: 24px; }
body.mobile #startmenu { left: 0; right: 0; bottom: var(--taskbar-h); }
body.mobile .sm-items { flex: 1; }
body.mobile .sm-item { height: 46px; font-size: 15px; }
body.mobile .sm-item img { width: 32px; height: 32px; }
body.mobile .sm-banner { width: 30px; }
body.mobile .sm-banner span { font-size: 20px; }
body.mobile #tray img { width: 20px; height: 20px; }
body.mobile #clock { font-size: 13px; }
body.mobile .dicon { width: 84px; }
body.mobile .dicon img { width: 40px; height: 40px; }
body.mobile .dicon span { font-size: 12px; }

/* ---------- Chilled Cat Assistant ---------- */
#assistant { position: fixed; right: 18px; bottom: calc(var(--taskbar-h) + 14px); z-index: 55000; touch-action: none; }
#assistant.hidden { display: none; }
#assistant .as-cat {
  width: 72px; height: 72px; position: relative; cursor: pointer;
  filter: drop-shadow(3px 4px 0 rgba(0,0,0,.3));
  animation: as-idle 3.2s ease-in-out infinite;
}
#assistant .as-cat img { width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
#assistant .as-fx { position: absolute; top: -14px; right: -10px; font: bold 14px "Comic Sans MS", Arial, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; pointer-events: none; }
@keyframes as-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
#assistant .anim-bob { animation: as-bob .4s ease-in-out 3; }
#assistant .anim-spin { animation: as-spin 1s ease-in-out; }
#assistant .anim-jump { animation: as-jump .6s ease-out 2; }
#assistant .anim-wiggle { animation: as-wiggle .15s linear 8; }
#assistant .anim-sleep { animation: as-sleep 3s ease-in-out; }
#assistant .anim-wave { animation: as-wiggle .25s linear 4; }
#assistant .anim-look { animation: as-look 1.2s ease-in-out; }
@keyframes as-bob { 50% { transform: translateY(-8px); } }
@keyframes as-spin { to { transform: rotate(360deg); } }
@keyframes as-jump { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.15, .85); } 50% { transform: translateY(-26px) scale(.95, 1.05); } }
@keyframes as-wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes as-sleep { 10%, 90% { transform: rotate(-12deg) translateY(4px); filter: brightness(.8) drop-shadow(3px 4px 0 rgba(0,0,0,.3)); } }
@keyframes as-look { 30% { transform: translateX(-6px) rotate(-6deg); } 70% { transform: translateX(6px) rotate(6deg); } }

.as-balloon {
  position: fixed; z-index: 55001; padding: 10px 12px; color: #000; background: #ffffe1;
  border: 1px solid #000; border-radius: 10px; box-shadow: 2px 3px 0 rgba(0,0,0,.25); font-size: 12px; line-height: 1.35;
}
.as-title { font-weight: bold; margin-bottom: 4px; }
.as-text { white-space: pre-line; }
.as-buttons { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.as-opt { display: flex; gap: 6px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 3px 2px; font: inherit; color: #000; cursor: pointer; border-radius: 3px; }
.as-opt:hover { background: rgba(21,101,192,.12); color: #0b3d91; }
.as-bullet { flex: none; width: 10px; height: 10px; margin-top: 2px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7fd8ff, #1565c0); box-shadow: inset 0 0 0 1px #0b3d91; }
.as-ask { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.as-ask textarea { width: 100%; font-size: 12px; }
.as-row { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.as-row .btn { min-width: 64px; }
.as-tail { position: absolute; bottom: -10px; width: 16px; height: 10px; overflow: hidden; }
.as-tail::before { content: ""; position: absolute; left: 2px; top: -7px; width: 12px; height: 12px; background: #ffffe1; border: 1px solid #000; transform: rotate(45deg); }
.as-balloon.below .as-tail { bottom: auto; top: -10px; transform: scaleY(-1); }
body.mobile #assistant { right: 8px; }
body.mobile #assistant .as-cat { width: 56px; height: 56px; }
body.mobile .as-balloon { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { #assistant .as-cat, #assistant .as-cat[class*="anim-"] { animation: none; } }

/* ---------- Startup menu / boot failure / Setup ---------- */
.dos-screen { white-space: pre-wrap; max-width: 760px; }
.dos-choice { cursor: pointer; padding: 1px 0; }
.dos-choice.sel { color: #000; background: #c0c0c0; }
.dos-dim { color: #808080; }
.blink-cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#bios a.hl { color: #fff; }

#setup { background: #0000aa; color: #fff; font: 16px/1.45 "Lucida Console", "Courier New", monospace; display: flex; flex-direction: column; }
#setup .setup-head { background: #0000aa; color: #fff; padding: 10px 24px 6px; font-weight: bold; border-bottom: 2px solid #aaa; }
#setup .setup-body { flex: 1; padding: 18px 24px; overflow: auto; max-width: 760px; }
#setup .setup-body p { margin: 0 0 12px; }
#setup .setup-warn { color: #ffff55; }
#setup .setup-file { color: #aaa; }
#setup .setup-bar-label { margin-top: 18px; }
#setup .setup-bar { height: 22px; border: 2px solid #fff; margin: 6px 0; max-width: 520px; background: #000080; }
#setup .setup-bar i { display: block; height: 100%; background: #ffff55; }
#setup .setup-pct { color: #aaa; }
#setup .setup-keys { background: #aaa; color: #000; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 12px; min-height: 30px; }
#setup .setup-key { font: inherit; background: transparent; border: 0; color: #000; padding: 4px 10px; cursor: pointer; }
#setup .setup-key:hover { background: #000080; color: #fff; }
@media (max-width: 700px) {
  #setup { font-size: 13px; }
  #setup .setup-key { padding: 8px 12px; background: #ccc; border: 1px solid #555; }
}

/* Live wallpaper: Chilled Cat watching the mouse */
.eyes-cat { position: absolute; left: 50%; top: 50%; width: min(220px, 50vw); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); filter: drop-shadow(4px 6px 0 rgba(0,0,0,.25)); }

/* ---------- Easter eggs ---------- */
/* Laser pointer cursor (Control Panel > Mouse) */
body.laser, body.laser * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='4' fill='%23ff1a1a'/%3E%3Ccircle cx='8' cy='8' r='7' fill='%23ff1a1a' fill-opacity='.25'/%3E%3C/svg%3E") 8 8, crosshair !important; }

/* glasses.sys deleted: everything goes blurry */
body.noglasses #desktop, body.noglasses #taskbar, body.noglasses #startmenu { filter: blur(0.8px); }

/* explorer.exe deleted: no desktop at all */
body.noexplorer #taskbar, body.noexplorer #icons, body.noexplorer #windows, body.noexplorer #assistant, body.noexplorer .as-balloon { display: none !important; }
body.noexplorer #desktop { inset: 0; background: #000 !important; }
body.noexplorer #wallpaper { background: none !important; }
#noexplorer-msg { position: fixed; left: 50%; bottom: 10%; transform: translateX(-50%); z-index: 50; width: min(560px, calc(100vw - 32px));
  color: #c0c0c0; font: 14px/1.5 "Lucida Console", "Courier New", monospace; text-align: center; cursor: pointer; }

/* Konami code */
#desktop { transition: transform 1s ease-in-out; }
#desktop.flipped { transform: rotate(180deg); }

/* 3 AM */
body.night #desktop::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 30, .6); pointer-events: none; z-index: 1; }

/* Petting the wallpaper cat */
.pet-heart { position: fixed; z-index: 40; color: #f06aa8; font: bold 22px Arial, sans-serif; text-shadow: 1px 1px 0 #000; pointer-events: none; animation: pet-float 1.6s ease-out forwards; }
@keyframes pet-float { from { transform: translateY(0) scale(.6); opacity: 1; } to { transform: translateY(-90px) scale(1.3); opacity: 0; } }
.eyes-cat.asleep { filter: brightness(.75) drop-shadow(4px 6px 0 rgba(0,0,0,.25)); transform: translate(-50%, -50%) rotate(-8deg); transition: transform .6s; }

/* Holiday decorations */
.holiday { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.holiday i { position: absolute; top: -40px; font-style: normal; animation: holiday-fall linear infinite; opacity: .85; }
@keyframes holiday-fall { to { transform: translateY(110vh) rotate(360deg); } }

/* Anniversary confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70000; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; animation: confetti-fall 3.5s ease-in forwards; }
@keyframes confetti-fall { to { transform: translateY(105vh) rotate(720deg); } }

/* ROFLPawter fly-by */
#rofl { position: fixed; z-index: 80000; top: 18%; left: 0; display: flex; align-items: center; gap: 8px; pointer-events: none;
  animation: rofl-fly 6s linear forwards; }
#rofl img { width: 160px; image-rendering: pixelated; }
#rofl b { font: 900 22px "Comic Sans MS", Arial, sans-serif; color: #ffd400; text-shadow: 2px 2px 0 #000; animation: rofl-bob .3s steps(2) infinite; }
@keyframes rofl-fly { from { transform: translateX(-340px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes rofl-bob { 50% { transform: translateY(-4px); } }

/* XP-style blue screen */
#bsodxp { background: #0000aa; color: #fff; font: 15px/1.35 "Lucida Console", "Courier New", monospace; padding: 24px; overflow: auto; cursor: pointer; }
#bsodxp .xp-box { max-width: 900px; }
#bsodxp p { margin: 0 0 14px; }
#bsodxp .xp-hint { color: #aac; margin-top: 24px; }
@media (max-width: 700px) { #bsodxp { font-size: 12px; padding: 12px; } }

/* QA fixes */
body.mobile.has-windows #assistant, body.mobile.has-windows .as-balloon { display: none; }
:root[data-theme="hotdog"] .dicon span { color: #000; text-shadow: none; }
:root[data-theme="developer"] .tb-btn { background-color: #1f7a12; }

/* W98.Fleas: itchy desktop icons */
.dicon.itch img { animation: itch .12s linear 10; }
@keyframes itch { 25% { transform: translate(-2px, 1px) rotate(-6deg); } 75% { transform: translate(2px, -1px) rotate(6deg); } }

/* Pointer trails: paw prints that fade out */
.paw-print { position: fixed; z-index: 99997; width: 12px; height: 12px; margin: -6px 0 0 -6px; pointer-events: none;
  background: url("/assets/cursors/paw-print.svg") center / contain no-repeat; transform: rotate(var(--a, 0deg));
  animation: paw-fade 700ms ease-out forwards; }
@keyframes paw-fade { from { opacity: .8; } to { opacity: 0; transform: rotate(var(--a, 0deg)) scale(.6); } }

/* ~SURPRISE.EXE: desktop icons fall to the floor, bounce, then float back */
.dicon.gravity { animation: icon-fall 9s ease-in both; }
@keyframes icon-fall {
  0% { transform: translateY(0); }
  12% { transform: translateY(var(--drop)) rotate(8deg); }
  16% { transform: translateY(calc(var(--drop) - 40px)) rotate(-6deg); }
  20% { transform: translateY(var(--drop)) rotate(4deg); }
  23% { transform: translateY(calc(var(--drop) - 12px)); }
  26%, 80% { transform: translateY(var(--drop)) rotate(0); }
  100% { transform: translateY(0); }
}

/* Desktop Kitty */
#kitty { position: fixed; left: 0; top: 0; width: 40px; height: 32px; z-index: 55500; pointer-events: none; will-change: transform; }
body.noexplorer #kitty { display: none; }

.sd-step { margin: 2px 0; }

/* Print Screen camera flash */
.snap-flash { position: fixed; inset: 0; z-index: 99999; background: #fff; pointer-events: none; animation: snap-flash .35s ease-out forwards; }
@keyframes snap-flash { from { opacity: .8; } to { opacity: 0; } }

/* ChillNet dial-up (os/net.js): "Connect To" and "Connecting to ChillNet" */
.net-dlg { padding: 10px 12px 0; }
.net-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.net-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; }
.net-grid .field { width: 100%; }
.net-from { color: var(--text-disabled, #808080); }
.net-chk { display: flex; align-items: center; gap: 5px; }
.net-instant { margin: 12px 0 2px; }
.net-status { margin-top: 6px; min-height: 1.3em; }
