/* ============================================================
   Slendermanch — Windows Simulator
   Multi-OS themes, desktop, windows, taskbar, effects.
   ============================================================ */

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  --font: "Segoe UI", Tahoma, Verdana, sans-serif;
  --task-h: 44px;
  --radius: 8px;
  --title-h: 32px;
  --title-font: 0.82rem;
  --wall: #05121f;
  --text: #111;
  --window-bg: #f3f3f3;
  --title-bg: #f3f3f3;
  --title-fg: #111;
  --title-border: 1px solid rgba(0, 0, 0, 0.12);
  --task-bg: rgba(243, 243, 248, 0.85);
  --task-fg: #111;
  --task-border: 1px solid rgba(0, 0, 0, 0.12);
  --start-bg: transparent;
  --start-fg: #1a4fd6;
  --start-radius: 8px;
  --taskitem-bg: rgba(0, 0, 0, 0.06);
  --taskitem-active: rgba(0, 0, 0, 0.14);
  --win-border: 1px solid rgba(0, 0, 0, 0.16);
  --win-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --menu-bg: #f7f7fa;
  --menu-fg: #111;
  --menu-border: 1px solid rgba(0, 0, 0, 0.14);
  --menu-radius: 10px;
  --editor-bg: #fff;
  --editor-fg: #111;
  --toolbar-bg: #eef0f4;
  --accent: #2b6cff;

  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: #000;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button { font-family: inherit; }

.mono { font-family: "Consolas", "Courier New", monospace; }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff; transition: opacity 0.5s ease;
}
.boot.hide { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; width: min(420px, 80vw); }
.boot-flag { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 56px; height: 56px; margin: 0 auto 20px; }
.boot-flag i { border-radius: 2px; }
.boot-flag i:nth-child(1) { background: #f25022; }
.boot-flag i:nth-child(2) { background: #7fba00; }
.boot-flag i:nth-child(3) { background: #00a4ef; }
.boot-flag i:nth-child(4) { background: #ffb900; }
.boot-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 22px; }
.boot-bar { height: 5px; background: rgba(255, 255, 255, 0.15); border-radius: 3px; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2b6cff, #7b2ff7); animation: bootload 1.7s ease forwards; }
@keyframes bootload { to { width: 100%; } }
.boot-note { font-size: 0.72rem; color: #8a90a0; margin-top: 18px; }

/* ---------- desktop ---------- */
.desktop {
  position: fixed; inset: 0 0 var(--task-h) 0;
  background: var(--wall);
  overflow: hidden;
}
.desktop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}
.icons {
  position: absolute; inset: 12px auto auto 12px;
  display: flex; flex-direction: column; flex-wrap: wrap; gap: 4px;
  max-height: calc(100% - 24px); z-index: 1;
}
.desk-icon {
  width: 84px; padding: 8px 4px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; border-radius: 6px; cursor: pointer;
  color: #fff; text-align: center; font-size: 0.76rem; line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  background: transparent; border: 0; font-family: inherit;
}
.desk-icon:hover { background: rgba(255, 255, 255, 0.14); }
.desk-icon:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.desk-icon .di-glyph { font-size: 1.9rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.desk-icon .di-label { word-break: break-word; }
.desk-icon.danger .di-glyph { filter: drop-shadow(0 0 8px rgba(255, 0, 40, 0.8)); }

/* ---------- windows ---------- */
.window-host { position: fixed; inset: 0 0 var(--task-h) 0; z-index: 100; pointer-events: none; }
.window {
  position: absolute; pointer-events: auto;
  display: flex; flex-direction: column;
  min-width: 240px; min-height: 130px;
  background: var(--window-bg); color: var(--text);
  border: var(--win-border); border-radius: var(--radius);
  box-shadow: var(--win-shadow);
  overflow: hidden;
  max-width: calc(100vw - 16px); max-height: calc(100% - 12px);
}
.window.maximized { inset: 0 !important; width: auto !important; height: auto !important; max-width: none; max-height: none; border-radius: 0; }
.window.pop-in { animation: popIn 0.18s ease; }
@keyframes popIn { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }

.titlebar {
  display: flex; align-items: center; gap: 8px;
  height: var(--title-h); flex-shrink: 0;
  padding: 0 6px 0 10px;
  background: var(--title-bg); color: var(--title-fg);
  border-bottom: var(--title-border);
  cursor: move; font-size: var(--title-font); font-weight: 600;
  user-select: none;
}
.window:not(.active) .titlebar { filter: brightness(0.82); }
.win-icon { font-size: 0.95rem; }
.win-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-btns { display: flex; gap: 4px; }
.win-btns button {
  width: 20px; height: 18px; border: 0; cursor: pointer; border-radius: 2px;
  background: rgba(128, 128, 128, 0.28); color: inherit;
  font-size: 11px; line-height: 1; display: grid; place-items: center;
}
.win-btns button:hover { background: rgba(128, 128, 128, 0.5); }
.win-btns .close:hover { background: #e81123; color: #fff; }
.win-body { flex: 1; overflow: auto; position: relative; min-height: 0; }

/* ---------- taskbar ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--task-h);
  z-index: 900; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 0 6px;
  background: var(--task-bg); color: var(--task-fg);
  border-top: var(--task-border);
  backdrop-filter: blur(14px);
}
.task-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.task-items { display: flex; align-items: center; gap: 4px; overflow: hidden; min-width: 0; }
.start-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: calc(var(--task-h) - 8px); padding: 0 12px;
  border: 0; border-radius: var(--start-radius);
  background: var(--start-bg); color: var(--start-fg);
  font-weight: 600; font-size: 0.82rem; cursor: pointer; white-space: nowrap;
}
.start-btn:hover { filter: brightness(1.12); }
.start-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; width: 14px; height: 14px; flex-shrink: 0; }
.start-logo i { border-radius: 1px; }
.start-logo i:nth-child(1) { background: #f25022; }
.start-logo i:nth-child(2) { background: #7fba00; }
.start-logo i:nth-child(3) { background: #00a4ef; }
.start-logo i:nth-child(4) { background: #ffb900; }
.start-btn.no-label .start-label { display: none; }

.task-item {
  display: inline-flex; align-items: center; gap: 6px; max-width: 170px;
  height: calc(var(--task-h) - 12px); padding: 0 10px;
  border: 0; cursor: pointer; background: var(--taskitem-bg); color: inherit;
  border-radius: 4px; font-size: 0.77rem; white-space: nowrap; overflow: hidden;
}
.task-item:hover { background: var(--taskitem-active); }
.task-item.active { background: var(--taskitem-active); }
.task-item .ti-glyph { flex-shrink: 0; }
.task-item .ti-label { overflow: hidden; text-overflow: ellipsis; }

.task-tray { display: flex; align-items: center; gap: 10px; padding-right: 6px; flex-shrink: 0; }
.clock { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.tray-sim {
  border: 1px solid currentColor; background: transparent; color: inherit;
  opacity: 0.7; font-size: 0.6rem; letter-spacing: 0.12em; padding: 2px 7px;
  border-radius: 5px; cursor: pointer;
}
.tray-sim:hover { opacity: 1; background: rgba(255, 42, 77, 0.25); border-color: #ff2a4d; color: #fff; }

/* ---------- start menu ---------- */
.start-menu {
  position: fixed; left: 6px; bottom: calc(var(--task-h) + 6px);
  width: 292px; max-height: 72vh; z-index: 950;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--menu-bg); color: var(--menu-fg);
  border: var(--menu-border); border-radius: var(--menu-radius);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  overflow: auto;
}
.start-menu[hidden] { display: none; }
.sm-head { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; padding: 8px 10px 6px; }
.sm-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: inherit; text-align: left; font-size: 0.88rem;
  text-decoration: none;
}
.sm-item:hover { background: rgba(128, 128, 128, 0.22); }
.sm-glyph { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }
.sm-item.danger { color: #ff5c73; }
.sm-sep { height: 1px; background: rgba(128, 128, 128, 0.3); margin: 6px 4px; }

/* ---------- context menu ---------- */
.ctx-menu {
  position: fixed; z-index: 960; min-width: 190px; padding: 5px;
  background: var(--menu-bg); color: var(--menu-fg);
  border: var(--menu-border); border-radius: 8px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8); font-size: 0.85rem;
}
.ctx-menu[hidden] { display: none; }
.ctx-item { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: transparent; color: inherit; border-radius: 5px; cursor: pointer; }
.ctx-item:hover { background: rgba(128, 128, 128, 0.22); }
.ctx-sep { height: 1px; background: rgba(128, 128, 128, 0.3); margin: 5px 4px; }

/* ---------- fx layer ---------- */
.fx-layer { position: fixed; inset: 0; z-index: 970; pointer-events: none; }
.fx-layer.invert { backdrop-filter: invert(1) hue-rotate(180deg); }
.fx-layer.shake { animation: fxshake 0.16s infinite; box-shadow: inset 0 0 200px rgba(255, 0, 40, 0.35); }
@keyframes fxshake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 2px); }
  50% { transform: translate(4px, -4px); }
  75% { transform: translate(-3px, -1px); }
  100% { transform: translate(3px, 1px); }
}
.fx-layer.rainbow { background: linear-gradient(45deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f); opacity: 0.28; mix-blend-mode: screen; animation: fxhue 1.6s linear infinite; }
@keyframes fxhue { to { filter: hue-rotate(360deg); } }
.fx-layer.scan::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.4) 0 2px, transparent 2px 4px);
  opacity: 0.5;
}

/* ---------- simulation overlay ---------- */
.sim-overlay {
  position: fixed; inset: 0; z-index: 980; padding: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff; text-align: center;
}
.sim-overlay[hidden] { display: none; }
.sim-overlay .so-inner { max-width: 660px; }
.sim-overlay h2 { font-size: clamp(1.5rem, 5vw, 2.4rem); margin: 0 0 14px; }
.sim-overlay p { color: #c3c8d4; line-height: 1.65; margin: 0 auto 22px; max-width: 54ch; }
.so-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.so-btn {
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08);
  color: #fff; padding: 12px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.92rem;
}
.so-btn:hover { background: rgba(255, 255, 255, 0.18); }
.so-btn.primary { background: #ff2a4d; border-color: #ff2a4d; }
.so-btn.primary:hover { filter: brightness(1.1); }
.so-skip {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 0.78rem;
}
.sim-overlay.bsod { background: #0a2ca8; align-items: flex-start; justify-content: flex-start; text-align: left; padding: 8vh 8vw; }
.sim-overlay.bsod .so-inner { max-width: none; }
.sim-overlay.bsod h2 { font-family: "Consolas", monospace; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.sim-overlay.bsod p { font-family: "Consolas", monospace; color: #dfe6ff; max-width: none; margin-left: 0; }
.sim-overlay.dark { background: #050505; }
.sim-overlay .eye { font-size: 4rem; margin-bottom: 18px; animation: eyeblink 3s infinite; }
@keyframes eyeblink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: 0.1; } }
.nyan { font-size: 3rem; letter-spacing: 0.4rem; animation: nyan 0.6s linear infinite; margin-bottom: 20px; }
@keyframes nyan { 0% { transform: translateX(-30%); } 100% { transform: translateX(30%); } }

/* ---------- apps ---------- */
.notepad-area {
  width: 100%; height: 100%; min-height: 170px; border: 0; resize: none;
  padding: 10px 12px; outline: none; display: block;
  font-family: "Consolas", "Courier New", monospace; font-size: 0.86rem;
  background: var(--editor-bg); color: var(--editor-fg);
}

.paint-wrap { display: flex; flex-direction: column; height: 100%; }
.paint-bar { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--toolbar-bg); border-bottom: 1px solid rgba(0, 0, 0, 0.14); flex-wrap: wrap; }
.paint-bar .swatches { display: flex; gap: 4px; }
.swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.3); cursor: pointer; }
.swatch.active { outline: 2px solid #2b6cff; outline-offset: 1px; }
.paint-bar label { font-size: 0.74rem; display: flex; align-items: center; gap: 6px; color: #222; }
.paint-bar input[type="range"] { width: 80px; }
.paint-bar button { background: #2b6cff; color: #fff; border: 0; border-radius: 5px; padding: 5px 10px; cursor: pointer; font-size: 0.76rem; }
.paint-canvas { flex: 1; cursor: crosshair; touch-action: none; display: block; background: #fff; }

.calc { display: flex; flex-direction: column; height: 100%; background: #1b1e25; }
.calc-display { padding: 14px 16px; text-align: right; font-family: "Consolas", monospace; font-size: 1.6rem; color: #fff; background: #12141a; min-height: 60px; word-break: break-all; }
.calc-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
.calc-grid button { border: 0; border-radius: 8px; background: #2a2f3a; color: #fff; font-size: 1rem; cursor: pointer; padding: 12px 0; }
.calc-grid button:hover { background: #39404e; }
.calc-grid .op { background: #2b6cff; }
.calc-grid .op:hover { background: #3f7dff; }
.calc-grid .eq { background: #25c281; }
.calc-grid .eq:hover { background: #2fd392; }
.calc-grid .fn { background: #414858; }

.browser { display: flex; flex-direction: column; height: 100%; background: #fff; color: #222; }
.browser-bar { display: flex; gap: 6px; align-items: center; padding: 6px 8px; background: #e8e8ec; border-bottom: 1px solid #ccc; }
.browser-bar input { flex: 1; border: 1px solid #bbb; border-radius: 4px; padding: 5px 8px; font-size: 0.8rem; background: #fff; color: #222; }
.browser-page { flex: 1; overflow: auto; padding: 24px; }
.browser-page h1 { margin-top: 0; }
.browser-page a { color: #0a58ca; }
.browser-page .fake-link { color: #0a58ca; text-decoration: underline; cursor: pointer; }
.browser-page ul { line-height: 1.8; }

.mc { display: flex; height: 100%; background: #fff; color: #111; }
.mc-side { width: 176px; flex-shrink: 0; background: linear-gradient(180deg, #eef4ff, #dce7fb); padding: 12px; font-size: 0.78rem; border-right: 1px solid #cfd7e6; }
.mc-side h4 { margin: 0 0 10px; font-size: 0.74rem; color: #3a567e; text-transform: uppercase; letter-spacing: 0.05em; }
.mc-side .mc-link { display: block; color: #0a4a9a; margin-bottom: 9px; cursor: pointer; }
.mc-side .mc-link:hover { text-decoration: underline; }
.mc-main { flex: 1; padding: 18px; overflow: auto; }
.drive { display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: 6px; }
.drive:hover { background: #eef4ff; }
.drive .d-glyph { font-size: 1.5rem; }
.drive .d-info { flex: 1; }
.drive .d-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.drive .d-bar span { display: block; height: 100%; background: #2b6cff; }
.mc h3 { margin: 20px 0 10px; font-size: 0.95rem; }
.mc .sysinfo { font-size: 0.82rem; line-height: 1.7; color: #333; }

.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; background: var(--window-bg); }
.theme-btn { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; border: 1px solid rgba(128, 128, 128, 0.35); background: rgba(255, 255, 255, 0.06); color: var(--text); cursor: pointer; font-size: 0.82rem; text-align: left; }
.theme-btn:hover { border-color: var(--accent); }
.theme-btn.active { outline: 2px solid var(--accent); outline-offset: -2px; }
.theme-btn .tb-dot { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }

.about-app { padding: 20px 22px; font-size: 0.88rem; line-height: 1.7; background: var(--window-bg); color: var(--text); }
.about-app h3 { margin: 0 0 8px; }
.about-app .linklike { color: var(--accent); cursor: pointer; text-decoration: underline; }
.about-app .warn { color: #ff5c73; font-weight: 600; }

.warn-icon { font-size: 2rem; float: left; margin: 2px 14px 8px 0; }
.dialog-app { padding: 18px 20px 16px; background: var(--window-bg); color: var(--text); font-size: 0.88rem; line-height: 1.55; }
.dialog-app .dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.dialog-app .dlg-actions button { padding: 7px 16px; border-radius: 6px; border: 1px solid rgba(128, 128, 128, 0.5); background: rgba(128, 128, 128, 0.15); color: inherit; cursor: pointer; font-size: 0.84rem; }
.dialog-app .dlg-actions button.primary { background: #ff2a4d; border-color: #ff2a4d; color: #fff; }
.dialog-app .dlg-actions button:hover { filter: brightness(1.12); }

/* ============================================================
   THEMES — variables + component tweaks
   ============================================================ */

/* ---- Windows 95 / 98 / Me ---- */
.os-win95 {
  --font: "MS Sans Serif", Tahoma, "Segoe UI", sans-serif;
  --task-h: 30px; --radius: 0px; --title-h: 20px; --title-font: 0.74rem;
  --wall: #008080; --text: #000; --window-bg: #c0c0c0;
  --title-bg: #000080; --title-fg: #fff; --title-border: 0;
  --task-bg: #c0c0c0; --task-fg: #000; --task-border: 0;
  --start-bg: #c0c0c0; --start-fg: #000; --start-radius: 0;
  --taskitem-bg: #c0c0c0; --taskitem-active: #a6a6a6;
  --win-border: 0; --win-shadow: 2px 2px 0 #000;
  --menu-bg: #c0c0c0; --menu-fg: #000; --menu-border: 0; --menu-radius: 0;
  --editor-bg: #fff; --editor-fg: #000; --toolbar-bg: #c0c0c0; --accent: #000080;
}
.os-win98 { --wall: #0a8080; --title-bg: #000080; }
.os-winme { --wall: #0b7f8c; --title-bg: #000080; }
.os-win2000 { --wall: #3a6ea5; --title-bg: #0a246a; --title-font: 0.76rem; }

.os-win95 .window, .os-win98 .window, .os-winme .window, .os-win2000 .window {
  border: 2px solid; border-color: #dfdfdf #404040 #404040 #dfdfdf;
  box-shadow: 1px 1px 0 #000; border-radius: 0;
}
.os-win95 .titlebar, .os-win98 .titlebar, .os-winme .titlebar, .os-win2000 .titlebar { padding: 0 3px 0 5px; }
.os-win95 .win-btns button, .os-win98 .win-btns button, .os-winme .win-btns button, .os-win2000 .win-btns button {
  background: #c0c0c0; border: 2px solid; border-color: #fff #404040 #404040 #fff;
  border-radius: 0; color: #000; width: 16px; height: 14px; font-size: 9px; padding: 0;
}
.os-win95 .start-btn, .os-win98 .start-btn, .os-winme .start-btn, .os-win2000 .start-btn {
  border: 2px solid; border-color: #fff #404040 #404040 #fff; font-weight: 700;
}
.os-win95 .task-item, .os-win98 .task-item, .os-winme .task-item, .os-win2000 .task-item {
  border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0;
}
.os-win95 .taskbar, .os-win98 .taskbar, .os-winme .taskbar, .os-win2000 .taskbar {
  border-top: 2px solid; border-color: #fff;
}
.os-win95 .start-menu, .os-win98 .start-menu, .os-winme .start-menu, .os-win2000 .start-menu {
  border: 2px solid; border-color: #fff #404040 #404040 #fff;
  box-shadow: 2px 2px 0 #000; border-radius: 0;
}

/* ---- Windows XP ---- */
.os-winxp {
  --font: Tahoma, "Segoe UI", Verdana, sans-serif;
  --task-h: 30px; --radius: 8px; --title-h: 28px; --title-font: 0.82rem;
  --wall: url("assets/wallpapers/xp-bliss.svg") center / cover no-repeat, #4f93de;
  --text: #111; --window-bg: #ece9d8;
  --title-bg: linear-gradient(180deg, #0a6cf0, #3d95ff 55%, #0a5fd8);
  --title-fg: #fff; --title-border: 0;
  --task-bg: linear-gradient(180deg, #3b8bf0 0%, #245edb 8%, #245edb 88%, #1b4bb8 100%);
  --task-fg: #fff; --task-border: 0;
  --start-bg: linear-gradient(180deg, #4bab3c, #2e8a25); --start-fg: #fff; --start-radius: 0 9px 9px 0;
  --taskitem-bg: rgba(255, 255, 255, 0.14); --taskitem-active: rgba(0, 0, 0, 0.28);
  --win-border: 3px solid #0a6cf0; --win-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  --menu-bg: #fff; --menu-fg: #111; --menu-border: 1px solid #0a5fd8; --menu-radius: 8px 8px 0 0;
  --editor-bg: #fff; --editor-fg: #111; --toolbar-bg: #ece9d8; --accent: #0a6cf0;
}
.os-winxp .window { border-radius: 8px 8px 0 0; }
.os-winxp .titlebar { border-radius: 6px 6px 0 0; }
.os-winxp .win-btns button { border-radius: 3px; background: linear-gradient(180deg, #3d95ff, #0a5fd8); border: 1px solid #0831d9; color: #fff; }
.os-winxp .win-btns .close { background: linear-gradient(180deg, #ff6a5c, #d43b2b); }
.os-winxp .start-btn { font-weight: 700; font-style: italic; }

/* ---- Windows Vista / 7 (Aero glass) ---- */
.os-winvista {
  --font: "Segoe UI", Tahoma, sans-serif;
  --task-h: 40px; --radius: 8px; --title-h: 30px;
  --wall: radial-gradient(circle at 25% 20%, #1f7a8c 0%, #0b3d5c 42%, #04121f 78%);
  --text: #eaf2ff; --window-bg: rgba(26, 34, 46, 0.9);
  --title-bg: rgba(40, 54, 74, 0.72); --title-fg: #fff; --title-border: 1px solid rgba(255, 255, 255, 0.16);
  --task-bg: rgba(12, 18, 28, 0.66); --task-fg: #eaf2ff; --task-border: 1px solid rgba(255, 255, 255, 0.14);
  --start-bg: radial-gradient(circle at 50% 38%, #4aa3ff, #0a3f7a 70%); --start-fg: #fff; --start-radius: 50%;
  --taskitem-bg: rgba(255, 255, 255, 0.08); --taskitem-active: rgba(255, 255, 255, 0.24);
  --win-border: 1px solid rgba(255, 255, 255, 0.2); --win-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  --menu-bg: rgba(18, 26, 38, 0.94); --menu-fg: #eaf2ff; --menu-border: 1px solid rgba(255, 255, 255, 0.16); --menu-radius: 10px;
  --editor-bg: #1e2632; --editor-fg: #eaf2ff; --toolbar-bg: #232d3a; --accent: #3a9bff;
}
.os-win7 {
  --font: "Segoe UI", Tahoma, sans-serif;
  --task-h: 40px; --radius: 8px; --title-h: 30px;
  --wall: url("assets/wallpapers/win7-harmony.svg") center / cover no-repeat, #062a4d;
  --text: #eaf2ff; --window-bg: rgba(24, 34, 48, 0.92);
  --title-bg: rgba(26, 46, 74, 0.74); --title-fg: #fff; --title-border: 1px solid rgba(255, 255, 255, 0.2);
  --task-bg: rgba(10, 20, 34, 0.62); --task-fg: #eaf2ff; --task-border: 1px solid rgba(255, 255, 255, 0.18);
  --start-bg: radial-gradient(circle at 50% 38%, #58b3ff, #0a3f7a 70%); --start-fg: #fff; --start-radius: 50%;
  --taskitem-bg: rgba(255, 255, 255, 0.08); --taskitem-active: rgba(255, 255, 255, 0.26);
  --win-border: 1px solid rgba(255, 255, 255, 0.22); --win-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  --menu-bg: rgba(16, 26, 42, 0.94); --menu-fg: #eaf2ff; --menu-border: 1px solid rgba(255, 255, 255, 0.18); --menu-radius: 10px;
  --editor-bg: #1e2632; --editor-fg: #eaf2ff; --toolbar-bg: #232d3a; --accent: #3a9bff;
}
.os-winvista .window, .os-win7 .window { backdrop-filter: blur(8px); }
.os-winvista .titlebar, .os-win7 .titlebar { backdrop-filter: blur(12px); }
.os-winvista .start-btn, .os-win7 .start-btn {
  width: calc(var(--task-h) - 8px); padding: 0; border-radius: 50%;
  justify-content: center; box-shadow: 0 0 12px rgba(90, 170, 255, 0.7);
}
.os-winvista .start-logo, .os-win7 .start-logo { width: 17px; height: 17px; }

/* ---- Windows 8.1 / 10 (flat) ---- */
.os-win81 {
  --font: "Segoe UI", Tahoma, sans-serif;
  --task-h: 40px; --radius: 0px; --title-h: 30px;
  --wall: linear-gradient(135deg, #1f6feb 0%, #6a2ff7 100%);
  --text: #111; --window-bg: #ffffff;
  --title-bg: #ffffff; --title-fg: #111; --title-border: 0;
  --task-bg: #1f1f1f; --task-fg: #fff; --task-border: 0;
  --start-bg: transparent; --start-fg: #fff; --start-radius: 0;
  --taskitem-bg: rgba(255, 255, 255, 0.06); --taskitem-active: rgba(255, 255, 255, 0.22);
  --win-border: 1px solid rgba(0, 0, 0, 0.2); --win-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.6);
  --menu-bg: #241f3d; --menu-fg: #fff; --menu-border: 0; --menu-radius: 0;
  --editor-bg: #fff; --editor-fg: #111; --toolbar-bg: #f2f2f2; --accent: #1f6feb;
}
.os-win10 {
  --font: "Segoe UI", Tahoma, sans-serif;
  --task-h: 40px; --radius: 0px; --title-h: 30px;
  --wall: radial-gradient(circle at 50% 42%, #0a4d8c, #002b4d 60%, #001626);
  --text: #111; --window-bg: #ffffff;
  --title-bg: #ffffff; --title-fg: #111; --title-border: 0;
  --task-bg: #1c1c1c; --task-fg: #fff; --task-border: 0;
  --start-bg: transparent; --start-fg: #0a84ff; --start-radius: 0;
  --taskitem-bg: rgba(255, 255, 255, 0.06); --taskitem-active: rgba(255, 255, 255, 0.22);
  --win-border: 1px solid rgba(0, 0, 0, 0.2); --win-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.6);
  --menu-bg: #1f1f1f; --menu-fg: #fff; --menu-border: 0; --menu-radius: 0;
  --editor-bg: #fff; --editor-fg: #111; --toolbar-bg: #f2f2f2; --accent: #0a84ff;
}
.os-win81 .start-btn, .os-win10 .start-btn { padding: 0 8px; }
.os-win81 .start-logo, .os-win10 .start-logo { width: 18px; height: 18px; }

/* ---- Windows 11 ---- */
.os-win11 {
  --font: "Segoe UI Variable", "Segoe UI", Tahoma, sans-serif;
  --task-h: 56px; --radius: 8px; --title-h: 34px;
  --wall: radial-gradient(circle at 28% 26%, #b14bd6 0%, #6a2ff7 26%, #2b6cff 52%, #0b1e3a 82%);
  --text: #111; --window-bg: #f3f3f3;
  --title-bg: #f3f3f3; --title-fg: #111; --title-border: 0;
  --task-bg: rgba(245, 245, 250, 0.85); --task-fg: #111; --task-border: 0;
  --start-bg: transparent; --start-fg: #1a4fd6; --start-radius: 8px;
  --taskitem-bg: rgba(0, 0, 0, 0.06); --taskitem-active: rgba(0, 0, 0, 0.14);
  --win-border: 1px solid rgba(0, 0, 0, 0.1); --win-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.55);
  --menu-bg: rgba(247, 247, 250, 0.97); --menu-fg: #111; --menu-border: 1px solid rgba(0, 0, 0, 0.1); --menu-radius: 10px;
  --editor-bg: #fff; --editor-fg: #111; --toolbar-bg: #eef0f4; --accent: #2b6cff;
}
.os-win11 .taskbar {
  left: 12px; right: 12px; bottom: 10px; height: 46px;
  border-radius: 12px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.4);
}
.os-win11 .task-left { position: absolute; left: 50%; transform: translateX(-50%); justify-content: center; }
.os-win11 .task-tray { margin-left: auto; }
.os-win11 .start-btn { padding: 0 10px; }
.os-win11 .start-menu { left: 50%; transform: translateX(-50%); bottom: calc(var(--task-h) + 8px); }
.os-win11 .window { border-radius: 8px; }

/* ============================================================
   FIDELITY PASS — bring each theme closer to real Windows
   ============================================================ */

/* icon boxes */
.win-icon, .ti-glyph, .sm-glyph { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.win-icon svg, .ti-glyph svg, .sm-glyph svg, .di-glyph svg, .d-glyph svg, .warn-icon svg { width: 1em; height: 1em; display: block; }
.di-glyph { display: inline-flex; align-items: center; justify-content: center; }

/* wallpaper vignettes tuned per era */
.os-winxp .desktop::after { background: radial-gradient(circle at 50% 118%, transparent 58%, rgba(0, 0, 0, 0.1) 100%); }
.os-win7 .desktop::after { background: radial-gradient(circle at 50% 118%, transparent 46%, rgba(0, 0, 0, 0.3) 100%); }

/* ---- Classic: 95 / 98 / Me / 2000 ---- */
.os-win95 .titlebar, .os-win98 .titlebar, .os-winme .titlebar {
  background: linear-gradient(90deg, #000080 0%, #000080 60%, #1084d0 100%);
}
.os-win2000 .titlebar {
  background: linear-gradient(90deg, #0a246a 0%, #3a6ea5 62%, #a6caf0 100%);
}
.os-win95 .window:not(.active) .titlebar,
.os-win98 .window:not(.active) .titlebar,
.os-winme .window:not(.active) .titlebar,
.os-win2000 .window:not(.active) .titlebar {
  background: #808080; color: #d4d4d4; filter: none;
}
.os-win95 .win-title, .os-win98 .win-title, .os-winme .win-title, .os-win2000 .win-title {
  font-weight: 700; letter-spacing: .2px; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}
.os-win95 .win-btns button, .os-win98 .win-btns button, .os-winme .win-btns button, .os-win2000 .win-btns button { font-weight: 700; padding: 0; }
.os-win95 .win-btns button:active, .os-win98 .win-btns button:active, .os-winme .win-btns button:active, .os-win2000 .win-btns button:active {
  border-color: #404040 #fff #fff #404040;
}
.os-win95 .start-btn:active, .os-win98 .start-btn:active, .os-winme .start-btn:active, .os-win2000 .start-btn:active {
  border-color: #404040 #fff #fff #404040; padding-top: 1px;
}
.os-win95 .task-item.active, .os-win98 .task-item.active, .os-winme .task-item.active, .os-win2000 .task-item.active {
  border-color: #404040 #fff #fff #404040; background: #a6a6a6;
}
.os-win95 .task-tray, .os-win98 .task-tray, .os-winme .task-tray, .os-win2000 .task-tray {
  height: calc(var(--task-h) - 8px); padding: 0 8px;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
}
.os-win95 .clock, .os-win98 .clock, .os-winme .clock, .os-win2000 .clock { color: #000; }
.os-win95 .tray-sim, .os-win98 .tray-sim, .os-winme .tray-sim, .os-win2000 .tray-sim { color: #000; border-color: #404040; }
.os-win95 .desk-icon:hover, .os-win98 .desk-icon:hover, .os-winme .desk-icon:hover {
  background: #000080; outline: 1px dotted #fff;
}

/* classic start menu rail */
.os-win95 .start-menu, .os-win98 .start-menu, .os-winme .start-menu, .os-win2000 .start-menu { padding-left: 32px; }
.os-win95 .start-menu::before, .os-win98 .start-menu::before, .os-winme .start-menu::before, .os-win2000 .start-menu::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26px;
  background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
}
.os-win95 .start-menu::after, .os-win98 .start-menu::after, .os-winme .start-menu::after, .os-win2000 .start-menu::after {
  position: absolute; left: 0; top: 0; bottom: 0; width: 26px;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 10px 0; box-sizing: border-box;
  color: #fff; font: 700 0.72rem var(--font); letter-spacing: 0.06em; text-align: center;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
}
.os-win95 .start-menu::after { content: "Windows 95"; }
.os-win98 .start-menu::after { content: "Windows 98"; }
.os-winme .start-menu::after { content: "Windows Me"; }
.os-win2000 .start-menu::after { content: "Windows 2000"; }

/* ---- Windows XP (Luna) ---- */
.os-winxp .window {
  border: 3px solid #0831d9; border-radius: 8px 8px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 16px 40px -12px rgba(0, 0, 0, 0.55);
}
.os-winxp .titlebar {
  height: 30px; padding: 0 4px 0 8px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #0058e6 0%, #3d95ff 9%, #0a6cf0 46%, #0a5fd8 88%, #0831d9 100%);
  border-bottom: 1px solid #0831d9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.55);
}
.os-winxp .window:not(.active) .titlebar { filter: saturate(0.5) brightness(0.9); }
.os-winxp .win-btns { gap: 2px; }
.os-winxp .win-btns button {
  width: 21px; height: 20px; border-radius: 3px; border: 1px solid #0831d9;
  background: linear-gradient(180deg, #6cb0ff 0%, #2a7bf0 50%, #0a5fd8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #fff; font-weight: 700;
}
.os-winxp .win-btns button:hover { filter: brightness(1.12); }
.os-winxp .win-btns .close {
  background: linear-gradient(180deg, #ff9a86 0%, #f0604c 50%, #c9301d 100%); border-color: #a11f13;
}
.os-winxp .win-btns .close:hover { background: linear-gradient(180deg, #ff7a63, #d4372a); }
.os-winxp .start-btn {
  height: calc(var(--task-h) - 1px); margin-right: 5px; padding: 0 18px 0 10px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #46b53b 0%, #2e8a25 48%, #1c6a16 100%);
  border: 1px solid #1a5c14;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.3);
  color: #fff; font-style: italic; font-weight: 700; font-size: 0.88rem;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
.os-winxp .start-btn:hover { filter: brightness(1.08); }
.os-winxp .start-logo { width: 16px; height: 16px; }
.os-winxp .start-logo i { box-shadow: 0 0 2px rgba(0, 0, 0, 0.4); }
.os-winxp .taskbar {
  background: linear-gradient(180deg, #4a9cf5 0%, #245edb 9%, #245edb 87%, #1941a5 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.os-winxp .task-items { gap: 3px; }
.os-winxp .task-item {
  height: calc(var(--task-h) - 6px); border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, #5a9bf0 0%, #2a63cf 100%);
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.os-winxp .task-item:hover { filter: brightness(1.1); }
.os-winxp .task-item.active {
  background: linear-gradient(180deg, #1b4bb2 0%, #245edb 100%);
  border-color: #12307a; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}
.os-winxp .task-tray {
  height: calc(var(--task-h) - 3px); padding: 0 10px; border-radius: 3px;
  background: linear-gradient(180deg, #4f93ef 0%, #1f57c4 100%);
  border: 1px solid #123f9e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
}
.os-winxp .tray-sim { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.os-winxp .start-menu {
  width: 320px; padding: 58px 8px 8px;
  background: #ffffff; border: 1px solid #0831d9;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
}
.os-winxp .start-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 54px;
  background:
    radial-gradient(circle at 28px 27px, #dbeaff 0 15px, transparent 16px),
    linear-gradient(180deg, #3d95ff 0%, #0a5fd8 100%);
  border-bottom: 2px solid #f9a825;
}
.os-winxp .start-menu::after {
  content: "Slenderman"; position: absolute; left: 54px; top: 17px;
  color: #fff; font-weight: 700; font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.55);
}
.os-winxp .sm-head { color: #0a5fd8; opacity: 0.85; }
.os-winxp .sm-item { border-radius: 3px; }
.os-winxp .sm-item:hover { background: #2a63cf; color: #fff; }
.os-winxp .sm-item.danger { color: #d01818; }
.os-winxp .sm-item.danger:hover { background: #c9301d; color: #fff; }

/* ---- Vista / 7 (Aero glass) ---- */
.os-winvista .window, .os-win7 .window {
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 30px 70px -20px rgba(0, 0, 0, 0.85);
}
.os-winvista .titlebar, .os-win7 .titlebar {
  background: linear-gradient(180deg, rgba(150, 190, 235, 0.55) 0%, rgba(60, 100, 150, 0.55) 46%, rgba(25, 50, 85, 0.75) 50%, rgba(35, 65, 105, 0.62) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 1px 1px rgba(0, 0, 0, 0.9);
}
.os-winvista .window:not(.active) .titlebar, .os-win7 .window:not(.active) .titlebar { filter: grayscale(0.5) brightness(0.85); }
.os-win7 .win-btns { gap: 0; }
.os-winvista .win-btns button, .os-win7 .win-btns button {
  height: 19px; width: 27px; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 4px rgba(0, 0, 0, 0.3);
  color: #fff; font-weight: 700;
}
.os-winvista .win-btns .close, .os-win7 .win-btns .close {
  width: 42px;
  background: linear-gradient(180deg, #f4846f 0%, #d53a24 50%, #a9200f 100%);
  border-color: #8d1e14;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 6px rgba(220, 60, 30, 0.5);
}
.os-winvista .win-btns .close:hover, .os-win7 .win-btns .close:hover {
  background: linear-gradient(180deg, #ff9680 0%, #e2452d 50%, #b92812 100%);
}
.os-winvista .start-btn, .os-win7 .start-btn {
  width: calc(var(--task-h) + 8px); height: calc(var(--task-h) + 8px);
  margin: -4px 8px -4px 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #eaf7ff 0%, #8fd0ff 18%, #2f8fe0 45%, #0a4f96 70%, #062a52 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 16px rgba(90, 170, 255, 0.85), inset 0 1px 3px rgba(255, 255, 255, 0.8), inset 0 -3px 8px rgba(0, 20, 50, 0.65);
}
.os-winvista .start-btn:hover, .os-win7 .start-btn:hover { filter: brightness(1.1); }
.os-winvista .start-logo, .os-win7 .start-logo { width: 17px; height: 17px; filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6)); }
.os-winvista .taskbar, .os-win7 .taskbar {
  background: linear-gradient(180deg, rgba(120, 160, 210, 0.55) 0%, rgba(30, 55, 90, 0.62) 9%, rgba(12, 28, 50, 0.75) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.os-winvista .task-item, .os-win7 .task-item {
  height: calc(var(--task-h) - 8px); border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #eaf2ff;
}
.os-winvista .task-item.active, .os-win7 .task-item.active {
  background: linear-gradient(180deg, rgba(170, 210, 255, 0.5), rgba(60, 110, 180, 0.55));
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 12px rgba(120, 190, 255, 0.55), 0 0 8px rgba(90, 170, 255, 0.45);
}
.os-winvista .task-tray, .os-win7 .task-tray {
  height: calc(var(--task-h) - 8px); padding: 0 10px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.os-win7 .start-menu, .os-winvista .start-menu { padding-top: 40px; }
.os-win7 .start-menu::before, .os-winvista .start-menu::before {
  content: "Search programs and files";
  position: absolute; top: 8px; left: 8px; right: 8px; height: 26px;
  padding: 4px 12px; box-sizing: border-box;
  border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6); font-size: 0.74rem;
}
.os-winvista .sm-item:hover, .os-win7 .sm-item:hover {
  background: linear-gradient(180deg, rgba(120, 180, 255, 0.45), rgba(60, 120, 200, 0.35));
  box-shadow: inset 0 0 8px rgba(120, 190, 255, 0.35);
}

/* ---- 8.1 / 10 (flat) ---- */
.os-win81 .window, .os-win10 .window {
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 18px 44px -18px rgba(0, 0, 0, 0.65);
}
.os-win81 .titlebar, .os-win10 .titlebar { background: #ffffff; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.os-win81 .win-btns, .os-win10 .win-btns, .os-win11 .win-btns { gap: 0; height: 100%; align-items: stretch; }
.os-win81 .win-btns button, .os-win10 .win-btns button {
  width: 34px; height: 100%; border-radius: 0; background: transparent; color: #333;
}
.os-win81 .win-btns button:hover, .os-win10 .win-btns button:hover { background: rgba(0, 0, 0, 0.08); }
.os-win81 .win-btns .close:hover, .os-win10 .win-btns .close:hover { background: #e81123; color: #fff; }
.os-win81 .taskbar, .os-win10 .taskbar { background: #141414; box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6); }
.os-win81 .task-item, .os-win10 .task-item { border-radius: 0; color: #fff; }
.os-win81 .task-item:hover, .os-win10 .task-item:hover { background: rgba(255, 255, 255, 0.1); }
.os-win81 .task-item.active, .os-win10 .task-item.active { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 -2px 0 var(--accent); }
.os-win81 .start-btn, .os-win10 .start-btn { border-radius: 0; }
.os-win81 .start-btn:hover, .os-win10 .start-btn:hover { background: rgba(255, 255, 255, 0.12); }
.os-win81 .start-menu { border-radius: 0; }
.os-win10 .start-menu, .os-win81 .start-menu { padding-top: 40px; }
.os-win10 .start-menu::before, .os-win81 .start-menu::before {
  content: "Type here to search";
  position: absolute; top: 8px; left: 8px; right: 8px; height: 26px;
  padding: 4px 12px; box-sizing: border-box; border-radius: 0;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6); font-size: 0.74rem;
}
.os-win10 .sm-item:hover, .os-win81 .sm-item:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Windows 11 (acrylic) ---- */
.os-win11 .window { border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 34px 74px -24px rgba(0, 0, 0, 0.6); }
.os-win11 .titlebar { background: #f3f3f3; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.os-win11 .win-btns button { width: 34px; height: 100%; border-radius: 0; background: transparent; color: #333; }
.os-win11 .win-btns button:hover { background: rgba(0, 0, 0, 0.07); }
.os-win11 .win-btns .close:hover { background: #c42b1c; color: #fff; }
.os-win11 .taskbar {
  background: rgba(243, 243, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.os-win11 .start-btn { border-radius: 8px; }
.os-win11 .start-btn:hover { background: rgba(0, 0, 0, 0.06); }
.os-win11 .task-item { border-radius: 6px; }
.os-win11 .task-item.active { box-shadow: inset 0 -2px 0 var(--accent); }
.os-win11 .start-menu { border-radius: 12px; padding-top: 40px; }
.os-win11 .start-menu::before {
  content: "Search";
  position: absolute; top: 8px; left: 8px; right: 8px; height: 28px;
  padding: 4px 12px; box-sizing: border-box; border-radius: 6px;
  background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.08);
  color: #666; font-size: 0.78rem;
}

@media (max-width: 640px) {
  .os-winxp .start-menu { width: calc(100vw - 16px); }
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .desk-icon { width: 70px; font-size: 0.68rem; }
  .start-menu { width: min(292px, calc(100vw - 16px)); }
  .os-win11 .task-left { position: static; transform: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-layer.shake, .fx-layer.rainbow, .nyan, .sim-overlay .eye { animation: none !important; }
}

/* boot details */
.boot-sub { font-size: 0.72rem; color: #9aa4b8; margin: -14px 0 18px; letter-spacing: 0.02em; }
.boot-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 0.72rem; color: #c7ccda; }
.boot-brand img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }

/* tray + clock + show desktop */
.tray-icons { display: flex; align-items: center; gap: 2px; }
.tray-icon { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; border-radius: 5px; cursor: pointer; opacity: 0.85; }
.tray-icon svg { width: 16px; height: 16px; }
.tray-icon:hover { background: rgba(128, 128, 128, 0.24); opacity: 1; }
.tray-icon.muted { opacity: 0.4; }
.clock { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 4px 6px; border-radius: 5px; }
.clock:hover { background: rgba(128, 128, 128, 0.2); }
.show-desktop { width: 9px; height: calc(var(--task-h) - 6px); padding: 0; border: 0; border-left: 1px solid rgba(128, 128, 128, 0.5); background: transparent; cursor: pointer; }
.show-desktop:hover { background: rgba(128, 128, 128, 0.28); }

/* toasts */
.toasts { position: fixed; right: 14px; bottom: calc(var(--task-h) + 14px); z-index: 940; display: flex; flex-direction: column; gap: 10px; width: min(340px, calc(100vw - 28px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 10px; background: rgba(20, 24, 34, 0.94); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); pointer-events: auto; animation: toastIn 0.24s ease; }
.toast.out { animation: toastOut 0.24s ease forwards; }
.toast.danger { border-color: rgba(255, 66, 88, 0.55); }
.toast-avatar { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.toast-glyph { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); font-size: 1.1rem; flex-shrink: 0; }
.toast-glyph svg { width: 1em; height: 1em; }
.toast-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.toast-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast-copy b { font-size: 0.8rem; }
.toast-copy span { font-size: 0.75rem; color: #c7ccda; line-height: 1.4; }
.toast-close { border: 0; background: transparent; color: #8f97a8; font-size: 1rem; line-height: 1; padding: 2px 4px; cursor: pointer; }
.toast-close:hover { color: #fff; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(18px); opacity: 0; } }

/* window menus, status, resize */
.win-menubar { display: flex; gap: 2px; padding: 2px 4px; flex-shrink: 0; background: var(--toolbar-bg); border-bottom: 1px solid rgba(128, 128, 128, 0.28); }
.win-menu-btn { border: 0; background: transparent; color: var(--text); font-size: 0.76rem; padding: 3px 8px; border-radius: 3px; cursor: pointer; }
.win-menu-btn:hover { background: rgba(128, 128, 128, 0.24); }
.win-menu-drop { position: absolute; z-index: 6; min-width: 172px; padding: 4px; background: var(--menu-bg); color: var(--menu-fg); border: var(--menu-border); border-radius: 6px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7); }
.win-menu-item { display: block; width: 100%; text-align: left; padding: 6px 10px; border: 0; background: transparent; color: inherit; border-radius: 4px; font-size: 0.8rem; cursor: pointer; }
.win-menu-item:hover { background: rgba(128, 128, 128, 0.24); }
.win-menu-item.danger { color: #e8524a; }
.win-menu-sep { height: 1px; background: rgba(128, 128, 128, 0.3); margin: 5px 4px; }
.win-status { display: flex; align-items: center; flex-shrink: 0; height: 22px; padding: 0 10px; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--toolbar-bg); color: var(--text); border-top: 1px solid rgba(128, 128, 128, 0.3); }
.win-resize { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; z-index: 2; background: linear-gradient(135deg, transparent 46%, rgba(128, 128, 128, 0.65) 46% 56%, transparent 56% 64%, rgba(128, 128, 128, 0.65) 64% 74%, transparent 74%); }

/* start menu user header */
.sm-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(128, 128, 128, 0.25); }
.sm-user img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.25); }
.sm-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.sm-user-meta b { font-size: 0.84rem; }
.sm-user-meta span { font-size: 0.68rem; opacity: 0.6; }
.os-winxp .start-menu { padding: 8px; }
.os-winxp .start-menu::before, .os-winxp .start-menu::after { content: none; display: none; }
.os-winxp .sm-user { padding: 10px; border-radius: 6px 6px 0 0; border-bottom: 2px solid #f9a825; background: linear-gradient(180deg, #3d95ff 0%, #0a5fd8 100%); color: #fff; }
.os-winxp .sm-user img { border-color: rgba(255, 255, 255, 0.6); }
.os-winxp .sm-user-meta span { opacity: 0.85; }
.os-win95 .sm-user, .os-win98 .sm-user, .os-winme .sm-user, .os-win2000 .sm-user { display: none; }

/* file explorer */
.ex { display: flex; flex-direction: column; height: 100%; background: #fff; color: #111; }
.ex-toolbar { display: flex; align-items: center; gap: 5px; padding: 6px 8px; flex-shrink: 0; background: var(--toolbar-bg); border-bottom: 1px solid rgba(128, 128, 128, 0.3); }
.ex-nav { width: 26px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(128, 128, 128, 0.4); border-radius: 4px; background: rgba(255, 255, 255, 0.25); color: inherit; font-size: 0.9rem; line-height: 1; cursor: pointer; }
.ex-nav:hover:not(:disabled) { background: rgba(128, 128, 128, 0.22); }
.ex-nav:disabled { opacity: 0.4; cursor: default; }
.ex-addr { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; height: 26px; padding: 0 6px; background: #fff; border: 1px solid rgba(128, 128, 128, 0.45); border-radius: 4px; }
.ex-addr-glyph { display: inline-flex; color: #4a90d9; font-size: 0.9rem; flex-shrink: 0; }
.ex-addr-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #111; font: inherit; font-size: 0.78rem; }
.ex-body { flex: 1; display: flex; min-height: 0; }
.ex-side { width: 190px; flex-shrink: 0; padding: 12px; overflow: auto; background: linear-gradient(180deg, #eef4ff, #dce7fb); border-right: 1px solid #cfd7e6; }
.ex-side h4 { margin: 0 0 9px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #3a567e; }
.ex-side h4:not(:first-child) { margin-top: 16px; }
.ex-side .mc-link { display: block; color: #0a4a9a; font-size: 0.78rem; margin-bottom: 8px; cursor: pointer; }
.ex-side .mc-link:hover { text-decoration: underline; }
.ex-main { flex: 1; overflow: auto; min-width: 0; }
.ex-list { display: flex; flex-direction: column; padding: 4px; }
.ex-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border: 0; border-radius: 4px; background: transparent; color: #111; font: inherit; font-size: 0.8rem; text-align: left; cursor: pointer; }
.ex-row:hover { background: #eaf1ff; }
.ex-row.danger .ex-name { color: #c01f2f; }
.ex-glyph { display: inline-flex; flex-shrink: 0; font-size: 1.15rem; color: #4a90d9; }
.ex-glyph svg { width: 1em; height: 1em; }
.ex-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ex-meta { flex-shrink: 0; font-size: 0.72rem; color: #6b7688; white-space: nowrap; }
.ex-bar { width: 90px; height: 8px; flex-shrink: 0; border-radius: 4px; background: #e5e7eb; overflow: hidden; }
.ex-bar span { display: block; height: 100%; background: linear-gradient(90deg, #4a90d9, #2b6cff); }
.ex-empty { padding: 26px; text-align: center; color: #7b8494; font-size: 0.84rem; }

/* paint */
.paint-app { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--toolbar-bg); }
.paint-app .paint-canvas { flex: 1; min-height: 0; width: 100%; }
.paint-tools { display: flex; gap: 4px; padding: 6px 8px; flex-shrink: 0; border-bottom: 1px solid rgba(128, 128, 128, 0.3); }
.paint-tool { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(128, 128, 128, 0.35); border-radius: 5px; background: rgba(255, 255, 255, 0.25); color: var(--text); cursor: pointer; }
.paint-tool svg { width: 16px; height: 16px; }
.paint-tool:hover { background: rgba(128, 128, 128, 0.2); }
.paint-tool.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(43, 108, 255, 0.16); }
.paint-bar label { color: var(--text); }

/* calculator memory row */
.calc-mem { display: flex; align-items: center; gap: 6px; padding: 8px 10px; flex-shrink: 0; background: #12141a; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.calc-mem button { border: 0; border-radius: 5px; padding: 4px 9px; background: #2a2f3a; color: #dfe6ff; font-size: 0.68rem; cursor: pointer; }
.calc-mem button:hover { background: #39404e; }
.calc-memind { margin-left: auto; padding: 2px 6px; border: 1px solid rgba(37, 194, 129, 0.5); border-radius: 4px; color: #25c281; font-size: 0.68rem; font-weight: 700; }
.calc-memind[hidden] { display: none; }

/* internet explorer */
.ie-tabs { display: flex; gap: 2px; padding: 6px 8px 0; flex-shrink: 0; background: #dfe3ea; border-bottom: 1px solid #b8c0cc; }
.ie-tab { padding: 5px 14px; border: 1px solid #b8c0cc; border-bottom: 0; border-radius: 6px 6px 0 0; background: #eef1f6; color: #39414f; font-size: 0.74rem; cursor: pointer; }
.ie-tab.active { background: #fff; color: #111; font-weight: 600; }
.ie-nav { width: 26px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 4px; background: #f6f8fb; color: #333; font-size: 0.9rem; cursor: pointer; }
.ie-nav:hover:not(:disabled) { background: #e6ebf3; }
.ie-nav:disabled { opacity: 0.4; cursor: default; }
.ie-addr { background: #fff; }
.ie-addr .ex-addr-glyph { color: #4caf50; }
.ie-page { padding: 22px 26px; color: #222; font-size: 0.86rem; line-height: 1.6; }
.ie-page h1 { color: #111; }
.ie-h1 { margin: 0 0 4px; font-size: 1.35rem; }
.ie-sub { margin: 0 0 14px; color: #66707f; font-size: 0.78rem; }
.ie-hero { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid #e3e7ee; }
.ie-hero img { width: 84px; height: 84px; flex-shrink: 0; border-radius: 18px; object-fit: cover; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4); }
.ie-hero h1 { margin: 0 0 2px; font-size: 1.5rem; }
.ie-hero p { margin: 0 0 8px; }
.ie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ie-btn { display: inline-block; padding: 7px 14px; border: 1px solid #0a58ca; border-radius: 6px; background: #0a58ca; color: #fff; font: inherit; font-size: 0.78rem; text-decoration: none; cursor: pointer; }
.ie-btn:hover { filter: brightness(1.08); }
.ie-btn.ghost { background: #fff; color: #0a58ca; }
.ie-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.ie-card { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid #d9e0ea; border-radius: 8px; background: #f8fafc; color: #172033; font: inherit; text-align: left; cursor: pointer; }
.ie-card:hover { border-color: #0a58ca; background: #eef4ff; }
.ie-card b { font-size: 0.85rem; }
.ie-card span { color: #5c6675; font-size: 0.74rem; }
.ie-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 14px 0; }
.ie-video { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0e5ee; border-radius: 8px; background: #fff; color: #172033; text-decoration: none; }
.ie-video img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dfe3ea; }
.ie-video b { padding: 8px 10px 0; font-size: 0.82rem; }
.ie-video span { padding: 2px 10px 10px; color: #5c6675; font-size: 0.72rem; }
.ie-note { margin-top: 16px; color: #7a8494; font-size: 0.75rem; }

/* display properties */
.theme-app { display: flex; flex-direction: column; height: 100%; background: var(--window-bg); color: var(--text); }
.theme-preview { padding: 12px 14px 0; }
.tp-scene { position: relative; height: 130px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 8px; background: var(--tp-wall, #062a4d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tp-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18)); }
.tp-win { position: absolute; left: 16%; top: 18%; width: 44%; height: 52%; z-index: 2; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5); }
.tp-title { height: 15px; background: var(--accent); }
.tp-lines { display: flex; flex-direction: column; gap: 5px; padding: 10px; }
.tp-lines span { height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.14); }
.tp-lines span:nth-child(2) { width: 80%; }
.tp-lines span:nth-child(3) { width: 60%; }
.tp-taskbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px; background: rgba(0, 0, 0, 0.5); }
.tp-orb { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #eaf7ff, #2f8fe0 60%, #0a3f7a); }
.tp-pill { width: 26px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.tp-pill.sm { width: 18px; }
.tp-meta { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px 6px; }
.tp-meta > div { display: flex; flex-direction: column; }
.tp-name { font-size: 0.9rem; }
.tp-code { font-size: 0.7rem; opacity: 0.6; }
.tp-year { font-size: 0.74rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.theme-grid { flex: 1; min-height: 0; overflow: auto; }
.theme-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 14px; flex-shrink: 0; background: var(--toolbar-bg); border-top: 1px solid rgba(128, 128, 128, 0.28); }
.theme-hint { margin-right: auto; font-size: 0.72rem; opacity: 0.62; }
.theme-ok { padding: 6px 18px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-size: 0.8rem; cursor: pointer; }

/* about */
.about-rich { padding: 18px 20px; }
.about-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.about-head img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45); }
.about-head h3 { margin: 0 0 3px; }
.about-tag { margin: 0; font-size: 0.78rem; opacity: 0.65; }
.about-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0 0 14px; padding: 12px; border-radius: 8px; background: rgba(128, 128, 128, 0.1); }
.about-specs > div { display: flex; flex-direction: column; gap: 1px; }
.about-specs dt { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.55; }
.about-specs dd { margin: 0; font-size: 0.78rem; }
.about-specs a { color: var(--accent); }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.about-actions .linklike { font-size: 0.8rem; }

@media (max-width: 640px) {
  .tray-icons { display: none; }
  .task-tray { gap: 6px; }
  .ex-side { width: 150px; }
  .ie-page { padding: 16px; }
  .ie-hero { align-items: flex-start; }
  .ie-hero img { width: 60px; height: 60px; border-radius: 14px; }
  .about-specs { grid-template-columns: 1fr; }
  .toasts { right: 8px; left: 8px; width: auto; }
}

/* command prompt */
.cmd { --cmd-bg: #0c0c0c; --cmd-fg: #e6e6e6; display: flex; flex-direction: column; height: 100%; min-height: 220px; padding: 10px 12px; background: var(--cmd-bg); color: var(--cmd-fg); font-family: "Consolas", "Courier New", monospace; font-size: 0.82rem; line-height: 1.5; overflow: hidden; }
.cmd-out { flex: 1; min-height: 0; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.cmd-out > div { min-height: 1.5em; }
.cmd-out .cmd-err { color: #ff7a7a; }
.cmd-out .cmd-note { color: #ffd166; }
.cmd-line { display: flex; align-items: center; flex-shrink: 0; margin-top: 2px; }
.cmd-prompt { flex-shrink: 0; white-space: pre; }
.cmd-input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0; background: transparent; color: inherit; font: inherit; caret-color: var(--cmd-fg); }
.cmd ::selection { background: rgba(255, 255, 255, 0.28); }
.cmd-out::-webkit-scrollbar { width: 10px; }

/* run dialog */
.run-app { padding: 18px 20px 16px; background: var(--window-bg); color: var(--text); font-size: 0.86rem; }
.run-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.run-glyph { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.run-glyph svg { width: 1em; height: 1em; display: block; }
.run-head p { margin: 0; line-height: 1.55; }
.run-field { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.run-field span { flex-shrink: 0; }
.run-input { flex: 1; min-width: 0; height: 28px; padding: 0 8px; border: 1px solid rgba(128, 128, 128, 0.55); border-radius: 4px; background: var(--window-bg); color: var(--text); font: inherit; font-size: 0.82rem; outline: none; }
.run-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.25); }
.run-actions { display: flex; justify-content: flex-end; gap: 8px; }
.run-actions button { min-width: 74px; padding: 6px 14px; border: 1px solid rgba(128, 128, 128, 0.5); border-radius: 6px; background: rgba(128, 128, 128, 0.15); color: inherit; font: inherit; font-size: 0.8rem; cursor: pointer; }
.run-actions button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.run-actions button:hover { filter: brightness(1.1); }

/* about credits */
.about-credits { margin-top: 12px; font-size: 0.7rem; line-height: 1.5; opacity: 0.6; }

/* bsod extras */
.sim-overlay.bsod .bsod-lead { font-size: 1.02rem; color: #fff; margin-bottom: 18px; }
.sim-overlay.bsod .bsod-code { margin-top: 22px; font-size: 0.9rem; letter-spacing: 0.04em; opacity: 0.85; }
.sim-overlay.bsod .bsod-hint { margin-top: 14px; font-size: 0.78rem; opacity: 0.6; }
.sim-overlay.bsod .so-actions { justify-content: flex-start; margin-top: 18px; }
