/* 城堡工作台：复古游戏界面那种外壳——深石板面板、羊皮纸卡片、缎带书签、细黄铜线，全部按整点画（2026-11-10 起替掉仿 98 的样子）。
   普通窗口是一沓羊皮纸（标题前带编目号，缎带当关闭钮）；系统自己说话的窗口、菜单、任务栏是石板面板；
   右上角的状态栏是 js/hud.js，交接单是追踪中的目标卡。手机那套在文件末尾（#desktop.mobile）。
   这一份排在 desktop.css 后面。原来最底下还垫着一份 vendor/98-retro.css（98.css 换了配色），2026-11-19 退役（本人盘点：98 底子删）：
   它管的外观这里早就都盖掉了，剩下的只是结构上的底子（按钮、输入框去掉浏览器自带的边，单选、复选框藏起原生的那颗、
   标签和行怎么排），写在下面「控件的底子」里。那时为了压过它写的 html :where(#desktop) 前缀还留着，不碍事
   98 那组颜色变量（--face --raised --sunken……）2026-11-19 都换成了这里的，各程序的样式拆在 css/ 下各自的文件里 */
:root {
  /* 城堡的色板放在最外层：桌面里外都用得着（手册、收音机这些摊在桌面外面）。和 desktop.css 那组 98 的变量只有 --ink 重名，它留在 #desktop 里 */
  /* 石板 */
  --slate: #2a292b;
  --slate-hi: #3b393a;
  --slate-lo: #1d1c1e;
  --line: #8c7b5c;
  --gold: #c9aa6c;
  --text: #e9dfcc;
  --text-dim: #a59b89;
  /* 羊皮纸 */
  --parch: #e3d6bd;
  --parch-hi: #f0e6d1;
  --parch-lo: #cdbd9e;
  --parch-edge: #8f7c5c;
  --ink-soft: #6e6250;
  /* 缎带、三条刻度 */
  --rust: #a24a2d;
  --rust-d: #6f2f1c;
  --rust-l: #c96d4c;
  --bar-a: #c0563a;
  --bar-b: #c9a14b;
  --bar-c: #d2cbbb;
  /* 纸上的细颗粒：隔一个点深一个点 */
  --grain: repeating-conic-gradient(#0000 0 25%, #6b573a14 0 50%) 0 0 / 2px 2px;
  /* 一沓纸：自己一圈边，后面错开露出两页，再一块硬影 */
  --pages: 0 0 0 1px var(--parch-edge), 4px 4px 0 0 var(--parch-lo), 4px 4px 0 1px var(--parch-edge), -4px 7px 0 -1px var(--parch-lo), -4px 7px 0 0 var(--parch-edge), 12px 14px 0 0 #0000004d;
  /* 面板四角各切两级台阶 */
  --notch: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 3px 6px, 3px 3px, 6px 3px);
  --nick: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  /* 燕尾缎带（20 × 34） */
  --ribbon: polygon(0 0, 20px 0, 20px 34px, 17px 34px, 17px 32px, 14px 32px, 14px 30px, 11px 30px, 11px 28px, 9px 28px, 9px 30px, 6px 30px, 6px 32px, 3px 32px, 3px 34px, 0 34px);
}

#desktop {
  --ink: #2f2823;
  /* 按钮跟着底子换：纸上是一条深一档的纸，石板上是亮一档的石板 */
  --btn: var(--parch-lo);
  --btn-edge: var(--parch-edge);
  --btn-ink: var(--ink);
}

#desktop,
#desktop button,
#desktop a.button,
#desktop input,
#desktop select,
#desktop textarea,
#desktop label,
#desktop legend,
#desktop .title-bar-text {
  font-family: var(--px);
}

/* ── 控件的底子（原来由 vendor/98-retro.css 给，2026-11-19 退役）：只管结构，颜色、边、图案都在后面城堡这一套里。
   都套 :where(#desktop)，优先级和原来那份的元素选择器一样低，谁写了更具体的规则谁说了算 ── */
:where(#desktop) .window {
  padding: 3px;
}

:where(#desktop) .title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 2px 3px 3px;
}

:where(#desktop) .title-bar-text {
  margin-right: 24px;
  font-weight: bold;
}

:where(#desktop) .title-bar-controls {
  display: flex;
}

:where(#desktop) .title-bar-controls button {
  display: block;
  min-width: 16px;
  min-height: 14px;
  padding: 0;
}

:where(#desktop) .window-body {
  margin: 8px;
}

:where(#desktop) .status-bar {
  display: flex;
  gap: 1px;
  margin: 0 1px;
}

:where(#desktop) .status-bar-field {
  flex-grow: 1;
  margin: 0;
  padding: 2px 3px;
}

:where(#desktop) button {
  box-sizing: border-box;
  min-width: 75px;
  min-height: 23px;
  padding: 0 12px;
  border: none;
  border-radius: 0;
}

:where(#desktop) :is(input[type='text'], input[type='password'], input[type='search'], input[type='url'], input[type='email'], input[type='tel'], input[type='number'], textarea, select) {
  appearance: none;
  box-sizing: border-box;
  padding: 3px 4px;
  border: none;
  border-radius: 0;
}

:where(#desktop) :is(input[type='text'], input[type='password'], input[type='search'], input[type='url'], input[type='email'], input[type='tel'], select) {
  height: 21px;
}

:where(#desktop) :is(input[type='text'], input[type='password'], input[type='search'], input[type='url'], input[type='email'], input[type='tel'], input[type='number']) {
  line-height: 2;
}

:where(#desktop) input[type='number'] {
  height: 22px;
}

:where(#desktop) :is(input, textarea, select):focus {
  outline: none;
}

:where(#desktop) select {
  padding-right: 32px;
}

/* 单选、复选：原生的那颗藏起来，样子画在后面的 label 上（::before 是框，::after 是选中的点、勾） */
:where(#desktop) :is(input[type='radio'], input[type='checkbox']) {
  position: fixed;
  margin: 0;
  border: none;
  background: none;
  opacity: 0;
  appearance: none;
}

:where(#desktop) label {
  display: inline-flex;
  align-items: center;
  user-select: none;
}

:where(#desktop) :is(input[type='radio'], input[type='checkbox']) + label {
  position: relative;
  line-height: 13px;
}

:where(#desktop) input[type='radio'] + label {
  margin-left: 18px;
}

:where(#desktop) input[type='checkbox'] + label {
  margin-left: 19px;
}

:where(#desktop) :is(input[type='radio'], input[type='checkbox']) + label::before {
  content: '';
  position: absolute;
  top: 0;
  display: inline-block;
  margin-right: 6px;
}

:where(#desktop) input[type='radio'] + label::before {
  left: -18px;
  width: 12px;
  height: 12px;
}

:where(#desktop) input[type='checkbox'] + label::before {
  left: -19px;
  width: 13px;
  height: 13px;
}

:where(#desktop) input[type='radio']:checked + label::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 4px;
  display: block;
  width: 4px;
  height: 4px;
}

:where(#desktop) input[type='checkbox']:checked + label::after {
  content: '';
  position: absolute;
  left: -16px;
  display: block;
  width: 7px;
  height: 7px;
}

:where(#desktop) :is(input[type='radio'], input[type='checkbox']):focus-visible + label {
  outline: 1px dotted currentColor;
}

:where(#desktop) fieldset {
  margin: 0;
  padding: 10px;
  padding-block-start: 8px;
}

:where(#desktop) .field-row {
  display: flex;
  align-items: center;
}

:where(#desktop) [class^='field-row'] + [class^='field-row'] {
  margin-top: 6px;
}

:where(#desktop) .field-row > * + * {
  margin-left: 6px;
}

/* ── 窗口＝一沓羊皮纸：标题是纸上的一行，下面一道细线；右上角垂一条缎带，拉它就合上 ── */
#desktop .windows {
  counter-reset: win;
}

#desktop .window {
  counter-increment: win;
  padding: 2px 12px 12px;
  background: var(--grain), var(--parch);
  color: var(--ink);
  box-shadow: var(--pages);
}

/* 3D 模式：窗口像像素游戏里的面板——
   一圈 2 点粗的深描边，里面一圈斜面（左上亮、右下暗）；
   底下露出一叠纸的厚边：像从略高处往下看，正面高、右侧只露一两点，一层浅一层深（纸页），最后收一道深描边，再一块硬影。
   标题栏是横贯的一条横幅（上亮下暗），关闭的缎带从它上面垂下来。拖动时 winfx.js 照同一套现算厚边（跟着倾斜换露哪边） */
#desktop.three-d .window {
  --wline: #4a3a28;
  box-shadow:
    inset 2px 2px 0 0 var(--parch-hi),
    inset -2px -2px 0 0 var(--parch-lo),
    0 0 0 2px var(--wline),
    0 4px 0 2px var(--parch-lo),
    0 6px 0 2px var(--parch-edge),
    1px 8px 0 2px var(--parch-lo),
    1px 10px 0 2px var(--parch-edge),
    1px 12px 0 2px var(--parch-lo),
    2px 14px 0 2px var(--wline),
    10px 22px 0 2px #0000004d;
}


/* 甩碎的时候一个字一块（winfx.js 拆开，过一会儿还原） */
.wfx-bit {
  display: inline-block;
  white-space: pre;
}

#desktop .window:not(.active) {
  --parch: #d6cdb9;
  --rust: #84705e;
  --rust-l: #9c8a78;
  --rust-d: #5e5044;
}

#desktop .title-bar,
#desktop .window:not(.active) .title-bar {
  min-height: 0;
  padding: 9px 70px 7px 0;
  background: none;
  border-bottom: 1px solid var(--ink-soft);
  box-shadow: 0 2px 0 -1px #00000014;
}

/* 3D 模式的标题栏：横贯窗口的一条横幅（上亮下暗，底下一道深线），没激活的窗口浅一档。写在上面那条后头才压得住 */
#desktop.three-d .window .title-bar {
  margin: -2px -12px 0;
  padding-left: 12px;
  background: var(--parch-lo);
  border-bottom: 2px solid var(--wline);
  box-shadow: inset 0 2px 0 var(--parch-hi), inset 2px 0 0 var(--parch-hi), inset 0 -2px 0 var(--parch-edge);
}

#desktop.three-d .window:not(.active) .title-bar {
  background: var(--parch);
}

/* 3D 模式：界面（窗口、快捷栏、开始菜单、面板、图标……）整体降一点饱和，和饱和的草原背景分开；草原画布、天上的名字不动。
   窗口那一层（.windows）不能加：它没定位、没高度，加了滤镜就成了窗口的定位参照，最大化的窗口高度算出来是负的（内容全没了）——
   所以滤镜加在每个窗口自己身上 */
#desktop.three-d > :not(canvas, .cat-bubble, .windows),
#desktop.three-d .window {
  filter: saturate(0.68);
}

/* ── 3D 模式的三套像素皮肤（js/winskin.js 开机时画的九宫格，一个美术点 = 2 个 CSS 像素），按模块分（data-skin） ── */
#desktop.three-d .window[data-skin] {
  border-style: solid;
  image-rendering: pixelated;
}

#desktop.three-d .window[data-skin] .title-bar {
  margin: 0;
  padding-left: 2px;
  background: none;
  box-shadow: none;
}

/* 铁木框：深色木框带木纹、四角铁片铆钉、一道铜边；顶上正中一个铜饰；底下露出一截木头的厚边 */
#desktop.three-d .window[data-skin='wood'] {
  border-width: 24px;
  border-image: var(--skin-wood) 12 / 24px round;
  padding: 0 8px 8px;
  box-shadow: 0 4px 0 0 #2b1e15, 1px 8px 0 0 #43311f, 1px 10px 0 0 #2b1e15, 2px 14px 0 0 #140d08, 10px 22px 0 0 #0000004d;
}

#desktop.three-d .window[data-skin='wood']::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 20px;
  translate: -50% 0;
  background: var(--skin-wood-crest) 0 0 / 100% 100%;
  pointer-events: none;
}

#desktop.three-d .window[data-skin='wood'] .title-bar {
  border-bottom: 2px solid #9a7a44;
}

/* 账本：一页旧纸（带污渍）压在一沓纸页上，左下露出页边；标题是左上角一块标签 */
#desktop.three-d .window[data-skin='book'] {
  --ink: #3a2620;
  border-width: 10px 10px 18px 26px;
  border-image: var(--skin-book) 5 5 9 13 / 10px 10px 18px 26px round;
  padding: 0 8px 8px;
  background: var(--skin-book-paper) 0 0 / 128px 128px;
  background-clip: padding-box;
  box-shadow: none;
  filter: saturate(0.68) drop-shadow(6px 8px 0 #0000004d);
}

#desktop.three-d .window[data-skin='book'] .title-bar {
  padding-top: 8px;
  border-bottom: none;
}

#desktop.three-d .window[data-skin='book'] .title-bar-text {
  padding: 3px 14px 3px 8px;
  background: #efdcb8;
  box-shadow: 0 0 0 2px #3a2620, 3px 3px 0 2px #b0624a;
}

/* 羊皮卷：三张旧纸叠着（颜色、撕口各不相同，叠着的地方颜色叠起来，磨损从外往里递减）；标题居中 */
#desktop.three-d .window[data-skin='scroll'] {
  --ink: #3b2a1a;
  border-width: 28px;
  border-image: var(--skin-scroll) 14 / 28px round;
  padding: 0 8px 8px;
  background: var(--skin-scroll-paper) 0 0 / 96px 96px;
  background-clip: padding-box;
  box-shadow: none;
  filter: saturate(0.68) drop-shadow(5px 7px 0 #00000059);
}

#desktop.three-d .window[data-skin='scroll'] .title-bar {
  justify-content: center;
  padding-right: 0;
  border-bottom: none;
}

#desktop.three-d .window[data-skin='scroll'] .title-bar-text {
  letter-spacing: 3px;
}

#desktop .title-bar-text {
  margin: 0;
  gap: 6px;
  color: inherit;
  font-weight: normal;
  letter-spacing: 1px;
  text-shadow: none;
}

/* 编目号：第几件摊开的东西 */
#desktop .title-bar-text::before {
  content: counter(win, decimal-leading-zero);
  margin-right: 2px;
  color: var(--rust);
  letter-spacing: 1px;
}

#desktop .window-body {
  margin: 8px 0 0;
}

#desktop .title-bar-controls {
  position: absolute;
  top: 0;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

#desktop .title-bar-controls button,
#desktop .title-bar-controls button:active,
#desktop .title-bar-controls button:focus {
  position: relative;
  width: 12px;
  min-width: 12px;
  height: 12px;
  min-height: 12px;
  margin: 12px 0 0;
  padding: 0;
  outline: none;
  background: none;
  box-shadow: none;
  color: var(--ink-soft);
  transform: none;
}

#desktop .title-bar-controls button:hover {
  color: var(--rust);
}

#desktop .title-bar-controls button[aria-label='Minimize']::before {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 2px;
  background: currentColor;
}

#desktop .title-bar-controls button[aria-label='Maximize']::before,
#desktop .title-bar-controls button[aria-label='Restore']::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid currentColor;
  border-top-width: 2px;
}

#desktop .title-bar-controls button[aria-label='Close'],
#desktop .title-bar-controls button[aria-label='Close']:active,
#desktop .title-bar-controls button[aria-label='Close']:focus {
  width: 20px;
  min-width: 20px;
  height: 34px;
  min-height: 34px;
  margin: -4px 0 0;
  clip-path: var(--ribbon);
  background: var(--rust)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 34' shape-rendering='crispEdges'%3E%3Cpath fill='%23f0e6d1' d='M5 9h2v2H5zM7 11h2v2H7zM9 13h2v2H9zM11 15h2v2h-2zM13 17h2v2h-2zM13 9h2v2h-2zM11 11h2v2h-2zM7 15h2v2H7zM5 17h2v2H5z'/%3E%3C/svg%3E")
    0 0 / 20px 34px no-repeat;
  box-shadow: inset 2px 0 0 var(--rust-l), inset -2px 0 0 var(--rust-d), inset 0 4px 0 var(--rust-d);
}

#desktop .title-bar-controls button[aria-label='Close']:hover {
  height: 37px;
  background-color: var(--rust-l);
}

#desktop .status-bar {
  margin: 8px 0 -4px;
  padding: 4px 0 0;
  gap: 12px;
  border-top: 1px solid #6e625055;
  color: var(--ink-soft);
}

#desktop .status-bar-field {
  padding: 0;
  box-shadow: none;
}

#desktop .win-grip {
  background: repeating-conic-gradient(var(--ink-soft) 0 25%, #0000 0 50%) 0 0 / 4px 4px;
  clip-path: polygon(100% 30%, 100% 100%, 30% 100%);
}

/* 系统自己说话的窗口（运行、提示）＝石板面板：四角切台阶，里面一圈黄铜细线 */
#desktop .window[data-id='run'],
#desktop .window:not([data-id]) {
  --btn: var(--slate-hi);
  --btn-edge: var(--line);
  --btn-ink: var(--text);
  padding: 6px 16px 14px;
  background: var(--slate);
  color: var(--text);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 3px var(--slate), inset 0 0 0 4px var(--line);
}

#desktop .window[data-id='run'] .title-bar,
#desktop .window:not([data-id]) .title-bar {
  border-bottom-color: var(--line);
  box-shadow: none;
}

#desktop .window[data-id='run'] .title-bar-text::before,
#desktop .window:not([data-id]) .title-bar-text::before {
  color: var(--gold);
}

#desktop .window[data-id='run'] .title-bar-controls button:not([aria-label='Close']),
#desktop .window:not([data-id]) .title-bar-controls button:not([aria-label='Close']) {
  color: var(--text-dim);
}

/* ── 按钮：平的一条，一圈细边；按下去暗一档 ── */
html :where(#desktop) button,
html :where(#desktop) a.button {
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: inset 0 0 0 1px var(--btn-edge);
  text-shadow: none;
}

html :where(#desktop) button:not(:disabled):hover,
html :where(#desktop) a.button:hover {
  filter: brightness(1.06);
}

html :where(#desktop) button:not(:disabled):active,
html :where(#desktop) a.button:active {
  box-shadow: inset 0 0 0 1px var(--btn-edge), inset 0 0 0 99px #00000022;
}

html :where(#desktop) button:focus,
html :where(#desktop) a.button:focus {
  outline: 1px dotted currentColor;
  outline-offset: -4px;
}

html :where(#desktop) input[type='text'],
html :where(#desktop) input[type='password'],
html :where(#desktop) input[type='search'],
html :where(#desktop) input:not([type]),
html :where(#desktop) select,
html :where(#desktop) textarea {
  background-color: var(--parch-hi);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--parch-edge), inset 0 2px 0 0 #6b573a22;
}

#desktop ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#desktop ::-webkit-scrollbar-track,
#desktop ::-webkit-scrollbar-corner {
  background: #6e625026;
  box-shadow: none;
}

#desktop ::-webkit-scrollbar-thumb {
  background: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--ink), inset 2px 0 0 #ffffff2e;
}

#desktop ::-webkit-scrollbar-button {
  display: none;
}

/* ── 窗口里面：写死了 98 灰白的几处（我的电脑、语言课进度）单独盖。
   原来这里还把 98 那组颜色变量（--hi --face --sunken……）在窗口这一层换成羊皮纸的值；2026-11-19 各程序都直接用城堡的变量了，那块拿掉 ── */
#desktop .ex-main,
#desktop .wc-card,
#desktop .pl-card {
  background: var(--parch-hi);
  box-shadow: inset 0 0 0 1px var(--parch-edge);
}

/* 拉丁语那栏：去 Hythlod 的口子 */
#desktop .pl-go {
  margin-top: 6px;
}

#desktop .ex-side {
  border-right-color: #6e625040;
}

#desktop.mobile .ex-side {
  border-bottom-color: #6e625040;
}

/* 侧栏标题下那道线：一截锈红接一道细墨线 */
#desktop .ex-side hr {
  height: 3px;
  background: linear-gradient(90deg, var(--rust) 0 24px, var(--ink-soft) 24px) 0 1px / 100% 1px no-repeat,
    linear-gradient(var(--rust), var(--rust)) 0 0 / 24px 3px no-repeat;
}

#desktop .window a:not(.button),
#desktop .ex-link {
  color: var(--rust);
  text-underline-offset: 2px;
}

#desktop .window a:not(.button):hover,
#desktop .ex-link:hover {
  color: var(--rust-d);
}

/* 分组框：一圈细线，标题是锈红的小字 */
html :where(#desktop) fieldset {
  border: 1px solid #6e625066;
  border-image: none;
  padding: 8px 10px 10px;
}

html :where(#desktop) legend {
  padding: 0 4px;
  background: none;
  color: var(--rust);
}

/* 单选：菱形，选中的里面一颗锈红的小菱形 */
html :where(#desktop) input[type='radio'] + label::before {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2012%2012%27%20shape-rendering%3D%27crispEdges%27%3E%3Cpath%20fill%3D%27%23f0e6d1%27%20d%3D%27M5%201h2v1h-2zM4%202h4v1h-4zM3%203h6v1h-6zM2%204h8v1h-8zM1%205h10v1h-10zM1%206h10v1h-10zM2%207h8v1h-8zM3%208h6v1h-6zM4%209h4v1h-4zM5%2010h2v1h-2z%27%2F%3E%3Cpath%20fill%3D%27%232f2823%27%20d%3D%27M5%200h2v1h-2zM4%201h1v1h-1zM7%201h1v1h-1zM3%202h1v1h-1zM8%202h1v1h-1zM2%203h1v1h-1zM9%203h1v1h-1zM1%204h1v1h-1zM10%204h1v1h-1zM0%205h1v1h-1zM11%205h1v1h-1zM0%206h1v1h-1zM11%206h1v1h-1zM1%207h1v1h-1zM10%207h1v1h-1zM2%208h1v1h-1zM9%208h1v1h-1zM3%209h1v1h-1zM8%209h1v1h-1zM4%2010h1v1h-1zM7%2010h1v1h-1zM5%2011h2v1h-2z%27%2F%3E%3C%2Fsvg%3E");
}

html :where(#desktop) input[type='radio']:checked + label::before {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2012%2012%27%20shape-rendering%3D%27crispEdges%27%3E%3Cpath%20fill%3D%27%23f0e6d1%27%20d%3D%27M5%201h2v1h-2zM4%202h4v1h-4zM3%203h6v1h-6zM2%204h8v1h-8zM1%205h10v1h-10zM1%206h10v1h-10zM2%207h8v1h-8zM3%208h6v1h-6zM4%209h4v1h-4zM5%2010h2v1h-2z%27%2F%3E%3Cpath%20fill%3D%27%232f2823%27%20d%3D%27M5%200h2v1h-2zM4%201h1v1h-1zM7%201h1v1h-1zM3%202h1v1h-1zM8%202h1v1h-1zM2%203h1v1h-1zM9%203h1v1h-1zM1%204h1v1h-1zM10%204h1v1h-1zM0%205h1v1h-1zM11%205h1v1h-1zM0%206h1v1h-1zM11%206h1v1h-1zM1%207h1v1h-1zM10%207h1v1h-1zM2%208h1v1h-1zM9%208h1v1h-1zM3%209h1v1h-1zM8%209h1v1h-1zM4%2010h1v1h-1zM7%2010h1v1h-1zM5%2011h2v1h-2z%27%2F%3E%3Cpath%20fill%3D%27%23a24a2d%27%20d%3D%27M5%203h2v1h-2zM4%204h4v1h-4zM3%205h6v1h-6zM3%206h6v1h-6zM4%207h4v1h-4zM5%208h2v1h-2z%27%2F%3E%3C%2Fsvg%3E");
}

html :where(#desktop) input[type='radio']:checked + label::after {
  display: none;
}

/* 复选：一个纸方块，勾是锈红的 */
html :where(#desktop) input[type='checkbox'] + label::before {
  background: var(--parch-hi);
  box-shadow: inset 0 0 0 1px var(--ink);
}

html :where(#desktop) input[type='checkbox']:checked + label::after {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%207%207%27%20shape-rendering%3D%27crispEdges%27%3E%3Cpath%20fill%3D%27%23a24a2d%27%20d%3D%27M6%200h1v1h-1zM5%201h2v1h-2zM0%202h1v1h-1zM4%202h2v1h-2zM0%203h2v1h-2zM3%203h2v1h-2zM1%204h3v1h-3zM2%205h1v1h-1z%27%2F%3E%3C%2Fsvg%3E");
}

/* 下拉框：纸面一条，右边一个墨色小三角 */
html :where(#desktop) select,
html :where(#desktop) select:active {
  padding-right: 22px;
  background: var(--parch-hi) url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%209%205%27%20shape-rendering%3D%27crispEdges%27%3E%3Cpath%20fill%3D%27%232f2823%27%20d%3D%27M0%200h9v1h-9zM1%201h7v1h-7zM2%202h5v1h-5zM3%203h3v1h-3zM4%204h1v1h-1z%27%2F%3E%3C%2Fsvg%3E") no-repeat right 7px center / 9px 5px;
  box-shadow: inset 0 0 0 1px var(--parch-edge), inset 0 2px 0 0 #6b573a22;
}

html :where(#desktop) select:focus {
  background-color: var(--parch-hi);
  color: var(--ink);
  outline: 1px dotted var(--ink);
  outline-offset: -4px;
}

/* ── 任务栏＝底下一条石板：开着的东西是一格格带号的快捷栏 ── */
#desktop .taskbar {
  --btn: var(--slate-hi);
  --btn-edge: var(--line);
  --btn-ink: var(--text);
  padding: 5px 8px 3px;
  gap: 8px;
  background: var(--slate);
  box-shadow: inset 0 1px 0 var(--slate-lo), inset 0 2px 0 var(--line), inset 0 3px 0 var(--slate-lo);
}

#desktop .tasks {
  gap: 4px;
  counter-reset: slot;
}

#desktop .taskbar .task,
#desktop .taskbar .start {
  min-height: 0;
  height: 22px;
  padding: 0 12px 0 8px;
  clip-path: var(--nick);
  background: var(--slate-hi);
  color: var(--text-dim);
  font-weight: normal;
  box-shadow: inset 0 0 0 1px var(--line);
  transform: none;
}

#desktop .taskbar .task::before {
  counter-increment: slot;
  content: counter(slot);
  margin-right: 2px;
  color: var(--gold);
}

#desktop .taskbar .task .px-icon {
  display: none;
}

#desktop .taskbar .task.active {
  background: var(--grain), var(--parch);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--parch-edge), inset 0 -3px 0 var(--rust);
}

#desktop .taskbar .task.active::before {
  color: var(--rust);
}

#desktop .taskbar .start {
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

#desktop .taskbar .start.pressed {
  background: var(--slate-lo);
}

#desktop .tray {
  height: 22px;
  padding: 0 10px 0 6px;
  clip-path: var(--nick);
  color: var(--text);
  background: var(--slate-lo);
  box-shadow: inset 0 0 0 1px var(--line);
}

#desktop .tray button {
  color: inherit;
  background: none;
  box-shadow: none;
}

/* ── 开始菜单、右键菜单、提示卡＝石板面板 ── */
#desktop .startmenu,
#desktop .ctxmenu,
#desktop .balloon {
  --btn: var(--slate-hi);
  --btn-edge: var(--line);
  --btn-ink: var(--text);
  padding: 8px;
  background: var(--slate);
  color: var(--text);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 3px var(--slate), inset 0 0 0 4px var(--line);
}

#desktop .startmenu {
  left: 8px;
  bottom: 34px;
}

#desktop .startmenu li,
#desktop .ctxmenu li {
  border-bottom: 1px solid #ffffff12;
}

#desktop .startmenu li:hover,
#desktop .ctxmenu li:hover {
  background: var(--slate-hi);
  color: var(--parch-hi);
  box-shadow: inset 3px 0 0 var(--rust);
}

#desktop .startmenu li.sep,
#desktop .ctxmenu li.sep {
  margin: 4px 0;
  height: 1px;
  border: 0;
  background: var(--line);
}

#desktop .balloon {
  padding: 12px 14px;
}

#desktop .balloon small {
  color: var(--text-dim);
}

/* 桌面图标的字垫一小块半透明石板（手机上同一条，见文件末尾） */
#desktop .icons .dicon span {
  background: #2a292bcc;
  color: var(--text);
  text-shadow: none;
}

#desktop .dicon:focus span {
  background: var(--slate);
  color: var(--gold);
  outline: 1px solid var(--line);
}

#desktop .dicon:focus .px-icon {
  filter: none;
}

/* ── 交接单＝追踪中的目标：一沓羊皮纸，右上一条缎带 ── */
#desktop .hand {
  top: 228px;
  right: 30px;
  width: 300px;
  padding: 12px 16px 12px;
  background: var(--grain), var(--parch);
  color: var(--ink);
  box-shadow: var(--pages);
}

#desktop .hand::before {
  top: -4px;
  left: auto;
  right: 16px;
  width: 20px;
  height: 34px;
  translate: none;
  rotate: none;
  clip-path: var(--ribbon);
  background: var(--rust);
  box-shadow: inset 2px 0 0 var(--rust-l), inset -2px 0 0 var(--rust-d), inset 0 4px 0 var(--rust-d);
}

#desktop .hand .hand-head {
  padding: 2px 34px 8px 0;
  border-bottom: 1px solid var(--ink-soft);
}

#desktop .hand .hand-head b {
  letter-spacing: 2px;
}

/* 菱形花饰：标题前一枚大的，每行前一枚小的；办完的填实 */
#desktop .hand .hand-head b::before,
#desktop .hand-s i {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 3px;
  box-sizing: border-box;
  border: 1px solid var(--ink);
  border-radius: 0;
  rotate: 45deg;
  background: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

#desktop .hand-s i {
  margin: 0 7px 0 4px;
  background: none;
  font-size: 0;
}

#desktop .hand-s.done i {
  border-color: var(--rust);
  outline-color: var(--rust);
  background: var(--rust);
  rotate: 45deg;
}

#desktop .hand .hand-head small,
#desktop .hand-s b,
#desktop .hand-s.done span {
  color: var(--ink-soft);
}

#desktop .hand .hand-head em {
  color: var(--rust);
}

#desktop .hand li button {
  padding: 7px 0;
}

#desktop .hand-s + .hand-s {
  border-top: 1px solid #6e625040;
}

#desktop .hand-s + .hand-v {
  border-top: 1px solid var(--ink-soft);
}

/* ── 状态栏（js/hud.js）：日历卡 + 石板面板 + 徽记和等级 ── */
#desktop .hud {
  position: absolute;
  top: 22px;
  right: 30px;
  zoom: var(--uiz, 1);
  display: grid;
  grid-template-columns: 76px 232px 76px;
  grid-template-rows: auto auto;
  column-gap: 0;
  color: var(--text);
  font: 12px/1.5 var(--px);
  cursor: default;
}

.hud-date {
  grid-row: 1;
  z-index: 1;
  margin: -4px -6px 8px 0;
  padding: 16px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--grain), var(--parch);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--parch-edge), 3px 3px 0 0 var(--parch-lo), 3px 3px 0 1px var(--parch-edge), 8px 9px 0 #0000004d;
  position: relative;
}

/* 日历卡顶上夹着一枚小缎带 */
.hud-date::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 14px;
  height: 12px;
  translate: -50%;
  background: var(--rust);
  clip-path: polygon(0 0, 100% 0, 100% 6px, 12px 6px, 12px 8px, 10px 8px, 10px 10px, 8px 10px, 8px 12px, 6px 12px, 6px 10px, 4px 10px, 4px 8px, 2px 8px, 2px 6px, 0 6px);
}

.hud-date small {
  color: var(--ink-soft);
}

.hud-date strong {
  margin: 2px 0;
  padding: 0 8px;
  border-top: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  font-size: 36px;
  font-weight: normal;
  line-height: 40px;
}

.hud-main,
.hud-emblem,
.hud-lv,
.hud-chips,
.hud-xp {
  background: var(--slate);
  box-shadow: inset 0 0 0 3px var(--slate), inset 0 0 0 4px var(--line);
}

.hud-main {
  grid-row: 1;
  padding: 10px 16px 12px 20px;
  clip-path: var(--notch);
}

.hud-main h2 {
  margin: 0;
  font-size: 24px;
  font-weight: normal;
  line-height: 28px;
  letter-spacing: 1px;
  color: var(--parch-hi);
}

.hud-main p {
  margin: 0 0 6px;
  color: var(--text-dim);
}

.hud-bar {
  display: grid;
  grid-template-columns: 2.5em 1fr;
  align-items: end;
  column-gap: 6px;
  margin-top: 1px;
}

.hud-bar i {
  font-style: normal;
  color: var(--c);
}

.hud-bar small {
  display: block;
  text-align: right;
  color: var(--text-dim);
  line-height: 14px;
}

.hud-bar span,
.hud-xp span {
  display: block;
  height: 4px;
  margin-bottom: 5px;
  background: #4c494b;
  box-shadow: 0 1px 0 var(--slate-lo);
}

.hud-bar em,
.hud-xp em {
  display: block;
  height: 100%;
  /* 至少露两个点，不然第 1 课看不见 */
  width: max(2px, calc(var(--v) * 100%));
  background: var(--c, var(--gold));
  box-shadow: inset 0 1px 0 #ffffff40;
}

.hud-side {
  grid-row: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  margin-left: -1px;
}

.hud-emblem {
  display: grid;
  place-items: center;
  clip-path: var(--notch);
}

.hud-emblem svg {
  width: 64px;
  height: 64px;
}

.hud-lv {
  padding: 6px 0 5px;
  text-align: center;
  clip-path: var(--notch);
}

.hud-lv small {
  display: block;
  color: var(--text-dim);
  line-height: 12px;
}

.hud-lv b {
  font-size: 24px;
  font-weight: normal;
  line-height: 26px;
  color: var(--parch-hi);
}

.hud-chips {
  grid-row: 2;
  grid-column: 2;
  justify-self: start;
  margin: -1px 0 0 18px;
  padding: 6px 4px;
  display: flex;
  clip-path: var(--nick);
}

.hud-chips span {
  padding: 0 10px;
}

.hud-chips span + span {
  box-shadow: -1px 0 0 var(--line);
}

.hud-chips b {
  font-weight: normal;
  color: var(--gold);
}

.hud-xp {
  grid-row: 2;
  grid-column: 2 / 4;
  justify-self: end;
  width: 116px;
  margin-top: -1px;
  padding: 9px 12px 5px;
  clip-path: var(--nick);
  box-sizing: border-box;
}

.hud-xp small {
  color: var(--text-dim);
}

/* ── 手机：同一套部件，排成一列。状态栏和交接单都进图标网格占整行（desktop.js 把它们塞进 .icons 最前面） ── */
#desktop.mobile .hud {
  position: relative;
  top: auto;
  right: auto;
  grid-column: 1 / -1;
  justify-self: stretch;
  grid-template-columns: 64px 1fr 60px;
  margin: 6px 0 0 4px;
}

#desktop.mobile .hud-date strong {
  font-size: 36px;
  line-height: 40px;
}

#desktop.mobile .hud-main {
  padding: 8px 12px 10px 16px;
}

#desktop.mobile .hud-main h2 {
  font-size: 24px;
  line-height: 28px;
}

#desktop.mobile .hud-chips {
  margin-left: 10px;
}

#desktop.mobile .hud-chips span {
  padding: 0 7px;
}

#desktop.mobile .hud-xp {
  width: 104px;
}

#desktop.mobile .hand {
  justify-self: stretch;
  margin: 4px 8px 10px 4px;
  width: auto;
}

/* 顶上一条石板，底边一道黄铜线 */
#desktop.mobile .statusbar {
  background: var(--slate);
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--slate-lo), inset 0 -2px 0 var(--line);
}

#desktop.mobile .statusbar .sig b {
  background: var(--gold);
}

#desktop.mobile .statusbar .bat {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--gold) 70%, transparent 70%) content-box;
}

/* 底下的导航键：深一档的石板，三个记号用黄铜色 */
#desktop.mobile .navbar {
  background: var(--slate-lo);
  box-shadow: inset 0 1px 0 var(--line);
}

#desktop.mobile .navbar button::before {
  border-color: var(--gold);
}

#desktop.mobile .navbar [data-nav='back']::before {
  border-color: transparent;
  border-right-color: var(--gold);
}

#desktop.mobile .taskbar {
  box-shadow: inset 0 1px 0 var(--slate-lo), inset 0 2px 0 var(--line);
}

#desktop.mobile .taskbar .start,
#desktop.mobile .tray {
  height: 26px;
}

/* 「最近」弹出来的那一列开着的东西：石板面板，一格一行 */
#desktop.mobile .taskbar.show-tasks .tasks {
  gap: 4px;
  padding: 10px;
  height: auto;
  background: var(--slate);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 3px var(--slate), inset 0 0 0 4px var(--line);
}

#desktop.mobile .taskbar.show-tasks .tasks:empty::before {
  color: var(--text-dim);
}

#desktop.mobile .taskbar .task {
  height: 32px;
  justify-content: flex-start;
}

/* 窗口在手机上铺满：叠在后面的纸页收掉，只留一圈边 */
#desktop.mobile .window.max {
  padding: 0 12px 10px;
  box-shadow: 0 0 0 1px var(--parch-edge);
}

/* 手指点得中：两个小钮各给 28 × 28，缎带放长一点 */
#desktop.mobile .title-bar {
  padding-right: 92px;
}

#desktop.mobile .title-bar-controls {
  gap: 2px;
}

#desktop.mobile .title-bar-controls button:not([aria-label='Close']),
#desktop.mobile .title-bar-controls button:not([aria-label='Close']):active,
#desktop.mobile .title-bar-controls button:not([aria-label='Close']):focus {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  margin-top: 4px;
}

#desktop.mobile .title-bar-controls button[aria-label='Minimize']::before {
  left: 8px;
  right: 8px;
  bottom: 8px;
}

#desktop.mobile .title-bar-controls button[aria-label='Maximize']::before,
#desktop.mobile .title-bar-controls button[aria-label='Restore']::before {
  inset: 8px;
}

#desktop.mobile .title-bar-controls button[aria-label='Close'],
#desktop.mobile .title-bar-controls button[aria-label='Close']:active,
#desktop.mobile .title-bar-controls button[aria-label='Close']:focus {
  width: 28px;
  min-width: 28px;
  height: 44px;
  min-height: 44px;
  margin-left: 6px;
  clip-path: polygon(0 0, 28px 0, 28px 44px, 24px 44px, 24px 41px, 20px 41px, 20px 38px, 16px 38px, 16px 35px, 12px 35px, 12px 38px, 8px 38px, 8px 41px, 4px 41px, 4px 44px, 0 44px);
  background-position: 4px 6px;
}

/* 桌面图标的字：底下垫一小块石板，草原再亮也看得清 */
#desktop.mobile .icons .dicon span {
  background: #2a292bcc;
  color: var(--text);
  text-shadow: none;
}

/* ── 电脑上桌面只剩风景：状态栏、交接单、古堡三块面板平时收着（hidden），点草原上的景物才弹出来
   （风车、近处的树、城堡；desktop.js 的 panels）。那列桌面图标不要了，东西都在古堡的房间里和开始菜单里。
   换成纯色壁纸就没有景物可点：那时三块面板一直摊着（下面的 hidden 规则只在草原壁纸下生效） ── */
#desktop:not(.mobile) .icons {
  display: none;
}

#desktop[data-wallpaper='meadow'] .hud[hidden],
#desktop[data-wallpaper='meadow'] .hand[hidden],
#desktop[data-wallpaper='meadow'] .castlemap[hidden] {
  display: none;
}

#desktop:not([data-wallpaper='meadow']) .hand[hidden] {
  display: block;
}

#desktop:not(.mobile) .hud,
#desktop:not(.mobile) .hand,
#desktop .castlemap {
  animation: pop 0.2s steps(3);
}

/* 状态栏收着的时候，交接单顶上去 */
#desktop:not(.mobile) .hud[hidden] + .hand {
  top: 26px;
}

/* 「古堡」——分层的城堡平面图，房间就是入口（js/castlemap.js）。手机不建这块 */
#desktop .castlemap {
  --btn: var(--slate-hi);
  --btn-edge: var(--line);
  --btn-ink: var(--text);
  position: absolute;
  top: 22px;
  left: 26px;
  zoom: var(--uiz, 1);
  display: block;
  box-sizing: border-box;
  max-height: calc(100vh / var(--uiz, 1) - 60px);
  overflow-y: auto;
  padding: 10px 16px 14px;
  background: var(--slate);
  color: var(--text);
  font: 12px/1.5 var(--px);
  clip-path: var(--notch);
  box-shadow: inset 0 0 0 3px var(--slate), inset 0 0 0 4px var(--line);
  cursor: default;
}

.castlemap header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.castlemap header b {
  font-size: 24px;
  font-weight: normal;
  line-height: 28px;
  letter-spacing: 4px;
  color: var(--parch-hi);
}

.castlemap header small {
  flex: 1;
  color: var(--text-dim);
}

.castlemap header i {
  font-style: normal;
  color: var(--text-dim);
}

.cm-body {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* 触屏：楼层那一列和平面图之间再空开一点 */
@media (pointer: coarse) {
  .cm-body {
    gap: 14px;
  }
  #desktop .cm-list button {
    min-height: 32px;
  }
  .cm-list li > span {
    gap: 6px;
  }
}

.castlemap canvas {
  flex: none;
  image-rendering: pixelated;
}

/* 楼层从上往下排，像一张剖面；右下的小字是这一层放了几样东西 */
.cm-floors {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 40px;
}

/* 楼层按钮不拉伸（原来撑满整列，一个按钮和平面图一样高、紧贴着图，iPad 上点图的左半边常常点成换楼层） */
#desktop .cm-floors button {
  flex: none;
  height: 36px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 14px;
  clip-path: var(--nick);
  color: var(--text-dim);
}

.cm-floors small {
  color: var(--gold);
  line-height: 12px;
}

#desktop .cm-floors button[aria-pressed='true'] {
  background: var(--grain), var(--parch);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--parch-edge), inset 3px 0 0 var(--rust);
}

#desktop .cm-floors button[aria-pressed='true'] small {
  color: var(--rust);
}

/* 下面两块的宽度跟着图走，不把面板撑宽 */
.cm-tip,
.cm-list {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
}

.cm-tip {
  margin: 8px 0 4px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
}

.cm-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cm-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 8px;
  border-bottom: 1px solid #ffffff12;
}

.cm-list li.on {
  background: var(--slate-hi);
  box-shadow: inset 3px 0 0 var(--rust);
}

.cm-list b {
  flex: none;
  width: 4.5em;
  font-weight: normal;
  color: var(--text-dim);
}

.cm-list li.on b {
  color: var(--gold);
}

.cm-list li > span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#desktop .cm-list button {
  min-width: 0;
  min-height: 22px;
  padding: 0 8px 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  clip-path: var(--nick);
}

/* ── 电脑上底部不再是一整条任务栏，是游戏那种悬浮的三组：
   左边菜单徽章和三块面板的开关（状态、交接单、古堡），中间开着的窗口排成带号的方格快捷栏，右边托盘铭牌。
   整条 50 点高（desktop.js 的 groundInset 跟着），空出来的地方点得到后面的草原 ── */
#desktop:not(.mobile) .taskbar {
  height: 50px;
  padding: 0 14px 6px;
  align-items: flex-end;
  gap: 8px;
  background: none;
  box-shadow: none;
  pointer-events: none;
}

#desktop:not(.mobile) .taskbar > *,
#desktop:not(.mobile) .tasks > * {
  pointer-events: auto;
}

/* 菜单徽章：一块切了角的石板（76 × 44），猫放大一倍，「开始」两个字只留给读屏。
   四角是 2px 一级的台阶切角（各切 12px）：在 iPad 这类圆角屏的角落里不顶着弧线，直角屏上看也还是一块方正的徽章。
   外 3px 石板、里 1px 金线跟着切角走，画在 --crest-frame 里（内框用 box-shadow 画不出斜边）。
   形状是脚本生成的：76 × 44，按 2px 一格的格子算切角，再一像素一像素往里收出两道框 */
#desktop:not(.mobile) .taskbar .start {
  --crest: polygon(64px 0px, 64px 2px, 66px 2px, 66px 4px, 68px 4px, 68px 6px, 70px 6px, 70px 8px, 72px 8px, 72px 10px, 74px 10px, 74px 12px, 76px 12px, 76px 32px, 74px 32px, 74px 34px, 72px 34px, 72px 36px, 70px 36px, 70px 38px, 68px 38px, 68px 40px, 66px 40px, 66px 42px, 64px 42px, 64px 44px, 12px 44px, 12px 42px, 10px 42px, 10px 40px, 8px 40px, 8px 38px, 6px 38px, 6px 36px, 4px 36px, 4px 34px, 2px 34px, 2px 32px, 0px 32px, 0px 12px, 2px 12px, 2px 10px, 4px 10px, 4px 8px, 6px 8px, 6px 6px, 8px 6px, 8px 4px, 10px 4px, 10px 2px, 12px 2px, 12px 0px);
  --crest-frame: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='76' height='44' shape-rendering='crispEdges'><path fill='%233b393a' d='M12 0h52v1h-52zM12 1h52v1h-52zM10 2h56v1h-56zM10 3h5v1h-5zM61 3h5v1h-5zM8 4h7v1h-7zM61 4h7v1h-7zM8 5h5v1h-5zM63 5h5v1h-5zM6 6h7v1h-7zM63 6h7v1h-7zM6 7h5v1h-5zM65 7h5v1h-5zM4 8h7v1h-7zM65 8h7v1h-7zM4 9h5v1h-5zM67 9h5v1h-5zM2 10h7v1h-7zM67 10h7v1h-7zM2 11h5v1h-5zM69 11h5v1h-5zM0 12h7v1h-7zM69 12h7v1h-7zM0 13h5v1h-5zM71 13h5v1h-5zM0 14h5v1h-5zM71 14h5v1h-5zM0 15h3v1h-3zM73 15h3v1h-3zM0 16h3v1h-3zM73 16h3v1h-3zM0 17h3v1h-3zM73 17h3v1h-3zM0 18h3v1h-3zM73 18h3v1h-3zM0 19h3v1h-3zM73 19h3v1h-3zM0 20h3v1h-3zM73 20h3v1h-3zM0 21h3v1h-3zM73 21h3v1h-3zM0 22h3v1h-3zM73 22h3v1h-3zM0 23h3v1h-3zM73 23h3v1h-3zM0 24h3v1h-3zM73 24h3v1h-3zM0 25h3v1h-3zM73 25h3v1h-3zM0 26h3v1h-3zM73 26h3v1h-3zM0 27h3v1h-3zM73 27h3v1h-3zM0 28h3v1h-3zM73 28h3v1h-3zM0 29h5v1h-5zM71 29h5v1h-5zM0 30h5v1h-5zM71 30h5v1h-5zM0 31h7v1h-7zM69 31h7v1h-7zM2 32h5v1h-5zM69 32h5v1h-5zM2 33h7v1h-7zM67 33h7v1h-7zM4 34h5v1h-5zM67 34h5v1h-5zM4 35h7v1h-7zM65 35h7v1h-7zM6 36h5v1h-5zM65 36h5v1h-5zM6 37h7v1h-7zM63 37h7v1h-7zM8 38h5v1h-5zM63 38h5v1h-5zM8 39h7v1h-7zM61 39h7v1h-7zM10 40h5v1h-5zM61 40h5v1h-5zM10 41h56v1h-56zM12 42h52v1h-52zM12 43h52v1h-52z'/><path fill='%23c9aa6c' d='M15 3h46v1h-46zM15 4h1v1h-1zM60 4h1v1h-1zM13 5h3v1h-3zM60 5h3v1h-3zM13 6h1v1h-1zM62 6h1v1h-1zM11 7h3v1h-3zM62 7h3v1h-3zM11 8h1v1h-1zM64 8h1v1h-1zM9 9h3v1h-3zM64 9h3v1h-3zM9 10h1v1h-1zM66 10h1v1h-1zM7 11h3v1h-3zM66 11h3v1h-3zM7 12h1v1h-1zM68 12h1v1h-1zM5 13h3v1h-3zM68 13h3v1h-3zM5 14h1v1h-1zM70 14h1v1h-1zM3 15h3v1h-3zM70 15h3v1h-3zM3 16h1v1h-1zM72 16h1v1h-1zM3 17h1v1h-1zM72 17h1v1h-1zM3 18h1v1h-1zM72 18h1v1h-1zM3 19h1v1h-1zM72 19h1v1h-1zM3 20h1v1h-1zM72 20h1v1h-1zM3 21h1v1h-1zM72 21h1v1h-1zM3 22h1v1h-1zM72 22h1v1h-1zM3 23h1v1h-1zM72 23h1v1h-1zM3 24h1v1h-1zM72 24h1v1h-1zM3 25h1v1h-1zM72 25h1v1h-1zM3 26h1v1h-1zM72 26h1v1h-1zM3 27h1v1h-1zM72 27h1v1h-1zM3 28h3v1h-3zM70 28h3v1h-3zM5 29h1v1h-1zM70 29h1v1h-1zM5 30h3v1h-3zM68 30h3v1h-3zM7 31h1v1h-1zM68 31h1v1h-1zM7 32h3v1h-3zM66 32h3v1h-3zM9 33h1v1h-1zM66 33h1v1h-1zM9 34h3v1h-3zM64 34h3v1h-3zM11 35h1v1h-1zM64 35h1v1h-1zM11 36h3v1h-3zM62 36h3v1h-3zM13 37h1v1h-1zM62 37h1v1h-1zM13 38h3v1h-3zM60 38h3v1h-3zM15 39h1v1h-1zM60 39h1v1h-1zM15 40h46v1h-46z'/></svg>");
  width: 76px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  justify-content: center;
  clip-path: var(--crest);
  box-shadow: none;
}

#desktop:not(.mobile) .taskbar .start .px-icon {
  width: 32px;
  height: 32px;
}

#desktop:not(.mobile) .taskbar .start b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* 三块面板的开关：小石板牌，摊开着的那块翻成羊皮纸 */
#desktop .taskbar .panel-key {
  height: 26px;
  min-height: 0;
  min-width: 0;
  margin-bottom: 1px;
  padding: 0 10px;
  clip-path: var(--nick);
  background: var(--slate);
  color: var(--text-dim);
  box-shadow: inset 0 0 0 1px var(--line);
}

#desktop .taskbar .panel-key:hover {
  color: var(--parch-hi);
}

#desktop .taskbar .panel-key[aria-pressed='true'] {
  background: var(--grain), var(--parch);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--parch-edge), inset 0 -3px 0 var(--rust);
}

/* 快捷栏：一格一个开着的窗口，图标放大一倍，左上角是编号；名字停上去才出来 */
#desktop:not(.mobile) .tasks {
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  overflow: visible;
  pointer-events: none;
}

#desktop:not(.mobile) .taskbar .task {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  overflow: visible;
  clip-path: none;
  background: var(--slate);
  box-shadow: inset 0 0 0 1px var(--slate-lo), inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--slate);
}

#desktop:not(.mobile) .taskbar .task .px-icon {
  display: block;
  width: 32px;
  height: 32px;
}

#desktop:not(.mobile) .taskbar .task::before {
  position: absolute;
  top: 3px;
  left: 5px;
  margin: 0;
  font-size: 10px;
  line-height: 10px;
  font-family: var(--px10);
  text-shadow: 1px 1px 0 var(--slate-lo);
}

#desktop:not(.mobile) .taskbar .task span {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  translate: -50% -6px;
  padding: 2px 8px;
  white-space: nowrap;
  background: var(--grain), var(--parch);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--parch-edge), 3px 3px 0 #0000004d;
}

#desktop:not(.mobile) .taskbar .task:hover span,
#desktop:not(.mobile) .taskbar .task:focus-visible span {
  display: block;
}

#desktop:not(.mobile) .taskbar .task.active {
  background: var(--grain), var(--parch);
  box-shadow: inset 0 0 0 1px var(--parch-edge), inset 0 0 0 2px var(--gold), inset 0 -4px 0 var(--rust);
}

/* 托盘：一块铭牌，跟面板开关一样高 */
#desktop:not(.mobile) .tray {
  height: 26px;
  margin-bottom: 1px;
}

/* 底下让出 50 点：铺满的窗口、窗口最高、开始菜单、提示卡、收音机的频谱、古堡面板 */
#desktop:not(.mobile) .window.max {
  height: calc(100% - 50px) !important;
}

#desktop:not(.mobile) .window {
  max-height: calc(100vh / var(--uiz, 1) - 56px);
}

#desktop:not(.mobile) .startmenu {
  bottom: 56px;
  left: 14px;
}

#desktop:not(.mobile) .balloon {
  bottom: 58px;
}

#desktop:not(.mobile) .eq {
  bottom: 50px;
}

#desktop:not(.mobile) .castlemap {
  max-height: calc(100vh / var(--uiz, 1) - 80px);
  /* 本人盘点：做大、居中——摆在画面正中（快捷栏上面那一块里），平面图本身的大小见 castlemap.js 的 fit */
  inset: 0 0 50px;
  margin: auto;
  width: fit-content;
  height: fit-content;
}

/* 手机：九宫格在最上面，状态栏和交接单排在图标后面，往下滑才看到 */
#desktop.mobile .icons > .hand {
  order: 1;
}

/* 每日统计排在最前：收着是一枚小图标，摊开就在原地占一整行（见文件末尾的 .mini） */
#desktop.mobile .icons > .hud {
  margin-bottom: 6px;
}

/* ── 开始菜单按古堡的房间分组（desktop.js 的 PLACES）：一组一行，右边一个小三角；
   电脑上停上去（或点一下）往右弹出第二块石板，手机上点一下原地展开 ── */
#desktop .startmenu li.group::after {
  content: '';
  margin-left: auto;
  border-left: 4px solid currentColor;
  border-block: 4px solid transparent;
}

#desktop .startmenu .sub {
  display: none;
  order: 1; /* 排在小三角后面：手机上展开时换到下一行 */
}

/* 弹出去的那块会伸到菜单外面：菜单本身不切角，只留里面那圈细线 */
#desktop:not(.mobile) .startmenu {
  clip-path: none;
}

#desktop:not(.mobile) .startmenu li.group {
  position: relative;
}

#desktop:not(.mobile) .startmenu li.group:hover > .sub,
#desktop:not(.mobile) .startmenu li.group.open > .sub {
  display: block;
  position: absolute;
  top: -8px;
  left: calc(100% + 2px);
  z-index: 1;
  padding: 8px;
  background: var(--slate);
  color: var(--text);
  /* 不切角：里面还会再弹出一层（我的电脑 ▸ 盘 ▸ 文件夹），切了就裁掉了 */
  box-shadow: inset 0 0 0 3px var(--slate), inset 0 0 0 4px var(--line), 6px 6px 0 #0000004d;
}

/* 鼠标从组那一行挪到弹出的那块，中间隔着两点空，补一条看不见的桥 */
#desktop:not(.mobile) .startmenu li.group:hover::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 4px;
}

#desktop:not(.mobile) .startmenu li.group:hover,
#desktop .startmenu li.group.open {
  background: var(--slate-hi);
  color: var(--parch-hi);
  box-shadow: inset 3px 0 0 var(--rust);
}

#desktop.mobile .startmenu li.group {
  flex-wrap: wrap;
}

#desktop.mobile .startmenu li.group.open > .sub {
  display: block;
  flex-basis: 100%;
  margin: 4px 0 2px 20px;
  box-shadow: inset 1px 0 0 var(--line);
}

#desktop.mobile .startmenu li.group.open::after {
  border-left-color: transparent;
  border-top: 4px solid currentColor;
  border-inline: 4px solid transparent;
  border-bottom: 0;
}

/* ── 右下角托盘：电脑上不要底框，图标和字直接立在草原上，字描一圈深边 ── */
#desktop:not(.mobile) .tray {
  gap: 10px;
  padding: 0 4px;
  clip-path: none;
  background: none;
  box-shadow: none;
  color: var(--parch-hi);
  text-shadow: 1px 0 var(--slate-lo), -1px 0 var(--slate-lo), 0 1px var(--slate-lo), 0 -1px var(--slate-lo);
}

/* 托盘图标不描边：图标自己有黑边。别给这里的图标加 filter——iPad 的 Safari 在 zoom 放大过的任务栏上
   把带 filter 的图标画错地方，中间多出一排歪着的重影（2026-11-12 本人截图） */

/* 2D / 3D 的开关：和钢琴那块一样的小牌子，写着现在是哪个。3D 是羊皮纸底，2D 是石板底 */
#desktop .tray .dim-tray {
  height: 22px;
  min-width: 0;
  padding: 0 5px;
  clip-path: var(--nick);
  background: var(--slate-hi);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--parch-hi);
  text-shadow: none;
  letter-spacing: 1px;
}

/* 头一回切到 3D、还在建的那一会儿：牌子一明一暗（这时候背景还是 2D 的） */
#desktop .tray .dim-tray.busy {
  animation: dim-busy 0.8s steps(2) infinite;
}

@keyframes dim-busy {
  50% {
    opacity: 0.45;
  }
}

#desktop .tray .dim-tray.on {
  background: var(--grain), var(--parch);
  box-shadow: inset 0 0 0 1px var(--parch-edge), inset 0 -2px 0 var(--gold);
  color: var(--ink, #2b2924);
}

/* 背景钢琴的开关：一块小牌子。开着是羊皮纸底、音符旁边三根会跳的小柱；关着是石板底、斜着一道锈红 */
#desktop .tray .bgm-tray {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 6px 0 4px;
  opacity: 1;
  clip-path: var(--nick);
  background: var(--grain), var(--parch);
  box-shadow: inset 0 0 0 1px var(--parch-edge), inset 0 -2px 0 var(--gold);
  text-shadow: none;
}

#desktop .tray .bgm-tray .px-icon {
  filter: none;
}

#desktop .tray .bgm-tray::after {
  content: '';
  width: 7px;
  height: 9px;
  background: linear-gradient(var(--rust) 0 0) 0 100% / 1px 60% no-repeat, linear-gradient(var(--rust) 0 0) 3px 100% / 1px 100% no-repeat, linear-gradient(var(--rust) 0 0) 6px 100% / 1px 40% no-repeat;
  animation: bgm-bars 1.2s steps(1) infinite;
}

@keyframes bgm-bars {
  33% {
    background-size: 1px 100%, 1px 40%, 1px 70%;
  }
  66% {
    background-size: 1px 40%, 1px 70%, 1px 100%;
  }
}

#desktop .tray .bgm-tray.off {
  opacity: 1;
  background: var(--slate-hi);
  box-shadow: inset 0 0 0 1px var(--line);
}

#desktop .tray .bgm-tray.off .px-icon {
  opacity: 0.45;
}

/* 关着：黑音符换成浅色（原来用 invert，托盘里不用 filter） */
#desktop .tray .bgm-tray.off rect {
  fill: #fff;
}

#desktop .tray .bgm-tray.off::after {
  position: absolute;
  inset: 4px 5px;
  width: auto;
  height: auto;
  animation: none;
  background: linear-gradient(to top right, #0000 calc(50% - 1px), var(--rust-l) calc(50% - 1px) calc(50% + 1px), #0000 calc(50% + 1px));
}

/* ── 手机：每日统计平时收成一枚小图标，和九宫格的图标一样大，排在最前面；点一下摊开成整行（desktop.js 加的 .mini） ── */
#desktop.mobile .icons > .hud {
  cursor: pointer;
}

#desktop.mobile .icons > .hud.mini {
  grid-column: auto;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 0;
}

#desktop.mobile .hud.mini > :not(.hud-date) {
  display: none;
}

#desktop.mobile .hud.mini .hud-date {
  margin: 4px 0 0;
  padding: 10px 6px 4px;
  width: 44px;
  box-sizing: border-box;
}

#desktop.mobile .hud.mini .hud-date small {
  display: none;
}

#desktop.mobile .hud.mini .hud-date strong {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 24px;
  line-height: 26px;
}

/* 底下那行字，和桌面图标的名字一个样子 */
#desktop.mobile .hud.mini::after {
  content: '今日';
  padding: 1px 3px;
  line-height: 14px;
  background: #2a292bcc;
  color: var(--text);
}

/* ── 字号只用像素字的整数倍（基准见 js/crisp.js）：下面几处原来是 11、14、15、16 像素，像素字会糊 ── */
#desktop .ex-title b {
  font-size: 24px;
  line-height: 28px;
}

#desktop .cell,
#desktop .gb-tools b {
  font-size: 12px;
}

#desktop .face {
  font-size: 12px;
}

/* 手机上位置小：开始按钮和状态栏徽记里的猫用细版的一半大 */
#desktop.mobile .taskbar .start .px-icon {
  width: 16px;
  height: 16px;
}

#desktop.mobile .hud-emblem svg {
  width: 32px;
  height: 32px;
}

/* 开始徽章和状态栏的徽记里是塞梅尔维斯的动物形态（灰黑的，js/icons.js 的 sembat）：底下垫羊皮纸，像一张小画像 */
#desktop .hud-emblem {
  background: var(--grain), var(--parch-lo);
}

/* 开始徽章（本人：去掉黑豹的背景框，给个浅色描边就行）：不要八角框和羊皮纸底，只剩那只黑豹，外面一圈浅色像素描边
   （画进图里，见 icons.js 的 outlinedIcon）；按下去往下沉一个点 */
#desktop:not(.mobile) .taskbar .start,
#desktop:not(.mobile) .taskbar .start.pressed {
  background: none;
  clip-path: none;
}

#desktop:not(.mobile) .taskbar .start .px-icon {
  width: 51px; /* 图是 34 格：放大 1.5 倍；桌面整块放大一倍（4K）时正好 3 倍，边还是硬的 */
  height: 51px;
  margin-top: -6px;
}

#desktop:not(.mobile) .taskbar .start.pressed .px-icon,
#desktop:not(.mobile) .taskbar .start:active .px-icon {
  transform: translateY(1.5px); /* 图上的一格（34 格画成 51 点） */
}

/* 开始徽章的手感（本人：做一下鼠标点击效果）：指上去、菜单开着的时候，浅色描边换成金色（另一张描金边的图，见 desktop.js）；
   按下去沉一格，松开弹回来 */
#desktop .taskbar .start .px-icon.hot,
#desktop:not(.mobile) .taskbar .start:is(:hover, :focus-visible, .pressed) .px-icon:not(.hot) {
  display: none;
}

#desktop:not(.mobile) .taskbar .start:is(:hover, :focus-visible, .pressed) .px-icon.hot {
  display: block;
}

/* ── 访客登记簿（js/guestbook.js）：上面是自己那张卡（或登记表），下面是簿子，一位客人一行 ── */
.gb { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.gb-form, .gb-card { position: relative; padding: 10px 12px; border: 1px solid var(--ink-soft); background: #00000008; }
.gb-rule { margin: 0 0 8px; line-height: 1.5; }
.gb-sig { display: block; text-align: right; color: var(--ink-soft); }
.gb-form .field-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.gb-form .field-row label { width: 4em; flex: none; }
.gb-form .field-row input { flex: 1; min-width: 0; }
.gb-err { margin: 6px 0 0; color: #a3302a; }
.gb-btns { display: flex; gap: 8px; margin-top: 8px; }
.gb-forgot { display: flex; justify-content: space-between; margin: 8px 0 0; }
.gb-v { color: #b0362c; font-style: italic; }
.gb-card .gb-no { color: var(--ink-soft); }
.gb-card .gb-who b { font-size: 1.25em; margin-right: 8px; }
.gb-card .gb-who i { color: var(--ink-soft); }
.gb-card dl { display: grid; grid-template-columns: 3em 1fr; gap: 2px 8px; margin: 8px 0 0; }
.gb-card dd { margin: 0; }
/* 「已登记」是一枚红蜡封（guestbook.js 的 seal）：歪着按在卡片右上角，底下压出一点影子 */
.gb-stamp {
  position: absolute; right: 8px; top: 6px; width: 84px; height: 84px;
  rotate: -10deg; pointer-events: none; filter: drop-shadow(1px 2px 0 #0000004d);
}
.gb-stamp-ring { font: bold 9.5px Georgia, 'Times New Roman', serif; }
.gb-rescue { margin: 8px 0 0; }
.gb-rescue code { font-size: 1.15em; letter-spacing: 1px; padding: 0 4px; background: #00000012; }
.gb-book { flex: 1; min-height: 0; overflow: auto; }
.gb-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--ink-soft); }
.gb-h small { color: var(--ink-soft); font-weight: normal; }
.gb-list { list-style: none; margin: 0; padding: 0; }
.gb-row { display: grid; grid-template-columns: 3.6em 1fr auto; grid-template-rows: auto auto; gap: 0 8px; padding: 5px 2px; border-bottom: 1px dotted #00000030; }
.gb-row .gb-no { grid-row: span 2; color: var(--ink-soft); align-self: center; }
.gb-row .gb-who b { margin-right: 6px; }
.gb-row .gb-who i { color: var(--ink-soft); font-size: 0.9em; }
.gb-row .gb-found { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.gb-fish { display: inline-flex; align-items: center; gap: 2px; }
.gb-row small { grid-column: 2 / 4; color: var(--ink-soft); }
.gb-self { background: #c9a2401a; }
.gb-lamp { background: #e8b04a26; }
.gb-lamp .gb-who i { color: #8a5a1c; }
.gb-empty, .gb-closed { color: var(--ink-soft); padding: 8px 2px; }

/* ── 游戏柜（desktop.js 的 PROGRAMS.games）：一排三格 ── */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#desktop .games button { display: flex; flex-direction: column; align-items: center; gap: 4px; height: auto; min-width: 0; padding: 10px 4px; }
.games small { color: var(--ink-soft); }

/* ── 图鉴（desktop.js 的 PROGRAMS.eggs）：上面一排页签（彩蛋、鱼、种地），底下那一页自己滚 ── */
.tj { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.tj-tabs { display: flex; gap: 4px; flex: none; }
#desktop .tj-tabs button { min-width: 0; padding: 0 14px; }
#desktop .tj-tabs button[aria-pressed='true'] { font-weight: bold; box-shadow: inset 0 -3px 0 var(--rust); }
.tj-page { flex: 1; min-height: 0; overflow: auto; }
.tj-page > .eggs { height: 100%; }

/* ── 鱼图鉴（js/fishbook.js，图鉴里「鱼」那一页）：一种鱼一张卡，两列；没钓到的是黑影和提示 ── */
.fbk { display: flex; flex-direction: column; gap: 8px; }
.fbk-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 4px; border-bottom: 1px solid var(--ink-soft); }
.fbk-head b { font-size: 1.4em; }
.fbk-head span:last-child, .fbk-foot { color: var(--ink-soft); }
.fbk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbk-card { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--ink-soft); background: #00000008; }
.fbk-card img { width: 96px; height: 72px; align-self: center; margin-bottom: 4px; image-rendering: pixelated; }
.fbk-name { display: flex; justify-content: space-between; align-items: baseline; }
.fbk-card b { font-size: 1.1em; }
.fbk-card i { color: var(--ink-soft); font-style: normal; font-size: 0.9em; }
.fbk-card p { margin: 2px 0; line-height: 1.4; font-size: 0.92em; }
.fbk-card small { color: var(--ink-soft); }
.fbk-when { color: #6a5a2a !important; }
.fbk-t1 i { color: #3a6a8a; }
.fbk-t2 i { color: #8a3a6a; }
.fbk-t3 { background: #e8b04a1f; }
.fbk-t3 i { color: #a06a10; }
.fbk-locked b { color: var(--ink-soft); }
.fbk-hint { color: var(--ink-soft); font-style: italic; }
.fbk-junk { margin: 0; display: flex; flex-wrap: wrap; align-items: center; color: var(--ink-soft); }
.fbk-junk span { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.fbk-junk img { width: 64px; height: 48px; image-rendering: pixelated; }
.fbk-foot { margin: 0; font-size: 0.9em; }

/* 鱼图鉴的成就：一行一个，拿到的亮、没拿到的淡 */
.fbk-sub { margin: 4px 0 0; padding-top: 6px; border-top: 1px solid var(--ink-soft); }
.fbk-sub i { color: var(--ink-soft); font-style: normal; }
.fbk-ach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.fbk-ach li { display: flex; flex-direction: column; opacity: 0.45; }
.fbk-ach li.on { opacity: 1; }
.fbk-ach li.on b { color: #a06a10; }
.fbk-ach span { font-size: 0.88em; color: var(--ink-soft); }

/* 手机：九宫格（连状态、交接单）平时收着，「桌面」开关或点草原上的景物才摊开（desktop.js 的 panels） */
#desktop.mobile .icons[hidden] {
  display: none;
}

#desktop.mobile .icons {
  animation: pop 0.2s steps(3);
}

#desktop.mobile .taskbar .panel-key {
  height: 26px;
}

/* 手机左下角的开始（本人：2D 版的左下角豹子也去掉按钮边框，只用本体的轮廓）：和电脑一样只剩那只描了浅色边的黑豹，
   「开始」两个字只留给读屏；任务栏只有 26 点高，豹子画 34 点、往上探出去一截；菜单开着时描边变金，按下去沉一格 */
#desktop.mobile .taskbar .start,
#desktop.mobile .taskbar .start.pressed {
  width: 40px;
  min-width: 0;
  padding: 0;
  justify-content: center;
  background: none;
  clip-path: none;
  box-shadow: none;
  overflow: visible;
}

#desktop.mobile .taskbar .start .px-icon {
  width: 34px;
  height: 34px;
  margin-top: -10px;
}

#desktop.mobile .taskbar .start b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

#desktop.mobile .taskbar .start.pressed .px-icon:not(.hot) {
  display: none;
}

#desktop.mobile .taskbar .start.pressed .px-icon.hot {
  display: block;
}

#desktop.mobile .taskbar .start:active .px-icon,
#desktop.mobile .taskbar .start.pressed .px-icon {
  transform: translateY(1px);
}
