/* =====================================================================
 * cophong.css — GIAO DIỆN KIẾM HIỆP CỔ PHONG (Wave 10.7.3 · Mẫu I "Trầm gỗ cổ đồng")
 * Khung gỗ trầm chạm hồi văn · góc đồng cổ · tua đỏ · biển hiệu sơn son chữ vàng · nút lục giác gỗ · thẻ vật phẩm giấy dó.
 * Nạp SAU style.css / mimo-ui.css / mimo-party.css. Hình khung: img/cophong/*.svg. Phông: fonts/cophong/.
 * ===================================================================== */
@font-face{font-family:"ThuPhap";src:url(fonts/cophong/thuphap-viet-700.woff2) format("woff2");font-weight:600 900;font-display:swap}
@font-face{font-family:"ThuPhap";src:url(fonts/cophong/thuphap-viet-400.woff2) format("woff2");font-weight:100 500;font-display:swap}
@font-face{font-family:"ThuPhapHan";src:url(fonts/cophong/thuphap-han.woff2) format("woff2");font-display:swap}
:root{
  --cp-mount:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='2.2'/%3E%3C/filter%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23c9b48a' stop-opacity='.0'/%3E%3Cstop offset='.55' stop-color='%23c9b48a' stop-opacity='.07'/%3E%3Cstop offset='1' stop-color='%23c9b48a' stop-opacity='.0'/%3E%3C/linearGradient%3E%3C/defs%3E %3Cpath filter='url(%23b)' fill='%23cbb994' fill-opacity='.07' d='M0 150 C60 120 90 70 140 85 C180 96 200 40 250 55 C300 70 320 120 370 110 C420 100 440 30 500 45 C560 60 580 115 640 105 C700 95 730 60 800 80 L800 220 L0 220Z'/%3E %3Cpath filter='url(%23b)' fill='%230a0603' fill-opacity='.55' d='M0 175 C70 150 110 115 170 130 C220 142 250 95 300 110 C360 128 390 165 450 150 C510 135 540 95 600 112 C660 128 700 165 800 140 L800 220 L0 220Z'/%3E %3Cpath filter='url(%23b)' fill='%23000' fill-opacity='.65' d='M0 200 C90 182 150 160 230 175 C300 188 360 170 430 180 C520 193 600 165 690 178 C740 185 770 182 800 176 L800 220 L0 220Z'/%3E %3Crect x='0' y='95' width='800' height='60' fill='url(%23f)'/%3E%3C/svg%3E");
  --cp-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .72 0 0 0 0 .5 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --cp-brush:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath fill='%23b38f55' d='M2 8 C40 3 90 5 150 6 C210 7 260 4 298 7 C260 10 210 11 150 10 C90 9 40 12 2 8Z' opacity='.85'/%3E%3Ccircle cx='150' cy='7.5' r='2.4' fill='%237c2226'/%3E%3C/svg%3E");
  --cp-wood:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .35' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .12 0 0 0 0 .06 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='240' height='60' filter='url(%23w)'/%3E%3C/svg%3E");
  --cp-title:"ThuPhap",var(--font-title);
  --cp-gold:#f0d58f; --cp-bz:#b08646; --cp-bz2:#7a5428; --cp-bzhi:#e0bb72;
  --cp-btn:linear-gradient(180deg,#5e3e26 0%,#3e2817 55%,#2a190d 100%);
  --cp-btn-hi:linear-gradient(180deg,#70492c 0%,#4b301b 55%,#321e10 100%);
  --cp-red:linear-gradient(180deg,#ad3330 0%,#7e1d1e 58%,#5c1214 100%);
  --cp-paper:linear-gradient(180deg,#efdfba 0%,#e3cfa2 55%,#d6bd88 100%);
  /* cửa sổ: kích thước cố định */
  --mw:min(720px,calc(100% - 70px)); --mh:min(600px,calc(100% - 90px)); --mf:30px;
}
html body,html body button,html body input,html body select,html body textarea{font-family:var(--font)}
html body{background:radial-gradient(ellipse at 50% 30%,#2a1d13 0%,#120c07 60%,#070402 100%)}

/* =============== CỬA SỔ: khung gỗ trầm, góc đồng, tua đỏ =============== */
html body #modal{background:radial-gradient(ellipse at 50% 45%,#0b0704a6,#000000e0)}
html body:not(.afkchat) #modal:not(.hidden){display:flex;align-items:center;justify-content:center}
html body:not(.afkchat) #modal .mbox{
  display:flex;flex-direction:column;position:relative;overflow:visible;
  width:var(--mw);height:var(--mh);max-width:none;max-height:none;min-height:0;
  border:var(--mf) solid transparent;border-radius:0;border-image:url(img/cophong/frame.svg) 44 / var(--mf) round;
  padding:2px 2px 2px;
  background:var(--cp-mount) no-repeat 50% 100%/100% 30%,var(--cp-grain),radial-gradient(ellipse at 50% 0,#4a301d55,transparent 60%),linear-gradient(180deg,#24170e,#170e07 70%,#120a05);
  background-clip:padding-box;
  box-shadow:inset 0 0 0 1px #000,inset 0 0 28px #000d,0 26px 50px #000e;
}
html body:not(.afkchat) #modal .mbox:has(.iwin),html body:not(.afkchat) #modal .mbox:has(.lootwin),html body:not(.afkchat) #modal .mbox:has(.questwin){--mw:min(980px,calc(100% - 70px));--mh:min(660px,calc(100% - 90px))}
html body:not(.afkchat) #modal .mbox #mBody{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;position:relative;z-index:1;padding:0 6px 6px}
/* tua đỏ hai góc dưới */
html body:not(.afkchat) #modal .mbox::after{content:"";position:absolute;left:calc(-1 * var(--mf) + 3px);right:calc(-1 * var(--mf) + 3px);bottom:-100px;height:84px;pointer-events:none;
  background:url(img/cophong/tassel.svg) 0 0/26px 84px no-repeat,url(img/cophong/tassel.svg) 100% 0/26px 84px no-repeat;filter:drop-shadow(0 4px 4px #000a)}
/* chữ Hán thư pháp chìm theo cửa sổ */
html body:not(.afkchat) #modal .mbox::before{content:var(--wm,"武");position:absolute;right:14px;bottom:4px;font:170px/1 "ThuPhapHan",serif;color:#d9b46a;opacity:.05;pointer-events:none;z-index:0}
html body #modal .mbox:has(.ktcwin){--wm:"珍"} html body #modal .mbox:has(.mkwin){--wm:"市"} html body #modal .mbox:has(.mlwin){--wm:"信"}
html body #modal .mbox:has(.rankwin){--wm:"榜"} html body #modal .mbox:has(.tmwin){--wm:"马"} html body #modal .mbox:has(.tkwin){--wm:"剑"}
/* nút đóng: núm đồng tròn đè lên góc khung */
html body #modal .mbox .mx,html body #modal .mbox #mClose,html body #modal .mbox:has(.cwin) .mx{position:absolute;top:calc(-1 * var(--mf) + 2px);right:calc(-1 * var(--mf) + 2px);z-index:8;
  width:40px;height:40px;padding:0;border:0;border-radius:50%;background:url(img/cophong/close.svg) center/100% 100% no-repeat;font-size:0;color:transparent;box-shadow:0 3px 6px #000c;cursor:pointer;transition:filter .2s}
html body #modal .mbox .mx:hover{filter:brightness(1.18)}

/* =============== BIỂN HIỆU TIÊU ĐỀ: sơn son, viền đồng, chữ vàng thư pháp, mây đồng hai bên =============== */
html body #mBody>div>h3:first-child,html body #mBody>h3:first-child,html body #mBody .cwt{
  position:sticky;top:0;z-index:5;display:block;width:fit-content;max-width:calc(100% - 100px);margin:0 auto 8px;padding:2px 24px 4px;
  font:700 21px/1.2 var(--cp-title);color:var(--cp-gold);letter-spacing:.5px;text-align:center;text-shadow:0 2px 0 #3a0809,0 0 6px #000;
  background:var(--cp-red);border:1px solid #160303;border-radius:2px;
  box-shadow:inset 0 0 0 1px var(--cp-bzhi),inset 0 0 0 3px #5a1214,inset 0 0 0 4px var(--cp-bz),inset 0 8px 14px #ffffff12,0 5px 10px #000b}
html body #mBody>div>h3:first-child::before,html body #mBody>div>h3:first-child::after,html body #mBody>h3:first-child::before,html body #mBody>h3:first-child::after,html body #mBody .cwt::before,html body #mBody .cwt::after{
  content:"";position:absolute;top:50%;width:40px;height:31px;margin-top:-15.5px;background:url(img/cophong/wing.svg) center/100% 100% no-repeat;pointer-events:none;filter:drop-shadow(0 2px 2px #000a)}
html body #mBody>div>h3:first-child::before,html body #mBody>h3:first-child::before,html body #mBody .cwt::before{left:-34px;transform:scaleX(-1)}
html body #mBody>div>h3:first-child::after,html body #mBody>h3:first-child::after,html body #mBody .cwt::after{right:-34px}
html body #mBody>div>h3:first-child small,html body #mBody>h3:first-child small{display:block;font:12px/1.3 var(--font);color:#f0d58fb3;text-shadow:none;letter-spacing:0}
/* tiêu đề phụ */
html body #mBody h3:not(:first-child),html body #mBody h4{font:700 16px/1.25 var(--cp-title);color:#e2c582;margin:8px 0 4px;padding:0 0 4px;border:0;background:var(--cp-brush) no-repeat 0 100%/150px 6px;text-shadow:0 1px 2px #000}

/* =============== NÚT: tấm gỗ viền đồng; nút chính: sơn son =============== */
html body .btn{border:1px solid #9c7a44;border-radius:3px;background:var(--cp-btn);color:#f0dcae;font-weight:600;letter-spacing:.2px;text-shadow:0 1px 1px #000;
  box-shadow:inset 0 1px 0 #ffe7b02e,inset 0 0 0 1px #0007,0 2px 3px #0009;transition:filter .2s,background .2s}
html body .btn:hover:not([disabled]){background:var(--cp-btn-hi);border-color:var(--cp-bzhi)}
html body .btn:active:not([disabled]){transform:translateY(1px);filter:brightness(.94)}
html body .btn.g,html body .btn.red,html body .ktcbuy .btn.g{background:var(--cp-red);border-color:var(--cp-bzhi);color:#fbe7b8;box-shadow:inset 0 1px 0 #ffffff2a,inset 0 0 0 1px #3a0507,0 2px 3px #0009}
html body .btn.g:hover:not([disabled]),html body .btn.red:hover:not([disabled]){background:var(--cp-red);filter:brightness(1.12)}
html body .btn[disabled]{filter:grayscale(.55) brightness(.78)}

/* =============== THẺ (TAB) =============== */
html body .rktabs button,html body .ktctabs button,html body .dtabs button,html body .sktabs button{border:1px solid #6e5030;border-radius:3px;background:var(--cp-btn);color:#d9c49a;
  box-shadow:inset 0 1px 0 #ffffff12,inset 0 0 0 1px #0008;font:600 13.5px/1.2 var(--font);padding:4px 8px;letter-spacing:.2px;transition:filter .2s}
html body .rktabs button:hover,html body .ktctabs button:hover,html body .dtabs button:hover{filter:brightness(1.14)}
html body .rktabs button.on,html body .ktctabs button.on,html body .dtabs button.on,html body .sktabs button.on{background:var(--cp-btn-hi);border-color:var(--cp-bzhi);color:var(--cp-gold);
  box-shadow:inset 0 0 10px #e0bb7233,inset 0 0 0 1px #0008,0 0 0 1px #000}
html body .rktabs.rksub button{font-size:12.5px}
/* khay đựng (vùng lõm bên trong) */
html body .ktcbody .ktcgrid{padding:5px;border:1px solid #5c4226;background:#120a05b3;box-shadow:inset 0 0 0 1px #000,inset 0 6px 18px #000c}

/* =============== THẺ VẬT PHẨM: giấy dó viền đồng (icon giữ nguyên) =============== */
html body .ktcit,html body .mkit,html body .mkmat,html body .mlit,html body .tmcard:not(.tmtop){border:1px solid #7a5a30;border-radius:3px;background:var(--cp-grain),var(--cp-paper);color:#3b2312;
  box-shadow:inset 0 0 0 1px #fff3d699,inset 0 0 14px #9b7a4a66,0 2px 4px #000a;text-shadow:none}
html body .ktcit b,html body .mkit b,html body .mlit b,html body .tmcard:not(.tmtop) b{color:#3b2312}
html body .ktcit small,html body .ktcit .dim,html body .mkit small,html body .mkit .dim,html body .mlit small,html body .mlit .dim,html body .tmcard:not(.tmtop) small{color:#6b4e2e}
html body .ktcit .ktcps,html body .ktcit .ktcps b,html body .mkit .mkp,html body .mkit .mkp b{color:#4a2a10;font-weight:700}
html body .ktcit em,html body .mkit em{color:#5a3e22;font-style:normal} html body .ktcit em.up,html body .mkit em.up,html body .ktcit .cg{color:#24611f;font-weight:600}
html body .ktcit:hover,html body .mkit:hover,html body .mkmat:hover,html body .mlit:hover,html body .tmcard:not(.tmtop):hover{border-color:#b08646;filter:brightness(1.05)}
html body .ktcit.poor{filter:saturate(.6) brightness(.82)}
html body .ktcit i img,html body .mkit i img{filter:drop-shadow(0 2px 2px #0007)}
html body .ktcbox,html body .mkbox{border:1px solid #9c7a44;border-radius:3px;background:var(--cp-grain),linear-gradient(180deg,#2c1d12,#170f08);box-shadow:inset 0 0 0 1px #000,0 0 0 4px #1a0f07,0 0 0 5px #7a5428,0 16px 30px #000c}
html body .ktcbuy{background:#000b}
/* ô hành trang: ô vuông cổ */
html body .it{border-radius:2px;border-color:#5e4626;background:radial-gradient(ellipse at 50% 40%,#2c1e13,#0d0805)}
html body .ivgrid{background:#0b0704;border-color:#4a3727;box-shadow:inset 0 0 10px #000}
/* thẻ nội dung chung */
html body #mBody .card,html body .rkrow,html body .warcity,html body .qrow,html body .todo{border-radius:2px;border:1px solid #5a4126;background:linear-gradient(180deg,#22170ecc,#140c06d9);box-shadow:inset 0 0 0 1px #00000080,inset 0 0 12px #0008}

/* =============== Ô NHẬP · THANH CUỘN · ĐƯỜNG CHIA =============== */
html body input[type=number],html body input[type=text],html body input[type=password],html body select,html body textarea{border-radius:2px;border:1px solid #6b4f2c;background:#0e0905;color:var(--parch);box-shadow:inset 0 1px 3px #000}
html body *{scrollbar-width:thin;scrollbar-color:#7a5a36 #00000000}
html body ::-webkit-scrollbar{width:7px;height:7px}
html body ::-webkit-scrollbar-track{background:#0d0804;border-left:1px solid #2a1b0e}
html body ::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#4e3925,#7d5d3a,#4e3925);border:1px solid #1e1209;border-radius:1px}
html body hr{border:0;height:8px;background:var(--cp-brush) no-repeat 50% 50%/80% 100%;margin:8px 0}

/* =============== NÚT TÍNH NĂNG: lục giác gỗ viền đồng, chia nhóm =============== */
html body .fgrp{display:flex;align-items:center;justify-content:center;gap:8px;margin:6px 4px 4px;font:700 16px/1 var(--cp-title);color:var(--cp-gold);text-shadow:0 1px 2px #000}
html body .fgrp::before,html body .fgrp::after{content:"";flex:1;height:7px;background:linear-gradient(90deg,transparent,#b08646 60%,#e0bb72) center/100% 1px no-repeat}
html body .fgrp::after{transform:scaleX(-1)}
html body .fgrp:first-child{margin-top:2px}
html body .feats{display:grid;grid-template-columns:repeat(5,1fr);gap:4px 4px;margin-bottom:2px;padding:0 2px}
html body .feat{position:relative;aspect-ratio:5/6;min-height:0;height:auto;padding:9% 5% 14%;gap:1px;border:0;border-radius:0;box-shadow:none;
  background:url(img/cophong/hex.svg) center/100% 100% no-repeat;filter:drop-shadow(0 3px 3px #000b);transition:filter .2s,transform .15s}
html body .feat:hover,html body .feat:focus,html body .feat:focus-visible{outline:0;border:0;box-shadow:none;background:url(img/cophong/hex.svg) center/100% 100% no-repeat;filter:drop-shadow(0 3px 3px #000b) brightness(1.15)}
html body .feat:active{transform:translateY(1px)}
html body .feat i{font-size:32px;line-height:1.05}
html body .feat i img.featimg{display:block;width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 1px 2px #000)}
html body .feat span{font:600 11px/1.15 var(--font);color:#f0dcae;text-shadow:0 1px 1px #000;letter-spacing:.1px}
html body .feat em{top:1px;right:4%;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:radial-gradient(circle at 40% 35%,#e0473a,#8e1612);border:1px solid var(--cp-bzhi);color:#fff4d6;font:700 10px/16px var(--font);box-shadow:0 1px 3px #000}

/* =============== MÀN HÌNH CHÍNH =============== */
html body #top{background:var(--cp-wood),linear-gradient(180deg,#3d2a1c,#24180f 70%,#1a110a);border-bottom:1px solid #9c7a44;box-shadow:0 1px 0 #000,0 6px 12px #0009}
html body #tabs{background:var(--cp-wood),linear-gradient(180deg,#33231a,#1a110a);border-top:1px solid #9c7a44;box-shadow:0 -4px 10px #0008}
html body #tabs button{font-family:var(--cp-title);font-weight:700;font-size:15px;color:#d9c49a}
html body #tabs button.on{color:var(--cp-gold);background:radial-gradient(ellipse at 50% 100%,#8a2a2b66,transparent 70%)}
html body #panel{background:var(--cp-mount) no-repeat 50% 100%/100% 160px,var(--cp-grain),linear-gradient(180deg,#1c130c,#130c07)}
/* PC: thanh menu dưới phải -> khay gỗ, ô gỗ viền đồng */
html body.pc #pcMenu{padding:6px;border:1px solid #9c7a44;border-radius:3px;background:var(--cp-wood),linear-gradient(180deg,#33231a,#1a110a);box-shadow:inset 0 0 0 1px #000,0 4px 10px #000a}
html body #pcMenu button{border:1px solid #7a5a30;border-radius:2px;background:var(--cp-btn);box-shadow:inset 0 1px 0 #ffe7b02a,inset 0 0 0 1px #0008}
html body #pcMenu button:hover{border-color:var(--cp-bzhi);filter:brightness(1.12)}

/* thẻ vật phẩm: hình to, đệm gọn */
html body .ktcit{padding:5px 4px 4px;gap:1px;min-height:0}
html body .ktcit i,html body .ktchead i{height:56px}
html body .ktcit i img,html body .ktchead i img{width:54px;height:54px}
html body .ktcit i{font-size:38px}
html body .mkit{padding:4px 6px;gap:6px;grid-template-columns:50px 1fr auto}
html body .mkit i,html body .mkit i img{width:50px;height:50px}
html body .mlit{padding:5px 7px}

/* =============== KHU TRÊN MÀN HÌNH: gom gọn =============== */
html body #brandMark,html body #mainSk{display:none!important}
html body #jxDockL{position:absolute;left:6px;top:6px;z-index:5;display:flex;gap:4px;align-items:center}
html body #jxDockC{position:absolute;left:50%;top:6px;transform:translateX(-50%);z-index:4;display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:none}
html body #jxDockC>*{pointer-events:auto}
html body #jxDockL:empty,html body #jxDockC:empty{display:none}
html body #jxDockL>#chanTag,html body #jxDockL>#pkBtn,html body #jxDockC>#onlineTag,html body #jxDockC>#modTag,html body #jxDockC>#mailTag{position:static!important;transform:none!important;left:auto;top:auto!important;margin:0}
html body #chanTag,html body #pkBtn,html body #onlineTag,html body #modTag,html body #mailTag{height:20px;padding:0 8px;border:1px solid #7a5a30;border-radius:2px;background:#140c06d9;box-shadow:inset 0 0 0 1px #000;font:600 11px/18px var(--font);color:#e2cf9f;white-space:nowrap}
html body #modTag{color:var(--cp-gold)}
html body #mailTag{color:#f6d36b;border-color:#b08646;cursor:pointer}
html body #mailTag[hidden],html body #modTag[hidden],html body #onlineTag[hidden],html body #chanTag[hidden],html body #pkBtn[hidden]{display:none!important}
html body #buffBar{top:32px!important;left:6px!important}
html body #chanPick,html body #pkMenu{left:6px!important;top:32px!important;transform:none!important}
body.pc #jxDockL{left:8px;top:8px}
body.pc #jxDockC{top:60px;flex-direction:row;gap:6px}
body.pc #buffBar{top:36px!important;left:8px!important}
body.pc #chanPick,body.pc #pkMenu{left:8px!important;top:36px!important}
body.pc #pcTop{top:150px}
/* trùng chức năng với lưới Tính năng -> ẩn ở mục Khác */
html body #bRank,html body #bFb,html body #bStashM,html body #bCodex{display:none!important}

/* =============== LÒ RÈN: hiệu ứng búa đập (kết quả do máy chủ gửi) =============== */
html body #mBody .btn.fwait{pointer-events:none;filter:grayscale(.5) brightness(.8)}
html body .fhammer{position:absolute;left:50%;top:42%;z-index:20;display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;transform:translate(-50%,-50%);animation:fhIn 1.1s ease-out forwards}
html body .fhammer i{font-style:normal;font-size:64px;line-height:1;transform-origin:80% 80%;animation:fhHit .45s ease-in 2;filter:drop-shadow(0 4px 6px #000)}
html body .fhammer b{font:700 22px/1 var(--cp-title);text-shadow:0 2px 3px #000,0 0 10px #000}
html body .fhammer.ok b{color:#ffd76a} html body .fhammer.fail b{color:#c9c2b2} html body .fhammer.hot b{color:#ff7a4a}
html body .fhammer.ok::after{content:"";position:absolute;inset:-30px;border-radius:50%;background:radial-gradient(circle,#ffd76a66,transparent 65%);animation:fhGlow .9s ease-out}
@keyframes fhHit{0%{transform:rotate(-35deg)}60%{transform:rotate(25deg)}100%{transform:rotate(-35deg)}}
@keyframes fhIn{0%{opacity:0;transform:translate(-50%,-40%) scale(.8)}15%{opacity:1;transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-60%)}}
@keyframes fhGlow{from{opacity:1;transform:scale(.4)}to{opacity:0;transform:scale(1.4)}}
html body.fx-off .fhammer i{animation:none}

/* =============== ĐIỆN THOẠI: cửa sổ cố định, khung mảnh hơn =============== */
@media (max-width:600px){
  :root{--mw:100%;--mh:calc(100% - 80px);--mf:20px}
  html body:not(.afkchat) #modal{padding:6px}
  html body:not(.afkchat) #modal .mbox{padding:2px 1px 1px}
  html body:not(.afkchat) #modal .mbox:has(.iwin),html body:not(.afkchat) #modal .mbox:has(.lootwin),html body:not(.afkchat) #modal .mbox:has(.questwin){--mw:100%;--mh:calc(100% - 80px)}
  html body:not(.afkchat) #modal .mbox::after{display:none}
  html body:not(.afkchat) #modal .mbox #mBody{padding:0 4px 4px}
  html body #modal .mbox .mx,html body #modal .mbox #mClose,html body #modal .mbox:has(.cwin) .mx{width:30px;height:30px;top:-16px;right:-16px}
  html body #mBody>div>h3:first-child,html body #mBody>h3:first-child,html body #mBody .cwt{font-size:19px;padding:2px 20px 3px;max-width:calc(100% - 76px)}
  html body #mBody>div>h3:first-child::before,html body #mBody>div>h3:first-child::after,html body #mBody>h3:first-child::before,html body #mBody>h3:first-child::after,html body #mBody .cwt::before,html body #mBody .cwt::after{width:30px;height:23px;margin-top:-11.5px}
  html body #mBody>div>h3:first-child::before,html body #mBody>h3:first-child::before,html body #mBody .cwt::before{left:-26px}
  html body #mBody>div>h3:first-child::after,html body #mBody>h3:first-child::after,html body #mBody .cwt::after{right:-26px}
  html body:not(.afkchat) #modal .mbox::before{font-size:120px}
  html body .feat i{font-size:30px}
  html body .feat span{font-size:10.5px}
}
