﻿:root {
  --ink: #0B1622;
  --ink-2: #111C2B;
  --ink-3: #16233A;
  --ice: #A9C6E4;
  --silver: #DCE4EE;
  --gold: #BFA46A;
  --gold-soft: rgba(191, 164, 106, .35);
  --hairline: rgba(220, 228, 238, .16);
  --taskbar-h: 56px;
  --rail-w: 106px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Songti SC", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  --wallpaper: url("../assets/wallpaper/f13984e626916f128959cf5458d38743.jpg");
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img { -webkit-user-drag: none; }

.stage-bg {
  position: fixed;
  inset: 0;
  background-image:
    var(--wallpaper),
    radial-gradient(1100px 760px at 74% 14%, rgba(94, 126, 168, .30), transparent 62%),
    radial-gradient(820px 640px at 12% 86%, rgba(52, 74, 110, .34), transparent 66%),
    radial-gradient(620px 460px at 50% 116%, rgba(4, 8, 14, .92), transparent 60%),
    linear-gradient(158deg, #0A1420 0%, #0D1A29 46%, #091019 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.stage-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 240px 70px rgba(4, 8, 14, .85);
}

.stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
  opacity: .35;
}

.icon-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: calc(var(--taskbar-h) + var(--safe-b));
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 8px;
  z-index: 4;
}

.desk-icon {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.desk-icon img {
  width: 58px;
  height: 58px;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5));
  transition: transform .22s ease;
}

.desk-icon span {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(220, 228, 238, .86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
  white-space: nowrap;
}

.desk-icon:hover {
  background: rgba(169, 198, 228, .08);
  border-color: var(--hairline);
}

.desk-icon:hover img { transform: translateY(-1px) scale(1.03); }
.desk-icon:active img { transform: scale(.97); }

.desk-badge {
  position: absolute;
  top: 9px;
  left: calc(50% + 17px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D93025;
  box-shadow: 0 0 0 2px rgba(8, 14, 24, .55);
  z-index: 2;
}

.desk-badge[hidden] { display: none; }

.stage-toast {
  position: fixed;
  right: 22px;
  bottom: calc(var(--taskbar-h) + 22px);
  z-index: 90;
  max-width: min(360px, calc(100vw - 44px));
  padding: 15px 20px;
  background: rgba(250, 250, 250, .97);
  border: 1px solid #E1E1E1;
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
  color: #1B1B1B;
  font-size: 14px;
  line-height: 1.5;
  animation: toast-in .26s cubic-bezier(.2, .8, .2, 1);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.desk-icon:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.stage {
  position: fixed;
  inset: 0 0 calc(var(--taskbar-h) + var(--safe-b)) 0;
  z-index: 12;
  pointer-events: none;
}

.window {
  position: absolute;
  left: calc(var(--rail-w) + 22px);
  top: 28px;
  right: 26px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 28, 43, .94), rgba(9, 16, 26, .97));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(220, 228, 238, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: window-in .34s cubic-bezier(.2, .8, .2, 1);
}

@keyframes window-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.window.is-minimized { display: none; }

.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  flex: 0 0 auto;
  padding: 0 8px 0 20px;
  background: linear-gradient(180deg, rgba(30, 48, 72, .5), rgba(15, 24, 38, .18));
  border-bottom: 1px solid rgba(191, 164, 106, .2);
  user-select: none;
}

.window-title {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .14em;
  color: var(--silver);
  white-space: nowrap;
}

.window-orn {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 164, 106, .42), transparent);
}

.window-controls { display: flex; gap: 4px; }

.w-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(220, 228, 238, .72);
  font-size: 15px;
  line-height: 1;
  transition: background .18s ease, color .18s ease;
}

.w-btn:hover { background: rgba(169, 198, 228, .12); color: #fff; }
.w-btn.close:hover { background: rgba(190, 86, 86, .3); }
.w-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }

.window-body {
  flex: 1;
  min-height: 0;
  background: #0A121C;
}

.window iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(var(--taskbar-h) + var(--safe-b));
  padding: 0 18px var(--safe-b);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(12, 20, 32, .84), rgba(7, 12, 20, .95));
  border-top: 1px solid rgba(191, 164, 106, .28);
  box-shadow: 0 -16px 44px rgba(0, 0, 0, .5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.taskbar-clock {
  flex: 0 0 auto;
  min-width: 74px;
  padding-right: 2px;
  text-align: right;
  font-size: 14px;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: rgba(220, 228, 238, .82);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at 50% 42%, rgba(8, 14, 24, .5), rgba(4, 8, 14, .92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-layer.is-open { display: grid; }

.modal {
  position: relative;
  width: min(560px, 100%);
  padding: 40px 40px 34px;
  background: linear-gradient(180deg, rgba(20, 32, 48, .98), rgba(10, 17, 28, .99));
  border: 1px solid rgba(191, 164, 106, .5);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .72), inset 0 0 0 1px rgba(220, 228, 238, .05), inset 0 0 70px rgba(120, 160, 200, .06);
  animation: modal-in .32s cubic-bezier(.2, .8, .2, 1);
}

.modal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(220, 228, 238, .1);
  pointer-events: none;
}

.modal::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: #0E1826;
  box-shadow: 0 0 12px rgba(191, 164, 106, .4);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.frame-corner {
  position: absolute;
  width: 54px;
  height: 54px;
  pointer-events: none;
  opacity: .85;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='none' stroke='%23BFA46A' stroke-width='1.1'><path d='M1 36 C1 16 16 1 36 1'/><path d='M1 52 C1 24 24 1 52 1' opacity='.45'/><path d='M9 36 C9 21 21 9 36 9' opacity='.7'/><path d='M13 13 c6 0 11 5 10 10' opacity='.5'/><circle cx='11' cy='11' r='2.2' fill='%23BFA46A' stroke='none' opacity='.65'/></g></svg>") center / contain no-repeat;
}

.frame-corner.tl { top: -2px; left: -2px; }
.frame-corner.tr { top: -2px; right: -2px; transform: rotate(90deg); }
.frame-corner.bl { bottom: -2px; left: -2px; transform: rotate(-90deg); }
.frame-corner.br { bottom: -2px; right: -2px; transform: rotate(180deg); }

.modal-kicker {
  margin: 0 0 16px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .42em;
  text-indent: .42em;
  color: rgba(169, 198, 228, .58);
}

.modal h2 {
  margin: 0 0 16px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 4.4vw, 32px);
  letter-spacing: .16em;
  text-indent: .16em;
  color: #EDF2F8;
}

.modal p {
  margin: 0 auto 28px;
  max-width: 38ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: .04em;
  color: rgba(220, 228, 238, .72);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  min-width: 134px;
  padding: 12px 22px;
  border: 1px solid rgba(191, 164, 106, .45);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(41, 60, 86, .5), rgba(16, 26, 40, .62));
  color: #E7EDF5;
  font-size: 13px;
  letter-spacing: .18em;
  text-indent: .18em;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.btn:hover {
  border-color: rgba(191, 164, 106, .9);
  box-shadow: 0 0 26px rgba(191, 164, 106, .18);
}

.btn.primary {
  border-color: rgba(191, 164, 106, .85);
  background: linear-gradient(180deg, rgba(82, 70, 42, .42), rgba(28, 24, 15, .55));
  color: #F4E8C8;
}

.btn.ghost { color: rgba(220, 228, 238, .68); border-color: rgba(220, 228, 238, .22); }
.btn.ghost:hover { color: #F4E8C8; border-color: rgba(191, 164, 106, .7); }

.btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ── Rococo theme ── */
:root {
  --ink: #24150D;
  --ink-2: #2E1B11;
  --ink-3: #3A2417;
  --ice: #D9B36E;
  --silver: #F2E4CC;
  --gold: #C9A45C;
  --gold-soft: rgba(201, 164, 92, .5);
  --hairline: rgba(201, 164, 92, .28);
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Songti SC", "STSong", "SimSun", serif;
}

body { background: #1D110A; color: #F2E4CC; }

.stage-bg {
  background-image:
    var(--wallpaper),
    url("../assets/ornaments/damask.svg"),
    radial-gradient(900px 640px at 72% 12%, rgba(201, 164, 92, .17), transparent 62%),
    radial-gradient(820px 620px at 10% 88%, rgba(124, 59, 59, .2), transparent 66%),
    radial-gradient(620px 460px at 50% 116%, rgba(9, 5, 3, .92), transparent 60%),
    linear-gradient(158deg, #2E1B10 0%, #24140C 48%, #150C07 100%);
  background-size: cover, 180px 180px, auto, auto, auto, auto;
}

.stage-bg::before { box-shadow: inset 0 0 260px 90px rgba(8, 4, 2, .88); }

.stage-bg::after {
  background:
    repeating-linear-gradient(115deg, rgba(255, 231, 190, .018) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(255, 220, 170, .012) 0 1px, transparent 1px 6px);
  opacity: .5;
}

.desk-icon span {
  color: rgba(246, 233, 210, .88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

.desk-icon:hover {
  background: rgba(201, 164, 92, .12);
  border-color: rgba(201, 164, 92, .35);
}

.window {
  border-color: rgba(201, 164, 92, .55);
  background: linear-gradient(180deg, rgba(55, 35, 22, .97), rgba(30, 18, 11, .99));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .7),
    inset 0 0 0 1px rgba(201, 164, 92, .22),
    inset 0 1px 0 rgba(255, 235, 200, .08);
}

.window-bar {
  background: linear-gradient(180deg, rgba(92, 60, 38, .55), rgba(42, 26, 16, .3));
  border-bottom: 1px solid rgba(201, 164, 92, .35);
  box-shadow: inset 0 1px 0 rgba(255, 235, 200, .08);
}

.window-title {
  color: #F4E7CE;
  font-weight: 600;
  letter-spacing: .16em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}

.window-orn { background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .6), transparent); }

.w-btn { color: rgba(244, 231, 206, .7); }
.w-btn:hover { background: rgba(201, 164, 92, .16); color: #FFF4DC; }
.w-btn.close:hover { background: rgba(140, 60, 48, .35); }
.window-body { background: #24160E; }

@media (min-width: 761px) {
  .window::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 3;
    pointer-events: none;
    background-image:
      url("../assets/ornaments/corner-tl.svg"),
      url("../assets/ornaments/corner-tr.svg"),
      url("../assets/ornaments/corner-bl.svg"),
      url("../assets/ornaments/corner-br.svg");
    background-position: left top, right top, left bottom, right bottom;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    opacity: .85;
  }
}

.taskbar {
  background: linear-gradient(180deg, rgba(48, 29, 18, .92), rgba(24, 14, 9, .97));
  border-top: 1px solid rgba(201, 164, 92, .45);
  box-shadow: 0 -16px 44px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 235, 200, .08);
}

.taskbar-clock { color: #E8D3AE; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }

.modal-layer {
  background: radial-gradient(circle at 50% 42%, rgba(30, 18, 10, .55), rgba(10, 6, 3, .93));
}

.modal {
  background: linear-gradient(180deg, #F8EEDB, #EAD8B9);
  border: 1px solid #B98A4B;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, .72),
    inset 0 0 0 1px rgba(255, 248, 235, .55),
    inset 0 0 70px rgba(185, 138, 75, .08);
}

.modal::before { inset: 7px; border: 1px solid rgba(122, 78, 46, .28); }
.modal::after { background: #F4E8D2; border-color: #B98A4B; box-shadow: 0 0 12px rgba(201, 164, 92, .35); }
.modal-kicker { color: #9A7C4E; }
.modal h2 { color: #3B2A1E; }
.modal p { color: #5B4633; }

.btn {
  border-color: rgba(122, 78, 46, .45);
  background: linear-gradient(180deg, #FBF3E2, #E9D6B6);
  color: #4A3322;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 2px 4px rgba(80, 50, 30, .08);
}

.btn:hover { border-color: #7A4E2E; box-shadow: 0 0 20px rgba(185, 138, 75, .18); }

.btn.primary {
  background: linear-gradient(180deg, #8A5E3C, #6B452D);
  border-color: #C9A45C;
  color: #FBF1DD;
  box-shadow: inset 0 1px 0 rgba(255, 235, 200, .25), 0 4px 10px rgba(60, 35, 20, .25);
}

.btn.primary:hover { border-color: #E0C07E; }
.btn.ghost { color: #6B523C; border-color: rgba(122, 78, 46, .28); }
.btn.ghost:hover { color: #4A3322; border-color: rgba(185, 138, 75, .7); }

/* ── Palette pass: lighter paper, rosewood, multi-accent ── */
:root {
  --ink: #EADBC8;
  --ink-2: #F7F0E4;
  --ink-3: #EFE3D1;
  --ice: #B98086;
  --silver: #4A382C;
  --gold: #C4A15F;
  --gold-soft: rgba(196, 161, 95, .5);
  --hairline: rgba(140, 108, 90, .22);
}

body { background: #E9DCCB; color: #4A382C; }

.stage-bg {
  background-image:
    var(--wallpaper),
    url("../assets/ornaments/damask.svg"),
    url("../assets/ornaments/vine-left.svg"),
    url("../assets/ornaments/vine-right.svg"),
    radial-gradient(900px 640px at 78% 12%, rgba(227, 195, 198, .55), transparent 62%),
    radial-gradient(760px 600px at 6% 88%, rgba(154, 168, 142, .34), transparent 65%),
    radial-gradient(820px 520px at 52% 110%, rgba(111, 76, 88, .16), transparent 62%),
    linear-gradient(160deg, #F5EBDC 0%, #EADBC8 48%, #DCC9B7 100%);
  background-size: cover, 180px 180px, 360px 360px, 360px 360px, auto, auto, auto, auto;
  background-repeat: no-repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center, 0 0, left -50px bottom 12px, right -50px bottom 12px, center, center, center, center;
}

.stage-bg::before { box-shadow: inset 0 0 240px 70px rgba(122, 90, 80, .2); }

.stage-bg::after {
  background:
    repeating-linear-gradient(115deg, rgba(120, 90, 60, .028) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(120, 90, 60, .018) 0 1px, transparent 1px 6px);
  mix-blend-mode: multiply;
  opacity: .55;
}

.desk-icon img { filter: drop-shadow(0 10px 16px rgba(74, 56, 44, .35)); }

.desk-icon span {
  color: #4A382C;
  text-shadow: 0 1px 0 rgba(255, 250, 240, .9), 0 3px 12px rgba(255, 248, 236, .55);
}

.desk-icon:hover {
  background: rgba(227, 195, 198, .35);
  border-color: rgba(185, 128, 134, .35);
}

.window {
  border-color: rgba(196, 161, 95, .75);
  background: #F7F0E4;
  box-shadow:
    0 30px 70px rgba(74, 56, 44, .28),
    inset 0 0 0 1px rgba(255, 250, 240, .9),
    inset 0 0 0 6px rgba(196, 161, 95, .1);
}

.window-bar {
  background: linear-gradient(180deg, #967564, #7D5D51);
  border-bottom: 1px solid rgba(196, 161, 95, .7);
  box-shadow: inset 0 1px 0 rgba(255, 240, 220, .28);
}

.window-title { color: #FFF7EA; }
.window-orn { background: linear-gradient(90deg, transparent, rgba(255, 245, 225, .55), transparent); }
.w-btn { color: rgba(255, 247, 234, .82); }
.w-btn:hover { background: rgba(255, 247, 234, .16); color: #FFFDF8; }
.w-btn.close:hover { background: rgba(140, 74, 82, .5); }
.window-body { background: #F7F0E4; }

@media (min-width: 761px) {
  .window::after { background-size: 34px 34px; opacity: .9; }
}

.taskbar {
  background: linear-gradient(180deg, #8A6A5C, #74564B);
  border-top: 1px solid rgba(196, 161, 95, .7);
  box-shadow: 0 -12px 30px rgba(74, 56, 44, .18), inset 0 1px 0 rgba(255, 240, 220, .25);
}

.taskbar-clock { color: #FFF3E0; text-shadow: 0 1px 0 rgba(74, 56, 44, .35); }

.modal-layer { background: radial-gradient(circle at 50% 42%, rgba(74, 56, 44, .28), rgba(48, 32, 24, .58)); }

.modal {
  background: linear-gradient(180deg, #FFF9EF, #F5E8D6);
  border-color: #C4A15F;
  box-shadow:
    0 30px 80px rgba(74, 56, 44, .32),
    inset 0 0 0 1px rgba(255, 255, 255, .7),
    inset 0 0 60px rgba(227, 195, 198, .25);
}

.modal::before { border-color: rgba(185, 128, 134, .32); }
.modal::after { background: #FFF9EF; border-color: #C4A15F; }
.modal-kicker { color: #A66F76; }
.modal h2 { color: #4A342C; }
.modal p { color: #6B5748; }

.btn {
  background: linear-gradient(180deg, #FFFBF3, #F2E4D2);
  border-color: rgba(185, 128, 134, .45);
  color: #5A4437;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 4px rgba(74, 56, 44, .08);
}

.btn:hover { border-color: #B98086; }

.btn.primary {
  background: linear-gradient(180deg, #C08B91, #A66F76);
  border-color: #C4A15F;
  color: #FFF8F0;
  box-shadow: inset 0 1px 0 rgba(255, 240, 230, .45), 0 4px 10px rgba(90, 50, 56, .22);
}

.btn.primary:hover { border-color: #E0C79A; }
.btn.ghost { color: #7B6355; border-color: rgba(140, 108, 90, .3); }
.btn.ghost:hover { color: #4A342C; border-color: rgba(185, 128, 134, .7); }

@media (max-width: 760px) {
  :root { --rail-w: 0px; --taskbar-h: 60px; }

  .icon-rail {
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 4px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 10px;
  }

  .desk-icon {
    width: calc(50% - 2px);
    padding: 10px 4px 8px;
    gap: 6px;
  }

  .desk-icon img { width: 54px; height: 54px; }
  .desk-icon span { font-size: 12px; }

  .window {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .window-bar { height: 54px; padding-left: 16px; }
  .window-title { font-size: 16px; }

  .w-btn { width: 40px; height: 40px; }

  .taskbar { padding-inline: 14px; }
  .taskbar-clock { min-width: 64px; font-size: 13px; }

  .modal { padding: 34px 24px 28px; }
  .frame-corner { width: 44px; height: 44px; }
  .btn { min-width: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ── 焦糖奶咖 · final ── */
:root {
  --ink: #E3CAA5; --ink-2: #FFFBE9; --ink-3: #CEAB93;
  --ice: #AD8B73; --silver: #4A382C; --gold: #C4A15F;
  --gold-soft: rgba(196, 161, 95, .55);
  --hairline: rgba(173, 139, 115, .25);
}
body { background: #E3CAA5; color: #4A382C; }
.stage-bg {
  background-image:
    var(--wallpaper),
    radial-gradient(900px 640px at 76% 10%, #FFFBE9 0%, rgba(255, 251, 233, 0) 58%),
    radial-gradient(760px 620px at 4% 96%, #CEAB93 0%, rgba(206, 171, 147, 0) 62%),
    radial-gradient(880px 620px at 96% 102%, #AD8B73 0%, rgba(173, 139, 115, 0) 56%),
    linear-gradient(160deg, #F3E3CB 0%, #E3CAA5 52%, #CEAB93 100%);
  background-size: cover, auto, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
}
.stage-bg::before { box-shadow: inset 0 0 240px 70px rgba(122, 90, 70, .16); }
.stage-bg::after { background: repeating-linear-gradient(115deg, rgba(120, 90, 60, .022) 0 1px, transparent 1px 9px); mix-blend-mode: multiply; opacity: .5; }
.desk-icon img { filter: drop-shadow(0 10px 16px rgba(80, 55, 40, .3)); }
.desk-icon span { color: #4A382C; text-shadow: 0 1px 0 rgba(255, 251, 233, .9); }
.desk-icon:hover { background: rgba(255, 251, 233, .4); border-color: rgba(173, 139, 115, .45); }
.window {
  border-color: rgba(173, 139, 115, .75);
  background: #FFFBE9;
  box-shadow: 0 30px 70px rgba(80, 55, 40, .28), inset 0 0 0 1px rgba(255, 251, 233, .9), inset 0 0 0 6px rgba(173, 139, 115, .1);
}
.window-bar { background: linear-gradient(180deg, #B79681, #AD8B73); border-bottom: 1px solid #CEAB93; box-shadow: inset 0 1px 0 rgba(255, 251, 233, .3); }
.window-title { color: #FFFBE9; }
.window-orn { background: linear-gradient(90deg, transparent, rgba(255, 251, 233, .55), transparent); }
.w-btn { color: rgba(255, 251, 233, .82); }
.w-btn:hover { background: rgba(255, 251, 233, .18); color: #FFFDF4; }
.w-btn.close:hover { background: rgba(120, 80, 60, .45); }
.window-body { background: #E3CAA5; }
.taskbar { background: linear-gradient(180deg, #AD8B73, #9C7A63); border-top: 1px solid #CEAB93; box-shadow: 0 -12px 30px rgba(80, 55, 40, .18), inset 0 1px 0 rgba(255, 251, 233, .3); }
.taskbar-clock { color: #FFFBE9; }
.modal-layer { background: radial-gradient(circle at 50% 42%, rgba(74, 56, 44, .25), rgba(58, 40, 30, .55)); }
.modal { background: linear-gradient(180deg, #FFFDF4, #FFFBE9); border-color: #AD8B73; box-shadow: 0 30px 80px rgba(74, 56, 44, .3), inset 0 0 0 1px rgba(255, 255, 255, .75), inset 0 0 60px rgba(227, 202, 165, .35); }
.modal::before { border-color: rgba(173, 139, 115, .35); }
.modal::after { background: #FFFBE9; border-color: #AD8B73; }
.modal-kicker { color: #AD8B73; }
.modal h2 { color: #4A382C; }
.modal p { color: #6B4E3D; }
.btn { background: linear-gradient(180deg, #FFFDF4, #F3E3CB); border-color: rgba(173, 139, 115, .45); color: #5A4536; }
.btn:hover { border-color: #AD8B73; }
.btn.primary { background: linear-gradient(180deg, #B79681, #AD8B73); border-color: #C4A15F; color: #FFFBE9; }
.btn.primary:hover { border-color: #D8BE91; }
.btn.ghost { color: #7A5643; border-color: rgba(173, 139, 115, .32); }
.btn.ghost:hover { color: #4A382C; border-color: rgba(173, 139, 115, .7); }

/* ── Windows 11 final ── */
:root {
  --ink: #1b1b1b; --ink-2: #f3f3f3; --ink-3: #e5e5e5;
  --ice: #0067c0; --silver: #1b1b1b; --gold: #0067c0;
  --gold-soft: rgba(0, 0, 0, .16); --hairline: rgba(255, 255, 255, .16);
  --sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --serif: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  --taskbar-h: 48px;
}
body { background: #0d2946; color: #1b1b1b; font-family: var(--sans); }
.stage-bg {
  background-image:
    var(--wallpaper),
    radial-gradient(720px 520px at 22% 38%, rgba(80, 172, 255, .9), transparent 62%),
    radial-gradient(760px 620px at 78% 62%, rgba(173, 118, 255, .82), transparent 62%),
    radial-gradient(560px 480px at 62% 26%, rgba(255, 150, 214, .55), transparent 60%),
    linear-gradient(135deg, #0d2946, #13456f 48%, #2a2a69);
  background-size: cover, auto, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
}
.stage-bg::before { box-shadow: inset 0 0 200px 40px rgba(4, 14, 26, .3); }
.stage-bg::after { display: none; }
.desk-icon img { width: 48px; height: 48px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }
.desk-icon span { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); font-size: 12px; }
.desk-icon:hover { background: rgba(255, 255, 255, .14); border-color: transparent; }
.desk-icon:hover img { transform: none; }
.window {
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.window-bar {
  height: 38px;
  padding: 0 0 0 12px;
  background: rgba(249, 249, 249, .96);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none;
  backdrop-filter: blur(20px);
}
.window-title { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; color: #202020; text-shadow: none; }
.window-orn { display: none; }
.window-controls { height: 100%; gap: 0; }
.w-btn { width: 46px; height: 100%; border-radius: 0; color: #333; font-size: 11px; }
.w-btn:hover { background: #e9e9e9; color: #111; }
.w-btn.close:hover { background: #c42b1c; color: #fff; }
.window-body { background: #fff; }
.window::after { display: none; }
.window.is-maximized { left: 0; top: 0; right: 0; bottom: calc(var(--taskbar-h) + var(--safe-b)); border-radius: 0; }
.taskbar {
  height: calc(48px + var(--safe-b));
  padding: 0 18px var(--safe-b);
  background: rgba(24, 24, 24, .68);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none;
  backdrop-filter: blur(24px);
}
.taskbar-clock { color: #fff; font-size: 12px; min-width: 82px; letter-spacing: 0; line-height: 1.35; text-shadow: none; }
.taskbar-clock small { display: block; font-size: 10px; color: rgba(255, 255, 255, .9); letter-spacing: .02em; }
.modal-layer { background: rgba(0, 0, 0, .38); backdrop-filter: blur(2px); }
.modal {
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  padding: 30px 32px 26px;
}
.modal::before, .modal::after { display: none; }
.frame-corner { display: none; }
.modal-kicker { color: #666; letter-spacing: .12em; }
.modal h2 { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: 0; color: #1b1b1b; }
.modal p { color: #444; font-size: 13px; line-height: 1.8; letter-spacing: 0; }
.btn {
  min-width: 96px;
  padding: 8px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fbfbfb;
  color: #1b1b1b;
  font-size: 12.5px;
  letter-spacing: 0;
  text-indent: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.btn:hover { border-color: #b8b8b8; background: #f3f3f3; box-shadow: none; }
.btn.primary { background: #0067c0; border-color: #0067c0; color: #fff; }
.btn.primary:hover { background: #005a9e; border-color: #005a9e; }
.btn.ghost { background: transparent; color: #333; border-color: #d0d0d0; }
.btn.ghost:hover { background: #f0f0f0; color: #111; border-color: #b8b8b8; }
@media (max-width: 760px) {
  :root { --taskbar-h: 52px; }
  .window { left: 0; right: 0; top: 0; bottom: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .window-bar { height: 48px; padding-left: 12px; }
  .w-btn.max { display: none; }
  .desk-icon img { width: 54px; height: 54px; }
  .taskbar { height: calc(52px + var(--safe-b)); padding-inline: 14px; }
  .taskbar-clock { min-width: 74px; font-size: 12px; }
  .modal { padding: 24px 20px 20px; border-radius: 8px; }
  .stage-toast { left: 16px; right: 16px; bottom: calc(var(--taskbar-h) + 16px); max-width: none; }
}

.window-icon { width: 16px; height: 16px; display: block; flex: 0 0 auto; }

:root { --taskbar-h: 0px; }
.taskbar { display: none !important; }
.stage-toast {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  animation: none;
  padding: 20px 30px;
  font-size: 15px;
  text-align: center;
}