* { box-sizing: border-box; user-select: none; }
body {
  margin: 0;
  min-height: 100vh;
  background: url('../assets/images/background.jpg') center/cover no-repeat fixed;
  background-color: #ffe4ec;
  font-family: "Courier New", "Microsoft YaHei", monospace;
  overflow: hidden;
}
.hidden { display: none !important; }

/* ===== 窗口框架 ===== */
.window {
  position: absolute;
  background: #f8c8dc;
  border: 3px solid;
  border-color: #fff0f5 #c06c84 #c06c84 #fff0f5;
  box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.25);
  min-width: 280px;
}
.window-titlebar {
  background: linear-gradient(90deg, #ff69b4, #ff99cc);
  padding: 4px 8px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  cursor: move;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.window-titlebar .title-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-body { padding: 10px; }

/* ===== 窗口关闭按钮 ===== */
.win-close {
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  background: none;
  border: none;
  line-height: 1;
  padding: 0 4px;
  margin-left: 8px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
.win-close:hover {
  background: #ff4d6d;
  color: #fff;
}

/* ===== 桌面图标（竖排） ===== */
#desktop-icons {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  padding: 4px 2px;
  cursor: pointer;
  border: 1px solid transparent;
}
.desk-icon:hover {
  background: rgba(255, 182, 193, 0.25);
  border-color: rgba(255, 182, 193, 0.4);
}
.desk-icon:active {
  background: rgba(255, 182, 193, 0.4);
}
.desk-icon img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  display: block;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.25));
}
.desk-icon span {
  font-size: 12px;
  color: #7a0040;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  margin-top: 2px;
  white-space: nowrap;
  font-weight: bold;
}

/* ===== 游戏结束窗口 ===== */
#gameover {
  z-index: 600;
  text-align: center;
  width: 340px;
  background: linear-gradient(180deg, #5e1c67, #4a1a40);
  border: 3px solid;
  border-color: #ff66b2 #7a0040 #7a0040 #ff66b2;
  box-shadow: 0 0 30px rgba(255, 102, 178, 0.5);
}
#gameover .window-titlebar {
  background: linear-gradient(90deg, #6c205c, #47164d);
  color: #ffb6c1;
  text-shadow: 0 0 8px #ff66b2;
}
#gameover .window-body p {
  color: #ffd9e6;
  font-size: 18px;
  margin: 12px 0;
  line-height: 1.6;
  text-shadow: 0 0 6px rgba(255, 102, 178, 0.5);
}
#gameover #quit-btn {
  margin-top: 16px;
  font-size: 20px;
  padding: 12px 36px;
  border: 3px solid;
  border-color: #ff66b2 #7a0040 #7a0040 #ff66b2;
  background: #611c6a;
  color: #ffb6c1;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-weight: bold;
  transition: all 0.2s;
}
#gameover #quit-btn:hover {
  background: #672158;
  box-shadow: 0 0 20px rgba(255, 102, 178, 0.6);
}
#gameover #quit-btn:active {
  transform: scale(0.95);
}
