/* ============================================================
 * plus.css —— Ver 1.8 新增模块样式
 * 星尘浏览器（真浏览器） / 电台播放器升级 / 星尘搜索 Spotlight
 * 设计令牌沿用 main.css：--serif --ink --gold-deep --r-card 等
 * ============================================================ */

/* ============================================================
 * 星尘浏览器 —— 工具条 + 起始页 + 网页视图
 * ============================================================ */

.sd { display: flex; flex-direction: column; height: 100%; background: var(--paper-2, #f6f1e7); }

.sd-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .66);
  border-bottom: 1px solid rgba(28, 36, 64, .09);
  flex: none;
}
.sd-nav {
  width: 30px; height: 30px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9px; background: none; color: inherit; cursor: pointer;
  transition: background .15s ease;
}
.sd-nav:hover:not(:disabled) { background: rgba(28, 36, 64, .07); }
.sd-nav:disabled { opacity: .28; cursor: default; }
.sd-nav svg { width: 16px; height: 16px; }

.sd-addr {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 13px;
  background: #fff;
  border: 1px solid rgba(28, 36, 64, .13);
  border-radius: 999px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sd-addr:focus-within { border-color: rgba(185, 138, 47, .55); box-shadow: 0 0 0 3px rgba(217, 169, 79, .18); }
.sd-addr > svg { width: 13px; height: 13px; flex: none; opacity: .4; }
.sd-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit; font-size: 13px; color: var(--ink);
}

.sd-view { flex: 1; min-height: 0; position: relative; }

/* --- 起始页 --- */
.sd-home { height: 100%; overflow-y: auto; padding: 26px clamp(16px, 4vw, 42px) 34px; }
.sd-hero { text-align: center; margin-bottom: 24px; }
.sd-hero h3 {
  font-family: var(--serif); font-size: 20px;
  letter-spacing: var(--ls-wide, .18em); text-indent: var(--ls-wide, .18em);
  color: var(--ink);
}
.sd-hero p { font-size: 11.5px; color: var(--ink-faint); margin-top: 7px; letter-spacing: .1em; }

.sd-recent { margin-top: 26px; }
.sd-recent-title {
  font-size: 10.5px; letter-spacing: .16em; color: var(--ink-faint);
  margin-bottom: 10px; text-align: center;
}
.sd-chip {
  display: inline-block; margin: 0 8px 8px 0; padding: 6px 14px;
  font: inherit; font-size: 12px; color: var(--ink-soft);
  background: #fff; border: 1px solid rgba(28, 36, 64, .1);
  border-radius: 999px; cursor: pointer; transition: .18s ease;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sd-chip:hover { border-color: rgba(185, 138, 47, .5); color: var(--gold-deep); transform: translateY(-1px); }

/* --- 网页视图 --- */
.sd-web { position: absolute; inset: 0; }
.sd-frame { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.sd-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--paper-2, #f6f1e7);
  font-size: 13px; color: var(--ink-faint); letter-spacing: .06em;
  transition: opacity .3s ease;
}
.sd-loading.gone { opacity: 0; pointer-events: none; }
.sd-spinner {
  width: 16px; height: 16px; flex: none;
  border: 1.6px solid rgba(185, 138, 47, .25); border-top-color: var(--gold-deep);
  border-radius: 50%; animation: sd-spin .8s linear infinite;
}
@keyframes sd-spin { to { transform: rotate(360deg); } }
.sd-note {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 3; max-width: 86%;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(24, 28, 48, .82); color: rgba(245, 240, 230, .92);
  font-size: 11.5px; letter-spacing: .04em; text-align: center;
  backdrop-filter: blur(6px);
  transition: opacity .8s ease;
}
.sd-note.fade { opacity: 0; pointer-events: none; }

/* ============================================================
 * 星尘电台 —— 播放器升级（唱片 / 上一首下一首 / 进度条）
 * ============================================================ */

.radio-disc {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 248, 234, .95);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 234, .9) 0 3px, transparent 3.5px),
    repeating-radial-gradient(circle at 50% 50%, #2b2640 0 2.5px, #38315a 2.5px 5px);
  box-shadow: 0 4px 14px rgba(20, 16, 44, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.radio-disc svg { width: 17px; height: 17px; }
.radio-disc.spin { animation: sd-spin 5s linear infinite; }

.radio-skip {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(28, 36, 64, .12);
  background: none; color: inherit; cursor: pointer;
}
.radio-skip svg { width: 16px; height: 16px; }
.radio-skip:hover:not(:disabled) { border-color: rgba(185, 138, 47, .5); color: var(--gold-deep); }
.radio-skip:disabled { opacity: .3; cursor: default; }

.radio-prog-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.radio-prog { flex: 1; height: 22px; accent-color: #d9a94f; min-width: 0; }
.radio-time {
  font-size: 10.5px; opacity: .55; flex: none; min-width: 30px; text-align: center;
  font-variant-numeric: tabular-nums;
}

.radio-track { position: relative; }
.radio-track.on {
  border-color: rgba(185, 138, 47, .55);
  color: var(--gold-deep);
}
.radio-track.on::before {
  content: '♪'; margin-right: 6px; color: var(--gold-deep);
}

/* ============================================================
 * 星尘搜索 Spotlight
 * ============================================================ */

#spotlight-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; justify-content: center; align-items: flex-start;
  background: rgba(10, 16, 36, .3);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: sp-fade .16s ease;
}
#spotlight-overlay[hidden] { display: none; }
@keyframes sp-fade { from { opacity: 0; } }

#spotlight-panel {
  margin-top: 13vh;
  width: min(560px, 92vw);
  background: rgba(253, 251, 245, .97);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(8, 14, 34, .38);
  overflow: hidden;
  color: #2a2f45;
  animation: sp-pop .22s cubic-bezier(.34, 1.45, .64, 1);
}
@keyframes sp-pop { from { opacity: 0; transform: translateY(-10px) scale(.97); } }

.sp-input-row {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 17px;
  border-bottom: 1px solid rgba(28, 36, 64, .08);
}
.sp-input-row > svg { width: 17px; height: 17px; flex: none; opacity: .45; }
.sp-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit; font-size: 16px; color: #2a2f45;
}

.sp-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.sp-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 9px 10px;
  border: 0; background: none; border-radius: 12px;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.sp-item.sel { background: rgba(217, 169, 79, .18); }
.sp-ico {
  width: 31px; height: 31px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: rgba(28, 36, 64, .06); color: #8a6a1f;
}
.sp-ico svg { width: 17px; height: 17px; }
.sp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sp-name { font-size: 14px; }
.sp-desc {
  font-size: 11px; opacity: .5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-kind { font-size: 10px; letter-spacing: .12em; opacity: .45; flex: none; }

.sp-hint, .sp-empty {
  padding: 24px 18px; text-align: center;
  font-size: 12.5px; opacity: .5; line-height: 1.8;
}
.sp-foot {
  display: flex; gap: 18px; justify-content: center;
  padding: 8px; font-size: 10.5px; opacity: .45;
  border-top: 1px solid rgba(28, 36, 64, .06);
}

/* 菜单栏放大镜按钮沿用 .menubar-icon，这里只微调 hover */
#spotlight-toggle:hover { color: var(--gold, #f2c96b); }

/* 移动端：搜索面板更贴顶 */
@media (max-width: 767px) {
  #spotlight-panel { margin-top: 8vh; }
  .sd-bar { flex-wrap: wrap; }
  .sd-addr { order: 2; flex-basis: 100%; }
}


/* ============================================================
 * 音乐 —— 「本地曲目」专用播放器
 * 封面：CSS 渐变 + 内嵌唱片，色调随曲目 --hue 切换
 * ============================================================ */

.music {
  display: flex; flex-direction: column; gap: 14px;
  height: 100%; overflow-y: auto;
  padding: 18px 22px 20px;
}

.music-cover {
  width: min(196px, 62%);
  aspect-ratio: 1;
  margin: 2px auto 0;
  flex: none;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 216) 64% 76%),
    hsl(calc(var(--hue, 216) + 44) 56% 50%)
  );
  box-shadow:
    0 16px 36px hsl(var(--hue, 216) 45% 42% / .32),
    inset 0 0 0 1px rgba(255, 255, 255, .38);
  transition: background .55s ease;
}
.music-cover-disc {
  width: 58%; aspect-ratio: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 249, 236, .95);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 249, 236, .95) 0 7%, transparent 7.8%),
    repeating-radial-gradient(circle at 50% 50%, #241f3c 0 2.5px, #332c52 2.5px 5px);
  box-shadow: 0 6px 18px rgba(18, 14, 40, .42), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.music-cover-disc svg { width: 26px; height: 26px; }
.music-cover.spin .music-cover-disc { animation: sd-spin 6s linear infinite; }

.music-now { text-align: center; }
.music-now-title {
  font-family: var(--serif); font-size: 16.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-now-sub { font-size: 11px; color: var(--ink-faint); margin-top: 3px; letter-spacing: .12em; }

.music-prog-row { display: flex; align-items: center; gap: 8px; }
.music-prog { flex: 1; min-width: 0; height: 22px; accent-color: #d9a94f; }
.music-time {
  font-size: 10.5px; color: var(--ink-faint); flex: none; min-width: 30px; text-align: center;
  font-variant-numeric: tabular-nums;
}

.music-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.music-skip {
  width: 36px; height: 36px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(28, 36, 64, .13);
  background: none; color: var(--ink-soft); cursor: pointer;
  transition: .16s ease;
}
.music-skip svg { width: 16px; height: 16px; }
.music-skip:hover:not(:disabled) { border-color: rgba(185, 138, 47, .5); color: var(--gold-deep); transform: translateY(-1px); }
.music-skip:disabled { opacity: .3; cursor: default; }
.music-play {
  width: 52px; height: 52px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(160deg, #ecc271, var(--gold-deep));
  color: #fff8ea;
  box-shadow: 0 8px 20px rgba(185, 138, 47, .4);
  transition: .16s ease;
}
.music-play svg { width: 22px; height: 22px; }
.music-play:hover { filter: brightness(1.06); transform: scale(1.05); }

.music-list { display: flex; flex-direction: column; gap: 6px; }
.music-track {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 13px;
  font: inherit; font-size: 13px; text-align: left;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(28, 36, 64, .1);
  border-radius: 12px; cursor: pointer;
  transition: .16s ease;
}
.music-track:hover { border-color: rgba(185, 138, 47, .45); transform: translateY(-1px); }
.music-track.on {
  background: rgba(217, 169, 79, .13);
  border-color: rgba(185, 138, 47, .55);
  color: var(--gold-deep);
}
.music-track-note { flex: none; width: 16px; text-align: center; color: var(--gold-deep); opacity: .8; }
.music-track-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.music-vol { display: flex; align-items: center; gap: 10px; }
.music-mute {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(28, 36, 64, .12);
  background: none; color: var(--ink-soft); cursor: pointer;
}
.music-mute svg { width: 17px; height: 17px; }
.music-mute.on { color: var(--gold-deep); border-color: rgba(185, 138, 47, .5); }
.music-slider { flex: 1; min-width: 0; height: 26px; accent-color: #d9a94f; }

/* 磨砂深色窗口适配（theme-night 下窗口仍是奶白纸面，无需另配） */
#desktop.frosted .music-now-title { color: #f5eeda; }
#desktop.frosted .music-now-sub, #desktop.frosted .music-time { color: rgba(245, 240, 230, .5); }
#desktop.frosted .music-track {
  background: rgba(245, 240, 230, .06);
  border-color: rgba(245, 240, 230, .13);
  color: rgba(245, 240, 230, .85);
}
#desktop.frosted .music-track:hover { border-color: rgba(242, 201, 107, .5); }
#desktop.frosted .music-track.on { background: rgba(242, 201, 107, .14); border-color: rgba(242, 201, 107, .55); color: #f7ecd2; }
#desktop.frosted .music-skip, #desktop.frosted .music-mute { border-color: rgba(245, 240, 230, .18); color: rgba(245, 240, 230, .75); }

/* ============================================================
 * 扫雷 —— 纯 DOM 网格
 * ============================================================ */

.mines {
  display: flex; flex-direction: column; gap: 10px;
  height: 100%; padding: 12px 14px 14px;
  user-select: none;
  --cell: 28px;
}

.mines-bar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 12px;
  background: rgba(28, 36, 64, .05);
  border: 1px solid rgba(28, 36, 64, .07);
  border-radius: 12px;
}
.mines-led {
  min-width: 52px; padding: 5px 8px;
  text-align: center; letter-spacing: 2px;
  font: 700 16px/1.2 ui-monospace, "SF Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: #f2c96b; background: #241f3c;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(10, 8, 24, .6);
}
.mines-face {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(28, 36, 64, .14);
  background: #fff; color: var(--gold-deep);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: .15s ease;
}
.mines-face:hover { border-color: rgba(185, 138, 47, .55); transform: scale(1.08); }
.mines-face:active { transform: scale(.94); }

.mines-levels { flex: none; display: flex; justify-content: center; gap: 6px; }
.mines-lv {
  padding: 4px 14px;
  font: inherit; font-size: 12px; color: var(--ink-soft);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(28, 36, 64, .1);
  border-radius: 999px; cursor: pointer;
  transition: .16s ease;
}
.mines-lv:hover { border-color: rgba(185, 138, 47, .45); color: var(--gold-deep); }
.mines-lv.on { background: rgba(217, 169, 79, .15); border-color: rgba(185, 138, 47, .55); color: var(--gold-deep); }

.mines-board {
  flex: 1; min-height: 0; overflow: auto;
  display: grid;
  grid-template-columns: repeat(var(--cols, 9), var(--cell));
  grid-auto-rows: var(--cell);
  gap: 3px;
  align-content: start; justify-content: center;
  padding: 10px;
  background: rgba(28, 36, 64, .045);
  border: 1px solid rgba(28, 36, 64, .07);
  border-radius: 14px;
}

.mines-cell {
  width: var(--cell); height: var(--cell);
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 7px;
  background: linear-gradient(160deg, #f6efdd, #e7dcc2);
  box-shadow: 0 1.5px 0 rgba(28, 36, 64, .14), inset 0 0 0 1px rgba(255, 255, 255, .5);
  font: 700 14px/1 var(--sans, system-ui, sans-serif);
  color: var(--ink);
  cursor: pointer;
  transition: filter .12s ease;
}
.mines-cell:hover:not(.open):not(.flag) { filter: brightness(1.06); }
.mines-cell.open {
  background: #fbf7ec;
  box-shadow: inset 0 1px 3px rgba(28, 36, 64, .13);
  cursor: default;
  animation: mines-pop .14s ease;
}
@keyframes mines-pop { from { transform: scale(.8); } }
.mines-cell svg { width: 15px; height: 15px; }
.mines-cell.flag { font-size: 14px; }
.mines-cell.mine { color: #241f3c; }
.mines-cell.boom { background: #dd6a52; color: #fff; }
.mines-cell.wrong { background: #f6e3dd; position: relative; color: #241f3c; }
.mines-cell.wrong::after {
  content: '✕'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #c0392b; font-size: 15px; font-weight: 700;
}

/* 经典数字配色 */
.mines-cell.n1 { color: #3a6bc4; }
.mines-cell.n2 { color: #3e8a4f; }
.mines-cell.n3 { color: #c0503a; }
.mines-cell.n4 { color: #5a4a9e; }
.mines-cell.n5 { color: #8a4a2f; }
.mines-cell.n6 { color: #2f8a8a; }
.mines-cell.n7 { color: #3a3a4e; }
.mines-cell.n8 { color: #8a8a96; }

/* 磨砂深色窗口适配 */
#desktop.frosted .mines-bar, #desktop.frosted .mines-board { background: rgba(245, 240, 230, .05); border-color: rgba(245, 240, 230, .1); }
#desktop.frosted .mines-face { background: rgba(245, 240, 230, .1); border-color: rgba(245, 240, 230, .2); color: var(--gold); }
#desktop.frosted .mines-lv { background: rgba(245, 240, 230, .06); border-color: rgba(245, 240, 230, .13); color: rgba(245, 240, 230, .8); }
#desktop.frosted .mines-lv.on { background: rgba(242, 201, 107, .14); border-color: rgba(242, 201, 107, .55); color: #f7ecd2; }
#desktop.frosted .mines-cell {
  background: rgba(245, 240, 230, .16);
  box-shadow: 0 1.5px 0 rgba(10, 8, 24, .4), inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: rgba(245, 240, 230, .92);
}
#desktop.frosted .mines-cell.open { background: rgba(245, 240, 230, .06); box-shadow: inset 0 1px 3px rgba(10, 8, 24, .4); }
#desktop.frosted .mines-cell.mine { color: #f5eeda; }
#desktop.frosted .mines-cell.wrong { background: rgba(221, 106, 82, .18); color: #f5eeda; }
#desktop.frosted .mines-cell.n1 { color: #8fb1ec; }
#desktop.frosted .mines-cell.n2 { color: #8fd09e; }
#desktop.frosted .mines-cell.n3 { color: #ef9a89; }
#desktop.frosted .mines-cell.n4 { color: #b3a4ec; }
#desktop.frosted .mines-cell.n5 { color: #dda583; }
#desktop.frosted .mines-cell.n6 { color: #8cd0d0; }
#desktop.frosted .mines-cell.n7 { color: #c9c9da; }
#desktop.frosted .mines-cell.n8 { color: #9a9aa8; }

/* 移动端：窗口全屏，格子略缩、棋盘可滚动 */
@media (max-width: 767px) {
  .mines { --cell: 26px; }
  .music-cover { width: min(170px, 56%); }
}

/* ============================================================
 * 沉浸式网页浏览 —— 工具条自动收起 / 真·全屏
 * ============================================================ */
.sd { position: relative; }

/* 打开网页后：工具条浮在网页之上，默认收起 */
.sd-immersive .sd-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 36, 64, .07);
  box-shadow: 0 8px 24px rgba(20, 26, 46, .12);
  transform: translateY(-110%);
  opacity: 0; pointer-events: none;
  transition: transform .24s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.sd-immersive .sd-view { position: absolute; inset: 0; }

/* 顶部感应带：鼠标靠近才浮出（桌面端） */
.sd-hot { display: none; }
.sd-immersive .sd-hot {
  display: block; position: absolute; top: 0; left: 0; right: 0; height: 16px; z-index: 7;
}
.sd-immersive:has(.sd-hot:hover) .sd-bar,
.sd-immersive:has(.sd-handle:hover) .sd-bar,
.sd-immersive .sd-hot:hover ~ .sd-bar,
.sd-immersive .sd-bar:hover,
.sd-immersive .sd-bar:focus-within,
.sd-immersive.bar-open .sd-bar {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.sd-immersive.bar-open .sd-hot { height: 0; }

/* 触摸端可点的小把手 */
.sd-handle {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 8; width: 46px; height: 18px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0 0 12px 12px; cursor: pointer;
  background: rgba(255, 255, 255, .55);
  color: var(--ink-soft, #4a5170);
  opacity: .35; transition: opacity .2s ease, background .2s ease;
}
.sd-handle:hover { opacity: 1; background: rgba(255, 255, 255, .9); }
.sd-handle svg { width: 14px; height: 14px; }
.sd-immersive.bar-open .sd-handle { opacity: 0; pointer-events: none; }

/* 真·全屏：窗口铺满整个屏幕，标题栏与桌面 Dock 全部让位 */
.win.win-fullscreen,
.win:fullscreen {
  width: 100% !important; height: 100% !important;
  top: 0 !important; left: 0 !important;
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important;
}
.win:fullscreen .win-titlebar { display: none; }
.win:fullscreen .win-body { height: 100%; }

/* ============ 多任务管理（调度中心）============ */
#mission-toggle { position: relative; }
#mission-toggle.is-on { color: var(--accent, #e8c37a); }
#mission-toggle .mc-badge {
  position: absolute; top: 1px; right: 0;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 999px; background: rgba(232,195,122,.9); color: #241d13;
  font-size: 9px; line-height: 14px; text-align: center; font-weight: 600;
}

#mission-control {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; flex-direction: column;
  padding: 44px 26px 26px;
  background: rgba(14, 18, 28, .58);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  opacity: 0; transition: opacity .24s ease;
}
#mission-control.show { opacity: 1; }
#mission-control .mc-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; color: rgba(245,240,230,.9);
}
#mission-control .mc-title { font-size: 15px; letter-spacing: .12em; }
#mission-control .mc-count { font-size: 12px; opacity: .6; }
#mission-control .mc-spacer { flex: 1; }
#mission-control .mc-head button {
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; color: rgba(245,240,230,.9);
  border: 1px solid rgba(245,240,230,.28); background: rgba(255,255,255,.06);
  transition: background .2s ease, border-color .2s ease;
}
#mission-control .mc-head button:hover { background: rgba(255,255,255,.14); }

#mission-control .mc-grid {
  flex: 1; overflow: auto;
  display: grid; gap: 16px; align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  padding-bottom: 90px;
}
#mission-control .mc-card {
  position: relative; cursor: pointer;
  min-height: 132px; padding: 14px 14px 12px;
  border-radius: 16px; border: 1px solid rgba(245,240,230,.16);
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  color: rgba(245,240,230,.92);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease, opacity .25s ease;
}
#mission-control .mc-card:hover,
#mission-control .mc-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(232,195,122,.6);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  outline: none;
}
#mission-control .mc-card.is-min { opacity: .62; }
#mission-control .mc-card.closing { opacity: 0; transform: scale(.94); }
#mission-control .mc-card-top { display: flex; align-items: center; gap: 9px; }
#mission-control .mc-icon { font-size: 19px; line-height: 1; display: inline-flex; }
#mission-control .mc-icon svg { width: 19px; height: 19px; }
#mission-control .mc-name {
  font-size: 14px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#mission-control .mc-preview {
  flex: 1; font-size: 12px; line-height: 1.7; opacity: .72;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
#mission-control .mc-dim { opacity: .5; }
#mission-control .mc-state { font-size: 11px; opacity: .5; letter-spacing: .04em; }
#mission-control .mc-x {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(245,240,230,.22); background: rgba(0,0,0,.28);
  color: rgba(245,240,230,.85); font-size: 11px; line-height: 1;
}
#mission-control .mc-x:hover { background: rgba(214,102,88,.75); border-color: transparent; }
#mission-control .mc-empty {
  grid-column: 1 / -1; margin-top: 16vh; text-align: center;
  color: rgba(245,240,230,.7); font-size: 14px; line-height: 2.2;
}
#mission-control .mc-empty span { font-size: 12px; opacity: .6; }

@media (max-width: 720px) {
  #mission-control { padding: 40px 14px 14px; }
  #mission-control .mc-grid {
    grid-template-columns: 1fr; gap: 12px; padding-bottom: 110px;
  }
  #mission-control .mc-card { min-height: 104px; padding: 14px 46px 12px 14px; }
  #mission-control .mc-x { width: 30px; height: 30px; font-size: 13px; top: 10px; right: 10px; }
  #mission-control .mc-head button { padding: 8px 16px; }
}

/* ============================================================
 * 移动端视角浏览 —— 管理员可把某个网页设为手机比例打开
 * 网页被约束在一台居中的「手机」里，站点自然返回移动端布局
 * ============================================================ */
.mv-web.is-mobile {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.10), transparent 70%),
    rgba(18, 20, 30, .55);
}
.mv-web.is-mobile .mv-frame {
  width: min(430px, 100%);
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(245,240,230,.14);
  background: #fff;
}
.mv-browser .mv-web.is-mobile .mv-frame {
  left: 50%; right: auto;
  transform: translateX(-50%);
  top: 0; bottom: 0; height: 100%;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 12px 50px rgba(0,0,0,.35);
}
.mv-web-bar .mv-web-device.on,
.mv-web.is-mobile .mv-web-device {
  background: rgba(242, 201, 107, .32);
  color: var(--ink, #f5f0e6);
}
@media (max-width: 767px) {
  .mv-browser .mv-web.is-mobile .mv-frame { width: 100%; box-shadow: none; }
}

/* ============================================================
 * 任务栏自动隐藏 —— 平时只有底部中央一个小圆点
 * 鼠标移到圆点上（手机点一下）才浮出，显示每一扇打开的窗口
 * ============================================================ */
#dock { flex-direction: column; align-items: center; gap: 6px; }
#dock #dock-inner {
  transform: translateY(calc(100% + 22px)) scale(.94);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.22,1.15,.32,1), opacity .22s ease, background .8s ease;
}
#desktop.dock-shown #dock #dock-inner {
  transform: none; opacity: 1; pointer-events: auto;
}
#dock-dot {
  order: 2;
  pointer-events: auto;
  width: 74px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 0;
}
#dock-dot span {
  display: block; width: 34px; height: 5px; border-radius: 999px;
  background: rgba(28, 36, 64, .3);
  box-shadow: 0 1px 6px rgba(10, 21, 48, .25);
  transition: width .24s ease, background .24s ease, opacity .24s ease;
}
#desktop.theme-night #dock-dot span { background: rgba(245, 240, 230, .38); }
#dock-dot.has-win span { background: var(--gold, #f2c96b); width: 44px; }
#dock-dot:hover span { width: 56px; opacity: .95; }
#desktop.dock-shown #dock-dot span { opacity: .5; width: 26px; }

/* 每一扇窗口的小图标 + 关闭按钮 */
.dock-item.dock-win .dock-x {
  position: absolute; top: -4px; left: -5px;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1;
  background: rgba(20, 26, 44, .82);
  color: rgba(245, 240, 230, .9);
  border: 1px solid rgba(245, 240, 230, .22);
  opacity: 0; transform: scale(.7);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
  cursor: pointer;
}
.dock-item.dock-win:hover .dock-x { opacity: 1; transform: scale(1); }
.dock-item.dock-win .dock-x:hover { background: rgba(214, 102, 88, .95); }

@media (max-width: 767px) {
  #dock { overflow: visible; }
  #dock #dock-inner { max-width: 94vw; overflow-x: auto; }
  #dock-dot { width: 120px; height: 26px; }
  .dock-item.dock-win .dock-x { opacity: 1; transform: none; width: 20px; height: 20px; font-size: 11px; }
}

/* ============================================================
 * 「敬请期待」条目：专属徽记 + 小标签（不再是统一的星号）
 * ============================================================ */
.fcard.fcard-soon { position: relative; opacity: .82; }
.fcard.fcard-soon svg { width: 42%; height: 42%; opacity: .8; }
.fcard.fcard-soon .fc-soon {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .08em; white-space: nowrap;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(242, 201, 107, .18); color: var(--gold, #f2c96b);
}
.finder-grid.view-sm .fcard.fcard-soon .fc-soon,
.finder-grid.view-list .fcard.fcard-soon .fc-soon { display: none; }

/* ---------- 条目徽记：截图之外，也让人一眼认出这是什么 ---------- */
.fcard .fc-mark {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--paper, #fdf9f1) 82%, transparent);
  color: var(--ink, #3b3229);
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.fcard .fc-mark svg { width: 17px; height: 17px; transition: transform .3s ease; }
.finder-entry:hover .fcard .fc-mark {
  transform: translateY(-3px) scale(1.12) rotate(-4deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.22), 0 0 12px rgba(242,201,107,.25);
}
.finder-entry:hover .fcard .fc-mark svg { animation: df-glyph-bob 1.1s ease-in-out infinite; }
.finder-grid.view-sm .fcard .fc-mark { width: 22px; height: 22px; border-radius: 7px; left: 5px; top: 5px; }
.finder-grid.view-sm .fcard .fc-mark svg { width: 13px; height: 13px; }
.finder-grid.view-list .fcard .fc-mark { position: static; box-shadow: none; background: none; width: 22px; height: 22px; }

/* 访达全图 glyph / 文件夹卡：悬停时图标轻微浮起 */
.finder-entry:hover .fcard-glyph svg,
.finder-entry:hover .fcard-app svg,
.finder-entry:hover .fcard-folder svg {
  animation: df-glyph-bob 1.1s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(242, 201, 107, .28));
}

/* 图标选择器：更大预览 + 悬停演示悬浮动画 */
.os-glyph-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  max-height: 360px; overflow: auto; margin: 4px 0 12px;
  padding: 2px;
}
.os-glyph-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 8px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #e6ecf8; font-size: 10.5px; line-height: 1.2;
  transition: transform .22s ease, border-color .2s ease, background .2s ease, box-shadow .22s ease;
}
.os-glyph-cell .og-preview {
  width: 36px; height: 36px; border-radius: 30%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(246,207,125,.28), rgba(246,207,125,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.18);
  color: #f6cf7d;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.os-glyph-cell svg { width: 22px; height: 22px; }
.os-glyph-cell .og-preview svg { width: 58%; height: 58%; }
.os-glyph-cell:hover {
  border-color: rgba(246,207,125,.75);
  background: rgba(246,207,125,.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.os-glyph-cell:hover .og-preview {
  transform: translateY(-3px) scale(1.1) rotate(-4deg);
  box-shadow: 0 0 14px rgba(246,207,125,.35), 0 4px 10px rgba(0,0,0,.25);
}
.os-glyph-cell:hover .og-preview svg { animation: df-glyph-bob 1s ease-in-out infinite; }
.os-glyph-cell.active {
  border-color: rgba(246,207,125,.95);
  box-shadow: 0 0 0 2px rgba(246,207,125,.4);
  background: rgba(246,207,125,.16);
}
.os-glyph-cell span { opacity: .88; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-glyph-filter {
  width: 100%; box-sizing: border-box;
  margin: 0 0 10px; padding: 8px 12px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22); color: #e6ecf8; font-size: 13px;
  outline: none;
}
.os-glyph-filter:focus { border-color: rgba(246,207,125,.55); }
.os-glyph-filter::placeholder { color: rgba(230,236,248,.45); }

/* ============================================================
 * 天光设置：四季 + 天气 + 时刻
 * 贴在右上角月亮图标旁悬停浮现（不占底部、不长驻）
 * ============================================================ */
#sky-panel {
  position: fixed; z-index: 3000;
  /* top/right 由 JS 按 theme-toggle 位置写入 */
  top: 40px;
  right: 12px;
  width: min(420px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 12px 12px;
  border-radius: 16px;
  background: rgba(14, 18, 34, 0.78);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(245, 240, 230, 0.18);
  box-shadow: 0 14px 40px rgba(8, 12, 26, 0.42);
  color: rgba(245, 240, 230, 0.94);
  display: flex; flex-direction: column; gap: 9px;
  animation: skyPopIn 0.2s cubic-bezier(.2,.9,.3,1);
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 201, 107, 0.35) transparent;
}
#sky-panel.out { animation: skyPopOut 0.16s ease forwards; }
@keyframes skyPopIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes skyPopOut {
  to { opacity: 0; transform: translateY(-4px) scale(0.98); }
}
#sky-panel:hover { background: rgba(14, 18, 34, 0.86); }

.sp-row { display: flex; align-items: center; gap: 8px; }
.sp-label { flex: 0 0 auto; width: 28px; font-size: 11px; letter-spacing: 0.16em; opacity: 0.6; }
.sp-chips { display: flex; gap: 5px; flex: 1; flex-wrap: wrap; }
.sp-chip {
  flex: 1 1 auto; min-width: 2.2em; padding: 6px 4px; border-radius: 10px;
  font-size: 12px; letter-spacing: 0.04em;
  border: 1px solid rgba(245, 240, 230, 0.18);
  background: rgba(245, 240, 230, 0.06); color: inherit; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.sp-chip:hover { transform: translateY(-1px); background: rgba(245, 240, 230, 0.14); }
.sp-chip.on { background: rgba(242, 201, 107, 0.34); border-color: rgba(242, 201, 107, 0.72); }

.sp-row-time { gap: 8px; flex-wrap: wrap; }
.sp-time-now {
  flex: 0 0 auto; font-family: var(--serif); font-size: 12px;
  letter-spacing: 0.04em; opacity: 0.9; white-space: nowrap;
}
.sp-auto {
  flex: 0 0 auto; font-size: 11px; letter-spacing: 0.08em;
  opacity: 0.55; background: rgba(245, 240, 230, 0.08);
  border: 1px solid rgba(245, 240, 230, 0.18); border-radius: 999px;
  color: inherit; cursor: pointer; padding: 4px 10px;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.sp-auto:hover { opacity: 0.95; background: rgba(245, 240, 230, 0.14); }
.sp-auto.on {
  opacity: 1;
  background: rgba(242, 201, 107, 0.28);
  border-color: rgba(242, 201, 107, 0.7);
  color: #FFE9A3;
}
.sp-slider {
  -webkit-appearance: none; appearance: none;
  flex: 1 1 100px; min-width: 80px; height: 8px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, #16203F 0%, #2A3A6B 18%, #C97B8A 27%, #F2A65A 32%,
    #BFE0F0 44%, #C2DEE4 60%, #F2A65A 74%, #C97B8A 80%, #2A3A6B 90%, #0E1230 100%);
}
.sp-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #FBF6EC; border: 2px solid rgba(242, 201, 107, 0.9);
  box-shadow: 0 2px 8px rgba(20, 26, 48, 0.3);
}
.sp-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #FBF6EC; border: 2px solid rgba(242, 201, 107, 0.9);
}

/* 背景主题：可滚动网格 chip */
.sp-row-bg { align-items: flex-start; }
.sp-row-bg .sp-label { padding-top: 8px; }
.sp-bg-chips {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px !important;
  flex: 1;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.sp-chip.sp-bg {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 7px 2px 6px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.sp-bg-ico { font-size: 15px; line-height: 1; }
.sp-bg-lab {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  #sky-panel { width: min(340px, calc(100vw - 20px)); padding: 10px; gap: 8px; }
  .sp-label { width: 24px; font-size: 10px; letter-spacing: 0.1em; }
  .sp-chip { font-size: 11.5px; padding: 7px 2px; }
  .sp-time-now { font-size: 11px; }
  .sp-bg-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 180px; }
}


/* ===== 驾驶小飞机：飞行时收起射击按钮，「跳」变成油门 ===== */
#fp-ui.fly-on #fp-shoot { display: none !important; }
#fp-ui.fly-on #fp-jump { border-color: rgba(143,211,232,.55); color: rgba(226,246,255,.95); }

/* ============================================================
 * 许愿星（wish.js）：写一句话，点亮夜空里的一颗星
 * ============================================================ */
.wish { display: flex; flex-direction: column; gap: 16px; padding: 4px 2px 10px; }
.wish-head h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: .06em; }
.wish-head p { margin: 0; font-size: 12.5px; line-height: 1.9; opacity: .68; }
.wish-form { display: flex; flex-direction: column; gap: 10px; }
.wish-input,
.wish-author {
  width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit; font: inherit; font-size: 13.5px; line-height: 1.8;
  resize: none; outline: none; transition: border-color .2s ease, background .2s ease;
}
.wish-input:focus, .wish-author:focus { border-color: rgba(242, 201, 107, .6); }
.wish-row { display: flex; gap: 10px; align-items: center; }
.wish-author { flex: 1; }
.wish-send {
  flex: none; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(242, 201, 107, .55);
  background: linear-gradient(140deg, rgba(242, 201, 107, .22), rgba(242, 201, 107, .06));
  color: inherit; font: inherit; font-size: 13px; letter-spacing: .05em;
  transition: transform .18s ease, box-shadow .25s ease;
}
.wish-send:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(242, 201, 107, .22); }
.wish-send:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.wish-msg { min-height: 18px; font-size: 12px; opacity: .7; }
.wish-list { display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.wish-count { font-size: 11.5px; letter-spacing: .1em; opacity: .5; margin-bottom: 2px; }
.wish-loading { font-size: 13px; opacity: .55; padding: 18px 0; text-align: center; }
.wish-card {
  display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.wish-card.is-mine { border-color: rgba(242, 201, 107, .45); }
.wish-dot {
  flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%;
  background: rgba(242, 201, 107, .9); box-shadow: 0 0 10px rgba(242, 201, 107, .8);
  animation: wish-twinkle 3.4s ease-in-out infinite;
}
.wish-card:nth-child(3n) .wish-dot { animation-delay: -1.1s; }
.wish-card:nth-child(3n+1) .wish-dot { animation-delay: -2.3s; }
@keyframes wish-twinkle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.wish-body p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.85; }
.wish-meta { font-size: 11.5px; opacity: .5; }
@media (prefers-reduced-motion: reduce) { .wish-dot { animation: none; } }

/* ===== 声音面板：菜单栏音符悬停/点开的小抽屉（与天光面板同一套交互） ===== */
.sound-panel {
  position: fixed; z-index: 9000;
  /* 固定几何：换页时不收窄、不塌高度，避免指针突然落在面板外 */
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  min-height: 400px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(22, 26, 42, .94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
  color: #eef1f8;
  animation: sp-in .18s ease both;
  pointer-events: auto;
  max-height: min(72vh, 540px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.sound-panel.is-mobile {
  width: min(380px, calc(100vw - 20px));
  min-width: 0;
  max-width: calc(100vw - 20px);
  min-height: min(420px, 70vh);
  max-height: min(70vh, 560px);
  padding: 12px 10px 10px;
}
.sound-panel.is-pinned {
  border-color: rgba(242, 201, 107, .28);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .42), 0 0 0 1px rgba(242, 201, 107, .12);
}
@keyframes sp-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* 管理员：桌面图标可拖拽排序 / 放进文件夹 */
body.is-admin .dicon.is-draggable,
body.is-admin .dapp.is-draggable {
  cursor: grab;
}
body.is-admin .dicon.is-draggable:active,
body.is-admin .dapp.is-draggable:active {
  cursor: grabbing;
}
.dicon.dragging,
.dapp.dragging {
  opacity: 0.4;
  transform: scale(0.96);
}
.dicon.drop-over,
.dapp.drop-over {
  outline: 2px solid rgba(242, 201, 107, 0.55);
  outline-offset: 3px;
  border-radius: 14px;
}
.dicon.drop-before::before,
.dapp.drop-before::before {
  content: '';
  position: absolute;
  left: 10%; right: 10%;
  top: -4px;
  height: 3px;
  border-radius: 99px;
  background: rgba(242, 201, 107, 0.9);
  box-shadow: 0 0 10px rgba(242, 201, 107, 0.55);
  pointer-events: none;
}
.dicon.drop-after::after,
.dapp.drop-after::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%;
  bottom: -4px;
  height: 3px;
  border-radius: 99px;
  background: rgba(242, 201, 107, 0.9);
  box-shadow: 0 0 10px rgba(242, 201, 107, 0.55);
  pointer-events: none;
}
.dicon.drop-into {
  outline: 2px solid rgba(242, 201, 107, 0.95);
  outline-offset: 4px;
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(242, 201, 107, 0.35));
}
.dicon, .dapp { position: relative; }

/* 桌面图标自由摆放（绝不覆盖 fp-hidden / 城堡沉浸时的隐藏） */
#desktop-icons.free-layout {
  display: block;
  position: absolute;
  inset: 0;
  top: 40px;
  bottom: 90px;
  right: 0;
  left: 0;
  max-height: none !important;
  pointer-events: none;
}
/* 狐狸漫游 / 城堡内：强制藏起，避免 free-layout 的 display 把图标又露出来乱闪 */
#desktop.fp-hidden #desktop-icons,
#desktop.fp-hidden #desktop-icons.free-layout,
body.fox-roam #desktop #desktop-icons,
body.fox-roam #desktop #desktop-icons.free-layout,
body.castle-inside #desktop #desktop-icons,
body.castle-inside #desktop #desktop-icons.free-layout {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#desktop-icons.free-layout .dicon,
#desktop-icons.free-layout .dapp {
  position: absolute;
  pointer-events: auto;
  margin: 0;
  z-index: 3;
  transition: box-shadow 0.15s ease;
}
#desktop-icons.free-layout .dicon.placing,
#desktop-icons.free-layout .dapp.placing {
  z-index: 20;
  opacity: 0.92;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.finder-entry.dragging { opacity: 0.45; }
.finder-entry.drop-over {
  outline: 2px solid rgba(242, 201, 107, 0.7);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ============================================================
 * 访客体验层：首次欢迎 / 星图 / Toast / 登录与开机润色
 * （不改文件夹内容，只提升动人度与动线）
 * ============================================================ */

/* 开机文案已迁入 main.css（.boot-tagline）；旧 .boot-value / .boot-cosmos 文案类已废弃 */
/* 登录：标语 */
.login-value {
  margin: 6px 0 0;
  max-width: 18em;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 230, 0.58);
  text-align: center;
}
.login-cosmos {
  margin: 8px 0 0;
  max-width: 18em;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: rgba(242, 201, 107, 0.58);
  text-align: center;
}
/* 移动端登录：黄昏暖色文案 */
@media (max-width: 768px) {
  .login-value { color: rgba(255, 236, 210, 0.78); }
  .login-cosmos { color: rgba(255, 214, 140, 0.88); }
}

/* Toast */
#os-exp-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 440px);
}
.os-exp-toast-item {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 107, 0.32);
  background: rgba(14, 20, 40, 0.78);
  color: rgba(245, 240, 230, 0.94);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.os-exp-toast-item.on { opacity: 1; transform: translateY(0); }
body.fox-roam #os-exp-toast,
body.castle-inside #os-exp-toast {
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

/* 菜单栏星图角标 */
#os-star-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 240, 230, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 240, 230, 0.78);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#os-star-chip .osc-ico { color: #f2c96b; font-size: 12px; }
#os-star-chip.has-stars {
  border-color: rgba(242, 201, 107, 0.4);
  background: rgba(242, 201, 107, 0.1);
  color: rgba(255, 236, 190, 0.95);
}
#os-star-chip:hover {
  border-color: rgba(242, 201, 107, 0.55);
  background: rgba(242, 201, 107, 0.16);
}
#desktop.theme-night #os-star-chip,
#desktop.theme-snow #os-star-chip { /* 夜态沿用 */ }

/* 首次欢迎 / 星图面板 */
#os-exp-panel {
  position: fixed; inset: 0; z-index: 20050;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 14px;
  opacity: 0;
  transition: opacity 0.28s ease;
}
#os-exp-panel.on { opacity: 1; }
#os-exp-panel .os-exp-scrim {
  position: absolute; inset: 0;
  background: rgba(6, 10, 22, 0.58);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
#os-exp-panel .os-exp-card {
  position: relative;
  width: min(440px, calc(100vw - 28px));
  max-height: min(86vh, 640px);
  overflow: auto;
  padding: 26px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(242, 201, 107, 0.34);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(242, 201, 107, 0.12), transparent 55%),
    rgba(16, 22, 42, 0.94);
  color: rgba(245, 240, 230, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.34s cubic-bezier(.2,.8,.2,1);
}
#os-exp-panel.on .os-exp-card { transform: translateY(0) scale(1); }
.os-exp-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 201, 107, 0.85);
  margin-bottom: 8px;
}
.os-exp-title {
  margin: 0 0 10px;
  font-family: var(--font-serif, "Noto Serif SC", "LXGW WenKai", serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #ffe9a8;
}
.os-exp-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 230, 0.82);
}
.os-exp-soft {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.8;
  opacity: 0.62;
}
.os-exp-body { margin-bottom: 8px; }
.os-exp-line {
  font-size: 13px;
  line-height: 1.85;
  opacity: 0.88;
  padding: 2px 0;
}
.os-exp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.os-exp-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 240, 230, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease;
}
.os-exp-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 201, 107, 0.45);
  background: rgba(242, 201, 107, 0.1);
}
.os-exp-btn.primary {
  border-color: rgba(242, 201, 107, 0.55);
  background: linear-gradient(160deg, rgba(242, 201, 107, 0.28), rgba(242, 201, 107, 0.1));
}
.os-exp-btn.ghost {
  opacity: 0.78;
  border-style: dashed;
}
.os-exp-emoji {
  font-size: 18px;
  line-height: 1.4;
  width: 1.4em;
  text-align: center;
  flex: none;
}
.os-exp-btn-lab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.os-exp-btn-lab strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.os-exp-btn-lab small {
  font-size: 11.5px;
  opacity: 0.62;
  line-height: 1.5;
}

/* 首次桌面图标轻呼吸，吸引目光但不打扰 */
#desktop-icons.os-exp-breathe .dicon,
#desktop-icons.os-exp-breathe .dapp {
  animation: os-exp-breathe 2.4s ease-in-out 2;
}
@keyframes os-exp-breathe {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 10px rgba(242, 201, 107, 0.35)); }
}
@media (prefers-reduced-motion: reduce) {
  #desktop-icons.os-exp-breathe .dicon,
  #desktop-icons.os-exp-breathe .dapp { animation: none; }
  #os-exp-panel .os-exp-card { transition: none; }
}

/* 狐狸沉浸时欢迎面板必须让位 */
body.fox-roam #os-exp-panel,
body.castle-inside #os-exp-panel { display: none !important; }

@media (max-width: 640px) {
  .os-exp-title { font-size: 19px; letter-spacing: 0.08em; }
  .os-exp-btn { padding: 11px 12px; }
  #os-star-chip { padding: 2px 8px; font-size: 11px; margin-right: 4px; }

  #os-daily-chip { left: 12px; right: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-width: 52vw; }
}

/* 三步引导列表 */
.os-exp-steps {
  margin: 0 0 12px;
  padding: 0 0 0 1.15em;
  color: rgba(245, 240, 230, 0.82);
  font-size: 13.5px;
  line-height: 1.75;
}
.os-exp-steps li { margin: 0.35em 0; }
.os-exp-steps strong { color: rgba(255, 230, 180, 0.95); font-weight: 600; }

/* 今日一站 · 极简微光单行胶囊 */
#os-daily-chip {
  position: absolute;
  left: 18px;
  bottom: 22px;
  z-index: 6;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  height: 32px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 107, 0.24);
  background: rgba(18, 22, 38, 0.45);
  color: rgba(245, 240, 230, 0.9);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.22s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#os-daily-chip:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(242, 201, 107, 0.55);
  background: rgba(24, 28, 48, 0.65);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), 0 0 14px rgba(242, 201, 107, 0.18);
}
#os-daily-chip:active {
  transform: translateY(0) scale(0.98);
}
#os-daily-chip .odc-dot {
  font-size: 11px;
  color: var(--gold, #f2c96b);
  filter: drop-shadow(0 0 4px rgba(242, 201, 107, 0.7));
  animation: odc-star-breath 3s ease-in-out infinite;
  flex: none;
}
@keyframes odc-star-breath {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}
#os-daily-chip .odc-name {
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
body.fox-roam #os-daily-chip,
body.castle-inside #os-daily-chip,
body.fly-mode #os-daily-chip { display: none !important; }

/* 拖转星球提示：点击区微光 */
#desktop.os-exp-pulse-zone #desktop-click-zone,
.os-exp-pulse-zone#desktop-click-zone {
  box-shadow: inset 0 0 0 1px rgba(242, 201, 107, 0.18), inset 0 0 60px rgba(242, 201, 107, 0.08);
  animation: os-exp-zone-pulse 1.4s ease-in-out 3;
}
@keyframes os-exp-zone-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(242, 201, 107, 0.1), inset 0 0 40px rgba(242, 201, 107, 0.04); }
  50% { box-shadow: inset 0 0 0 1px rgba(242, 201, 107, 0.32), inset 0 0 70px rgba(242, 201, 107, 0.12); }
}

/* 登录紧急入口已移除：「开始体验」是唯一入口（JS 侧会清理旧版本残留的 #login-emergency） */

/* ---- 首访电影预览 / 今日一页 / 关机仪式 ---- */
.os-cine-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(242, 201, 107, 0.16);
}
.os-cine-preview > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.5;
}
.os-cine-preview span {
  flex: none;
  width: 2em;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(242, 201, 107, 0.7);
}
.os-cine-preview em {
  font-style: normal;
  color: rgba(245, 240, 230, 0.88);
}

.os-today { margin-top: 2px; }
.os-today-quote {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 2px solid rgba(242, 201, 107, 0.45);
  font-family: var(--kai, serif);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: rgba(255, 236, 210, 0.9);
  background: rgba(255, 200, 120, 0.06);
  border-radius: 0 12px 12px 0;
}

/* 星球导游：悬浮侧栏（不挡 3D，像 sound-panel） */
.os-tour-panel {
  position: fixed;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 560px);
  padding: 12px 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(242, 201, 107, 0.22);
  background: linear-gradient(165deg, rgba(22, 18, 34, 0.72), rgba(12, 12, 24, 0.62));
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  color: rgba(245, 240, 230, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.os-tour-panel.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.os-tour-panel.is-pinned {
  border-color: rgba(242, 201, 107, 0.38);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(242, 201, 107, 0.08);
}
.os-tour-panel.is-mobile {
  max-height: min(78vh, 620px);
}
.os-tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.os-tour-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(242, 201, 107, 0.75);
}
.os-tour-x {
  width: 28px; height: 28px;
  border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 240, 230, 0.7);
  font-size: 18px; line-height: 1;
  cursor: pointer;
}
.os-tour-x:hover { background: rgba(255, 255, 255, 0.12); }
.os-tour-hint {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.48);
}
.os-tour-quote {
  margin: 0 0 8px !important;
  padding: 8px 10px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}
.os-tour-progress {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(242, 201, 107, 0.75);
}
.os-tour-progress .otp-n {
  font-weight: 700;
  color: #ffd98a;
  font-size: 1.15em;
  margin-right: 2px;
}
.os-tour-scroll {
  overflow-y: auto;
  flex: 1 1 auto;
  margin: 0 -4px;
  padding: 0 4px 4px;
  -webkit-overflow-scrolling: touch;
}
.os-tour-sec { margin-bottom: 10px; }
.os-tour-sec-lab {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 230, 190, 0.48);
  margin: 0 0 6px 2px;
}
.os-tour-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.os-tour-tile {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(242, 201, 107, 0.14);
  background: rgba(8, 10, 22, 0.45);
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.os-tour-tile:hover {
  border-color: rgba(242, 201, 107, 0.4);
  background: rgba(242, 201, 107, 0.12);
  transform: translateY(-1px);
}
.os-tour-tile:active { transform: translateY(0); }
.os-tour-tile .ott-emoji {
  font-size: 16px;
  line-height: 1.2;
  flex: none;
  width: 1.25em;
  text-align: center;
}
.os-tour-tile .ott-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.os-tour-tile strong {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 245, 230, 0.95);
  letter-spacing: 0.03em;
}
.os-tour-tile small {
  font-size: 10px;
  line-height: 1.35;
  color: rgba(245, 240, 230, 0.45);
}
.os-tour-tile .ott-check {
  position: absolute;
  top: 5px; right: 6px;
  font-size: 9px;
  color: rgba(242, 201, 107, 0.85);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.os-tour-tile.tried {
  border-color: rgba(242, 201, 107, 0.3);
  background: rgba(242, 201, 107, 0.08);
}
.os-tour-tile.tried .ott-check {
  opacity: 1;
  transform: scale(1);
}
body.fox-roam .os-tour-panel,
body.castle-inside .os-tour-panel,
body.fly-mode .os-tour-panel { display: none !important; }
@media (max-width: 420px) {
  .os-tour-row { grid-template-columns: 1fr 1fr; }
}

.os-wish-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 230, 0.55);
}
.os-wish-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(242, 201, 107, 0.28);
  background: rgba(8, 12, 28, 0.55);
  color: rgba(255, 245, 230, 0.95);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  outline: none;
}
.os-wish-field input:focus {
  border-color: rgba(242, 201, 107, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 201, 107, 0.12);
}

/* 回访心情丝带 */
#os-mood-ribbon {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: min(90vw, 420px);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 107, 0.22);
  background: rgba(16, 14, 28, 0.55);
  color: rgba(255, 236, 210, 0.78);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  animation: os-mood-in 0.7s ease both;
}
@keyframes os-mood-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
body.fox-roam #os-mood-ribbon,
body.castle-inside #os-mood-ribbon { display: none !important; }

/* 回访桌面微变奏 */
#desktop.os-mood-light::before,
#desktop.os-mood-deep::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
#desktop.os-mood-light::before {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 200, 120, 0.08), transparent 60%);
}
#desktop.os-mood-deep::before {
  background: radial-gradient(ellipse 90% 55% at 50% 100%, rgba(120, 90, 200, 0.1), transparent 55%);
}
#desktop.os-mood-return #os-daily-chip {
  border-color: rgba(242, 201, 107, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 20px rgba(242, 201, 107, 0.12);
}
#os-daily-chip .odc-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.45;
  margin-top: 1px;
}

/* 关机遮罩 */
#os-sleep-overlay {
  position: fixed; inset: 0; z-index: 50000;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(60, 40, 70, 0.5), transparent 60%),
    linear-gradient(180deg, #0a0814 0%, #1a1024 50%, #0c0810 100%);
  opacity: 0;
  transition: opacity 0.7s ease;
  cursor: pointer;
}
#os-sleep-overlay[hidden] { display: none !important; }
#os-sleep-overlay.on { opacity: 1; }
.os-sleep-inner {
  text-align: center;
  padding: 24px;
  max-width: 22em;
}
.os-sleep-star {
  font-size: 28px;
  color: rgba(255, 220, 150, 0.85);
  margin-bottom: 18px;
  animation: os-sleep-pulse 2.4s ease-in-out infinite;
}
@keyframes os-sleep-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.os-sleep-quote {
  font-family: var(--kai, serif);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: rgba(255, 240, 220, 0.88);
  margin: 0 0 14px;
}
.os-sleep-wish {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(242, 201, 107, 0.7);
  margin: 0 0 28px;
}
.os-sleep-hint {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(245, 240, 230, 0.35);
  margin: 0;
}
body.os-sleeping #desktop,
body.os-sleeping #menubar,
body.os-sleeping #dock,
body.os-sleeping #os-exp-panel,
body.os-sleeping #os-exp-toast {
  pointer-events: none !important;
}

.am-sleep-ico {
  display: inline-flex;
  width: 1.2em;
  justify-content: center;
  opacity: 0.75;
}

/* ---- 星球物件摆放（管理员） ---- */
body.wp-placing #desktop-click-zone,
body.wp-placing {
  cursor: crosshair !important;
}
body.wp-placing #os-daily-chip,
body.wp-placing #os-mood-ribbon { opacity: 0.35; pointer-events: none; }

#wp-dialog {
  position: fixed; inset: 0; z-index: 14000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.28s ease;
  pointer-events: none;
}
#wp-dialog.on { opacity: 1; pointer-events: auto; }
#wp-dialog .wp-scrim {
  position: absolute; inset: 0;
  background: rgba(6, 8, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#wp-dialog .wp-card {
  position: relative; z-index: 1;
  width: min(94vw, 440px);
  max-height: min(88vh, 640px);
  overflow: auto;
  padding: 22px 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(242, 201, 107, 0.22);
  background: linear-gradient(165deg, rgba(36, 28, 48, 0.96), rgba(16, 14, 28, 0.94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: rgba(245, 240, 230, 0.92);
  -webkit-overflow-scrolling: touch;
}
#wp-dialog .wp-kicker {
  font-size: 11px; letter-spacing: 0.2em;
  color: rgba(242, 201, 107, 0.65); margin-bottom: 6px;
}
#wp-dialog .wp-title {
  margin: 0 0 8px; font-size: 20px; font-weight: 600;
  letter-spacing: 0.08em; color: #fff6e8;
}
#wp-dialog .wp-lead {
  margin: 0 0 16px; font-size: 12.5px; line-height: 1.65;
  letter-spacing: 0.04em; color: rgba(245, 240, 230, 0.55);
}
#wp-dialog .wp-sec-lab {
  font-size: 11px; letter-spacing: 0.16em;
  color: rgba(255, 220, 170, 0.5); margin: 12px 0 8px;
}
#wp-dialog .wp-kinds {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px;
}
#wp-dialog .wp-kind {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 8px; border-radius: 12px;
  border: 1px solid rgba(242, 201, 107, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: inherit; font: inherit; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#wp-dialog .wp-kind span { font-size: 20px; line-height: 1; }
#wp-dialog .wp-kind em {
  font-style: normal; font-size: 10.5px; letter-spacing: 0.06em;
  color: rgba(245, 240, 230, 0.55);
}
#wp-dialog .wp-kind.on,
#wp-dialog .wp-kind:hover {
  border-color: rgba(242, 201, 107, 0.45);
  background: rgba(242, 201, 107, 0.1);
}
#wp-dialog .wp-field {
  display: flex; flex-direction: column; gap: 6px;
  margin: 12px 0 0; font-size: 11.5px;
  letter-spacing: 0.08em; color: rgba(245, 240, 230, 0.5);
}
#wp-dialog .wp-field input[type="text"],
#wp-dialog .wp-link-row select {
  width: 100%; box-sizing: border-box;
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid rgba(242, 201, 107, 0.22);
  background: rgba(8, 10, 22, 0.55);
  color: rgba(255, 245, 230, 0.95);
  font: inherit; font-size: 13.5px; outline: none;
}
#wp-dialog .wp-link-row {
  display: flex; flex-direction: column; gap: 8px;
}
#wp-dialog .wp-type-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
}
#wp-dialog .wp-type-tab {
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid rgba(242, 201, 107, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 240, 230, 0.75);
  font: inherit; font-size: 12px; letter-spacing: 0.04em;
  cursor: pointer;
}
#wp-dialog .wp-type-tab.on,
#wp-dialog .wp-type-tab:hover {
  border-color: rgba(242, 201, 107, 0.45);
  background: rgba(242, 201, 107, 0.12);
  color: #fff6e0;
}
#wp-dialog .wp-target-box.is-hidden { display: none; }
#wp-dialog .wp-search {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(242, 201, 107, 0.22);
  background: rgba(8, 10, 22, 0.55);
  color: rgba(255, 245, 230, 0.95);
  font: inherit; font-size: 13px; outline: none;
  margin-bottom: 6px;
}
#wp-dialog .wp-target-list {
  max-height: 160px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
}
#wp-dialog .wp-target-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left; padding: 9px 11px; border-radius: 11px;
  border: 1px solid rgba(242, 201, 107, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: inherit; font: inherit; cursor: pointer;
}
#wp-dialog .wp-target-item strong { font-size: 13px; font-weight: 600; }
#wp-dialog .wp-target-item small { font-size: 10.5px; opacity: 0.5; }
#wp-dialog .wp-badge {
  display: inline-block; align-self: flex-start;
  font-size: 10px; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 999px; margin-bottom: 2px;
  background: rgba(242, 201, 107, 0.14);
  color: rgba(242, 201, 107, 0.9);
  border: 1px solid rgba(242, 201, 107, 0.22);
}
#wp-dialog .wp-lead strong { color: rgba(255, 220, 160, 0.95); font-weight: 600; }
#wp-dialog .wp-target-item:hover,
#wp-dialog .wp-target-item.on {
  border-color: rgba(242, 201, 107, 0.4);
  background: rgba(242, 201, 107, 0.12);
}
#wp-dialog .wp-target-empty {
  margin: 8px 0; text-align: center; font-size: 12px;
  color: rgba(245, 240, 230, 0.45);
}
#wp-dialog .wp-selected-hint {
  margin: 4px 0 0; font-size: 11.5px;
  letter-spacing: 0.04em; color: rgba(245, 240, 230, 0.5);
}
#wp-dialog .wp-selected-hint.ok { color: rgba(242, 201, 107, 0.85); }
#wp-dialog .wp-scale-range { width: 100%; accent-color: #f2c96b; }
#wp-dialog .wp-actions {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; flex-wrap: wrap;
}
#wp-dialog .wp-spacer { flex: 1; }
#wp-dialog .wp-btn {
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(242, 201, 107, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: inherit; font: inherit; font-size: 13px;
  letter-spacing: 0.06em; cursor: pointer;
}
#wp-dialog .wp-btn.primary {
  background: linear-gradient(165deg, rgba(242, 201, 107, 0.35), rgba(200, 140, 70, 0.28));
  border-color: rgba(242, 201, 107, 0.5);
  color: #fff6e0;
}
#wp-dialog .wp-btn.ghost { opacity: 0.75; }
#wp-dialog .wp-btn.danger {
  border-color: rgba(220, 100, 100, 0.4);
  color: rgba(255, 180, 180, 0.9);
}
#wp-dialog .wp-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow: auto; }
#wp-dialog .wp-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 14px; text-align: left;
  border: 1px solid rgba(242, 201, 107, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: inherit; font: inherit; cursor: pointer;
}
#wp-dialog .wp-list-item:hover {
  border-color: rgba(242, 201, 107, 0.35);
  background: rgba(242, 201, 107, 0.08);
}
#wp-dialog .wli-emoji { font-size: 20px; }
#wp-dialog .wli-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#wp-dialog .wli-text strong { font-size: 13.5px; }
#wp-dialog .wli-text small { font-size: 11px; opacity: 0.5; }
#wp-dialog .wp-empty {
  margin: 8px 0; font-size: 13px; line-height: 1.6;
  color: rgba(245, 240, 230, 0.5); text-align: center;
}
@media (max-width: 420px) {
  #wp-dialog .wp-kinds { grid-template-columns: repeat(3, 1fr); }
}

/* 声境场景预设 */
.sc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px 4px;
}
.sc-preset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 107, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.sc-preset:hover {
  background: rgba(242, 201, 107, 0.12);
  border-color: rgba(242, 201, 107, 0.4);
  transform: translateY(-1px);
}
.sc-preset-emoji { font-size: 14px; line-height: 1; }
.sc-preset-name { letter-spacing: 0.06em; }
.sc-preset-hint {
  margin: 0 2px 10px;
  font-size: 11.5px;
  opacity: 0.5;
  letter-spacing: 0.06em;
}
.sound-panel .sp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 10px; border: 0; border-radius: 11px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.sound-panel .sp-title {
  font-size: 11.5px; letter-spacing: .18em; opacity: .5; cursor: default;
  padding: 4px 10px 6px; justify-content: flex-start;
}
.sound-panel .sp-section { margin-top: 4px; }
.sound-panel .sp-toggle:hover, .sound-panel .sp-open:hover { background: rgba(255, 255, 255, .08); }
.sound-panel .sp-label {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
  font-size: 13.5px; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sound-panel .sp-label em {
  font-style: normal; font-size: 11px; opacity: .55; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sound-panel .sp-switch {
  flex: none; width: 38px; height: 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); position: relative; transition: background .22s ease;
}
.sound-panel .sp-switch i {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .22s cubic-bezier(.3, 1.4, .5, 1);
}
.sound-panel .sp-toggle.on .sp-switch { background: var(--gold, #f2c96b); }
.sound-panel .sp-toggle.on .sp-switch i { transform: translateX(16px); }
.sound-panel .sp-volrow { cursor: default; gap: 12px; padding: 6px 10px 10px; }
.sound-panel .sp-vol-lab { flex: 0 0 auto; width: auto; opacity: .65; font-size: 12px; letter-spacing: .08em; }
.sound-panel .sp-volrow .sp-label { flex: 0 0 auto; }
.sound-panel .sp-vol {
  flex: 1 1 auto; min-width: 0; height: 28px;
  accent-color: var(--gold, #f2c96b); touch-action: none;
}
.sound-panel .sp-quick-cats {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 0 8px 10px;
}
.sound-panel .sp-qcat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 12.5px;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.sound-panel .sp-qcat span { font-size: 14px; line-height: 1; }
.sound-panel .sp-qcat em { font-style: normal; letter-spacing: .04em; }
.sound-panel .sp-qcat:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.sound-panel .sp-qcat.on {
  border-color: rgba(242,201,107,.55);
  background: rgba(242,201,107,.18);
  color: #ffe9a8;
}
.sound-panel .sp-open {
  justify-content: center; font-size: 12.5px; opacity: .8;
  margin-top: 2px; border: 1px dashed rgba(255,255,255,.12);
}
.sound-panel .sp-tip {
  text-align: center; font-size: 10.5px; letter-spacing: .06em;
  opacity: .4; padding: 6px 8px 2px; line-height: 1.4;
}
.sound-panel .sp-now {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 6px 6px; padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.sound-panel .sp-now-txt {
  flex: 1; min-width: 0; font-size: 12px; line-height: 1.45;
  opacity: .85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sound-panel .sp-now-txt.is-error { color: #ffb4a8; opacity: 1; }
.sound-panel .sp-now-acts { display: flex; gap: 4px; flex: none; }
.sound-panel .sp-mini {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08); color: inherit;
  font-size: 14px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sound-panel .sp-mini:disabled { opacity: .35; cursor: default; }
.sound-panel .sp-mini-play {
  background: linear-gradient(180deg, rgba(247,217,141,.9), rgba(239,190,88,.75));
  color: #1c1830; border-color: transparent; font-size: 12px;
}
.sound-panel .sp-qcat i {
  font-style: normal; font-size: 10px; opacity: .5;
  margin-left: 2px; min-width: 1em;
}
.sound-panel .sp-nav .sp-chev,
.sound-panel .sp-back .sp-chev {
  flex: none; opacity: .55; font-size: 18px; line-height: 1; width: 1.1em; text-align: center;
}
.sound-panel .sp-back { cursor: pointer; }
.sound-panel .sp-back:hover { background: rgba(255,255,255,.08); }
.sound-panel .sp-track-list {
  display: flex; flex-direction: column; gap: 5px;
  max-height: min(42vh, 280px); overflow: auto;
  padding: 0 6px 6px;
  -webkit-overflow-scrolling: touch;
}
.sound-panel .sp-track {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border-radius: 11px; text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.sound-panel .sp-track:hover { background: rgba(255,255,255,.09); }
.sound-panel .sp-track.on {
  border-color: rgba(242,201,107,.5);
  background: rgba(242,201,107,.14);
}
.sound-panel .sp-track-ico { flex: none; width: 1.2em; text-align: center; opacity: .6; }
.sound-panel .sp-track.on .sp-track-ico { opacity: 1; color: #f2c96b; }
.sound-panel .sp-track-txt {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px;
}
.sound-panel .sp-track-txt strong {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sound-panel .sp-track-txt em {
  font-style: normal; font-size: 11px; opacity: .5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sound-panel .sp-track-live {
  flex: none; font-size: 10px; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(242,201,107,.22); color: #ffe9a8;
}
.sound-panel .sp-empty-inline {
  font-size: 12px; opacity: .5; padding: 10px 12px; line-height: 1.5;
}
@media (pointer: coarse) {
  .sound-panel .sp-row { padding: 12px 12px; min-height: 44px; }
  .sound-panel .sp-qcat { padding: 10px 12px; font-size: 13px; }
  .sound-panel .sp-vol { height: 32px; }
  .sound-panel .sp-track { padding: 12px 12px; min-height: 48px; }
  .sound-panel .sp-mini { width: 40px; height: 40px; }
  .sound-panel .sp-track-list { max-height: min(48vh, 340px); }
}


/* ============================================================
 * 拍照间 —— 点相机道具：和星球合影（prop-magic.js）
 * 星球实时渲染作背景，层只放取景框 / 自拍圆框 / 快门钮
 * ============================================================ */
#pmbooth {
  position: fixed; inset: 0; z-index: 9990;
  opacity: 0; transition: opacity .3s ease;
}
#pmbooth.on { opacity: 1; }

.pmb-title {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  padding: 8px 26px; border-radius: 999px;
  font-family: var(--serif); font-size: 16px;
  letter-spacing: .3em; text-indent: .3em; white-space: nowrap;
  color: rgba(255, 244, 224, .95);
  background: rgba(14, 16, 28, .38);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
  pointer-events: none;
}

/* 取景框四角标线 */
.pmb-frame { position: absolute; inset: 13vh 9vw 16vh; pointer-events: none; }
.pmb-frame i {
  position: absolute; width: 34px; height: 34px;
  border: 2.5px solid rgba(255, 240, 214, .9);
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .55));
}
.pmb-frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.pmb-frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.pmb-frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.pmb-frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

/* 右下角圆形自拍预览（和成片里的圆形裁切对应） */
.pmb-self {
  position: absolute; right: 6vw; bottom: 16vh;
  width: 168px; height: 168px; border-radius: 50%; overflow: hidden;
  border: 5px solid rgba(253, 251, 245, .95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  background: rgba(20, 22, 34, .6);
}
.pmb-self video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
#pmbooth.no-cam .pmb-self { display: none; }

/* 底部快门条 */
.pmb-bar {
  position: absolute; left: 0; right: 0; bottom: 10vh;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.pmb-shutter {
  width: 74px; height: 74px; border-radius: 50%;
  border: 4px solid rgba(253, 251, 245, .95);
  background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: transform .15s ease, background .2s ease;
}
.pmb-shutter span { width: 52px; height: 52px; border-radius: 50%; background: #fdfbf5; }
.pmb-shutter:hover { transform: scale(1.06); background: rgba(255, 255, 255, .24); }
.pmb-shutter:active { transform: scale(.94); }

.pmb-close, .pmb-link {
  font: inherit; font-size: 12.5px; letter-spacing: .12em;
  color: rgba(255, 244, 224, .9);
  background: rgba(16, 18, 30, .45);
  border: 1px solid rgba(255, 240, 214, .35);
  border-radius: 999px; padding: 9px 18px; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.pmb-close:hover, .pmb-link:hover { border-color: rgba(255, 240, 214, .7); color: #fff; transform: translateY(-1px); }

/* 快门白闪 */
.pmb-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#pmbooth.flash .pmb-flash { opacity: .95; transition: none; }

/* 成片弹层 */
#pmbooth-result {
  position: fixed; inset: 0; z-index: 9995;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 11, 20, .55);
  backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .28s ease;
}
#pmbooth-result.on { opacity: 1; }
.pmr-card {
  background: var(--paper-2, #f6f1e7);
  border-radius: var(--r-card, 18px);
  padding: 22px 24px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  max-width: min(92vw, 880px);
  text-align: center;
}
.pmr-kicker { font-size: 11px; letter-spacing: .22em; text-indent: .22em; color: var(--ink-faint); margin-bottom: 12px; }
.pmr-img { max-width: 100%; max-height: 62vh; border-radius: 10px; box-shadow: 0 10px 30px rgba(28, 36, 64, .25); }
.pmr-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pmr-btn {
  font: inherit; font-size: 13px; letter-spacing: .06em;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(28, 36, 64, .16);
  background: #fff; color: var(--ink-soft);
  cursor: pointer; text-decoration: none;
  transition: .18s ease;
}
.pmr-btn:hover { border-color: rgba(185, 138, 47, .5); color: var(--gold-deep); transform: translateY(-1px); }
.pmr-btn.primary {
  background: linear-gradient(160deg, #ecc271, var(--gold-deep));
  color: #fff; border-color: transparent;
}
.pmr-btn.primary:hover { color: #fff; filter: brightness(1.05); }

@media (max-width: 720px) {
  .pmb-self { width: 120px; height: 120px; right: 5vw; bottom: 18vh; }
  .pmb-frame { inset: 12vh 6vw; }
  .pmb-bar { gap: 12px; }
}

/* ============================================================
 * 独立应用窗的悬浮工具条 —— 平时完全隐形，鼠标移到窗口上沿才浮出
 * 刷新 / 手机视角 / 沉浸式全屏 / 新标签打开
 * 感应区只是顶部中央的一小段「小把手」，绝不挡住网页顶部的可点区域
 * ============================================================ */
.mv-app .mv-hover-zone {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 88px; height: 14px; border-radius: 0 0 12px 12px;
  z-index: 4; pointer-events: auto; cursor: pointer;
  background: rgba(18, 20, 30, .28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: .35; transition: opacity .2s ease, height .2s ease;
}
.mv-app .mv-hover-zone::after {
  content: ''; position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  width: 30px; height: 4px; border-radius: 999px;
  background: rgba(245, 240, 230, .65);
}
.mv-app .mv-hover-zone:hover { opacity: .9; height: 16px; }
.mv-app .mv-web-bar-float {
  position: absolute; top: 10px; left: 50%;
  transform: translate(-50%, -14px);
  z-index: 5;
  display: flex; align-items: center; gap: 4px;
  padding: 5px 7px; border-radius: 999px;
  background: rgba(18, 20, 30, .62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0,0,0,.32), 0 0 0 1px rgba(245,240,230,.14);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
/* 只有碰到顶部小把手（或触屏点它粘住）才浮出，平时网页上方完全不遮挡 */
.mv-app .mv-hover-zone:hover + .mv-web-bar-float,
.mv-app .mv-web-bar-float:hover,
.mv-app.bar-on .mv-web-bar-float {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0);
}
.mv-app .mv-web-bar-float button {
  width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: rgba(245, 240, 230, .86);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.mv-app .mv-web-bar-float button svg { width: 17px; height: 17px; }
.mv-app .mv-web-bar-float button:hover { background: rgba(245,240,230,.16); color: #fff; transform: translateY(-1px); }
.mv-app .mv-web-bar-float button.on { background: rgba(242, 201, 107, .32); color: #fff; }
/* 窗口自身进入原生全屏时：网页真正铺满整块屏幕 */
.win-fullscreen { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important;
  transform: none !important; border-radius: 0 !important; z-index: 99999 !important; }
@media (max-width: 767px) {
  .mv-app .mv-web-bar-float { opacity: 0; }
  .mv-app:hover .mv-web-bar-float { opacity: 0; }
  .mv-app.bar-on .mv-web-bar-float { opacity: 1; pointer-events: auto; }
  .mv-app .mv-web-bar-float button { width: 34px; height: 34px; }
}

/* ---------- 上传网页 / 网站压缩包 ---------- */
.sh-drop {
  margin: 10px 0 6px; padding: 22px 16px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed rgba(242, 201, 107, .5); text-align: center;
  background: rgba(255, 255, 255, .05); transition: background .18s ease, border-color .18s ease;
}
.sh-drop:hover, .sh-drop.on { background: rgba(242, 201, 107, .12); border-color: rgba(242, 201, 107, .9); }
.sh-drop-main { font-size: 14px; opacity: .92; }
.sh-drop-sub { margin-top: 5px; font-size: 12px; opacity: .6; }
.sh-file { margin-top: 8px; font-size: 12.5px; color: #f2c96b; word-break: break-all; }
.sh-progress { height: 4px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12);
  opacity: 0; transition: opacity .2s ease; }
.sh-progress.on { opacity: 1; }
.sh-progress > i { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #f2c96b, #ffe6a8); transition: width .25s ease; }

/* ---------- 托管站点：短链 / 代码 / 数据 ---------- */
.sh-card { width: min(760px, 94vw); }
.sh-tabs { display: flex; gap: 6px; margin: 10px 0 12px; }
.sh-tab {
  flex: 1; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 13px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit;
  transition: background .18s ease, border-color .18s ease;
}
.sh-tab.on { background: rgba(242,201,107,.16); border-color: rgba(242,201,107,.7); color: #f7dfa6; }
.sh-slug-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.sh-slug-pre { font-size: 12.5px; opacity: .6; white-space: nowrap; }
.sh-slug-row .sh-slug { flex: 1; margin: 0; }
.sh-code {
  width: 100%; min-height: 190px; margin-top: 4px; padding: 10px 12px; resize: vertical;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.28);
  color: #e9f0ff; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sh-code.tall { min-height: min(52vh, 460px); }
.sh-editor { width: min(920px, 96vw); }
.sh-sub { font-size: 12px; opacity: .55; font-weight: 400; }

.sh-manager .sh-list { max-height: min(58vh, 520px); overflow: auto; margin: 6px 0 4px; }
.sh-row {
  display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px;
  border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
}
.sh-row-main { flex: 1; min-width: 0; }
.sh-row-title { font-size: 14px; font-weight: 600; }
.sh-row-link { display: inline-block; margin-top: 2px; font-size: 12.5px; color: #f2c96b; text-decoration: none; }
.sh-row-link:hover { text-decoration: underline; }
.sh-row-meta { margin-top: 3px; font-size: 11.5px; opacity: .6; }
.sh-row-acts { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 260px; }
.os-btn.tiny { padding: 4px 9px; font-size: 11.5px; border-radius: 8px; }
.os-btn.tiny.danger { color: #ffb3ae; border-color: rgba(255,120,110,.4); }
.sh-row-spark { width: 110px; }
.sh-spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.sh-spark > i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #f2c96b, rgba(242,201,107,.25)); }
.sh-empty { padding: 22px; text-align: center; font-size: 13px; opacity: .6; }
.sh-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 4px; }
.sh-kpi { padding: 10px; border-radius: 12px; text-align: center; background: rgba(255,255,255,.05); }
.sh-kpi b { display: block; font-size: 19px; color: #f7dfa6; }
.sh-kpi span { font-size: 11.5px; opacity: .62; }
.sh-block-title { margin: 14px 0 6px; font-size: 12px; opacity: .6; }
.sh-refs > div { display: flex; justify-content: space-between; padding: 5px 2px; font-size: 12.5px;
  border-bottom: 1px dashed rgba(255,255,255,.08); }
@media (max-width: 640px) {
  .sh-row { flex-wrap: wrap; }
  .sh-row-spark { display: none; }
  .sh-row-acts { max-width: none; width: 100%; justify-content: flex-start; }
}

/* ---------- 内置 AI（设置 / 造物）---------- */
#wp-dialog .wp-ai-row {
  display: flex; align-items: center; gap: 10px;
  margin: 6px 0 12px; flex-wrap: wrap;
}
#wp-dialog .wp-ai-tip { opacity: .62; font-size: 12px; }
#wp-dialog .ai-presets .wp-kind,
#wp-dialog .ai-ideas .wp-kind { text-align: left; }
#wp-dialog .ai-ideas .wp-kind em { font-style: normal; font-size: 12px; }
#wp-dialog textarea.ai-prompt,
#wp-dialog textarea.ai-code {
  width: 100%; resize: vertical;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; padding: 10px 12px;
  color: inherit; font: inherit; line-height: 1.5;
}
#wp-dialog textarea.ai-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

/* ===== AI 造物：参考图 & 后台小药丸（1.9.136） ===== */
.ai-ref{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 10px}
.ai-ref-name{font-size:12px;opacity:.7}
.ai-ref-img{width:64px;height:64px;object-fit:cover;border-radius:10px;
  border:1px solid rgba(255,255,255,.25);box-shadow:0 4px 14px rgba(0,0,0,.25)}
.ai-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;line-height:1.5;white-space:pre;overflow:auto}
.ai-pill{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:99990;display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);background:rgba(18,20,34,.72);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#f2f4ff;
  box-shadow:0 10px 30px rgba(0,0,0,.35);cursor:pointer;font-size:12px;
  opacity:0;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease}
.ai-pill.on{opacity:1;transform:none}
.ai-pill b{font-weight:600}
.ai-pill em{font-style:normal;opacity:.65}
.ai-pill-dot{width:8px;height:8px;border-radius:50%;background:#8fd0ff;
  box-shadow:0 0 10px #8fd0ff;animation:aiPillPulse 1.1s ease-in-out infinite}
.ai-pill-dot.ok{background:#9cf7c0;box-shadow:0 0 10px #9cf7c0;animation:none}
.ai-pill-dot.bad{background:#ff9a9a;box-shadow:0 0 10px #ff9a9a;animation:none}
@keyframes aiPillPulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}

/* ===== 访达多选：勾圈 + 底部批量操作条 ===== */
.finder-entry { position: relative; }
.entry-check{position:absolute;top:6px;left:8px;z-index:3;width:18px;height:18px;border-radius:50%;
  border:1.6px solid rgba(28,36,64,.35);background:rgba(255,255,255,.85);
  box-shadow:0 1px 4px rgba(20,26,50,.18);transition:all .15s ease}
.entry-check::after{content:'';position:absolute;left:5px;top:2.5px;width:5px;height:9px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(42deg);opacity:0;transition:opacity .12s}
.finder-entry.sel .entry-check{border-color:#d9a83f;background:linear-gradient(160deg,#f6d78a,#e2ac45)}
.finder-entry.sel .entry-check::after{opacity:1}
.finder-entry.sel{background:rgba(242,201,107,.16);outline:1.5px solid rgba(217,168,63,.55);outline-offset:-1.5px}
.finder-entry.sel .fcard{transform:translateY(-1px)}
.ffilter-toggle.fsel-toggle.on{background:rgba(242,201,107,.22);border-color:rgba(217,168,63,.6);color:#8a6420}
.fselbar{position:absolute;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translateX(-50%);
  z-index:20;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;
  background:rgba(20,22,38,.78);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.18);box-shadow:0 14px 40px rgba(8,10,24,.45);
  color:#f2f4ff;font-size:12px;animation:fselbarIn .28s cubic-bezier(.2,.9,.25,1.2)}
@keyframes fselbarIn{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
.fselbar-n{white-space:nowrap;opacity:.9;padding:0 2px}
.fselbar-n b{color:#f6d78a;font-weight:600}
.fselbar-btn{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);color:#f2f4ff;
  font-size:12px;padding:5px 12px;border-radius:999px;cursor:pointer;white-space:nowrap;transition:all .15s}
.fselbar-btn:hover:not(:disabled){background:rgba(246,215,138,.25);border-color:rgba(246,215,138,.6)}
.fselbar-btn:disabled{opacity:.4;cursor:default}
.fselbar-btn.ghost{background:transparent;border-color:transparent;opacity:.8}
.fselbar-btn.ghost:hover{opacity:1;background:rgba(255,255,255,.12)}
.finder-main{position:relative}

/* ---------- 访达星级评分 ---------- */
.entry-stars{
  display:flex; gap:2px; justify-content:center; margin-top:4px;
  font-size:11px; line-height:1; letter-spacing:.5px;
  opacity:0; transition:opacity .22s ease;
}
.entry-stars.rated{ opacity:1; }
.finder-entry:hover .entry-stars,
.finder-entry:focus-within .entry-stars{ opacity:1; }
/* 管理员始终能看到星星（手机端没有悬停，藏起来就点不到了） */
.entry-stars.editable{ opacity:.85; }
.finder-entry:hover .entry-stars.editable{ opacity:1; }
.entry-stars .est{
  color:rgba(255,255,255,.22);
  transition:color .18s ease, transform .18s ease;
}
.entry-stars .est.on{ color:#f2c96b; text-shadow:0 0 8px rgba(242,201,107,.45); }
.entry-stars.editable .est{ cursor:pointer; }
.entry-stars.editable:hover .est{ color:rgba(242,201,107,.35); }
.entry-stars.editable .est:hover,
.entry-stars.editable .est:hover ~ .est{ color:rgba(255,255,255,.22); }
.entry-stars.editable .est:hover{ color:#f7dc95; transform:scale(1.25); }

/* ============ 万家灯火（lantern-town.js） ============ */
#lantern-town{position:fixed;inset:0;z-index:9600;display:flex;flex-direction:column;align-items:center;
  background:radial-gradient(120% 90% at 50% 0%,#1b2340 0%,#0d1226 48%,#070a16 100%);
  opacity:0;transition:opacity .35s ease;overflow:hidden;padding:max(24px,env(safe-area-inset-top)) 16px 0;}
#lantern-town.on{opacity:1;}
#lantern-town .lt-sky{position:absolute;inset:0;pointer-events:none;}
#lantern-town .lt-stars{position:absolute;inset:0;
  background-image:radial-gradient(1.4px 1.4px at 12% 18%,rgba(255,246,220,.9),transparent),
    radial-gradient(1.2px 1.2px at 32% 8%,rgba(255,246,220,.7),transparent),
    radial-gradient(1.6px 1.6px at 68% 22%,rgba(255,246,220,.85),transparent),
    radial-gradient(1.2px 1.2px at 82% 12%,rgba(255,246,220,.6),transparent),
    radial-gradient(1.3px 1.3px at 50% 30%,rgba(255,246,220,.55),transparent),
    radial-gradient(1.1px 1.1px at 90% 34%,rgba(255,246,220,.5),transparent);
  animation:lt-twinkle 5.5s ease-in-out infinite;}
@keyframes lt-twinkle{0%,100%{opacity:.65}50%{opacity:1}}
#lantern-town .lt-moon{position:absolute;top:8%;right:12%;width:64px;height:64px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#fff6dd,#f4d79a);box-shadow:0 0 60px 18px rgba(255,213,140,.22);}
#lantern-town .lt-head{position:relative;text-align:center;max-width:36em;margin-bottom:18px;}
#lantern-town .lt-kicker{font-size:12px;letter-spacing:.36em;color:rgba(255,220,160,.75);}
#lantern-town .lt-title{margin:.35em 0 .2em;font-size:clamp(22px,4.4vw,34px);color:#fdf3e2;font-weight:600;}
#lantern-town .lt-lead{margin:0;font-size:13px;line-height:1.9;color:rgba(238,228,210,.66);}
#lantern-town .lt-street{position:relative;flex:1;align-content:center;width:100%;max-width:1080px;display:flex;flex-wrap:wrap;
  align-items:flex-end;justify-content:center;gap:14px;overflow:auto;padding:24px 4px 12px;}
#lantern-town .lt-house{position:relative;display:flex;flex-direction:column;align-items:center;
  width:172px;padding:14px 12px 26px;border-radius:8px 8px 4px 4px;
  background:linear-gradient(180deg,rgba(58,52,66,.92),rgba(36,33,46,.95));
  box-shadow:0 18px 40px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.05);}
#lantern-town .lt-house.h1{padding-top:34px}
#lantern-town .lt-house.h2{padding-top:24px}
#lantern-town .lt-roof{position:absolute;top:-16px;left:-8px;right:-8px;height:20px;
  background:linear-gradient(180deg,#8c4a46,#5d3130);clip-path:polygon(6% 100%,50% 0,94% 100%);}
#lantern-town .lt-wins{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;}
#lantern-town .lt-win{position:relative;height:56px;border:0;border-radius:5px;cursor:pointer;
  background:linear-gradient(180deg,rgba(52,56,72,.95),rgba(38,40,54,.95));
  color:rgba(230,224,212,.5);font:500 11px/1.3 "LXGW WenKai","Noto Serif SC",serif;
  display:flex;align-items:flex-end;justify-content:center;padding:6px 4px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);transition:transform .18s ease,box-shadow .25s ease,background .3s ease;}
#lantern-town .lt-win em{font-style:normal;position:relative;z-index:2;text-shadow:0 1px 4px rgba(0,0,0,.5);}
#lantern-town .lt-win .lt-win-glow{position:absolute;inset:0;border-radius:5px;opacity:0;transition:opacity .3s ease;}
#lantern-town .lt-win.lit{background:linear-gradient(180deg,#ffd894,#f0a950);color:#4a2d10;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.28),0 0 26px rgba(255,178,84,.42);
  animation:lt-breathe 4.2s ease-in-out infinite;}
#lantern-town .lt-win.lit .lt-win-glow{opacity:1;background:radial-gradient(60% 60% at 50% 40%,rgba(255,255,255,.5),transparent);}
@keyframes lt-breathe{0%,100%{filter:brightness(1)}50%{filter:brightness(1.12)}}
#lantern-town .lt-win:hover{transform:translateY(-3px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 0 34px rgba(255,190,110,.5);}
#lantern-town .lt-door{width:34px;height:22px;margin-top:12px;border-radius:6px 6px 0 0;background:#3a2a1e;
  box-shadow:0 -2px 10px rgba(255,180,90,.22);}
#lantern-town .lt-roster{width:100%;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px;}
#lantern-town .lt-chip{border:0;border-radius:999px;padding:6px 14px;cursor:pointer;
  background:rgba(255,204,138,.12);color:rgba(255,224,180,.9);font-size:12px;
  box-shadow:inset 0 0 0 1px rgba(255,204,138,.24);}
#lantern-town .lt-chip:hover{background:rgba(255,204,138,.22);}
#lantern-town .lt-empty{color:rgba(230,220,205,.5);font-size:13px;}
#lantern-town .lt-bar{position:relative;display:flex;gap:10px;padding:14px 0 max(18px,env(safe-area-inset-bottom));}
#lantern-town .lt-btn{border:0;border-radius:999px;padding:10px 22px;cursor:pointer;font-size:13px;
  background:linear-gradient(180deg,#ffd894,#eaa348);color:#3d2609;box-shadow:0 8px 24px rgba(240,170,80,.28);}
#lantern-town .lt-btn.ghost{background:rgba(255,255,255,.08);color:rgba(240,232,220,.86);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);}

#lt-editor{position:fixed;inset:0;z-index:9700;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .25s ease;padding:16px;}
#lt-editor.on{opacity:1;}
#lt-editor .lte-scrim{position:absolute;inset:0;background:rgba(6,8,16,.7);backdrop-filter:blur(6px);}
#lt-editor .lte-card{position:relative;width:min(520px,94vw);max-height:88vh;overflow:auto;border-radius:18px;
  padding:22px;background:rgba(24,26,40,.96);box-shadow:0 30px 80px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.08);
  color:rgba(240,234,224,.92);}
#lt-editor .lte-kicker{font-size:11px;letter-spacing:.3em;color:rgba(255,214,152,.75);}
#lt-editor .lte-title{margin:.3em 0 1em;font-size:19px;font-weight:600;}
#lt-editor .lte-field{display:block;margin-bottom:12px;font-size:12px;color:rgba(230,222,210,.72);}
#lt-editor .lte-field input{display:block;width:100%;margin-top:6px;padding:10px 12px;border-radius:10px;border:0;
  background:rgba(255,255,255,.06);color:#f4ece0;font-size:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);}
#lt-editor .lte-sec{margin:14px 0 8px;font-size:12px;color:rgba(255,214,152,.8);}
#lt-editor .lte-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;}
#lt-editor .lte-tab{border:0;border-radius:999px;padding:6px 13px;font-size:12px;cursor:pointer;
  background:rgba(255,255,255,.07);color:rgba(236,228,216,.8);}
#lt-editor .lte-tab.on{background:rgba(255,205,140,.9);color:#3a2408;}
#lt-editor .lte-box.is-hidden{display:none;}
#lt-editor .lte-search{width:100%;padding:9px 12px;border-radius:10px;border:0;background:rgba(255,255,255,.06);
  color:#f2e9dd;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);margin-bottom:8px;}
#lt-editor .lte-list{max-height:230px;overflow:auto;display:flex;flex-direction:column;gap:4px;}
#lt-editor .lte-item{text-align:left;border:0;border-radius:10px;padding:8px 10px;cursor:pointer;
  background:rgba(255,255,255,.04);color:rgba(240,234,224,.9);display:flex;flex-direction:column;gap:2px;}
#lt-editor .lte-item.on{background:rgba(255,205,140,.18);box-shadow:inset 0 0 0 1px rgba(255,205,140,.5);}
#lt-editor .lte-item small{font-size:11px;color:rgba(226,218,206,.5);}
#lt-editor .lte-badge{font-size:10px;color:rgba(255,214,152,.9);}
#lt-editor .lte-empty{font-size:12px;color:rgba(230,222,210,.5);}
#lt-editor .lte-hint{margin:10px 0 0;font-size:12px;color:rgba(255,214,152,.8);}
#lt-editor .lte-status{margin:10px 0 0;font-size:12px;color:rgba(255,214,152,.88);}
#lt-editor .lte-houses{padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.08);}
#lt-editor .lte-actions{display:flex;align-items:center;gap:8px;margin-top:16px;}
#lt-editor .lte-spacer{flex:1;}
#lt-editor .lte-btn{border:0;border-radius:999px;padding:9px 18px;font-size:13px;cursor:pointer;
  background:rgba(255,255,255,.08);color:rgba(240,232,220,.88);}
#lt-editor .lte-btn.primary{background:linear-gradient(180deg,#ffd894,#eaa348);color:#3d2609;}
#lt-editor .lte-btn.danger{background:rgba(220,90,90,.16);color:#f0a5a5;}
@media (max-width:640px){
  #lantern-town .lt-house{width:calc(50% - 8px);}
  #lantern-town .lt-win{height:48px;}
}

/* ============ 万家灯火 · 3D 长街（lantern-town.js v3 暖夜小镇） ============ */
#lantern-town.lt3d{display:block;padding:0;background:#6a86c0;}
#lantern-town.lt3d .lt-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;
  cursor:grab;touch-action:none;}
#lantern-town.lt3d .lt-canvas:active{cursor:grabbing;}
#lantern-town.lt3d .lt-vig{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(110% 80% at 50% 58%,rgba(0,0,0,0) 52%,rgba(30,24,40,.22) 100%);}
#lantern-town.lt3d .lt-hud-tl{position:absolute;top:max(14px,env(safe-area-inset-top));left:14px;z-index:4;
  display:flex;flex-direction:column;gap:10px;opacity:0;transform:translateY(-8px);
  transition:opacity .7s ease .2s,transform .7s ease .2s;}
#lantern-town.lt3d.ready .lt-hud-tl{opacity:1;transform:none;}
#lantern-town.lt3d .lt-id{display:flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;border-radius:999px;
  background:rgba(22,16,18,.55);border:1px solid rgba(255,220,170,.22);backdrop-filter:blur(10px);
  color:#f7ead4;box-shadow:0 8px 24px rgba(0,0,0,.22);}
#lantern-town.lt3d .lt-id-mark{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(180deg,#f3d39a,#d7a45a);color:#4a2e10;font-size:16px;}
#lantern-town.lt3d .lt-id b{display:block;font-size:13px;font-weight:600;}
#lantern-town.lt3d .lt-id small{display:block;font-size:10px;opacity:.7;letter-spacing:.08em;}
#lantern-town.lt3d .lt-quest{text-align:left;border:0;cursor:pointer;padding:10px 16px;border-radius:16px;
  background:rgba(22,16,18,.5);border:1px solid rgba(255,210,140,.28);color:#f7ead4;
  backdrop-filter:blur(10px);min-width:168px;}
#lantern-town.lt3d .lt-quest span{display:block;font-size:12px;color:#ffe2b0;}
#lantern-town.lt3d .lt-quest strong{display:block;margin:2px 0 4px;font-size:15px;}
#lantern-town.lt3d .lt-quest em{font-style:normal;font-size:11px;opacity:.7;}
#lantern-town.lt3d .lt-hud-tr{position:absolute;top:max(14px,env(safe-area-inset-top));right:14px;z-index:4;
  display:flex;gap:8px;opacity:0;transition:opacity .7s ease .25s;}
#lantern-town.lt3d.ready .lt-hud-tr{opacity:1;}
#lantern-town.lt3d .lt-icon-btn{width:44px;height:44px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(22,16,18,.5);border:1px solid rgba(255,220,170,.22);color:#f7ead4;font-size:16px;
  backdrop-filter:blur(10px);box-shadow:0 8px 20px rgba(0,0,0,.2);}
#lantern-town.lt3d .lt-hud-bl,#lantern-town.lt3d .lt-hud-br{position:absolute;z-index:4;
  bottom:calc(18px + env(safe-area-inset-bottom));border:0;cursor:pointer;
  display:flex;align-items:center;gap:8px;padding:10px 16px 10px 10px;border-radius:999px;
  background:rgba(22,16,18,.52);border:1px solid rgba(255,220,170,.22);color:#f7ead4;
  backdrop-filter:blur(10px);font-size:13px;opacity:0;transition:opacity .7s ease .35s;}
#lantern-town.lt3d.ready .lt-hud-bl,#lantern-town.lt3d.ready .lt-hud-br{opacity:1;}
#lantern-town.lt3d .lt-hud-bl{left:14px;}
#lantern-town.lt3d .lt-hud-br{right:14px;}
#lantern-town.lt3d .lt-hud-bl span,#lantern-town.lt3d .lt-hud-br span{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.08);font-size:16px;}
#lantern-town.lt3d .lt-hint{position:absolute;left:0;right:0;z-index:3;pointer-events:none;
  bottom:calc(22px + env(safe-area-inset-bottom));text-align:center;
  font-size:12px;letter-spacing:.12em;color:rgba(255,232,200,.72);
  opacity:0;transition:opacity 1s ease .8s;}
#lantern-town.lt3d.ready .lt-hint{opacity:1;}
#lantern-town.lt3d .lt-stick{position:absolute;left:22px;bottom:calc(86px + env(safe-area-inset-bottom));
  width:108px;height:108px;border-radius:50%;z-index:4;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);
  display:none;touch-action:none;}
#lantern-town.lt3d .lt-stick-knob{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px;
  border-radius:50%;background:rgba(255,255,255,.85);box-shadow:0 6px 16px rgba(0,0,0,.25);}
@media (pointer:coarse){
  #lantern-town.lt3d .lt-stick{display:block;}
  #lantern-town.lt3d .lt-hint{bottom:calc(28px + env(safe-area-inset-bottom));}
}
#lantern-town.lt3d .lt-badge{position:fixed;z-index:6;pointer-events:none;transform:translate(-50%,-130%);
  padding:6px 12px;border-radius:999px;font-size:12px;color:#4a2e10;font-weight:600;
  background:linear-gradient(180deg,#ffe7b0,#f0b45a);border:1px solid rgba(255,255,255,.5);
  box-shadow:0 8px 22px rgba(240,170,70,.35);opacity:0;transition:opacity .15s ease;}
#lantern-town.lt3d .lt-badge.on{opacity:1;}
#lantern-town.lt3d .lt-tip{position:fixed;z-index:5;pointer-events:none;transform:translate(14px,-50%);
  max-width:15em;padding:9px 12px;border-radius:12px;opacity:0;transition:opacity .16s ease;
  background:rgba(22,16,18,.88);border:1px solid rgba(255,190,120,.34);
  box-shadow:0 10px 30px rgba(0,0,0,.5);backdrop-filter:blur(8px);}
#lantern-town.lt3d .lt-tip.on{opacity:1;}
#lantern-town.lt3d .lt-tip strong{display:block;font-size:13px;color:#ffe7c4;font-weight:600;}
#lantern-town.lt3d .lt-tip small{display:block;margin-top:3px;font-size:11px;color:rgba(240,228,210,.6);}
#lantern-town.lt3d .lt-tip em{display:block;margin-top:5px;font-style:normal;font-size:11px;
  letter-spacing:.08em;color:rgba(255,186,116,.86);}
#lantern-town.lt3d .lt-load{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:13px;letter-spacing:.3em;color:rgba(255,214,160,.7);transition:opacity .5s ease;}
#lantern-town.lt3d.ready .lt-load{opacity:0;}
#lantern-town.lt3d .lt-board{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .28s ease;padding:18px;}
#lantern-town.lt3d .lt-board.on{opacity:1;}
#lantern-town.lt3d .lt-board-scrim{position:absolute;inset:0;background:rgba(10,8,16,.42);backdrop-filter:blur(6px);}
#lantern-town.lt3d .lt-card{position:relative;width:min(380px,92vw);border-radius:22px;padding:16px 16px 18px;
  background:rgba(32,24,28,.78);border:1px solid rgba(255,220,170,.28);color:#f6ead8;
  box-shadow:0 30px 80px rgba(0,0,0,.45);backdrop-filter:blur(16px);}
#lantern-town.lt3d .lt-card-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;
  font-size:12px;color:rgba(255,220,170,.85);}
#lantern-town.lt3d .lt-card-kind{padding:4px 10px;border-radius:999px;background:rgba(255,200,120,.16);}
#lantern-town.lt3d .lt-card-art{height:150px;border-radius:14px;background:#5a3a22 center/cover no-repeat;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 10px 28px rgba(255,160,60,.18);}
#lantern-town.lt3d .lt-card h3{margin:12px 0 6px;font-size:18px;font-weight:650;}
#lantern-town.lt3d .lt-card p{margin:0;font-size:13px;line-height:1.7;color:rgba(246,234,216,.72);}
#lantern-town.lt3d .lt-card-meta{display:flex;gap:14px;margin:12px 0;font-size:12px;color:rgba(255,210,160,.8);}
#lantern-town.lt3d .lt-card-act{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
#lantern-town.lt3d .lt-atlas{position:relative;width:min(720px,94vw);max-height:82vh;overflow:auto;
  border-radius:22px;padding:18px;background:rgba(28,22,26,.86);border:1px solid rgba(255,220,170,.24);
  color:#f6ead8;backdrop-filter:blur(16px);}
#lantern-town.lt3d .lt-atlas-h{display:flex;align-items:baseline;gap:10px;margin-bottom:14px;}
#lantern-town.lt3d .lt-atlas-h span{font-size:18px;font-weight:650;}
#lantern-town.lt3d .lt-atlas-h small{opacity:.7;font-size:12px;}
#lantern-town.lt3d .lt-atlas-h .lt-icon-btn{margin-left:auto;width:36px;height:36px;}
#lantern-town.lt3d .lt-atlas-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;}
#lantern-town.lt3d .lt-atlas-item{text-align:left;border:0;border-radius:14px;padding:12px;cursor:pointer;
  background:rgba(255,255,255,.05);color:#f6ead8;border:1px solid rgba(255,255,255,.08);}
#lantern-town.lt3d .lt-atlas-item.on{background:rgba(255,200,120,.14);border-color:rgba(255,200,120,.4);}
#lantern-town.lt3d .lt-atlas-item em{display:block;font-style:normal;font-size:11px;color:#f0c27a;}
#lantern-town.lt3d .lt-atlas-item strong{display:block;margin:4px 0;font-size:14px;}
#lantern-town.lt3d .lt-atlas-item small{display:block;font-size:11px;opacity:.65;}

/* ============================================================
   星球导览环 + 开场一镜 + 飘落物层
   ============================================================ */
#fx-drift{
  position:fixed; inset:0; z-index:2; pointer-events:none;
  width:100%; height:100%;
}

/* ---- 导览环（左侧弧形星点轨） ---- */
.pt-rail{
  position:fixed; left:12px; top:50%; transform:translateY(-50%);
  z-index:24; display:flex; align-items:center; gap:8px;
  pointer-events:none;
}
.pt-rail.hide{ opacity:0; visibility:hidden; transition:opacity .3s ease; }
.pt-toggle{
  pointer-events:auto;
  width:38px; height:38px; border-radius:50%; cursor:pointer;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(16,20,34,.42); backdrop-filter:blur(10px);
  color:#fff; font-size:17px; line-height:1;
  box-shadow:0 6px 20px rgba(0,0,0,.28);
  transition:transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.pt-toggle:hover{ transform:scale(1.08); background:rgba(28,34,54,.6); }
.pt-rail.open .pt-toggle{ box-shadow:0 0 0 3px rgba(255,214,140,.22), 0 6px 20px rgba(0,0,0,.3); }
.pt-ring{
  display:flex; flex-direction:column; gap:6px;
  max-height:74vh; overflow:visible;
  opacity:0; transform:translateX(-14px) scale(.94); transform-origin:left center;
  transition:opacity .32s ease, transform .32s cubic-bezier(.2,.9,.3,1.2);
  pointer-events:none;
}
.pt-rail.open .pt-ring{ opacity:1; transform:none; pointer-events:auto; }
.pt-dot{
  pointer-events:auto; cursor:pointer;
  display:flex; align-items:center; gap:8px;
  padding:5px 12px 5px 6px; border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(14,18,30,.36); backdrop-filter:blur(9px);
  color:rgba(255,255,255,.92); font-size:12.5px; letter-spacing:.02em;
  white-space:nowrap;
  transform:translateX(var(--pt-out,0px));
  transition:transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
  animation:pt-in .4s both; animation-delay:var(--pt-delay,0ms);
}
@keyframes pt-in{ from{ opacity:0; transform:translateX(-10px);} to{ opacity:1; } }
.pt-dot:hover{
  background:rgba(38,44,68,.62);
  border-color:rgba(255,214,140,.5);
  box-shadow:0 4px 18px rgba(0,0,0,.3);
  transform:translateX(calc(var(--pt-out,0px) + 6px));
}
.pt-ico{
  width:22px; height:22px; border-radius:50%; flex:0 0 22px;
  display:grid; place-items:center; font-size:12.5px;
  background:rgba(255,255,255,.1);
}
.pt-label{ opacity:.92; }

@media (max-width:767px){
  .pt-rail{ left:8px; }
  .pt-ring{ max-height:64vh; overflow-y:auto; padding:4px 2px; }
  .pt-dot{ font-size:12px; padding:4px 10px 4px 5px; }
}

/* ---- 开场小导游：不接管屏幕，只在角落轻声带路 ---- */
#planet-intro{
  --pi-night:#101522; --pi-light:#dde8ff; --pi-gold:#f5d99a;
  position:fixed; right:clamp(18px,2.2vw,34px); bottom:clamp(68px,8vh,92px); z-index:60;
  width:min(324px,calc(100vw - 36px)); pointer-events:none;
  opacity:0; visibility:hidden; transform:translateY(12px) scale(.97); transform-origin:bottom right;
  transition:opacity .38s ease,transform .38s cubic-bezier(.2,.85,.25,1),visibility .38s;
}
#planet-intro.on{opacity:1;visibility:visible;transform:none;}
#planet-intro .pi-guide{
  position:relative;pointer-events:auto;padding:17px 18px 15px;border-radius:24px;
  overflow:hidden;color:var(--pi-light);
  background:color-mix(in srgb,var(--pi-night) 74%,transparent);
  border:1px solid color-mix(in srgb,var(--pi-light) 18%,transparent);
  box-shadow:0 20px 52px rgba(7,10,20,.34),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(18px) saturate(1.18);-webkit-backdrop-filter:blur(18px) saturate(1.18);
}
#planet-intro .pi-guide::after{
  content:"";position:absolute;right:38px;bottom:-7px;width:14px;height:14px;transform:rotate(45deg);
  background:color-mix(in srgb,var(--pi-night) 78%,transparent);border-right:1px solid rgba(221,232,255,.16);border-bottom:1px solid rgba(221,232,255,.16);
}
#planet-intro .pi-head{display:flex;align-items:center;gap:11px;}
#planet-intro .pi-orb{position:relative;width:38px;height:38px;flex:0 0 38px;border-radius:50%;
  display:grid;place-items:center;background:radial-gradient(circle at 34% 30%,var(--pi-light),var(--pi-gold) 24%,rgba(151,175,231,.76) 58%,rgba(83,105,170,.3));
  box-shadow:0 0 24px rgba(221,232,255,.22),inset 0 0 0 1px rgba(255,255,255,.34);}
#planet-intro .pi-orb::before{content:"";position:absolute;inset:-4px;border:1px solid rgba(221,232,255,.2);border-radius:50%;animation:pi-orbit 5s linear infinite;}
#planet-intro .pi-orb i{width:5px;height:5px;border-radius:50%;background:var(--pi-light);box-shadow:0 0 8px var(--pi-light);}
@keyframes pi-orbit{to{transform:rotate(360deg)}}
#planet-intro .pi-heading{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px;}
#planet-intro .pi-heading small{font:500 10px/1.2 var(--sans,system-ui,sans-serif);letter-spacing:.16em;color:rgba(221,232,255,.58);}
#planet-intro .pi-heading strong{font:400 18px/1.25 "EB Garamond","Noto Serif SC",serif;color:var(--pi-light);}
#planet-intro .pi-pause{width:30px;height:30px;flex:0 0 30px;padding:0;border-radius:50%;cursor:pointer;
  border:1px solid rgba(221,232,255,.14);background:rgba(221,232,255,.06);color:rgba(221,232,255,.72);font:500 11px/1 var(--sans,system-ui,sans-serif);}
#planet-intro .pi-pause:hover{background:rgba(221,232,255,.13);color:var(--pi-light);}
#planet-intro .pi-progress{display:flex;align-items:center;gap:5px;margin:12px 0 13px 49px;height:3px;}
#planet-intro .pi-progress i{display:block;width:5px;height:3px;border-radius:3px;background:rgba(221,232,255,.18);transition:width .35s ease,background .35s ease;}
#planet-intro .pi-progress i.done{background:rgba(245,217,154,.46);}
#planet-intro .pi-progress i.on{width:24px;background:var(--pi-gold);box-shadow:0 0 10px rgba(245,217,154,.34);}
#planet-intro .pi-cap{
  min-height:3.5em;margin:0;color:rgba(221,232,255,.92);
  font:300 14px/1.72 "Noto Serif SC",serif;letter-spacing:0;
  opacity:0;transform:translateY(5px);transition:opacity .38s ease,transform .38s ease;
}
#planet-intro .pi-cap.on{opacity:1;transform:none;}
#planet-intro .pi-task{display:flex;align-items:flex-start;gap:7px;margin:10px 0 0;color:rgba(245,217,154,.72);font:500 10.5px/1.5 var(--sans,system-ui,sans-serif);}
#planet-intro .pi-task>span:first-child{margin-top:1px;}
#planet-intro .pi-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(221,232,255,.08);}
#planet-intro .pi-skip{
  padding:7px 2px;border:0;background:transparent;cursor:pointer;color:rgba(221,232,255,.46);font:500 11px/1 var(--sans,system-ui,sans-serif);
}
#planet-intro .pi-skip:hover{color:rgba(221,232,255,.82);}
#planet-intro .pi-next{padding:9px 15px;border:1px solid rgba(221,232,255,.2);border-radius:999px;cursor:pointer;
  background:rgba(221,232,255,.92);color:var(--pi-night);font:600 11.5px/1 var(--sans,system-ui,sans-serif);box-shadow:0 6px 18px rgba(7,10,20,.2);transition:transform .2s ease,background .2s ease;}
#planet-intro .pi-next:hover{transform:translateY(-1px);background:var(--pi-light);}
#planet-intro .pi-signal{position:absolute;right:-4px;top:-4px;z-index:2;width:14px;height:14px;border-radius:50%;background:var(--pi-gold);box-shadow:0 0 12px rgba(245,217,154,.75);}
#planet-intro .pi-signal i{position:absolute;inset:-4px;border:1px solid rgba(245,217,154,.55);border-radius:50%;animation:pi-ping 2.2s ease-out infinite;}
#planet-intro.paused .pi-signal i{animation-play-state:paused;opacity:0;}
@keyframes pi-ping{0%{transform:scale(.65);opacity:.75}75%,100%{transform:scale(1.7);opacity:0}}

@media (max-width:767px){
  #planet-intro{right:10px;bottom:calc(58px + env(safe-area-inset-bottom));width:min(292px,calc(100vw - 20px));}
  #planet-intro .pi-guide{padding:14px 15px 12px;border-radius:20px;}
  #planet-intro .pi-orb{width:34px;height:34px;flex-basis:34px;}
  #planet-intro .pi-heading strong{font-size:16px;}
  #planet-intro .pi-progress{margin:9px 0 10px 45px;}
  #planet-intro .pi-cap{font-size:12.5px;line-height:1.65;min-height:3.3em;}
  #planet-intro .pi-task{font-size:10px;margin-top:7px;}
  #planet-intro .pi-actions{margin-top:10px;padding-top:9px;}
  #planet-intro .pi-next{padding:8px 13px;font-size:11px;}
}

@media (prefers-reduced-motion: reduce){
  .pt-dot{ animation:none; }
  #planet-intro,#planet-intro .pi-cap{transition:none;}
  #planet-intro .pi-orb::before,#planet-intro .pi-signal i{animation:none;}
}
