/* Kuro95 — Windows 95 recreation */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100vw; height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', 'MS Sans Serif', Tahoma, sans-serif;
  font-size: 12px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.k95-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 9000;
}

/* ── BIOS POST ─────────────────────────────────────────────────────── */
#k95-bios {
  background: #000;
  color: #AAAAAA;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 18px;
  align-items: flex-start; justify-content: flex-start;
  padding: 30px;
}
.k95-bios-text { line-height: 1.6; }
.k95-bios-text div { white-space: pre; }

/* ── Boot Logo ─────────────────────────────────────────────────────── */
#k95-bootlogo {
  background: #000;
  flex-direction: column;
}
.k95-boot-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 30px;
}
.k95-win-logo {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.k95-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 120px; height: 120px;
  transform: perspective(400px) rotateY(-8deg) rotateX(5deg);
}
.k95-logo-pane {
  border-radius: 2px;
  animation: k95-pane-wave 1.2s ease-in-out infinite alternate;
}
.k95-logo-pane:nth-child(2) { animation-delay: 0.15s; }
.k95-logo-pane:nth-child(3) { animation-delay: 0.3s; }
.k95-logo-pane:nth-child(4) { animation-delay: 0.45s; }
@keyframes k95-pane-wave {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.02); }
}
.k95-logo-text {
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  letter-spacing: -1px;
  text-shadow: 2px 2px 0 #333;
}
.k95-logo-95 {
  color: #FFAA00;
  font-style: italic;
}
.k95-boot-progress {
  width: 300px; height: 20px;
  background: #222;
  border: 2px inset #444;
  overflow: hidden;
}
.k95-boot-bar {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #0000AA 0px, #0000AA 14px,
    #000066 14px, #000066 16px
  );
  transition: width 0.3s;
}
.k95-boot-sub {
  color: #888;
  font-size: 14px;
}

/* ── Theme Variables ───────────────────────────────────────────────── */
:root {
  --k95-wallpaper: #008080;
  --k95-title-start: #000080;
  --k95-title-end: #1084D0;
  --k95-accent: #000080;
}

/* ── Desktop ───────────────────────────────────────────────────────── */
#k95-desktop {
  position: fixed; inset: 0;
  z-index: 1;
}
.k95-wallpaper {
  position: absolute; inset: 0;
  background: var(--k95-wallpaper);
}
.k95-desktop-icons {
  position: absolute;
  inset: 0;
  bottom: 30px;
  z-index: 2;
  pointer-events: none;
}
.k95-icon {
  position: absolute;
  pointer-events: auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  width: 70px; cursor: pointer;
  padding: 4px;
  border: 1px solid transparent;
}
.k95-icon.k95-icon-dragging {
  opacity: 0.8;
  cursor: grabbing;
  z-index: 5;
}
.k95-icon:hover { background: rgba(255,255,255,0.15); }
.k95-icon:active,
.k95-icon.k95-icon-selected {
  background: var(--k95-accent);
  border: 1px dotted #fff;
}
.k95-icon-img {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.3));
}
.k95-icon-label {
  color: #fff;
  font-size: 11px;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  word-wrap: break-word;
  max-width: 68px;
}
.k95-icon-selected .k95-icon-label {
  background: var(--k95-accent);
  color: #fff;
}

/* ── Window Manager ────────────────────────────────────────────────── */
.k95-window {
  position: absolute;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  box-shadow: 2px 2px 0 #000;
  display: flex; flex-direction: column;
  min-width: 200px;
  min-height: 100px;
  z-index: 10;
}
.k95-window.k95-active .k95-titlebar {
  background: linear-gradient(90deg, var(--k95-title-start), var(--k95-title-end));
}
.k95-titlebar {
  background: linear-gradient(90deg, #808080, #A0A0A0);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  cursor: grab;
  flex-shrink: 0;
}
.k95-titlebar-icon {
  margin-right: 4px;
  font-size: 14px;
}
.k95-titlebar-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.k95-titlebar-btns {
  display: flex; gap: 2px;
  margin-left: 4px;
}
.k95-tb-btn {
  width: 16px; height: 14px;
  background: #C0C0C0;
  border: 1px outset #DFDFDF;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  line-height: 1;
  padding: 0;
}
.k95-tb-btn:active {
  border-style: inset;
}
.k95-window-menubar {
  background: #C0C0C0;
  border-bottom: 1px solid #808080;
  padding: 1px 0;
  display: flex;
  flex-shrink: 0;
}
.k95-wm-item {
  padding: 1px 8px;
  cursor: pointer;
  font-size: 12px;
}
.k95-wm-item:hover {
  background: var(--k95-accent);
  color: #fff;
}
.k95-window-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #C0C0C0;
}
.k95-window-statusbar {
  background: #C0C0C0;
  border-top: 1px solid #808080;
  padding: 2px 4px;
  font-size: 11px;
  display: flex;
  flex-shrink: 0;
}
.k95-sb-section {
  border: 1px inset #DFDFDF;
  padding: 0 6px;
  flex: 1;
}
.k95-sb-section + .k95-sb-section {
  flex: none;
  width: 80px;
  text-align: center;
}

/* ── Taskbar ───────────────────────────────────────────────────────── */
.k95-taskbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: #C0C0C0;
  border-top: 2px outset #DFDFDF;
  display: flex;
  align-items: center;
  padding: 2px 2px;
  z-index: 5000;
}
.k95-start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  height: 24px;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.k95-start-btn:active,
.k95-start-btn.k95-pressed {
  border-style: inset;
}
.k95-start-logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 14px; height: 14px;
  gap: 1px;
}
.k95-sl-r { background: #FF0000; }
.k95-sl-g { background: #00AA00; }
.k95-sl-b { background: #0000FF; }
.k95-sl-y { background: #FFAA00; }
.k95-taskbar-divider {
  width: 2px; height: 20px;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  margin: 0 4px;
  flex-shrink: 0;
}
.k95-taskbar-tasks {
  flex: 1;
  display: flex;
  gap: 2px;
  overflow: hidden;
}
.k95-task-btn {
  display: flex; align-items: center;
  gap: 3px;
  padding: 2px 8px;
  height: 22px;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  font-size: 11px;
  cursor: pointer;
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.k95-task-btn.k95-task-active {
  border-style: inset;
  background: #B0B0B0;
}
.k95-task-icon { font-size: 12px; }
.k95-taskbar-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px inset #DFDFDF;
  padding: 0 8px;
  height: 22px;
  margin-left: 4px;
  flex-shrink: 0;
}
.k95-tray-volume {
  font-size: 12px;
  cursor: pointer;
}
.k95-tray-clock {
  font-size: 11px;
  color: #000;
}

/* ── Start Menu ────────────────────────────────────────────────────── */
.k95-start-menu {
  position: absolute;
  bottom: 30px; left: 2px;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  display: flex;
  z-index: 6000;
  box-shadow: 2px -2px 0 rgba(0,0,0,0.3);
}
.k95-sm-sidebar {
  width: 24px;
  background: linear-gradient(0deg, var(--k95-title-start), var(--k95-title-end));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}
.k95-sm-sidebar-text {
  color: #C0C0C0;
  font-size: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 2px;
}
.k95-sm-items {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 2px 0;
}
.k95-sm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  cursor: pointer;
  font-size: 12px;
}
.k95-sm-item:hover {
  background: var(--k95-accent);
  color: #fff;
}
.k95-sm-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}
.k95-sm-sep {
  height: 1px;
  background: #808080;
  margin: 2px 4px;
  border-bottom: 1px solid #fff;
}
.k95-sm-shutdown {
  font-weight: bold;
}

/* ── Shutdown Dialog ───────────────────────────────────────────────── */
#k95-shutdown-dialog { z-index: 8000; }
.k95-sd-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
}
.k95-sd-box {
  position: relative;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  width: 340px;
  z-index: 1;
}
.k95-sd-titlebar {
  background: linear-gradient(90deg, var(--k95-title-start), var(--k95-title-end));
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 6px;
}
.k95-sd-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
}
.k95-sd-icon { font-size: 36px; }
.k95-sd-text { font-size: 12px; line-height: 1.5; }
.k95-sd-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 16px 16px;
}
.k95-btn {
  min-width: 75px;
  padding: 3px 12px;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  font-size: 12px;
  cursor: pointer;
}
.k95-btn:active { border-style: inset; }
.k95-btn:focus {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

/* ── Shutdown progress screen ──────────────────────────────────────── */
#k95-shutdown-screen {
  background: #000;
  flex-direction: column;
}
.k95-shutdown-saving {
  color: #fff;
  text-align: center;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.k95-shutdown-sub {
  font-size: 14px;
  color: #aaa;
}
.k95-shutdown-progress {
  width: 300px; height: 20px;
  background: #222;
  border: 2px inset #444;
  overflow: hidden;
}
.k95-shutdown-bar {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #0000AA 0px, #0000AA 14px,
    #000066 14px, #000066 16px
  );
  transition: width 0.5s;
}

/* ── Safe to turn off ──────────────────────────────────────────────── */
#k95-safe-screen {
  background: #000;
  flex-direction: column;
  cursor: pointer;
}
.k95-safe-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.k95-safe-title {
  color: #FFAA00;
  font-size: 28px;
  font-family: 'VT323', 'Courier New', monospace;
  text-shadow: 0 0 8px rgba(255,170,0,0.5);
}
.k95-safe-sub {
  color: #666;
  font-size: 14px;
  margin-top: 30px;
  animation: k95-blink 1.5s step-end infinite;
}
@keyframes k95-blink {
  50% { opacity: 0; }
}

/* ── Minesweeper ───────────────────────────────────────────────────── */
.k95-mines {
  display: flex; flex-direction: column;
  align-items: center;
  height: 100%;
  background: #C0C0C0;
  padding: 6px;
}
.k95-mines-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 2px inset #DFDFDF;
  padding: 4px 6px;
  margin-bottom: 6px;
  background: #C0C0C0;
}
.k95-mines-counter {
  background: #000;
  color: #FF0000;
  font-family: 'VT323', monospace;
  font-size: 22px;
  padding: 2px 6px;
  min-width: 45px;
  text-align: center;
  border: 1px inset #808080;
}
.k95-mines-face {
  font-size: 22px;
  cursor: pointer;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.k95-mines-face:active { border-style: inset; }
.k95-mines-grid {
  display: grid;
  border: 3px inset #808080;
  background: #C0C0C0;
}
.k95-mine-cell {
  width: 20px; height: 20px;
  border: 2px outset #DFDFDF;
  background: #C0C0C0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.k95-mine-cell.k95-revealed {
  border: 1px solid #808080;
  cursor: default;
}
.k95-mine-cell.k95-flagged::after {
  content: '\1F6A9';
  font-size: 12px;
}
.k95-mine-cell.k95-boom {
  background: #FF0000;
}
.k95-m1 { color: #0000FF; }
.k95-m2 { color: #008000; }
.k95-m3 { color: #FF0000; }
.k95-m4 { color: #000080; }
.k95-m5 { color: #800000; }
.k95-m6 { color: #008080; }
.k95-m7 { color: #000; }
.k95-m8 { color: #808080; }

/* ── Solitaire ─────────────────────────────────────────────────────── */
.k95-sol {
  height: 100%;
  background: #008000;
  position: relative;
  overflow: hidden;
  padding: 8px;
}
.k95-sol-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.k95-sol-stock-waste {
  display: flex; gap: 8px;
}
.k95-sol-foundations {
  display: flex; gap: 8px;
}
.k95-sol-tableaux {
  display: flex;
  gap: 8px;
  flex: 1;
}
.k95-sol-pile {
  position: relative;
  width: 60px;
  flex-shrink: 0;
}
.k95-card {
  width: 60px; height: 84px;
  border-radius: 4px;
  border: 1px solid #333;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.k95-card-face {
  background: #fff;
  padding: 3px 4px;
}
.k95-card-back {
  background: repeating-linear-gradient(
    45deg,
    #0000AA 0px, #0000AA 4px,
    #000088 4px, #000088 8px
  );
  border-radius: 3px;
}
.k95-card-r { color: #CC0000; }
.k95-card-b { color: #000; }
.k95-card-rank {
  font-weight: bold;
  font-size: 13px;
  line-height: 1;
}
.k95-card-suit {
  font-size: 20px;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.k95-card-empty {
  border: 2px dashed rgba(255,255,255,0.3);
  background: transparent;
  border-radius: 4px;
}
.k95-sol-stacked {
  position: absolute;
  left: 0;
}
.k95-sol-score {
  position: absolute;
  bottom: 6px; right: 10px;
  color: #ADFF2F;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
}

/* ── Weezer Media Player ───────────────────────────────────────────── */
.k95-media {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #C0C0C0;
}
.k95-media-screen {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.k95-media-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.k95-media-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-top: 2px outset #DFDFDF;
  background: #C0C0C0;
}
.k95-media-btn {
  width: 28px; height: 24px;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
.k95-media-btn:active { border-style: inset; }
.k95-media-progress {
  flex: 1;
  height: 12px;
  background: #fff;
  border: 1px inset #808080;
  position: relative;
}
.k95-media-progress-fill {
  height: 100%;
  background: var(--k95-accent);
  width: 0%;
}
.k95-media-time {
  font-size: 11px;
  min-width: 60px;
  text-align: right;
  font-family: 'VT323', monospace;
}
.k95-media-title {
  padding: 2px 6px;
  font-size: 11px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  background: #C0C0C0;
}

/* ── Notepad ───────────────────────────────────────────────────────── */
.k95-notepad {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.k95-notepad-area {
  flex: 1;
  width: 100%;
  border: none;
  padding: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  resize: none;
  outline: none;
  background: #fff;
}

/* ── My Computer ───────────────────────────────────────────────────── */
.k95-mycomp {
  height: 100%;
  background: #fff;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
}
.k95-mycomp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 70px;
  cursor: pointer;
  padding: 4px;
}
.k95-mycomp-item:hover,
.k95-mycomp-selected {
  background: var(--k95-accent);
  color: #fff;
}
.k95-mycomp-icon { font-size: 32px; }
.k95-mycomp-label { font-size: 11px; text-align: center; }

/* ── Internet Explorer (Browser) ──────────────────────────────────── */
.k95-browser-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px;
  background: #C0C0C0;
  border-bottom: 1px solid #808080;
  flex-shrink: 0;
}
.k95-browser-nav-btn {
  width: 24px; height: 22px;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  flex-shrink: 0;
}
.k95-browser-nav-btn:active { border-style: inset; }
.k95-browser-addr-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
  min-width: 0;
}
.k95-browser-addr-label {
  font-size: 11px;
  flex-shrink: 0;
  color: #000;
}
.k95-browser-addr {
  flex: 1;
  height: 20px;
  border: 2px inset #DFDFDF;
  padding: 0 4px;
  font-size: 12px;
  font-family: 'Segoe UI', 'MS Sans Serif', Tahoma, sans-serif;
  background: #fff;
  outline: none;
  min-width: 0;
}
.k95-browser-content {
  background: #fff !important;
  overflow: hidden !important;
}
.k95-browser-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* ── WarDialer Terminal ───────────────────────────────────────────── */
.k95-term {
  height: 100%;
  background: #000;
  color: #33FF33;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  overflow: hidden;
}
.k95-term-output {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #33FF33 #111;
}
.k95-term-output::-webkit-scrollbar {
  width: 8px;
}
.k95-term-output::-webkit-scrollbar-track {
  background: #111;
}
.k95-term-output::-webkit-scrollbar-thumb {
  background: #33FF33;
}
.k95-term-line {
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.3;
  min-height: 1.3em;
  text-shadow: 0 0 6px rgba(51, 255, 51, 0.4);
}
.k95-term-line.k95-term-bright {
  color: #66FF66;
  text-shadow: 0 0 8px rgba(102, 255, 102, 0.6);
}
.k95-term-line.k95-term-dim {
  color: #1a9a1a;
  text-shadow: none;
}
.k95-term-input-line {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.k95-term-prompt {
  color: #33FF33;
  text-shadow: 0 0 6px rgba(51, 255, 51, 0.4);
}
.k95-term-input {
  color: #66FF66;
  text-shadow: 0 0 8px rgba(102, 255, 102, 0.6);
}
.k95-term-cursor {
  color: #33FF33;
  animation: k95-cursor-blink 1.06s step-end infinite;
}
@keyframes k95-cursor-blink {
  50% { opacity: 0; }
}

/* ── Display Properties ───────────────────────────────────────────── */
.k95-dp {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #C0C0C0;
  padding: 8px;
}
.k95-dp-tabs {
  display: flex;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
.k95-dp-tab {
  padding: 3px 12px;
  border: 1px solid #808080;
  border-bottom: none;
  background: #C0C0C0;
  font-size: 12px;
  border-radius: 2px 2px 0 0;
  cursor: default;
}
.k95-dp-tab-active {
  background: #C0C0C0;
  border-bottom: 1px solid #C0C0C0;
  font-weight: bold;
}
.k95-dp-body {
  flex: 1;
  border: 1px solid #808080;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #C0C0C0;
}
.k95-dp-preview-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.k95-dp-preview {
  width: 100%;
  height: 100%;
  border: 2px inset #DFDFDF;
  overflow: hidden;
}
.k95-dp-prev-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.k95-dp-prev-win {
  width: 70%;
  background: #C0C0C0;
  border: 2px outset #DFDFDF;
  box-shadow: 1px 1px 0 #000;
}
.k95-dp-prev-titlebar {
  padding: 2px 6px;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
}
.k95-dp-prev-content {
  padding: 8px;
  font-size: 11px;
  background: #fff;
  margin: 0 2px 2px;
  border: 1px inset #DFDFDF;
}
.k95-dp-scheme-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.k95-dp-label {
  font-size: 12px;
  flex-shrink: 0;
}
.k95-dp-select {
  flex: 1;
  height: 22px;
  border: 2px inset #DFDFDF;
  background: #fff;
  font-size: 12px;
  font-family: inherit;
  padding: 0 4px;
}
.k95-dp-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 8px;
}

/* ── Window resize handle ──────────────────────────────────────────── */
.k95-resize-handle {
  position: absolute;
  bottom: 0; right: 0;
  width: 14px; height: 14px;
  cursor: nwse-resize;
  z-index: 2;
}
.k95-resize-handle::after {
  content: '';
  position: absolute;
  bottom: 2px; right: 2px;
  width: 8px; height: 8px;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
}

/* ── Gold Runner ──────────────────────────────────────────────────── */
.k95-gr {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0a1e;
  overflow: hidden;
}
.k95-gr-hud {
  display: flex;
  justify-content: space-between;
  padding: 2px 8px;
  background: #1a1a2e;
  border-bottom: 2px solid #333;
  flex-shrink: 0;
}
.k95-gr-stat {
  color: #33FF33;
  font-family: 'VT323', monospace;
  font-size: 14px;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.4);
}
.k95-gr-info {
  text-align: center;
  padding: 1px 4px;
  background: #111;
  color: #888;
  font-family: 'VT323', monospace;
  font-size: 11px;
  flex-shrink: 0;
}
.k95-gr-canvas {
  flex: 1;
  width: 100%;
  display: block;
  image-rendering: pixelated;
}

/* ── Blue Screen of Death ─────────────────────────────────────────── */
#k95-bsod {
  background: #0000AA;
  color: #FFFFFF;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: clamp(14px, 2vw, 20px);
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: pointer;
}
.k95-bsod-inner {
  max-width: 640px;
  width: 90%;
  padding: 20px;
}
.k95-bsod-title {
  background: #AAAAAA;
  color: #0000AA;
  text-align: center;
  padding: 2px 8px;
  margin-bottom: 24px;
  font-size: 1.2em;
  font-weight: bold;
}
.k95-bsod-body {
  line-height: 1.8;
  white-space: pre-wrap;
}
.k95-bsod-prompt {
  margin-top: 24px;
  animation: k95-bsod-blink 1s step-end infinite;
}
@keyframes k95-bsod-blink {
  50% { opacity: 0; }
}

/* ── Kuro Virus Character ─────────────────────────────────────────── */
.k95-virus-char {
  position: fixed;
  width: 56px;
  height: 60px;
  z-index: 90000;
  pointer-events: none;
}
.k95-virus-inner {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: all;
  cursor: crosshair;
}
.k95-virus-ear-l,
.k95-virus-ear-r {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 16px solid #111;
  z-index: 1;
}
.k95-virus-ear-l { left: 2px; }
.k95-virus-ear-r { right: 2px; }
.k95-virus-ear-l::after,
.k95-virus-ear-r::after {
  content: '';
  position: absolute;
  top: 5px;
  left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #3a0010;
}
.k95-virus-head {
  position: absolute;
  top: 10px;
  left: 3px;
  width: 50px;
  height: 48px;
  background: #111;
  border-radius: 50% 50% 44% 44%;
  box-shadow: 0 0 10px rgba(220, 20, 50, 0.7), 0 0 24px rgba(220, 20, 50, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding-top: 4px;
}
.k95-virus-eyes {
  display: flex;
  gap: 12px;
}
.k95-virus-eye {
  width: 10px;
  height: 10px;
  background: #ff1a3c;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff1a3c, 0 0 14px rgba(255, 26, 60, 0.7);
  animation: k95-virus-blink 3.5s infinite;
}
.k95-virus-eyes .k95-virus-eye:last-child { animation-delay: 0.3s; }
@keyframes k95-virus-blink {
  0%, 88%, 96%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(0.1); }
}
.k95-virus-nose {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ff7799;
}
.k95-virus-mouth {
  color: #cc3355;
  font-size: 11px;
  line-height: 1;
  font-family: 'Courier New', monospace;
  margin-top: 1px;
}
.k95-virus-bubble {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffaa;
  border: 2px solid #000;
  color: #000;
  font-size: 10px;
  font-family: 'VT323', 'Courier New', monospace;
  padding: 3px 7px;
  white-space: normal;
  max-width: 190px;
  min-width: 70px;
  z-index: 90001;
  pointer-events: none;
  display: none;
  text-align: center;
}
.k95-virus-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #000;
}

/* ── KuroTube (YouTube Player) ───────────────────────────────────────── */
.k95-yt-toolbar {
  display: flex;
  align-items: center;
  padding: 3px 4px;
  background: #C0C0C0;
  border-bottom: 1px solid #808080;
  flex-shrink: 0;
}
.k95-yt-search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
}
.k95-yt-search-label {
  font-size: 11px;
  flex-shrink: 0;
  color: #000;
}
.k95-yt-search {
  flex: 1;
  height: 22px;
  border: 2px inset #DFDFDF;
  padding: 0 4px;
  font-size: 12px;
  font-family: 'Segoe UI', 'MS Sans Serif', Tahoma, sans-serif;
  background: #fff;
  outline: none;
  min-width: 0;
}
.k95-yt-search-btn {
  flex-shrink: 0;
}
.k95-yt-content {
  background: #fff !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.k95-yt-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #808080;
}
.k95-yt-welcome-icon { font-size: 48px; }
.k95-yt-welcome-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}
.k95-yt-welcome-sub { font-size: 12px; }
.k95-yt-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
  background: #fff;
}
.k95-yt-loading {
  padding: 24px;
  text-align: center;
  color: #808080;
  font-size: 12px;
}
.k95-yt-result {
  display: flex;
  gap: 8px;
  padding: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  flex-shrink: 0;
  background: #fff;
}
.k95-yt-result:hover {
  background: var(--k95-accent);
  color: #fff;
  border-color: var(--k95-accent);
}
.k95-yt-result:hover .k95-yt-result-channel,
.k95-yt-result:hover .k95-yt-result-views { color: #ccc; }
.k95-yt-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 68px;
}
.k95-yt-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  background: #000;
  display: block;
}
.k95-yt-dur {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  font-family: 'VT323', monospace;
}
.k95-yt-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}
.k95-yt-result-title {
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.k95-yt-result-channel {
  font-size: 11px;
  color: #666;
}
.k95-yt-result-views {
  font-size: 10px;
  color: #888;
}
.k95-yt-player {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000;
}
.k95-yt-player-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px;
  background: #C0C0C0;
  border-bottom: 1px solid #808080;
  flex-shrink: 0;
}
.k95-yt-now-playing {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-weight: bold;
}
.k95-yt-embed-wrap {
  flex: 1;
  position: relative;
}
.k95-yt-embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── McAfee VirusScan ──────────────────────────────────────────────── */
.k95-mcafee {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #d4d0c8;
}
.k95-mcafee-header {
  background: linear-gradient(90deg, #c00000, #800000);
  color: #fff;
  padding: 6px 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.k95-mcafee-logo {
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}
.k95-mcafee-edition {
  font-size: 10px;
  opacity: 0.85;
  font-style: italic;
}
.k95-mcafee-stats {
  padding: 6px 8px;
  border-bottom: 1px solid #808080;
  flex-shrink: 0;
  background: #e8e4dc;
}
.k95-mcafee-stat-row {
  display: flex;
  gap: 6px;
  padding: 1px 0;
  font-size: 11px;
}
.k95-mcafee-stat-lbl {
  min-width: 130px;
  font-weight: bold;
  color: #333;
}
.k95-mcafee-stat-val {
  color: #000;
}
.k95-mcafee-rtp-val {
  font-weight: bold;
  color: #cc0000;
}
.k95-mcafee-btns {
  padding: 5px 8px;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
}
.k95-mcafee-rtp-btn {
  background: #c00000;
  color: #fff;
}
.k95-mcafee-rtp-btn:hover {
  background: #a00000;
}
.k95-mcafee-log {
  flex: 1;
  background: #0a0a0a;
  color: #00dd44;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 13px;
  padding: 6px 8px;
  overflow-y: auto;
  overflow-x: hidden;
}
.k95-mcafee-log-line {
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.4;
}
