/* PC 端窗口操作区 — MasterGo「PC端操作区域」 */
.win-ops {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 123px;
  height: 36px;
  padding: 0 8px 0 20px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(120, 180, 240, 0.18) 0%, transparent 48%),
    linear-gradient(180deg, rgba(54, 91, 164, 0.58) 0%, rgba(2, 38, 109, 0.76) 100%);
  box-shadow:
    inset 1px 0 2px 0 rgba(121, 191, 249, 0.65),
    inset 0 1px 0 rgba(200, 230, 255, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%);
  backdrop-filter: blur(6px);
}

.win-ops__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b2becc;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.win-ops__btn:hover {
  color: #e8f4ff;
  background: rgba(121, 191, 249, 0.16);
}

.win-ops__btn:focus-visible {
  outline: 2px solid var(--color-focus-ring, #4fd2ff);
  outline-offset: 1px;
}

.win-ops__btn--close:hover {
  color: #fff;
  background: rgba(220, 60, 80, 0.55);
}

.win-ops__btn svg {
  display: block;
  pointer-events: none;
}

.win-ops__btn[data-win="min"] svg {
  width: 12px;
  height: 2px;
}

.win-ops__btn[data-win="max"] svg {
  width: 13px;
  height: 13px;
}

.win-ops__btn[data-win="close"] svg {
  width: 12px;
  height: 12px;
}

/* 最小化恢复条 */
.win-restore {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(79, 210, 255, 0.4);
  background: rgba(2, 18, 40, 0.92);
  color: #8bfffb;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 28px rgba(0, 8, 20, 0.4);
  transform: translateX(-50%);
  cursor: pointer;
}

.win-restore:hover {
  border-color: rgba(139, 255, 251, 0.7);
  color: #fff;
}

body.is-win-min .stage {
  visibility: hidden;
  pointer-events: none;
}

body.is-win-min .win-restore {
  display: inline-flex;
  pointer-events: auto;
}
