/* ============================================================
   FENLAND DESIGNS — Retro-Futurist OS Theme
   Windows 95/98 aesthetic meets the Fens landscape
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* --- RESET & BASE ----------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --win-bg:       #c0c0c0;
  --win-light:    #ffffff;
  --win-dark:     #808080;
  --win-darker:   #404040;
  --win-title:    #000080;
  --win-title2:   #1084d0;
  --desktop-teal: #008080;
  --desktop-sky-top:    #4a90d9;
  --desktop-sky-mid:    #87ceeb;
  --desktop-sky-horizon:#b8d4e3;
  --desktop-field-light:#a3b86c;
  --desktop-field-mid:  #7a9a3a;
  --desktop-field-dark: #5c7a28;
  --desktop-water:      #4a7a9b;
  --taskbar-bg:   #c0c0c0;
  --font-pixel:   'Press Start 2P', 'Courier New', monospace;
  --font-system:  'MS Sans Serif', 'Microsoft Sans Serif', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-mono:    'Courier New', monospace;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100vh;
  font-family: var(--font-system);
  font-size: 14px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- DESKTOP BACKGROUND (Fens Landscape) ------------------ */
.desktop {
  width: 100%;
  height: calc(100vh - 38px);
  position: relative;
  background:
    /* Sky gradient */
    linear-gradient(to bottom,
      #3a6fb5 0%,
      #5b9bd5 8%,
      #87ceeb 25%,
      #b8d4e3 50%,
      #c8dce8 55%
    ),
    /* Field gradient */
    linear-gradient(to bottom,
      transparent 55%,
      #9ab552 55%,
      #8aab3f 60%,
      #7a9a3a 65%,
      #6b8a28 80%,
      #5a7820 100%
    ),
    /* Distant field band */
    linear-gradient(to bottom,
      transparent 50%,
      #a8c880 50%,
      #96b870 53%,
      transparent 53%
    );
  background-blend-mode: normal, normal, normal;
}

/* Subtle cloud */
.desktop::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 15%;
  width: 180px;
  height: 60px;
  background: radial-gradient(ellipse 90px 30px at 40px 25px, rgba(255,255,255,0.8) 0%, transparent 70%),
              radial-gradient(ellipse 100px 35px at 80px 20px, rgba(255,255,255,0.85) 0%, transparent 70%),
              radial-gradient(ellipse 80px 28px at 130px 28px, rgba(255,255,255,0.7) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Second cloud */
.desktop::after {
  content: '';
  position: absolute;
  top: 8%;
  right: 20%;
  width: 140px;
  height: 45px;
  background: radial-gradient(ellipse 70px 22px at 30px 18px, rgba(255,255,255,0.7) 0%, transparent 65%),
              radial-gradient(ellipse 80px 26px at 65px 15px, rgba(255,255,255,0.75) 0%, transparent 65%),
              radial-gradient(ellipse 60px 20px at 100px 20px, rgba(255,255,255,0.6) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Scanline overlay for extra retro feel */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* --- DESKTOP ICONS --------------------------------------- */
.desktop-icons {
  position: absolute;
  top: 16px;
  left: 12px;
  display: flex;
  flex-flow: column wrap;
  gap: 4px;
  z-index: 10;
  max-height: calc(100vh - 160px);
  align-content: flex-start;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 76px;
  padding: 6px 2px;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  margin-bottom: 2px;
}

.desktop-icon:hover {
  background: rgba(0, 0, 128, 0.15);
  border: 1px dotted rgba(255, 255, 255, 0.6);
}

.desktop-icon:active, .desktop-icon.selected {
  background: rgba(0, 0, 128, 0.4);
  border: 1px dotted rgba(255, 255, 255, 0.9);
}

.desktop-icon span {
  font-size: 10px;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8), -1px -1px 1px rgba(0,0,0,0.4);
  line-height: 1.25;
  word-wrap: break-word;
  max-width: 72px;
}

.desktop-icon-separator {
  width: 72px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 6px 2px 8px 2px;
}

/* Pixel-art icon styles */
.pixel-icon {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  position: relative;
  flex-shrink: 0;
}

.icon-computer {
  background:
    linear-gradient(#e8e8e8, #c8c8c8) 50% 25% / 24px 18px no-repeat,
    linear-gradient(#c0c0c0, #a0a0a0) 50% 65% / 36px 4px no-repeat,
    linear-gradient(#a0a0a0, #808080) 50% 78% / 28px 8px no-repeat,
    linear-gradient(#c8c8c8, #a8a8a8) 50% 96% / 20px 4px no-repeat;
  border: 2px solid #606060;
  border-radius: 2px;
}

.icon-folder {
  background:
    linear-gradient(#e8c840, #d4b020) 50% 30% / 40px 30px no-repeat,
    linear-gradient(#e8c840, #d4b020) 15% 20% / 14px 8px no-repeat;
  border: 2px solid #a08020;
  border-radius: 2px 2px 2px 2px;
  clip-path: polygon(
    0% 20%, 18% 20%, 22% 28%, 100% 28%,
    100% 100%, 0% 100%
  );
}

.icon-gear {
  background:
    radial-gradient(circle, transparent 30%, #888 30%, #888 42%, transparent 42%),
    conic-gradient(from 0deg, #808080 0deg 30deg, transparent 30deg 60deg, #808080 60deg 90deg,
                              transparent 90deg 120deg, #808080 120deg 150deg, transparent 150deg 180deg,
                              #808080 180deg 210deg, transparent 210deg 240deg, #808080 240deg 270deg,
                              transparent 270deg 300deg, #808080 300deg 330deg, transparent 330deg 360deg);
  border-radius: 50%;
  border: 2px solid #606060;
}

.icon-envelope {
  background:
    linear-gradient(135deg, transparent 48%, #fff 48%, #fff 52%, transparent 52%),
    linear-gradient(to top, #e0e0e0 60%, transparent 60%);
  border: 2px solid #888;
  border-radius: 2px;
}

.icon-envelope::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, transparent 46%, #ccc 46%, #ccc 50%, #e0e0e0 50%, #e0e0e0 54%, transparent 54%);
}

/* Blinking "NEW!" badge */
.blink-badge {
  position: absolute;
  top: -8px;
  right: -16px;
  background: #ff0000;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 2px 4px;
  border: 1px outset #fff;
  animation: blink 1s step-end infinite;
}

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

/* --- WINDOWS (draggable content containers) --------------- */
.window {
  position: absolute;
  min-width: 320px;
  min-height: 200px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow:
    inset 1px 1px 0 var(--win-light),
    inset -1px -1px 0 var(--win-dark),
    2px 2px 0 rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.1s;
}

/* Maximized state */
.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 38px) !important;
  box-shadow: none;
}

.window.maximized .resize-handle {
  display: none;
}

/* --- RESIZE HANDLES --------------------------------------- */
.resize-handle {
  position: absolute;
  z-index: 10;
}

.handle-n {
  top: -3px;
  left: 6px;
  right: 6px;
  height: 6px;
  cursor: n-resize;
}

.handle-s {
  bottom: -3px;
  left: 6px;
  right: 6px;
  height: 6px;
  cursor: s-resize;
}

.handle-e {
  right: -3px;
  top: 6px;
  bottom: 6px;
  width: 6px;
  cursor: e-resize;
}

.handle-w {
  left: -3px;
  top: 6px;
  bottom: 6px;
  width: 6px;
  cursor: w-resize;
}

.handle-ne {
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  cursor: ne-resize;
}

.handle-nw {
  top: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  cursor: nw-resize;
}

.handle-se {
  bottom: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  cursor: se-resize;
}

.handle-sw {
  bottom: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  cursor: sw-resize;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--win-title), var(--win-title2));
  padding: 3px 3px 3px 4px;
  cursor: move;
}

.window-titlebar-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  flex-shrink: 0;
}

.window-title {
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.win-btn {
  width: 18px;
  height: 18px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  font-family: var(--font-system);
  font-size: 10px;
  font-weight: bold;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-btn:active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  box-shadow: inset 1px 1px 0 var(--win-dark);
}

.close-btn {
  background: var(--win-bg);
}

.close-btn:hover {
  background: #ff0000;
  color: #fff;
}

.window-menubar {
  display: flex;
  align-items: center;
  padding: 2px 4px;
  border-bottom: 1px solid var(--win-dark);
  gap: 2px;
  font-size: 12px;
  background: var(--win-bg);
}

.window-menubar span {
  padding: 2px 6px;
  cursor: pointer;
}

.window-menubar span:hover {
  background: var(--win-title);
  color: #fff;
}

.window-toolbar {
  display: flex;
  align-items: center;
  padding: 3px 4px;
  border-bottom: 1px solid var(--win-dark);
  gap: 3px;
  background: var(--win-bg);
}

.window-content {
  padding: 16px;
  background: #fff;
  border-top: 1px solid var(--win-dark);
  overflow-y: auto;
  flex: 1;
  font-family: var(--font-system);
  font-size: 13px;
  line-height: 1.6;
  color: #000;
  user-select: text;
  -webkit-user-select: text;
}
.window-content.game-window {
  padding: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.window-content h2 {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--win-title);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--win-dark);
}

.window-content h3 {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--win-title);
  margin: 16px 0 8px 0;
}

.window-content p {
  margin-bottom: 10px;
}

.window-content ul, .window-content ol {
  margin: 8px 0 8px 20px;
}

.window-content li {
  margin-bottom: 4px;
}

.window-statusbar {
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border-top: 1px solid var(--win-dark);
  font-size: 11px;
  background: var(--win-bg);
  gap: 8px;
}

.window-statusbar .statusbar-gripper {
  margin-left: auto;
  width: 14px;
  height: 14px;
  background: var(--win-dark);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* --- RETRO FORM ELEMENTS ---------------------------------- */
.retro-fieldset {
  border: 2px groove var(--win-light);
  padding: 12px;
  margin-bottom: 12px;
}

.retro-fieldset legend {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--win-title);
  padding: 0 6px;
}

.retro-label {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  font-weight: bold;
}

.retro-input {
  width: 100%;
  padding: 4px 6px;
  font-family: var(--font-system);
  font-size: 13px;
  background: #fff;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.15);
  outline: none;
  margin-bottom: 10px;
}

.retro-input:focus {
  border-color: var(--win-title) var(--win-title2) var(--win-title2) var(--win-title);
  box-shadow: inset 0 0 2px var(--win-title2);
}

.retro-textarea {
  width: 100%;
  min-height: 100px;
  padding: 4px 6px;
  font-family: var(--font-system);
  font-size: 13px;
  background: #fff;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.15);
  outline: none;
  resize: vertical;
  margin-bottom: 10px;
}

.retro-textarea:focus {
  border-color: var(--win-title) var(--win-title2) var(--win-title2) var(--win-title);
  box-shadow: inset 0 0 2px var(--win-title2);
}

.retro-btn {
  padding: 6px 20px;
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: bold;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  cursor: pointer;
  outline: none;
  min-width: 80px;
}

.retro-btn:hover {
  background: #d4d4d4;
}

.retro-btn:active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  box-shadow: inset 1px 1px 0 var(--win-dark);
}

.retro-btn.primary {
  border-color: #000 #444 #444 #000;
}

.retro-btn.compact {
  min-width: auto;
  padding: 4px 10px;
  font-size: 11px;
}

.retro-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* --- START MENU TOOLS ------------------------------------- */
.window-content.tool-window {
  padding: 0;
  background: var(--win-bg);
  overflow: hidden;
  line-height: 1.2;
}

.notepad-app,
.calculator-app,
.paint-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--win-bg);
}

.notepad-menu,
.calculator-menu,
.paint-menubar {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  flex-shrink: 0;
}

.notepad-menu button,
.calculator-menu span,
.paint-menubar button {
  min-width: 0;
  padding: 2px 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #000;
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: normal;
  cursor: default;
}

.notepad-menu button:hover,
.calculator-menu span:hover,
.paint-menubar button:hover {
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  background: #d4d4d4;
}

.notepad-editor {
  flex: 1;
  width: 100%;
  min-height: 260px;
  padding: 6px 8px;
  font-family: 'Lucida Console', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.35;
  resize: none;
  color: #000;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--win-dark);
  outline: none;
}

.notepad-status {
  height: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  background: var(--win-bg);
  border-top: 1px solid var(--win-light);
  color: #333;
  flex-shrink: 0;
}

.calculator-app {
  padding: 0 8px 8px 8px;
}

.calculator-display {
  width: 100%;
  height: 42px;
  margin: 8px 0;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 22px;
  text-align: right;
  color: #000;
  background: #fff;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  flex: 1;
  min-height: 0;
}

.calc-key {
  min-width: 0;
  min-height: 0;
  height: 34px;
  padding: 0;
  font-size: 14px;
}

.calc-key.wide {
  grid-column: span 2;
}

.calc-key.op {
  color: var(--win-title);
}

.paint-app {
  min-height: 0;
}

.paint-commandbar {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.paint-name-input,
.paint-save-list,
.paint-panel-group select {
  height: 24px;
  min-width: 0;
  padding: 2px 4px;
  font-family: var(--font-system);
  font-size: 12px;
  background: #fff;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
}

.paint-name-input {
  width: 120px;
}

.paint-save-list {
  width: 130px;
}

.paint-shell {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: 4px;
  gap: 4px;
}

.paint-tools {
  width: 38px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 4px;
  padding: 4px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-dark) var(--win-dark) var(--win-light);
  flex-shrink: 0;
}

.paint-tool-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 15px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  cursor: pointer;
}

.paint-tool-btn.active,
.paint-tool-btn:active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  background: #d4d4d4;
}

.paint-canvas-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #808080;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  padding: 12px;
}

.paint-canvas-stage {
  position: relative;
  width: 640px;
  height: 420px;
}

#paintCanvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 640px;
  height: 420px;
  max-width: none;
  background: #fff;
  border: 1px solid #404040;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
}

.paint-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
  border: 1px solid rgba(0,0,0,0.18);
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size: 16px 16px;
}

.paint-side-panel {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  overflow-y: auto;
}

.paint-panel-group {
  margin: 0;
  padding: 8px;
  border: 2px groove var(--win-light);
}

.paint-panel-group legend {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--win-title);
  padding: 0 4px;
}

.paint-panel-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.paint-panel-group input[type="range"] {
  width: 100%;
}

.paint-check {
  display: flex !important;
  align-items: center;
  gap: 5px;
}

.paint-bottom {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--win-bg);
  border-top: 1px solid var(--win-dark);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.paint-size-label {
  font-size: 11px;
}

#paintSize {
  width: 90px;
}

#paintColor {
  width: 32px;
  height: 28px;
  padding: 0;
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  background: var(--win-bg);
}

.paint-current-color {
  width: 30px;
  height: 24px;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  flex-shrink: 0;
}

.paint-swatch {
  width: 24px;
  height: 24px;
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  cursor: pointer;
  flex-shrink: 0;
}

.paint-swatch.active {
  outline: 2px dotted #000;
  outline-offset: 2px;
}

.paint-status {
  margin-left: auto;
  font-size: 11px;
  color: #333;
  white-space: nowrap;
}

.oracle-tool {
  padding: 16px;
}

.oracle-tool .retro-fieldset {
  margin-bottom: 0;
}

.oracle-answer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.8;
  color: #00ff66;
  background: #000;
  border: 2px inset #808080;
}

/* --- RETRO TABLE ------------------------------------------ */
.retro-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.retro-table th {
  background: var(--win-bg);
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 6px 10px;
  text-align: left;
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
}

.retro-table td {
  padding: 6px 10px;
  border: 1px solid #c0c0c0;
  font-size: 13px;
}

.retro-table tr:nth-child(even) td {
  background: #f0f0f0;
}

.retro-table tr:hover td {
  background: #e0e8ff;
}

/* --- GAME ICONS (Desktop) -------------------------------- */
/* Minesweeper: classic gray mine on white field */
.icon-mine {
  background:
    radial-gradient(circle, #fff 0%, #fff 100%);
  border: 2px solid #808080;
  border-radius: 3px;
}
.icon-mine::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  background:
    radial-gradient(circle at 50% 50%, #000 0%, #000 28%, transparent 28%),
    linear-gradient(#333, #333) 50% 0% / 2px 6px no-repeat,
    linear-gradient(#333, #333) 50% 100% / 2px 6px no-repeat,
    linear-gradient(#333, #333) 0% 50% / 6px 2px no-repeat,
    linear-gradient(#333, #333) 100% 50% / 6px 2px no-repeat,
    linear-gradient(45deg, #333 25%, transparent 25%) 20% 20% / 2px 2px no-repeat,
    linear-gradient(-45deg, #333 25%, transparent 25%) 80% 20% / 2px 2px no-repeat,
    linear-gradient(45deg, #333 25%, transparent 25%) 20% 80% / 2px 2px no-repeat,
    linear-gradient(-45deg, #333 25%, transparent 25%) 80% 80% / 2px 2px no-repeat;
  border-radius: 50%;
}

/* Tetris: 2x2 grid of colored tetrominoes */
.icon-tetris {
  background:
    linear-gradient(#00f0f0, #00c0c0) 4px 4px / 18px 18px no-repeat,
    linear-gradient(#f0f000, #d0d000) 24px 4px / 18px 18px no-repeat,
    linear-gradient(#00f000, #00c000) 4px 24px / 18px 18px no-repeat,
    linear-gradient(#f00000, #c00000) 24px 24px / 18px 18px no-repeat;
  border: 2px solid #555;
  border-radius: 2px;
  background-color: #222;
}

/* SkiFree: snowy mountain with skier */
.icon-ski {
  background:
    linear-gradient(to bottom, #4a90d9 0%, #87ceeb 40%, #fff 45%, #e8e8e8 100%),
    linear-gradient(to bottom right, transparent 45%, #808080 45%, #808080 55%, transparent 55%),
    linear-gradient(to bottom left, transparent 45%, #808080 45%, #808080 55%, transparent 55%);
  border: 2px solid #666;
  border-radius: 3px;
}
.icon-ski::after {
  content: '';
  position: absolute;
  top: 22px; left: 18px;
  width: 4px; height: 10px;
  background: #00f;
  border-radius: 2px 2px 0 0;
  box-shadow: 4px 8px 0 -4px #8b4513, 6px 8px 0 -4px #8b4513, 8px 4px 0 -2px #8b4513;
}

/* Rodent's Revenge: cheese wedge with mouse */
.icon-rodent {
  background: #e8d8b0;
  border: 2px solid #a09060;
  border-radius: 3px;
}
.icon-rodent::before {
  content: '';
  position: absolute;
  top: 6px; left: 8px;
  width: 28px; height: 24px;
  background:
    linear-gradient(to top right, transparent 48%, #f0c040 48%, #f0c040 52%, transparent 52%),
    linear-gradient(to top left, transparent 48%, #f0c040 48%, #f0c040 52%, transparent 52%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.icon-rodent::after {
  content: '';
  position: absolute;
  top: 10px; left: 26px;
  width: 14px; height: 12px;
  background:
    radial-gradient(ellipse 6px 5px at 4px 3px, #8b7355 0%, #8b7355 100%);
  border-radius: 50% 50% 0 0;
  box-shadow: -18px 4px 0 0 #8b7355;
}

/* --- GAMES COMMON ---------------------------------------- */
.game-container {
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.game-instructions {
  font-size: 10px;
  color: #666;
  text-align: center;
  padding: 6px;
  border-top: 1px solid #ccc;
  margin: 0;
  background: #f4f4f4;
}

/* --- MINESWEEPER ----------------------------------------- */
.mine-game {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 12px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
}
.mine-counter, .mine-timer {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: bold;
  background: #000;
  color: #f00;
  padding: 2px 6px;
  border: 2px inset #888;
  min-width: 60px;
  text-align: center;
}
.mine-board {
  display: grid;
  grid-template-columns: repeat(9, 28px);
  gap: 0;
  padding: 10px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  justify-content: center;
}
.mine-cell {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  background: var(--win-bg);
}
.mine-cell.revealed {
  border: 1px solid #ccc;
  background: #ddd;
}
.mine-cell.revealed.mine-hit {
  background: #f00;
}
.mine-cell.mine-flagged {
  background: var(--win-bg);
}
.mine-cell.flag-wrong {
  background: #fcc;
  text-decoration: line-through;
}
.mine-cell[data-num="1"] { color: #00f; }
.mine-cell[data-num="2"] { color: #080; }
.mine-cell[data-num="3"] { color: #f00; }
.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: #000; }
.mine-cell[data-num="8"] { color: #808080; }

/* --- TETRIS ---------------------------------------------- */
.tetris-game {
  display: flex;
  flex-direction: column;
}
.tetris-layout {
  display: flex;
  gap: 10px;
  padding: 10px;
  justify-content: center;
}
.tetris-board-wrap {
  flex-shrink: 0;
}
.tetris-board {
  display: grid;
  grid-template-columns: repeat(10, 22px);
  gap: 1px;
  background: #111;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  padding: 1px;
}
.tetris-cell {
  width: 22px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 1px;
}
.tetris-cell.filled-I { background: #00f0f0; }
.tetris-cell.filled-O { background: #f0f000; }
.tetris-cell.filled-T { background: #a000f0; }
.tetris-cell.filled-S { background: #00f000; }
.tetris-cell.filled-Z { background: #f00000; }
.tetris-cell.filled-J { background: #0000f0; }
.tetris-cell.filled-L { background: #f0a000; }
.tetris-cell.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
}

.tetris-sidebar {
  width: 110px;
  flex-shrink: 0;
}
.tetris-sidebar .retro-fieldset {
  padding: 8px;
}
.tetris-sidebar legend {
  font-size: 7px;
}
.tetris-stat {
  font-family: var(--font-mono);
  font-size: 18px;
  text-align: center;
  font-weight: bold;
}
.tetris-preview {
  display: grid;
  grid-template-columns: repeat(4, 16px);
  gap: 1px;
  justify-content: center;
  padding: 4px 0;
}
.tetris-preview div {
  width: 16px;
  height: 16px;
  background: #1a1a1a;
}
.tetris-preview div.filled-I { background: #00f0f0; }
.tetris-preview div.filled-O { background: #f0f000; }
.tetris-preview div.filled-T { background: #a000f0; }
.tetris-preview div.filled-S { background: #00f000; }
.tetris-preview div.filled-Z { background: #f00000; }
.tetris-preview div.filled-J { background: #0000f0; }
.tetris-preview div.filled-L { background: #f0a000; }

.tetris-controls {
  display: none;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: var(--win-bg);
  border-top: 1px solid var(--win-dark);
  flex-wrap: wrap;
}
.tetris-btn {
  min-width: 44px !important;
  padding: 6px 4px !important;
  font-size: 16px !important;
}

/* --- SKIFREE --------------------------------------------- */
.ski-game {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ski-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 12px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-size: 12px;
}
.ski-canvas-wrap {
  padding: 4px;
  background: var(--win-bg);
}
#skiCanvas {
  display: block;
  background: #d0e8f0;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  cursor: none;
  max-width: 100%;
  height: auto;
}
.ski-controls {
  display: none;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: var(--win-bg);
  border-top: 1px solid var(--win-dark);
  flex-wrap: wrap;
}
.ski-btn {
  min-width: 50px !important;
  padding: 6px 4px !important;
  font-size: 14px !important;
}

/* --- RODENT'S REVENGE ------------------------------------ */
.rodent-game {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rodent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 12px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  font-size: 12px;
}
.rodent-board-wrap {
  padding: 10px;
  background: var(--win-bg);
}
.rodent-board {
  display: grid;
  gap: 0;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  background: #c8b898;
}
.rodent-cell {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.rodent-cell.wall { background: #888; }
.rodent-cell.block { background: #a08050; }
.rodent-cell.mouse { background: #c8b898; color: #8b4513; }
.rodent-cell.cat { background: #c8b898; }
.rodent-cell.player { background: #c8b898; }
.rodent-cell.floor { background: #c8b898; }

.rodent-controls {
  display: none;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  background: var(--win-bg);
  border-top: 1px solid var(--win-dark);
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(3, 40px);
  gap: 4px;
  justify-items: center;
  align-items: center;
}
.rodent-btn {
  min-width: 40px !important;
  padding: 4px !important;
  font-size: 16px !important;
}
.rodent-btn[data-action="up"]    { grid-column: 2; grid-row: 1; }
.rodent-btn[data-action="left"]  { grid-column: 1; grid-row: 2; }
.rodent-btn[data-action="down"]  { grid-column: 2; grid-row: 3; }
.rodent-btn[data-action="right"] { grid-column: 3; grid-row: 2; }

/* --- Mobile: show touch controls ------------------------- */
@media (max-width: 768px) {
  .tetris-controls { display: flex !important; }
  .ski-controls { display: flex !important; }
  .rodent-controls { display: grid !important; }
  .tetris-board { grid-template-columns: repeat(10, 18px); }
  .tetris-cell { width: 18px; height: 18px; }
  .mine-board { grid-template-columns: repeat(9, 24px); }
  .mine-cell { width: 24px; height: 24px; font-size: 10px; }
  .rodent-cell { width: 28px; height: 28px; font-size: 16px; }
}

/* --- RETRO HR / DIVIDER ----------------------------------- */
.retro-hr {
  border: none;
  border-top: 2px groove #e0e0e0;
  margin: 16px 0;
}

/* --- RETRO BADGE / TAG ------------------------------------ */
.retro-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 3px 8px;
  background: var(--desktop-teal);
  color: #fff;
  border: 1px outset var(--win-light);
  margin: 2px;
}

/* --- FILE EXPLORER STYLE (Portfolio) ---------------------- */
.file-explorer {
  width: 100%;
}

.file-explorer .address-bar {
  display: flex;
  align-items: center;
  padding: 3px 4px;
  background: var(--win-bg);
  border-bottom: 1px solid var(--win-dark);
  gap: 6px;
}

.file-explorer .address-label {
  font-size: 11px;
  white-space: nowrap;
}

.file-explorer .address-input {
  flex: 1;
  font-family: var(--font-system);
  font-size: 12px;
  padding: 2px 4px;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  background: #fff;
  cursor: default;
  user-select: none;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  padding: 8px 0;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.file-item:hover {
  background: rgba(0, 0, 128, 0.1);
  border: 1px dotted #888;
}

.file-item .file-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(#e8c840, #d4b020);
  border: 2px solid #a08020;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.file-item .file-name {
  font-size: 11px;
  color: #000;
  word-break: break-word;
}

/* --- TASKBAR ---------------------------------------------- */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: var(--taskbar-bg);
  border-top: 2px solid var(--win-light);
  display: flex;
  align-items: center;
  padding: 3px 4px;
  gap: 4px;
  z-index: 10000;
  box-shadow: 0 -1px 0 var(--win-dark);
}

.start-button {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  font-family: var(--font-pixel);
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.start-button:active,
.start-button.active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  box-shadow: inset 1px 1px 0 var(--win-dark);
}

.start-logo {
  width: 16px;
  height: 14px;
  background:
    linear-gradient(#000, #000) 2px 2px / 3px 4px no-repeat,
    linear-gradient(#000, #000) 7px 2px / 3px 4px no-repeat,
    linear-gradient(#000, #000) 11px 2px / 3px 4px no-repeat,
    linear-gradient(#000, #000) 2px 8px / 3px 4px no-repeat,
    linear-gradient(#fff, #fff) 7px 8px / 3px 4px no-repeat,
    linear-gradient(#fff, #fff) 11px 8px / 3px 4px no-repeat;
  background-color: #fff;
  border: 1px solid #888;
}

.taskbar-divider {
  width: 2px;
  height: 26px;
  background: var(--win-darker);
  border-right: 1px solid var(--win-light);
  margin: 0 2px;
}

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

.taskbar-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  min-width: 120px;
  max-width: 200px;
  padding: 0 8px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-tab.active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  box-shadow: inset 1px 1px 0 var(--win-dark);
  font-weight: bold;
  background: #d4d4d4;
}

.taskbar-tab.minimized {
  font-weight: normal;
  background: var(--win-bg);
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  font-style: italic;
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  height: 28px;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  background: var(--win-bg);
}

.clock {
  font-size: 12px;
  white-space: nowrap;
}

/* --- START MENU ------------------------------------------- */
.start-menu {
  position: fixed;
  bottom: 38px;
  left: 0;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  display: flex;
  z-index: 10001;
  min-width: 200px;
}

.start-menu.hidden {
  display: none;
}

.start-menu-sidebar {
  width: 28px;
  background: linear-gradient(to right, var(--win-title), var(--win-title2));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-menu-sidebar span {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #fff;
  letter-spacing: 2px;
  white-space: nowrap;
}

.start-menu-items {
  flex: 1;
  padding: 4px 0;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #000;
}

.start-menu-item:hover {
  background: var(--win-title);
  color: #fff;
}

.start-menu-item .menu-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.start-menu-separator {
  height: 1px;
  margin: 4px 8px;
  background: var(--win-dark);
  border-bottom: 1px solid var(--win-light);
}

/* --- DIALOG BOX (Error / Alert style) --------------------- */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.dialog-box {
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  min-width: 260px;
  max-width: 400px;
}

.dialog-titlebar {
  background: linear-gradient(90deg, var(--win-title), var(--win-title2));
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-titlebar span {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}

.dialog-content {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dialog-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.dialog-text {
  font-size: 12px;
  line-height: 1.4;
}

.dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--win-dark);
}

/* --- RETRO SCROLLBAR -------------------------------------- */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: var(--win-bg);
  border: 1px solid var(--win-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
}

::-webkit-scrollbar-thumb:hover {
  background: #d4d4d4;
}

::-webkit-scrollbar-button {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--win-bg);
  border: 2px solid;
  border-color: var(--win-light) var(--win-darker) var(--win-darker) var(--win-light);
}

::-webkit-scrollbar-button:active {
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
}

/* --- PROGRESS BAR ----------------------------------------- */
.retro-progress {
  width: 100%;
  height: 18px;
  background: #fff;
  border: 2px solid;
  border-color: var(--win-darker) var(--win-light) var(--win-light) var(--win-darker);
  overflow: hidden;
  margin: 8px 0;
}

.retro-progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--win-title) 0px,
    var(--win-title) 8px,
    var(--win-title2) 8px,
    var(--win-title2) 16px
  );
  transition: width 0.3s;
}

/* --- UTILITY CLASSES -------------------------------------- */
.text-pixel {
  font-family: var(--font-pixel);
}

.text-center {
  text-align: center;
}

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* --- MARQUEE (for retro flavor) --------------------------- */
.retro-marquee {
  overflow: hidden;
  white-space: nowrap;
  animation: marquee 12s linear infinite;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #ff0000;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --- VISITOR COUNTER -------------------------------------- */
.visitor-counter {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #0f0;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 2px inset #888;
  letter-spacing: 2px;
}

/* --- UNDER CONSTRUCTION BAR ------------------------------- */
.construction-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px;
  background: repeating-linear-gradient(
    45deg,
    #000 0px,
    #000 4px,
    #ff0 4px,
    #ff0 8px
  );
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #000;
}

.construction-bar span {
  background: #ff0;
  padding: 2px 8px;
}

/* --- DESKTOP RIGHT SIDE INFO (OS-like) -------------------- */
.desktop-info {
  position: absolute;
  bottom: 60px;
  right: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.info-badge {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  background: rgba(0,0,0,0.3);
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* --- RESPONSIVE (Mobile fallback) ------------------------- */
@media (max-width: 768px) {
  .desktop {
    height: calc(100vh - 38px);
    background: linear-gradient(to bottom, #5b9bd5, #87ceeb 30%, #a3b86c 55%, #7a9a3a 80%);
  }

  .desktop::before,
  .desktop::after {
    display: none;
  }

  .desktop-icons {
    flex-flow: row wrap;
    gap: 12px;
    top: 10px;
    left: 10px;
    max-height: none;
  }

  .desktop-icon-separator {
    width: 100%;
    height: 1px;
    margin: 2px 0;
  }

  .desktop-icon {
    width: 60px;
  }

  .desktop-icon span {
    font-size: 9px;
  }

  .window {
    width: 95% !important;
    left: 2.5% !important;
    top: 10px !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: calc(100vh - 100px) !important;
  }

  .window.maximized {
    width: 100vw !important;
    left: 0 !important;
    top: 0 !important;
    height: calc(100vh - 38px) !important;
    max-height: calc(100vh - 38px) !important;
  }

  .resize-handle {
    display: none !important;
  }

  .window-content {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }

  .window-content.game-window {
    overflow-y: auto;
  }

  .taskbar-tab {
    min-width: 80px;
    font-size: 10px;
  }

  .start-menu {
    left: 0;
    width: 100%;
  }

  .file-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .construction-bar {
    font-size: 6px;
  }
}

@media (max-width: 480px) {
  .desktop-icons {
    gap: 6px;
  }

  .desktop-icon {
    width: 50px;
    padding: 4px 2px;
  }

  .pixel-icon {
    width: 32px;
    height: 32px;
  }

  .window-title {
    font-size: 10px;
  }

  .taskbar-tab {
    min-width: 60px;
    max-width: 100px;
    font-size: 9px;
    padding: 0 4px;
  }

  .start-button {
    font-size: 7px;
    padding: 0 4px;
  }
}
