/*
 * Original forms for the windows of the feature modules (src/mod_*.js), laid out like the six main forms in
 * forms.css: a module calls its window a form (.window.form), the picture and every control sit at the
 * coordinates of the D:\WLO client's constructor (addresses in the comments; pictures in assets/skin_wlo,
 * else assets/skin). Buttons are .sbtn three-state sheets (normal, hovered, pressed).
 */

/* Text shown on the pale forms and in the dark lists of the original. */
:root { --fm-ink: #1d2a4a; --fm-list-ink: #f2f6ff; --fm-pick: rgba(255, 233, 74, 0.35); }

/* ══ Letters (mod_mail) ══════════════════════════════════════════════════════════════════════════════ */

/* Mailbox: Form_MailBox_1 602×391 (0x6561c8). The list is the dark green area, ten rows of 20 px. */
#win-letters { --fw: 602px; --fh: 391px; --fbg: url(../assets/skin_wlo/white/Form_MailBox_1.png); --cx: 554px; --cy: 25px; }
#win-letters .ml-tab { top: 48px; --w: 64px; --h: 21px; }
#win-letters .ml-tab-in  { left: 15px; --img: url(../assets/skin_wlo/default/Btn_MailBoxTab_1.png); }
#win-letters .ml-tab-out { left: 79px; --img: url(../assets/skin_wlo/default/Btn_MailBoxTab_2.png); }
#win-letters .ml-mask { left: 282px; top: 70px; width: 76px; height: 20px; background: url(../assets/skin_wlo/default/Icon_MailBoxTitleMash_1.png) no-repeat; pointer-events: none !important; }
#win-letters .ml-list { left: 20px; top: 93px; width: 562px; height: 203px; }
#win-letters .ml-row { display: grid; grid-template-columns: 67px 171px 124px 1fr; height: 20px; align-items: center; cursor: pointer; color: var(--fm-list-ink); font-size: 12px; }
#win-letters .ml-row > span { padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-letters .ml-row:hover { background: rgba(255, 255, 255, 0.12); }
#win-letters .ml-row[aria-selected=true] { background: var(--fm-pick); }
#win-letters .ml-row.unread .text, #win-letters .ml-row.unread .who { color: #ffe94a; font-weight: 700; }
#win-letters .ml-row .kind { height: 15px; background: no-repeat center / 20px 15px; }
#win-letters .ml-row .kind.new { background-image: url(../assets/skin/default/icon_mail_1.png); }
#win-letters .ml-row .kind.old { background-image: url(../assets/skin/default/icon_mailGary_1.png); }
#win-letters .ml-row .when { font-family: "Courier New", monospace; font-weight: 700; text-align: center; }
#win-letters .ml-empty { left: 20px; top: 180px; width: 562px; text-align: center; color: #9fc79f; pointer-events: none !important; }
#win-letters .ml-page { left: 241px; top: 323px; width: 124px; text-align: center; }
#win-letters .ml-prev   { left: 185px; top: 320px; --img: url(../assets/skin_wlo/default/Btn_PrePage_1.png);   --w: 56px; --h: 20px; }
#win-letters .ml-next   { left: 365px; top: 320px; --img: url(../assets/skin_wlo/default/Btn_NextPage_1.png);  --w: 56px; --h: 20px; }
#win-letters .ml-write  { left: 185px; top: 350px; --img: url(../assets/skin_wlo/default/Btn_sendMail_2.png);  --w: 56px; --h: 20px; }
#win-letters .ml-delete { left: 275px; top: 350px; --img: url(../assets/skin_wlo/default/btn_deleteMail_1.png); --w: 56px; --h: 20px; }
#win-letters .ml-close  { left: 365px; top: 350px; }

/* Write: Form_MailSend_1 249×355 (0x8f83e0); the letter is a 200×190 memo at (30, 90). */
#win-letter-write { --fw: 249px; --fh: 355px; --fbg: url(../assets/skin_wlo/white/Form_MailSend_1.png); --cx: 200px; --cy: 23px; }
#win-letter-write .mw-to { left: 50px; top: 64px; width: 172px; height: 19px; padding: 0 4px; font: inherit; font-size: 13px; color: var(--fm-ink); background: rgba(255, 255, 255, 0.85); border: 1px solid #b5cbe8; }
#win-letter-write .mw-text { left: 30px; top: 90px; width: 190px; height: 180px; padding: 2px; resize: none; font: inherit; font-size: 13px; line-height: 1.5; color: var(--fm-ink); background: transparent; border: 0; }
#win-letter-write .mw-to:focus-visible, #win-letter-write .mw-text:focus-visible { outline: 1px solid #e2b100; }
#win-letter-write .mw-past  { left: 42px;  top: 282px; --img: url(../assets/skin_wlo/default/btn_PastMail_1.png); --w: 56px; --h: 20px; }
#win-letter-write .mw-clear { left: 104px; top: 282px; --img: url(../assets/skin_wlo/default/btn_Clear_1.png);    --w: 56px; --h: 20px; }
#win-letter-write .mw-send  { left: 167px; top: 282px; --img: url(../assets/skin_wlo/default/Btn_sendMail_2.png); --w: 56px; --h: 20px; }
#win-letter-write .mw-close { left: 104px; top: 315px; }

/* Read: form_MailReceive_1 253×371 (0x8f97e4); the letter is a 200×190 memo at (28, 88). */
#win-letter-read { --fw: 253px; --fh: 371px; --fbg: url(../assets/skin_wlo/white/form_MailReceive_1.png); --cx: 203px; --cy: 23px; }
#win-letter-read .mr-from { left: 76px; top: 66px; width: 150px; font-size: 13px; font-weight: 700; color: var(--fm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-letter-read .mr-when { left: 28px; top: 270px; width: 200px; text-align: right; font: 700 11px/1 "Courier New", monospace; color: #6b82b5; }
#win-letter-read .mr-text { left: 28px; top: 88px; width: 196px; height: 176px; padding: 2px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: var(--fm-ink); scrollbar-width: thin; }
#win-letter-read .mr-prev   { left: 36px;  top: 285px; --img: url(../assets/skin_wlo/default/btn_PrevMail_1.png);   --w: 56px; --h: 20px; }
#win-letter-read .mr-next   { left: 36px;  top: 310px; --img: url(../assets/skin_wlo/default/btn_NextMail_1.png);   --w: 56px; --h: 20px; }
#win-letter-read .mr-reply  { left: 101px; top: 285px; --img: url(../assets/skin_wlo/default/btn_reply_1.png);      --w: 56px; --h: 20px; }
#win-letter-read .mr-delete { left: 164px; top: 285px; --img: url(../assets/skin_wlo/default/btn_deleteMail_1.png); --w: 56px; --h: 20px; }
#win-letter-read .mr-close  { left: 101px; top: 331px; }
/* the first and the last letter: the grey single-state pictures of the original */
#win-letter-read .mr-prev:disabled { --img: url(../assets/skin_wlo/default/btn_PrevMail_Gray_1.png); opacity: 1; background-position: 0 0; }
#win-letter-read .mr-next:disabled { --img: url(../assets/skin_wlo/default/btn_NextMail_Gray_1.png); opacity: 1; background-position: 0 0; }

/* Blacklist: form_BlackNameList 264×415 (0x71ea0c): name box (99, 59), 確定 (197, 59), the list, 刪除, 關閉. */
#win-blacklist { --fw: 264px; --fh: 415px; --fbg: url(../assets/skin_wlo/white/form_BlackNameList.png); --cx: 215px; --cy: 24px; }
#win-blacklist .bl-name { left: 99px; top: 60px; width: 85px; height: 18px; padding: 0 3px; font: inherit; font-size: 12px; color: var(--fm-ink); background: transparent; border: 0; }
#win-blacklist .bl-name:focus-visible { outline: 1px solid #e2b100; }
#win-blacklist .bl-ok     { left: 197px; top: 59px;  --img: url(../assets/skin/default/Btn_OK_2.png);     --w: 39px; --h: 20px; }
#win-blacklist .bl-list   { left: 26px;  top: 90px;  width: 188px; height: 252px; overflow-y: auto; scrollbar-width: none; }
#win-blacklist .bl-row    { height: 20px; padding: 0 6px; line-height: 20px; font-size: 13px; color: var(--fm-list-ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-blacklist .bl-row:hover { background: rgba(255, 255, 255, 0.15); }
#win-blacklist .bl-row[aria-selected=true] { background: var(--fm-pick); }
#win-blacklist .bl-delete { left: 111px; top: 348px; --img: url(../assets/skin/default/Btn_Delete_1.png); --w: 43px; --h: 20px; }
#win-blacklist .bl-close  { left: 105px; top: 380px; }

/* ══ Notice boards (mod_board) ═══════════════════════════════════════════════════════════════════════ */

/* List: Notice 654×365 (0x616ee2), one window per board. 主旨 / 留言者 / 留言時間 over a dark green list. */
#win-board, #win-guild-board { --fw: 654px; --fh: 365px; --fbg: url(../assets/skin_wlo/white/Notice.png); --cx: 603px; --cy: 24px; }
.bd-list { left: 16px; top: 75px; width: 619px; height: 203px; overflow: hidden; }
.bd-row { display: grid; grid-template-columns: 251px 122px 1fr; height: 20px; align-items: center; cursor: pointer; color: var(--fm-list-ink); font-size: 12px; }
.bd-row > span { padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-row .when { text-align: center; font: 700 12px/20px "Courier New", monospace; }
.bd-row:hover { background: rgba(255, 255, 255, 0.12); }
.bd-row[aria-selected=true] { background: var(--fm-pick); }
.bd-empty { left: 16px; top: 165px; width: 619px; text-align: center; color: #9fc79f; pointer-events: none !important; }
.bd-page { left: 256px; top: 293px; width: 124px; text-align: center; }
.bd-prev   { left: 200px; top: 290px; --img: url(../assets/skin_wlo/default/Btn_PrePage_1.png);  --w: 56px; --h: 20px; }
.bd-next   { left: 380px; top: 290px; --img: url(../assets/skin_wlo/default/Btn_NextPage_1.png); --w: 56px; --h: 20px; }
.bd-add    { left: 200px; top: 320px; --img: url(../assets/skin_wlo/default/Btn_AddNew_1.png);   --w: 56px; --h: 20px; }
.bd-update { left: 290px; top: 320px; --img: url(../assets/skin_wlo/default/Btn_Updata_1.png);   --w: 56px; --h: 20px; }
.bd-close  { left: 380px; top: 320px; }

/* Write: notice1 417×251 (0x61626c): 主旨 box, 內文 box, 確定 / 關閉. */
#win-board-write { --fw: 417px; --fh: 251px; --fbg: url(../assets/skin_wlo/white/notice1.png); --cx: 368px; --cy: 24px; }
#win-board-write .bw-title { left: 78px; top: 63px; width: 310px; height: 14px; padding: 0 3px; font: inherit; font-size: 12px; color: #ffffff; background: transparent; border: 0; }
#win-board-write .bw-text { left: 22px; top: 105px; width: 370px; height: 96px; padding: 3px; resize: none; font: inherit; font-size: 13px; line-height: 1.5; color: #ffffff; background: transparent; border: 0; }
#win-board-write .bw-title:focus-visible, #win-board-write .bw-text:focus-visible { outline: 1px solid #e2b100; }
#win-board-write .bw-ok    { left: 130px; top: 220px; --img: url(../assets/skin_wlo/default/Btn_confirm_1.png); --w: 56px; --h: 20px; }
#win-board-write .bw-close { left: 220px; top: 220px; }

/* Read: notice2 417×275 (0x6168bc): the title after 主旨, the text, 刪除 / 寄信 (Btn_Del_B, btn_Send_B when not allowed) / 關閉. */
#win-board-read { --fw: 417px; --fh: 275px; --fbg: url(../assets/skin_wlo/white/notice2.png); --cx: 368px; --cy: 24px; }
#win-board-read .br-title { left: 70px; top: 65px; width: 320px; font-size: 13px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-board-read .br-by { left: 26px; top: 88px; width: 366px; font: 700 11px/1 "Courier New", monospace; color: #9fc79f; }
#win-board-read .br-text { left: 26px; top: 106px; width: 366px; height: 100px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: #ffffff; scrollbar-width: thin; }
#win-board-read .br-delete { left: 90px;  top: 228px; --img: url(../assets/skin_wlo/default/Btn_deleteMail_1.png); --w: 56px; --h: 20px; }
#win-board-read .br-reply  { left: 180px; top: 228px; --img: url(../assets/skin_wlo/default/Btn_sendMail_2.png);  --w: 56px; --h: 20px; }
#win-board-read .br-close  { left: 270px; top: 228px; }
#win-board-read .br-delete:disabled { --img: url(../assets/skin_wlo/default/Btn_Del_B.png); opacity: 1; background-position: 0 0; }
#win-board-read .br-reply:disabled  { --img: url(../assets/skin_wlo/default/btn_Send_B.png); opacity: 1; background-position: 0 0; }

/* ══ Emotion page of the social form (mod_emote) ══════════════════════════════════════════════════════ */

/* Form_Emotion_1 356×493 (0x6d3252): tabs (20/85/151/217, 43), Ctrl+1–5 phrases, emotes 4×6, actions 4×6, Alt+1–8, 確定 / 取消. */
#win-emotes { --fw: 356px; --fh: 493px; --fbg: url(../assets/skin/white/Form_Emotion_1.png); --cx: 304px; --cy: 24px; }
#win-emotes .em-tabs { left: 20px; top: 43px; width: 270px; height: 21px; pointer-events: none !important; }
#win-emotes .em-tab { position: absolute; top: 0; pointer-events: auto; --w: 66px; --h: 21px; }
#win-emotes .em-tab-friends { left: 0;     --img: url(../assets/skin/default/Btn_FriendIcon_1.png); }
#win-emotes .em-tab-emotes  { left: 65px;  --img: url(../assets/skin/default/Btn_EmuationalIcon_1.png); }
#win-emotes .em-tab-setup   { left: 131px; --img: url(../assets/skin/default/Btn_setup_2.png); }
#win-emotes .em-tab-marry   { left: 197px; --img: url(../assets/skin/default/Btn_Marry.png); }
#win-emotes .em-tab:disabled { opacity: 0.55; }
#win-emotes .em-phrases { left: 35px; top: 75px; width: 282px; }
#win-emotes .em-phrase-row { display: flex; height: 20px; }
#win-emotes .em-say { width: 43px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 0; }
#win-emotes .em-say:hover { outline: 1px solid #e2b100; }
#win-emotes .em-phrase { width: 236px; height: 18px; padding: 0 4px; font: inherit; font-size: 12px; color: var(--fm-ink); background: transparent; border: 0; }
#win-emotes .em-phrase:focus-visible { outline: 1px solid #e2b100; }
#win-emotes .em-grid { top: 178px; width: 138px; height: 206px; display: grid; grid-template-columns: repeat(4, 34.5px); grid-auto-rows: 34.3px; }
#win-emotes .em-emotes  { left: 35px; }
#win-emotes .em-actions { left: 178px; }
#win-emotes .em-cell { width: 34px; height: 34px; padding: 0; border: 0; background: no-repeat 1px 1px; background-size: 32px auto; image-rendering: pixelated; font-size: 0; }
#win-emotes .em-emote { cursor: pointer; background-size: 32px auto; }
#win-emotes .em-emote:hover { outline: 1px solid #e2b100; outline-offset: -1px; }
#win-emotes .em-action { background-size: 32px 96px; background-position: 1px 1px; }
#win-emotes .em-action:disabled { opacity: 0.4; cursor: default; }
#win-emotes .em-slots { left: 35px; top: 403px; width: 282px; display: grid; grid-template-columns: repeat(8, 35.2px); }
#win-emotes .em-slot { width: 34px; height: 34px; padding: 0; border: 0; cursor: pointer; background: no-repeat 1px 1px / 32px auto; image-rendering: pixelated; font-size: 0; }
#win-emotes .em-slot:hover { outline: 1px solid #e2b100; outline-offset: -1px; }
#win-emotes .em-ok     { left: 122px; top: 458px; --img: url(../assets/skin/default/Btn_OK_2.png);     --w: 39px; --h: 20px; }
#win-emotes .em-cancel { left: 200px; top: 458px; --img: url(../assets/skin/default/Btn_Cancel_3.png); --w: 39px; --h: 20px; }

/* ══ Organisation (mod_guild): the 組織 page of the group form ═══════════════════════════════════════ */

/* 371×539 (0x6bae0c). The picture follows the sub page: 資訊 Form_ArmyGrounpInfo_1, 成員 Form_ArmyGrounp_1. */
#win-guild { --fw: 371px; --fh: 539px; --fbg: url(../assets/skin_wlo/white/Form_ArmyGrounpInfo_1.png); --cx: 321px; --cy: 24px; }
#win-guild[data-page=members] { --fbg: url(../assets/skin_wlo/white/Form_ArmyGrounp_1.png); }
#win-guild .gd-tab { top: 41px; --w: 66px; --h: 21px; }
#win-guild .gd-tab-team     { left: 20px;  --img: url(../assets/skin_wlo/default/Btn_Team_1.png); }
#win-guild .gd-tab-guild    { left: 85px;  --img: url(../assets/skin_wlo/default/Btn_ArmyGrounp_1.png); }
#win-guild .gd-tab-instance { left: 150px; --img: url(../assets/skin_wlo/default/Btn_DupMis.png); }
#win-guild .gd-sub { top: 65px; --w: 44px; --h: 21px; }
#win-guild .gd-sub-info    { left: 26px;  --img: url(../assets/skin_wlo/default/Btn_ArmyGrounpinfo_1.png); }
#win-guild .gd-sub-members { left: 70px;  --img: url(../assets/skin_wlo/default/Btn_ArmyGrounpHum_1.png); }
#win-guild .gd-sub-emblem  { left: 114px; --img: url(../assets/skin_wlo/default/Btn_Emblem_1.png); }
#win-guild .gd-sub-notice  { left: 158px; --img: url(../assets/skin_wlo/default/Btn_OrgNotice.png); }
#win-guild .gd-sub:disabled { opacity: 0.5; }
/* 資訊 */
#win-guild .gd-count { left: 113px; top: 108px; }
#win-guild .gd-orgleader { left: 150px; top: 103px; width: 59px; height: 20px; background: url(../assets/skin_wlo/default/OrgLeader.png) no-repeat; pointer-events: none !important; }
#win-guild .gd-leader { left: 211px; top: 106px; width: 120px; font-size: 13px; font-weight: 700; color: var(--fm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-guild .gd-base { left: 113px; top: 128px; font-size: 12px; color: var(--fm-ink); }
#win-guild .gd-transmit { left: 150px; top: 123px; --img: url(../assets/skin_wlo/default/Btn_Transmi.png); --w: 56px; --h: 20px; }
#win-guild .gd-rules { left: 40px; top: 150px; width: 266px; height: 300px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; color: var(--fm-list-ink); scrollbar-width: thin; }
#win-guild .gd-dismiss  { left: 115px; top: 463px; --img: url(../assets/skin_wlo/default/Btn_dismiss_1.png);   --w: 61px; --h: 20px; }
#win-guild .gd-editrule { left: 195px; top: 463px; --img: url(../assets/skin_wlo/default/Btn_edit_Rule_1.png); --w: 61px; --h: 20px; }
#win-guild .gd-none { left: 44px; top: 170px; width: 258px; font-size: 13px; line-height: 1.7; color: var(--fm-list-ink); pointer-events: none !important; }
#win-guild .gd-create { left: 157px; top: 463px; --img: url(../assets/skin_wlo/default/Btn_Create.png); --w: 56px; --h: 20px; }
/* 成員: cards like the friend form, five a page */
#win-guild .gd-cards { left: 30px; top: 90px; width: 305px; height: 322px; }
#win-guild .gd-card { position: absolute; left: 0; width: 305px; height: 60px; }
#win-guild .gd-card > * { position: absolute; }
#win-guild .gd-face { left: 0; top: 0; width: 60px; height: 60px; image-rendering: pixelated; }
#win-guild .gd-name { left: 66px; top: 3px; width: 112px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; font-size: 13px; color: var(--fm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-guild .gd-name:hover { color: #3f5ea6; text-decoration: underline; }
#win-guild .gd-lv { left: 180px; top: 4px; font: 900 12px/1 "Arial Black", Arial, sans-serif; color: var(--fm-ink); }
#win-guild .gd-nick { left: 108px; top: 29px; width: 140px; font-size: 12px; color: var(--fm-ink); white-space: nowrap; overflow: hidden; }
#win-guild .gd-rank { left: 108px; top: 46px; width: 160px; font-size: 11px; color: #6b82b5; white-space: nowrap; }
#win-guild .gd-state { left: 232px; top: 6px; width: 32px; height: 17px; background: no-repeat 0 0; }
#win-guild .gd-state.on  { background-image: url(../assets/skin_wlo/default/Icon_online_1.png); }
#win-guild .gd-state.off { background-image: url(../assets/skin_wlo/default/icon_offline_1.png); }
#win-guild .gd-pick { left: 281px; top: 39px; width: 16px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; }
#win-guild .gd-pick[aria-checked=true] { background: url(../assets/skin_wlo/white/icon_Check.png) center / 18px 18px no-repeat; }
#win-guild .gd-card-prev { left: 136px; top: 414px; --img: url(../assets/skin_wlo/default/Btn_ArrowL_8.png); --w: 21px; --h: 21px; }
#win-guild .gd-card-next { left: 209px; top: 414px; --img: url(../assets/skin_wlo/default/Btn_ArrowR_8.png); --w: 21px; --h: 21px; }
#win-guild .gd-card-page { left: 158px; top: 418px; width: 50px; text-align: center; }
#win-guild .gd-mail     { left: 55px;  top: 438px; --img: url(../assets/skin_wlo/default/Btn_groupMail_1.png);    --w: 61px; --h: 20px; }
#win-guild .gd-invite   { left: 120px; top: 438px; --img: url(../assets/skin_wlo/default/Btn_InviteJoin_1.png);   --w: 61px; --h: 20px; }
#win-guild .gd-leave    { left: 185px; top: 438px; --img: url(../assets/skin_wlo/default/btn_exitgroup_1.png);    --w: 61px; --h: 20px; }
#win-guild .gd-fire     { left: 250px; top: 438px; --img: url(../assets/skin_wlo/default/Btn_fireMember_1.png);   --w: 61px; --h: 20px; }
#win-guild .gd-mine     { left: 55px;  top: 462px; --img: url(../assets/skin_wlo/default/Btn_myauthority_1.png);  --w: 61px; --h: 20px; }
#win-guild .gd-setauth  { left: 120px; top: 462px; --img: url(../assets/skin_wlo/default/btn_setauthority_1.png); --w: 61px; --h: 20px; }
#win-guild .gd-abdicate { left: 185px; top: 462px; --img: url(../assets/skin_wlo/default/Btn_Abdicate.png);       --w: 61px; --h: 20px; }
/* a button the player may not use: the grey single-state picture of the original */
#win-guild .sbtn:disabled { opacity: 1; background-position: 0 0; }
#win-guild .gd-dismiss:disabled  { --img: url(../assets/skin_wlo/default/Btn_dismiss_gary_1.png); }
#win-guild .gd-editrule:disabled { --img: url(../assets/skin_wlo/default/Btn_edit_Rule_gary_1.png); }
#win-guild .gd-mail:disabled     { --img: url(../assets/skin_wlo/default/Btn_groupMai_gary_1.png); }
#win-guild .gd-invite:disabled   { --img: url(../assets/skin_wlo/default/Btn_InviteJoin_gary_1.png); }
#win-guild .gd-leave:disabled    { --img: url(../assets/skin_wlo/default/btn_exitgroup_gary_1.png); }
#win-guild .gd-fire:disabled     { --img: url(../assets/skin_wlo/default/Btn_fireMember_Gary_1.png); }
#win-guild .gd-mine:disabled     { --img: url(../assets/skin_wlo/default/Btn_myauthority_gary_1.png); }
#win-guild .gd-setauth:disabled  { --img: url(../assets/skin_wlo/default/btn_setauthority_gary_1.png); }
#win-guild .gd-abdicate:disabled { --img: url(../assets/skin_wlo/default/Btn_Abdicate_Gray.png); }
#win-guild .gd-transmit:disabled, #win-guild .gd-sub:disabled, #win-guild .gd-card-prev:disabled, #win-guild .gd-card-next:disabled { opacity: 0.5; }
#win-guild .gd-close { left: 157px; top: 501px; }

/* Founding: Form_CreatArmyGroup_1 209×87 (0x789936); it has no corner button. */
#win-guild-found { --fw: 209px; --fh: 87px; --fbg: url(../assets/skin_wlo/white/Form_CreatArmyGroup_1.png); --cx: 0px; --cy: 0px; }
#win-guild-found .win-close { display: none; }
#win-guild-found .gf-name { left: 49px; top: 33px; width: 114px; height: 16px; padding: 0 3px; font: inherit; font-size: 12px; color: var(--fm-ink); background: transparent; border: 0; }
#win-guild-found .gf-name:focus-visible { outline: 1px solid #e2b100; }
#win-guild-found .gf-ok     { left: 46px;  top: 59px; --img: url(../assets/skin_wlo/default/btn_ok_1.png);     --w: 56px; --h: 20px; }
#win-guild-found .gf-cancel { left: 113px; top: 59px; --img: url(../assets/skin_wlo/default/Btn_Cancel_1.png); --w: 56px; --h: 20px; }

/* Rules: Form_EditRule_1 347×415 (0x789d5e). */
#win-guild-rules { --fw: 347px; --fh: 415px; --fbg: url(../assets/skin_wlo/white/Form_EditRule_1.png); --cx: 297px; --cy: 24px; }
#win-guild-rules .gr-text { left: 28px; top: 60px; width: 266px; height: 300px; padding: 3px; resize: none; font: inherit; font-size: 13px; line-height: 1.6; color: #ffffff; background: transparent; border: 0; }
#win-guild-rules .gr-text:focus-visible { outline: 1px solid #e2b100; }
#win-guild-rules .gr-ok     { left: 122px; top: 378px; --img: url(../assets/skin_wlo/default/btn_ok_2.png);     --w: 39px; --h: 20px; }
#win-guild-rules .gr-cancel { left: 185px; top: 378px; --img: url(../assets/skin_wlo/default/Btn_Cancel_3.png); --w: 39px; --h: 20px; }

/* ══ Rankings and the activity table (mod_events) ════════════════════════════════════════════════════ */

/* Rankings: Form_Top100_1 / Form_Top100_2 356×523 (0x8e5880). The arrows beside the title turn between the
   two sets of tabs (y 71); fifteen rows of 22 px from y 92: the place in a 65 px label at x 27, 「職業：」
   (Icon_Career) at x 92, then the job, the name and LV (Main_Word_Lv); page arrows at y 423, 關閉 (153, 485). */
#win-rank { --fw: 356px; --fh: 523px; --fbg: url(../assets/skin_wlo/white/Form_Top100_1.png); --cx: 307px; --cy: 24px; }
#win-rank[data-set="2"] { --fbg: url(../assets/skin_wlo/white/Form_Top100_2.png); }
#win-rank .rk-date { left: 80px; top: 54px; width: 100px; }
#win-rank .rk-set-prev, #win-rank .rk-prev { left: 125px; --img: url(../assets/skin_wlo/default/Btn_ArrowL_8.png); --w: 21px; --h: 21px; }
#win-rank .rk-set-next, #win-rank .rk-next { left: 214px; --img: url(../assets/skin_wlo/default/Btn_ArrowR_8.png); --w: 21px; --h: 21px; }
#win-rank .rk-set-prev, #win-rank .rk-set-next { top: 25px; }
#win-rank .rk-prev, #win-rank .rk-next { top: 423px; }
#win-rank .rk-tab { top: 71px; --w: 64px; --h: 21px; }
#win-rank .rk-lv     { left: 18px;  --img: url(../assets/skin_wlo/default/Btn_TopLV_1.png); }
#win-rank .rk-gold   { left: 81px;  --img: url(../assets/skin_wlo/default/Btn_TopGold_1.png); }
#win-rank .rk-qa     { left: 144px; --img: url(../assets/skin_wlo/default/Btn_TopQA_1.png); }
#win-rank .rk-pk     { left: 207px; --img: url(../assets/skin_wlo/default/Btn_TopPK_1.png); }
#win-rank .rk-damage { left: 18px;  --img: url(../assets/skin_wlo/default/Btn_TopDamage_1.png); }
#win-rank .rk-devent { left: 81px;  --img: url(../assets/skin_wlo/default/Btn_TopDEvent_1.png); }
#win-rank .rk-dpk1   { left: 23px; top: 97px; --img: url(../assets/skin_wlo/default/Btn_TopDPK_1.png); }
#win-rank .rk-dpk2   { left: 86px; top: 97px; --img: url(../assets/skin_wlo/default/Btn_TopDPK_2.png); }
#win-rank .rk-row { left: 18px; width: 316px; height: 22px; color: var(--fm-ink); font-size: 12px; line-height: 22px; white-space: nowrap; }
#win-rank .rk-row > span { position: absolute; top: 0; overflow: hidden; text-overflow: ellipsis; }
#win-rank .rk-row .place { left: 9px; width: 65px; text-align: center; font: 700 13px/22px Arial, sans-serif; color: #ffffff;
  text-shadow: -1px 0 #2a3b66, 1px 0 #2a3b66, 0 -1px #2a3b66, 0 1px #2a3b66; }
#win-rank .rk-row .job-label { left: 74px; top: 2px; width: 42px; height: 22px; background: url(../assets/skin_wlo/default/Icon_Career.png) no-repeat; }
#win-rank .rk-row .job  { left: 118px; width: 42px; }
#win-rank .rk-row .name { left: 162px; width: 96px; }
#win-rank .rk-row[data-kind=gold] .name { left: 74px; width: 236px; }
#win-rank .rk-row .lv-label { left: 260px; top: 4px; width: 26px; height: 15px; background: url(../assets/skin_wlo/default/Main_Word_Lv.png) no-repeat; }
#win-rank .rk-row .lv { left: 288px; width: 26px; font-weight: 700; }
#win-rank .rk-empty { left: 18px; top: 250px; width: 316px; text-align: center; color: #6f84ad; pointer-events: none !important; }
#win-rank .rk-own { left: 24px; top: 455px; width: 304px; height: 16px; line-height: 16px; color: var(--fm-ink); font-weight: 700; }
#win-rank .rk-page { left: 146px; top: 428px; width: 68px; text-align: center; }
#win-rank .rk-close { left: 153px; top: 485px; }

/* Activity table: Form_ActionList_2 552×365 (0x5c7034). Five lines of 41 px from y 85 under 活動名稱 / 開始時間 /
   結束時間 / 狀態, a 「?」 (query, 27×27) at (503, 91 + 41n), arrows (218 / 308, 300), 傳送 (183, 332), 離開 (308, 332). */
#win-activity { --fw: 552px; --fh: 365px; --fbg: url(../assets/skin_wlo/white/Form_ActionList_2.png); --cx: 504px; --cy: 25px; }
#win-activity .ac-row { left: 20px; width: 482px; height: 37px; display: grid; grid-template-columns: 230px 90px 92px 60px;
  align-items: center; cursor: pointer; color: var(--fm-ink); font-size: 13px; }
#win-activity .ac-row > span { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-activity .ac-row .name { font-weight: 700; }
#win-activity .ac-row .when { font: 700 11px/1 "Courier New", monospace; }
#win-activity .ac-row .state { color: #6f84ad; }
#win-activity .ac-row .state.on { color: #c0392b; font-weight: 700; }
#win-activity .ac-row:not([data-index]) { cursor: default; }
#win-activity .ac-row[data-index]:hover { background: rgba(255, 255, 255, 0.25); }
#win-activity .ac-row[aria-selected=true] { background: var(--fm-pick); outline: 1px solid #e2b100; }
#win-activity .ac-query { left: 503px; --img: url(../assets/skin_wlo/default/query.png); --w: 27px; --h: 27px; }
#win-activity .ac-info { left: 230px; width: 270px; padding: 6px 8px; z-index: 3; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 12px; line-height: 1.5; color: var(--fm-ink); background: #f4f8ff; border: 1px solid #7f9cd0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
#win-activity .ac-empty { left: 20px; top: 180px; width: 482px; text-align: center; color: #6f84ad; pointer-events: none !important; }
#win-activity .ac-page { left: 239px; top: 305px; width: 69px; text-align: center; }
#win-activity .ac-prev { left: 218px; top: 300px; --img: url(../assets/skin_wlo/default/Arrow_L3.png); --w: 21px; --h: 21px; }
#win-activity .ac-next { left: 308px; top: 300px; --img: url(../assets/skin_wlo/default/Arrow_R3.png); --w: 21px; --h: 21px; }
#win-activity .ac-go    { left: 183px; top: 332px; --img: url(../assets/skin_wlo/default/Btn_Transmi.png); --w: 56px; --h: 20px; }
#win-activity .ac-leave { left: 308px; top: 332px; --img: url(../assets/skin_wlo/default/Btn_Leave_1.png); --w: 56px; --h: 20px; }

/* ══ Workshop tools (mod_forge) ═════════════════════════════════════════════════════════════════════ */

/* Repair / dismantle: Form_Repair, Form_dismantle 171×183 (0x5ace7c, 0x60b634); no corner button.
   Forging scroll: Form_Reinforce_1 207×345 (0x649e44). */
#win-forge-repair { --fw: 171px; --fh: 183px; --fbg: url(../assets/skin_wlo/white/Form_Repair.png); --cx: 0px; --cy: 0px; }
#win-forge-unset  { --fw: 171px; --fh: 183px; --fbg: url(../assets/skin_wlo/white/Form_dismantle.png); --cx: 0px; --cy: 0px; }
#win-forge-scroll { --fw: 207px; --fh: 345px; --fbg: url(../assets/skin_wlo/white/Form_Reinforce_1.png); --cx: 157px; --cy: 26px; }
#win-forge-repair .win-close, #win-forge-unset .win-close { display: none; }
.fg-slot { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.fg-slot:hover { outline: 1px solid #e2b100; }
.fg-slot img { max-width: 32px; max-height: 32px; image-rendering: pixelated; }
#win-forge-repair .fg-slot, #win-forge-unset .fg-slot { left: 70px; top: 71px; }
#win-forge-scroll .fg-slot { left: 89px; top: 185px; width: 30px; height: 30px; }
#win-forge-scroll .fg-level { left: 100px; top: 83px; width: 60px; color: #c0392b; }
.fg-ok     { --img: url(../assets/skin_wlo/default/Btn_OK_2.png);     --w: 39px; --h: 20px; }
.window .sbtn.fg-cancel { --img: url(../assets/skin_wlo/default/Btn_Cancel_3.png); --w: 39px; --h: 20px; }
#win-forge-repair .fg-ok, #win-forge-unset .fg-ok { left: 37px; top: 142px; }
#win-forge-repair .fg-cancel, #win-forge-unset .fg-cancel { left: 93px; top: 142px; }
#win-forge-scroll .fg-ok { left: 57px; top: 307px; }
#win-forge-scroll .fg-cancel { left: 112px; top: 307px; }

/* ══ Exchange code (mod_services) ═══════════════════════════════════════════════════════════════════ */

/* Form_Exchange2 264×193 (0x705b98): 兌換序號 and its white box (119, 92), 確定 (71, 154), 取消 (138, 154). */
#win-redeem { --fw: 264px; --fh: 193px; --fbg: url(../assets/skin_wlo/white/Form_Exchange2.png); --cx: 212px; --cy: 24px; }
#win-redeem .rd-code { left: 119px; top: 93px; width: 103px; height: 14px; padding: 0 2px; font: 700 12px/14px "Courier New", monospace; color: var(--fm-ink); background: transparent; border: 0; }
#win-redeem .rd-code:focus-visible { outline: 1px solid #e2b100; }
#win-redeem .rd-ok { left: 71px; top: 154px; --img: url(../assets/skin_wlo/default/btn_ok_1.png); --w: 56px; --h: 20px; }
#win-redeem .sbtn.rd-cancel { left: 138px; top: 154px; --img: url(../assets/skin_wlo/default/Btn_Cancel_1.png); --w: 56px; --h: 20px; }

/* ══ Marriage (mod_wedding) ═════════════════════════════════════════════════════════════════════════ */

/* Form_Marry 298×257 (0x61bb5a): the two boxes (29, 73) and (161, 73), 102×102; 確定申請 / 確定離婚 (73, 214),
   取消 (155, 214). The divorce form (0x62639c) lays Form_Divorce (98×22) over the title. */
#win-marry { --fw: 298px; --fh: 257px; --fbg: url(../assets/skin_wlo/white/Form_Marry.png); --cx: 252px; --cy: 25px; }
#win-marry .mr-divorce { left: 92px; top: 29px; width: 112px; height: 24px; background: #f3f7fd url(../assets/skin_wlo/default/Form_Divorce.png) 7px 1px no-repeat; display: none; pointer-events: none !important; }
#win-marry[data-kind=divorce] .mr-divorce { display: block; }
#win-marry .mr-face { top: 74px; width: 100px; height: 100px; image-rendering: pixelated; pointer-events: none !important; }
#win-marry .mr-face.me { left: 30px; }
#win-marry .mr-face.other { left: 162px; }
#win-marry .mr-name { top: 178px; width: 102px; text-align: center; font-weight: 700; color: var(--fm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-marry .mr-name.me { left: 29px; }
#win-marry .mr-name.other { left: 161px; }
#win-marry .mr-note { left: 29px; top: 196px; width: 234px; text-align: center; font-size: 11px; color: #c0392b; }
#win-marry .mr-ok { left: 73px; top: 214px; --img: url(../assets/skin_wlo/default/Btn_Marry_1.png); --w: 61px; --h: 20px; }
#win-marry[data-kind=divorce] .mr-ok { --img: url(../assets/skin_wlo/default/Btn_Divorice.png); }
#win-marry .mr-cancel { left: 155px; top: 214px; }

/* ══ Item mall (mod_mall) ════════════════════════════════════════════════════════════════════════════ */

/* Goods: Form_Shopping_1 778×554 (D:\WLR 0x25e0ae / D:\WLO 0x70fdba). No close medallion: 離開 (681, 523) closes. */
#win-mall { --fw: 778px; --fh: 554px; --fbg: url(../assets/skin_wlo/white/Form_Shopping_1.png); }
#win-mall .win-close { display: none; }
/* Every piece sits at the original's form coordinates (mod_mall.js sets left / top). */
#win-mall .mall-pic, #win-mall .mall-text, #win-mall .mall-num, #win-mall .mall-lv, #win-mall .mall-doll, #win-mall .mall-bar,
#win-mall .mr-icon, #win-mall .mr-name, #win-mall .mr-effect { position: absolute; }
#win-mall .mall-pic { pointer-events: none; }
#win-mall .mall-pic[hidden] { display: none; }
#win-mall .mall-text, #win-mall .mall-num { font: 12px/15px "MingLiU", "PMingLiU", "Microsoft JhengHei", sans-serif; color: var(--fm-ink); white-space: nowrap; }
#win-mall .mall-num { font-family: "Courier New", monospace; font-weight: 700; }
/* the try-on room, Form_TryClotheRoom_1 at (16,120) */
#win-mall .mall-room { position: absolute; left: 16px; top: 120px; width: 191px; height: 399px; background: url(../assets/skin_wlo/white/Form_TryClotheRoom_1.png) 0 0 no-repeat; pointer-events: none; }
#win-mall .mall-points { width: 80px; text-align: right; color: #a8740a; }          /* right edge at x 180 */
#win-mall .mall-name { width: 138px; height: 20px; line-height: 20px; overflow: hidden; }
#win-mall .mall-doll { pointer-events: none; image-rendering: pixelated; }
#win-mall .mall-bar { height: 4px; max-width: 53px; background: no-repeat 0 0; }
/* the goods: Form_Shopping_2 at (218,34), a row every 40 px from y 39 */
#win-mall .mall-table { position: absolute; left: 0; top: 0; width: 778px; height: 554px; pointer-events: none;
  background: url(../assets/skin_wlo/white/Form_Shopping_2.png) 218px 34px no-repeat; }
#win-mall .mall-table > * { pointer-events: auto; }
#win-mall .mall-table > .sbtn { position: absolute; }
#win-mall .mall-table > .mall-pic { pointer-events: none; }
#win-mall .mr-icon { width: 32px; height: 32px; padding: 0; border: 0; background: none; }
#win-mall .mr-icon img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; display: block; }
#win-mall .mr-icon[aria-pressed=true] { outline: 2px solid #ffd54a; outline-offset: -1px; }
#win-mall .mr-name { width: 96px; height: 30px; font: 12px/15px "MingLiU", "PMingLiU", "Microsoft JhengHei", sans-serif; color: var(--fm-ink); overflow: hidden; overflow-wrap: anywhere; }
#win-mall .mr-effect { width: 224px; height: 30px; font: 12px/15px "MingLiU", "PMingLiU", "Microsoft JhengHei", sans-serif; color: #4a5f95; overflow: hidden; overflow-wrap: anywhere; }
#win-mall .mr-price { width: 81px; text-align: right; color: #a8740a; pointer-events: none; }   /* right edge at x 681 */
#win-mall .mr-sale { color: #d0302a; }
#win-mall .mall-empty { position: absolute; left: 218px; top: 250px; width: 549px; text-align: center; color: #7083ad; }
#win-mall .mall-page-cur { width: 80px; text-align: right; }                          /* "p " ends where the '/' (x 315) starts */
#win-mall .sbtn[hidden] { display: none; }

/* Cart: Form_ShoppingCar_1 548×534, seven rows of 59 px; 刪除 and the three buttons at the foot are in the picture. */
#win-mall-cart { --fw: 548px; --fh: 534px; --fbg: url(../assets/skin_wlo/white/Form_ShoppingCar_1.png); }
#win-mall-cart .win-close { display: none; }
#win-mall-cart .mc-icon { left: 21px; width: 32px; height: 32px; }
#win-mall-cart .mc-icon img { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
#win-mall-cart .mc-name { left: 58px; width: 70px; height: 50px; display: flex; align-items: center; font-size: 12px; line-height: 1.25; color: var(--fm-ink); overflow: hidden; }
#win-mall-cart .mc-effect { left: 134px; width: 175px; height: 50px; font-size: 11px; line-height: 1.4; color: #4a5f95; overflow: hidden; }
#win-mall-cart .mc-price { left: 314px; width: 60px; text-align: center; color: #a8740a; }
#win-mall-cart .mc-qty { left: 392px; width: 31px; height: 18px; padding: 0 2px; font: 700 12px/1 "Courier New", monospace; color: var(--fm-ink); text-align: center; background: transparent; border: 0; -moz-appearance: textfield; }
#win-mall-cart .mc-qty::-webkit-inner-spin-button { display: none; }
#win-mall-cart .mc-qty:disabled { visibility: hidden; }
#win-mall-cart .mc-del { left: 445px; width: 56px; height: 20px; }
#win-mall-cart .mc-del:disabled { visibility: hidden; }
#win-mall-cart .mc-total { left: 422px; top: 466px; color: #a8740a; }
#win-mall-cart .mc-more  { left: 80px;  top: 494px; width: 70px; height: 20px; }
#win-mall-cart .mc-pay   { left: 222px; top: 494px; width: 70px; height: 20px; }
#win-mall-cart .mc-leave { left: 368px; top: 494px; width: 70px; height: 20px; }

/* ══ Stalls (mod_life) ═══════════════════════════════════════════════════════════════════════════════ */

/* 開設個人商店: Form_KeepItemStall_1 355×461 (D:\WLR 0x33bfbc). */
#win-life { --fw: 355px; --fh: 461px; --fbg: url(../assets/skin_wlo/white/Form_KeepItemStall_1.png); --cx: 304px; --cy: 23px; }
#win-life .lk-name { left: 163px; top: 28px; width: 119px; height: 17px; padding: 0 3px; font: inherit; font-size: 12px; color: var(--fm-ink); background: transparent; border: 0; }
#win-life .lk-name:focus-visible, #win-life .lk-price:focus-visible { outline: 1px solid #e2b100; }
#win-life .lk-cell { left: 18px; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
#win-life .lk-cell img { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
#win-life .lk-cell .qty, #win-buy .qty, #win-stall-buy .qty { position: absolute; left: 1px; bottom: 0; font: 700 11px/1 "Courier New", monospace; color: #000; text-shadow: -1px 0 #fff, 1px 0 #fff, 0 -1px #fff, 0 1px #fff; }
#win-life .lk-cell:hover { outline: 1px solid #e2b100; }
#win-life .lk-price { left: 60px; width: 88px; height: 17px; padding: 0 3px; font: 700 12px/1 "Courier New", monospace; color: var(--fm-ink); text-align: right; background: transparent; border: 0; -moz-appearance: textfield; }
#win-life .lk-price::-webkit-inner-spin-button { display: none; }
#win-life .lk-bag { left: 163px; top: 67px; width: 170px; height: 340px; cursor: pointer; }
/* the sign pictures are 300×300 with the sign in the middle: shown at full size, cut to the box */
#win-life .lk-sign { left: 44px; top: 292px; width: 84px; height: 94px; background: no-repeat center; pointer-events: none !important; }
#win-life .lk-profit { left: 70px; top: 402px; color: #a8740a; }

/* 個人商店: Form_BuyItemStall_1 409×525 (D:\WLR 0x33e514). */
#win-stall-buy { --fw: 409px; --fh: 525px; --fbg: url(../assets/skin_wlo/white/Form_BuyItemStall_1.png); --cx: 358px; --cy: 25px; }
#win-stall-buy .lb-title { left: 40px; top: 32px; width: 300px; font-size: 13px; font-weight: 700; color: var(--fm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-stall-buy .lb-row { left: 25px; width: 355px; height: 57px; cursor: pointer; color: var(--fm-ink); font-size: 12px; }
#win-stall-buy .lb-row:hover { background: rgba(255, 255, 255, 0.45); }
#win-stall-buy .lb-row.picked { background: var(--fm-pick); }
#win-stall-buy .lb-row > * { position: absolute; }
#win-stall-buy .lb-icon { left: 1px; top: 12px; width: 32px; height: 32px; }
#win-stall-buy .lb-icon img, #win-stall-buy .lb-pick img { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
#win-stall-buy .lb-name { left: 38px; top: 4px; width: 70px; height: 50px; display: flex; align-items: center; line-height: 1.25; overflow: hidden; }
#win-stall-buy .lb-effect { left: 112px; top: 4px; width: 176px; height: 50px; font-size: 11px; line-height: 1.4; color: #4a5f95; overflow: hidden; }
#win-stall-buy .lb-price { left: 294px; top: 22px; width: 58px; text-align: center; color: #a8740a; }
#win-stall-buy .lb-pick { top: 402px; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
#win-stall-buy .lb-total { left: 192px; top: 453px; color: #a8740a; }
#win-stall-buy .lb-gold  { left: 192px; top: 475px; color: var(--fm-ink); }

/* ══ 副本 (mod_arena): the group form's third page ═════════════════════════════════════════════════════ */

/* mod_arena.js puts every part at the client's coordinates in the form (D:\WLR 0x19d3ec and the paints named there).
   Text is 0x19e788's: colour 0x0841 (#080808), the 16 px UI font, the glyph box at the given y (line-height 15 px);
   wrapped text is cut by mod_arena (8 px a byte) into lines 18 px apart. A .dp-sub is a page: a zero-size layer at the
   form's corner whose parts are placed in form coordinates. */
.dp-form [hidden] { display: none !important; }
.dp-form .dp-sub { left: 0; top: 0; width: 0; height: 0; }
.dp-form .dp-sub > *, .dp-form .dl-row > *, .dp-form .dl-tip > *, .dp-form .dc-prompt > * { position: absolute; }
.dp-form .dp-t { position: absolute; line-height: 15px; color: #080808; white-space: pre; pointer-events: none; }
.dp-form .dp-lines { position: absolute; width: 0; height: 0; pointer-events: none; }
.dp-form .dp-lines > div { position: absolute; left: 0; line-height: 15px; color: #080808; white-space: pre; }
.dp-form .dp-pic { position: absolute; background: no-repeat 0 0; pointer-events: none; }
.dp-form .dp-num { position: absolute; pointer-events: none; }

/* Form_Emblem_1 371×539; the page picture Form_DupChoose / Form_DupInnerInfo / Form_DupInnerMember at (26,85). */
#win-instance { --fw: 371px; --fh: 539px; --fbg: url(../assets/skin_wlo/white/Form_Emblem_1.png); --cx: 321px; --cy: 24px; left: calc(50vw - 185px); }
#win-instance .dp-page { left: 26px; top: 85px; width: 314px; height: 404px; background: url(../assets/skin_wlo/white/Form_DupChoose.png) no-repeat; pointer-events: none; }
#win-instance .dp-page[data-page="1"] { background-image: url(../assets/skin_wlo/white/Form_DupInnerInfo.png); }
#win-instance .dp-page[data-page="2"] { background-image: url(../assets/skin_wlo/white/Form_DupInnerMember.png); }
/* 選擇副本: a room is a 294×60 item of the list at (36,98), 70 px apart; its hint (0x19f504) is panel4 — a 3 px gold frame
   round the blue dither, drawn nine-slice — with yellow (0xFFE0) outlined lines. */
#win-instance .dl-row { width: 294px; height: 60px; }
#win-instance .dl-tip { z-index: 5; box-sizing: border-box; border: 3px solid transparent;
  border-image: url(../assets/skin_wlo/default/panel4.png) 3 fill / 3px / 0 repeat; pointer-events: none; }
#win-instance .dl-tip .dp-t, #win-instance .dl-tip .dp-lines > div { color: #ffff00; text-shadow: var(--wl-outline); }
/* 成員: the 60×60 face (a click opens that player's menu), the job icon names the job on hover */
#win-instance .dm-face { width: 60px; height: 60px; image-rendering: pixelated; }
#win-instance .dm-job { width: 16px; height: 16px; }
#win-instance .dm-element { width: 25px; height: 25px; pointer-events: none; }

/* 建立副本: Form_CreateDupMis 377×463 at (screen width / 2 + 20, 75) (0x19cfc8). The list's rows are 149×29 from (19,92),
   the name 12 px in and 7 px down; the chosen row is filled #89BFF5 (0xF5BF89 BGR) and its text stays dark. */
#win-instance-create { --fw: 377px; --fh: 463px; --fbg: url(../assets/skin_wlo/white/Form_CreateDupMis.png); --cx: 327px; --cy: 24px; left: calc(50vw + 20px); top: 75px; }
#win-instance-create .dc-row { width: 149px; height: 29px; box-sizing: border-box; margin: 0; padding: 7px 0 0 12px; border: 0; border-radius: 0; box-shadow: none;
  background: none; color: #080808; line-height: 15px; text-align: left; white-space: pre; overflow: hidden; }
#win-instance-create .dc-row[aria-selected=true] { background: #89bff5; }
/* Form_DupEnterMsg 262×169 「請輸入你想留的訊息」 at (60,285) of the form, above it (0x19a608); the edit (22,68) 221×56 */
#win-instance-create .dc-prompt { width: 262px; height: 169px; z-index: 3; background: url(../assets/skin_wlo/white/Form_DupEnterMsg.png) no-repeat; }
#win-instance-create .dc-msg { width: 221px; height: 56px; box-sizing: border-box; margin: 0; padding: 1px 2px; border: 0; border-radius: 0;
  background: transparent; color: #000000; line-height: 15px; resize: none; overflow: hidden; outline: none; }

/* Form_DupDetail 「WAITING」 326×473 at (447,67) of the 800-wide screen (0x19be3c). */
#win-instance-detail { --fw: 326px; --fh: 473px; --fbg: url(../assets/skin_wlo/white/Form_DupDetail.png); --cx: 276px; --cy: 24px; left: calc(50vw + 47px); top: 67px; }

/* On the instance's map (0x19ffd4): 剩餘時間 at (335,10), its value 72 px on, the goals at (600,50) of the 800-wide screen
   (kept that far from the middle and the right edge here), white outlined; in a battle at (9,205) and (9,220). */
#dup-hud { position: fixed; inset: 0; pointer-events: none; }
#dup-hud[hidden] { display: none; }
#dup-hud > div { position: absolute; color: #ffffff; text-shadow: var(--wl-outline); line-height: 15px; white-space: pre; }
#dup-hud .dh-time  { left: calc(50% - 65px); top: 10px; }
#dup-hud .dh-value { left: calc(50% + 7px); top: 10px; }
#dup-hud .dh-goals { left: calc(100% - 200px); top: 50px; }
#dup-hud .dh-goals > div { position: absolute; left: 0; }
body.in-battle #dup-hud .dh-time  { left: 9px; top: 205px; }
body.in-battle #dup-hud .dh-value { left: 81px; top: 205px; }
body.in-battle #dup-hud .dh-goals { left: 9px; top: 220px; }

/* ══ Hotkey bar (mod_hotkeys): the page arrows, page number and fold button of Form_HotKey_V ═════════════ */
/* ui_skin.json hotkeyBar.vertical (aLogin.exe 0x2a8a14) and .minimized (0x2a8da4). */
#hud #hotkey-bar > .sbtn { position: absolute; }
#hud #hotkey-bar .hk-prev    { left: 12px; top: 248px; --img: url(../assets/skin/default/Btn_ArrowL_3.png); --w: 11px; --h: 9px; }
#hud #hotkey-bar .hk-next    { left: 36px; top: 248px; --img: url(../assets/skin/default/Btn_ArrowR_3.png); --w: 11px; --h: 9px; }
#hud #hotkey-bar .hk-page    { position: absolute; left: 23px; top: 245px; width: 13px; height: 15px; background: no-repeat 0 0; }
#hud #hotkey-bar .hk-min     { left: 37px; top: 0; --img: url(../assets/skin/default/Btn_Minimize_1.png); --w: 19px; --h: 18px; }
#hud #hotkey-bar .hk-restore { left: 10px; top: 10px; --img: url(../assets/skin/default/Btn_Window_1.png); --w: 19px; --h: 18px; display: none; }
#hud #hotkey-bar.mini { width: 39px; height: 38px; background-image: url(../assets/skin/white/Form_HotKey_Mini.png); }
#hud #hotkey-bar.mini > * { display: none; }
#hud #hotkey-bar.mini > .hk-restore { display: block; }

/* Form_PlayerTitle 250×275 (mod_profile; D:\WLR aLogin 0x2bdef0 / 0x2be6c0 / 0x2be3a8): five rows 30 px apart,
   the title's name at x 22, 使用 / 使用中 at x 165, the page "n/m" between the arrows at y 225. */
#win-profile { --fw: 250px; --fh: 275px; --fbg: url(../assets/skin/white/Form_PlayerTitle.png); --cx: 200px; --cy: 26px; }
#win-profile .pt-name { left: 22px; width: 138px; font-size: 12px; line-height: 14px; color: var(--fm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none !important; }
#win-profile .pt-page { left: 106px; top: 225px; width: 38px; text-align: center; pointer-events: none !important; }

/* Form_BeforeCareer 323×539 / Form_Career 420×539 (mod_services; D:\WLR aLogin 0x1aa7e0 / 0x1a8d48): the player in the
   top box, the choice cells at y 193 (122×115), the text box below, 確定 / 取消 at y 503. */
#win-career-before { --fw: 323px; --fh: 539px; --fbg: url(../assets/skin/white/Form_BeforeCareer.png); --cx: 273px; --cy: 24px; }
#win-career { --fw: 420px; --fh: 539px; --fbg: url(../assets/skin/white/Form_Career.png); --cx: 370px; --cy: 24px; }
#win-career-before .cr-face { left: 129px; top: 83px; width: 60px; height: 60px; pointer-events: none !important; image-rendering: pixelated; }
#win-career .cr-face { left: 178px; top: 83px; width: 60px; height: 60px; pointer-events: none !important; image-rendering: pixelated; }
.cr-cell { top: 193px; width: 122px; height: 115px; padding: 0; border: 0; background: transparent no-repeat; cursor: pointer; }
.cr-cell:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }
.cr-cell[aria-pressed=true] { box-shadow: inset 0 0 0 2px #f2b84b; background-color: var(--fm-pick); }
.cr-cell:focus-visible { outline: 2px solid #f2b84b; outline-offset: 1px; }
.cr-cell .cr-label { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--fm-ink); }
#win-career-before .cr-series .cr-label { bottom: auto; top: 48px; font-size: 16px; }
#win-career .cr-job { background-size: 374px 116px; }
#win-career-before .cr-text { left: 40px; top: 330px; width: 240px; height: 155px; }
#win-career .cr-text { left: 32px; top: 330px; width: 350px; height: 155px; }
.cr-text { font-size: 12px; line-height: 1.7; color: var(--fm-ink); white-space: pre-wrap; overflow: hidden; pointer-events: none !important; }

/* Form_Reborn_1 247×471, the altar's companion list (mod_petgrow; rows measured from the picture). */
#win-pet-altar { --fw: 247px; --fh: 471px; --fbg: url(../assets/skin/white/Form_Reborn_1.png); --cx: 198px; --cy: 24px; }
#win-pet-altar .pa-row { left: 17px; width: 202px; height: 34px; padding: 0; border: 0; background: transparent; cursor: pointer; }
#win-pet-altar .pa-row:disabled { cursor: default; }
#win-pet-altar .pa-row:not(:disabled):hover { background: var(--fm-pick); }
#win-pet-altar .pa-row:focus-visible { outline: 2px solid #f2b84b; outline-offset: -2px; }
#win-pet-altar .pa-face { position: absolute; left: 1px; top: 1px; width: 32px; height: 32px; image-rendering: pixelated; }
#win-pet-altar .pa-name { position: absolute; left: 42px; top: 10px; font-size: 12px; color: var(--fm-ink); white-space: nowrap; }

/* From_PetUp 350×401, the rebirth roll (mod_petgrow; D:\WLR aLogin 0x228a28 / 0x229214). */
#win-pet-dice { --fw: 350px; --fh: 401px; --fbg: url(../assets/skin/white/From_PetUp.png); --cx: 302px; --cy: 26px; }
#win-pet-dice .pd-name { top: 80px; font-size: 12px; font-weight: 700; color: var(--fm-ink); white-space: nowrap; pointer-events: none !important; }
#win-pet-dice .pd-name.pd-left { left: 60px; }
#win-pet-dice .pd-name.pd-right { left: 220px; }
#win-pet-dice .pd-face { top: 140px; width: 64px; height: 64px; image-rendering: pixelated; pointer-events: none !important; }
#win-pet-dice .pd-face.pd-left { left: 66px; }
#win-pet-dice .pd-face.pd-right { left: 222px; }
#win-pet-dice .pd-val { font-size: 12px; line-height: 14px; color: var(--fm-ink); pointer-events: none !important; }
#win-pet-dice .pd-plus { color: #f80000; }

/* Form_PlayerBattleBG 356×493 with its 314×381 pages at (21,76) (mod_arena; D:\WLR aLogin 0x2c3210). */
#win-pkarena { --fw: 356px; --fh: 493px; --fbg: url(../assets/skin/white/Form_PlayerBattleBG.png); --cx: 304px; --cy: 24px; }
#win-pkarena .pb-page { left: 21px; top: 76px; width: 314px; height: 381px; background: url(../assets/skin/white/Form_PlayerBattleMain.png) no-repeat; pointer-events: none !important; }
#win-pkarena .pb-page[data-page=rank] { background-image: url(../assets/skin/white/Form_PlayerBattleRank.png); }
#win-pkarena .pb-page[data-page=setting] { background-image: url(../assets/skin/white/Form_PlayerBattleSetting.png); }
#win-pkarena .pb-num { left: 147px; width: 102px; text-align: center; font-size: 13px; font-weight: 700; line-height: 20px; color: var(--fm-ink); pointer-events: none !important; }
#win-pkarena .pb-rank { top: 96px; }
#win-pkarena .pb-score { top: 137px; }
#win-pkarena .pb-vitality { left: 43px; top: 347px; width: 247px; height: 30px; }
#win-pkarena .pb-vitality-fill { position: absolute; left: 99px; top: 16px; height: 4px; background: url(../assets/skin/default/Panel42.png) no-repeat; }
#win-pkarena .pb-note { left: 30px; top: 446px; width: 296px; font-size: 11px; color: #4a5f95; text-align: center; pointer-events: none !important; }
#win-pkarena .pb-myrank { left: 96px; top: 84px; width: 235px; height: 72px; background: url(../assets/skin/white/Form_MyPlayerBattleRank.png) no-repeat; color: var(--fm-ink); pointer-events: none !important; }
#win-pkarena .pb-myrank > span { position: absolute; white-space: nowrap; }
#win-pkarena .pb-myrank-no { left: 0; top: 26px; width: 70px; text-align: center; font-size: 16px; font-weight: 700; }
#win-pkarena .pb-myrank-name { left: 78px; top: 10px; font-size: 13px; font-weight: 700; }
#win-pkarena .pb-myrank-score { left: 128px; top: 44px; font-size: 13px; }

/* 遊戲說明 of every mini-game (mod_minigames): the picture, its size and the button places come from INTRO there
   (D:\WLR 0x1ce9c4, by the type 57:1 gave) and are set on the window. */
#win-mg-intro { --fw: 409px; --fh: 525px; --fbg: url(../assets/skin_wlo/white/MiniGame_Explan_Form.png); --cx: 359px; --cy: 26px; }

/* Form_ConfuseStone 243×360, 混沌強化 (mod_forge; D:\WLR aLogin 0x1bc1a4). */
#win-forge-chaos { --fw: 243px; --fh: 360px; --fbg: url(../assets/skin/white/Form_ConfuseStone.png); --cx: 193px; --cy: 25px; }
#win-forge-chaos .fc-mark { width: 21px; height: 21px; pointer-events: none !important; }
#win-forge-chaos .fc-mark.lit { background: url(../assets/skin/default/Icon_PotentialMark_1.png) no-repeat; }
#win-forge-chaos .fc-ok { left: 54px; top: 315px; --img: url(../assets/skin/default/Btn_confirm_1.png); --w: 56px; --h: 20px; }
#win-forge-chaos .fc-cancel { left: 130px; top: 315px; --img: url(../assets/skin/default/Btn_Cancel_1.png); --w: 56px; --h: 20px; }

/* ══ 住家 (mod_house) ════════════════════════════════════════════════════════════════════════════════ */

/* 裝潢: Form_HomeAdorn_1 223×223 (D:\WLR 0x23e6e8) at (577,327) of the 800×600 screen; the buttons are set in mod_house.js. */
#win-house { --fw: 223px; --fh: 223px; --fbg: url(../assets/skin_wlo/white/Form_HomeAdorn_1.png); --cx: 172px; --cy: 25px;
  left: min(calc(50vw + 177px), calc(100vw - 231px)); top: max(8px, calc(50vh + 27px - 30px)); }

/* 製作: Form_MakeThing_1 288×449 (0x237760). Ten rows of 34 px in the ruled list (18..245); the arrows ride Rail_H5. */
#win-house-make { --fw: 288px; --fh: 449px; --fbg: url(../assets/skin_wlo/white/Form_MakeThing_1.png); --cx: 238px; --cy: 24px; }
#win-house-make .hm-row { left: 18px; width: 227px; height: 34px; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; font-size: 12px; color: var(--fm-ink); text-align: left; cursor: pointer; }
#win-house-make .hm-row:hover { background: rgba(255, 233, 74, 0.22); }
#win-house-make .hm-row:focus-visible { outline: 1px solid #e2b100; outline-offset: -1px; }
#win-house-make .hm-row.lack { color: #9aa6c2; }
#win-house-make .hm-row > * { position: absolute; }
#win-house-make .hm-icon { left: 2px; top: 1px; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; background: url(../assets/skin_wlo/default/Icon_BlueNet32x32_1.png) no-repeat; }
#win-house-make .hm-name { left: 40px; top: 9px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-house-make .hm-minutes { left: 176px; top: 10px; width: 28px; text-align: right; font: 700 12px/1.2 "Courier New", monospace; }
#win-house-make .hm-minute-icon { left: 206px; top: 8px; width: 17px; height: 17px; background: url(../assets/skin_wlo/default/Icon_Minute_1.png) no-repeat; }
#win-house-make .hm-rail { left: 249px; top: 77px; width: 17px; height: 310px; background: url(../assets/skin_wlo/default/Rail_H5.png) 0 0 / 17px 310px no-repeat; pointer-events: none !important; }

/* 製作 details: Form_MakeThingInfo_1 323×449 (0x239b78). The product in the framed box (24,100) 276×34, the materials
   on Icon_MakeThingInfo_Grid_1 rows below 「現有量 / 需求量」, 連續製作 between the arrows, 製作時間 … 分 at the foot. */
#win-house-make-info { --fw: 323px; --fh: 449px; --fbg: url(../assets/skin_wlo/white/Form_MakeThingInfo_1.png); --cx: 273px; --cy: 24px; }
#win-house-make-info .hi-product { left: 24px; top: 100px; width: 276px; height: 34px; color: var(--fm-ink); font-weight: 700; }
#win-house-make-info .hi-row { left: 24px; width: 276px; height: 37px; background: url(../assets/skin_wlo/default/Icon_MakeThingInfo_Grid_1.png) no-repeat; color: var(--fm-ink); }
#win-house-make-info .hi-product > *, #win-house-make-info .hi-row > * { position: absolute; }
#win-house-make-info .hi-icon { left: 2px; top: 1px; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; background: url(../assets/skin_wlo/default/Icon_BlueNet32x32_1.png) no-repeat; }
#win-house-make-info .hi-row .hi-icon { top: 2px; }
#win-house-make-info .hi-name { left: 40px; top: 10px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-house-make-info .hi-row .hi-name { top: 12px; }
#win-house-make-info .hi-mark { left: 190px; top: 0; width: 28px; height: 36px; background: no-repeat; }
#win-house-make-info .hi-mark.enough { background-image: url(../assets/skin_wlo/default/Icon_Enough_1.png); }
#win-house-make-info .hi-mark.lack { background-image: url(../assets/skin_wlo/default/Icon_Lack_1.png); }
#win-house-make-info .hi-count { right: 6px; top: 12px; font: 700 12px/1.2 "Courier New", monospace; }
#win-house-make-info .hi-quant { left: 24px; top: 386px; width: 126px; height: 15px; background: url(../assets/skin_wlo/default/Icon_MakeThingInfo_MakeQuant_1.png) no-repeat; pointer-events: none !important; }
#win-house-make-info .hi-times { left: 93px; top: 388px; width: 28px; text-align: center; }
#win-house-make-info .hi-minutes { left: 236px; top: 390px; width: 46px; text-align: right; }

/* 留言板: Form_BlackBoard_1 418×328 (0x20b40c, painted by 0x20c1b0): five cells on the green board, newer notes yellow,
   older than five days red; the edit box (195, 77 + 46n) 180×23. */
#win-house-board { --fw: 418px; --fh: 328px; --fbg: url(../assets/skin_wlo/white/Form_BlackBoard_1.png); --cx: 368px; --cy: 24px; }
#win-house-board .hb-row { left: 15px; width: 383px; height: 45px; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; font-size: 12px; color: #ffff00; text-align: left; cursor: pointer; }
#win-house-board .hb-row.old { color: #ff0000; }
#win-house-board .hb-row:hover { background: rgba(255, 255, 255, 0.08); }
#win-house-board .hb-row[aria-selected=true] { background: rgba(255, 255, 255, 0.14); }
#win-house-board .hb-row:focus-visible { outline: 1px solid #e2b100; outline-offset: -1px; }
#win-house-board .hb-row > span { position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-house-board .hb-date { left: 6px; top: 7px; font-family: "Courier New", monospace; font-weight: 700; }
#win-house-board .hb-who  { left: 195px; top: 7px; max-width: 185px; }
#win-house-board .hb-text { left: 139px; top: 24px; max-width: 240px; }
#win-house-board .hb-edit { left: 195px; width: 180px; height: 23px; padding: 0 3px; font: inherit; font-size: 12px; color: #ffff00; background: #003300; border: 1px solid #9fc79f; }
#win-house-board .hb-edit:focus-visible { outline: 1px solid #e2b100; }

/* ── battle skill form: Form_BattleSkill_1 274×353 (battle.js _skillForm; TRe_BattleSkillForm 0x2b4b2c) ──
   rows 242×27 at (17,42+27i) for the last three skills used and (17,151+27i) for the list, a 24 px icon, the name,
   the SP; a skill that cannot be used now shows its grey icon and does not react. */
#win-bskill { --fw: 274px; --fh: 353px; --fbg: url(../assets/skin/white/Form_BattleSkill_1.png); }
#win-bskill .win-close { display: none; }
#win-bskill .bs-row { width: 242px; height: 27px; padding: 0 8px 0 2px; border: 0; border-radius: 0; background: none;
  display: flex; align-items: center; gap: 6px; font: 13px/1 "Microsoft JhengHei", sans-serif; color: var(--fm-ink); text-align: left; }
#win-bskill .bs-row[hidden] { display: none; }
#win-bskill .bs-row img { width: 24px; height: 24px; flex: none; }
#win-bskill .bs-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#win-bskill .bs-sp { font: 700 12px/1 "Courier New", monospace; }
#win-bskill .bs-row.grey { color: #8c96aa; }
#win-bskill .bs-row:not(.grey):hover { background: rgba(255, 255, 255, 0.35); }
#battle-wheel .sbtn[hidden] { display: none; }   /* the middle button until the unit has given an order */

/* ══ 潛能 / 潛能還原 (mod_potential): Form_Potential_1 299×520, Form_Potential_2 299×460 (WLR aLogin 0x1e3ecc /
   0x1e6ccc). Rows 233×33 lit rgb(137,191,245) at 120/255 when picked, 80/255 under the mouse; text #080808,
   the potential number and form 1's bonus red, form 2's bonus blue. ═════════════════════════════════════════ */
#win-potential { --fw: 299px; --fh: 520px; --fbg: url(../assets/skin/white/Form_Potential_1.png); --cx: 249px; --cy: 26px; }
#win-potential-return { --fw: 299px; --fh: 460px; --fbg: url(../assets/skin/white/Form_Potential_2.png); --cx: 249px; --cy: 26px; }
.pt-form .pt-ring, .pt-form .pt-doll { pointer-events: none !important; }
.pt-form .pt-row { width: 233px; height: 33px; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; color: #080808; cursor: pointer; text-align: left; }
.pt-form .pt-row[hidden] { display: none; }
.pt-form .pt-row:hover { background: rgba(137, 191, 245, 0.31); }
.pt-form .pt-row[aria-selected=true] { background: rgba(137, 191, 245, 0.47); }
.pt-form .pt-row > * { position: absolute; top: 9px; line-height: 15px; white-space: nowrap; pointer-events: none; }
.pt-form .pt-row canvas { left: 1px; top: 1px; }
.pt-form .pt-row .nm { left: 38px; max-width: 96px; overflow: hidden; }
.pt-form .pt-row .lv { right: 68px; text-align: right; }
.pt-form .pt-row .pt { right: 5px; text-align: right; }
.pt-form .pt-row .pt b { color: #FF0000; }
.pt-form .pt-stat, .pt-form .pt-bonus { line-height: 15px; white-space: pre; color: #080808; pointer-events: none !important; }
.pt-form .pt-bonus.up { color: #FF0000; }
.pt-form .pt-bonus.back { color: #0000FF; }
.pt-form .pt-cell { width: 30px; height: 30px; }
.pt-form .pt-cell img { position: absolute; left: 0; top: 0; width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.pt-form .pt-cell .qty { position: absolute; left: 1px; bottom: 0; font: 700 11px/1 "Courier New", monospace; color: #000; text-shadow: -1px 0 #fff, 1px 0 #fff, 0 -1px #fff, 0 1px #fff; }
.pt-form .pt-ok { --img: url(../assets/skin/default/btn_ok_1.png); --w: 56px; --h: 20px; }
.pt-form .pt-ok[hidden], .pt-form .pt-ok-off[hidden] { display: none; }
.pt-form .pt-ok-off { width: 56px; height: 20px; background: url(../assets/skin/default/icon_Confirm_1.png) 0 0 no-repeat; pointer-events: none !important; }
.pt-form .pt-cancel { --img: url(../assets/skin/default/Btn_Cancel_1.png); --w: 56px; --h: 20px; }

/* ══ 錢莊 (mod_bank): Form_BankMoney_1, TMoneyAccountForm (aLogin 0x2cd9c8) created 385×210 over the 173-tall picture —
   the balance (80,70) and the purse (280,70) as "%7d", the edits 提 (69,102) and 存 (270,102) 80×20 in #080808,
   Btn_ArrowL_5 存入 (185,62), Btn_ArrowR_5 領出 (184,96), 關閉 (165,143), the corner (334,24). ══════════════════════ */
#win-bank { --fw: 385px; --fh: 210px; --fbg: url(../assets/skin/white/Form_BankMoney_1.png); --cx: 334px; --cy: 24px; }
.bk-form .bk-amount { top: 70px; width: 56px; line-height: 15px; white-space: pre; }
.bk-form .bk-bank { left: 80px; }
.bk-form .bk-purse { left: 280px; }
.bk-form .bk-input { top: 102px; width: 80px; height: 20px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: #080808; line-height: 20px; outline: none; }
.bk-form .bk-take { left: 69px; }
.bk-form .bk-put { left: 270px; }
.bk-form .bk-put-arrow { left: 185px; top: 62px; }
.bk-form .bk-take-arrow { left: 184px; top: 96px; }
.bk-form .bk-close { left: 165px; top: 143px; }

/* ══ 寵物交易 / 器具交易 (mod_trades): Form_TradePet_1 463×455 (aLogin 0x3347c8), Form_TradeUtensil_1 built 409×481
   (0x383890). Controls are placed by mod_trades.js at the client's coordinates; text #080808, the partner's gold
   coloured by its digits; 確定 / 交易 leave icon_Confirm_1 / icon_trade_1 under them once used. ══════════════════════ */
#win-trade-pet { --fw: 463px; --fh: 455px; --fbg: url(../assets/skin/white/Form_TradePet_1.png); --cx: 413px; --cy: 25px; }
#win-trade-tool { --fw: 409px; --fh: 481px; --fbg: url(../assets/skin/white/Form_TradeUtensil_1.png); --cx: 349px; --cy: 26px; }
.tp-form .tp-figure { pointer-events: none !important; }
.tp-form .tp-name, .tt-form .tt-name { width: 160px; height: 20px; line-height: 20px; color: #080808; white-space: nowrap; overflow: hidden; }
.tp-form .tp-pet { width: 160px; height: 20px; line-height: 20px; color: #080808; white-space: nowrap; overflow: hidden; }
.tp-form .tp-num { line-height: 12px; color: #080808; white-space: nowrap; }
.tp-form .tp-friend { pointer-events: none !important; }
.tp-form .tp-cage[hidden] { display: none; }
.tp-form .tp-cell { width: 33px; height: 33px; }
.tp-form .tp-cell img, .tt-form .tt-item img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.tp-form .tp-income { width: 128px; height: 14px; line-height: 14px; }
.tt-form .tt-income { width: 97px; height: 16px; line-height: 16px; }
.tp-form .tp-gold, .tt-form .tt-gold { height: 14px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: #080808; line-height: 14px; outline: none; }
.tp-form .tp-gold { width: 127px; }
.tt-form .tt-gold { width: 97px; height: 16px; line-height: 16px; }
.tp-form .tp-ok, .tt-form .tt-ok { --img: url(../assets/skin/default/Btn_confirm_1.png); --w: 56px; --h: 20px; }
.tt-form .tt-ok { --img: url(../assets/skin/default/btn_ok_1.png); }
.tp-form .tp-trade { --img: url(../assets/skin/default/Btn_Trade_2.png); --w: 56px; --h: 20px; }
.tt-form .tt-trade { --img: url(../assets/skin/default/Btn_Trade_1.png); --w: 56px; --h: 20px; }
.tp-form .tp-cancel, .tt-form .tp-cancel { --img: url(../assets/skin/default/Btn_Cancel_1.png); --w: 56px; --h: 20px; }
.tp-form .tp-ok-off, .tt-form .tp-ok-off { width: 56px; height: 20px; background: url(../assets/skin/default/icon_Confirm_1.png) 0 0 no-repeat; pointer-events: none !important; }
.tp-form .tp-trade-off, .tt-form .tp-trade-off { width: 56px; height: 20px; background: url(../assets/skin/default/icon_trade_1.png) 0 0 no-repeat; pointer-events: none !important; }
.tp-form [hidden], .tt-form [hidden] { display: none !important; }
.tt-form .tt-grid { width: 168px; height: 338px; }
.tt-form .tt-item { position: absolute; cursor: pointer; }
.tt-form .tt-item.picked { outline: 2px solid #ff8200; outline-offset: -2px; background: rgba(255, 130, 0, 0.18); }

/* ══ 商店 / 賣出 / 置物所 (shop.js): Form_ThingStore_1 · Form_EquipStore_1 409×525 (aLogin 0x3823cc), Form_SaleThing_1 ·
   Form_SaleEquip_1 241×505, Form_itemBank_1 built 421×481 (0x1f79d2). Rows and cells are placed by shop.js. ═══════════ */
#win-shop-buy { --fw: 409px; --fh: 525px; --fbg: url(../assets/skin/white/Form_ThingStore_1.png); --cx: 358px; --cy: 25px; }
#win-shop-buy.gear { --fbg: url(../assets/skin/white/Form_EquipStore_1.png); }
#win-shop-sell { --fw: 241px; --fh: 505px; --fbg: url(../assets/skin/white/Form_SaleThing_1.png); --cx: 191px; --cy: 26px; }
#win-shop-sell.gear { --fbg: url(../assets/skin/white/Form_SaleEquip_1.png); }
#win-storage { --fw: 421px; --fh: 481px; --fbg: url(../assets/skin/white/Form_itemBank_1.png); --cx: 365px; --cy: 25px; }
.sb-form .sb-list { width: 353px; height: 292px; overflow: hidden; }
.sb-form .sb-row { position: absolute; width: 353px; height: 56px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; color: #080808; text-align: left; cursor: pointer; }
.sb-form .sb-row:hover { background: rgba(137, 191, 245, 0.55); }
.sb-form .sb-row > span { position: absolute; top: 0; height: 56px; display: flex; align-items: center; line-height: 15px; overflow: hidden; pointer-events: none; }
.sb-form .sb-icon { left: 0; width: 33px; justify-content: center; }
.sb-form .sb-icon img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.sb-form .sb-name { left: 36px; width: 70px; }
.sb-form .sb-effect { left: 112px; width: 176px; }
.sb-form .sb-price { left: 292px; width: 58px; justify-content: flex-end; }
.sb-form .sb-down { --img: url(../assets/skin/default/Btn_ArrowDn_3.png); --w: 17px; --h: 17px; }
.sb-form .sb-up { --img: url(../assets/skin/default/Btn_ArrowUp_3.png); --w: 17px; --h: 17px; }
.sb-form .sb-down[hidden], .sb-form .sb-up[hidden] { display: none; }
.sb-form .sb-cart { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
.sb-form .sb-cart img { position: absolute; left: 0; top: 0; width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.sb-form .sb-cart .qty { position: absolute; left: 2px; bottom: 0; font: 700 11px/1 "Courier New", monospace; color: #000; text-shadow: -1px 0 #fff, 1px 0 #fff, 0 -1px #fff, 0 1px #fff; }
.sb-money { width: 100px; line-height: 15px; color: #080808; text-align: right; white-space: nowrap; }
.ss-form .ss-money { width: 80px; }
.sb-form .sb-buy { --img: url(../assets/skin/default/Btn_Buy_1.png); --w: 56px; --h: 20px; }
.ss-form .ss-ok { --img: url(../assets/skin/default/btn_ok_1.png); --w: 56px; --h: 20px; }
.ss-form .ss-grid, .st2-form .st2-grid { width: 170px; height: 340px; cursor: pointer; }
.ss-grid > .bag-item, .st2-grid > .bag-item { position: absolute; }

/* ══ 交易物品 (social.js / ui.renderTrade): Form_TradeItem_1, built 401×481 (aLogin 0x37ed64) — the partner's offer
   5×4 from (24,69) and gold (92,213), mine 5×4 from (24,250) and the gold edit (92,390), my bag 5×10 from (206,68);
   確定 (100,445), 交易 (174,445), 取消 (250,445), the corner (352,25). ════════════════════════════════════════════════ */
#win-trade { --fw: 401px; --fh: 481px; --fbg: url(../assets/skin/white/Form_TradeItem_1.png); --cx: 352px; --cy: 25px; }
#trade-partner { left: 92px; top: 43px; width: 160px; height: 20px; line-height: 20px; color: #080808; white-space: nowrap; overflow: hidden; }
#win-trade .ti-grid { width: 170px; height: 136px; }
#trade-theirs { left: 24px; top: 69px; }
#trade-mine { left: 24px; top: 250px; cursor: pointer; }
#win-trade .ti-grid > .bag-item, #win-trade .ti-bag > .bag-item { position: absolute; }
#trade-their-gold { left: 92px; top: 213px; width: 100px; height: 24px; line-height: 24px; }
#trade-gold { left: 92px; top: 390px; width: 100px; height: 24px; padding: 0 3px; border: 0; border-radius: 0; background: transparent; color: #080808; line-height: 24px; text-align: right; outline: none; }   /* the picture's white box is its right part */
#trade-bag { left: 206px; top: 68px; width: 170px; height: 340px; cursor: pointer; }
#win-trade .ti-ok-off, #win-trade .ti-trade-off { width: 56px; height: 20px; pointer-events: none !important; }
#win-trade .ti-ok-off { left: 100px; top: 445px; background: url(../assets/skin/default/icon_Confirm_1.png) 0 0 no-repeat; }
#win-trade .ti-trade-off { left: 174px; top: 445px; background: url(../assets/skin/default/icon_trade_1.png) 0 0 no-repeat; }
#trade-confirm { left: 100px; top: 445px; --img: url(../assets/skin/default/Btn_confirm_1.png); --w: 56px; --h: 20px; }
#trade-trade { left: 174px; top: 445px; --img: url(../assets/skin/default/Btn_Trade_2.png); --w: 56px; --h: 20px; }
#trade-cancel { left: 250px; top: 445px; --img: url(../assets/skin/default/Btn_Cancel_1.png); --w: 56px; --h: 20px; }
#win-trade .sbtn.hidden { display: none; }

/* ══ 世界地圖 (mod_worldmap): GlobaMap 667×538 at the screen's (30,30) (aLogin 0x220ac0), Btn_Close_s_3 (647,3),
   40 GlobaBtn wheels 18×17 (normal / under the mouse stacked). ═════════════════════════════════════════════════════ */
#win-worldmap { --fw: 667px; --fh: 538px; --fbg: url(../assets/skin/white/GlobaMap.png); --cx: 647px; --cy: 3px; }
#win-worldmap .win-close { --img: url(../assets/skin/default/btn_close_s_3.png); }
.wm-form .wm-wheel { --img: url(../assets/skin/default/GlobaBtn.png); --w: 18px; --h: 17px; }
.wm-form .wm-wheel:active { background-position: 0 -17px; }

/* ══ 世界地圖 (mod_worldmap): GlobaMap 667×538 at the screen's (30,30) (aLogin 0x220ac0), Btn_Close_s_3 (647,3),
   40 GlobaBtn wheels 18×17 (normal / under the mouse stacked). ═════════════════════════════════════════════════════ */
#win-worldmap { --fw: 667px; --fh: 538px; --fbg: url(../assets/skin/white/GlobaMap.png); --cx: 647px; --cy: 3px; }
.wm-form .wm-wheel { --img: url(../assets/skin/default/GlobaBtn.png); --w: 18px; --h: 17px; }
.wm-form .wm-wheel:active { background-position: 0 -17px; }
