/* ============================================
   Windows 95 Desktop — styles
   ============================================ */

@font-face {
  font-family: "W95FA";
  src: url("https://unpkg.com/98.css@0.1.20/dist/ms_sans_serif.woff2") format("woff2"),
       url("https://unpkg.com/98.css@0.1.20/dist/ms_sans_serif.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "W95FA";
  src: url("https://unpkg.com/98.css@0.1.20/dist/ms_sans_serif_bold.woff2") format("woff2"),
       url("https://unpkg.com/98.css@0.1.20/dist/ms_sans_serif_bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Authentic Win95 palette */
  --w95-teal: #008080;
  --w95-bg: #c0c0c0;
  --w95-bg-light: #dfdfdf;
  --w95-bg-lighter: #ffffff;
  --w95-bg-dark: #808080;
  --w95-bg-darker: #000000;
  --w95-titlebar: #000080;
  --w95-titlebar-text: #ffffff;
  --w95-titlebar-inactive: #808080;
  --w95-link: #0000ff;
  --w95-selected: #000080;
  --w95-text: #000000;
  --w95-disabled: #808080;
  --w95-disabled-shadow: #ffffff;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
  image-rendering: pixelated;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: "W95FA", "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
  font-size: 14px;
  background: var(--w95-teal);
  color: var(--w95-text);
  user-select: none;
  -webkit-user-select: none;
}

#root {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

/* ============================================
   Desktop
   ============================================ */
.desktop {
  position: absolute;
  inset: 0;
  background: var(--w95-teal);
  overflow: hidden;
}

.desktop-icons {
  position: absolute;
  top: 8px;
  left: 8px;
  bottom: 36px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 92px);
  grid-auto-columns: 80px;
  gap: 4px;
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  cursor: pointer;
  width: 80px;
  text-align: center;
}

.desktop-icon-img {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  image-rendering: pixelated;
}

.desktop-icon-label {
  color: white;
  font-size: 12px;
  text-shadow: 1px 1px 0 black;
  padding: 1px 3px;
  line-height: 1.1;
  word-break: break-word;
  max-width: 76px;
}

.desktop-icon.selected .desktop-icon-label {
  background: var(--w95-selected);
  color: white;
  outline: 1px dotted white;
  outline-offset: -1px;
  text-shadow: none;
}

.desktop-icon.selected .desktop-icon-img > * {
  filter: hue-rotate(180deg) saturate(0.5) brightness(0.85);
}

/* ============================================
   Bevels — the heart of Win95
   ============================================ */
.bevel-out {
  border-top: 2px solid var(--w95-bg-lighter);
  border-left: 2px solid var(--w95-bg-lighter);
  border-right: 2px solid var(--w95-bg-darker);
  border-bottom: 2px solid var(--w95-bg-darker);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), inset -1px -1px 0 var(--w95-bg-dark);
}
.bevel-in {
  border-top: 2px solid var(--w95-bg-darker);
  border-left: 2px solid var(--w95-bg-darker);
  border-right: 2px solid var(--w95-bg-lighter);
  border-bottom: 2px solid var(--w95-bg-lighter);
  box-shadow: inset 1px 1px 0 var(--w95-bg-dark), inset -1px -1px 0 var(--w95-bg-light);
}
.bevel-thin-out {
  border-top: 1px solid var(--w95-bg-lighter);
  border-left: 1px solid var(--w95-bg-lighter);
  border-right: 1px solid var(--w95-bg-darker);
  border-bottom: 1px solid var(--w95-bg-darker);
}
.bevel-thin-in {
  border-top: 1px solid var(--w95-bg-darker);
  border-left: 1px solid var(--w95-bg-darker);
  border-right: 1px solid var(--w95-bg-lighter);
  border-bottom: 1px solid var(--w95-bg-lighter);
}

/* ============================================
   Window
   ============================================ */
.window {
  position: absolute;
  background: var(--w95-bg);
  border-top: 2px solid var(--w95-bg-lighter);
  border-left: 2px solid var(--w95-bg-lighter);
  border-right: 2px solid var(--w95-bg-darker);
  border-bottom: 2px solid var(--w95-bg-darker);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), inset -1px -1px 0 var(--w95-bg-dark);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  min-height: 100px;
}

.window-titlebar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: white;
  padding: 3px 3px 3px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 12px;
  height: 22px;
  cursor: move;
  user-select: none;
}

.window.inactive .window-titlebar {
  background: linear-gradient(90deg, #808080 0%, #c0c0c0 100%);
  color: #d4d0c8;
}

.window-titlebar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.window-titlebar-buttons {
  display: flex;
  gap: 2px;
}

.titlebar-btn {
  width: 16px;
  height: 14px;
  background: var(--w95-bg);
  border-top: 1px solid var(--w95-bg-lighter);
  border-left: 1px solid var(--w95-bg-lighter);
  border-right: 1px solid var(--w95-bg-darker);
  border-bottom: 1px solid var(--w95-bg-darker);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), inset -1px -1px 0 var(--w95-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: black;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  padding: 0;
  line-height: 1;
}

.titlebar-btn:active {
  border-top: 1px solid var(--w95-bg-darker);
  border-left: 1px solid var(--w95-bg-darker);
  border-right: 1px solid var(--w95-bg-lighter);
  border-bottom: 1px solid var(--w95-bg-lighter);
  box-shadow: inset 1px 1px 0 var(--w95-bg-dark), inset -1px -1px 0 var(--w95-bg-light);
}

.titlebar-btn svg {
  pointer-events: none;
}

.window-menubar {
  display: flex;
  gap: 0;
  padding: 1px 2px;
  background: var(--w95-bg);
  border-bottom: 1px solid var(--w95-bg-dark);
  font-size: 12px;
}

.window-menubar-item {
  padding: 2px 8px;
  cursor: pointer;
}
.window-menubar-item:hover {
  background: var(--w95-selected);
  color: white;
}
.window-menubar-item u {
  text-decoration: underline;
}

.window-body {
  flex: 1;
  overflow: auto;
  padding: 4px;
}

.window-body.no-pad {
  padding: 0;
}

.window-statusbar {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--w95-bg);
  font-size: 11px;
}

.statusbar-cell {
  border-top: 1px solid var(--w95-bg-dark);
  border-left: 1px solid var(--w95-bg-dark);
  border-right: 1px solid var(--w95-bg-lighter);
  border-bottom: 1px solid var(--w95-bg-lighter);
  padding: 2px 6px;
  flex: 1;
}
.statusbar-cell.fixed { flex: 0 0 auto; }

/* ============================================
   Buttons
   ============================================ */
.win-btn {
  background: var(--w95-bg);
  border-top: 1px solid var(--w95-bg-lighter);
  border-left: 1px solid var(--w95-bg-lighter);
  border-right: 1px solid var(--w95-bg-darker);
  border-bottom: 1px solid var(--w95-bg-darker);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), inset -1px -1px 0 var(--w95-bg-dark);
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  color: black;
  min-width: 75px;
}
.win-btn:active, .win-btn.active {
  border-top: 1px solid var(--w95-bg-darker);
  border-left: 1px solid var(--w95-bg-darker);
  border-right: 1px solid var(--w95-bg-lighter);
  border-bottom: 1px solid var(--w95-bg-lighter);
  box-shadow: inset 1px 1px 0 var(--w95-bg-dark), inset -1px -1px 0 var(--w95-bg-light);
  padding: 5px 11px 3px 13px;
}
.win-btn:focus {
  outline: 1px dotted black;
  outline-offset: -4px;
}

/* ============================================
   Taskbar
   ============================================ */
.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--w95-bg);
  border-top: 2px solid var(--w95-bg-lighter);
  box-shadow: inset 0 1px 0 var(--w95-bg-light);
  display: flex;
  align-items: center;
  padding: 2px;
  gap: 3px;
  z-index: 10000;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 2px;
  background: var(--w95-bg);
  border-top: 2px solid var(--w95-bg-lighter);
  border-left: 2px solid var(--w95-bg-lighter);
  border-right: 2px solid var(--w95-bg-darker);
  border-bottom: 2px solid var(--w95-bg-darker);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), inset -1px -1px 0 var(--w95-bg-dark);
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  height: 22px;
  font-family: inherit;
}
.start-btn:focus { outline: 1px dotted black; outline-offset: -4px; }
.start-btn.active {
  border-top: 2px solid var(--w95-bg-darker);
  border-left: 2px solid var(--w95-bg-darker);
  border-right: 2px solid var(--w95-bg-lighter);
  border-bottom: 2px solid var(--w95-bg-lighter);
  box-shadow: inset 1px 1px 0 var(--w95-bg-dark), inset -1px -1px 0 var(--w95-bg-light);
}
.start-btn-logo {
  width: 16px;
  height: 16px;
}

.taskbar-divider {
  width: 0;
  height: 22px;
  border-left: 1px solid var(--w95-bg-dark);
  border-right: 1px solid var(--w95-bg-lighter);
  margin: 0 2px;
}

.taskbar-windows {
  display: flex;
  gap: 3px;
  flex: 1;
  overflow: hidden;
}

.taskbar-window {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  background: var(--w95-bg);
  border-top: 1px solid var(--w95-bg-lighter);
  border-left: 1px solid var(--w95-bg-lighter);
  border-right: 1px solid var(--w95-bg-darker);
  border-bottom: 1px solid var(--w95-bg-darker);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), inset -1px -1px 0 var(--w95-bg-dark);
  font-size: 12px;
  cursor: pointer;
  height: 22px;
  min-width: 140px;
  max-width: 200px;
  flex-shrink: 1;
  overflow: hidden;
}
.taskbar-window.active {
  border-top: 1px solid var(--w95-bg-darker);
  border-left: 1px solid var(--w95-bg-darker);
  border-right: 1px solid var(--w95-bg-lighter);
  border-bottom: 1px solid var(--w95-bg-lighter);
  box-shadow: inset 1px 1px 0 var(--w95-bg-dark), inset -1px -1px 0 var(--w95-bg-light);
  background-image:
    linear-gradient(45deg, var(--w95-bg-light) 25%, transparent 25%),
    linear-gradient(-45deg, var(--w95-bg-light) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--w95-bg-light) 75%),
    linear-gradient(-45deg, transparent 75%, var(--w95-bg-light) 75%);
  background-size: 2px 2px;
  background-position: 0 0, 0 1px, 1px -1px, -1px 0px;
}
.taskbar-window-label {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: normal;
}
.taskbar-window.active .taskbar-window-label { font-weight: bold; }

.tray {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  height: 22px;
  border-top: 1px solid var(--w95-bg-dark);
  border-left: 1px solid var(--w95-bg-dark);
  border-right: 1px solid var(--w95-bg-lighter);
  border-bottom: 1px solid var(--w95-bg-lighter);
}
.tray-icon { width: 16px; height: 16px; cursor: pointer; }
.tray-clock { font-size: 12px; padding: 0 4px; }

/* ============================================
   Start menu
   ============================================ */
.start-menu {
  position: absolute;
  bottom: 28px;
  left: 2px;
  background: var(--w95-bg);
  border-top: 2px solid var(--w95-bg-lighter);
  border-left: 2px solid var(--w95-bg-lighter);
  border-right: 2px solid var(--w95-bg-darker);
  border-bottom: 2px solid var(--w95-bg-darker);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), inset -1px -1px 0 var(--w95-bg-dark), 2px 2px 0 rgba(0,0,0,0.3);
  display: flex;
  z-index: 10001;
  min-width: 220px;
}

.start-menu-banner {
  background: var(--w95-bg-dark);
  color: var(--w95-bg-lighter);
  width: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 0;
  font-size: 18px;
  font-weight: bold;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 1px;
}
.start-menu-banner b { color: white; }

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

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 24px 4px 4px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
}
.start-menu-item:hover {
  background: var(--w95-selected);
  color: white;
}
.start-menu-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.start-menu-item-icon.small {
  width: 24px;
  height: 24px;
}
.start-menu-item-label u { text-decoration: underline; }
.start-menu-arrow {
  position: absolute;
  right: 4px;
  font-size: 10px;
}
.start-menu-divider {
  height: 0;
  border-top: 1px solid var(--w95-bg-dark);
  border-bottom: 1px solid var(--w95-bg-lighter);
  margin: 2px 0;
}

.start-submenu {
  position: absolute;
  background: var(--w95-bg);
  border-top: 2px solid var(--w95-bg-lighter);
  border-left: 2px solid var(--w95-bg-lighter);
  border-right: 2px solid var(--w95-bg-darker);
  border-bottom: 2px solid var(--w95-bg-darker);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  min-width: 180px;
  padding: 2px;
  z-index: 10002;
}

/* ============================================
   Misc form elements
   ============================================ */
.win-input, .win-textarea {
  font-family: inherit;
  font-size: 13px;
  background: white;
  border-top: 1px solid var(--w95-bg-darker);
  border-left: 1px solid var(--w95-bg-darker);
  border-right: 1px solid var(--w95-bg-lighter);
  border-bottom: 1px solid var(--w95-bg-lighter);
  box-shadow: inset 1px 1px 0 var(--w95-bg-dark), inset -1px -1px 0 var(--w95-bg-light);
  padding: 3px 4px;
  color: black;
}

.win-fieldset {
  border: 1px solid var(--w95-bg-dark);
  box-shadow: 1px 1px 0 var(--w95-bg-lighter), inset 1px 1px 0 var(--w95-bg-lighter);
  padding: 8px;
  margin: 4px 0;
}
.win-fieldset legend {
  padding: 0 4px;
  background: var(--w95-bg);
}

/* ============================================
   Scrollbars — chunky Win95 style
   ============================================ */
.window-body::-webkit-scrollbar,
.scroll-w95::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
.window-body::-webkit-scrollbar-track,
.scroll-w95::-webkit-scrollbar-track {
  background-color: var(--w95-bg-light);
  background-image:
    linear-gradient(45deg, var(--w95-bg) 25%, transparent 25%, transparent 75%, var(--w95-bg) 75%),
    linear-gradient(45deg, var(--w95-bg) 25%, transparent 25%, transparent 75%, var(--w95-bg) 75%);
  background-size: 2px 2px;
  background-position: 0 0, 1px 1px;
}
.window-body::-webkit-scrollbar-thumb,
.scroll-w95::-webkit-scrollbar-thumb {
  background: var(--w95-bg);
  border-top: 1px solid var(--w95-bg-lighter);
  border-left: 1px solid var(--w95-bg-lighter);
  border-right: 1px solid var(--w95-bg-darker);
  border-bottom: 1px solid var(--w95-bg-darker);
  box-shadow: inset 1px 1px 0 var(--w95-bg-light), inset -1px -1px 0 var(--w95-bg-dark);
}
.window-body::-webkit-scrollbar-corner,
.scroll-w95::-webkit-scrollbar-corner {
  background: var(--w95-bg);
}

/* ============================================
   Boot splash
   ============================================ */
.boot-splash {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #c0c0c0;
  font-family: "Courier New", monospace;
  font-size: 14px;
}
.boot-splash.win95-screen {
  background: #008080;
  color: white;
}
.boot-splash .splash-img {
  width: 420px;
  max-width: 80vw;
  text-align: center;
}
.boot-splash .splash-status {
  margin-top: 20px;
  font-size: 12px;
  color: white;
}

/* ============================================
   App-specific
   ============================================ */

/* Notepad (About me) */
.notepad-body {
  background: white;
  padding: 8px 12px;
  font-family: "W95FA", monospace;
  font-size: 13px;
  line-height: 1.5;
  color: black;
  height: 100%;
  overflow: auto;
  white-space: pre-wrap;
}

/* My Computer */
.mycomputer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 4px;
  padding: 8px;
  background: white;
  min-height: 100%;
}
.mycomputer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 2px;
  cursor: pointer;
  gap: 4px;
  border: 1px dotted transparent;
}
.mycomputer-item:hover { background: rgba(0,0,128,0.1); }
.mycomputer-item.selected { background: var(--w95-selected); color: white; border: 1px dotted white; }
.mycomputer-item-label { font-size: 12px; max-width: 76px; word-break: break-word; line-height: 1.1; }

/* Resume / Word doc */
.word-toolbar {
  background: var(--w95-bg);
  padding: 2px;
  border-bottom: 1px solid var(--w95-bg-dark);
  display: flex;
  gap: 1px;
}
.word-toolbar-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
}
.word-toolbar-btn:hover {
  border-top: 1px solid var(--w95-bg-lighter);
  border-left: 1px solid var(--w95-bg-lighter);
  border-right: 1px solid var(--w95-bg-darker);
  border-bottom: 1px solid var(--w95-bg-darker);
}
.word-doc {
  background: #d4d0c8;
  padding: 16px;
  height: 100%;
  overflow: auto;
}
.word-page {
  background: white;
  color: black;
  padding: 36px 48px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-family: "Times New Roman", "Times", serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.word-page h1 {
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: 1px;
  font-weight: bold;
  border-bottom: 2px solid black;
  padding-bottom: 4px;
}
.word-page h2 {
  font-size: 14px;
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
}
.word-page h3 { font-size: 14px; margin: 12px 0 2px; }
.word-page .role-row { display: flex; justify-content: space-between; gap: 12px; }
.word-page .role-date { font-style: italic; color: #555; white-space: nowrap; }
.word-page .role-org { font-style: italic; margin-bottom: 6px; }
.word-page ul { margin: 4px 0 8px; padding-left: 22px; }
.word-page li { margin: 2px 0; }
.word-page .summary { font-style: italic; }

/* Terminal */
.terminal {
  background: black;
  color: #c0c0c0;
  font-family: "Courier New", "Consolas", monospace;
  font-size: 14px;
  padding: 8px;
  height: 100%;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.3;
}
.terminal .prompt { color: #c0c0c0; }
.terminal .cmd { color: white; }
.terminal-input {
  background: transparent;
  border: none;
  color: white;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  width: 80%;
  caret-color: white;
}
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #c0c0c0;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Address book */
.addressbook {
  display: grid;
  grid-template-columns: 180px 1fr;
  height: 100%;
  background: white;
}
.addressbook-list {
  border-right: 2px solid var(--w95-bg-dark);
  overflow: auto;
}
.addressbook-list-item {
  padding: 4px 8px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.addressbook-list-item.selected {
  background: var(--w95-selected);
  color: white;
}
.addressbook-detail {
  padding: 16px;
  overflow: auto;
}
.addressbook-detail h2 {
  margin: 0 0 12px;
  font-size: 16px;
}
.addressbook-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px dotted #ccc;
}
.addressbook-row a { color: #0000ff; }

/* Minesweeper */
.mines-body {
  background: var(--w95-bg);
  padding: 6px;
  display: inline-block;
}
.mines-frame {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mines-header {
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mines-counter {
  background: black;
  color: #ff0000;
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: bold;
  padding: 1px 4px;
  letter-spacing: 1px;
  min-width: 46px;
  text-align: center;
}
.mines-smiley {
  width: 28px;
  height: 28px;
  background: var(--w95-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  border: none;
  font-family: inherit;
}
.mines-grid {
  padding: 4px;
}
.mines-row { display: flex; }
.mines-cell {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  font-family: "W95FA", sans-serif;
  user-select: none;
  background: var(--w95-bg);
}
.mines-cell.closed {
  border-top: 2px solid var(--w95-bg-lighter);
  border-left: 2px solid var(--w95-bg-lighter);
  border-right: 2px solid var(--w95-bg-dark);
  border-bottom: 2px solid var(--w95-bg-dark);
}
.mines-cell.open {
  border: 1px solid var(--w95-bg-dark);
  background: var(--w95-bg);
}
.mines-cell.mine { background: red; }
.mines-cell.n1 { color: #0000ff; }
.mines-cell.n2 { color: #008000; }
.mines-cell.n3 { color: #ff0000; }
.mines-cell.n4 { color: #000080; }
.mines-cell.n5 { color: #800000; }
.mines-cell.n6 { color: #008080; }
.mines-cell.n7 { color: black; }
.mines-cell.n8 { color: #808080; }

/* Error dialog */
.error-dialog .window-body { padding: 16px; }
.error-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.error-content .error-icon { flex-shrink: 0; }
.error-content .error-text {
  font-size: 13px;
  line-height: 1.4;
  padding-top: 6px;
}
.error-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Context menu */
.context-menu {
  position: fixed;
  background: var(--w95-bg);
  border-top: 2px solid var(--w95-bg-lighter);
  border-left: 2px solid var(--w95-bg-lighter);
  border-right: 2px solid var(--w95-bg-darker);
  border-bottom: 2px solid var(--w95-bg-darker);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  padding: 2px;
  z-index: 20000;
  min-width: 160px;
}
.context-item {
  padding: 4px 24px 4px 24px;
  font-size: 13px;
  cursor: pointer;
}
.context-item:hover { background: var(--w95-selected); color: white; }
.context-item.disabled { color: var(--w95-disabled); text-shadow: 1px 1px 0 var(--w95-disabled-shadow); cursor: default; }
.context-item.disabled:hover { background: transparent; color: var(--w95-disabled); }

/* BSOD */
.bsod {
  position: fixed;
  inset: 0;
  background: #0000aa;
  color: white;
  font-family: "Courier New", monospace;
  font-size: 15px;
  padding: 40px;
  z-index: 99998;
  line-height: 1.4;
  cursor: pointer;
}
.bsod-title {
  background: #c0c0c0;
  color: #0000aa;
  display: inline-block;
  padding: 0 8px;
  margin-bottom: 24px;
}

/* Tooltip */
.win-tooltip {
  position: absolute;
  background: #ffffcc;
  color: black;
  border: 1px solid black;
  padding: 2px 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 30000;
}

/* Small screen warning */
.too-small {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--w95-teal);
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
@media (max-width: 640px) {
  .too-small { display: flex; }
}
