/* ==========================================================================
   skin.css — 像素皮（absurd_ui_v6_kit）
   --------------------------------------------------------------------------
   规则（与提示词一一对应）：
   · 所有切图已是 4 倍像素，只按整数倍（1:1）铺，image-rendering: pixelated；
   · 没有圆角、没有渐变、没有模糊阴影；分层的办法只有 4px 硬边色块；
   · 字体 Fusion Pixel 12px，字号只有 24 / 36；
   · 界面文字和数字全部由代码写，切图里不含任何字。
   布局：参考 1376×768。顶栏 56 高、左员工面板 330 宽、右下客户面板、底部五格动作条。
   宽窗口时面板贴边、动作条居中；窗口窄于 1200 时整层 HUD 等比缩小（见 media query）。
   ========================================================================== */

@font-face {
  font-family: "FusionPixel";
  src: url("./fonts/fusion-pixel-12px.woff2") format("woff2");
  font-display: block;
}

:root {
  --ink: #2b1810;
  --paper: #f6e9cd;
  --paper-hi: #faf0d7;
  --paper-lo: #e2cea8;
  --wood: #b0622c;
  --wood-lit: #de924a;
  --green: #46963c;
  --red: #c83034;
  --gold: #f0be32;
  --navy: #181e34;
  --ui: "/assets/ui";
}

* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; }

html, body {
  height: 100%;
  background: #0b0f18;
  overflow: hidden;
}

/* 游戏牌面：固定 16:9 设计尺寸，按窗口等比缩放、居中留边。
   transform 同时给 fixed 子元素一个相对定位的 containing block，
   于是顶栏/面板/动作条都贴牌面边缘，而不是贴浏览器窗口。 */
.stage {
  position: fixed;
  left: 50%; top: 50%;
  width: 1376px; height: 774px;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
  overflow: hidden;
  background: var(--navy);
  outline: 8px solid var(--wood);
}

body {
  font-family: "FusionPixel", "Zpix", monospace;
  font-size: 24px;
  line-height: 24px;
  color: var(--ink);
  -webkit-font-smoothing: none;
  font-smooth: never;
  text-rendering: geometricPrecision;
}

img { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ============================ 场景（位置不动，只把容器铺满窗口）============================ */
.scene-mount {
  position: fixed;
  inset: 0;
  background: #0b0f18;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-mount .scene-canvas {
  /* 铺满牌面而不是窗口；低分辨率缓冲由 scene.js 最近邻放大，保持像素硬边 */
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: auto;
  flex: none;
}

/* 场景叠加层跟着画布铺满牌面；不能用 scene.js 按屏幕 rect 算出的尺寸
   （牌面有 transform 缩放，那个尺寸会被二次缩放导致错位） */
.scene-mount .scene-fx {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* ============================ HUD 层 ============================ */
.hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;          /* 默认放行：露出来的场景还能点 */
}
.hud > * { pointer-events: auto; }

/* ============================ 顶栏 ============================ */
.topbar {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 16px 0 22px;
  background-image: var(--a-ui-topbar-tile, url("/assets/ui/topbar_tile.png"));
  background-repeat: repeat-x;
  background-size: 64px 56px;
  background-position: left top;
  image-rendering: pixelated;
}

.tb-brand {
  font-size: 36px;
  line-height: 36px;
  color: #fdf3df;
  text-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 2px;
  white-space: nowrap;
}

.tb-cash { display: flex; align-items: center; gap: 8px; color: #fdf3df; text-shadow: 2px 2px 0 var(--ink); }
.tb-cash .coin { width: 32px; height: 32px; }
.tb-cash .tb-k { opacity: .92; }
.tb-cash .num { font-size: 24px; letter-spacing: 1px; }

.tb-day { width: 244px; margin-left: auto; display: flex; flex-direction: column; gap: 2px; }
.tb-dayline {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 24px; line-height: 24px; color: #fdf3df; text-shadow: 2px 2px 0 var(--ink);
}
.tb-dayline .num { font-size: 24px; }

/* 进度条：bar_bg 九宫格（4px 切）+ bar_fill 平铺，24 高，整格像素 */
.bar {
  width: 100%;
  height: 24px;
  border-style: solid;
  border-width: 4px;
  border-color: transparent;
  border-image: var(--a-ui-bar-bg, url("/assets/ui/bar_bg_9slice.png")) 4 fill repeat;
  image-rendering: pixelated;
}
.bar > i {
  display: block;
  height: 16px;
  background-image: var(--a-ui-bar-fill, url("/assets/ui/bar_fill_tile.png"));
  background-repeat: no-repeat;
  background-size: 100% 16px;
  background-position: left top;
}
.bar.is-full > i { background-image: var(--a-ui-bar-fill, url("/assets/ui/bar_fill_tile.png")); }

.tb-btns { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 顶栏小按钮：btn_small 横向九宫格，两字按钮正好 72，四字的自动变宽 */
.bs {
  height: 40px;
  padding: 0 6px;
  width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  border-width: 0 12px;
  border-color: transparent;
  border-image: var(--a-ui-btn-small-normal, url("/assets/ui/btn_small_normal.png")) 0 12 fill repeat;
  image-rendering: pixelated;
  font-size: 24px;
  line-height: 24px;
  white-space: nowrap;
}
.bs:active {
  border-image-source: var(--a-ui-btn-small-pressed, url("/assets/ui/btn_small_pressed.png"));
}
.bs.is-go { width: 120px; }

/* ============================ 面板（panel_9slice 24px 切）============================ */
.panel {
  position: fixed;
  border-style: solid;
  border-width: 24px;
  border-color: transparent;
  border-image: var(--a-ui-panel-frame, url("/assets/ui/panel_9slice.png")) 24 fill repeat;
  image-rendering: pixelated;
  color: var(--ink);
}

/* 丝带：banner_tab 横九宫格（左右 32 切），压在面板上沿 */
.ribbon {
  position: absolute;
  left: 50%;
  top: -50px;
  transform: translateX(-50%);
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  border-width: 0 32px;
  border-color: transparent;
  border-image: var(--a-ui-panel-ribbon, url("/assets/ui/banner_tab.png")) 0 32 fill stretch;
  image-rendering: pixelated;
  font-size: 36px;
  line-height: 36px;
  white-space: nowrap;
  z-index: 3;
}
.ribbon > span { display: block; transform: translateY(-1px); }

/* ============================ 员工面板 ============================ */
.p-staff {
  left: 22px;
  top: 100px;
  width: 330px;
  padding-top: 14px;
}
.staff-list { display: flex; flex-direction: column; gap: 6px; max-height: 404px; overflow-y: auto; }

.staff {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  cursor: pointer;
  border: 4px solid transparent;
}
.staff.is-sel { border-color: var(--ink); background: #efdfbc; }

.staff .portrait {
  width: 68px;
  height: 68px;
  flex: none;
  border: 4px solid var(--ink);
  background: #d9c5a0;
  object-fit: none;
}
.staff .who { min-width: 0; flex: 1 1 auto; }
.staff .nm { font-size: 24px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff .st { display: flex; align-items: center; gap: 6px; margin-top: 6px; }

/* 复选框：切图本身就是勾选态，用 appearance:none 换上 */
.staff input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  flex: none;
  cursor: pointer;
  background: var(--a-ui-checkbox-off, url("/assets/ui/checkbox_off.png")) center / 36px 36px no-repeat;
  image-rendering: pixelated;
}
.staff input[type="checkbox"]:checked { background-image: var(--a-ui-checkbox-on, url("/assets/ui/checkbox_on.png")); }

.staff .duty { font-size: 24px; line-height: 24px; color: var(--green); }
.staff .duty.is-off { color: #7a5334; }
.staff .tag-sock { font-size: 24px; line-height: 24px; color: var(--red); }

/* ============================ 客户面板 ============================ */
.p-client {
  right: 20px;
  bottom: 16px;
  width: 330px;
  padding-top: 10px;
}
.client-body { display: flex; flex-direction: column; gap: 6px; }
.cli-row { display: flex; align-items: center; gap: 8px; height: 36px; }
.cli-k { width: 72px; flex: none; font-size: 24px; line-height: 24px; }
.hearts { display: flex; gap: 4px; }
.hearts img { width: 36px; height: 32px; }
.cli-num { font-size: 24px; line-height: 24px; }
.cli-num.is-warn { color: #a4601e; }
.cli-num.is-bad { color: var(--red); }

.cli-dots {
  height: 4px;
  margin: 8px 0 6px;
  border-top: 4px dotted var(--ink);
}
.cli-rule { font-size: 24px; line-height: 26px; }
.cli-rule b { font-weight: 400; color: var(--green); }
.cli-rule b.off { color: #7a5334; }
.cli-rule i { font-style: normal; color: #7a5334; }

/* ============================ 底部动作条 ============================ */
.dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 576px;
}
.dock-grid { display: flex; gap: 24px; }

.tile {
  position: relative;
  width: 96px;
  height: 132px;
  flex: none;
  transition: none;                 /* 动作只用位移，不要缓动 */
}
/* 按钮底：btn_action 四态各自一张图，九宫格只拉伸中间那块平色 */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-style: solid;
  border-width: 48px 8px 16px 8px;
  border-color: transparent;
  border-image: var(--a-ui-btn-action-normal, url("/assets/ui/btn_action_normal.png")) 48 8 16 8 fill stretch;
  image-rendering: pixelated;
}
.tile[data-cmd="fire"]::before {
  border-image-source: var(--a-ui-btn-action-danger, url("/assets/ui/btn_action_danger.png"));
}
.tile:hover { transform: translateY(-4px); }
.tile:active { transform: translateY(0); }
.tile:active::before {
  border-image-source: var(--a-ui-btn-action-pressed, url("/assets/ui/btn_action_pressed.png"));
}
.tile:hover:active::before {
  border-image-source: var(--a-ui-btn-action-pressed, url("/assets/ui/btn_action_pressed.png"));
}
/* 不可用：换 disabled 图，去掉上移 */
.tile.is-off { cursor: not-allowed; }
.tile.is-off::before {
  border-image-source: var(--a-ui-btn-action-disabled, url("/assets/ui/btn_action_disabled.png")) !important;
}
.tile.is-off:hover { transform: none; }
.tile.is-off .tile-win img { opacity: .55; }
.tile.is-off .tile-name,
.tile.is-off .tile-cost { color: #7a5334; }

/* 选中 / 下一步高亮：叠一层 btn_action_selected 的金边（比自己画一圈更贴素材） */
.tile.is-sel::after,
.tile.nudge::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 0;
  border-style: solid;
  border-width: 52px 12px 24px 12px;
  border-color: transparent;
  border-image: var(--a-ui-btn-action-selected, url("/assets/ui/btn_action_selected.png")) 52 12 24 12 fill repeat;
  image-rendering: pixelated;
  pointer-events: none;
}

.tile-win {
  position: absolute;
  left: 20px;
  top: 8px;
  width: 56px;
  height: 60px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-hi);
  border: 4px solid var(--ink);
}
.tile-win img { width: 48px; height: 52px; }

.tile-name,
.tile-cost {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  font-size: 24px;
  line-height: 24px;
  color: var(--ink);
  white-space: nowrap;
}
.tile-name { top: 68px; }
.tile-cost { top: 92px; display: flex; align-items: center; justify-content: center; gap: 0; }
.tile-cost .coin { width: 16px; height: 16px; }

/* 已做过的小标记：一个 8px 方块，不用图标 */
.tile-done {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 2px solid var(--ink);
}

/* ============================ 候选条 ============================ */
.picker {
  position: absolute;
  left: 0;
  bottom: 148px;
  width: 576px;
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
  border-style: solid;
  border-width: 24px;
  border-color: transparent;
  border-image: var(--a-ui-panel-frame, url("/assets/ui/panel_9slice.png")) 24 fill repeat;
  image-rendering: pixelated;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  text-align: left;
  border: 4px solid var(--ink);
  background: var(--paper-hi);
}
.pick-card:hover { background: #ffe9bd; }
.pick-card.is-current { background: #efdfbc; }
.pick-card .portrait { width: 68px; height: 68px; border: 4px solid var(--ink); background: #d9c5a0; flex: none; }
.pick-card .pc-body { flex: 1 1 auto; min-width: 0; }
.pick-card .pc-body b { display: block; font-size: 24px; line-height: 24px; font-weight: 400; }
.pick-card .pc-body small { display: block; font-size: 24px; line-height: 26px; color: #7a5334; }
.pick-card .pc-go { flex: none; width: 72px; text-align: right; font-size: 24px; color: var(--green); }
.pick-card .pc-go.danger { color: var(--red); }
.pick-empty { font-size: 24px; color: #7a5334; }

/* ============================ 章节动作（开始 / 结算）============================ */
.cta {
  position: fixed;
  left: 50%;
  bottom: 156px;
  transform: translateX(-50%);
}
.cta button {
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  border-width: 0 32px;
  border-color: transparent;
  border-image: var(--a-ui-panel-ribbon, url("/assets/ui/banner_tab.png")) 0 32 fill stretch;
  image-rendering: pixelated;
  font-size: 36px;
  line-height: 36px;
  color: var(--ink);
  white-space: nowrap;
}
.cta button:active { transform: translateY(4px); }

/* ============================ 回执 ============================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 244px;
  transform: translateX(-50%);
  max-width: 640px;
  padding: 10px 20px;
  border-style: solid;
  border-width: 12px;
  border-color: transparent;
  border-image: var(--a-ui-panel-frame, url("/assets/ui/panel_9slice.png")) 24 fill repeat;
  image-rendering: pixelated;
  font-size: 24px;
  line-height: 26px;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
}
.toast.show { opacity: 1; visibility: visible; }
.toast.REJECTED, .toast.INVALID_PARAM { color: var(--red); }
.toast.NOOP { color: #7a5334; }

/* ============================ 事件浮层 ============================ */
.events {
  position: fixed;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  width: 620px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 20;
}
.event-card {
  position: relative;
  padding: 4px 2px 2px;
  border-style: solid;
  border-width: 24px;
  border-color: transparent;
  border-image: var(--a-ui-panel-frame, url("/assets/ui/panel_9slice.png")) 24 fill repeat;
  image-rendering: pixelated;
  background-clip: padding-box;
}
.event-card h3 {
  font-size: 36px;
  line-height: 36px;
  font-weight: 400;
  color: var(--red);
  margin-bottom: 8px;
}
.event-card h3 small { font-size: 24px; color: #7a5334; }
.event-card p { font-size: 24px; line-height: 28px; margin-bottom: 12px; }
.event-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.event-choices button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 12px;
  border: 4px solid var(--ink);
  background: var(--paper-hi);
  font-size: 24px;
  line-height: 26px;
  text-align: left;
}
.event-choices button:hover { background: #ffe9bd; }
.event-choices button small { font-size: 24px; color: #7a5334; }

/* ============================ 弹层：设置 / 日志 ============================ */
.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-veil {
  position: absolute;
  inset: 0;
  background: rgba(9, 6, 4, .62);
}
.sheet {
  position: relative;
  width: 760px;
  max-height: 680px;   /* 牌面高 774，留出上下边距；不再按浏览器视口算 */
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  border-style: solid;
  border-width: 24px;
  border-color: transparent;
  border-image: var(--a-ui-panel-frame, url("/assets/ui/panel_9slice.png")) 24 fill repeat;
  image-rendering: pixelated;
}
.sheet-x {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 36px;
  height: 36px;
  font-size: 36px;
  line-height: 30px;
  color: var(--ink);
  z-index: 4;
}
.sheet-body {
  overflow-y: auto;
  max-height: 584px;
  padding: 4px 6px 10px;
}
.opt-line { margin: 0 0 8px; }
.opt-line label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.opt-line input[type="checkbox"] { width: 24px; height: 24px; background-size: 24px 24px; }
.sheet-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 4px dotted var(--ink);
}
.sheet h3 { font-size: 36px; line-height: 36px; font-weight: 400; margin: 12px 0 6px; }
.sheet p, .sheet pre { font-size: 24px; line-height: 26px; }
.sheet .hint { color: #7a5334; }
.sheet pre { white-space: pre-wrap; word-break: break-all; }
.sheet .table-wrap { overflow-x: auto; }
.sheet table { font-size: 24px; line-height: 26px; }
.sheet th, .sheet td { border: 4px solid var(--ink); padding: 2px 6px; text-align: left; vertical-align: top; }
.sheet th { background: #efdfbc; font-weight: 400; }
.sheet .kv { display: grid; grid-template-columns: 130px 1fr; gap: 0 8px; font-size: 24px; line-height: 26px; }
.sheet .kv > span:nth-child(odd) { color: #7a5334; }
.sheet .tag { display: inline-block; padding: 0 4px; border: 2px solid var(--ink); margin: 0 4px 4px 0; }
.sheet .tag.good { color: var(--green); }
.sheet .tag.bad { color: var(--red); }
.focus-toggle { display: flex; align-items: center; gap: 6px; font-size: 24px; margin-left: auto; }

/* 目标 / 制度两块（设置面板顶部） */
.goal-box, .rule-box { font-size: 24px; line-height: 26px; }
.goal-proj { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.goal-proj b { font-weight: 400; }
.goal-proj .num { margin-left: auto; }
.goals { display: flex; flex-direction: column; gap: 2px; }
.goal { display: flex; gap: 8px; color: #7a5334; }
.goal.met { color: var(--green); }
.goal-mark { width: 24px; flex: none; }
.rule-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }

/* 昨天的账 */
.day-report { display: flex; flex-direction: column; gap: 4px; font-size: 24px; line-height: 26px; }
.dr-line.warn { color: #a4601e; }
.dr-line.good { color: var(--green); }
.dr-line.bad { color: var(--red); }
.dr-line.staff { color: #7a5334; }

/* ============================ 章节开场 ============================ */
.chapter-intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.ci-veil { position: absolute; inset: 0; background: rgba(6, 8, 14, .82); }
.ci-roll {
  position: relative;
  width: 560px;
  padding: 40px 32px;
  border-style: solid;
  border-width: 24px;
  border-color: transparent;
  border-image: var(--a-ui-panel-frame, url("/assets/ui/panel_9slice.png")) 24 fill repeat;
  image-rendering: pixelated;
  text-align: center;
  animation: ciIn .5s steps(5, end) both;
}
.ci-roll.closing { animation: ciOut .5s steps(5, end) both; }
.ci-no { font-size: 24px; color: #7a5334; letter-spacing: 4px; }
.ci-title { font-size: 36px; line-height: 48px; font-weight: 400; letter-spacing: 4px; }
.ci-lead { font-size: 24px; line-height: 32px; margin-top: 12px; color: #5d3a22; }
.ci-skip { position: relative; font-size: 24px; color: #e9d8b6; }
@keyframes ciIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ciOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-16px); } }

/* ============================ 结算 ============================ */.settle-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.settle-veil { position: absolute; inset: 0; background: rgba(9, 6, 4, .72); }
.settle-sheet {
  position: relative;
  width: 900px;
  max-height: 730px;
  overflow-y: auto;
  padding: 30px 32px 18px;
  border-style: solid;
  border-width: 24px;
  border-color: transparent;
  border-image: var(--a-ui-panel-frame, url("/assets/ui/panel_9slice.png")) 24 fill repeat;
  image-rendering: pixelated;
}
.settle-crest { display: flex; align-items: center; gap: 12px; justify-content: center; font-size: 24px; color: #7a5334; }
.crest-rule { flex: 1; height: 4px; background: #c8a877; }
.settle-hero { text-align: center; margin-top: 6px; }
.settle-medal { width: 120px; height: 120px; margin: 0 auto 4px; }
.settle-medal svg { width: 100%; height: 100%; }
.settle-title { font-size: 36px; line-height: 48px; font-weight: 400; }
.settle-title.success { color: #2f6f2a; }
.settle-title.partial { color: #a4601e; }
.settle-title.fail { color: var(--red); }
.settle-verdict { font-size: 24px; line-height: 28px; color: #5d3a22; margin: 2px 0 8px; }
.settle-verdict.success { color: var(--green); }
.settle-verdict.fail { color: var(--red); }
.settle-meta { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 24px; color: #7a5334; }
.settle-meta i { width: 4px; height: 20px; background: #c8a877; }
.settle-meta b { font-weight: 400; color: var(--ink); }
.settle-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0; }
.settle-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border: 4px solid var(--ink); padding: 0 8px; line-height: 24px; background: var(--paper-hi); }
.settle-stat small { font-size: 24px; color: #7a5334; white-space: nowrap; }
.settle-stat b { font-size: 24px; font-weight: 400; white-space: nowrap; }
.settle-tags { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.settle-tag { border: 4px solid var(--ink); padding: 0 6px; font-size: 24px; }

/* 结局印章：一个方块，不画奖杯——和界面其它地方用同一套色块语言 */
.seal {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8px solid var(--ink);
  font-size: 36px;
  line-height: 36px;
  background: #efdfbc;
}
.seal.success { border-color: #2f6f2a; background: #dcefd0; color: #2f6f2a; }
.seal.partial { border-color: #a4601e; background: #f6e9cd; color: #a4601e; }
.seal.fail { border-color: var(--red); background: #f7dedb; color: var(--red); }

.settle-sect {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 2px;
  padding-bottom: 2px;
  border-bottom: 4px solid #c8a877;
  font-size: 24px;
}
.settle-sect em { font-style: normal; color: #7a5334; margin-left: auto; }
.settle-goals { list-style: none; display: flex; flex-direction: column; gap: 0; font-size: 24px; line-height: 24px; }
.settle-goals li { display: flex; gap: 8px; color: #7a5334; }
.settle-goals li.met { color: var(--green); }
.settle-goals .g-mark { width: 24px; flex: none; }
.settle-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.settle-mark { border: 4px solid #c8a877; padding: 0 6px; font-size: 24px; line-height: 24px; color: #7a5334; }
.settle-mark.met { border-color: var(--ink); background: #efdfbc; color: var(--ink); }
.settle-hidden { font-size: 24px; line-height: 24px; color: #7a5334; margin-bottom: 6px; }
.settle-hidden.met { color: #2f6f2a; }
.settle-foot { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.settle-foot .hint { max-width: 600px; text-align: left; }
.settle-stats { grid-template-columns: repeat(3, 1fr); }

.hint { font-size: 24px; line-height: 26px; color: #7a5334; }
.bs.auto { width: auto; padding: 0 8px; }


/* 面板内滚动条：8px 方块，不用系统圆角条 */
.sheet-body::-webkit-scrollbar, .settle-sheet::-webkit-scrollbar, .picker::-webkit-scrollbar, .staff-list::-webkit-scrollbar { width: 12px; height: 12px; }
.sheet-body::-webkit-scrollbar-track, .settle-sheet::-webkit-scrollbar-track, .picker::-webkit-scrollbar-track, .staff-list::-webkit-scrollbar-track { background: #e2cea8; }
.sheet-body::-webkit-scrollbar-thumb, .settle-sheet::-webkit-scrollbar-thumb, .picker::-webkit-scrollbar-thumb, .staff-list::-webkit-scrollbar-thumb { background: #b0622c; border: 2px solid #e2cea8; }
