/* =========================================================
   Windows ME Virtual Desktop with CRT Screen Aesthetic
   Inspired by classic hardware & kanye2049.com
   ========================================================= */

:root {
  --desktop-bg: #008080;
  --window-surface: #c0c0c0;
  --titlebar-active: linear-gradient(90deg, #000080, #1084d0);
  --titlebar-inactive: linear-gradient(90deg, #808080, #b5b5b5);
  --start-banner: linear-gradient(180deg, #000080 0%, #1084d0 70%, #008080 100%);
  --accent-highlight: #000080;
  --accent-border: #1084d0;
  --led-color: #00ff66;
}

body[data-theme="teal"] {
  --desktop-bg: #008080;
  --titlebar-active: linear-gradient(90deg, #000080, #1084d0);
  --start-banner: linear-gradient(180deg, #000080 0%, #1084d0 70%, #008080 100%);
  --accent-highlight: #000080;
  --accent-border: #1084d0;
  --led-color: #00ff66;
}

body[data-theme="yellow"] {
  --desktop-bg: #282410;
  --titlebar-active: linear-gradient(90deg, #7a5a00, #c49a15);
  --start-banner: linear-gradient(180deg, #7a5a00 0%, #c49a15 70%, #282410 100%);
  --accent-highlight: #6e5000;
  --accent-border: #d4af37;
  --led-color: #ffd700;
}

body[data-theme="pink"] {
  --desktop-bg: #2d1522;
  --titlebar-active: linear-gradient(90deg, #821c4b, #ce6897);
  --start-banner: linear-gradient(180deg, #821c4b 0%, #ce6897 70%, #2d1522 100%);
  --accent-highlight: #821c4b;
  --accent-border: #ffb6c1;
  --led-color: #ff66aa;
}

body[data-theme="green"] {
  --desktop-bg: #0d2315;
  --titlebar-active: linear-gradient(90deg, #0e5628, #22994d);
  --start-banner: linear-gradient(180deg, #0e5628 0%, #22994d 70%, #0d2315 100%);
  --accent-highlight: #0e5628;
  --accent-border: #44dd77;
  --led-color: #00ff88;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  background-color: #0d0e12;
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

/* ==================== CRT Monitor Outer Frame ==================== */
#crt-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 35%, #181922 0%, #08080a 70%, #030304 100%);
  overflow: hidden;
  overscroll-behavior: none;
}

#crt-monitor {
  width: min(1120px, 97vw);
  height: min(830px, 95vh);
  background: radial-gradient(circle at 50% 25%, #31333a 0%, #222328 70%, #17181c 100%);
  border-radius: 28px;
  padding: 12px 18px 20px 18px;
  box-sizing: border-box;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -4px 6px rgba(0, 0, 0, 0.85),
    inset 3px 0 5px rgba(255, 255, 255, 0.08),
    inset -3px 0 5px rgba(0, 0, 0, 0.7),
    0 12px 28px rgba(0, 0, 0, 0.85),
    0 28px 75px rgba(0, 0, 0, 0.98),
    0 0 0 2px #121316;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* CRT Top Heat Ventilation Slots */
.crt-top-vents {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 6px;
  margin-bottom: 8px;
}

.crt-top-vents span {
  width: 22px;
  height: 3px;
  background: #111215;
  box-shadow: inset 0 1px 1px #000, 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 1px;
}

/* Monitor bottom bezel branding & power LED */
.crt-monitor-footer {
  height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 0;
  user-select: none;
}

.crt-brand-logo {
  color: #70727d;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.15);
}

.crt-controls-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crt-monitor-btn {
  width: 15px;
  height: 11px;
  background: #1d1e23;
  border: 1px solid #111215;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.15), 0 1px 2px rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: #636570;
  cursor: default;
}

.crt-power-led-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crt-power-led {
  width: 7px;
  height: 7px;
  background: var(--led-color);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--led-color), 0 0 12px var(--led-color);
  border: 1px solid rgba(0, 0, 0, 0.5);
  transition: background 0.3s, box-shadow 0.3s;
}

/* ==================== CRT Curved Glass Screen & Flickering ==================== */
.crt-screen {
  position: relative;
  width: 100%;
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 3px solid #141519;
  box-shadow:
    inset 0 0 32px rgba(0, 0, 0, 0.95),
    inset 0 0 10px rgba(0, 0, 0, 0.9),
    inset 3px 3px 6px rgba(0, 0, 0, 0.8),
    inset -2px -2px 6px rgba(255, 255, 255, 0.08),
    0 0 0 1px #0e0f12;
}

/* Authentic CRT high-frequency flicker */
@keyframes crtFlicker {
  0% { opacity: 0.985; }
  25% { opacity: 0.96; }
  50% { opacity: 1; }
  75% { opacity: 0.97; }
  100% { opacity: 0.99; }
}

.crt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999999;
  border-radius: 16px;
  animation: crtFlicker 0.15s infinite;
  background:
    /* Diagonal room glare reflection on glass tube */
    linear-gradient(135deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.018) 18%, transparent 40%),
    /* CRT Scanlines */
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%),
    /* Sub-pixel phosphors */
    linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02)),
    /* Convex tube radial vignette */
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.32) 85%, rgba(0, 0, 0, 0.72) 100%);
  background-size: 100% 100%, 100% 3px, 4px 100%, 100% 100%;
}

/* ==================== Terminal BIOS Boot Screen ==================== */
#boot-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #c0c0c0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.35;
  padding: 16px 20px;
  box-sizing: border-box;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.4s ease-out;
  cursor: pointer;
}

#boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.boot-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.boot-title {
  color: #fff;
  font-weight: bold;
}

.boot-energy-logo {
  border: 1px solid #00ffff;
  color: #00ffff;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  white-space: pre;
}

.boot-log-container {
  flex: 1;
  overflow-y: hidden;
  white-space: pre-wrap;
  color: #dfdfdf;
}

.boot-log-line {
  margin: 1px 0;
}

.boot-log-line.highlight {
  color: #fff;
  font-weight: bold;
}

.boot-log-line.success {
  color: #00ff00;
}

.boot-prompt-action {
  color: #ffcc00;
  font-weight: bold;
  margin-top: 10px;
  animation: promptGlow 1.2s infinite alternate;
}

@keyframes promptGlow {
  from { color: #ffcc00; }
  to { color: #ffffff; }
}

.boot-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #fff;
  vertical-align: middle;
  animation: blinkCursor 0.6s infinite alternate;
}

@keyframes blinkCursor {
  from { opacity: 1; }
  to { opacity: 0; }
}

.boot-skip-hint {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 11px;
  color: #888;
  cursor: pointer;
  padding: 3px 8px;
  border: 1px dashed #555;
  background: rgba(0, 0, 0, 0.6);
}

.boot-skip-hint:hover {
  color: #fff;
  border-color: #aaa;
}

/* ==================== Desktop ==================== */
#desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 30px);
  background-color: var(--desktop-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}

.desktop-icons-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 16px;
  height: 100%;
}

.desktop-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  padding: 4px 2px;
  text-align: center;
  cursor: pointer;
  border: 1px dotted transparent;
  border-radius: 2px;
  color: #fff;
  text-shadow: 1px 1px 2px #000, 0 0 1px #000;
  user-select: none;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.desktop-icon.selected {
  background-color: rgba(0, 0, 128, 0.6);
  border: 1px dotted #ff0;
}

/* Monochrome Desktop Icons */
.desktop-icon svg, .desktop-icon img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  margin-bottom: 4px;
  pointer-events: none;
  filter: grayscale(100%) contrast(180%) brightness(1.2);
  transition: filter 0.15s ease;
}

.desktop-icon:hover svg, .desktop-icon:hover img {
  filter: grayscale(100%) contrast(220%) brightness(1.4);
}

.desktop-icon span {
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
  pointer-events: none;
}

/* Notification Badge on Desktop Icons */
.desktop-icon-badge {
  position: absolute;
  top: -2px;
  right: 14px;
  min-width: 15px;
  height: 15px;
  background: #e60000;
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.8), 1px 1px 2px rgba(0,0,0,0.9);
  border: 1px solid #fff;
  padding: 0 2px;
  z-index: 5;
  animation: badgePulse 1.6s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* ==================== Windows (Fixed Layering Bug) ==================== */
.window {
  position: absolute;
  min-width: 280px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px grey, inset 2px 2px #fff, 3px 3px 10px rgba(0, 0, 0, 0.35);
  /* z-index is strictly managed by JavaScript to avoid layering bugs */
}

.window.active .title-bar {
  background: var(--titlebar-active);
}

.window:not(.active) .title-bar {
  background: var(--titlebar-inactive);
}

.window.minimized {
  display: none !important;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - 30px) !important;
}

.window-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 4px;
  overflow: hidden;
}

/* Menu Bar inside Windows */
.window-menubar {
  display: flex;
  background: silver;
  border-bottom: 1px solid grey;
  padding: 1px 2px;
  margin-bottom: 4px;
  font-size: 11px;
}

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

.menubar-item:hover {
  background: var(--accent-highlight);
  color: #fff;
}

/* ==================== Taskbar ==================== */
#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: silver;
  box-shadow: inset 0 1px #fff;
  border-top: 1px solid #dfdfdf;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  box-sizing: border-box;
  z-index: 99999;
}

#start-button {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  height: 24px;
  min-width: 60px;
  padding: 0 6px;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
  cursor: pointer;
}

#start-button.active {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px grey, inset -2px -2px #dfdfdf;
}

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

.taskbar-divider {
  width: 2px;
  height: 20px;
  background: grey;
  border-right: 1px solid #fff;
  margin: 0 4px;
}

#taskbar-windows {
  display: flex;
  gap: 4px;
  flex: 1;
  height: 24px;
  overflow-x: auto;
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  min-width: 110px;
  height: 24px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: normal;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.taskbar-item.active {
  font-weight: bold;
  background: #e0e0e0;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px grey, inset -2px -2px #dfdfdf;
}

.taskbar-item svg, .taskbar-item img {

  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: grayscale(100%);
}

/* Taskbar Scrolling Blinkies */
.taskbar-blinkies {
  height: 24px;
  width: 210px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff;
  display: flex;
  align-items: center;
  margin: 0 4px;
  padding: 0 2px;
  flex-shrink: 0;
  /* Elevate above CRT scanline filter to ensure pixel font legibility */
  z-index: 1000000;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
}

.taskbar-blinkies-track {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: blinkieScroll 28s linear infinite;
  animation-play-state: running;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.taskbar-blinkies:hover .taskbar-blinkies-track {
  animation-play-state: paused;
}

@keyframes blinkieScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.blinkie-img {
  height: 20px;
  width: auto;
  max-height: 20px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  flex-shrink: 0;
  display: block;
}

#system-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  box-shadow: inset 1px 1px grey, inset -1px -1px #fff;
  font-size: 11px;
  margin-left: auto;
}

#system-tray-time {
  font-family: Arial, sans-serif;
}

/* ==================== Start Menu ==================== */
#start-menu {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 250px;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf, 3px 3px 10px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  z-index: 100000;
}

#start-menu.open {
  display: flex;
}

/* Start Menu Top User Panel (Discord presence integrated) */
.start-user-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--titlebar-active);
  border-bottom: 2px groove #dfdfdf;
  color: #fff;
  transition: background 0.2s;
}

.start-avatar-box {
  width: 38px;
  height: 38px;
  background: #000;
  border: 2px solid silver;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff;
  position: relative;
  flex-shrink: 0;
}

.start-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.start-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #000;
}

.start-status-dot.online { background: #00ff00; }
.start-status-dot.idle { background: #ffcc00; }
.start-status-dot.dnd { background: #ff0033; }
.start-status-dot.offline { background: #888888; }

.start-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.start-user-name {
  font-weight: bold;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.start-user-activity-wrap {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.start-user-activity {
  font-size: 10px;
  color: #dfdfdf;
  display: inline-block;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.start-user-activity.scrolling {
  animation: activityBounce 6.5s ease-in-out infinite alternate;
}

@keyframes activityBounce {
  0%, 8% {
    transform: translate3d(0, 0, 0);
  }
  50%, 58% {
    transform: translate3d(var(--scroll-dist, -40px), 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.start-menu-content {
  display: flex;
  flex-direction: row;
  flex: 1;
}

.start-menu-banner {
  width: 28px;
  background: var(--start-banner);
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 4px;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
}

.start-menu-banner span {
  color: #ffcc00;
}

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

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

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

.start-menu-item svg, .start-menu-item img {
  width: 22px;
  height: 22px;
}

.start-menu-separator {
  height: 1px;
  background: grey;
  border-bottom: 1px solid #fff;
  margin: 4px 2px;
}

/* ==================== App: Guestbook (Taller, Less Wide, Default Right) ==================== */
#guestbook-window {
  width: 336px;
  height: min(590px, calc(100% - 35px));
  top: 15px;
  right: 18px;
  left: auto;
}

#guestbook-window fieldset {
  padding-bottom: 4px;
  margin-bottom: 0;
}

.guestbook-entries-box {
  flex: 1;
  min-height: 185px;
  background: #fff;
  box-shadow: inset 1px 1px grey, inset -1px -1px #fff, inset 2px 2px #0a0a0a, inset -2px -2px #dfdfdf;
  overflow-y: auto;
  padding: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}

.retro-entry {
  border-bottom: 1px dashed #c0c0c0;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.retro-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--accent-highlight);
  font-size: 11px;
}

.retro-entry-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #666;
}

.retro-reply-btn {
  background: #e8e8e8;
  border: 1px solid #707070;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #999;
  font-size: 9px;
  font-family: inherit;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  padding: 1px 4px;
  line-height: 1.1;
  border-radius: 1px;
}

.retro-reply-btn:hover {
  background: #ffffff;
  color: var(--accent-highlight);
}

.retro-reply-tag {
  font-size: 10px;
  color: #000080;
  font-weight: bold;
  background: #f0f4ff;
  border-left: 2px solid #000080;
  padding: 1px 4px;
  margin: 3px 0 2px 2px;
}

/* Golden Gradient Crown Badge for HARMONY author */
.harmony-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #3d2605 0%, #1c1102 100%);
  border: 1px solid #d4af37;
  padding: 1px 6px;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 235, 150, 0.4), 0 1px 3px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.harmony-badge .harmony-text {
  background: linear-gradient(180deg, #ffffff 0%, #ffe082 45%, #ffb300 85%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.crown-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

.retro-entry-comment {
  margin: 3px 0 0 0;
  color: #111;
  word-break: break-word;
}

.guestbook-form-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Heavily restrict message textarea adjustability */
#comment,
.guestbook-form-container textarea {
  resize: none !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-y: auto;
}

/* Reply target indicator bar */
.reply-indicator-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffd0;
  border: 1px dashed #b8860b;
  padding: 2px 6px;
  font-size: 11px;
  margin-bottom: 4px;
}

.cancel-reply-btn {
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: #c00;
  font-size: 12px;
  padding: 0 2px;
}

.cancel-reply-btn:hover {
  color: #f00;
}

.form-status-text {
  font-size: 11px;
  color: #c00;
  margin: 0;
  line-height: 1.2;
}

.form-status-text:empty {
  display: none;
}

/* ==================== App: Windows Media Player ==================== */
#player-window {
  width: 360px;
  height: 345px;
  top: 70px;
  left: 480px;
}

.mplayer-display {
  background: #000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  padding: 8px;
  border: 2px inset silver;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.mplayer-song-title {
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mplayer-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* ==================== Retro Windows 98 / ME Range Sliders ==================== */

#mplayer-progress,
#mplayer-volume {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
}

#mplayer-progress:focus,
#mplayer-volume:focus {
  outline: 1px dotted #000;
  outline-offset: 1px;
}

/* 1. Seek / Scrubber Track (#mplayer-progress) */
.mplayer-scrubber-row {
  margin: 2px 0 6px 0;
  display: flex;
  align-items: center;
}

#mplayer-progress {
  width: 100%;
  height: 20px;
}

#mplayer-progress::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #008080 0%, #1084d0 var(--progress, 0%), #000 var(--progress, 0%), #000 100%);
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px #404040, inset -2px -2px #dfdfdf;
  border-radius: 0;
  cursor: pointer;
}

#mplayer-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 20px;
  margin-top: -6px;
  background: linear-gradient(180deg, #dfdfdf 0%, #c0c0c0 35%, #808080 45%, #fff 50%, #808080 55%, #fff 60%, #c0c0c0 70%, #c0c0c0 100%);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  border-radius: 0;
  cursor: pointer;
}

#mplayer-progress:active::-webkit-slider-thumb {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf;
}

#mplayer-progress::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #000;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px #404040, inset -2px -2px #dfdfdf;
  border-radius: 0;
  cursor: pointer;
}

#mplayer-progress::-moz-range-progress {
  height: 8px;
  background: linear-gradient(90deg, #008080, #1084d0);
}

#mplayer-progress::-moz-range-thumb {
  width: 12px;
  height: 20px;
  background: linear-gradient(180deg, #dfdfdf 0%, #c0c0c0 35%, #808080 45%, #fff 50%, #808080 55%, #fff 60%, #c0c0c0 70%, #c0c0c0 100%);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

/* 2. Volume Slider (#mplayer-volume - sndvol32 style) */
#mplayer-volume {
  flex: 1;
  height: 18px;
}

#mplayer-volume::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: #000;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-bottom: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  box-sizing: border-box;
  cursor: pointer;
}

#mplayer-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 18px;
  margin-top: -7px;
  background: linear-gradient(90deg, #dfdfdf 0%, #c0c0c0 35%, #808080 45%, #fff 55%, #c0c0c0 65%, #c0c0c0 100%);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  border-radius: 0;
  cursor: pointer;
}

#mplayer-volume:active::-webkit-slider-thumb {
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf;
}

#mplayer-volume::-moz-range-track {
  width: 100%;
  height: 4px;
  background: #000;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-bottom: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  box-sizing: border-box;
  cursor: pointer;
}

#mplayer-volume::-moz-range-thumb {
  width: 11px;
  height: 18px;
  background: linear-gradient(90deg, #dfdfdf 0%, #c0c0c0 35%, #808080 45%, #fff 55%, #c0c0c0 65%, #c0c0c0 100%);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.mplayer-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
}

.mplayer-btn {
  min-width: 36px;
  height: 26px;
  font-size: 12px;
  font-weight: bold;
}

.mplayer-btn.active {
  background: #a0a0a0;
  box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff;
}

.mplayer-volume-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 6px;
}

.mplayer-vol-btn {
  min-width: 24px;
  height: 20px;
  padding: 0;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mplayer-playlist {
  flex: 1;
  background: #fff;
  box-shadow: inset 1px 1px grey, inset -1px -1px #fff, inset 2px 2px #0a0a0a, inset -2px -2px #dfdfdf;
  overflow-y: auto;
  font-size: 11px;
}

.playlist-item {
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.playlist-item:hover {
  background: var(--accent-highlight);
  color: #fff;
}

.playlist-item.selected {
  background: var(--accent-highlight);
  color: #fff;
  font-weight: bold;
}

/* ==================== App: Internet Explorer ==================== */
#ie-window {
  width: 480px;
  height: 400px;
  top: 90px;
  left: 160px;
}

.ie-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0 4px;
  border-bottom: 1px solid grey;
}

.ie-address-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-size: 11px;
}

.ie-content {
  flex: 1;
  background: #fff;
  box-shadow: inset 1px 1px grey, inset -1px -1px #fff, inset 2px 2px #0a0a0a, inset -2px -2px #dfdfdf;
  overflow-y: auto;
  padding: 12px;
}

.ie-section-title {
  background: #dfdfdf;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 12px;
  border-left: 4px solid var(--accent-highlight);
  margin: 10px 0 6px;
}

.ie-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ie-link-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: #f0f0f0;
  border: 1px outset silver;
  text-decoration: none;
  color: var(--accent-highlight);
  font-size: 11px;
}

.ie-link-card:hover {
  border: 1px inset silver;
  background: #e0e0e0;
}


/* ==================== App: Settings (formerly Display Properties) ==================== */
#settings-window {
  width: 375px;
  height: 275px;
  top: 85px;
  left: 210px;
}

.settings-tab-panel {
  padding: 8px 4px;
}

.about-os-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  margin-bottom: 6px;
}

.about-icon-slot {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 2px inset silver;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 1px 1px #000;
  overflow: hidden;
}

.about-icon-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.about-icon-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-os-info {
  display: flex;
  flex-direction: column;
}

.about-os-title {
  font-size: 12px;
  font-weight: bold;
  color: #000;
}

.about-os-sub {
  font-size: 11px;
  color: #444;
}

.about-os-copy {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}

.about-specs-container fieldset {
  margin-top: 4px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f8f8f8;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  border-bottom: 1px dotted #dfdfdf;
  padding-bottom: 2px;
}

.spec-row strong {
  color: #000080;
}

.spec-row span {
  color: #222;
  text-align: right;
}

.monitor-preview {
  width: 160px;
  height: 100px;
  background: #444;
  border: 6px solid #b0b0b0;
  border-radius: 4px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.monitor-screen {
  width: 100%;
  height: 100%;
  background-color: var(--desktop-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.monitor-mini-window {
  width: 60px;
  height: 36px;
  background: silver;
  border: 1px solid #000;
  margin: 2px;
}

.monitor-mini-titlebar {
  height: 6px;
  background: var(--titlebar-active);
  transition: background 0.2s;
}

/* Disabled Title Bar Button Indicator */
.title-bar-controls button[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ==================== App: Notepad (Restored to 420px width) ==================== */
#notepad-window {
  width: 420px;
  height: 320px;
  top: calc(50% - 160px);
  left: calc(50% - 210px);
}

.notepad-textarea {
  flex: 1;
  width: 100%;
  height: 100%;
  font-family: "Courier New", monospace;
  font-size: 12px;
  resize: none;
  border: none;
  outline: none;
}

/* Solid Opaque Surfaces for Notepad to prevent Sunburst shine-through */
#notepad-window {
  background: #c0c0c0;
}
#notepad-window .title-bar {
  position: relative;
  z-index: 2;
}
#notepad-window .window-menubar {
  background: #c0c0c0;
  position: relative;
  z-index: 2;
}
#notepad-window .window-body {
  background: #ffffff;
  position: relative;
  z-index: 2;
}
#notepad-window .notepad-textarea {
  background: #ffffff;
  position: relative;
  z-index: 2;
}
#notepad-window .status-bar {
  background: #c0c0c0;
  position: relative;
  z-index: 2;
}

/* Attention Animation & Spinning Sunburst on README.txt Window (Synchronized 1.2s Cycle) */
@keyframes readmeWindowPulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(255, 204, 0, 0.25), inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px grey, inset 2px 2px #fff, 3px 3px 10px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 204, 0, 0.95), 0 0 40px rgba(255, 170, 0, 0.55), inset -1px -1px #0a0a0a, inset 1px 1px #ffd700, inset -2px -2px #b8860b, inset 2px 2px #fff8dc, 3px 3px 10px rgba(0, 0, 0, 0.35);
  }
}

@keyframes readmeTitleBarFlash {
  0%, 100% {
    background: var(--titlebar-active);
    color: #ffffff;
  }
  50% {
    background: linear-gradient(90deg, #ffdd33, #ffaa00);
    color: #000000;
  }
}

#notepad-window.readme-attention-intro {
  animation: readmeWindowPulse 1.2s ease-in-out infinite;
  overflow: visible !important;
}

#notepad-window.readme-attention-intro .title-bar {
  animation: readmeTitleBarFlash 1.2s ease-in-out infinite;
}

/* Spinning Sunburst placed directly behind README.txt window */
#readme-sunburst {
  position: absolute;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 220, 50, 0.42) 0deg 11.25deg,
    rgba(255, 170, 0, 0.05) 11.25deg 22.5deg
  );
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 26%, rgba(0, 0, 0, 0) 68%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 26%, rgba(0, 0, 0, 0) 68%);
  animation: sunburstSpin 10s linear infinite;
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  opacity: 1;
}

@keyframes sunburstSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#readme-sunburst.sunburst-fading {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Taskbar Tab Attention Glow (Synchronized at 1.2s) */
.taskbar-item[data-window-id="notepad-window"].readme-tab-attention {
  animation: readmeTabPulse 1.2s ease-in-out infinite;
}

@keyframes readmeTabPulse {
  0%, 100% {
    box-shadow: 0 0 3px rgba(255, 204, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.95);
  }
}



/* =========================================================
   Windows 98 / ME Context Menu (Right Click)
   ========================================================= */
.context-menu {
  position: absolute;
  z-index: 999999;
  min-width: 155px;
  background: #c0c0c0;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  padding: 2px;
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  font-size: 11px;
  user-select: none;
  border-radius: 0;
}

.context-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  color: #000000;
  cursor: pointer;
  white-space: nowrap;
}

.context-menu-item:hover,
.context-menu-item.active {
  background: var(--accent-highlight, #000080);
  color: #ffffff;
}

.context-menu-item:hover .context-item-arrow,
.context-menu-item:hover .context-item-shortcut,
.context-menu-item:hover .context-item-label,
.context-menu-item:hover .context-item-icon {
  color: #ffffff;
}

.context-item-icon {
  width: 18px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

.context-item-label {
  flex: 1;
}

.context-menu-separator {
  height: 1px;
  margin: 3px 2px;
  background: #808080;
  border-bottom: 1px solid #ffffff;
}

/* =========================================================
   Hidden File Icon (Translucent Vintage Look)
   ========================================================= */
.desktop-icon.hidden-file {
  opacity: 0.55;
  filter: contrast(0.9);
  transition: opacity 0.15s ease-in-out;
}

.desktop-icon.hidden-file:hover,
.desktop-icon.hidden-file.selected {
  opacity: 0.85;
}

/* =========================================================
   moudy.jpeg Image Preview Window
   ========================================================= */
#moudy-window {
  width: 380px;
  max-width: 90vw;
  height: 380px;
  max-height: 80vh;
  top: calc(50% - 190px);
  left: calc(50% - 190px);
}

.moudy-window-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px;
  background: #c0c0c0;
  overflow: hidden;
}

.moudy-img-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111215;
  box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
  overflow: hidden;
  padding: 4px;
}

.moudy-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.moudy-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  text-align: center;
  user-select: none;
}

/* =========================================================
   mod.exe Desktop Icon (Bottom-Right Hidden App)
   ========================================================= */
#admin-cmd-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
}

/* =========================================================
   Command Prompt Moderator Console (mod.exe)
   ========================================================= */
#admin-cmd-window {
  width: 640px;
  max-width: 95vw;
  height: 420px;
  max-height: 85vh;
  top: calc(50% - 210px);
  left: calc(50% - 320px);
  min-width: 320px;
  min-height: 240px;
}

.cmd-window-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000000;
  padding: 4px;
  overflow: hidden;
}

.cmd-terminal-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000000;
  color: #cccccc;
  font-family: 'Lucida Console', 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.35;
  padding: 6px 8px;
  overflow: hidden;
  user-select: text;
}

.cmd-output-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  padding-right: 4px;
}

.cmd-output-area::-webkit-scrollbar {
  width: 12px;
}

.cmd-output-area::-webkit-scrollbar-track {
  background: #111111;
}

.cmd-output-area::-webkit-scrollbar-thumb {
  background: #444444;
  border: 1px solid #222222;
}

.cmd-prompt-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dotted #333333;
}

.cmd-prompt-label {
  color: #00ff66;
  font-family: 'Lucida Console', 'Courier New', Courier, monospace;
  font-weight: bold;
  white-space: nowrap;
  user-select: none;
}

.cmd-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: 'Lucida Console', 'Courier New', Courier, monospace !important;
  font-size: 12px !important;
  caret-color: #00ff66;
  padding: 0 !important;
  margin: 0 !important;
}

.cmd-input::-webkit-credentials-auto-fill-button,
.cmd-input::-webkit-contacts-auto-fill-button {
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
  position: absolute !important;
  right: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
}


.cmd-text-green { color: #00ff66; }
.cmd-text-gold { color: #ffcc00; }
.cmd-text-red { color: #ff5555; }
.cmd-text-cyan { color: #00e5ff; }
.cmd-text-dim { color: #888888; }
.cmd-text-bright { color: #ffffff; font-weight: bold; }

.cmd-action-link {
  cursor: pointer;
  display: inline-block;
  padding: 0 4px;
  margin: 1px 2px;
  background: #1e293b;
  border: 1px solid #475569;
  color: #38bdf8;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
}

.cmd-action-link:hover {
  background: #334155;
  border-color: #38bdf8;
  color: #ffffff;
}

.cmd-action-link.cmd-approve:hover {
  border-color: #00ff66;
  color: #00ff66;
}

.cmd-action-link.cmd-reject:hover {
  border-color: #ff5555;
  color: #ff5555;
}

.cmd-action-link.cmd-delete:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* ==================== Responsive Mobile Displays (Fit CRT Screen Perfectly) ==================== */
@media (max-width: 768px) {
  #crt-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    touch-action: none;
  }

  #crt-monitor {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-width: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Hide external vents and monitor footer to dedicate entire phone viewport to CRT screen */
  .crt-top-vents {
    display: none !important;
  }

  .crt-monitor-footer {
    display: none !important;
  }

  /* CRT Screen fills entire mobile display edge-to-edge with scanlines */
  .crt-screen {
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .crt-overlay {
    border-radius: 0 !important;
  }

  #boot-screen {
    padding: 10px 12px !important;
    font-size: 11px !important;
  }

  #desktop {
    width: 100% !important;
    height: calc(100% - 30px) !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    touch-action: none;
  }

  .desktop-icons-container {
    gap: 8px !important;
  }

  .desktop-icon {
    width: 66px !important;
    padding: 2px !important;
  }

  .desktop-icon svg,
  .desktop-icon img {
    width: 32px !important;
    height: 32px !important;
  }

  .desktop-icon span {
    font-size: 10px !important;
  }

  /* Window geometry: fits mobile desktop comfortably with no overflow */
  .window {
    width: 96% !important;
    left: 2% !important;
    right: auto !important;
    max-height: calc(100% - 12px) !important;
    box-sizing: border-box !important;
  }

  #guestbook-window,
  #player-window,
  #ie-window,
  #settings-window,
  #notepad-window,
  #moudy-window,
  #admin-cmd-window {
    width: 96% !important;
    left: 2% !important;
    right: auto !important;
    top: 6px !important;
    max-height: calc(100% - 12px) !important;
  }

  #guestbook-window {
    height: calc(100% - 12px) !important;
  }

  /* Smooth internal scrolling for content areas only */
  .guestbook-entries-box {
    min-height: 110px !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .notepad-textarea,
  #cmd-output,
  .mplayer-display {
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Mobile Taskbar: compact elements */
  .taskbar-blinkies {
    width: 85px !important;
  }

  .taskbar-item {
    min-width: 55px !important;
    max-width: 90px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
  }

  .taskbar-item svg,
  .taskbar-item img {
    width: 14px !important;
    height: 14px !important;
  }
}