/* Reconstructed original database sprites; design canvas: 1586 × 992. */
:root{--ui-scale:1;--classic-frame:url('../../assets/interface/window-frame.png');--classic-gold:#bcab72;--classic-bg:linear-gradient(120deg,#191c17e8,#111510db)}
body:not(.in-world) .bottom-center,body:not(.in-world) .player-panel,body:not(.in-world) #classic-chat,body:not(.in-world) #combat-dock{display:none!important}
.player-panel.classic-hud,#attributes-panel,#game-systems[data-mode=skill]{position:fixed;zoom:var(--ui-scale);box-sizing:border-box;border-style:solid;border-width:28px 8px 8px;border-image:var(--classic-frame) 18 8 8 stretch;border-radius:0;background:var(--classic-bg);color:#f1f1e7;box-shadow:0 3px 5px #0007;padding:0;max-width:none;max-height:none;margin:0;font:20px/1.35 'Microsoft JhengHei',sans-serif;z-index:28;text-shadow:1px 1px #000;letter-spacing:0}
.classic-title,#attributes-panel .attributes-heading,#game-systems[data-mode=skill]>header{position:absolute;top:-27px;left:4px;right:1px;height:26px;display:flex!important;align-items:center;justify-content:space-between;padding:0 3px;color:#291f10;background:none;font:20px/26px 'Microsoft JhengHei',sans-serif;text-shadow:none;border:0;letter-spacing:1px}
/* 窗框 window-frame.png 的上緣切片（原圖 x 8～311，共 304 px）會隨面板寬度拉伸，左鉚釘佔其中 10 px；左內距等於拉伸後的鉚釘寬，標題字從鉚釘右側 4 px（原本的 left:4px）開始，不被鉚釘蓋住（padding 百分比以面板內寬計算，516／638 寬的面板都適用）。 */
.player-panel .classic-title,#attributes-panel .attributes-heading,#game-systems[data-mode=skill]>header{padding-left:calc(100% * 10 / 304)}
.classic-title>div{display:flex;gap:3px}.classic-title button,.classic-form-tabs button,#game-systems .skill-filter-tabs button{cursor:pointer;padding:0;border:0;box-shadow:none;border-radius:0;background-color:transparent;flex:none}
.ui-close,#attributes-panel #attributes-close,#game-systems[data-mode=skill] .systems-close{width:24px;height:24px;background:transparent url('../../assets/interface/close.png') center/24px 24px no-repeat;border:0;font-size:0;padding:0;cursor:pointer;margin:0}
.ui-minimize{width:24px;height:24px;background:transparent url('../../assets/interface/minimize.png') center/24px 24px no-repeat}
.classic-form-tabs{display:flex;gap:4px;height:38px;align-items:center}.ui-human,.ui-mech{background-position:center;background-repeat:no-repeat;background-size:100% 100%;width:36px;height:30px;border:0;padding:0;cursor:pointer}.ui-human{background-image:url('../../assets/interface/human.png')!important}.ui-mech{background-image:url('../../assets/interface/mech.png')!important}.classic-form-tabs button[aria-pressed=true]{filter:brightness(1.3)}
.player-panel.classic-hud{left:24px;top:35px;width:516px;height:179px;min-height:0;display:block}.classic-hud .portrait{display:none}.classic-hud>.classic-form-tabs{position:absolute;left:7px;top:0}.classic-hud #portrait-attributes{position:static;transform:none;background-color:transparent;border:0;width:36px;height:30px;border-radius:0;padding:0}
.classic-hud .player-stats{position:static;display:block;width:auto;padding:0;margin:0}.classic-hud .player-name{position:absolute;left:9px;top:42px;display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0;line-height:29px;width:225px;font-size:20px}.classic-hud .player-name label{display:flex;gap:15px;white-space:nowrap}.classic-hud #player-name,.classic-hud #player-role,.classic-hud #level{font:inherit;letter-spacing:0;color:inherit;font-style:normal;font-weight:400}.classic-hud #level{display:inline-block}
.classic-hud .meter{position:absolute;left:272px;right:14px;width:auto;height:22px;overflow:visible;border:2px solid #656552;border-radius:0;background:#282c24;box-shadow:inset 0 0 1px #000;margin:0}.classic-hud .health{top:48px}.classic-hud .energy{top:78px}.classic-hud .classic-exp{top:108px}.classic-hud .meter>i{height:100%;border:0;border-radius:0;max-width:100%;background:url('../../assets/interface/hp.png') center/100% 100%;transition:width .1s linear}.classic-hud .energy>i{background-image:url('../../assets/interface/mp.png')}.classic-hud .classic-exp>i{background-image:url('../../assets/interface/exp.png')}.classic-hud .meter>span{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;font-size:18px;font-weight:400;line-height:18px;color:#fff;text-shadow:1px 1px #333;padding:0}.classic-hud .meter b{position:absolute;right:calc(100% + 21px);top:-2px;font:20px/22px Georgia,serif;letter-spacing:1px}.classic-hud.collapsed{height:29px}.classic-hud.collapsed>.player-stats,.classic-hud.collapsed>.classic-form-tabs{display:none}
#attributes-panel{inset:224px auto auto 24px;width:516px;height:378px;overflow:visible}#attributes-panel[open]{display:block;height:378px;overflow:visible}#attributes-panel .attributes-heading>img,#attributes-panel .attributes-heading .eyebrow,#attributes-person{display:none}#attributes-panel h2{font:20px/26px 'Microsoft JhengHei';color:#291f10;margin:0;letter-spacing:1px}#attributes-panel>.classic-form-tabs{position:absolute;top:0;left:7px}#attributes-panel .attributes-heading>div{margin:0;padding:0}
.reference-overview{position:absolute;top:43px;left:12px;right:12px;display:grid;grid-template-columns:1fr 1fr;gap:24px;height:184px;font-size:20px}.reference-overview>div+div{border-left:1px solid #a18e5b;padding-left:20px}.reference-overview p{display:flex;justify-content:space-between;align-items:baseline;margin:0;height:29px;gap:8px;white-space:nowrap}.reference-overview b{font-weight:400}.reference-overview .reference-identity p{justify-content:flex-start;gap:13px}.reference-overview .reference-identity b{max-width:145px;overflow:hidden;text-overflow:ellipsis}.reference-overview em{font-style:normal;font-size:16px;margin-left:6px}.stat-bonus{color:#78ff3c!important}.stat-penalty{color:#ff9a7e!important}
#attributes-editor{overflow:visible;position:absolute;top:231px;left:12px;right:12px;border-top:1px solid #a28b59;padding-top:14px}#attributes-panel .allocation-top{position:absolute;top:-228px;right:0;margin:0;min-height:0}#attributes-panel .allocation-top>div:first-child{display:none}#attributes-panel .points-badge{background:transparent;border:0;padding:0;color:#e2d7ab;font-size:14px}#attributes-panel .points-badge b{font-size:14px;margin-left:4px}#attributes-panel .allocation-columns{display:block}#attributes-panel .derived-stats,#attributes-panel .allocation-note,#attributes-panel .attribute-row small,#attributes-panel .attribute-row button:first-of-type,#attributes-panel .attributes-actions,#attributes-panel #attributes-message{display:none}
#attributes-panel .attribute-rows{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,29px);grid-auto-flow:column;gap:4px 22px}#attributes-panel .attribute-row{display:flex;gap:8px;padding:0;border:0;background:none;min-height:0;height:29px;font-size:20px}#attributes-panel .attribute-row[data-attribute=vitality]{grid-row:2;grid-column:1}#attributes-panel .attribute-row[data-attribute=agility]{grid-row:3;grid-column:1}#attributes-panel .attribute-row[data-attribute=spirit]{grid-row:1;grid-column:2}#attributes-panel .attribute-row[data-attribute=dexterity]{grid-row:2;grid-column:2}#attributes-panel .attribute-row[data-attribute=intelligence]{grid-row:3;grid-column:2}#attributes-panel .attribute-row>div{flex:0 0 63px}#attributes-panel .attribute-row b{font:20px 'Microsoft JhengHei'}#attributes-panel .attribute-row strong{font-size:20px;min-width:0;flex:1;font-weight:400;display:flex;gap:7px;align-items:center}#attributes-panel .attribute-row em{font-size:16px;font-style:normal}#attributes-panel .attribute-row button:last-of-type{width:25px;height:23px;min-width:25px;padding:0;border:1px solid #b4a27a;border-radius:2px;color:#f5dda4;background:linear-gradient(#5d573d,#292b22);font-size:21px;line-height:20px;box-shadow:inset 0 0 2px #e3c893}#attributes-panel .attribute-row button:disabled{opacity:.4}
#game-systems[data-mode=skill]{inset:59px 22px auto auto;width:638px;height:570px;z-index:30;overflow:visible;box-shadow:0 3px 5px #0008}#game-systems[data-mode=skill][open]{display:flex;flex-direction:column}#game-systems[data-mode=skill]>header h2{font:20px/26px 'Microsoft JhengHei';letter-spacing:1px;color:#291f10;margin:0}#game-systems[data-mode=skill]>header small,#game-systems[data-mode=skill] .systems-wallet,#game-systems[data-mode=skill] .systems-layout>nav{display:none}#game-systems[data-mode=skill] .systems-layout{display:block;flex:1;min-height:0;height:100%;overflow:hidden}#game-systems[data-mode=skill] .systems-content{padding:0 7px;display:flex;flex-direction:column;max-height:none;height:100%;overflow:hidden}#game-systems[data-mode=skill]>footer{position:absolute;bottom:-29px;right:0;left:0;padding:1px 5px;border:0;background:#1119;min-height:0;color:#d9cea8;font-size:12px;pointer-events:none}#game-systems[data-mode=skill] .systems-save{display:none}
.classic-skill-toolbar{height:39px;min-height:39px;display:flex;align-items:center;justify-content:space-between;position:relative}.classic-skill-toolbar .classic-form-tabs{height:39px}.skill-filter-tabs{display:flex;align-items:center;gap:6px}.skill-filter-tabs>button{width:30px;height:28px}.skill-filter-tabs img{width:28px;height:28px;image-rendering:pixelated}.skill-filter-tabs [aria-pressed=true]{outline:1px solid #d5ad59}.skill-filter-tabs .skill-search-toggle{font-size:21px;color:#c8b58a;width:23px!important}.classic-skill-search{position:absolute;left:95px;top:5px;width:320px;height:27px;border:1px solid #a8915f;background:#181c17;color:#eee;padding:0 6px;font:16px 'Microsoft JhengHei';z-index:2}.classic-skill-search[hidden]{display:none}
.classic-skill-columns{display:grid;grid-template-columns:1.04fr 1fr;gap:8px;flex:1;min-height:0}.classic-skill-columns section{min-width:0;min-height:0;display:flex;flex-direction:column}.classic-skill-columns h3{height:30px;min-height:30px;margin:0;color:#ecebdc;font-size:20px;font-weight:400;text-align:center;border:0;display:flex;align-items:center;justify-content:space-around}.classic-skill-columns h3 small{font-size:18px}.learned-list,.unlearned-list{border:1px solid #887b57;background:#080b0766;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#c1aa67 #1b2017}.learned-list{height:279px;flex:none}.unlearned-list{flex:1;min-height:0}.classic-skill-row{display:flex;align-items:center;gap:5px;min-height:54px;height:54px;color:#ececdd;padding:1px 0;margin:0;font:18px/1.2 'Microsoft JhengHei';border:0;border-radius:0;background:transparent;box-sizing:border-box;width:100%;text-shadow:1px 1px #000}.classic-skill-row .skill-icon{width:50px;height:50px;object-fit:contain;image-rendering:pixelated;flex:none;border:0;filter:none}.classic-skill-row .skill-cast{flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;text-align:left;font:18px/1.25 'Microsoft JhengHei';cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classic-skill-row .skill-cast:hover,.classic-skill-row.selected,.classic-skill-row:hover{color:#ffb52d}.classic-skill-row .rank{font:16px Georgia,serif;white-space:nowrap;min-width:39px;text-align:center;color:#bad5da}.classic-skill-row .rank-arrow{width:17px;height:14px;min-width:17px;padding:0;border:0;background:transparent url('../../assets/interface/rank-left.png') center/100% 100%;border-radius:0;font-size:0;cursor:pointer}.classic-skill-row .rank-arrow[data-step="1"]{background-image:url('../../assets/interface/rank-right.png')}.classic-skill-row .rank-arrow:disabled{opacity:.45}.classic-skill-row.unlearned{text-align:left;cursor:pointer}.classic-skill-row.unlearned>span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.classic-skill-row.unlearned>small{font:16px Georgia,serif;min-width:48px;text-align:right;color:#ded8c4;padding-right:8px}.classic-skill-row[hidden]{display:none}.classic-ap{font-size:18px;height:30px;line-height:30px;white-space:nowrap}.classic-ap b{font-weight:400}.classic-skill-description{border:1px solid #ad9464;flex:1;min-height:0;padding:5px 6px;font:17px/1.4 'Microsoft JhengHei';overflow:auto;overflow-wrap:anywhere;white-space:pre-line;background:#0609046b}.classic-skill-description>b{color:#f4e4b6;font-weight:400}.classic-skill-description>span{font-size:15px;color:#c2bdaa}.classic-skill-description p{margin:3px 0}.classic-skill-description small{font-size:14px;color:#c5e6a6}/* 技能消耗道具（2026-10-29）：自成一行 */.classic-skill-description small.skill-item-cost{display:block}.skill-learn-actions{height:38px;min-height:38px;display:flex;justify-content:flex-end;align-items:end}.learn-skill{background:linear-gradient(#534a31,#211f18);border:2px ridge #bdab7c;border-radius:2px;color:#f3dfb5;min-width:98px;height:31px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;font:18px 'Microsoft JhengHei';cursor:pointer}.learn-skill img{width:40px;height:14px;object-fit:cover;object-position:left}.learn-skill:disabled{opacity:.45;cursor:default}.empty-skills{font-size:17px;color:#b4b5a7;margin:14px;text-align:center}.classic-skill-footer{height:24px;min-height:24px;display:flex;align-items:end;justify-content:space-between}.classic-skill-footer button{height:20px;width:48px;padding:0;border:0;background:transparent url('../../assets/interface/back.png') center/100% 100%;cursor:pointer}.classic-skill-footer .skill-list-next{background-image:url('../../assets/interface/next.png')}
#classic-chat{position:fixed;left:24px;bottom:42px;zoom:var(--ui-scale);width:390px;height:217px;z-index:24;color:#e7eadf;font:18px/1.45 'Microsoft JhengHei';background:#121810cf;border:2px solid #8b8058;border-radius:0;box-sizing:border-box;pointer-events:none;text-shadow:1px 1px #000}#classic-chat[hidden]{display:none}#classic-chat .chat-tabs{display:flex;height:30px;margin-top:-1px;gap:2px;pointer-events:auto;background:#1f2619;border-bottom:1px solid #a68c5c}#classic-chat .chat-tabs button{height:29px;min-width:58px;font:18px 'Microsoft JhengHei';padding:0 8px;background:#242719;border:1px solid #8e774f;color:#c9b888;border-radius:0}#classic-chat .chat-tabs button[aria-pressed=true]{color:#241a0c;background:linear-gradient(#fff0c3,#d2ac66)}#chat-log{height:147px;overflow:auto;pointer-events:auto;padding:3px 6px;scrollbar-width:thin;scrollbar-color:#cdb36c #131d11}#chat-log p{margin:2px 0;line-height:1.3;overflow-wrap:anywhere}#chat-log p[data-channel=whisper]{color:#e7b6ff}#chat-log p[data-channel=party]{color:#a2e5ff}#chat-log p[data-channel=guild]{color:#b8f8a7}#chat-log button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}#classic-chat form{height:34px;display:flex;align-items:center;gap:3px;padding:1px 4px;border-top:1px solid #9a8857;pointer-events:auto}#classic-chat input,#classic-chat select{min-width:0;border:0;border-radius:0;background:transparent;color:#eee;padding:1px 2px;font:17px 'Microsoft JhengHei';height:28px}#chat-input{flex:1}#chat-target{width:76px}#chat-target[hidden]{display:none}#classic-chat select{width:62px}#classic-chat form .chat-send{width:28px;height:28px;border:0;padding:0;background:transparent url('../../assets/interface/chat-face.png') center/24px 24px no-repeat;cursor:pointer}#chat-error{position:absolute;bottom:32px;left:5px;color:#ffcf8e;font-size:14px}
.bottom-center{height:94px;position:fixed;left:calc(50% - 310px);bottom:42px;zoom:var(--ui-scale);width:696px;transform:none;z-index:25;pointer-events:none}.bottom-center .skillbar{position:relative;display:grid;grid-template-columns:repeat(10,50px) 138px;gap:5px;width:696px;height:94px;padding:11px 8px 28px;border:3px ridge #887e5e;border-radius:3px;background:#151b10c9;box-shadow:0 2px 4px #0008;box-sizing:border-box;overflow:visible;pointer-events:auto}.skillbar .skill{position:relative;width:50px;height:52px;min-width:0;padding:0;border:2px solid #a89869;border-radius:2px;box-shadow:inset 0 0 0 1px #4a4934;background:#161b1155;opacity:1;overflow:visible;display:block}.skillbar .skill.unavailable{filter:none;opacity:1}.skillbar .skill kbd{position:absolute;top:56px;left:0;right:0;width:auto;height:20px;padding:0;text-align:center;background:none;border:0;border-radius:0;color:#ede8d4;font:18px Georgia,serif;line-height:20px;box-shadow:none}.skillbar .skill>span{display:none}.skillbar .skill>img{position:absolute;inset:0;width:46px;height:48px;max-width:none;max-height:none;transform:none;object-fit:contain;border:0;image-rendering:pixelated}.skillbar .skill>img[hidden]{display:none}.skillbar .skill>svg{width:35px;height:35px;margin:6px}.skillbar .skill>strong{position:absolute;right:2px;bottom:1px;color:#fff;font:12px sans-serif;text-shadow:1px 1px #000}.skillbar .cooldown{border-radius:0;bottom:0;top:auto}.skillbar .cd-text{font-size:16px}.hotbar-pages{height:54px;display:flex;align-items:center;justify-content:space-around;gap:4px;font:20px Georgia,serif;color:#efe2b8;padding:0;border:0}.hotbar-pages>button{background:transparent url('../../assets/interface/rank-left.png') center/24px 21px no-repeat;width:28px;height:25px;padding:0;border:0;font-size:0;cursor:pointer}.hotbar-pages>button:nth-of-type(2){background-image:url('../../assets/interface/rank-right.png')}.hotbar-pages .hotbar-dots{display:none}.hotbar-pages>span{white-space:nowrap}.bottom-center #hint,.expbar,.bottom-left,.bottom-right,.location{display:none!important}
#combat-dock{position:fixed;left:24px;top:220px;zoom:var(--ui-scale);display:flex;gap:5px;z-index:25;opacity:.9}body:has(#attributes-panel[open]) #combat-dock{top:612px}#combat-dock button{border:1px solid #95825a;border-radius:0;background:#1b241cbb;color:#ddd3b0;padding:2px 8px;font-size:14px}#combat-dock #gear-button{position:static;width:26px;height:24px;padding:3px;transform:none}#combat-dock #gear-button svg{width:18px;height:18px}#gear-button[hidden]{display:none!important}.right-hud{z-index:20}.right-hud .utility{display:none}body:has(#game-systems[data-mode=skill][open]) .right-hud{visibility:hidden}#active-statuses{top:calc(650px * var(--ui-scale));right:25px}.hide-player-meters #player-meters{display:none!important}body:not(.show-loot) .loot-label:not(.hover-name),body:not(.show-loot) #loot-edge-labels{display:none!important}.show-loot .loot-label,.loot-label.hover-name{opacity:1;background:none;font-weight:600}
#classic-guide{position:fixed;inset:185px auto auto 50%;transform:translateX(-50%);width:min(540px,90vw);max-height:calc(100dvh - 300px);padding:0;background:#171713f5;color:#eee;border:1px solid #a99269;box-shadow:0 8px 28px #000a;z-index:40;font-size:12px}#classic-guide[open]{display:flex;flex-direction:column}#classic-guide>nav{display:flex;gap:5px;padding:6px}#classic-guide button{cursor:pointer}#classic-guide>nav button,#classic-guide main button{padding:4px 8px;font-size:11px;border:1px solid #817553;background:#302d24;color:#f2daa1;border-radius:2px}#classic-guide main button:disabled{opacity:.4}#classic-guide main{padding:6px 12px;overflow:auto;line-height:1.8}#classic-guide main p{margin:4px 0}#classic-guide .classic-notice{font-size:11px;margin:4px 12px;color:#bdecb0}#classic-guide .job-tree{border-top:1px solid #716249;padding:8px 0}#classic-guide .job-tree b{color:#ffd58b}.job-promotions{display:flex;gap:8px;padding:10px 0}.classic-controls{display:grid;grid-template-columns:160px 1fr;gap:8px;margin:4px 0}.classic-controls dt{color:#ffd997}.classic-controls dd{margin:0}.element-table{width:100%;text-align:center;border-collapse:collapse;font-size:11px}.element-table th,.element-table td{padding:4px;border:1px solid #716952}.element-table .effective{color:#93ea8d}.element-table .resisted{color:#e79584}


.classic-hud #portrait-attributes,#attributes-panel .classic-form-tabs button{background-position:center;background-repeat:no-repeat;background-size:100% 100%;padding:0;border:0;border-radius:0;box-shadow:none}
.bottom-center .context-hint{display:none!important}.classic-hud{backdrop-filter:none}.classic-hud .meter>span{margin:0}#game-systems[data-mode=skill]>footer:has(.systems-message:empty){display:none}

.bottom-center #buff-status{position:absolute;bottom:100%;width:100%;height:auto}.bottom-center #casting{position:absolute;bottom:100%;left:50%;transform:translateX(-50%)}
/* 技能視窗照原版（2026-10-27，src/combat-skill-menu.js）：上方右邊 3「人形技能」、4「機甲技能」用原版技能視窗右上的兩個鈕（assets/interface/skill/，一般／滑過／按下三格，按下＝目前看的形態）；
   被動技能與還沒達成學習條件的未學技能圖示灰色；「使用」鈕在已學會技能欄最下面，和「學習」對稱；技能說明點了才顯示；同步提示與「處理中…」不在技能視窗下方出現。舊的篩選、搜尋與換頁鈕已拿掉。 */
#game-systems .skill-view-tabs{display:flex;align-items:center;gap:6px}
#game-systems .skill-view-tabs>button{width:36px;height:30px;padding:0;border:0;border-radius:0;box-shadow:none;flex:none;background:transparent url('../../assets/interface/skill/view-human.png') 0 0/36px 90px no-repeat;image-rendering:pixelated;cursor:pointer}
#game-systems .skill-view-tabs>.skill-view-mech{background-image:url('../../assets/interface/skill/view-mech.png')}
#game-systems .skill-view-tabs>button:hover{background-position:0 -30px}#game-systems .skill-view-tabs>button[aria-pressed=true]{background-position:0 -60px}
.classic-skill-row .skill-icon.grey{filter:grayscale(1) brightness(.8)}
.classic-skill-row .skill-name{flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;text-align:left;font:18px/1.25 'Microsoft JhengHei';cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.skill-use-actions{height:38px;min-height:38px;display:flex;justify-content:flex-end;align-items:end}
#game-systems[data-mode=skill][aria-busy=true]>footer{display:none}
