* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; width: 100%; overflow: hidden; }
body { background: #000; -webkit-user-select: none; user-select: none; }

/* ---- classic Windows 3.1 beveled chrome ---- */
.win-frame {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080, 2px 2px 4px rgba(0,0,0,0.4);
  image-rendering: pixelated;
}
.win-sunken {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #dfdfdf;
}
.win-btn {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  color: #000;
  padding: 2px 6px;
}
.win-btn:active {
  border-color: #000000 #ffffff #ffffff #000000;
  box-shadow: inset 1px 1px 0 #808080;
}
.title-btn {
  width: 18px; height: 16px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  color: #000;
  font-family: 'VT323', monospace;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.title-btn:active { border-color: #000 #fff #fff #000; }

/* ---- CRT scanline + curvature effect ---- */
.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.12) 1px, transparent 1px, transparent 3px);
  z-index: 8500;
}
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.45);
  z-index: 8501;
}

@keyframes blink { 50% { opacity: 0; } }

/* scrollbars retro-ish */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #c0c0c0; }
::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
}

textarea, input { -webkit-user-select: text; user-select: text; }
button { outline: none; }
</parameter>