/* ==========================================================================
   PHOSPHOR LOUNGE // 1996 RETRO WORKSTATION OS
   4 Authentic 90s Eras: SGI Midnight, Win95 Teal, Memphis 93, Amber CRT
   ========================================================================== */

:root {
  --font-pixel: 'Silkscreen', 'Press Start 2P', monospace;
  --font-display: 'Press Start 2P', monospace;
  --font-crt: 'VT323', monospace;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --taskbar-h: 42px;
  --radius: 2px;
  --shadow-win: 6px 6px 0 rgba(0, 0, 0, 0.55);
}

/* --- ERA 1: SGI MIDNIGHT 96 (Default) --- */
body[data-theme="sgi"] {
  --bg-desktop: radial-gradient(circle at 20% 20%, #1d264f 0%, #0d1226 55%, #070a14 100%);
  --bg-pattern: none;
  --win-bg: #141a30;
  --win-panel: #0d1222;
  --win-surface: #1b2340;
  --win-border-light: #475b96;
  --win-border-dark: #070914;
  --title-active-bg: linear-gradient(90deg, #1b3b6f 0%, #5e2b7a 60%, #9e2a6b 100%);
  --title-inactive-bg: linear-gradient(90deg, #1d243b 0%, #272f4d 100%);
  --title-text: #ffffff;
  --text-main: #e4f4ff;
  --text-muted: #8ea7c7;
  --accent-1: #00f5d4;
  --accent-2: #ff2a85;
  --accent-3: #ffbe0b;
  --accent-4: #39ff88;
  --btn-bg: #222d52;
  --btn-hover: #2d3c6e;
  --btn-text: #e8f7ff;
  --taskbar-bg: #11172b;
  --icon-text: #eef9ff;
  --icon-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* --- ERA 2: WIN95 CLASSIC TEAL --- */
body[data-theme="win95"] {
  --bg-desktop: #008080;
  --bg-pattern: none;
  --win-bg: #c0c0c0;
  --win-panel: #dfdfdf;
  --win-surface: #ffffff;
  --win-border-light: #ffffff;
  --win-border-dark: #404040;
  --title-active-bg: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  --title-inactive-bg: linear-gradient(90deg, #808080 0%, #a8a8a8 100%);
  --title-text: #ffffff;
  --text-main: #111111;
  --text-muted: #4a4a4a;
  --accent-1: #000080;
  --accent-2: #c80064;
  --accent-3: #b86b00;
  --accent-4: #007a3d;
  --btn-bg: #c0c0c0;
  --btn-hover: #d4d4d4;
  --btn-text: #000000;
  --taskbar-bg: #c0c0c0;
  --icon-text: #ffffff;
  --icon-shadow: 1px 1px 0 #000000;
  --shadow-win: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

/* --- ERA 3: MEMPHIS 93 --- */
body[data-theme="memphis"] {
  --bg-desktop: #20b2aa;
  --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Crect width='120' height='120' fill='%231fb5ad'/%3E%3Cpath d='M10 25 Q18 12 26 25 T42 25' stroke='%23ffe135' stroke-width='4' fill='none'/%3E%3Cpolygon points='85,18 102,42 70,40' fill='%23ff4d94' stroke='%23111' stroke-width='2.5'/%3E%3Ccircle cx='30' cy='85' r='10' fill='none' stroke='%23ffffff' stroke-width='3.5'/%3E%3Ccircle cx='92' cy='92' r='4' fill='%23111'/%3E%3Ccircle cx='104' cy='84' r='3' fill='%23ffe135'/%3E%3Cpath d='M62 72 L74 60 L82 72 L94 60' stroke='%23111' stroke-width='3' fill='none'/%3E%3Crect x='14' y='52' width='10' height='10' transform='rotate(25 19 57)' fill='%237b5cff' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E");
  --win-bg: #fff8e7;
  --win-panel: #f6ead4;
  --win-surface: #ffffff;
  --win-border-light: #111111;
  --win-border-dark: #111111;
  --title-active-bg: linear-gradient(90deg, #ff4d94 0%, #7b5cff 65%, #ffe135 100%);
  --title-inactive-bg: #c9c3d8;
  --title-text: #111111;
  --text-main: #141414;
  --text-muted: #524b5e;
  --accent-1: #7b5cff;
  --accent-2: #ff3c8a;
  --accent-3: #e09600;
  --accent-4: #009c7a;
  --btn-bg: #ffe135;
  --btn-hover: #ffeb70;
  --btn-text: #111111;
  --taskbar-bg: #ffe135;
  --icon-text: #111111;
  --icon-shadow: 2px 2px 0 #ffe135;
  --shadow-win: 6px 6px 0 #111111;
}

/* --- ERA 4: AMBER CRT 1990 --- */
body[data-theme="amber"] {
  --bg-desktop: radial-gradient(circle at 50% 40%, #1c1100 0%, #0d0700 70%, #050300 100%);
  --bg-pattern: none;
  --win-bg: #140c00;
  --win-panel: #0c0700;
  --win-surface: #1b1000;
  --win-border-light: #ffb000;
  --win-border-dark: #4a2c00;
  --title-active-bg: linear-gradient(90deg, #ffb000 0%, #b86400 100%);
  --title-inactive-bg: #2e1b00;
  --title-text: #0b0600;
  --text-main: #ffc44d;
  --text-muted: #b07418;
  --accent-1: #ffb000;
  --accent-2: #ff7700;
  --accent-3: #ffe08a;
  --accent-4: #ffaa00;
  --btn-bg: #261600;
  --btn-hover: #3d2400;
  --btn-text: #ffcb5c;
  --taskbar-bg: #120a00;
  --icon-text: #ffc44d;
  --icon-shadow: 0 0 8px rgba(255, 176, 0, 0.7);
  --shadow-win: 0 0 18px rgba(255, 176, 0, 0.2), 4px 4px 0 #000;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  background: var(--bg-desktop);
  background-image: var(--bg-pattern), var(--bg-desktop);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* --- DEGAUSS ANIMATION --- */
body.degaussing {
  animation: crt-degauss 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes crt-degauss {
  0% { filter: hue-rotate(0deg) saturate(1); transform: scale(1) skewX(0deg); }
  12% { filter: hue-rotate(95deg) saturate(2.8) contrast(1.4); transform: scale(1.04, 0.95) skewX(3deg); }
  28% { filter: hue-rotate(-70deg) saturate(2.2); transform: scale(0.97, 1.03) skewX(-2.5deg); }
  48% { filter: hue-rotate(40deg) saturate(1.5); transform: scale(1.015, 0.99) skewX(1.2deg); }
  72% { filter: hue-rotate(-15deg) saturate(1.2); transform: scale(0.995, 1.005) skewX(-0.5deg); }
  100% { filter: hue-rotate(0deg) saturate(1); transform: scale(1) skewX(0deg); }
}

/* --- CRT SCANLINES OVERLAY --- */
#crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.16) 0px,
      rgba(0, 0, 0, 0.16) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.42) 100%);
}

body[data-crt="on"] #crt-overlay {
  opacity: 1;
}

/* --- LIVE WALLPAPER CANVAS --- */
#wallpaper-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: calc(100% - var(--taskbar-h));
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}

body[data-theme="memphis"] #wallpaper-canvas {
  opacity: 0.35;
}

/* --- FULLSCREEN SCREENSAVER --- */
#screensaver-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #000;
  cursor: pointer;
}

#screensaver-fs-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.fs-hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 245, 212, 0.5);
  padding: 6px 14px;
  pointer-events: none;
}

/* ==========================================================================
   BIOS / CRT BOOT GATE
   ========================================================================== */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: radial-gradient(circle at 50% 45%, #161d38 0%, #070a14 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#boot-screen.boot-fade-out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.boot-monitor {
  width: min(720px, 96vw);
  background: #1c2235;
  border: 3px solid #3f4d78;
  box-shadow:
    inset 2px 2px 0 #5b6ea3,
    inset -2px -2px 0 #0b0e1a,
    0 24px 70px rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  padding: 14px 16px;
}

.boot-bezel-top, .boot-bezel-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #8ea7c7;
  padding: 2px 4px 10px;
}

.boot-bezel-bottom {
  padding: 10px 4px 2px;
  font-size: 9px;
}

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

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.led-green {
  background: #39ff88;
  box-shadow: 0 0 8px #39ff88;
  animation: pulse-led 1.8s infinite ease-in-out;
}

@keyframes pulse-led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.boot-glass {
  background: #070b14;
  border: 3px solid #04060c;
  box-shadow: inset 0 0 40px rgba(0, 245, 212, 0.08);
  padding: 24px 22px;
  border-radius: 4px;
}

.boot-header-art {
  text-align: center;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(0, 245, 212, 0.35);
  padding-bottom: 14px;
}

.boot-logo {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.8vw, 30px);
  letter-spacing: 2px;
  background: linear-gradient(90deg, #00f5d4, #ffbe0b, #ff2a85, #00f5d4);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-shift 5s linear infinite;
  margin-bottom: 8px;
}

@keyframes rainbow-shift {
  to { background-position: 220% center; }
}

.boot-sub {
  font-family: var(--font-crt);
  font-size: 21px;
  color: #ffbe0b;
  letter-spacing: 1.5px;
}

.boot-log {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: #cbe7ff;
  margin-bottom: 20px;
}

.boot-log .ok {
  color: #39ff88;
  font-weight: 700;
}

.boot-ready-line {
  margin-top: 10px;
  color: #00f5d4;
  font-weight: 700;
}

.boot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.boot-era-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.boot-era-label {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #8ea7c7;
}

.era-chip {
  font-family: var(--font-pixel);
  font-size: 10px;
  background: #131a2e;
  color: #a8c4e0;
  border: 1px solid #354773;
  padding: 5px 9px;
  cursor: pointer;
}

.era-chip.active, .era-chip:hover {
  background: #00f5d4;
  color: #070b14;
  border-color: #00f5d4;
}

/* ==========================================================================
   RETRO BUTTONS & CONTROLS
   ========================================================================== */
.retro-btn {
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 8px 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-top: 2px solid var(--win-border-light);
  border-left: 2px solid var(--win-border-light);
  border-right: 2px solid var(--win-border-dark);
  border-bottom: 2px solid var(--win-border-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.1s ease;
}

.retro-btn:hover {
  background: var(--btn-hover);
}

.retro-btn:active, .retro-btn.active {
  border-top: 2px solid var(--win-border-dark);
  border-left: 2px solid var(--win-border-dark);
  border-right: 2px solid var(--win-border-light);
  border-bottom: 2px solid var(--win-border-light);
  transform: translate(1px, 1px);
}

.retro-btn-primary {
  background: #00f5d4;
  color: #070b14;
  border-top-color: #9effef;
  border-left-color: #9effef;
  border-right-color: #007a68;
  border-bottom-color: #007a68;
  font-weight: 700;
}

.retro-btn-primary:hover {
  background: #42ffe6;
}

.retro-btn-danger {
  background: #ff2a85;
  color: #ffffff;
  border-top-color: #ff8cbe;
  border-left-color: #ff8cbe;
  border-right-color: #8c0c43;
  border-bottom-color: #8c0c43;
}

.retro-btn-danger:hover {
  background: #ff4c99;
}

.retro-btn-sm {
  font-size: 10px;
  padding: 4px 8px;
}

/* ==========================================================================
   DESKTOP & ICON GRID
   ========================================================================== */
.desktop {
  position: relative;
  width: 100%;
  height: calc(100% - var(--taskbar-h));
  z-index: 1;
  overflow: hidden;
}

.desktop-icons {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: calc(100% - 28px);
  gap: 10px;
  z-index: 2;
}

.desktop-icon {
  width: 114px;
  background: transparent;
  border: 1px dashed transparent;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--icon-text);
  border-radius: 3px;
  transition: transform 0.1s ease, background 0.12s ease;
}

.desktop-icon:hover {
  background: rgba(0, 245, 212, 0.16);
  border-color: rgba(0, 245, 212, 0.65);
  transform: translateY(-2px);
}

.desktop-icon:active {
  transform: translateY(0px) scale(0.96);
}

body[data-theme="memphis"] .desktop-icon:hover {
  background: rgba(255, 225, 53, 0.65);
  border-color: #111;
}

.icon-art {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
}

.icon-art svg {
  width: 42px;
  height: 42px;
}

.icon-label {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  text-shadow: var(--icon-shadow);
  overflow-wrap: normal;
  word-break: normal;
}

/* ==========================================================================
   WINDOW MANAGER
   ========================================================================== */
.windows-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.os-window {
  position: absolute;
  pointer-events: auto;
  background: var(--win-bg);
  border-top: 2px solid var(--win-border-light);
  border-left: 2px solid var(--win-border-light);
  border-right: 2px solid var(--win-border-dark);
  border-bottom: 2px solid var(--win-border-dark);
  box-shadow: var(--shadow-win);
  display: flex;
  flex-direction: column;
  min-width: 300px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - var(--taskbar-h) - 14px);
  border-radius: var(--radius);
  animation: win-pop 0.16s ease-out;
}

@keyframes win-pop {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.os-window.maximized {
  top: 6px !important;
  left: 6px !important;
  width: calc(100vw - 12px) !important;
  height: calc(100vh - var(--taskbar-h) - 12px) !important;
}

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

.win-titlebar {
  background: var(--title-inactive-bg);
  color: var(--title-text);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: grab;
  flex-shrink: 0;
  border-bottom: 2px solid var(--win-border-dark);
}

.os-window.focused .win-titlebar {
  background: var(--title-active-bg);
}

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

.win-title-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.win-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.win-ctrl-btn {
  width: 22px;
  height: 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-top: 2px solid var(--win-border-light);
  border-left: 2px solid var(--win-border-light);
  border-right: 2px solid var(--win-border-dark);
  border-bottom: 2px solid var(--win-border-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.win-ctrl-btn:hover {
  background: var(--btn-hover);
}

.win-ctrl-btn.close-btn:hover {
  background: #ff2a85;
  color: #fff;
}

.win-body {
  flex: 1;
  overflow: auto;
  padding: 10px;
  background: var(--win-panel);
  user-select: text;
}

.win-statusbar {
  background: var(--win-bg);
  border-top: 1px solid var(--win-border-dark);
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   TASKBAR & START MENU
   ========================================================================== */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  background: var(--taskbar-bg);
  border-top: 2px solid var(--win-border-light);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 6px;
  z-index: 5000;
}

.start-btn {
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-top: 2px solid var(--win-border-light);
  border-left: 2px solid var(--win-border-light);
  border-right: 2px solid var(--win-border-dark);
  border-bottom: 2px solid var(--win-border-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.start-btn.open, .start-btn:active {
  border-top-color: var(--win-border-dark);
  border-left-color: var(--win-border-dark);
  border-right-color: var(--win-border-light);
  border-bottom-color: var(--win-border-light);
}

.start-orb {
  color: var(--accent-1);
  font-size: 14px;
}

.taskbar-windows {
  flex: 1;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 2px 0;
}

.task-tab {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 5px 10px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-top: 2px solid var(--win-border-light);
  border-left: 2px solid var(--win-border-light);
  border-right: 2px solid var(--win-border-dark);
  border-bottom: 2px solid var(--win-border-dark);
  cursor: pointer;
  white-space: nowrap;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-tab.active {
  background: var(--win-surface);
  border-top-color: var(--win-border-dark);
  border-left-color: var(--win-border-dark);
  border-right-color: var(--win-border-light);
  border-bottom-color: var(--win-border-light);
  color: var(--accent-1);
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tray-btn {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 5px 7px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--win-border-light);
  cursor: pointer;
}

.tray-btn.active {
  color: var(--accent-1);
  border-color: var(--accent-1);
}

.tray-arcade-link {
  text-decoration: none;
  background: #ffbe0b;
  color: #120900;
  border-color: #fff2b2;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 190, 11, 0.35);
}

.tray-arcade-link:hover {
  background: #ffd34d;
  color: #090600;
}

.desktop-portal-link {
  text-decoration: none;
}

.start-item-portal {
  display: block;
  text-decoration: none;
  color: #ffbe0b;
  font-weight: 700;
}

body[data-theme="win95"] .start-item-portal,
body[data-theme="memphis"] .start-item-portal {
  color: #b45309;
}

.tray-clock {
  font-family: var(--font-crt);
  font-size: 20px;
  padding: 2px 8px;
  background: var(--win-panel);
  border-top: 2px solid var(--win-border-dark);
  border-left: 2px solid var(--win-border-dark);
  border-right: 2px solid var(--win-border-light);
  border-bottom: 2px solid var(--win-border-light);
  color: var(--accent-3);
  min-width: 74px;
  text-align: center;
}

body[data-theme="win95"] .tray-clock,
body[data-theme="memphis"] .tray-clock {
  color: #111111;
  background: #ffffff;
}

body[data-theme="memphis"] .tray-btn.active {
  background: #7b5cff;
  color: #ffffff;
  border-color: #111111;
}

/* --- START MENU --- */
.start-menu {
  position: fixed;
  left: 6px;
  bottom: calc(var(--taskbar-h) + 4px);
  width: 280px;
  background: var(--win-bg);
  border-top: 2px solid var(--win-border-light);
  border-left: 2px solid var(--win-border-light);
  border-right: 2px solid var(--win-border-dark);
  border-bottom: 2px solid var(--win-border-dark);
  box-shadow: var(--shadow-win);
  display: flex;
  z-index: 6000;
}

.start-sidebar {
  width: 30px;
  background: var(--title-active-bg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.start-sidebar-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--title-text);
  letter-spacing: 2px;
}

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

.start-section-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-muted);
  padding: 4px 6px 2px;
}

.start-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 8px;
  cursor: pointer;
  border-radius: 2px;
}

.start-item:hover {
  background: var(--accent-1);
  color: #070b14;
  font-weight: 700;
}

.start-divider {
  height: 1px;
  background: var(--win-border-dark);
  margin: 5px 4px;
}

/* ==========================================================================
   PIXI: CRT BUDDY
   ========================================================================== */
.crt-buddy {
  position: fixed;
  right: 16px;
  bottom: calc(var(--taskbar-h) + 14px);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.buddy-bubble {
  pointer-events: auto;
  max-width: 245px;
  background: var(--win-bg);
  color: var(--text-main);
  border: 2px solid var(--accent-1);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  padding: 9px 26px 9px 11px;
  font-size: 12px;
  line-height: 1.45;
  position: relative;
  border-radius: 4px;
}

.buddy-x {
  position: absolute;
  top: 3px;
  right: 5px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}

.buddy-avatar {
  pointer-events: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px;
  transition: transform 0.15s ease;
  animation: buddy-float 3.4s ease-in-out infinite;
}

.buddy-avatar:hover {
  transform: scale(1.08);
}

@keyframes buddy-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.buddy-shell { fill: #2a3454; stroke: var(--accent-1); stroke-width: 2; }
.buddy-screen { fill: #070d1a; }
.buddy-eye { fill: var(--accent-1); }
.buddy-mouth { stroke: var(--accent-3); }
.buddy-stand { fill: #4a5a85; }
.buddy-antenna { stroke: var(--accent-2); }
.buddy-tip { fill: var(--accent-3); }

body[data-theme="amber"] .buddy-shell { fill: #261600; stroke: #ffb000; }
body[data-theme="amber"] .buddy-eye { fill: #ffb000; }

.buddy-name {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--icon-text);
  text-shadow: var(--icon-shadow);
}

/* ==========================================================================
   APP 1: GROOVEBOX.EXE
   ========================================================================== */
.gb-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gb-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  background: var(--win-surface);
  border: 1px solid var(--win-border-dark);
  padding: 8px;
}

.gb-controls-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.gb-scope-wrap {
  position: relative;
  background: #050912;
  border: 2px solid var(--win-border-dark);
  height: 76px;
  overflow: hidden;
}

.gb-scope-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gb-scope-label {
  position: absolute;
  top: 4px;
  left: 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #00f5d4;
  opacity: 0.85;
  pointer-events: none;
}

.gb-sliders {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 6px 8px;
  background: var(--win-surface);
  border: 1px solid var(--win-border-dark);
  font-size: 11px;
}

.gb-slider-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gb-slider-item input[type="range"] {
  width: 90px;
  accent-color: var(--accent-1);
}

.gb-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gb-row {
  display: grid;
  grid-template-columns: 98px repeat(16, minmax(22px, 1fr));
  gap: 3px;
  align-items: center;
}

.gb-track-name {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-main);
  padding-right: 4px;
  white-space: nowrap;
}

.gb-pad {
  height: 28px;
  border: 1px solid rgba(128, 128, 128, 0.35);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  border-radius: 2px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: transparent;
  padding: 0;
  transition: transform 0.06s ease, box-shadow 0.08s ease;
}

body[data-theme="win95"] .gb-pad,
body[data-theme="memphis"] .gb-pad {
  background: #d8d8d8;
}

.gb-pad.beat-marker {
  border-left: 2px solid var(--accent-3);
}

.gb-pad.on[data-track="0"] { background: #ff2a85; color: #fff; box-shadow: 0 0 8px rgba(255, 42, 133, 0.65); }
.gb-pad.on[data-track="1"] { background: #ffbe0b; color: #111; box-shadow: 0 0 8px rgba(255, 190, 11, 0.65); }
.gb-pad.on[data-track="2"] { background: #39ff88; color: #111; box-shadow: 0 0 8px rgba(57, 255, 136, 0.65); }
.gb-pad.on[data-track="3"] { background: #00f5d4; color: #07101c; box-shadow: 0 0 8px rgba(0, 245, 212, 0.65); }
.gb-pad.on[data-track="4"] { background: #9b5de5; color: #fff; box-shadow: 0 0 8px rgba(155, 93, 229, 0.65); }

.gb-pad.playing {
  outline: 2px solid #ffffff;
  transform: scale(1.08);
  z-index: 2;
}

.gb-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ==========================================================================
   APP 2: PHOSPHOR PAINT
   ========================================================================== */
.paint-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paint-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  background: var(--win-surface);
  border: 1px solid var(--win-border-dark);
  padding: 6px;
}

.paint-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.swatch {
  width: 22px;
  height: 22px;
  border: 2px solid #000;
  cursor: pointer;
  padding: 0;
}

.swatch.active {
  outline: 2px solid var(--accent-1);
  transform: scale(1.14);
}

.paint-canvas-frame {
  background: #060912;
  border: 2px inset var(--win-border-dark);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

#paint-canvas {
  display: block;
  cursor: crosshair;
  touch-action: none;
  max-width: 100%;
  height: auto;
}

.paint-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 4px 6px;
  background: var(--win-surface);
  border: 1px solid var(--win-border-dark);
}

.stamp-btn {
  font-size: 15px;
  padding: 3px 7px;
  background: var(--btn-bg);
  border: 1px solid var(--win-border-light);
  cursor: pointer;
}

.stamp-btn.active {
  background: var(--accent-1);
  border-color: var(--accent-1);
}

/* ==========================================================================
   APP 3: AFTER DARK SCREENSAVER STUDIO
   ========================================================================== */
.ad-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ad-preview-box {
  position: relative;
  background: #000;
  border: 2px solid var(--win-border-dark);
  height: 240px;
  overflow: hidden;
}

#afterdark-preview {
  width: 100%;
  height: 100%;
  display: block;
}

.ad-badge {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffbe0b;
  padding: 3px 7px;
  border: 1px solid rgba(255, 190, 11, 0.5);
}

.ad-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  background: var(--win-surface);
  padding: 8px;
  border: 1px solid var(--win-border-dark);
}

/* ==========================================================================
   APP 4: NEON BREAKER ARCADE
   ========================================================================== */
.arcade-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.arcade-hud {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #070b14;
  color: #00f5d4;
  border: 2px solid var(--win-border-dark);
  padding: 6px 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
}

#arcade-canvas {
  background: #050812;
  border: 2px solid var(--accent-1);
  display: block;
  max-width: 100%;
  height: auto;
  touch-action: none;
  cursor: none;
}

.arcade-controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   APP 5: SURFER 96 BROWSER
   ========================================================================== */
.surfer-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
}

.surfer-chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  background: var(--win-surface);
  padding: 6px;
  border: 1px solid var(--win-border-dark);
}

.surfer-url {
  flex: 1;
  min-width: 160px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 8px;
  background: #090e1c;
  color: #00f5d4;
  border: 2px inset var(--win-border-dark);
}

body[data-theme="win95"] .surfer-url,
body[data-theme="memphis"] .surfer-url {
  background: #ffffff;
  color: #000080;
}

.surfer-throbber {
  width: 28px;
  height: 28px;
  background: #0b1429;
  border: 1px solid var(--accent-1);
  color: var(--accent-1);
  font-family: var(--font-display);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surfer-throbber.spinning {
  animation: spin-throb 0.45s linear infinite;
  color: #ffbe0b;
}

@keyframes spin-throb {
  to { transform: rotate(360deg); }
}

.surfer-bookmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.surfer-viewport {
  flex: 1;
  min-height: 330px;
  max-height: 410px;
  overflow-y: auto;
  border: 2px inset var(--win-border-dark);
  background: #0a1022;
  color: #e4f4ff;
  padding: 14px;
  line-height: 1.55;
}

.retro-marquee {
  background: #14092a;
  border: 1px solid #ff2a85;
  color: #ffbe0b;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 5px 8px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 12px;
}

.retro-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 16s linear infinite;
}

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

.s96-link {
  color: #00f5d4;
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.s96-link:hover {
  color: #ffbe0b;
}

.s96-counter {
  display: inline-block;
  background: #000;
  color: #39ff88;
  font-family: var(--font-crt);
  font-size: 22px;
  letter-spacing: 3px;
  padding: 2px 10px;
  border: 2px inset #555;
}

.s96-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.s96-badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 4px 8px;
  border: 2px outset #888;
  background: #1c2848;
  color: #ffbe0b;
}

.s96-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 245, 212, 0.35);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.gb-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  background: rgba(0, 245, 212, 0.06);
  border: 1px solid #00f5d4;
  padding: 10px;
}

.gb-form input, .gb-form textarea {
  background: #050912;
  color: #e4f4ff;
  border: 1px solid #48638a;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 8px;
}

/* ==========================================================================
   APP 6: LOUNGE.TTY TERMINAL
   ========================================================================== */
.term-wrap {
  background: #050a09;
  color: #39ff88;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px;
  min-height: 310px;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  border: 2px inset #1d3a2c;
}

body[data-theme="amber"] .term-wrap {
  background: #090500;
  color: #ffb000;
  border-color: #663d00;
}

.term-output {
  flex: 1;
  overflow-y: auto;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed rgba(57, 255, 136, 0.35);
  padding-top: 7px;
}

.term-prompt {
  color: #00f5d4;
  font-weight: 700;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ==========================================================================
   RESPONSIVE MOBILE / SMALL SCREENS
   ========================================================================== */
@media (max-width: 720px) {
  .desktop-icons {
    flex-direction: row;
    top: 10px;
    left: 10px;
    right: 10px;
    justify-content: flex-start;
  }

  .desktop-icon {
    width: 76px;
  }

  .os-window {
    left: 6px !important;
    top: 6px !important;
    width: calc(100vw - 12px) !important;
    max-height: calc(100vh - var(--taskbar-h) - 12px);
  }

  .crt-buddy {
    display: none;
  }

  .tray-btn {
    font-size: 8px;
    padding: 4px 5px;
  }
}


/* ==========================================================================
   APP 7: CHILLAMP 96 (WINAMP 2.x HOMAGE DECK)
   ========================================================================== */
.ca-deck {
  background: linear-gradient(180deg, #2b3040 0%, #1b1f2b 100%);
  border: 2px solid #090c14;
  box-shadow: inset 1px 1px 0 #4f5975;
  padding: 10px;
  color: #dceeff;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ca-display {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: #050a08;
  border: 2px inset #121824;
  padding: 8px;
}

.ca-time-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 96px;
}

.ca-time {
  font-family: var(--font-crt);
  font-size: 32px;
  line-height: 1;
  color: #39ff88;
  text-shadow: 0 0 8px rgba(57, 255, 136, 0.55);
}

.ca-kbps {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #00f5d4;
}

.ca-right-lcd {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  gap: 6px;
}

.ca-marquee {
  background: #020605;
  border: 1px solid #183d2c;
  color: #39ff88;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
}

.ca-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 14s linear infinite;
}

#ca-eq {
  width: 100%;
  height: 44px;
  display: block;
  background: #020605;
  border: 1px solid #183d2c;
}

.ca-transport {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.ca-playlist {
  background: #090d16;
  border: 2px inset #121824;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ca-track {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #84d6a8;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.ca-track:hover {
  background: rgba(0, 245, 212, 0.14);
}

.ca-track.active {
  background: #0e4a52;
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   APP 8: PIXEL PET (1996 LCD KEYCHAIN)
   ========================================================================== */
.pet-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pet-shell {
  width: 100%;
  max-width: 310px;
  background: radial-gradient(circle at 30% 20%, #b57bff 0%, #6f32c9 65%, #461c8a 100%);
  border: 3px solid #230d47;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.35),
    inset -3px -3px 0 rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.45);
  border-radius: 36px 36px 46px 46px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pet-header-logo {
  font-family: var(--font-display);
  font-size: 9px;
  color: #ffe135;
  text-shadow: 1px 1px 0 #1b0736;
  letter-spacing: 1px;
}

.pet-bezel {
  background: #1b2416;
  padding: 8px;
  border-radius: 10px;
  border: 2px inset #10160d;
  width: 100%;
}

#pet-lcd {
  width: 100%;
  height: auto;
  display: block;
  background: #9bbc0f;
  image-rendering: pixelated;
  border: 2px solid #0f380f;
}

.pet-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #ffffff;
}

.pet-stat-box {
  background: rgba(15, 7, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 5px;
  border-radius: 4px;
  text-align: center;
}

.pet-bar {
  height: 6px;
  background: #190d30;
  margin-top: 3px;
  border-radius: 2px;
  overflow: hidden;
}

.pet-bar-fill {
  height: 100%;
  background: #39ff88;
  transition: width 0.25s ease;
}

.pet-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pet-key-btn {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffe135;
  color: #16092e;
  border: 2px solid #16092e;
  box-shadow: 0 3px 0 #16092e;
  cursor: pointer;
}

.pet-key-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #16092e;
}

.pet-mood {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #f4ebff;
  text-align: center;
  min-height: 16px;
}

/* --- DOPPLER 96 LOCAL ON THE 8s TICKER --- */
.doppler-ticker {
  background: #0a1f66;
  border: 2px solid #ffe135;
  color: #ffe135;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 5px 8px;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 10px;
}

.doppler-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 18s linear infinite;
}


/* --- CHILLAMP 96 v1.3: AMBIENCE MIXER & STUDY TIMER --- */
.ca-mixer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  background: #121622;
  border: 1px solid #303a52;
  padding: 5px 7px;
}

.ca-amb-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.ca-amb-btn {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  padding: 4px 7px;
  background: #1b2234;
  color: #8ea7c7;
  border: 1px solid #364361;
  cursor: pointer;
}

.ca-amb-btn.active {
  background: #0e4a52;
  color: #39ff88;
  border-color: #39ff88;
  box-shadow: 0 0 6px rgba(57, 255, 136, 0.35);
}

.ca-playlist {
  max-height: 185px;
  overflow-y: auto;
}


/* --- NEON BREAKER v1.5: CLASSIC ARCADE INITIALS & TOP-10 LEADERBOARD --- */
.arcade-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.arcade-overlay {
  position: absolute;
  inset: 4px;
  background: rgba(5, 8, 20, 0.94);
  border: 2px solid #ffbe0b;
  box-shadow: inset 0 0 28px rgba(0, 245, 212, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  gap: 10px;
  z-index: 5;
  color: #e4f4ff;
}

.arc-ov-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: #ffbe0b;
  text-shadow: 0 0 10px rgba(255, 190, 11, 0.6);
  text-align: center;
}

.arc-ov-sub {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #00f5d4;
  text-align: center;
}

.arc-initials-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.arc-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.arc-arrow {
  width: 44px;
  height: 22px;
  background: #1b2442;
  color: #00f5d4;
  border: 1px solid #00f5d4;
  font-size: 11px;
  cursor: pointer;
}

.arc-arrow:hover {
  background: #00f5d4;
  color: #050814;
}

.arc-letter {
  width: 48px;
  height: 52px;
  background: #080f24;
  border: 2px solid #48638a;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.arc-letter.active {
  border-color: #ffbe0b;
  color: #ffbe0b;
  box-shadow: 0 0 14px rgba(255, 190, 11, 0.55);
  animation: arc-blink 0.9s infinite ease-in-out;
}

@keyframes arc-blink {
  0%, 100% { border-color: #ffbe0b; }
  50% { border-color: #ff2a85; }
}

.arc-board-table {
  width: 100%;
  max-width: 380px;
  border-collapse: collapse;
  font-family: var(--font-pixel);
  font-size: 10px;
}

.arc-board-table th {
  color: #8ea7c7;
  border-bottom: 1px dashed rgba(0, 245, 212, 0.45);
  padding: 4px 6px;
  text-align: left;
}

.arc-board-table td {
  padding: 4px 6px;
}

.arc-board-table tr.rank-1 { color: #ffbe0b; }
.arc-board-table tr.rank-2 { color: #00f5d4; }
.arc-board-table tr.rank-3 { color: #ff2a85; }
.arc-board-table tr.rank-new { background: rgba(57, 255, 136, 0.16); }


/* ==========================================================================
   APP 9: CHANGELOG.TXT (.NFO ASCII VIEWER)
   ========================================================================== */
.nfo-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nfo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  background: var(--win-surface);
  border: 1px solid var(--win-border-dark);
  padding: 6px;
}

.nfo-screen {
  margin: 0;
  padding: 12px 14px;
  max-height: 410px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.42;
  white-space: pre;
  border: 2px inset var(--win-border-dark);
  user-select: text;
}

.nfo-screen[data-nfo="ansi"] {
  background: #060b16;
  color: #00f5d4;
  text-shadow: 0 0 6px rgba(0, 245, 212, 0.35);
}

.nfo-screen[data-nfo="green"] {
  background: #040d07;
  color: #39ff88;
  text-shadow: 0 0 6px rgba(57, 255, 136, 0.4);
}

.nfo-screen[data-nfo="amber"] {
  background: #0c0700;
  color: #ffb000;
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.45);
}
