/* 米洛蘭物語：介面。
   2026-11-15 上線前整理：胡桃木＋黃銅的框、羊皮紙的內頁（素材 assets/ui/kit，tools/ui/uikit.py 畫的九宮格，兩倍大小）。
   兩種底：HUD（.frame，深色木框，字是淺色）、視窗和對話框（.win／.dlg／.tcard，羊皮紙，字是墨色）——
   顏色都走下面的變數，羊皮紙那一組在 .win 那條規則裡換掉，裡面的元件不用各寫兩套。 */
:root {
  --ink: #1a0f08;
  --panel: #2a1d13;
  --panel2: #3a2a1c;
  --panel3: #4d3826;
  --edge: #0e0906;
  --line: #4a3a2a;
  --brass: #e8c66c;
  --brass2: #8a6a2a;
  --text: #f3e9d2;
  --strong: #fff;
  --dim: #b7a383;
  --hp: #d8463a;
  --hp2: #ff7a5a;
  --sp: #3a7ad8;
  --exp: #e8c050;
  --jexp: #6ac0a0;
  --good: #8fe6a0;
  --bad: #ff8f7a;
  --risk: #ffb070;
  --card: #c8a0ff;
  --kit: url(../assets/ui/kit/hud.png);
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  /* 招牌字（標題、視窗標題、地圖名、倒下）：jf open 粉圓裁成遊戲用得到的字、改名 Miloran Round（tools/fonts/subset.py；
     授權 web/fonts/OFL.txt）。內文、玩家名字、聊天照用系統黑體（2026-11-11 使用者選）；子集沒有的字自動退回黑體 */
  --font-deco: "Miloran Round", var(--font);
}
@font-face { font-family: "Miloran Round"; src: url("fonts/miloran-round.woff2") format("woff2"); font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0c0a08; color: var(--text); font: 13px/1.4 var(--font); overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: none; }
canvas#game { position: fixed; inset: 0; display: block; image-rendering: pixelated; }
canvas.overlay3d { position: fixed; inset: 0; display: block; pointer-events: none; }
canvas.overlay3d.mini { position: absolute; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
.hidden { display: none !important; }

/* ── 兩種底 ── */
/* HUD 的深色木框 */
.frame { border: 7px solid transparent; border-image: url(../assets/ui/kit/hud.png) 14 fill / 7px; padding: 2px 5px 4px; box-shadow: 0 6px 14px rgba(0,0,0,.38); }
/* 羊皮紙：視窗、對話框、標題的卡。裡面的顏色變數換成墨色那一組 */
.win, .dlg, .tcard {
  --text: #3b2a1a; --strong: #24160c; --dim: #7d6648; --brass: #8a4a12; --brass2: #b08a4a; --line: #c8ae7c;
  --good: #2c7a3a; --bad: #b3301f; --risk: #b45a12; --card: #7a4fc0;
  color: var(--text);
  border: 12px solid transparent; border-image: url(../assets/ui/kit/win.png) 24 / 12px;
  background: #ecdcb6 url(../assets/ui/kit/tex_parch.png) 0 0 / 256px 256px; background-clip: padding-box;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }

/* ── 按鈕：黃銅＝一般、紅漆＝主要（開始、進入）和危險、深色＝次要 ── */
.btn { border: 6px solid transparent; border-image: url(../assets/ui/kit/btn_brass.png) 12 fill / 6px; background: none; padding: 1px 10px; font-weight: 700; color: #3a2408; text-shadow: 0 1px 0 rgba(255,244,200,.55); white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn:active:not(:disabled) { transform: translateY(1px); filter: brightness(.95); }
.btn:disabled { filter: grayscale(.9) brightness(.92); opacity: .55; }
.btn.sm { padding: 0 8px; font-size: 12px; }
.btn.wide { display: block; width: 100%; margin: 6px 0; padding: 3px 10px; }
.btn.big { border-width: 9px; border-image: url(../assets/ui/kit/btn_red.png) 12 fill / 9px; padding: 4px 30px; font: 900 17px var(--font-deco); letter-spacing: 2px; color: #fff; text-shadow: 0 2px 0 #5a120a; position: relative; overflow: hidden; }
.btn.big::after { content: ''; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); animation: sheen 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn.big::after { display: none; } }
.btn.dim { border-image-source: url(../assets/ui/kit/btn_dark.png); color: #ead9b6; text-shadow: 0 1px 0 #000; }
.btn.danger { border-image-source: url(../assets/ui/kit/btn_red.png); color: #fff; text-shadow: 0 1px 0 #5a120a; }
.plus { width: 22px; height: 22px; padding: 0; border: 5px solid transparent; border-image: url(../assets/ui/kit/btn_brass.png) 12 fill / 5px; background: none; color: #3a2408; font: 900 15px/10px var(--font); }
.plus:hover:not(:disabled) { filter: brightness(1.12); }
.plus:disabled { filter: grayscale(1) brightness(.85); opacity: .4; }

/* 分頁：選中的那張是羊皮紙色（跟內頁連在一起） */
.tabs { display: flex; gap: 4px; margin-bottom: 8px; align-items: center; }
.tab { border: 6px solid transparent; border-image: url(../assets/ui/kit/tab_off.png) 12 fill / 6px; background: none; padding: 0 10px; font-weight: 700; color: #e6d4ae; text-shadow: 0 1px 0 #000; }
.tab:hover { filter: brightness(1.12); }
.tab.on { border-image-source: url(../assets/ui/kit/tab_on.png); color: #2a1a0c; text-shadow: none; }
.tabs .zeny { margin-left: auto; color: var(--brass); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 輸入：HUD 上是深色的；羊皮紙上是淺色凹槽 */
input.qty, select.bwmap, input.name, .botpane input.n { font: inherit; color: var(--text); background: #120c08; border: 0; box-shadow: inset 0 0 0 1px #4a3a2a; padding: 2px 4px; outline: none; }
.win input.qty, .win select.bwmap, .win input.name, .win .botpane input.n, .dlg input.qty, .dlg select.bwmap, .dlg input.name, .tcard input.name {
  color: var(--strong); background: #f8f0da; box-shadow: inset 0 1px 2px rgba(90,60,20,.4), 0 0 0 1px #a88a58; }
.win input:focus, .win select:focus, .dlg input:focus, .tcard input:focus { box-shadow: inset 0 1px 2px rgba(90,60,20,.4), 0 0 0 2px #b8862e; }
input.qty { width: 52px; }
input[type="checkbox"], input[type="range"] { accent-color: #b8862e; }

/* ── 角色 HUD ── */
#hud-char { position: absolute; left: 10px; top: 10px; width: 248px; }
.cname { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.cname b { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cname span { flex: none; padding: 0 8px; font-size: 11px; font-weight: 700; color: #2a1a08; background: linear-gradient(#f2d688, #c79a44); box-shadow: 0 0 0 1px var(--ink), inset 0 1px 0 rgba(255,255,255,.5); }
.gauge { position: relative; height: 19px; border: 3px solid transparent; border-image: url(../assets/ui/kit/bar.png) 6 fill / 3px; margin: 3px 0; }
.gauge i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .15s; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.18); }
.gauge.hp i { background: linear-gradient(#ffa184, #ec5642 30%, #c2372a 65%, #8f2019); }
.gauge.hp i.low { background: linear-gradient(#ffe08a, #f08a2a 35%, #c0501a 70%, #8a3410); animation: pulse .6s infinite alternate; }
.gauge.sp i { background: linear-gradient(#9cc8ff, #4a8ae6 30%, #2a62c0 65%, #1a4290); }
.gauge span { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.gauge.thin { height: 10px; }
@keyframes pulse { from { filter: brightness(1); } to { filter: brightness(1.4); } }
.lv { display: grid; grid-template-columns: 30px 24px 1fr 44px; align-items: center; gap: 4px; font-size: 11px; margin-top: 2px; }
.lv .k { color: var(--dim); }
.lv b { color: var(--strong); text-align: right; font-variant-numeric: tabular-nums; }
.lv .pct { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
.xp { height: 10px; border: 3px solid transparent; border-image: url(../assets/ui/kit/bar.png) 6 fill / 3px; position: relative; }
.xp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffe9a0, var(--exp) 60%, #c0902a); }
.xp.job i { background: linear-gradient(#b8f6dc, var(--jexp) 60%, #3a9a7a); }
.meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.meta .mz { display: inline-flex; align-items: center; gap: 3px; }
.meta #h-zeny { color: var(--brass); font-weight: 700; font-size: 12px; }
.uico { display: inline-block; width: 16px; height: 16px; flex: none; background-repeat: no-repeat; }
.over50 { color: #f0c050 !important; } .over90 { color: var(--bad) !important; font-weight: 700; }

#buffs { position: absolute; left: 10px; top: 158px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 250px; pointer-events: none !important; }
.buff { background: rgba(26,17,10,.9); box-shadow: 0 0 0 1px var(--brass2), 0 0 0 2px var(--ink); padding: 1px 6px; font-size: 11px; display: flex; gap: 4px; }
.buff b { color: var(--brass); font-weight: 700; }
.buff.bad { box-shadow: 0 0 0 1px #8a5ac0, 0 0 0 2px var(--ink); }
.buff.bad b { color: #e0a0ff; }
.buff span { color: var(--dim); font-variant-numeric: tabular-nums; }

/* ── 小地圖 ── */
#hud-map { position: absolute; right: 10px; top: 10px; padding: 1px 3px 2px; text-align: center; }
#m-name { font: 900 12px var(--font-deco); color: var(--brass); margin-bottom: 3px; letter-spacing: 1px; text-shadow: 0 1px 0 #000; }
#minimap { display: block; width: 150px; height: 150px; image-rendering: pixelated; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); }
#m-xy { font-size: 10px; color: var(--dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
#compass { position: absolute; right: 2px; top: 20px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(20,14,10,.8); box-shadow: 0 0 0 1px var(--brass2), 0 0 0 2px #000; opacity: .6; }
#fsbtn { position: absolute; left: 4px; top: 20px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: rgba(20,14,10,.8); box-shadow: 0 0 0 1px var(--brass2), 0 0 0 2px #000; opacity: .7; cursor: pointer; }
#fsbtn svg { position: absolute; inset: 4px; width: 14px; height: 14px; }
#fsbtn .back { display: none; }
:fullscreen #fsbtn .go { display: none; }
:fullscreen #fsbtn .back { display: inline; }
:-webkit-full-screen #fsbtn .go { display: none; }
:-webkit-full-screen #fsbtn .back { display: inline; }
#fsbtn:hover { opacity: 1; }
#compass.turned { opacity: 1; box-shadow: 0 0 0 1px var(--brass), 0 0 0 2px #000; }
#compass i { position: absolute; inset: 3px; display: block; background: linear-gradient(to bottom, #ff5040 0 50%, #e8e0d0 50% 100%); clip-path: polygon(50% 0, 64% 50%, 50% 100%, 36% 50%); }

/* ── 目標 ── */
#target { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); min-width: 220px; padding: 1px 8px 3px; pointer-events: none !important; }
.tname { text-align: center; font-weight: 700; margin-bottom: 1px; }
#target .tname { font-family: var(--font-deco); text-shadow: 0 1px 0 #000; }   /* 怪物名字（交易視窗的 .tname 是玩家名字，照用黑體） */
.tname em { font-style: normal; font-size: 10px; margin-left: 6px; padding: 0 4px; }
em.mvp { background: #8a3fd0; color: #fff; } em.boss { background: #a03030; color: #fff; }

/* ── 訊息 ── */
/* 訊息欄：平常點得穿（點地圖照走）、只看最後幾行；聊天輸入框有游標或釘住（▴）時 .open：變高、能捲、上面有分頁（ui.logBox） */
#log { position: absolute; left: 10px; bottom: 38px; width: 340px; display: flex; flex-direction: column; pointer-events: none !important; }
#loglist { max-height: 150px; overflow-y: auto; font-size: 12px; padding: 4px 6px; background: linear-gradient(rgba(10,6,4,0), rgba(10,6,4,.55) 20%); scrollbar-width: none; overscroll-behavior: contain; }
#loglist::-webkit-scrollbar { display: none; }
#loglist.f-chat .msg.k-sys, #loglist.f-sys .msg.k-chat { display: none; }
#logtabs { display: none; gap: 2px; padding: 3px 4px 0; background: rgba(10,6,4,.82); }
#logtabs button { font-size: 12px; padding: 1px 10px; color: #c8b890; background: rgba(60,40,20,.6); border: 1px solid rgba(232,198,108,.25); border-bottom: 0; }
#logtabs button.on { color: #fff3c8; background: rgba(120,84,36,.85); border-color: var(--brass); }
#logtabs button.dot::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #ff4a3a; vertical-align: 1px; }
#log.open { pointer-events: auto !important; width: 420px; z-index: 20; }
#log.open #logtabs { display: flex; }
#log.open #loglist { height: 280px; max-height: none; background: rgba(10,6,4,.78); scrollbar-width: thin; scrollbar-color: #b08a4a transparent; }
#log.open #loglist::-webkit-scrollbar { display: block; width: 6px; }
#log.open #loglist::-webkit-scrollbar-thumb { background: #b08a4a; }
#lognew { display: none; position: absolute; right: 10px; bottom: 6px; font-size: 12px; padding: 2px 10px; color: #2a1806; background: #f0d27a; border: 0; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.5); cursor: pointer; }
#log.open.has-new #lognew { display: block; }
#chatbar { position: absolute; left: 10px; bottom: 10px; width: 340px; height: 24px; display: flex; gap: 3px; }
#chatbar > * { height: 24px; font-size: 12px; color: #f4ecd8; background: rgba(16,10,6,.6); border: 1px solid rgba(232,198,108,.28); border-radius: 0; outline: none; }
#chat { flex: 1; min-width: 0; padding: 2px 8px; }
#chatbar .chto { width: 76px; flex: none; padding: 2px 6px; }
#chatbar .chch { flex: none; width: 40px; padding: 0; font-weight: 700; }
#chatbar .chpin { flex: none; width: 26px; padding: 0; } #chatbar .chpin.on { color: #ffd76a; border-color: var(--brass); }
#chatbar[data-ch="party"] .chch, #chatbar[data-ch="party"] #chat:focus { color: #9cf08c; border-color: #6ab05a; }
#chatbar[data-ch="whisper"] .chch, #chatbar[data-ch="whisper"] #chat:focus, #chatbar .chto:focus { color: #ffb0e0; border-color: #c070a0; }
#chatbar[data-ch="world"] .chch, #chatbar[data-ch="world"] #chat:focus { color: #8fd8ff; border-color: #5a9cc0; }
#chat::placeholder { color: rgba(240,228,200,.42); }
/* 手機點頻道鈕跳出來的清單（電腦是點一下換下一個） */
#chatbar > .chmenu { position: absolute; left: 0; bottom: calc(100% + 4px); height: auto; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: none; z-index: 40; }
#chatbar > .chmenu .btn { min-width: 84px; height: 34px; font-size: 14px; }
#chatbar > .chmenu .btn.on { filter: brightness(1.15); outline: 2px solid var(--brass); }
#chatbar > .chmenu .btn[data-ch="world"] { color: #1d5878; } #chatbar > .chmenu .btn[data-ch="party"] { color: #2c6a20; } #chatbar > .chmenu .btn[data-ch="whisper"] { color: #8a2a64; }
#chat:focus { background: rgba(10,6,4,.82); border-color: var(--brass); }
.msg { text-shadow: 0 1px 0 #000, 1px 0 0 #000; padding: 1px 0; }
.msg.c-chat { color: #ffffff; } .msg.c-me { color: #fff6c8; } .msg.c-party { color: #9cf08c; } .msg.c-whisper { color: #ffb0e0; } .msg.c-world { color: #8fd8ff; } .msg.c-notice { color: #ffd76a; font-weight: 700; }
.msg .who { pointer-events: auto; cursor: inherit; font-weight: 700; }
.msg .who:hover { text-decoration: underline; }
.msg.c-sys { color: #a8d8ff; } .msg.c-item { color: #e8e0c8; } .msg.c-card { color: #ffe680; font-weight: 700; }
.msg.c-lv { color: #ffd84a; font-weight: 700; } .msg.c-warn { color: #ffb070; } .msg.c-death { color: #ff6a5a; font-weight: 700; } .msg.c-mvp { color: #e0a0ff; font-weight: 700; }
.namemenu { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 4px; padding: 4px; min-width: 116px; }
.namemenu b { font-size: 12px; color: var(--brass); text-align: center; }
.dlg.report { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }

/* ── 快捷列：一條木托盤上九個凹格 ── */
#hotbar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 3px; border: 7px solid transparent; border-image: url(../assets/ui/kit/hud.png) 14 fill / 7px; padding: 1px 2px; box-shadow: 0 6px 14px rgba(0,0,0,.38); }
.slot { width: 44px; height: 44px; position: relative; display: grid; place-items: center; cursor: pointer; border: 4px solid transparent; border-image: url(../assets/ui/kit/slot.png) 8 fill / 4px; }
.slot:hover { border-image-source: url(../assets/ui/kit/slot_sel.png); }
.slot:active { transform: translateY(1px); }
.slot.empty { opacity: .82; }
.slot.none .si { filter: grayscale(1) brightness(.6); }
.slot .si img { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
.slot .si img.hd, .ico.hd, .cell img.hd { image-rendering: auto; }
.slot .key { position: absolute; left: 1px; top: -2px; font-size: 10px; color: var(--brass); font-weight: 700; text-shadow: 0 1px 0 #000, 1px 0 0 #000; }
.slot .qty { position: absolute; right: 1px; bottom: -2px; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.slot .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0,0,0,.62); pointer-events: none; }
.sico { font-size: 22px; line-height: 1; filter: drop-shadow(0 1px 0 #000); }
.sico .pic { display: block; width: 32px; height: 32px; background-repeat: no-repeat; }
.sico:has(.pic) { filter: none; }

/* ── 選單：圖示＋兩個字 ── */
#menu { position: absolute; right: 10px; bottom: 8px; display: flex; gap: 3px; }
.mbtn { position: relative; width: 42px; height: 50px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 6px solid transparent; border-image: url(../assets/ui/kit/btn_dark.png) 12 fill / 6px; background: none; color: #ead9b6; }
.mbtn .mi { display: block; width: 26px; height: 26px; background-repeat: no-repeat; margin-top: -2px; }
.mbtn span { font-weight: 700; font-size: 10px; line-height: 12px; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.mbtn kbd { position: absolute; left: -3px; top: -5px; font: 700 9px var(--font); color: var(--dim); text-shadow: 0 1px 0 #000; }
.mbtn:hover { filter: brightness(1.18); color: #fff; }
.mbtn:active { transform: translateY(1px); }
.mbtn.on { border-image-source: url(../assets/ui/kit/btn_brass.png); color: #2a1a08; }
.mbtn.on span { text-shadow: 0 1px 0 rgba(255,244,200,.55); }
.mbtn.on kbd { color: #4a3a1a; text-shadow: none; }
.mbtn.on::before { content: ''; position: absolute; inset: -9px; box-shadow: 0 0 0 2px var(--brass); opacity: .5; animation: pulse 1s infinite alternate; pointer-events: none; }
.mbtn.dot::after { content: ''; position: absolute; right: -8px; top: -8px; width: 9px; height: 9px; border-radius: 50%; background: #ff4a3a; box-shadow: 0 0 0 2px var(--edge); animation: pulse .6s infinite alternate; }
@media (min-width: 701px) and (max-width: 1240px) { #hotbar { bottom: 66px; left: auto; right: 10px; transform: none; } }

/* ── 橫幅（地圖名、升級）：大字下面一條金線 ── */
#banner { position: absolute; left: 0; right: 0; top: 22%; text-align: center; opacity: 0; pointer-events: none !important; }
#banner.show { animation: banner 2.4s ease-out forwards; }
#banner .big { font-family: var(--font-deco); font-size: 36px; font-weight: 900; letter-spacing: 5px; color: #fff; text-shadow: 0 3px 0 #000, 0 0 18px rgba(0,0,0,.8); }
#banner .big::after { content: ''; display: block; height: 20px; margin: 2px auto 0; background: url(../assets/ui/kit/divider.png) center / 480px 20px no-repeat; }
#banner .sub { font-family: var(--font-deco); font-size: 15px; color: var(--brass); letter-spacing: 4px; text-shadow: 0 2px 0 #000; margin-top: 0; }
#banner.gold .big { color: #ffe08a; }
#banner.red .big { color: #ff7a6a; }
@keyframes banner { 0% { opacity: 0; transform: translateY(10px); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* ── 視窗 ── */
#wins { position: absolute; inset: 0; pointer-events: none !important; }
#portrait { position: absolute; left: 0; bottom: 0; height: min(64vh, 560px); pointer-events: none; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.win { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); width: 364px; max-height: calc(100vh - 170px); display: flex; flex-direction: column; pointer-events: auto; }
.win[style*="left"] { transform: none; }
.win-inv { left: auto; right: 180px; transform: none; }
.win-equip { left: 268px; transform: none; width: 452px; }
.win-status { left: 268px; transform: none; width: 392px; }
.win-skills { width: 420px; }
.win-storage { width: 520px; }
.win-craft { width: 440px; }
.win-news { width: 480px; }
/* 更新日誌（web/changelog.js）：一次更新一段，分類標籤＋條列；最新那段的標題亮一點 */
.clog { overflow-y: auto; padding: 2px 4px 6px; }
.clog-e { padding: 8px 2px 10px; border-bottom: 1px dashed rgba(90,60,30,.35); }
.clog-e:last-child { border-bottom: 0; }
.clog-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.clog-h b { font-family: var(--font-deco); font-size: 15px; color: var(--ink); }
.clog-e.new .clog-h b::after { content: 'NEW'; margin-left: 6px; padding: 0 4px; font: 700 10px var(--font); color: #fff; background: #c8462e; border-radius: 3px; vertical-align: 2px; }
.clog-h span { font-size: 12px; color: #7a5a3a; white-space: nowrap; }
.clog-s { display: grid; grid-template-columns: 40px 1fr; gap: 6px; margin: 4px 0; }
.clog-k { align-self: start; text-align: center; font-size: 11px; font-weight: 700; color: #fff; border-radius: 3px; padding: 1px 0; margin-top: 2px; }
.clog-k.k-add { background: #3f8a4a; } .clog-k.k-chg { background: #3f6aa0; } .clog-k.k-fix { background: #a0603a; }
.clog-s ul { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.55; color: #2a1a0c; }
.clog-s li { margin: 1px 0; }
.clog-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; background: rgba(10,6,3,.55); padding: 16px; }
.clog-card { width: 520px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #efe0bf url(../assets/ui/kit/tex_parch.png) 0 0 / 256px 256px; border: 3px solid #5a3c1e; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.clog-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 2px solid #5a3c1e; }
.clog-top b { font-family: var(--font-deco); font-size: 17px; color: var(--ink); letter-spacing: 2px; }
.clog-top .x { background: none; border: 0; font-size: 20px; cursor: pointer; color: #5a3c1e; }
.tfoot a.dot::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: #ff4a3a; vertical-align: 2px; animation: pulse .6s infinite alternate; }
.btn.wide.dot::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #ff4a3a; vertical-align: 1px; animation: pulse .6s infinite alternate; }
.win-travel { width: 320px; }
.wtitle { display: flex; align-items: center; justify-content: space-between; padding: 3px 3px 3px 10px; background: url(../assets/ui/kit/tex_wood_light.png) 0 0 / 128px 128px; border-bottom: 2px solid var(--ink); box-shadow: inset 0 -1px 0 rgba(255,220,140,.25), 0 1px 0 rgba(255,250,230,.5); cursor: move; touch-action: none; }
.wtitle .wt { font-family: var(--font-deco); font-weight: 900; font-size: 14px; color: #f6dc8a; letter-spacing: 2px; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtitle .wt::before { content: '◆'; font-size: 8px; vertical-align: 2px; margin-right: 6px; color: #c79a44; }
.wtitle .x { flex: none; width: 22px; height: 22px; padding: 0; border: 0; background: url(../assets/ui/kit/close.png) center / 20px 20px no-repeat; font-size: 0; }
.wtitle .x:hover { filter: brightness(1.2); }
.wbody { padding: 8px 10px 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b08a4a transparent; }

/* 狀態 */
.statwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.srow { display: grid; grid-template-columns: 34px 28px 28px 22px 18px; align-items: center; gap: 4px; padding: 2px 0; }
.srow .sk { color: var(--dim); font-weight: 700; }
.srow .sv { text-align: right; font-size: 15px; color: var(--strong); font-variant-numeric: tabular-nums; }
.srow .sb { color: var(--good); font-size: 11px; font-weight: 700; }
.srow .cost { color: var(--dim); font-size: 10px; text-align: center; }
.srow.pts { grid-template-columns: 1fr auto; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.srow.pts b { color: var(--brass); font-size: 16px; }
.drow { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dotted var(--line); }
.drow span { color: var(--dim); } .drow b { font-variant-numeric: tabular-nums; color: var(--strong); }

/* 道具格 */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cell { aspect-ratio: 1; position: relative; display: grid; place-items: center; border: 4px solid transparent; border-image: url(../assets/ui/kit/slot.png) 8 fill / 4px; cursor: pointer; }
.cell.empty { cursor: default; opacity: .9; }
.cell:not(.empty):hover { filter: brightness(1.15); }
.cell.sel { border-image-source: url(../assets/ui/kit/slot_sel.png); }
.cell.card { border-image-source: url(../assets/ui/kit/slot_card.png); }
.cell.card.sel { border-image-source: url(../assets/ui/kit/slot_sel.png); }
.cell img, .ico { width: 32px; height: 32px; image-rendering: pixelated; }
.grid .cell img { width: 40px; height: 40px; }
.ico.sm { width: 20px; height: 20px; vertical-align: middle; }
.cell .n { position: absolute; right: 1px; bottom: -2px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.cell .r { position: absolute; left: 1px; top: -3px; font-size: 11px; font-weight: 900; color: #ffd866; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000; }
.cell .eq { position: absolute; right: 0; top: -2px; font-size: 9px; font-weight: 700; color: #2a1a08; background: #e8c66c; padding: 0 3px; }
.iinfo { margin-top: 8px; padding: 6px 8px; min-height: 44px; border: 4px solid transparent; border-image: url(../assets/ui/kit/inset.png) 8 fill / 4px; }
.iinfo:empty { min-height: 44px; }
.iname { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.iname b { color: var(--strong); font-size: 14px; }
.il { color: var(--dim); font-size: 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 裝備：人在中間的台子上，兩邊各五格 */
.equipwrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.ecol { display: flex; flex-direction: column; gap: 5px; }
.eslot { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.ecol:last-child .eslot { flex-direction: row-reverse; text-align: right; }
.eslot.empty { cursor: default; }
.eslot .cell { width: 42px; flex: none; }
.eslot.empty .cell { opacity: .7; }
.en { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.en small { color: var(--dim); font-size: 10px; }
.en span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--strong); font-weight: 700; }
.eslot.empty .en span { color: var(--dim); font-weight: 400; }
.en .cards { color: var(--card); font-size: 10px; letter-spacing: 1px; }
.eslot:hover:not(.empty) .en span { color: var(--bad); }
.ecenter { text-align: center; position: relative; padding: 0 4px; }
.ecenter::before { content: ''; position: absolute; left: 50%; bottom: 20px; width: 110px; height: 18px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(70,45,15,.42), transparent 70%); }
.eqchar { image-rendering: pixelated; display: block; margin: 0 auto; position: relative; }
.ejob { color: var(--brass); font: 900 13px var(--font-deco); margin-top: 4px; letter-spacing: 2px; }
.equipwrap + .eslot { margin-top: 6px; justify-content: center; }
canvas.stand { image-rendering: auto; width: auto; }
.eqchar.stand { height: 200px; }
.jobcard canvas.stand { height: 110px; }

/* 技能 */
.skpts { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--dim); font-weight: 700; }
.skpts b { color: var(--brass); }
.skrow { display: grid; grid-template-columns: 42px 1fr 22px; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.skrow[draggable="true"] { cursor: grab; }
.skrow .sico { width: 42px; height: 42px; display: grid; place-items: center; border: 4px solid transparent; border-image: url(../assets/ui/kit/slot.png) 8 fill / 4px; }
.skrow.unlearned .sico { filter: grayscale(1) brightness(.75); opacity: .8; }
/* 技能視窗的「用幾級」◂ Lv3 ▸：拖到快捷列、雙擊放都照這個 */
.uselv { display: inline-flex; align-items: center; gap: 1px; margin-left: 6px; vertical-align: 1px; padding: 0 2px; border-radius: 3px; background: rgba(60, 36, 12, .12); box-shadow: inset 0 0 0 1px rgba(120, 80, 30, .35); }
.uselv i { font-style: normal; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: #7a3c10; min-width: 26px; text-align: center; }
.uselv button { border: 0; background: none; padding: 0 3px; font-size: 14px; line-height: 16px; color: #5a3410; cursor: pointer; }
.uselv button:hover:not(:disabled) { color: #b0601a; }
.uselv button:disabled { opacity: .3; cursor: default; }
.skn b { color: var(--strong); } .sklv { color: var(--brass); margin-left: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.skn em { font-style: normal; font-size: 10px; color: var(--dim); margin-left: 6px; box-shadow: 0 0 0 1px var(--brass2); padding: 0 3px; }
.skd { color: var(--dim); font-size: 11px; }
.skreq { color: var(--bad); font-size: 11px; }

/* 商店、製作、精煉的清單 */
.shoplist { display: flex; flex-direction: column; gap: 0; }
.srow2 { display: grid; grid-template-columns: 32px 1fr auto 52px auto; gap: 6px; align-items: center; padding: 3px 2px; border-bottom: 1px dotted var(--line); }
.srow2.dim { opacity: .5; }
.srow2.trav { grid-template-columns: 1fr auto auto; padding: 4px 2px; }
.srow2.trav .nm { font-weight: 700; color: var(--strong); }
.srow2.click { cursor: pointer; grid-template-columns: 32px 1fr auto auto; }
.srow2.click:hover { background: rgba(138,74,18,.1); }
.srow2.sel { background: rgba(138,74,18,.18); box-shadow: inset 2px 0 0 var(--brass); }
.srow2.craft { grid-template-columns: 32px 1fr auto auto auto; }
/* 好友 */
.fmem { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; }
.fmem .pinfo { grid-column: 1; }
.fmem .facts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 4px; }
.fdot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #9a8c78; vertical-align: middle; }
.fdot.on { background: #3fae4a; box-shadow: 0 0 4px #3fae4a; }
.fadd { display: flex; gap: 6px; margin-top: 8px; }
.popt { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 2px; font-size: 13px; }
.fadd .name { flex: 1; }
.fcount { margin-top: 4px; font-size: 11px; color: var(--dim); text-align: right; }
/* 擺攤：開攤的清單（勾、圖、名字、數量、單價、商店收多少）、攤位招牌 */
.vsel { max-height: 50vh; overflow-y: auto; }
.vsel .srow2 { grid-template-columns: 18px 32px 1fr 52px 88px auto; cursor: pointer; }
.vsel .srow2 .qty { width: 100%; box-sizing: border-box; }
.vsel .srow2 .qty:disabled { opacity: .35; }
@media (min-width: 701px) { .win-vendset, .win-vendshop { width: 460px; } }
.vsel .vnpc { font-size: 11px; color: var(--dim); white-space: nowrap; }
.vhead { display: flex; justify-content: space-between; margin: 6px 2px 2px; font-size: 12px; color: var(--dim); }
.vtitle { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 2px 6px; font-weight: 700; color: var(--strong); }
.vtitle .zeny { font-weight: 400; font-size: 12px; color: var(--dim); }
.win-vendset .name { width: 100%; box-sizing: border-box; }
@media (max-width: 700px) { .vsel .srow2 { grid-template-columns: 18px 28px 1fr 46px 64px; } .vsel .vnpc { display: none; } }
.srow2 .need { display: flex; gap: 8px; font-size: 12px; }
.srow2 .need span { display: inline-flex; align-items: center; gap: 2px; }
.srow2 .need .ico { width: 20px; height: 20px; }
.srow2 .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow2 .nm small { display: block; font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.srow2 .pr { color: var(--brass); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.srow2 .pr.no { color: var(--bad); }
.srow2 .pr.gain, .gain { color: var(--good); }
.srow2 .pr.risk, .risk { color: var(--risk); }
.srow2 .tag { font-size: 10px; color: var(--dim); }
.srow2 .arrow { color: var(--brass); font-weight: 900; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.two h4 { margin: 0 0 4px; color: var(--brass); font: 900 13px var(--font-deco); letter-spacing: 1px; }
.two .col { min-width: 0; }
.two .srow2 { grid-template-columns: 24px 1fr auto; }
.two .col + .col .srow2 { grid-template-columns: auto 24px 1fr; }
.two img { width: 24px; height: 24px; }

/* 精煉 */
.refine { margin-top: 10px; padding: 6px 8px; border: 4px solid transparent; border-image: url(../assets/ui/kit/inset.png) 8 fill / 4px; }
.rbig { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; margin-bottom: 6px; color: var(--strong); }
.rrow { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 2px 0; }
.rrow.warnline { color: var(--bad); font-size: 12px; justify-content: center; }
.no { color: var(--bad) !important; }

/* 對話、轉職 */
.talk p { margin: 0 0 6px; }
/* 任務對話（quest.js）：台詞＋選項 */
.win-dialog, .win-talk { min-width: 320px; max-width: 440px; width: auto; }
.win-dialog .talk p, .win-talk .talk p { line-height: 1.65; font-size: 14px; color: var(--strong); }
.win-dialog .choices { margin-top: 8px; }
.win-dialog .choices .btn.wide { text-align: left; margin: 5px 0; }
.req { margin: 6px 0 10px; }
.rq { display: grid; grid-template-columns: 70px 1fr 40px; gap: 8px; align-items: center; margin: 4px 0; color: var(--dim); }
.rq.ok { color: var(--good); }
.rq b { text-align: right; }
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jobcard { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; background: none; color: inherit; border: 4px solid transparent; border-image: url(../assets/ui/kit/inset.png) 8 fill / 4px; }
.jobcard:hover:not(:disabled) { background: rgba(138,74,18,.12); }
.jobcard:disabled { opacity: .55; }
.jobcard canvas { image-rendering: pixelated; height: 96px; width: auto; }
.jobcard b { color: var(--brass); font-size: 14px; }
.jobcard small { color: var(--dim); font-size: 11px; text-align: center; }

.set { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--line); }

/* 確認、死亡 */
#modal { position: absolute; inset: 0; background: rgba(8,5,3,.55); display: grid; place-items: center; z-index: 9999; }
.dlg { min-width: 300px; max-width: 90vw; text-align: center; padding: 14px 18px; }
.dlg p { margin: 2px 0 10px; font-size: 14px; color: var(--strong); }
.dlg .acts { justify-content: center; margin-top: 12px; }
.dlg .acts .btn { min-width: 84px; padding: 2px 14px; }
.death .big { font-family: var(--font-deco); font-size: 28px; font-weight: 900; color: #a8261a; margin-bottom: 4px; letter-spacing: 4px; }
.death .big::after { content: ''; display: block; height: 20px; margin-top: 4px; background: url(../assets/ui/kit/divider.png) center / 300px 20px no-repeat; }

/* ── 標題：背景是遊戲裡的風景，中間一張羊皮紙卡 ── */
#title { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 18px; background: #14100c url(../assets/ui/title-bg.jpg) center / cover no-repeat; z-index: 10000; overflow-y: auto; padding: 16px 0; }
/* 內容比畫面高時（登入卡多了第三方登入）不被切掉頭：放得下就上下置中、放不下從頂端開始捲 */
#title > :first-child { margin-top: auto; } #title > :last-child { margin-bottom: auto; }
#title::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(12,8,5,.3) 0%, rgba(12,8,5,.6) 60%, rgba(12,8,5,.86) 100%); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); pointer-events: none; }
#title > * { position: relative; flex: none; }
.logo { text-align: center; font-family: var(--font-deco); }
/* 吉祥物絨毛球（2026-11-16 選的 logo，assets/brand/）：招牌字上面輕輕跳 */
.logo .mascot { display: block; width: 132px; height: auto; margin: 0 auto -4px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); animation: mascotBob 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes mascotBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.logo .l1 { font-size: 60px; font-weight: 900; letter-spacing: 10px; padding-left: 10px; color: #ffe9ac; text-shadow: 0 2px 0 #b8862e, 0 5px 0 #5a3a10, 0 7px 0 #1a0f08, 0 0 34px rgba(255,214,120,.5); }
.logo .l2 { font-size: 13px; letter-spacing: 12px; padding-left: 12px; color: #f2d688; text-shadow: 0 1px 0 #000, 0 0 8px rgba(0,0,0,.8); }
.logo .l2::after { content: ''; display: block; height: 20px; margin-top: 2px; background: url(../assets/ui/kit/divider.png) center / 420px 20px no-repeat; }
.tcard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 26px 18px; }
.tcard.login { padding: 22px 30px; gap: 12px; }
.tstage { position: relative; display: grid; place-items: end center; padding: 0 16px; }
.tstage::before { content: ''; position: absolute; left: 50%; bottom: -4px; width: 130px; height: 20px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(70,45,15,.45), transparent 70%); }
.tchar { image-rendering: pixelated; position: relative; }
.tchar.stand { height: 250px; }
.tinfo { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0; }
.tinfo b { font-size: 19px; font-weight: 700; color: var(--strong); }   /* 玩家取的名字：系統黑體（招牌字是子集，缺字會一半圓體一半黑體） */
.tinfo .tlv { color: var(--brass); font-weight: 700; }
.tinfo .tloc { color: var(--dim); font-size: 12px; }
.tinfo .tpilot { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #3f8a4a; padding: 0 8px; margin-top: 3px; box-shadow: 0 0 0 1px #1f4a26; }
.tchars { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 14px; max-width: 96vw; }
.tcard.pick { width: 216px; padding: 14px 14px 16px; justify-content: flex-end; }
.tcard.pick .tchar.stand { height: 200px; }
.tcard.pick .btn.big { padding: 2px 26px; font-size: 16px; }
.tcard.pick.new { justify-content: center; }
.tcard.pick.new input.name { width: 100%; }
.tcard.pick .swatches { gap: 4px; } .tcard.pick .sw { width: 19px; height: 19px; }
input.name { width: 230px; text-align: center; font: 16px var(--font); padding: 8px; -webkit-user-select: text; user-select: text; }
input.name.small { font-size: 12px; padding: 4px 6px; text-align: left; }
input.name.shake { animation: shake .35s; box-shadow: inset 0 0 0 1px var(--bad), 0 0 0 2px var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tcard .why { color: var(--bad); font-size: 13px; min-height: 0; margin: 0; text-align: center; }
.tcard .why:empty { display: none; }
.ltabs { display: flex; gap: 6px; align-self: stretch; justify-content: center; margin-bottom: 2px; }
.ltabs .tab { flex: 1; padding: 3px 0; font-size: 15px; }
.agree { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.agree input { width: 16px; height: 16px; accent-color: #8a5a1a; }
.agree a, .tfoot a { color: #8a4a10; text-decoration: underline; }
.tcard .btn.big:disabled { filter: grayscale(.8) brightness(.8); opacity: .55; cursor: default; }
/* 標題下方：分級標示（保護級）、封測、條款 */
.tfoot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; max-width: calc(100vw - 24px); font-size: 12px; color: #e8d6b0; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.8); }
.tfoot a { color: #f2d688; }
.rating { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 3px; border-radius: 12px; background: #1d5fa8; color: #fff; text-shadow: none; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.6); }
.rating b { background: #fff; color: #1d5fa8; border-radius: 10px; padding: 0 6px; font-size: 12px; }
.rating i { font-style: normal; font-weight: 700; font-size: 12px; }
.swatches { display: flex; gap: 6px; }
.sw { width: 24px; height: 24px; border: 0; padding: 0; box-shadow: 0 0 0 2px #3a2a1a, inset 0 2px 0 rgba(255,255,255,.3); }
.sw.on { box-shadow: 0 0 0 2px #3a2a1a, 0 0 0 4px #c9a04a, inset 0 2px 0 rgba(255,255,255,.3); }
.look { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lookprev { position: relative; height: 210px; display: grid; place-items: end center; }
.lookprev::before { content: ''; position: absolute; left: 50%; bottom: -4px; width: 120px; height: 18px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(70,45,15,.45), transparent 70%); }
.lookchar { position: relative; }
.lookchar.stand { height: 204px; }
.lk { display: flex; gap: 4px; }
.lk button { min-width: 44px; border: 6px solid transparent; border-image: url(../assets/ui/kit/tab_off.png) 12 fill / 6px; background: none; padding: 0 10px; color: #e6d4ae; font-weight: 700; text-shadow: 0 1px 0 #000; }
.lk button.on { border-image-source: url(../assets/ui/kit/btn_brass.png); color: #2a1a08; text-shadow: 0 1px 0 rgba(255,244,200,.55); }
canvas.doll, .jobcard canvas.doll { image-rendering: auto; }   /* 紙娃娃是手繪，縮放要平滑 */

/* 載入中（index.html 一開始就有的那一段）：標題下面一條來回跑的金線 */
.loading { width: 220px; height: 6px; border: 3px solid transparent; border-image: url(../assets/ui/kit/bar.png) 6 fill / 3px; box-sizing: content-box; overflow: hidden; }
.loading i { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #f2d688, transparent); animation: loading 1.1s ease-in-out infinite alternate; }
@keyframes loading { from { transform: translateX(-60%); } to { transform: translateX(210%); } }

/* 游標提示（ui.js 的 tips）：第一行是名字／主要的一句 */
.tip { position: fixed; z-index: 20000; max-width: 280px; padding: 1px 6px 3px; font-size: 12px; pointer-events: none; white-space: pre-wrap; }
.tip .tl0 { color: #fff; font-weight: 700; }
.tip .tl { color: var(--dim); }

/* ── 多開（外掛角色的視窗） ── */
#dock { position: absolute; right: 10px; top: 222px; bottom: 74px; width: 372px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; pointer-events: auto; scrollbar-width: thin; }
#dock.hidden { display: none; }
.bwin { padding: 0; flex: none; display: flex; flex-direction: column; }
.bwt { display: flex; align-items: center; gap: 6px; padding: 2px 2px 3px; font-size: 12px; position: relative; }
.bwt b { color: var(--brass); }
.bwt .bwlv { color: var(--text); }
.bwt .bwloc { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.bwt.dot b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 4px; background: #ff4a3a; vertical-align: 2px; animation: pulse .6s infinite alternate; }
.bwbtns { display: flex; gap: 3px; }
.bwb { min-width: 22px; height: 20px; padding: 0 4px; font-size: 11px; font-weight: 700; color: #ead9b6; background: linear-gradient(#5a442e, #3a2a1c); border: 0; box-shadow: 0 0 0 1px var(--ink), inset 0 1px 0 rgba(255,230,170,.22); }
.bwb:hover:not(:disabled) { filter: brightness(1.2); }
.bwb.on { background: linear-gradient(#f2d688, #c79a44); color: #2a1a08; }
.bwb:disabled { opacity: .35; }
.bwbars { display: grid; grid-template-columns: 1fr 1fr auto; gap: 5px; align-items: center; padding: 0 2px 3px; }
.bwbars .gauge { margin: 0; }
.bwmap { font: 11px var(--font); max-width: 150px; }
.bwb-body { position: relative; height: 196px; background: #08060a; box-shadow: inset 0 0 0 1px #000; overflow: hidden; }
.bwin.text .bwb-body { height: 150px; }
.bwcv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.console { height: 100%; overflow-y: auto; padding: 5px 7px; font: 11px/1.45 ui-monospace, Consolas, "Noto Sans TC", monospace; color: #b8e6b0; background: #050805; }
.console .cl em { color: #4a7a4a; font-style: normal; }
.console .cl.bot { color: #e8e4a0; }
.console .cl.warn { color: #ffb070; }
.console .cl.death { color: #ff6a5a; }
.console .cl.lv, .console .cl.card, .console .cl.mvp { color: #ffe680; }
.console .cl.item { color: #a8d8ff; }
.console .cl.whisper { color: #ffb0e0; } .console .cl.party { color: #9cf08c; }
.console .cl.lv { display: block; margin-top: 0; font-size: inherit; }   /* 跟 HUD 的 .lv（等級列的格線）撞名 */
.ovlist { display: flex; flex-direction: column; gap: 6px; }
.ovrow { padding: 0; flex: none; }
.ovrow.off { filter: saturate(.5) brightness(.8); }
.ovrow.here { border-image-source: url(../assets/ui/kit/hud.png); box-shadow: 0 0 0 2px var(--brass), 0 6px 14px rgba(0,0,0,.38); }
.ovrow.dead .ovstate { color: #ff6a5a; }
.ovt { display: flex; align-items: center; gap: 6px; padding: 2px 2px 3px; font-size: 12px; }
.ovt b { color: var(--brass); white-space: nowrap; }
.ovt b.dot::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: #ff4a3a; vertical-align: 2px; animation: pulse .6s infinite alternate; }
.ovinfo { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ovstate { font-size: 11px; color: #a8d8a0; white-space: nowrap; }
.ovrow .console { height: 140px; box-shadow: inset 0 1px 0 #000; }
.ovrep { display: flex; align-items: flex-start; gap: 6px; padding: 4px 7px; background: #0b0f0a; box-shadow: inset 0 1px 0 #000; font-size: 11px; color: #c8d8b8; }
.ovrep .rpb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ovrep .rph { display: flex; flex-wrap: wrap; gap: 2px 12px; color: #e8e4a0; }
.ovrep .rph .bad { color: #ff8a70; }
.ovrep .rpl em { font-style: normal; color: #6a8a5a; margin-right: 6px; }
.ovrep .bwb { flex: none; }
.ovrep[hidden] { display: none; }
.bwnew { padding: 4px; display: flex; flex-direction: column; gap: 5px; flex: none; }
.bwnr { display: flex; gap: 5px; align-items: center; }
.bwnr input.name.small { flex: 1; min-width: 0; width: auto; }
.bwoff { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.bwoff span { color: var(--dim); flex: 1; }

/* 游標、準星 */
canvas#game.cur-attack { cursor: crosshair; }
canvas#game.cur-talk, canvas#game.cur-pick, canvas#game.cur-warp { cursor: pointer; }
body.aiming canvas#game { cursor: crosshair; }
/* 準星（瞄準時取代游標，圖＝assets/ui/cursor/aim）：跟著滑鼠；指定性技能吸到附近的怪 → 跳過去框住整隻、變紅、縮一下 */
@media (pointer: fine) { html body.aiming canvas#game { cursor: none; } }
/* 準星：外框管位置（transform translate），圖畫在 ::before 上，黏住時只有圖做「放大一點再縮回」 */
#reticle { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; }
#reticle::before { content: ''; position: absolute; inset: 0; background: url(../assets/ui/cursor/aim@2x.png) center / contain no-repeat; image-rendering: pixelated; }
#reticle.lock { transition: transform 90ms ease-out; }
#reticle.pop::before { animation: ret-pop 200ms ease-out; }
@keyframes ret-pop { 40% { transform: scale(1.3); } }
/* 準星右下的技能等級（滾輪調） */
#reticle .lv { position: absolute; left: calc(100% - 4px); top: calc(100% - 6px); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
#reticle .lv:empty { display: none; }
#reticle .lv.bump { animation: ret-lv 160ms ease-out; }
@keyframes ret-lv { 40% { transform: scale(1.35); color: #ffe27a; } }

/* ── 外掛設定視窗（botui.js 的表單；分頁：基本／休息保命／技能／怪物／道具／成長） ── */
.win-bot { width: 804px; left: 50%; }
.win-bot .wbody { padding: 6px 10px 10px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
/* 視窗高度給 .win 的 max-height 管：分頁、底下的儲存列固定，中間的設定自己捲（手機分頁換行也不會把儲存列擠出去） */
.botui { display: flex; flex-direction: column; gap: 6px; min-height: 0; flex: 1 1 auto; }
.bottabs { display: flex; flex-wrap: wrap; gap: 4px; }
.bottabs .tab { padding: 0 10px; font-size: 12px; }
.botpane { flex: 1 1 auto; min-height: 0; max-height: calc(100vh - 300px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b08a4a transparent; padding-right: 4px; }
.botpane .set { padding: 4px 0; font-size: 12px; }
.botpane .set .ctl { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.botpane .set select.bwmap { max-width: 220px; }
.botpane input.n { width: 56px; font-size: 12px; }
.botpane .ns { display: inline-flex; align-items: center; gap: 4px; }
.botpane .refh { margin: 10px 0 3px; font: 900 13px var(--font-deco); color: var(--brass); letter-spacing: 1px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.bottip { font-size: 11px; color: var(--dim); margin: 2px 0 4px; }
.botlist { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.botrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 6px; background: rgba(138,98,40,.13); box-shadow: inset 0 0 0 1px rgba(110,78,34,.3); font-size: 12px; }
.botrow b { min-width: 72px; color: var(--strong); }
.botrow .bc { display: inline-flex; align-items: center; gap: 3px; }
.botrow .bc i { font-style: normal; color: var(--dim); font-size: 11px; }
.botrow .ord { color: var(--dim); width: 14px; text-align: right; }
.botrow .bwb { height: 18px; }
.botrow .bwb.mobs.set { background: linear-gradient(#f2d688, #c79a44); color: #2a1a08; }
.botrow.mob b, .botrow.item b { min-width: 150px; }
.botrow.mob select, .botrow.item select { max-width: 170px; }
.botpane select.addsel { margin-top: 2px; }
.botpane .mobpop { position: relative; width: 100%; padding: 6px; background: rgba(255,250,232,.55); box-shadow: inset 0 0 0 1px #a88a58; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; }
.botpane .mobpop label { display: inline-flex; align-items: center; gap: 3px; }
.botpane .mobpop .refh { width: 100%; margin: 4px 0 0; }
.botpane .mobpop .btn { margin-top: 4px; }
.botpane .mobpop.conds select { max-width: 140px; }
.botpane .mobpop.picker { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.amats { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; }
.amats label { display: inline-flex; align-items: center; gap: 2px; }
.botpane .mobpop .mpchips { display: flex; flex-wrap: wrap; gap: 4px; }
.botpane .mobpop .mpchip { padding: 1px 7px; border: 1px solid #a88a58; border-radius: 9px; background: #f4e6c4; font-size: 11px; cursor: pointer; }
.botpane .mobpop .mpchip:hover { background: #ecd3a0; }
.botpane .mobpop .mpnone { color: var(--dim); }
.botpane .mobpop .mpbar { display: flex; gap: 6px; flex-wrap: wrap; }
.botpane .mobpop .mpbar select { max-width: 220px; }
.botpane .mobpop .mpfind { flex: 1; min-width: 120px; font-size: 12px; padding: 2px 6px; }
.botpane .mobpop .mplist { display: flex; flex-wrap: wrap; gap: 2px 12px; max-height: 160px; overflow-y: auto; }
.botfoot { display: flex; align-items: center; gap: 6px; }
.botfoot > .btn:first-child { margin-right: auto; }
.botfoot .botmsg { font-size: 12px; }
.botfoot .botmsg.dirty { color: #a8461c; }
.botfoot .botmsg.ok { color: #3c6e2a; }
.win-bot.dirty .wt::after { content: ' ＊'; color: #ffd27a; }

/* ── 目標（新手引導，game/guide.js）：左上一欄＝狀態、目標、buff，上面長高下面自己往下排 ── */
#hud-left { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
#hud-left > #hud-char { position: static; pointer-events: auto; }
#hud-left > #buffs { position: static; margin-top: 0; }
/* 隊伍列表：左邊、角色框下面；瞄準對隊友的技能時亮起來，點人就放 */
#partylist { pointer-events: auto; width: 168px; padding: 4px 6px; display: flex; flex-direction: column; gap: 3px; max-height: 40vh; overflow-y: auto; }
#partylist .prow { padding: 2px 3px; border-radius: 3px; }
#partylist .pn { display: flex; justify-content: space-between; gap: 4px; font-size: 12px; color: #f2e6cc; }
#partylist .pn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#partylist .pn span { font-size: 10px; color: #b8a888; white-space: nowrap; }
#partylist .pbar { height: 4px; margin-top: 2px; background: rgba(0,0,0,.45); border-radius: 2px; overflow: hidden; }
#partylist .pbar i { display: block; height: 100%; }
#partylist .pbar.hp i { background: linear-gradient(#ff7060, #c83a2a); }
#partylist .pbar.sp i { background: linear-gradient(#6aa8ff, #2f63c8); }
#partylist .prow.off, #partylist .prow.dead { opacity: .55; }
#partylist.aiming .prow { opacity: .45; }
#partylist.aiming .prow.can { opacity: 1; cursor: pointer; box-shadow: inset 0 0 0 1px #ffd36a; background: rgba(255,211,106,.12); }
#partylist.aiming .prow.can:hover { background: rgba(255,211,106,.28); }
@media (max-width: 700px) { #partylist { width: 128px; padding: 3px 4px; } #partylist .pn { font-size: 11px; } }
#hud-guide { min-width: 248px; max-width: 340px; padding: 0 4px 2px; pointer-events: auto; outline: 2px solid transparent; outline-offset: 2px; }
#hud-guide .gd-head { display: flex; align-items: center; justify-content: space-between; height: 16px; }
#hud-guide .gd-k { position: relative; font: 900 11px var(--font-deco); color: var(--brass); letter-spacing: 3px; }
#hud-guide .gd-x { width: 20px; height: 16px; padding: 0; margin-right: -4px; background: none; border: 0; color: var(--dim); font-size: 12px; line-height: 16px; }
#hud-guide .gd-x:hover { color: #fff; }
#hud-guide .gd-row { display: flex; align-items: baseline; gap: 8px; }
#hud-guide .gd-t { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.35; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hud-guide .gd-n { flex: none; font-size: 11px; font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; }
#hud-guide .gd-bar { margin-top: 3px; }
#hud-guide .gd-item.nobar .gd-bar { display: none; }
#hud-guide .gd-item + .gd-item { margin-top: 3px; padding-top: 3px; border-top: 1px solid rgba(232,198,108,.18); }   /* 好幾個任務：一列一個 */
#hud-guide.off { min-width: 0; padding: 0 2px 0 4px; cursor: pointer; }
#hud-guide.off .gd-list { display: none; }
#hud-guide.off .gd-x { margin: 0 -2px 0 6px; }
#hud-guide.dot .gd-k::after { content: ''; position: absolute; right: -8px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: #ff4a3a; box-shadow: 0 0 0 1px var(--edge); animation: pulse .6s infinite alternate; }
#hud-guide.new { animation: gdnew 1.8s ease-out; }
@keyframes gdnew { 0%, 35% { outline-color: var(--brass); } 100% { outline-color: transparent; } }

/* 隊伍視窗：隊員一行（★隊長、職業等級・地圖、同畫面的血條、踢出） */
.win-party .wbody { min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.pmem { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 3px 6px; border: 4px solid transparent; border-image: url(../assets/ui/kit/inset.png) 8 fill / 4px; }
.pmem b { color: var(--strong); }
.pmem.off { opacity: .55; }
.pmem .pinfo { grid-column: 1; color: var(--dim); font-size: 12px; }
.pmem .btn { grid-column: 2; grid-row: 1 / span 2; }
.pmem .bar.hp { grid-column: 1; height: 5px; background: #3a1410; box-shadow: 0 0 0 1px #1a0f08; }
.pmem .bar.hp i { display: block; height: 100%; background: linear-gradient(#ff8a6a, #c2372a); }
.win-party .empty, .win-trade .empty { color: var(--dim); text-align: center; padding: 14px; }
/* 交易視窗：左對方、右自己；鎖住的那邊框變金色 */
.win-trade { width: 420px; }
.win-trade .wbody { display: flex; flex-direction: column; gap: 8px; }
.tsides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tside { border: 4px solid transparent; border-image: url(../assets/ui/kit/inset.png) 8 fill / 4px; padding: 4px 6px; display: flex; flex-direction: column; gap: 4px; min-height: 140px; }
.tside.lock { box-shadow: 0 0 0 2px #c9a04a; }
.tside .tname { display: flex; justify-content: space-between; font-weight: bold; color: var(--strong); }
.tname .tst { color: var(--good); font-weight: 700; font-size: 12px; }
.titems { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.trow { display: flex; align-items: center; gap: 4px; text-align: left; }
.trow .q { color: var(--dim); margin-left: auto; }
.tz { color: var(--dim); }
.tz b { color: var(--strong); }
.tinv { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; max-height: 160px; overflow: auto; }
.tinv .trow.btn { padding: 0 4px; font-weight: 400; white-space: nowrap; overflow: hidden; }

/* ── 手機 ── */
@media (max-width: 700px) {
  #hud-left { left: 6px; top: 6px; gap: 6px; }
  #hud-char { width: 190px; left: 6px; top: 6px; }
  .cname b { font-size: 13px; }
  .gauge { height: 17px; } .gauge span { font-size: 10px; line-height: 11px; }
  .lv { grid-template-columns: 26px 20px 1fr 38px; font-size: 10px; }
  #buffs { top: 132px; left: 6px; }
  #hud-map { right: 6px; top: 6px; }
  #minimap { width: 90px; height: 90px; }
  #hud-guide { min-width: 190px; max-width: 268px; }   /* 字長就往右長，不碰到右上的小地圖 */
  #hud-guide .gd-t { font-size: 11px; }
  #log { width: 60vw; bottom: 162px; left: 6px; } #loglist { max-height: 90px; font-size: 11px; }
  #log.open { width: calc(100vw - 12px); } #log.open #loglist { height: 36vh; font-size: 12px; }
  #chatbar .chpin { width: 34px; }
  /* 手機的頻道鈕、輸入框加高到 28px（手指點得到）；打字時鍵盤蓋住的話移到鍵盤上面（ui.chatBar 算 --kb） */
  #chatbar { width: 72vw; left: 6px; bottom: 128px; height: 28px; } #chatbar > * { height: 28px; } #chatbar .chch { width: 46px; }
  body.kb #chatbar { bottom: calc(var(--kb) + 6px); width: calc(100vw - 12px); z-index: 30; }
  body.kb #log { bottom: calc(var(--kb) + 40px); z-index: 30; }
  #hotbar { bottom: 66px; gap: 2px; left: 4px; right: 4px; transform: none; justify-content: space-between; border-width: 5px; border-image-width: 5px; padding: 1px; }
  .slot { width: auto; flex: 1; height: 40px; min-width: 0; } .slot .si img { width: 28px; height: 28px; } .sico { font-size: 18px; } .slot .sico .pic { width: 28px; height: 28px; }
  #menu { left: 4px; right: 4px; bottom: 6px; gap: 2px; justify-content: space-between; }
  .mbtn { flex: 1; width: auto; min-width: 0; height: 52px; } .mbtn kbd { display: none; }
  .mbtn .mi { width: 24px; height: 24px; }
  #portrait { height: 36vh; bottom: 124px; }
  .win, .win-inv, .win-equip, .win-status, .win-skills, .win-storage, .win-bot, .win-craft, .win-news, .win-travel, .win-trade, .win-dialog, .win-talk { left: 4px !important; right: 4px !important; top: 56px !important; transform: none !important; width: auto !important; min-width: 0; max-width: none; max-height: calc(100vh - 190px); }
  .equipwrap { grid-template-columns: 1fr 1fr; } .ecenter { display: none; }
  .ecol:last-child .eslot { flex-direction: row; text-align: left; }
  .logo .l1 { font-size: 40px; letter-spacing: 6px; padding-left: 6px; }
  .logo .mascot { width: 78px; }
  .logo .l2 { letter-spacing: 8px; padding-left: 8px; }
  .logo .l2::after { background-size: 300px 20px; }
  #title { justify-content: flex-start; gap: 10px; padding-top: 3vh; }
  #title > :first-child { margin-top: 0; }
  .tchar.stand { height: 210px; }
  .tchars { flex-direction: column; align-items: center; gap: 8px; }
  .tcard.pick { width: min(360px, 94vw); flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 6px 12px; }
  .tcard.pick .tchar.stand { height: 96px; }
  .tcard.pick .tstage { padding: 0 2px; }
  .tcard.pick .tstage::before { width: 60px; height: 10px; }
  .tcard.pick .tinfo { flex: 1; align-items: flex-start; text-align: left; }
  .tcard.pick .tinfo b { font-size: 17px; }
  .tcard.pick .btn.big { padding: 0 14px; font-size: 15px; letter-spacing: 1px; }
  .tcard.pick.new { flex-direction: column; padding: 10px 14px 12px; }
  .tcard.pick.new .lookprev { height: 132px; } .tcard.pick.new .lookchar.stand { height: 128px; }
  #banner .big { font-size: 26px; } #banner .big::after { background-size: 300px 20px; }
  #dock { left: 4px; right: 4px; top: 56px; bottom: 124px; width: auto; padding: 4px; background: rgba(12,9,7,.94); z-index: 30; box-shadow: 0 0 0 1px var(--edge); }
  .bwb-body { height: 180px; }
  .botpane { max-height: none; } .botrow b { min-width: 0; }
  .statwrap { gap: 8px; }
  .two { gap: 6px; }
}
/* 點技能圖示拿起來 → 點快捷格放下（手機沒有拖放）：拿著的那個圖示發亮、快捷格跟著亮 */
.skrow .sico.pick { cursor: pointer; }
.skrow .sico.held { border-image-source: url(../assets/ui/kit/slot_sel.png); outline: 2px solid #ffd66e; outline-offset: 1px; box-shadow: 0 0 10px 3px rgba(255, 214, 110, .8); animation: slot-wait 900ms ease-in-out infinite alternate; }
body.carrying .slot { border-image-source: url(../assets/ui/kit/slot_sel.png); animation: slot-wait 900ms ease-in-out infinite alternate; }
@keyframes slot-wait { to { filter: brightness(1.25); } }

/* 回報問題、改密碼（設定視窗開的） */
.win-bug { width: 400px; }
/* 更新重開的倒數、斷線重連（2026-11-16）：螢幕上方中間，夠大但不擋操作；最後 10 秒變紅 */
#restart-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9000; pointer-events: none; text-align: center;
  padding: 8px 26px 10px; min-width: 220px; background: rgba(26,17,10,.88); color: #f6ecd2; border-radius: 8px;
  box-shadow: 0 0 0 1px var(--brass2), 0 0 0 3px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.45); }
#restart-bar .rb-t { font: 700 13px var(--font-deco, sans-serif); color: var(--brass, #e8c66c); letter-spacing: 1px; }
#restart-bar .rb-n { font: 900 40px/1.1 var(--font-deco, sans-serif); font-variant-numeric: tabular-nums; letter-spacing: 2px; }
#restart-bar .rb-n.sm { font-size: 24px; padding: 4px 0; }
#restart-bar .rb-s { font-size: 11.5px; color: #c8b48c; }
#restart-bar.soon .rb-n { color: #ff7a5c; animation: rb-pulse 1s ease-in-out infinite; }
@keyframes rb-pulse { 50% { opacity: .55; } }
@media (max-width: 600px) { #restart-bar { top: 6px; padding: 6px 16px 8px; min-width: 180px; } #restart-bar .rb-n { font-size: 30px; } }
/* 世界地圖（2026-11-16）：整張 SVG，放不下就捲；城亮、野外羊皮紙、地城暗；沒去過的淡；你在的圈起來、目標插旗 */
.win-world { width: min(1760px, calc(100vw - 48px)); }   /* 大螢幕跟著變大（2026-11-16 使用者：「大地圖在螢幕大的畫面上，應該要可以跟著大一點」；以前寫死 1000） */
.win-world .wbody { padding: 8px; }
.wm-box { overflow: auto; max-height: calc(100vh - 300px); background: #e9dcc0; box-shadow: inset 0 0 0 1px var(--line), inset 0 0 24px rgba(90,60,20,.25); border-radius: 4px; }
.wmap { display: block; margin: 0 auto; }
.wm-roads line { stroke: #9b7b4a; stroke-width: 3; stroke-linecap: round; }
.wm-roads line.via { stroke-dasharray: 4 5; }
.wm-node { cursor: pointer; }
.wm-node rect { fill: #f6ecd2; stroke: #8a6a3a; stroke-width: 1.5; }
.wm-node.town rect { fill: #f2d688; stroke: #6a4a1a; stroke-width: 2; }
.wm-node.dun rect { fill: #5a4a3a; stroke: #2a1e14; }
.wm-node text { text-anchor: middle; font: 700 11px var(--font, sans-serif); fill: #3b2a1a; pointer-events: none; }
.wm-node text.lv { font-size: 9.5px; font-weight: 400; fill: #7d6648; }
.wm-node.town text.nm { font-size: 12.5px; fill: #24160c; }
.wm-node.dun text { fill: #f0e2c4; }
.wm-node.dun text.lv { fill: #c8b48c; }
.wm-node.unseen { opacity: .5; }
.wm-node.sel rect:not(.ring) { stroke: #b0401a; stroke-width: 2.5; }
.wm-node .ring { fill: none; stroke: #d0381a; stroke-width: 3; animation: wm-pulse 1.4s ease-in-out infinite; }
@keyframes wm-pulse { 50% { stroke-opacity: .25; } }
.wm-node text.flag { font-size: 16px; fill: #c0301a; text-anchor: end; }
.wm-info { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 4px 0; font-size: 13px; color: var(--text); min-height: 24px; }
.wm-info b { color: var(--strong); font-size: 14px; }
.wm-info .dim { color: var(--dim); }
#hud-map { cursor: pointer; }
.win-bug .wbody, .win-passwd .wbody { display: flex; flex-direction: column; gap: 10px; }
.bugcats { display: flex; flex-wrap: wrap; gap: 4px; }
.bugcats .tab { font-size: 12px; padding: 0 8px; }
.bugtext { font: 14px/1.5 var(--font); color: var(--text); background: #fffaf0; border: 0; box-shadow: inset 0 1px 3px rgba(90,60,20,.45), inset 0 0 0 1px #c9a86a; padding: 8px; resize: vertical; min-height: 110px; -webkit-user-select: text; user-select: text; outline: none; }
.bugtext:focus { box-shadow: inset 0 1px 2px rgba(90,60,20,.4), 0 0 0 2px #b8862e; }
.win-passwd { width: 300px; }
.pwform { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pwform input.name { width: 100%; }
.pwform .why { color: var(--bad); font-size: 13px; text-align: center; }
.pwform .why:empty { display: none; }
@media (max-width: 700px) { .win-bug, .win-passwd { width: auto; } }
/* 連到外面的按鈕（設定的「玩家社群」）：長得跟按鈕一樣、置中 */
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.btn.wide { display: flex; }
.bugmore { font-size: 12px; color: var(--text-dim, #6b5636); text-align: center; }
.bugmore a { color: #8a4a12; font-weight: 700; }

/* 手機搖桿（main.stickMove）：手指按下的地方出現底盤，圓鈕跟著手指（最多 48px） */
#stick { position: fixed; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: radial-gradient(rgba(255,240,200,.10), rgba(255,240,200,.22)); border: 2px solid rgba(232,198,108,.55); pointer-events: none; z-index: 25; }
#stick i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3c8, #d8b060 70%); box-shadow: 0 2px 6px rgba(0,0,0,.45); }
/* 自動前往的提示（ui.navChip）：畫面中間上方，點 ✕ 取消 */
#navchip { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; font-size: 13px; color: #fff3c8; background: rgba(16,10,6,.78); border: 1px solid var(--brass); border-radius: 16px; pointer-events: auto; z-index: 15; white-space: nowrap; }
#navchip button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; width: 22px; height: 22px; padding: 0; cursor: pointer; }
@media (max-width: 700px) { #navchip { top: auto; bottom: 236px; font-size: 12px; } }
.gd-go { margin-left: 6px; padding: 0 8px; font-size: 11px; line-height: 18px; color: #2a1806; background: #f0d27a; border: 0; border-radius: 9px; cursor: pointer; pointer-events: auto; white-space: nowrap; }
.wm-go { margin-left: auto; }

/* 固定公告（main.showMotd）：跟更新日誌同一張卡 */
.motd .clog-card { width: 440px; }
.motd-text { padding: 14px 16px; white-space: pre-wrap; line-height: 1.7; font-size: 14px; color: var(--ink); overflow-y: auto; -webkit-user-select: text; user-select: text; }
.motd-text a { color: #8a4a12; font-weight: 700; word-break: break-all; }
.motd-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 12px; border-top: 1px solid rgba(90,60,30,.3); font-size: 13px; color: var(--ink); }
.motd-foot label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* 第三方登入（登入卡下面）：品牌色的按鈕 */
.oauth { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; align-self: stretch; }   /* 撐滿登入卡（卡片裡的東西置中、照內容縮，以前按鈕只有字那麼寬，字擠出去——2026-11-16 手機截圖） */
.oauth .or { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8a6a40; }
.oauth .or::before, .oauth .or::after { content: ''; flex: 1; height: 1px; background: rgba(90,60,30,.3); }
.obtn { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 44px; border-radius: 6px; font: 600 15px var(--font); letter-spacing: .5px; text-decoration: none; white-space: nowrap; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 -2px 0 rgba(0,0,0,.08); transition: filter .12s, transform .12s; }
.oauth-tip { font-size: 11px; color: #8a6a40; text-align: center; line-height: 1.5; }
.obtn:hover { filter: brightness(1.05); } .obtn:active { transform: translateY(1px); }
.obtn i { position: absolute; left: 12px; top: 50%; margin-top: -12px; width: 24px; height: 24px; border-radius: 50%; background: center / 18px no-repeat; }
.lk-row i { width: 18px; height: 18px; border-radius: 50%; flex: none; background: center / 14px no-repeat; }
.obtn.o-google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.obtn.o-discord { background: #5865f2; color: #fff; }
.obtn.o-line { background: #06c755; color: #fff; }
.o-google i, i.o-google { background-color: #fff; box-shadow: inset 0 0 0 1px #dadce0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.4 30.3 0 24 0 14.6 0 6.6 5.4 2.6 13.3l7.9 6.1C12.4 13.6 17.7 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.1 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.4c-.5 2.9-2.2 5.3-4.6 6.9l7.4 5.7c4.3-4 6.9-9.9 6.9-17.1z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6c-.5-1.4-.8-2.9-.8-4.6s.3-3.2.8-4.6l-7.9-6.1C1 16.6 0 20.2 0 24s1 7.4 2.6 10.7l7.9-6.1z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.4-5.7c-2.1 1.4-4.8 2.3-8.5 2.3-6.3 0-11.6-4.1-13.5-9.8l-7.9 6.1C6.6 42.6 14.6 48 24 48z'/%3E%3C/svg%3E"); }
.o-discord i, i.o-discord { background-color: #5865f2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20.3 4.4A19.8 19.8 0 0 0 15.4 3l-.6 1.3a18.3 18.3 0 0 0-5.6 0L8.6 3a19.7 19.7 0 0 0-4.9 1.5C.5 9.1-.3 13.6.1 18.1a19.9 19.9 0 0 0 6 3l1.3-2a12.9 12.9 0 0 1-2-1l.5-.4a14.2 14.2 0 0 0 12.2 0l.5.4c-.6.4-1.3.7-2 1l1.3 2a19.8 19.8 0 0 0 6-3c.5-5.2-.9-9.7-3.6-13.7zM8 15.3c-1.2 0-2.2-1.1-2.2-2.4S6.8 10.5 8 10.5s2.2 1.1 2.2 2.4-1 2.4-2.2 2.4zm8 0c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4z'/%3E%3C/svg%3E"); }
.o-line i, i.o-line { background-color: #06c755; border-radius: 4px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 3C6.5 3 2 6.6 2 11c0 4 3.6 7.3 8.4 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5 1.1-.5 5.9-3.5 8-6C21.4 14.3 22 12.7 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E"); }
.tcard .stitle { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.tcard .shint { font-size: 12px; color: #8a6a40; margin: -2px 0 2px; }
.tcard .back { font-size: 12px; color: #8a4a12; text-align: center; }
/* 設定裡的帳號綁定 */
.links { margin: 6px 0; }
.links .lk-h { font-size: 12px; color: var(--dim); margin: 4px 0; }
.lk-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.lk-row .lk-n { font-weight: 700; width: 64px; }
.lk-row .lk-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }

/* 狀態視窗：六維、衍生數值的中文，下面的說明欄 */
.srow .sk i, .drow span i { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 4px; }
.srow, .drow { cursor: default; border-radius: 3px; }
.srow.on, .drow.on { background: rgba(184,134,46,.18); box-shadow: inset 0 0 0 1px rgba(184,134,46,.45); }
.sinfo { margin-top: 8px; padding: 8px 10px; background: rgba(255,250,232,.55); box-shadow: inset 0 0 0 1px #c9a86a; font-size: 12px; line-height: 1.6; color: var(--ink); min-height: 96px; }
.sinfo b { display: block; font-size: 13px; margin-bottom: 2px; }
.sinfo ul { margin: 0; padding-left: 18px; }

/* 地圖視窗：分頁（這裡／世界）、這張地圖放大（ui.winHere） */
.maptabs { display: flex; gap: 4px; margin-bottom: 6px; }
.maptabs .tab { padding: 0 14px; }
.herewrap { display: flex; gap: 10px; align-items: flex-start; }   /* 以前叫 .here：跟多開的「這個分頁」那一列（.ovrow.here）撞名，那一列被改成左右排、小黑窗被擠掉（2026-11-16） */
.here-box { position: relative; flex: 1; min-width: 0; display: flex; justify-content: center; background: #0c0a10; border-radius: 4px; overflow: hidden; }
.here-cv { display: block; image-rendering: pixelated; cursor: pointer; }
.here-layer { position: absolute; left: 50%; top: 0; transform: translateX(-50%); pointer-events: none; }
.here-npc, .here-exit { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.here-npc i { width: 9px; height: 9px; border-radius: 50%; background: #ffe060; box-shadow: 0 0 0 2px #3a2408; }
.here-npc span { margin-top: 2px; font-size: 11px; font-weight: 700; color: #fff3c8; text-shadow: 0 1px 0 #000, 0 0 3px #000; white-space: nowrap; }
.here-npc:hover span, .here-exit:hover { color: #ffd76a; }
.here-exit { font-size: 11px; font-weight: 700; color: #9fe0ff; text-shadow: 0 1px 0 #000, 0 0 3px #000; white-space: nowrap; transform: translate(-50%, -100%); }
.here-exit.in { font-size: 10px; color: #cfe8ff; font-weight: 400; }
.here-exit.e-top { transform: translate(-50%, 2px); } .here-exit.e-bot { transform: translate(-50%, calc(-100% - 2px)); }
.here-exit.e-left { transform: translate(2px, -50%); } .here-exit.e-right { transform: translate(calc(-100% - 2px), -50%); }
.here-npc { transform: translate(-50%, -5px); }
.here-list { width: 190px; flex: none; max-height: calc(100vh - 260px); overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.here-h { font-size: 12px; color: var(--dim); }
.here-li { display: flex; justify-content: space-between; gap: 6px; text-align: left; padding: 4px 8px; font-size: 12px; background: rgba(255,250,232,.6); border: 1px solid rgba(90,60,30,.25); border-radius: 3px; cursor: pointer; }
.here-li:hover { background: rgba(240,210,122,.45); }
.here-li span { color: var(--dim); white-space: nowrap; }
@media (max-width: 700px) { .herewrap { flex-direction: column; } .here-list { width: 100%; max-height: 30vh; } }

/* ── 大世界地圖（ui.winWorld，2026-11-16 重新設計）：左邊地圖、右邊說明（手機上下） ── */
.wm2 { display: flex; gap: 10px; align-items: stretch; }
.wm2-box { flex: 1; min-width: 0; overflow: auto; max-height: calc(100vh - 300px); border-radius: 6px; box-shadow: inset 0 0 0 2px #5a3c1e, 0 2px 8px rgba(0,0,0,.35); background: #e9dcc0; cursor: grab; scrollbar-width: thin; scrollbar-color: #8a6a3a transparent; }
.wm2-box:active { cursor: grabbing; }
.wmap2 { display: block; min-width: 100%; height: auto; }   /* 框比地圖寬（大螢幕）：等比例放大填滿 */
.wm2-roads path { fill: none; stroke-linecap: round; }
.wm2-roads path.edge { stroke: #6a4a22; stroke-width: 7; opacity: .7; }
.wm2-roads path.lane { stroke: #ead6a8; stroke-width: 3.5; stroke-dasharray: 9 6; }
.wm2-roads path.via { stroke-dasharray: 3 6; }
.wm2-node { cursor: pointer; }
.wm2-node text.nm { text-anchor: middle; font: 700 12px var(--font-deco, sans-serif); fill: #2a1a0a; paint-order: stroke; stroke: rgba(255,246,222,.92); stroke-width: 3.5px; pointer-events: none; }
.wm2-node.town text.nm { font-size: 14px; fill: #3a1e04; }
.wm2-node.unseen text.nm { fill: #6a5a48; font-weight: 400; }
.wm2-node .lvpill rect { fill: rgba(42,26,10,.78); }
.wm2-node .lvpill text { text-anchor: middle; font: 700 9.5px var(--font, sans-serif); fill: #ffe9ac; pointer-events: none; }
.wm2-node:hover > g:first-of-type, .wm2-node.sel > g:first-of-type { transform: scale(1.12); }
.wm2-node > g { transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.wm2-node.sel text.nm { fill: #a0300a; }
.wm2-node .pulse { fill: rgba(255,90,40,.18); stroke: #e04a1a; stroke-width: 2.5; animation: wm2-pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wm2-pulse { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .3; transform: scale(1.25); } }
.wm2-node .me { fill: #fff; stroke: #c0300a; stroke-width: 1.5; }
.wm2-node .flag line { stroke: #3a2408; stroke-width: 1.6; }
.wm2-node .flag path { fill: #d8401a; transform-box: fill-box; transform-origin: left center; animation: wm2-flag 1.2s ease-in-out infinite; }
@keyframes wm2-flag { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-8deg) scaleX(.9); } }
.wm2-title text { font: 900 24px var(--font-deco, serif); fill: #4a2c0c; letter-spacing: 6px; paint-order: stroke; stroke: rgba(255,240,200,.8); stroke-width: 4px; }
.wm2-title text.sub { font-size: 10px; letter-spacing: 8px; fill: #7a5a2a; stroke-width: 3px; }
.wm2-compass circle { fill: rgba(255,246,222,.7); stroke: #6a4a22; stroke-width: 1.5; }
.wm2-compass .ns { fill: #a0300a; } .wm2-compass .ew { fill: #6a4a22; }
.wm2-compass text { text-anchor: middle; font: 900 11px var(--font-deco, serif); fill: #4a2c0c; }
.wm2-side { width: 300px; flex: none; max-height: calc(100vh - 300px); overflow-y: auto; padding: 4px 4px 4px 2px; scrollbar-width: thin; scrollbar-color: #b08a4a transparent; }
.wm2-h b { font: 900 18px var(--font-deco, serif); color: var(--ink); }
.wm2-side .chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.wm2-side .chip { font-size: 11px; padding: 1px 8px; border-radius: 9px; background: rgba(90,60,30,.12); color: var(--ink); }
.wm2-side .chip.k-town { background: #e8c770; } .wm2-side .chip.k-field { background: #b8dc90; } .wm2-side .chip.k-dun { background: #5a4a6a; color: #f0e6ff; }
.wm2-side .chip.here { background: #e04a1a; color: #fff; } .wm2-side .chip.dim { opacity: .6; }
.wm2-side .chip.fac { background: rgba(255,250,232,.8); box-shadow: inset 0 0 0 1px #c9a86a; }
.wm2-sec { margin: 10px 0 4px; font-size: 12px; font-weight: 700; color: var(--dim); border-bottom: 1px solid rgba(90,60,30,.25); }
.wm2-mob { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px dotted rgba(90,60,30,.2); }
.wm2-mob .pic { width: 46px; height: 46px; flex: none; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(ellipse at 50% 85%, rgba(90,60,30,.22), transparent 60%); }
.wm2-mob .pic img { max-width: 46px; max-height: 46px; image-rendering: auto; }
.wm2-mob .info { flex: 1; min-width: 0; }
.wm2-mob .mh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12px; color: var(--dim); }
.wm2-mob .mh b { font-size: 13px; color: var(--ink); }
.wm2-mob .mh .el { font-size: 11px; }
.wm2-mob .mh .tags { display: flex; gap: 3px; flex-basis: 100%; }
.wm2-mob .mh .tags i { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 6px; background: rgba(90,60,30,.12); color: var(--ink); }
.wm2-mob .mh .tags .el-water { background: #cfe3f5; } .wm2-mob .mh .tags .el-earth { background: #e8dcc0; } .wm2-mob .mh .tags .el-fire { background: #f6d2c4; }
.wm2-mob .mh .tags .el-wind { background: #d9efcf; } .wm2-mob .mh .tags .el-poison { background: #e3d3ee; } .wm2-mob .mh .tags .el-holy { background: #f5efc8; }
.wm2-mob .mh .tags .el-shadow { background: #d6d0dc; } .wm2-mob .mh .tags .el-ghost { background: #e4e4ee; } .wm2-mob .mh .tags .el-undead { background: #d8d2c8; }
.wm2-mob .mh .bs { font-size: 10px; padding: 0 6px; border-radius: 7px; background: #a0300a; color: #fff; }
.wm2-mob.boss .pic { background: radial-gradient(ellipse at 50% 60%, rgba(220,120,40,.35), transparent 65%); }
.wm2-mob .drops { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 3px; }
.wm2-mob .pic, .wm2-mob .mh { cursor: pointer; }
.wm2-mob.on .mh b { text-decoration: underline; }
.wm2-mob .drop { padding: 1px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer; line-height: 0; }
.wm2-mob .drop:hover, .wm2-mob .drop.on { border-color: var(--brass2); background: rgba(160,120,50,.15); }
.wm2-det { margin-top: 4px; padding: 5px 8px; border-radius: 4px; background: rgba(90,60,30,.1); border: 1px solid rgba(90,60,30,.25); font-size: 12px; color: var(--ink); }
.wm2-det.hidden { display: none; }
.wm2-det .dh { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.wm2-det .dh span { color: var(--dim); }
.wm2-det .dl { line-height: 1.5; }
.wm2-mob .drops .ico { width: 24px; height: 24px; background: rgba(255,250,232,.7); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(90,60,30,.25); }
@media (max-width: 700px) {
  .wm2 { flex-direction: column; }
  .wm2-box { max-height: 46vh; }
  .wm2-side { width: auto; max-height: none; }
}
.vmine .srow2 { grid-template-columns: 32px 1fr auto auto; }
.botpane .na { color: var(--dim); }

#hotbar .slot.dragout { opacity: .35; outline: 2px dashed #ff6a5a; outline-offset: -2px; }   /* 手機拖出快捷列：放開就拿掉 */

/* 點別人的名字：外掛中（2026-11-17） */
.namemenu .nm-auto { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #e0b860; margin: -2px 0 4px; }
.namemenu .nm-auto .uico.sm { width: 16px; height: 16px; flex: none; }
/* 下拉灰掉（2026-11-17：隊伍的物品拾取、分配，不是隊長的看得到、改不了） */
select.bwmap:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
