.window-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 50;
  pointer-events: none;
}
.game-window {
  position: absolute;
  min-width: 300px;
  min-height: 200px;
  background: var(--bg-panel);
  border: 2px solid var(--border);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  pointer-events: all;
  z-index: 50;
}
.game-window.minimized { display: none; }
.game-window.maximized {
  width: calc(100% - 4px) !important;
  height: calc(100% - 4px) !important;
  top: 0 !important; left: 0 !important;
}
.window-titlebar {
  height: 24px;
  background: var(--title-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}
.game-window.focused .window-titlebar {
  background: var(--title-bar-active);
}
.window-titlebar .win-title {
  font-size: 13px;
  color: var(--text-bright);
  padding-left: 4px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.window-titlebar .win-controls {
  display: flex;
  gap: 2px;
}
.window-titlebar .win-btn {
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  border: 1px solid #000;
  color: var(--text-bright);
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
}
.window-titlebar .win-btn:hover { background: var(--btn-hover); }
.window-titlebar .win-btn.close:hover { background: var(--danger); }
.window-body {
  flex: 1;
  overflow: auto;
  padding: 8px;
  position: relative;
}
.window-body::-webkit-scrollbar { width: 8px; }
.window-body::-webkit-scrollbar-track { background: #1a1a1a; }
.window-body::-webkit-scrollbar-thumb { background: var(--btn-bg); border: 1px solid #000; }
.taskbar {
  position: absolute;
  bottom: 30px; left: 0; right: 0;
  height: 26px;
  background: var(--bg-panel-light);
  border-top: 1px solid #000;
  z-index: 99;
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 2px;
}
.taskbar-btn {
  padding: 2px 10px;
  font-size: 12px;
  background: var(--btn-bg);
  border: 1px solid #000;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.taskbar-btn.active { background: var(--highlight); color: var(--text-bright); }
.taskbar-btn:hover { background: var(--btn-hover); }
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--bg-panel);
  border: 2px solid var(--border);
  min-width: 280px;
  max-width: 500px;
  padding: 16px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
}
.modal-box h3 { color: var(--text-bright); margin-bottom: 12px; font-size: 16px; }
.modal-box p { margin-bottom: 12px; line-height: 1.6; }
.modal-box .modal-buttons { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
