@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --gray: #c0c0c0;
  --darkgray: #808080;
  --navy: #000080;
  --teal: #008080;
  --white: #fff;
  --black: #000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, Geneva, sans-serif;
  font-size: 12px;
  -webkit-font-smoothing: none;
  user-select: none;
  cursor: default;
}
#root { height: 100%; }

/* ---------- Bevel utilities ---------- */
.w95-btn, .start-btn, .task-btn, .tb-btn {
  background: var(--gray);
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  font-family: inherit;
  font-size: 12px;
  cursor: default;
  color: #000;
}
.w95-btn { padding: 2px 8px; }
.w95-btn:active, .w95-btn.active, .start-btn.pressed, .task-btn.active {
  border-color: #000 #fff #fff #000;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #dfdfdf;
}
.sunken {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #dfdfdf;
  background: #fff;
}

/* ---------- Boot screen ---------- */
.boot {
  height: 100%;
  background: linear-gradient(180deg, #4a90d9 0%, #7fb8e8 50%, #a8d0ee 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.25);
}
.boot-logo { display: flex; align-items: center; gap: 20px; animation: fadein 1s ease; }
.boot-text { text-align: left; }
.boot-bar {
  margin-top: 50px; width: 240px; height: 20px;
  border: 2px solid; border-color: #808080 #fff #fff #808080; background: #c0c0c0;
  padding: 2px; box-shadow: inset 1px 1px 0 #000;
}
.boot-bar-fill {
  height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, #000080 0, #000080 8px, #c0c0c0 8px, #c0c0c0 11px);
  animation: fill 2.4s linear forwards;
}
@keyframes fill { to { width: 100%; } }
@keyframes fadein { from { opacity: 0; transform: scale(.9);} }

/* ---------- Shutdown screen ---------- */
.shutdown {
  height: 100%; background: #000; color: #ffa500;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: "VT323", monospace;
}
.shutdown-text { font-size: 40px; line-height: 1.3; text-shadow: 0 0 8px #ffa500; animation: fadein .5s; }
.shutdown-hint { margin-top: 30px; font-size: 20px; color: #888; }

/* ---------- Desktop ---------- */
.desktop {
  height: 100%; background: var(--teal); position: relative; overflow: hidden;
}
.desk-icons { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 14px; }
.desk-icon {
  width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 3px; cursor: default; text-align: center;
}
.desk-icon-img { font-size: 32px; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
.desk-icon-label { color: #fff; font-size: 11px; text-shadow: 1px 1px 0 #000; padding: 0 2px; line-height: 1.1; }
.desk-icon.selected .desk-icon-label { background: var(--navy); }
.desk-icon.selected .desk-icon-img { filter: none; opacity: .7; }

/* ---------- Windows ---------- */
.window {
  position: absolute;
  background: var(--gray);
  border: 2px solid; border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080, 2px 2px 4px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  min-width: 180px;
}
.titlebar {
  display: flex; align-items: center; gap: 5px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff; padding: 2px 3px; height: 22px; cursor: default;
}
.titlebar.inactive { background: var(--darkgray); color: #d0d0d0; }
.titlebar-icon { font-size: 13px; }
.titlebar-text { font-weight: bold; font-size: 12px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar-btns { display: flex; gap: 2px; }
.tb-btn {
  width: 18px; height: 16px; font-size: 10px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0; font-weight: bold;
}
.tb-btn.close { font-family: Arial, sans-serif; }
.menubar { display: flex; gap: 0; padding: 2px 3px; font-size: 12px; }
.menu-item { padding: 1px 7px; }
.menu-item:hover { background: var(--navy); color: #fff; }
.window-body { flex: 1; padding: 3px; overflow: hidden; display: flex; }
.window-body > * { flex: 1; min-height: 0; }

/* ---------- Taskbar ---------- */
.taskbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 30px;
  background: var(--gray);
  border-top: 2px solid #fff;
  box-shadow: inset 0 1px 0 #dfdfdf;
  display: flex; align-items: center; gap: 4px; padding: 3px 4px; z-index: 9999;
}
.start-btn {
  display: flex; align-items: center; gap: 4px; padding: 2px 6px; height: 24px;
  font-weight: bold; font-size: 13px;
}
.start-label { margin-top: 1px; }
.task-divider { width: 2px; height: 22px; border-left: 1px solid #808080; border-right: 1px solid #fff; }
.task-buttons { flex: 1; display: flex; gap: 3px; overflow: hidden; }
.task-btn {
  display: flex; align-items: center; gap: 4px; height: 24px; padding: 2px 6px;
  max-width: 160px; min-width: 40px; flex: 0 1 160px;
}
.task-btn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.task-btn.active .task-btn-label { font-weight: bold; }
.systray {
  display: flex; align-items: center; gap: 6px; padding: 2px 8px; height: 24px; margin: 0; background: var(--gray);
}
.systray-clock { font-size: 11px; min-width: 56px; text-align: right; }

/* ---------- Start menu ---------- */
.startmenu {
  position: absolute; bottom: 30px; left: 2px; width: 200px;
  background: var(--gray); display: flex;
  border: 2px solid; border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf, 2px 2px 4px rgba(0,0,0,.4);
  z-index: 10000;
}
.startmenu-banner {
  width: 26px; background: linear-gradient(180deg, #000080, #1084d0);
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: #fff; display: flex; align-items: center; justify-content: flex-start;
  padding: 8px 4px; gap: 4px; font-size: 18px;
}
.startmenu-banner b { font-size: 20px; }
.startmenu-items { flex: 1; padding: 2px; }
.sm-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: 13px; }
.sm-item:hover { background: var(--navy); color: #fff; }
.sm-icon { font-size: 16px; width: 20px; text-align: center; }
.sm-label { flex: 1; }
.sm-arrow { font-size: 10px; }
.sm-sep { height: 2px; margin: 3px 4px; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }

/* ---------- Minesweeper ---------- */
.ms-wrap { display: flex; flex-direction: column; gap: 5px; padding: 4px; background: var(--gray); width: 100%; }
.ms-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; background: var(--gray); }
.ms-counter {
  background: #000; color: #ff0000; font-family: "VT323", monospace; font-size: 26px;
  padding: 0 4px; letter-spacing: 2px; line-height: 1; border: 1px solid #808080;
}
.ms-face { width: 30px; height: 30px; font-size: 16px; padding: 0; display: flex; align-items: center; justify-content: center; }
.ms-board { padding: 4px; background: var(--gray); display: inline-block; align-self: center; }
.ms-row { display: flex; }
.ms-cell {
  width: 22px; height: 22px; font-size: 13px; padding: 0; line-height: 1;
  background: var(--gray); border: 2px solid; border-color: #fff #808080 #808080 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf; display: flex; align-items: center; justify-content: center;
  font-family: "VT323", monospace; cursor: default;
}
.ms-cell.revealed { border: 1px solid #808080; box-shadow: none; background: #bfbfbf; }
.ms-status { text-align: center; font-size: 11px; color: #000; padding: 2px; }

/* ---------- Paint ---------- */
.paint-wrap { display: flex; flex-direction: column; width: 100%; background: var(--gray); gap: 3px; }
.paint-toolbar { display: flex; gap: 3px; padding: 2px; }
.paint-toolbar .w95-btn { width: 30px; height: 28px; font-size: 15px; padding: 0; }
.paint-main { display: flex; gap: 4px; }
.paint-palette { display: grid; grid-template-columns: repeat(2, 16px); grid-auto-rows: 16px; gap: 2px; align-content: start; }
.swatch { width: 16px; height: 16px; border: 1px solid #808080; padding: 0; cursor: default; }
.swatch.sel { outline: 2px solid #000; outline-offset: -1px; }
.paint-canvas { flex: 1; background: #fff; touch-action: none; cursor: crosshair; max-width: 100%; }

/* ---------- Notepad ---------- */
.notepad-area {
  width: 100%; height: 100%; resize: none; border: 2px solid; border-color: #808080 #fff #fff #808080;
  font-family: "VT323", monospace; font-size: 16px; padding: 4px; background: #fff; color: #000;
  user-select: text; cursor: text; outline: none;
}

/* ---------- Explorer ---------- */
.explorer { width: 100%; height: 100%; background: #fff; padding: 10px; display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; overflow: auto; }
.explorer-item { width: 70px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.explorer-icon { font-size: 30px; }
.explorer-label { font-size: 11px; }

/* ---------- Internet ---------- */
.ie-wrap { display: flex; flex-direction: column; width: 100%; gap: 3px; background: var(--gray); }
.ie-bar { display: flex; align-items: center; gap: 5px; padding: 2px; }
.ie-input { flex: 1; font-family: inherit; font-size: 12px; padding: 2px 4px; border: none; user-select: text; cursor: text; }
.ie-content { flex: 1; background: #fff; padding: 12px; overflow: auto; user-select: text; }
.ie-content p, .ie-content h2 { user-select: text; }
.blink { animation: blink 1s steps(1) infinite; color: #ff0000; font-weight: bold; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Welcome ---------- */
.welcome-wrap { width: 100%; height: 100%; background: var(--gray); display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.welcome-banner { display: flex; align-items: center; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; padding: 14px; margin: 0 4px; }
.welcome-tips { background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; margin: 0 12px; padding: 10px; font-size: 12px; }

/* ---------- Remix link ---------- */
.remix-link {
  position: absolute; bottom: 36px; right: 6px; z-index: 9998;
  background: var(--gray); border: 2px solid; border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  padding: 2px 8px; font-size: 11px; color: #000; text-decoration: none;
}
.remix-link:active { border-color: #000 #fff #fff #000; }

@media (max-width: 640px) {
  .desk-icons { gap: 8px; }
  .desk-icon { width: 64px; }
  .desk-icon-img { font-size: 26px; }
  .task-btn { flex: 0 1 90px; }
  .remix-link { bottom: 34px; }
}
</parameter>
</invoke>