/* bg */
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #00ff88;
  background: #1a0a2e url('images/bg.jpg') center / cover no-repeat;
}

/* taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #3a8fd9 0%, #2369b5 8%, #ece9d8 8%, #d4d0c8 100%);
  border-top: 2px solid #ff00ff;
  z-index: 100;
  font-family: Tahoma, Arial, sans-serif;
}

.start-btn {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 14px;
  border: 2px solid #2369b5;
  border-radius: 4px;
  background: linear-gradient(to bottom, #5cb85c, #3d8b3d);
  color: #fff;
  cursor: pointer;
  text-transform: lowercase;
}

.start-btn:hover {
  filter: brightness(1.08);
}

.start-btn.start-open {
  background: linear-gradient(to bottom, #ff00ff, #cc00cc);
  border-color: #990099;
}

.taskbar-apps {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 4px;
}

.task-btn {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #888;
  border-radius: 3px;
  background: linear-gradient(to bottom, #fff, #d4d0c8);
  cursor: pointer;
  color: #000;
}

.task-btn:hover {
  background: linear-gradient(to bottom, #fff, #ece9d8);
}

.task-btn.task-pressed {
  background: #1a5490;
  color: #fff;
  border-color: #0d3a6b;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.task-btn.task-active {
  background: linear-gradient(to bottom, #7eb4ea, #4a8fd4);
  border-color: #2369b5;
}

.system-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px inset #888;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}

.tray-icon {
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.tray-icon:hover {
  transform: scale(1.15);
}

.tray-clock {
  font-size: 11px;
  color: #000;
  padding: 2px 6px;
  white-space: nowrap;
}

/* start menu */
.start-menu {
  position: fixed;
  bottom: 44px;
  left: 4px;
  width: 200px;
  padding: 8px 0;
  background: #fff;
  border: 2px solid #ff00ff;
  border-radius: 6px;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.35);
  z-index: 110;
}

.start-menu-title {
  margin: 0 0 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: bold;
  color: #2369b5;
  border-bottom: 1px solid #ccc;
  font-family: Tahoma, Arial, sans-serif;
}

.start-menu-list {
  display: flex;
  flex-direction: column;
}

.start-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #000;
}

.start-item:hover {
  background: #316ac5;
  color: #fff;
}

.start-item-broken {
  color: #888;
}

.start-item-broken:hover {
  background: #ccc;
  color: #666;
}

/* desktop icons */
.icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.icon {
  position: absolute;
  min-width: 78px;
  width: max-content;
  text-align: center;
  cursor: grab;
  user-select: none;
  pointer-events: auto;
}

.icon:active {
  cursor: grabbing;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 6px 5px;
  border-radius: 3px;
  background: rgba(20, 8, 38, 0.82);
  border: 2px solid #ff00ff;
  box-shadow:
    2px 2px 0 #00ff88,
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  transform: rotate(-0.6deg);
}

.icon:hover .icon-box {
  border-color: #00ff88;
  background: rgba(30, 12, 52, 0.9);
  box-shadow:
    3px 3px 0 #ff00ff,
    0 0 10px rgba(255, 0, 255, 0.45);
  transform: rotate(0.4deg) scale(1.04);
}

.icon-img {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(0, 255, 136, 0.55);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.icon-text {
  margin: 5px 0 0;
  font-size: 11px;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  line-height: 1.15;
  white-space: nowrap;
  font-weight: bold;
}

.cookie-icon .icon-box {
  border-color: #d4a017;
  background: rgba(50, 35, 8, 0.88);
  box-shadow:
    2px 2px 0 #f5deb3,
    inset 0 0 0 1px rgba(255, 220, 150, 0.2);
}

.icon.crumbing {
  pointer-events: none;
}

.icon.crumbing .icon-box {
  animation: cookie-crumb 0.7s ease-in forwards;
}

.icon.crumbing .icon-text {
  animation: cookie-crumb-text 0.35s ease-in forwards;
}

@keyframes cookie-crumb {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  35% {
    transform: scale(1.12) rotate(-10deg);
  }

  100% {
    transform: scale(0.15) rotate(24deg) translateY(14px);
    opacity: 0;
    filter: blur(3px);
  }
}

@keyframes cookie-crumb-text {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* windows */
.window {
  position: absolute;
  width: 500px;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  border: 3px solid #ff00ff;
  border-radius: 14px;
  background: rgba(26, 10, 46, 0.93);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.35);
  z-index: 10;
  overflow: hidden;
}

.win-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 0, 255, 0.15);
  border-bottom: 2px solid rgba(255, 0, 255, 0.3);
  cursor: grab;
  user-select: none;
}

.win-top:active {
  cursor: grabbing;
}

.win-title {
  margin: 0;
  flex: 1;
  color: #ffff00;
  font-size: 14px;
  font-weight: bold;
}

.win-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.win-btn {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  cursor: pointer;
}

.win-min {
  background: #f4c430;
}

.win-min:hover {
  background: #ffdd55;
}

.win-max {
  background: #5cb85c;
}

.win-max:hover {
  background: #7dd87d;
}

.win-close {
  background: #ec6b5e;
}

.win-close:hover {
  background: #ff5555;
}

.win-help {
  background: #3a8fd9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  font-family: monospace;
  line-height: 14px;
  text-align: center;
}

.win-help:hover {
  background: #5fa8e9;
}

.win-maxed .win-title::after {
  content: " (maximized??)";
  font-size: 10px;
  color: #00ff88;
}

.close-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ec6b5e;
  border: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.close-btn:hover {
  background: #ff5555;
}

.win-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.win-body h1 {
  margin: 0 0 12px;
  font-size: 26px;
  color: #ff00ff;
  text-shadow: 2px 2px 0 #00ffff;
}

/* name entry panel */
.ask {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.4;
}

.ask-small {
  font-size: 12px;
  color: #999;
}

.name-box {
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 2px dashed #ff00ff;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.name-label {
  display: block;
  font-size: 11px;
  color: #ffff00;
  margin-bottom: 4px;
}

.name-text {
  font-size: 22px;
  color: #fff;
  letter-spacing: 1px;
}

.picker {
  margin-bottom: 14px;
}

.picker-text {
  margin: 0 0 6px;
  font-size: 13px;
  color: #00ffff;
}

.picker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.picker-row .letter-big {
  margin-bottom: 0;
}

.btn-charset {
  font-size: 12px;
  padding: 8px 12px;
  white-space: nowrap;
}

.letter-big {
  font-size: 52px;
  font-weight: bold;
  text-align: center;
  color: #ff00ff;
  text-shadow: 2px 2px 0 #00ffff;
  min-height: 65px;
  line-height: 65px;
  margin-bottom: 10px;
}

.letter-big.space {
  font-size: 26px;
  color: #ffff00;
}

/* the slider bar thing */
.letter-slider {
  width: 100%;
  height: 8px;
  appearance: none;
  background: linear-gradient(to right, #ff00ff, #00ff88, #00ffff);
  border-radius: 6px;
  cursor: pointer;
}

.letter-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffff00;
  border: 2px solid #ff00ff;
}

.letter-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffff00;
  border: 2px solid #ff00ff;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #777;
  margin-top: 4px;
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.btn {
  font-family: inherit;
  font-size: 13px;
  padding: 9px 14px;
  border: 2px solid #ff00ff;
  border-radius: 10px;
  background: rgba(255, 0, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.btn:hover {
  background: rgba(255, 0, 255, 0.4);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-back {
  border-color: #00ffff;
  color: #00ffff;
  background: rgba(0, 255, 255, 0.15);
}

.btn-go {
  width: 100%;
  font-size: 15px;
  font-weight: bold;
  border-color: #00ff88;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.2);
}

.btn-go:hover:not(:disabled) {
  background: rgba(0, 255, 136, 0.45);
}

.tiny-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: #666;
}

.done-box {
  text-align: center;
  padding: 16px 0;
}

.done-title {
  font-size: 20px;
  color: #ff00ff;
  margin-bottom: 8px;
}

.done-small {
  font-size: 14px;
  color: #00ff88;
}

/* feedback app */
.window-wide {
  width: 420px;
}

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

.feed-title {
  margin: 0 0 4px;
  font-size: 22px;
  color: #fff;
  font-weight: bold;
}

.feed-ask {
  margin: 0 0 16px;
  font-size: 16px;
  color: #ddd;
}

.feed-btn {
  margin-top: 14px;
}

/* mouth name bubble after chew */
.mouth-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 380px;
}

.mouth-name-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(100%, 260px);
  padding: 10px 12px;
  background: #fff9c4;
  border: 3px solid #ff00ff;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
  z-index: 5;
  box-sizing: border-box;
}

.mouth-name-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  margin-left: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ff00ff;
}

.mouth-name-msg {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1a0a2e;
  font-weight: bold;
  line-height: 1.3;
}

.mouth-name-row {
  display: flex;
  gap: 6px;
}

.mouth-name-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 8px;
  border: 2px solid #00ff88;
  border-radius: 8px;
  background: #fff;
  color: #1a0a2e;
}

.mouth-name-save {
  font-size: 12px;
  padding: 6px 12px;
  white-space: nowrap;
}

.feed-done {
  margin: 16px 0 0;
  font-size: 22px;
  color: #00ff88;
  font-weight: bold;
  animation: pop-in 0.3s ease;
}

@keyframes pop-in {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* the mouth */
.mouth {
  position: relative;
  margin: 0 auto;
  max-width: 380px;
  border: 8px solid #e82222;
  border-radius: 20px 20px 40px 40px;
  background: #3a0a0a;
  overflow: hidden;
  cursor: pointer;
  transition: min-height 0.35s ease;
  min-height: 90px;
}

.mouth.chewing {
  cursor: wait;
  transition: none;
}

.teeth-top,
.teeth-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px 6px;
  background: #3a0a0a;
}

.teeth-top span,
.teeth-bottom span {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 2px;
}

.mouth.open {
  min-height: 180px;
  cursor: default;
}

.teeth-top span:nth-child(odd),
.teeth-bottom span:nth-child(even) {
  height: 14px;
  margin-top: 4px;
}

.mouth-hole {
  padding: 8px 12px 12px;
  min-height: 50px;
  background: #5c1515;
  position: relative;
}

.mouth-hint {
  margin: 12px 0;
  color: #ffb3b3;
  font-size: 13px;
}

.mouth.open .mouth-hint {
  display: none;
}

.mouth-input {
  display: none;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
}

.mouth.open .mouth-input {
  display: block;
}

.tongue {
  width: 50px;
  height: 14px;
  background: #d4567a;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 6px;
}

/* chewing jaws */
@keyframes chomp-top {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes chomp-bottom {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mouth.chewing .teeth-top {
  animation: chomp-top 0.15s ease-in-out infinite;
}

.mouth.chewing .teeth-bottom {
  animation: chomp-bottom 0.15s ease-in-out infinite;
}

.mouth.chewing .tongue {
  animation: chomp-bottom 0.15s ease-in-out infinite;
}

.mouth.chewing .mouth-hole {
  animation: chomp-top 0.15s ease-in-out infinite;
}

/* cookie banner - full red bar at bottom */
.cookie-box {
  position: fixed;
  bottom: 42px;
  left: 0;
  width: 100%;
  z-index: 80;
  padding: 16px 20px;
  box-sizing: border-box;
  background: #cc0000;
  border-top: 4px solid #990000;
  text-align: center;
}

.cookie-text {
  margin: 0 0 12px;
  font-size: 15px;
  color: #fff;
  font-weight: bold;
  line-height: 1.3;
}

.cookie-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 18px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.cookie-btn:hover {
  background: #fff;
  color: #cc0000;
}

.cookie-btn-no {
  background: rgba(0, 0, 0, 0.35);
}

/* bottom right decoy button */
.bg-btn {
  position: fixed;
  bottom: 58px;
  right: 20px;
  z-index: 50;
  font-family: inherit;
  font-size: 13px;
  padding: 10px 16px;
  border: 2px solid #ff00ff;
  border-radius: 10px;
  background: rgba(26, 10, 46, 0.85);
  color: #00ff88;
  cursor: pointer;
}

.bg-btn:hover {
  background: rgba(255, 0, 255, 0.3);
}

/* top right organize button */
.organize-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 20px;
  border: 3px solid #000;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff007f 0%, #7f00ff 50%, #00f0ff 100%);
  color: #fff;
  text-shadow: 1px 1px 3px #000;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.6), 4px 4px 0 #00ff88;
  text-transform: lowercase;
  transition: all 0.2s ease-in-out;
}

.organize-btn:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #ff007f 50%, #7f00ff 100%);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.9), 4px 4px 0 #ff00ff;
  transform: scale(1.05) rotate(-1deg);
}

/* classic windows xp error popup */
.err-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
}

.err-box {
  position: fixed;
  width: 340px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid #0054e3;
}

.err-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 4px 8px;
  background: linear-gradient(to right, #0058e6, #3a8cff);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

.err-x {
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  border-radius: 2px;
  background: #c75050;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.err-x:hover {
  background: #e06666;
}

.err-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  background: #ece9d8;
  border-left: 1px solid #0054e3;
  border-right: 1px solid #0054e3;
}

.err-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
}

.err-msg {
  margin: 0;
  color: #000;
  font-size: 12px;
  line-height: 1.4;
}

.err-foot {
  padding: 10px 12px;
  background: #ece9d8;
  border: 1px solid #0054e3;
  border-top: 1px solid #aca899;
  text-align: center;
}

.err-ok {
  min-width: 75px;
  padding: 4px 20px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  border: 1px solid #003c74;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff, #ecebe5);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #fff;
}

.err-ok:hover {
  background: linear-gradient(to bottom, #fff, #ddd);
}

.err-ok:active {
  background: #ccc;
}

/* slop clippy - bottom right useless helper */
.clippy-box {
  position: fixed;
  bottom: 128px;
  right: 16px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transition: opacity 0.4s ease;
}

.clippy-box.hidden {
  opacity: 0;
  pointer-events: none;
}

.clippy-bubble {
  position: relative;
  max-width: 220px;
  padding: 10px 12px;
  background: #fff9c4;
  border: 3px solid #ff00ff;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.clippy-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 28px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ff00ff;
}

.clippy-msg {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1a0a2e;
  font-weight: bold;
  line-height: 1.3;
}

.clippy-ask {
  display: flex;
  gap: 6px;
}

.clippy-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 8px;
  border: 2px solid #00ff88;
  border-radius: 8px;
  background: #fff;
  color: #1a0a2e;
}

.clippy-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border: 2px solid #ff00ff;
  border-radius: 8px;
  background: rgba(255, 0, 255, 0.2);
  color: #1a0a2e;
  font-weight: bold;
  cursor: pointer;
}

.clippy-btn:hover {
  background: #ff00ff;
  color: #fff;
}

.clippy-img {
  width: 130px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* crumpled paper feedback viewer */
.paper-win {
  width: 520px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.paper-win .win-top {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #ff00ff;
  border-radius: 10px 10px 0 0;
}

.paper-win .win-title {
  color: #000;
}

.paper-body {
  padding: 0;
  background: transparent;
  overflow: visible;
}

.paper-sheet {
  min-height: 400px;
  background: url('images/paper.png') center / 100% 100% no-repeat;
  padding: 72px 48px 56px 78px;
  box-sizing: border-box;
}

.paper-text {
  margin: 0;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #1a1208;
  transform: rotate(-1.2deg);
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
}

/* right-click icon menu */
.icon-menu {
  position: fixed;
  z-index: 90;
  min-width: 90px;
  padding: 4px;
  background: #fff;
  border: 2px solid #ff00ff;
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
}

.icon-menu-btn {
  display: block;
  width: 100%;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #ece9d8;
  cursor: pointer;
  text-align: left;
}

.icon-menu-btn:hover {
  background: #ddd;
}

.desktop-menu {
  position: fixed;
  z-index: 90;
  min-width: 150px;
  padding: 4px;
  background: #fff;
  border: 2px solid #ff00ff;
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
}

/* the taskbar arrange menu has to float above the taskbar itself */
.taskbar-menu {
  z-index: 9500;
}

.desktop-menu-btn {
  display: block;
  width: 100%;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #ece9d8;
  cursor: pointer;
  text-align: left;
  color: #000;
}

.desktop-menu-btn:hover {
  background: #316ac5;
  color: #fff;
}

/* delete spin wheel overlay */
.spin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-box {
  text-align: center;
  padding: 24px;
  background: rgba(26, 10, 46, 0.95);
  border: 3px solid #ff00ff;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
}

.spin-label {
  margin: 0 0 16px;
  color: #00ff88;
  font-size: 16px;
  font-weight: bold;
}

.spin-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 14px;
}

.spin-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #ffff00;
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.spin-wheel {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-sizing: border-box;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 1fr;
  position: relative;
  transition: transform 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wheel-slice {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: #1a0a2e;
  text-transform: uppercase;
}

.wheel-yes {
  background: #00ff88;
}

.wheel-no {
  background: #ff00ff;
}

.spin-result {
  margin: 0;
  min-height: 22px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
}

/* game window styles */
.window-game {
  width: 278px !important;
  background: #c0c0c0 !important; /* retro grey! */
  color: #000 !important;
  border: 3px solid #ff00ff !important; /* still keeps the neon boundary */
}

.window-game .win-title {
  color: #fff !important;
  font-family: Tahoma, Arial, sans-serif !important;
}

.window-game .win-top {
  background: linear-gradient(90deg, #000080, #1084d0) !important; /* classic blue header */
}

.game-body {
  padding: 6px;
  background: #c0c0c0;
  font-family: monospace;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  border: 2px inset #fff;
  background: #c0c0c0;
  margin-bottom: 6px;
}

.mine-counter, .timer {
  background: #000;
  color: #ff0000;
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  font-weight: bold;
  padding: 2px 6px;
  border: 2px inset #808080;
  min-width: 44px;
  text-align: right;
  letter-spacing: 1px;
  user-select: none;
}

.smiley-btn {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  padding: 0;
  user-select: none;
  outline: none;
}

.smiley-btn:active {
  border: 2px inset #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(9, 28px);
  grid-template-rows: repeat(9, 28px);
  gap: 1px;
  border: 3px inset #fff;
  background: #808080;
  padding: 2px;
  user-select: none;
}

.game-cell {
  width: 28px;
  height: 28px;
  background: #c0c0c0;
  border: 2.5px outset #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.game-cell.revealed {
  border: 1px solid #808080;
  background: #c0c0c0;
  cursor: default;
}

.game-cell.mine {
  background: #ff0000;
}

/* mine color code hints */
.game-cell[data-count="1"] { color: blue; }
.game-cell[data-count="2"] { color: green; }
.game-cell[data-count="3"] { color: red; }
.game-cell[data-count="4"] { color: darkblue; }
.game-cell[data-count="5"] { color: darkred; }
.game-cell[data-count="6"] { color: teal; }
.game-cell[data-count="7"] { color: black; }
.game-cell[data-count="8"] { color: gray; }

.game-cell.sloppy-text {
  font-size: 10px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  letter-spacing: -0.5px;
}

/* slop paint styling */
.window-paint {
  width: 342px !important;
  background: #c0c0c0 !important;
  color: #000 !important;
  border: 3px solid #ff00ff !important;
}

.window-paint .win-title {
  color: #fff !important;
  font-family: Tahoma, Arial, sans-serif !important;
}

.window-paint .win-top {
  background: linear-gradient(90deg, #800080, #ff00ff) !important; /* purple gradient header */
}

.paint-body {
  padding: 6px;
  background: #c0c0c0;
}

.paint-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
  background: #c0c0c0;
  border: 2px inset #fff;
  padding: 4px;
}

.paint-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-btn {
  font-size: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  outline: none;
  padding: 0;
}

.tool-btn:active, .tool-btn.active-tool {
  border: 2px inset #fff;
  background: #d4d0c8;
}

.paint-action-btn {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 10px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  outline: none;
}

.paint-action-btn:active {
  border: 2px inset #fff;
}

.paint-colors {
  display: flex;
  gap: 4px;
  justify-content: flex-start;
}

.color-swatch {
  width: 18px;
  height: 18px;
  border: 2px outset #fff;
  box-sizing: border-box;
  cursor: pointer;
}

.color-swatch.active-color {
  border: 2px inset #000;
  outline: 1px solid #fff;
}

.canvas-container {
  border: 3px inset #fff;
  background: #808080;
  display: block;
  overflow: hidden;
  width: 320px;
  height: 240px;
}

#paintCanvas {
  background: #ffffff;
  display: block;
  cursor: crosshair;
}

/* memes window styling */
.window-memes {
  width: 400px !important;
  background: #c0c0c0 !important;
  color: #000 !important;
  border: 3px solid #ff00ff !important;
}

.window-memes .win-title {
  color: #fff !important;
  font-family: Tahoma, Arial, sans-serif !important;
}

.window-memes .win-top {
  background: linear-gradient(90deg, #008080, #00ffc8) !important; /* teal gradient header */
}

.memes-body {
  padding: 8px;
  background: #c0c0c0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meme-display {
  background: #000;
  border: 3px inset #fff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.meme-container {
  position: relative;
  max-width: 100%;
  display: inline-block;
  overflow: hidden;
}

#memeImg {
  max-width: 100%;
  max-height: 280px;
  display: block;
  margin: 0 auto;
}

.meme-text {
  position: absolute;
  left: 5%;
  width: 90%;
  text-align: center;
  color: #ffffff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  word-wrap: break-word;
  line-height: 1.15;
  user-select: none;
  pointer-events: none;
  text-shadow:
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
    -2px  0px 0 #000,
     2px  0px 0 #000,
     0px -2px 0 #000,
     0px  2px 0 #000;
}

.meme-text-top {
  top: 8px;
}

.meme-text-bottom {
  bottom: 8px;
}

.meme-watermark {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
  text-shadow: 1px 1px 1px #000;
  user-select: none;
  pointer-events: none;
}

.meme-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meme-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meme-input-group input {
  padding: 6px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 12px;
  border: 2px inset #fff;
  background: #fff;
  color: #000;
  outline: none;
}

.meme-btn-group {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.meme-customizer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #c0c0c0;
  border: 2px inset #fff;
  padding: 8px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 11px;
}

.meme-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.meme-control-row label {
  flex: 1;
  white-space: nowrap;
  color: #000 !important;
  text-shadow: none !important;
}

.meme-control-row input[type="range"] {
  flex: 1.5;
  cursor: pointer;
}

.meme-colors-row {
  justify-content: flex-start;
  gap: 20px;
  margin-top: 4px;
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-picker-wrap input[type="color"] {
  border: 1px solid #888;
  background: none;
  width: 28px;
  height: 22px;
  padding: 0;
  cursor: pointer;
}

/* Fake BSOD and BIOS styling */
.bsod-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #0000aa;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.5;
  padding: 40px;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
}

.bsod-overlay.bios-mode {
  background: #000000;
  color: #c0c0c0;
}

.bsod-title-label {
  background: #ffffff;
  color: #0000aa;
  padding: 2px 8px;
  display: inline-block;
  font-weight: bold;
}

.bsod-reboot-box {
  margin-top: 40px;
  text-align: center;
}

.bsod-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 10px;
  outline: none;
}

.bsod-btn:hover, .bsod-btn:focus {
  background: #ffffff;
  color: #0000aa;
}

.bios-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bios-logo {
  font-size: 40px;
}

.bios-divider {
  border: 1px solid #c0c0c0;
  margin: 20px 0;
}

.bios-log {
  white-space: pre-wrap;
  font-family: 'Courier New', Courier, monospace;
  text-align: left;
}

.bios-line {
  margin-bottom: 8px;
}

/* Terminal command.com Styling */
.window-terminal {
  width: 500px !important;
  background: #c0c0c0 !important;
  color: #33ff33 !important;
  border: 3px solid #ff00ff !important;
}

.window-terminal .win-title {
  color: #ffffff !important;
  font-family: Tahoma, Arial, sans-serif !important;
}

.window-terminal .win-top {
  background: linear-gradient(90deg, #555555, #888888) !important; /* dark grey retro header */
}

.terminal-body {
  padding: 8px;
  background: #000000;
  height: 320px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 4px inset #808080;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 1);
  border-radius: 4px;
}

/* scanlines for vintage CRT screen effect */
.crt-screen-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 10;
}

/* CRT phosphoresce flicker/animation */
@keyframes crt-flicker {
  0% { opacity: 0.985; }
  50% { opacity: 0.995; }
  100% { opacity: 0.985; }
}

.window-terminal .terminal-body {
  animation: crt-flicker 0.15s infinite;
}

/* CRT Vignette glass curvature overlay */
.terminal-body::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 11;
}

.terminal-log {
  flex: 1;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #33ff33;
  text-shadow: 0 0 5px rgba(51, 255, 51, 0.7);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 8px;
  text-align: left;
}

/* scrollbar hack for retro green scrollbar */
.terminal-log::-webkit-scrollbar {
  width: 8px;
}
.terminal-log::-webkit-scrollbar-track {
  background: #000000;
}
.terminal-log::-webkit-scrollbar-thumb {
  background: #33ff33;
  border-radius: 2px;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #33ff33;
  text-shadow: 0 0 5px rgba(51, 255, 51, 0.7);
  z-index: 12;
}

.terminal-prompt {
  white-space: nowrap;
  margin-right: 6px;
  user-select: none;
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  text-shadow: inherit;
}

/* CRT physical window shake animation */
@keyframes terminal-shake {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-3px, -2px); }
  20% { transform: translate(3px, 2px); }
  30% { transform: translate(-2px, 3px); }
  40% { transform: translate(2px, -3px); }
  50% { transform: translate(-1px, 2px); }
  60% { transform: translate(2px, 1px); }
  70% { transform: translate(-2px, -1px); }
  80% { transform: translate(1px, 2px); }
  90% { transform: translate(-1px, -2px); }
  100% { transform: translate(0, 0); }
}

.terminal-shake-active {
  animation: terminal-shake 0.2s ease-in-out;
}

/* =========================================
   CLASSIC WINDOWS 95/98 SLOP (ugly on purpose)
   dont @ me microsoft
   ========================================= */

.window-classic {
  width: 420px !important;
  background: #c0c0c0 !important;
  color: #000 !important;
  border: 2px solid #dfdfdf !important;
  box-shadow: 2px 2px 0 #404040 !important;
  font-family: Tahoma, Arial, sans-serif !important;
}

.window-classic .win-title {
  color: #fff !important;
  text-shadow: none !important;
  font-family: Tahoma, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: bold !important;
}

.window-classic .win-top {
  background: linear-gradient(90deg, #000080, #1084d0) !important;
  border-bottom: 1px solid #000 !important;
}

.classic-body {
  padding: 0 !important;
  background: #c0c0c0 !important;
  color: #000 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 180px;
}

.classic-menubar {
  display: flex;
  gap: 10px;
  padding: 2px 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  font-size: 11px;
  color: #000;
}

.classic-menubar span,
.menu-fake {
  padding: 1px 4px;
  cursor: default;
  background: none;
  border: none;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: #000;
}

.classic-menubar span:hover,
.menu-fake:hover {
  background: #000080;
  color: #fff;
}

.classic-statusbar {
  display: flex;
  gap: 8px;
  padding: 2px 6px;
  border-top: 2px groove #fff;
  font-size: 11px;
  color: #000;
  background: #c0c0c0;
  margin-top: auto;
}

.status-sep {
  color: #808080;
}

.classic-btn {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  padding: 3px 12px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  color: #000;
}

.classic-btn:active {
  border-style: inset;
}

.classic-btn-broken {
  opacity: 0.6;
}

.classic-tb-btn {
  width: 24px;
  height: 22px;
  font-size: 10px;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  padding: 0;
}

.classic-tb-btn:active {
  border-style: inset;
}

/* my computer */
.window-mycomp {
  width: 380px !important;
}

.mycomp-body {
  min-height: 220px;
}

.mycomp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  flex: 1;
}

.mycomp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  color: #000;
  background: none;
  font-family: Tahoma, Arial, sans-serif;
}

.mycomp-item:hover {
  background: rgba(0, 0, 128, 0.15);
  border: 1px dotted #000080;
}

.mycomp-icon {
  font-size: 32px;
  line-height: 1;
}

.mycomp-item-broken {
  opacity: 0.55;
}

.mycomp-item-broken:hover::after {
  content: " (broken)";
  font-size: 9px;
  color: #800000;
}

/* explorer */
.window-explorer {
  width: 480px !important;
}

.explorer-body {
  min-height: 280px;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-bottom: 1px solid #808080;
  background: #c0c0c0;
}

.explorer-address {
  flex: 1;
  font-size: 11px;
  padding: 2px 6px;
  background: #fff;
  border: 2px inset #808080;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-split {
  display: flex;
  flex: 1;
  min-height: 180px;
  border-top: 1px solid #fff;
}

.explorer-tree {
  width: 130px;
  border-right: 2px inset #808080;
  padding: 4px;
  font-size: 11px;
  color: #000;
  overflow-y: auto;
  background: #fff;
}

.tree-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 2px 4px;
  border: none;
  background: none;
  font-size: 11px;
  font-family: Tahoma, Arial, sans-serif;
  cursor: pointer;
  color: #000;
}

.tree-item:hover,
.tree-item.tree-active {
  background: #000080;
  color: #fff;
}

.explorer-files {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  overflow-y: auto;
  background: #fff;
}

.explorer-file-item {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 10px;
  text-align: center;
  color: #000;
  background: none;
  font-family: Tahoma, Arial, sans-serif;
  word-break: break-word;
}

.explorer-file-item:hover {
  background: #000080;
  color: #fff;
}

.explorer-file-icon {
  font-size: 28px;
}

/* notepad */
.window-notepad {
  width: 400px !important;
}

.notepad-body {
  min-height: 260px;
}

.notepad-area {
  flex: 1;
  width: 100%;
  border: none;
  resize: none;
  padding: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  background: #fff;
  color: #000;
  box-sizing: border-box;
  outline: none;
}

.notepad-area.corrupted {
  font-family: 'Comic Sans MS', cursive;
  color: #ff00ff;
  letter-spacing: 2px;
}

/* calculator */
.window-calc {
  width: 220px !important;
}

.calc-body {
  padding: 8px !important;
  align-items: stretch;
}

.calc-display {
  width: 100%;
  box-sizing: border-box;
  font-size: 20px;
  text-align: right;
  padding: 4px 6px;
  margin-bottom: 6px;
  border: 2px inset #808080;
  background: #fff;
  color: #000;
  font-family: Tahoma, Arial, sans-serif;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.calc-key {
  padding: 8px 4px;
  font-size: 12px;
  font-family: Tahoma, Arial, sans-serif;
  background: #c0c0c0;
  border: 2px outset #fff;
  cursor: pointer;
  color: #000;
}

.calc-key:active {
  border-style: inset;
}

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

.calc-disclaimer {
  font-size: 9px;
  color: #800000;
  text-align: center;
  margin: 6px 0 0;
  font-style: italic;
}

/* recycle bin */
.window-recycle {
  width: 400px !important;
}

.recycle-body {
  min-height: 240px;
}

.recycle-toolbar {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-bottom: 1px solid #808080;
}

.recycle-list {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  min-height: 120px;
  background: #fff;
  margin: 0 4px;
  border: 2px inset #808080;
}

.recycle-empty-msg {
  font-size: 11px;
  color: #808080;
  padding: 20px;
  font-style: italic;
}

.recycle-item {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  cursor: pointer;
  font-size: 10px;
  text-align: center;
  color: #000;
  border: 1px solid transparent;
  background: none;
  font-family: Tahoma, Arial, sans-serif;
}

.recycle-item:hover {
  background: #000080;
  color: #fff;
}

/* control panel */
.window-controlpanel {
  width: 400px !important;
}

.cpanel-body {
  padding: 10px !important;
}

.cpanel-hint {
  font-size: 11px;
  margin: 0 0 8px;
  color: #000;
}

.cpanel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cpanel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 2px outset #fff;
  background: #c0c0c0;
  cursor: pointer;
  font-size: 11px;
  color: #000;
  font-family: Tahoma, Arial, sans-serif;
  text-align: left;
}

.cpanel-item:active {
  border-style: inset;
}

.cpanel-item-icon {
  font-size: 24px;
}

/* classic dialogs */
.classic-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.25);
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.classic-dialog {
  background: #c0c0c0;
  border: 2px solid #dfdfdf;
  box-shadow: 4px 4px 0 #404040;
  min-width: 320px;
  max-width: 420px;
  font-family: Tahoma, Arial, sans-serif;
  color: #000;
}

.classic-dialog-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
}

.classic-dialog-body {
  padding: 12px 14px;
  font-size: 11px;
}

.classic-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px 12px;
}

.run-prompt {
  margin: 0 0 10px;
  line-height: 1.4;
}

.run-label {
  display: block;
  margin-bottom: 4px;
}

.run-input {
  width: 100%;
  box-sizing: border-box;
  padding: 3px 4px;
  border: 2px inset #808080;
  font-size: 12px;
  font-family: Tahoma, Arial, sans-serif;
}

.run-hint {
  margin: 6px 0 0;
  font-size: 10px;
  color: #800000;
  min-height: 14px;
}

.shutdown-body p {
  margin: 0 0 10px;
}

.shutdown-opt {
  display: block;
  margin: 6px 0;
  font-size: 11px;
  cursor: pointer;
}

.safe-shutdown-overlay,
.standby-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 60000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.safe-shutdown-text {
  color: #c0c0c0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 18px;
  margin: 0;
}

.safe-shutdown-sub,
.standby-sub {
  color: #808080;
  font-size: 11px;
  margin-top: 12px;
  font-family: 'Comic Sans MS', cursive;
}

.standby-overlay {
  background: #111;
}

.standby-text {
  color: #333;
  font-size: 24px;
  font-family: Tahoma, Arial, sans-serif;
}

.start-item-sub {
  font-weight: bold;
}

.start-submenu {
  padding-left: 12px;
  border-left: 2px groove #808080;
  margin: 2px 0 4px 8px;
}

.start-item-nested {
  font-size: 12px !important;
  padding-left: 8px !important;
}

/* winver popup (spawned by run dialog sometimes) */
.winver-popup {
  position: fixed;
  z-index: 55000;
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 12px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: #000;
  box-shadow: 4px 4px 0 #000;
  max-width: 280px;
}

.winver-popup h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.winver-popup .winver-ok {
  margin-top: 10px;
  float: right;
}

/* volume flyout — pops up over the tray speaker */
.volume-flyout {
  position: fixed;
  bottom: 54px;
  right: 96px;
  z-index: 9000;
  width: 74px;
  padding: 10px 8px 8px;
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Tahoma", sans-serif;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.volume-flyout-title {
  font-size: 11px;
  margin: 0 0 8px;
}

.volume-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: slider-vertical;
  width: 24px;
  height: 110px;
  margin: 0 0 8px;
}

.volume-mute-row {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
}

.volume-flyout-val {
  font-size: 11px;
  margin: 0;
  font-weight: bold;
}

.tray-icon.tray-muted {
  opacity: 0.45;
}

/* task manager. the three finger salute window */
.window-taskmgr {
  width: 400px;
}

.taskmgr-body {
  display: flex;
  flex-direction: column;
}

.taskmgr-tabs {
  display: flex;
  gap: 2px;
  padding: 4px 4px 0 4px;
  background: #c0c0c0;
}

.taskmgr-tab {
  font-family: "Tahoma", sans-serif;
  font-size: 11px;
  padding: 3px 10px 4px;
  border: 1px solid #808080;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  background: #c0c0c0;
  color: #000;
  cursor: pointer;
  position: relative;
  top: 1px;
}

.taskmgr-tab-on {
  background: #d4d0c8;
  font-weight: bold;
  top: 0;
  padding-bottom: 5px;
}

.taskmgr-listhead {
  display: flex;
  font-size: 11px;
  font-weight: bold;
  background: #c0c0c0;
  border: 1px solid #808080;
  margin: 0 6px;
  padding: 2px 4px;
}

.taskmgr-listhead span:first-child { flex: 1; }
.taskmgr-listhead span:last-child { width: 110px; }

.taskmgr-list {
  margin: 0 6px;
  height: 150px;
  overflow-y: auto;
  background: #fff;
  border: 2px inset #dfdfdf;
}

.taskmgr-row {
  display: flex;
  align-items: center;
  font-size: 11px;
  padding: 3px 4px;
  cursor: pointer;
  user-select: none;
}

.taskmgr-row:hover { background: #e8e8e8; }

.taskmgr-row.taskmgr-sel {
  background: #000080;
  color: #fff;
}

.taskmgr-row .taskmgr-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskmgr-row .taskmgr-stat { width: 110px; }

.taskmgr-row.taskmgr-hung .taskmgr-stat { color: #b00000; font-weight: bold; }
.taskmgr-row.taskmgr-sel.taskmgr-hung .taskmgr-stat { color: #ff9a9a; }

.taskmgr-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 6px;
}

.taskmgr-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

/* update nag — slides up from the tray, refuses to be dismissed properly */
.update-nag {
  position: fixed;
  right: 8px;
  bottom: 54px;
  z-index: 9600;
  width: 300px;
  background: #fdfdfd;
  border: 1px solid #6d6d6d;
  border-radius: 4px 4px 0 0;
  box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.3);
  font-family: "Tahoma", sans-serif;
  overflow: hidden;
  animation: updateNagIn 0.35s ease-out;
}

@keyframes updateNagIn {
  from { transform: translateY(120%); }
  to { transform: translateY(0); }
}

.update-nag-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: linear-gradient(180deg, #3a6ea5, #1c4577);
  color: #fff;
}

.update-nag-icon { font-size: 14px; }

.update-nag-title {
  flex: 1;
  font-size: 12px;
  font-weight: bold;
}

.update-nag-x {
  width: 18px;
  height: 18px;
  line-height: 14px;
  border: 1px solid #fff;
  background: #c75050;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
}

.update-nag-body {
  padding: 10px;
}

.update-nag-line {
  font-size: 12px;
  margin: 0 0 8px;
  color: #000;
}

.update-nag-count {
  font-size: 12px;
  margin: 0 0 10px;
  color: #000;
}

.update-nag-count span {
  font-weight: bold;
  color: #b00000;
}

.update-nag-btns {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* screensaver. classic black void with a logo that never quite hits the corner */
.screensaver {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #000;
  overflow: hidden;
  cursor: none;
}

.saver-logo {
  position: absolute;
  top: 40%;
  left: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 26px;
  border: 2px solid currentColor;
  border-radius: 6px;
  color: #00ff66;
  font-family: "Courier New", monospace;
  user-select: none;
  will-change: transform, left, top;
}

.saver-logo-text {
  font-size: 42px;
  font-weight: bold;
  letter-spacing: 2px;
}

.saver-logo-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

.saver-hint {
  position: absolute;
  bottom: 24px;
  width: 100%;
  text-align: center;
  color: #333;
  font-family: "Courier New", monospace;
  font-size: 13px;
  animation: saverHintPulse 3s ease-in-out infinite;
}

@keyframes saverHintPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

