/* Windows 98 Authentic Style Sheet */
:root {
  --sys-desktop: #008080;
  --sys-face: #c0c0c0;
  --sys-highlight: #ffffff;
  --sys-light: #dfdfdf;
  --sys-shadow: #808080;
  --sys-dark-shadow: #000000;
  --sys-active-title-start: #000080;
  --sys-active-title-end: #1084d0;
  --sys-active-title-text: #ffffff;
  --sys-inactive-title-start: #808080;
  --sys-inactive-title-end: #b5b5b5;
  --sys-inactive-title-text: #c0c0c0;
  --sys-window: #ffffff;
  --sys-window-text: #000000;
  --sys-select-bg: #000080;
  --sys-select-text: #ffffff;
  --sys-tooltip-bg: #ffffe1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  font-family: "MS Sans Serif", Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
}

/* ==========================================================================
   AUTHENTIC 3D BEVEL CLASSES
   ========================================================================== */
.bevel-raised {
  background-color: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow);
}

.bevel-raised-thin {
  background-color: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow);
}

.bevel-sunken {
  background-color: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-dark-shadow),
              inset -2px -2px var(--sys-light);
}

.bevel-sunken-field {
  background-color: var(--sys-window);
  color: var(--sys-window-text);
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-dark-shadow),
              inset -2px -2px var(--sys-light);
}

.bevel-sunken-thin {
  background-color: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight);
}

/* Standard 98 Push Buttons */
.win-btn {
  background-color: var(--sys-face);
  color: var(--sys-window-text);
  font-family: inherit;
  font-size: 11px;
  padding: 4px 12px;
  min-width: 75px;
  height: 23px;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow);
  cursor: default;
}

.win-btn:active, .win-btn.pressed {
  box-shadow: inset 1px 1px var(--sys-dark-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-shadow),
              inset -2px -2px var(--sys-light);
  padding: 5px 11px 3px 13px;
}

.win-btn.default {
  border: 1px solid var(--sys-dark-shadow);
}

.win-btn:disabled {
  color: var(--sys-shadow);
  text-shadow: 1px 1px var(--sys-highlight);
  cursor: default;
}

/* ==========================================================================
   BOOT SEQUENCE & SCREENS
   ========================================================================== */
#boot-bios {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000000;
  color: #C0C0C0;
  font-family: "Courier New", monospace;
  font-size: 14px;
  padding: 24px 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bios-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bios-energy-star {
  width: 90px;
  height: 65px;
  border: 2px solid #FFCC00;
  color: #FFCC00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-align: center;
}

.bios-text {
  line-height: 1.5;
  margin-top: 16px;
}

.bios-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #FFFFFF;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Windows 98 Cloud Splash Screen */
#boot-splash {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, #1060A0 0%, #4692D4 45%, #FFFFFF 85%, #4692D4 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.splash-title {
  font-family: "Arial", sans-serif;
  font-size: 42px;
  font-weight: bold;
  font-style: italic;
  color: #000080;
  letter-spacing: -1px;
  margin-top: 16px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.splash-subtitle {
  font-family: "Arial", sans-serif;
  font-size: 16px;
  color: #E23838;
  font-weight: bold;
  margin-bottom: 40px;
}

.splash-progress-track {
  width: 340px;
  height: 16px;
  background: #000000;
  border: 2px solid #C0C0C0;
  box-shadow: inset 1px 1px #000000;
  position: relative;
  overflow: hidden;
}

.splash-progress-bar {
  width: 90px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #1084d0 50%, #ffffff 80%, #1084d0 100%);
  position: absolute;
  animation: splashScan 1.6s infinite linear;
}

@keyframes splashScan {
  0% { left: -90px; }
  100% { left: 340px; }
}

/* Shutdown Safe Screen */
#shutdown-screen {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
}

.shutdown-msg {
  font-family: "Times New Roman", serif;
  font-size: 32px;
  font-weight: bold;
  color: #FF8000;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   DESKTOP & SHELL
   ========================================================================== */
#desktop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 28px;
  background-color: var(--sys-desktop);
  overflow: hidden;
}

/* Marquee Selection Rectangle */
#desktop-marquee {
  position: absolute;
  border: 1px dotted #FFFFFF;
  background: rgba(0, 0, 128, 0.2);
  display: none;
  pointer-events: none;
  z-index: 50;
}

/* Desktop Icons Grid */
.desktop-icon {
  position: absolute;
  width: 74px;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
  z-index: 10;
}

.desktop-icon-img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-icon-label {
  color: #FFFFFF;
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 3px;
  word-break: break-word;
}

.desktop-icon.selected .desktop-icon-label {
  background-color: var(--sys-select-bg);
  color: var(--sys-select-text);
  outline: 1px dotted #FFFF00;
}

.desktop-icon.selected .desktop-icon-img svg {
  filter: drop-shadow(0 0 2px rgba(0, 0, 128, 0.8));
}

/* ==========================================================================
   TASKBAR & SYSTEM TRAY
   ========================================================================== */
#taskbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background-color: var(--sys-face);
  display: flex;
  align-items: center;
  padding: 2px 3px;
  z-index: 5000;
  box-shadow: inset 0 1px var(--sys-highlight);
  border-top: 1px solid var(--sys-light);
}

/* Start Button */
#start-button {
  height: 22px;
  padding: 2px 6px;
  margin-right: 4px;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

#start-button svg {
  width: 16px;
  height: 16px;
}

#start-button:active, #start-button.pressed {
  box-shadow: inset 1px 1px var(--sys-dark-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-shadow),
              inset -2px -2px var(--sys-light);
  padding: 3px 5px 1px 7px;
}

/* Quick Launch divider */
.taskbar-divider {
  width: 3px;
  height: 20px;
  margin: 0 4px;
  box-shadow: inset -1px 0 var(--sys-shadow), inset 1px 0 var(--sys-highlight);
}

/* Open Windows List in Taskbar */
#taskbar-windows {
  flex: 1;
  display: flex;
  gap: 3px;
  overflow: hidden;
  height: 22px;
}

.taskbar-window-btn {
  flex: 1;
  max-width: 155px;
  min-width: 40px;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
}

.taskbar-window-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.taskbar-window-btn.active {
  background-color: var(--sys-light);
  box-shadow: inset 1px 1px var(--sys-dark-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-shadow),
              inset -2px -2px var(--sys-light);
  font-weight: bold;
  padding: 3px 4px 1px 6px;
}

/* System Tray */
#system-tray {
  height: 22px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight);
  background-color: var(--sys-face);
  margin-left: auto;
}

#tray-clock {
  font-size: 11px;
  color: var(--sys-window-text);
  min-width: 52px;
  text-align: center;
}

/* ==========================================================================
   START MENU
   ========================================================================== */
#start-menu {
  position: absolute;
  bottom: 28px;
  left: 2px;
  width: 190px;
  background-color: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow),
              3px 3px 8px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 6000;
  display: flex;
}

.start-menu-banner {
  width: 24px;
  background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.start-menu-banner-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #FFFFFF;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 2px;
  font-family: Arial, sans-serif;
}

.start-menu-items {
  flex: 1;
  padding: 3px 2px;
  display: flex;
  flex-direction: column;
}

.start-menu-item {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  gap: 8px;
  cursor: default;
  position: relative;
}

.start-menu-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.start-menu-item-text {
  flex: 1;
  font-size: 11px;
}

.start-menu-arrow {
  font-size: 8px;
  color: #000000;
}

.start-menu-item:hover, .start-menu-item.active {
  background-color: var(--sys-select-bg);
  color: var(--sys-select-text);
}

.start-menu-item:hover .start-menu-arrow,
.start-menu-item.active .start-menu-arrow {
  color: #FFFFFF;
}

.start-menu-sep {
  height: 2px;
  margin: 3px 4px;
  box-shadow: inset 0 1px var(--sys-shadow), inset 0 -1px var(--sys-highlight);
}

/* Cascading Submenu */
.submenu {
  position: absolute;
  left: 100%;
  top: -3px;
  min-width: 170px;
  background-color: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow),
              3px 3px 8px rgba(0, 0, 0, 0.4);
  padding: 2px;
  display: none;
  flex-direction: column;
  z-index: 6010;
}

.start-menu-item:hover > .submenu {
  display: flex;
}

/* ==========================================================================
   CONTEXT MENUS
   ========================================================================== */
.context-menu {
  position: absolute;
  background-color: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow),
              2px 2px 6px rgba(0, 0, 0, 0.4);
  padding: 2px;
  z-index: 7000;
  display: none;
  flex-direction: column;
  min-width: 140px;
}

.context-menu-item {
  height: 20px;
  display: flex;
  align-items: center;
  padding: 2px 14px;
  font-size: 11px;
  cursor: default;
  gap: 6px;
}

.context-menu-item:hover {
  background-color: var(--sys-select-bg);
  color: var(--sys-select-text);
}

.context-menu-item.disabled {
  color: var(--sys-shadow);
  text-shadow: 1px 1px var(--sys-highlight);
  pointer-events: none;
}

/* ==========================================================================
   WINDOW CHROME & ARCHITECTURE
   ========================================================================== */
.win-window {
  position: absolute;
  background-color: var(--sys-face);
  padding: 3px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow);
}

.win-window.active {
  z-index: 100;
}

.win-titlebar {
  height: 18px;
  background: linear-gradient(90deg, var(--sys-active-title-start) 0%, var(--sys-active-title-end) 100%);
  color: var(--sys-active-title-text);
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 1px 2px 1px 3px;
  cursor: default;
}

.win-window:not(.active) .win-titlebar {
  background: linear-gradient(90deg, var(--sys-inactive-title-start) 0%, var(--sys-inactive-title-end) 100%);
  color: var(--sys-inactive-title-text);
}

.win-title-icon {
  width: 16px;
  height: 16px;
  margin-right: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.win-title-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-title-controls {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.win-ctrl-btn {
  width: 16px;
  height: 14px;
  background-color: var(--sys-face);
  color: #000000;
  border: none;
  font-family: inherit;
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow);
  cursor: default;
  padding-bottom: 2px;
}

.win-ctrl-btn:active {
  box-shadow: inset 1px 1px var(--sys-dark-shadow),
              inset -1px -1px var(--sys-highlight);
  padding: 1px 0 0 1px;
}

.win-ctrl-close {
  font-size: 10px;
}

/* Menu Bar */
.win-menubar {
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  background-color: var(--sys-face);
  cursor: default;
}

.win-menu-item {
  padding: 2px 6px;
  cursor: default;
  position: relative;
}

.win-menu-item:hover, .win-menu-item.active {
  background-color: var(--sys-select-bg);
  color: var(--sys-select-text);
}

.win-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow),
              2px 2px 6px rgba(0, 0, 0, 0.4);
  padding: 2px;
  display: none;
  flex-direction: column;
  min-width: 140px;
  z-index: 1000;
  color: var(--sys-window-text);
}

.win-menu-item.active .win-menu-dropdown {
  display: flex;
}

.win-dropdown-item {
  height: 20px;
  display: flex;
  align-items: center;
  padding: 2px 16px 2px 8px;
  font-size: 11px;
  cursor: default;
  white-space: nowrap;
}

.win-dropdown-item:hover {
  background-color: var(--sys-select-bg);
  color: var(--sys-select-text);
}

.win-dropdown-sep {
  height: 2px;
  margin: 2px 2px;
  box-shadow: inset 0 1px var(--sys-shadow), inset 0 -1px var(--sys-highlight);
}

/* Toolbar */
.win-toolbar {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  background-color: var(--sys-face);
  border-top: 1px solid var(--sys-light);
  gap: 2px;
}

.win-tool-btn {
  height: 22px;
  padding: 2px 6px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.win-tool-btn:hover {
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow);
}

.win-tool-btn:active {
  box-shadow: inset 1px 1px var(--sys-dark-shadow),
              inset -1px -1px var(--sys-highlight);
  padding: 3px 5px 1px 7px;
}

/* Content Area */
.win-content {
  flex: 1;
  position: relative;
  overflow: auto;
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-dark-shadow),
              inset -2px -2px var(--sys-light);
  background-color: var(--sys-window);
}

/* Status Bar */
.win-statusbar {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 2px;
  background-color: var(--sys-face);
  border-top: 1px solid var(--sys-light);
}

.win-status-panel {
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight);
  font-size: 11px;
}

/* Resize Handles */
.win-resize-handle {
  position: absolute;
  z-index: 10;
}
.win-resize-n { top: -2px; left: 6px; right: 6px; height: 5px; cursor: n-resize; }
.win-resize-s { bottom: -2px; left: 6px; right: 6px; height: 5px; cursor: s-resize; }
.win-resize-w { top: 6px; bottom: 6px; left: -2px; width: 5px; cursor: w-resize; }
.win-resize-e { top: 6px; bottom: 6px; right: -2px; width: 5px; cursor: e-resize; }
.win-resize-nw { top: -2px; left: -2px; width: 8px; height: 8px; cursor: nw-resize; }
.win-resize-ne { top: -2px; right: -2px; width: 8px; height: 8px; cursor: ne-resize; }
.win-resize-sw { bottom: -2px; left: -2px; width: 8px; height: 8px; cursor: sw-resize; }
.win-resize-se { bottom: -2px; right: -2px; width: 8px; height: 8px; cursor: se-resize; }

/* ==========================================================================
   AUTHENTIC APPLICATIONS SPECIFICS
   ========================================================================== */

/* NOTEPAD */
.notepad-textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: "Courier New", monospace;
  font-size: 13px;
  padding: 4px;
  background-color: #FFFFFF;
  color: #000000;
  white-space: pre;
}

.notepad-textarea.wrap {
  white-space: pre-wrap;
}

/* PAINT */
.paint-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--sys-face);
}

.paint-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.paint-toolbox {
  width: 56px;
  padding: 4px;
  display: grid;
  grid-template-columns: 24px 24px;
  grid-gap: 2px;
  background: var(--sys-face);
}

.paint-tool-btn {
  width: 24px;
  height: 24px;
  background: var(--sys-face);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow);
}

.paint-tool-btn.active {
  box-shadow: inset 1px 1px var(--sys-dark-shadow),
              inset -1px -1px var(--sys-highlight);
  background: var(--sys-light);
}

.paint-canvas-container {
  flex: 1;
  background: #808080;
  padding: 8px;
  overflow: auto;
  box-shadow: inset 1px 1px var(--sys-shadow);
}

.paint-canvas {
  background: #FFFFFF;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  cursor: crosshair;
}

.paint-palette {
  height: 48px;
  background: var(--sys-face);
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 8px;
  border-top: 1px solid var(--sys-highlight);
}

.paint-color-display {
  width: 32px;
  height: 32px;
  position: relative;
  box-shadow: inset 1px 1px var(--sys-shadow), inset -1px -1px var(--sys-highlight);
}

.paint-sec-color {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  box-shadow: inset 1px 1px var(--sys-highlight), inset -1px -1px var(--sys-dark-shadow);
}

.paint-pri-color {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  box-shadow: inset 1px 1px var(--sys-highlight), inset -1px -1px var(--sys-dark-shadow);
}

.paint-swatches {
  display: grid;
  grid-template-rows: 14px 14px;
  grid-auto-flow: column;
  grid-gap: 2px;
}

.paint-swatch {
  width: 14px;
  height: 14px;
  box-shadow: inset 1px 1px var(--sys-dark-shadow), inset -1px -1px var(--sys-highlight);
}

/* CALCULATOR */
.calc-container {
  padding: 6px;
  background: var(--sys-face);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-display {
  height: 26px;
  background: #FFFFFF;
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-dark-shadow),
              inset -2px -2px var(--sys-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6px;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  grid-gap: 4px;
}

.calc-btn {
  height: 24px;
  min-width: unset;
  padding: 0;
  font-weight: bold;
}

.calc-btn.op { color: #0000FF; }
.calc-btn.clear { color: #FF0000; }

/* MINESWEEPER */
.mine-container {
  padding: 6px;
  background: var(--sys-face);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mine-header {
  width: 100%;
  height: 38px;
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-dark-shadow),
              inset -2px -2px var(--sys-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  margin-bottom: 6px;
}

.mine-led {
  background: #000000;
  color: #FF0000;
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 0 4px;
  box-shadow: inset 1px 1px var(--sys-shadow);
}

.mine-face-btn {
  width: 26px;
  height: 26px;
  background: var(--sys-face);
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow);
  cursor: default;
}

.mine-face-btn:active {
  box-shadow: inset 1px 1px var(--sys-dark-shadow),
              inset -1px -1px var(--sys-highlight);
}

.mine-grid {
  box-shadow: inset 1px 1px var(--sys-shadow),
              inset -1px -1px var(--sys-highlight),
              inset 2px 2px var(--sys-dark-shadow),
              inset -2px -2px var(--sys-light);
  display: grid;
  background: #C0C0C0;
}

.mine-cell {
  width: 16px;
  height: 16px;
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  cursor: default;
}

.mine-cell.revealed {
  box-shadow: 1px 0 0 #808080, 0 1px 0 #808080;
  background: #C0C0C0;
}

.mine-cell.mine-hit {
  background: #FF0000;
}

/* Cell numbers colors */
.mine-cell[data-num="1"] { color: #0000FF; }
.mine-cell[data-num="2"] { color: #008000; }
.mine-cell[data-num="3"] { color: #FF0000; }
.mine-cell[data-num="4"] { color: #000080; }
.mine-cell[data-num="5"] { color: #800000; }
.mine-cell[data-num="6"] { color: #008080; }
.mine-cell[data-num="7"] { color: #000000; }
.mine-cell[data-num="8"] { color: #808080; }

/* SOLITAIRE */
.sol-board {
  width: 100%;
  height: 100%;
  background-color: #008000;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.sol-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sol-piles {
  display: flex;
  gap: 12px;
}

.sol-card-slot {
  width: 71px;
  height: 96px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  position: relative;
}

.sol-tableau {
  display: flex;
  gap: 12px;
  height: calc(100% - 120px);
}

.sol-tableau-col {
  width: 71px;
  position: relative;
}

.sol-card {
  width: 71px;
  height: 96px;
  border: 1px solid #000000;
  border-radius: 4px;
  background-color: #FFFFFF;
  position: absolute;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.sol-card.back {
  background: repeating-linear-gradient(45deg, #000080, #000080 4px, #4169E1 4px, #4169E1 8px);
  border: 1px solid #FFFFFF;
}

.sol-card.red { color: #E23838; }
.sol-card.black { color: #000000; }

/* MS-DOS PROMPT */
.dos-container {
  width: 100%;
  height: 100%;
  background: #000000;
  color: #C0C0C0;
  font-family: "Courier New", monospace;
  font-size: 13px;
  padding: 6px;
  overflow-y: auto;
  line-height: 1.4;
}

.dos-input-line {
  display: flex;
  align-items: center;
}

.dos-prompt {
  color: #C0C0C0;
  margin-right: 4px;
}

.dos-input {
  background: transparent;
  border: none;
  outline: none;
  color: #C0C0C0;
  font-family: inherit;
  font-size: inherit;
  flex: 1;
}

/* INTERNET EXPLORER */
.ie-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--sys-face);
}

.ie-address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  background: var(--sys-face);
  border-top: 1px solid var(--sys-light);
}

.ie-address-input {
  flex: 1;
  height: 20px;
  padding: 0 4px;
  border: none;
  font-family: inherit;
  font-size: 11px;
}

.ie-globe-spinner {
  width: 24px;
  height: 24px;
  background: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.ie-content {
  flex: 1;
  background: #FFFFFF;
  overflow: auto;
  padding: 12px;
}

/* EXPLORER & MY COMPUTER */
.explorer-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.explorer-tree {
  width: 180px;
  background: #FFFFFF;
  border-right: 2px solid var(--sys-face);
  padding: 4px;
  overflow: auto;
}

.explorer-tree-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  cursor: default;
}

.explorer-tree-item:hover {
  background: #E8E8E8;
}

.explorer-tree-item.selected {
  background: var(--sys-select-bg);
  color: var(--sys-select-text);
}

.explorer-files {
  flex: 1;
  background: #FFFFFF;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  grid-gap: 8px;
  align-content: start;
  overflow: auto;
}

.explorer-file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px;
  cursor: default;
}

.explorer-file-item:hover {
  outline: 1px dotted var(--sys-shadow);
}

.explorer-file-item.selected {
  background: var(--sys-select-bg);
  color: var(--sys-select-text);
}

/* DISPLAY PROPERTIES TABS */
.tab-container {
  padding: 8px;
  background: var(--sys-face);
}

.tab-headers {
  display: flex;
  gap: 2px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}

.tab-header {
  padding: 3px 8px;
  background: var(--sys-face);
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px 0 var(--sys-dark-shadow);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  cursor: default;
}

.tab-header.active {
  padding-bottom: 4px;
  background: var(--sys-face);
  font-weight: bold;
}

.tab-body {
  box-shadow: inset 1px 1px var(--sys-highlight),
              inset -1px -1px var(--sys-dark-shadow),
              inset 2px 2px var(--sys-light),
              inset -2px -2px var(--sys-shadow);
  padding: 12px;
  background: var(--sys-face);
  position: relative;
  z-index: 1;
  min-height: 220px;
}

/* CRT Monitor Mockup */
.crt-monitor-mockup {
  width: 140px;
  height: 110px;
  background: #C0C0C0;
  border: 4px solid #DFDFDF;
  box-shadow: inset 1px 1px #FFF, inset -1px -1px #000, 2px 2px 4px rgba(0,0,0,0.3);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.crt-screen-mockup {
  width: 112px;
  height: 80px;
  background: var(--sys-desktop);
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* DIALOGS */
.win-dialog-content {
  padding: 14px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.win-dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
  background: var(--sys-face);
}

/* SCREENSAVER OVERLAY */
#screensaver-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000000;
  z-index: 9000;
  display: none;
}
