/* === THQ FULL VIETNAMESE FONT START === */
@font-face {
  font-family: 'THQVN';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vl-codien-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'THQVN';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vl-codien-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'THQVN';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vl-codien-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'THQVN';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vl-codien-700-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'THQVN';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vl-codien-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'THQVN';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vl-codien-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* === THQ FULL VIETNAMESE FONT END === */

/* === VO LAM FONT SYSTEM START === */
/* vietnamese */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-condensed-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-condensed-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-condensed-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/roboto-condensed-600-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/roboto-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/roboto-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-condensed-700-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-condensed-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-condensed-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vl-font: "Roboto Condensed", Arial, sans-serif, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji";
  --vl-font-lg: "Roboto Condensed", Arial, sans-serif, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji";
  --vl-title-font: var(--vl-font);
}
/* === VO LAM FONT SYSTEM END === */

html,body{position:fixed;left:0;top:0;right:0;bottom:0;margin:0;width:100%;height:100%;background:#020308;overflow:hidden;overscroll-behavior:none;touch-action:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;font-family:var(--vl-font)}
canvas{position:fixed;left:0;top:0;width:100%;height:100%;display:block;touch-action:none;outline:none}
#hud{pointer-events:none}
#load{position:fixed;left:0;top:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#e8b04a;font:700 22px/1.5 var(--vl-font);letter-spacing:.03em;pointer-events:none}
#load small{color:#a79e8a;font-weight:400;font-size:14px;letter-spacing:.01em}
#safe{position:fixed;left:0;top:0;width:0;height:0;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}

/* === KINH MACH UI === */
#km-root{position:fixed;inset:0;pointer-events:none;z-index:40;font-family:var(--vl-font);color:#efe4cd}
#km-fab{pointer-events:auto;position:fixed;left:max(12px,env(safe-area-inset-left,12px));bottom:max(66px,calc(env(safe-area-inset-bottom,0px) + 64px));display:flex;align-items:center;gap:7px;padding:7px 12px;border:2px solid #6b563a;border-radius:6px;background:rgba(12,15,24,.90);color:#efe4cd;font:600 13px/1 var(--vl-font);cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.55);transition:border-color .15s,transform .12s,background .15s}
#km-fab:hover{border-color:#e8b04a;background:rgba(24,28,42,.96)}
#km-fab:active{transform:translateY(1px)}
#km-fab .km-ic{color:#e8b04a;font-size:14px}
#km-fab .km-qi{color:#6fe3c1;font-weight:700;background:rgba(111,227,193,.12);padding:2px 6px;border-radius:4px;font-size:12px}
#km-fab .km-dot{display:none;width:8px;height:8px;border-radius:50%;background:#ff8a3c;box-shadow:0 0 8px #ff8a3c}
#km-fab.can-up{border-color:#e8b04a}
#km-fab.can-up .km-dot{display:inline-block}

#km-toast{position:fixed;left:50%;top:max(92px,calc(env(safe-area-inset-top,0px) + 88px));transform:translate(-50%,-10px);opacity:0;pointer-events:none;background:rgba(12,16,26,.92);border:1.5px solid #6fe3c1;color:#d6fff2;padding:7px 14px;border-radius:6px;font:600 13px/1.3 var(--vl-font);box-shadow:0 6px 20px rgba(0,0,0,.5);transition:opacity .25s,transform .25s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
#km-toast.show{opacity:1;transform:translate(-50%,0)}

#km-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(3,5,10,.72);backdrop-filter:blur(3px);pointer-events:auto;touch-action:pan-y}
#km-modal.open{display:flex}
.km-box{width:min(760px,100%);max-height:88vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(13,16,26,.97);border:2px solid #8a6c40;border-radius:10px;padding:16px;box-shadow:0 18px 50px rgba(0,0,0,.78);box-sizing:border-box}
.km-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(232,176,74,.22)}
.km-title{font-size:18px;font-weight:700;color:#e8b04a;letter-spacing:.03em}
.km-rank{font-size:12.5px;color:#b8ae99;margin-top:3px}
.km-head-r{display:flex;align-items:center;gap:10px}
.km-qi-pill{display:flex;align-items:center;gap:7px;background:rgba(111,227,193,.11);border:1px solid rgba(111,227,193,.38);padding:5px 11px;border-radius:6px;font-size:12.5px;color:#b8f5e3}
.km-qi-pill b{font-size:16px;color:#6fe3c1}
.km-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}
.km-close:hover{border-color:#e8b04a;color:#ffd9a8}

.km-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}
.km-stats>div{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-radius:6px;padding:7px 9px;text-align:center}
.km-stats span{display:block;font-size:11px;color:#9d9482}
.km-stats b{display:block;font-size:15px;color:#efe4cd;margin-top:2px}

.km-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.km-card{background:rgba(22,26,39,.92);border:1.5px solid #443b30;border-radius:8px;padding:11px 12px;display:flex;flex-direction:column;gap:6px}
.km-card.ready{border-color:#8a6d3c}
.km-card.maxed{border-color:#4d7a58;background:rgba(22,34,29,.88)}
.km-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.km-name{font-size:14.5px;font-weight:700;color:#ffd9a8}
.km-sub{font-size:12px;font-weight:500;color:#9f9684}
.km-lv{font-size:12px;color:#c9bfa9;margin-top:2px}
.km-up-btn{flex-shrink:0;padding:6px 10px;border-radius:6px;border:1.5px solid #4d4336;background:#1e2230;color:#8e877a;font:600 12px/1 var(--vl-font);cursor:pointer;white-space:nowrap}
.km-up-btn.is-can{border-color:#e8b04a;background:linear-gradient(180deg,#523c1b,#34240f);color:#ffe5b0}
.km-up-btn.is-can:hover{background:linear-gradient(180deg,#6b4e22,#442f13)}
.km-up-btn.is-max{border-color:#5b8f67;background:rgba(91,143,103,.18);color:#9fd08a;cursor:default}
.km-bar{height:5px;background:rgba(0,0,0,.45);border-radius:3px;overflow:hidden}
.km-bar i{display:block;height:100%;background:linear-gradient(90deg,#c9862d,#ffd275)}
.km-desc{font-size:12.5px;color:#efe4cd}
.km-next{font-size:11.5px;color:#9fd08a}

.km-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.km-tip{font-size:12px;color:#a79e8a}
.km-tip b{color:#efe4cd}
.km-actions{display:flex;flex-wrap:wrap;gap:8px}
.km-btn{padding:6px 10px;border:1.5px solid #564a3a;border-radius:6px;background:rgba(28,31,44,.9);color:#ddd2bc;font:600 12px/1 var(--vl-font);cursor:pointer}
.km-btn:hover:not(:disabled){border-color:#e8b04a;color:#fff}
.km-btn:disabled{opacity:.42;cursor:default}
.km-btn.warn{border-color:#e5553c;background:rgba(229,85,60,.2);color:#ff9a88}

@media (max-width:640px){
  .km-grid{grid-template-columns:1fr}
  .km-stats{grid-template-columns:repeat(2,1fr)}
  .km-box{padding:12px}
  .km-title{font-size:16px}
  #km-fab{bottom:max(72px,calc(env(safe-area-inset-bottom,0px) + 70px));padding:7px 10px;font-size:12px}
}

/* === VO CONG UI === */
#vc-root{position:fixed;inset:0;pointer-events:none;z-index:42;font-family:var(--vl-font);color:#efe4cd}

#vc-aim{position:fixed;inset:0;display:none;cursor:crosshair;pointer-events:auto;background:rgba(255,110,40,.06)}
#vc-aim.active{display:block}
.vc-aim-bar{position:fixed;left:50%;top:max(92px,calc(env(safe-area-inset-top,0px) + 88px));transform:translateX(-50%);background:rgba(16,12,12,.92);border:1.5px solid #ff8a3c;color:#ffe2c2;padding:7px 14px;border-radius:7px;font:600 12.5px/1.35 var(--vl-font);text-align:center;max-width:92vw;box-shadow:0 6px 20px rgba(0,0,0,.55);pointer-events:none}

#vc-bar{pointer-events:auto;position:fixed;right:max(12px,env(safe-area-inset-right,12px));bottom:max(66px,calc(env(safe-area-inset-bottom,0px) + 64px));display:flex;gap:8px;transition:opacity .2s}
#vc-bar.dimmed{opacity:.45;pointer-events:none}
.vc-sk{position:relative;overflow:hidden;width:68px;height:62px;padding:4px 3px;border:2px solid #6b563a;border-radius:8px;background:rgba(12,15,24,.92);color:#efe4cd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.55);transition:border-color .15s,transform .12s,box-shadow .15s}
.vc-sk:hover:not(.cooling){border-color:var(--sk-col);transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.65)}
.vc-sk.aiming{border-color:#ff8a3c;box-shadow:0 0 16px rgba(255,138,60,.8);background:rgba(46,24,14,.95)}
.vc-sk.buff-on{border-color:#ffd978;box-shadow:0 0 16px rgba(255,217,120,.75)}
.vc-sk.cooling{border-color:#3a352e;cursor:default}
.vc-key{position:absolute;top:3px;left:5px;font-size:10px;font-weight:700;color:#b8ae99}
.vc-ic{font-size:21px;line-height:1}
.vc-nm{font-size:10px;font-weight:600;color:#e6dcc6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62px}
.vc-cd-fill{position:absolute;left:0;right:0;bottom:0;height:0%;background:rgba(5,7,13,.76);pointer-events:none;transition:height .12s linear}
.vc-cd-txt{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#ffd9a8;text-shadow:0 1px 4px #000;pointer-events:none}

#vc-book-fab{pointer-events:auto;position:fixed;left:max(12px,env(safe-area-inset-left,12px));bottom:max(108px,calc(env(safe-area-inset-bottom,0px) + 106px));display:flex;align-items:center;gap:7px;padding:7px 12px;border:2px solid #6b563a;border-radius:6px;background:rgba(12,15,24,.90);color:#efe4cd;font:600 13px/1 var(--vl-font);cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.55);transition:border-color .15s,background .15s}
#vc-book-fab:hover{border-color:#e8b04a;background:rgba(24,28,42,.96)}
#vc-book-fab .vc-bk-cnt{color:#ffd978;background:rgba(232,176,74,.16);padding:2px 6px;border-radius:4px;font-size:12px}
#vc-book-fab.has-pending{border-color:#ffae42;box-shadow:0 0 14px rgba(255,174,66,.6);animation:vcPulse 1.3s infinite}
@keyframes vcPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}

#vc-banner{position:fixed;left:50%;top:max(130px,calc(env(safe-area-inset-top,0px) + 126px));transform:translate(-50%,-8px);opacity:0;pointer-events:none;background:rgba(12,15,24,.93);border:1.5px solid #e8b04a;color:#ffe5b0;padding:7px 15px;border-radius:7px;font:600 13px/1.3 var(--vl-font);box-shadow:0 6px 22px rgba(0,0,0,.55);transition:opacity .22s,transform .22s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
#vc-banner.show{opacity:1;transform:translate(-50%,0)}

#vc-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(3,5,10,.76);backdrop-filter:blur(3px);pointer-events:auto;touch-action:pan-y}
#vc-modal.open{display:flex}
.vc-box{width:min(820px,100%);max-height:88vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(13,16,26,.97);border:2px solid #967442;border-radius:10px;padding:16px;box-shadow:0 18px 50px rgba(0,0,0,.8);box-sizing:border-box}
.vc-box-sm{width:min(560px,100%)}
.vc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid rgba(232,176,74,.24);margin-bottom:14px}
.vc-title{font-size:18px;font-weight:700;color:#e8b04a;letter-spacing:.03em}
.vc-sub{font-size:12.5px;color:#b8ae99;margin-top:3px}
.vc-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}
.vc-close:hover{border-color:#e8b04a}

.vc-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.vc-card{text-align:left;background:linear-gradient(180deg,rgba(25,29,44,.96),rgba(16,19,30,.98));border:2px solid #554736;border-top:4px solid var(--vc-col);border-radius:9px;padding:14px;color:#efe4cd;cursor:pointer;display:flex;flex-direction:column;gap:10px;transition:transform .14s,border-color .14s,box-shadow .14s}
.vc-card:hover{transform:translateY(-3px);border-color:var(--vc-col);box-shadow:0 10px 24px rgba(0,0,0,.6)}
.vc-card-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700}
.vc-tag{color:var(--vc-col);background:rgba(255,255,255,.07);padding:2px 7px;border-radius:4px}
.vc-lv{color:#c9bfa9}
.vc-card-name{font-size:16px;font-weight:700;color:#ffe6b8;line-height:1.25}
.vc-card-desc{font-size:13px;line-height:1.45;color:#ddd2bc;flex:1}
.vc-card-cta{text-align:center;padding:7px 8px;border-radius:6px;background:rgba(232,176,74,.14);border:1px solid rgba(232,176,74,.45);color:#ffd98e;font-size:12px;font-weight:700}

.vc-empty{text-align:center;padding:24px 12px;color:#b8ae99;font-size:13.5px;line-height:1.6}
.vc-owned{display:flex;flex-direction:column;gap:8px}
.vc-own-item{background:rgba(24,28,42,.9);border:1px solid rgba(255,255,255,.08);border-left:4px solid #e8b04a;border-radius:6px;padding:9px 12px}
.vc-own-item b{color:#ffe2a8;font-size:14px}
.vc-own-item span{color:#6fe3c1;font-size:12px;margin-left:6px}
.vc-own-item p{margin:4px 0 0;font-size:12.5px;color:#cfc5b0}

@media (max-width:720px){
  .vc-cards{grid-template-columns:1fr}
  .vc-sk{width:56px;height:54px}
  .vc-ic{font-size:18px}
  .vc-nm{font-size:9px;max-width:52px}
  .vc-key{display:none}
  #vc-bar{bottom:max(72px,calc(env(safe-area-inset-bottom,0px) + 70px));gap:6px}
  #vc-book-fab{bottom:max(114px,calc(env(safe-area-inset-bottom,0px) + 112px));padding:6px 10px;font-size:12px}
}

/* === DO GIAM & NHAC NEN UI === */
#dg-root{position:fixed;inset:0;pointer-events:none;z-index:44;font-family:var(--vl-font);color:#efe4cd}
#dg-fab{pointer-events:auto;position:fixed;left:max(12px,env(safe-area-inset-left,12px));bottom:max(150px,calc(env(safe-area-inset-bottom,0px) + 148px));display:flex;align-items:center;gap:7px;padding:7px 12px;border:2px solid #6b563a;border-radius:6px;background:rgba(12,15,24,.90);color:#efe4cd;font:600 13px/1 var(--vl-font);cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.55);transition:border-color .15s,background .15s}
#dg-fab:hover{border-color:#e8b04a;background:rgba(24,28,42,.96)}
#dg-fab .dg-cnt{color:#ffd9a8;background:rgba(232,176,74,.14);padding:2px 6px;border-radius:4px;font-size:12px}
#dg-fab .dg-dot{display:none;width:8px;height:8px;border-radius:50%;background:#ff8a3c;box-shadow:0 0 8px #ff8a3c}
#dg-fab.has-rew{border-color:#e8b04a}
#dg-fab.has-rew .dg-dot{display:inline-block}

#dg-toast{position:fixed;left:50%;top:max(92px,calc(env(safe-area-inset-top,0px) + 88px));transform:translate(-50%,-10px);opacity:0;pointer-events:none;background:rgba(12,16,26,.94);border:1.5px solid #ffd978;color:#fff0c4;padding:7px 14px;border-radius:6px;font:600 13px/1.3 var(--vl-font);box-shadow:0 6px 20px rgba(0,0,0,.55);transition:opacity .25s,transform .25s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
#dg-toast.show{opacity:1;transform:translate(-50%,0)}

#dg-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(3,5,10,.76);backdrop-filter:blur(3px);pointer-events:auto;touch-action:pan-y}
#dg-modal.open{display:flex}
.dg-box{width:min(880px,100%);max-height:90vh;display:flex;flex-direction:column;background:rgba(13,16,26,.97);border:2px solid #8a6c40;border-radius:10px;padding:15px;box-shadow:0 18px 50px rgba(0,0,0,.82);box-sizing:border-box;overflow:hidden}
.dg-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(232,176,74,.22)}
.dg-title{font-size:18px;font-weight:700;color:#e8b04a;letter-spacing:.03em}
.dg-sub{font-size:12px;color:#b8ae99;margin-top:2px}
.dg-head-r{display:flex;align-items:center;gap:8px}
.dg-claim-all{padding:6px 11px;border:1.5px solid #e8b04a;border-radius:6px;background:linear-gradient(180deg,#59401c,#382710);color:#ffe7b5;font:600 12px/1 var(--vl-font);cursor:pointer}
.dg-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}
.dg-close:hover{border-color:#e8b04a}

.dg-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.dg-tabs button{padding:6px 11px;border:1.5px solid #4a4033;border-radius:6px;background:rgba(22,25,36,.9);color:#c7bda8;font:600 12px/1 var(--vl-font);cursor:pointer}
.dg-tabs button.on{border-color:#e8b04a;background:rgba(232,176,74,.16);color:#ffe4a8}

.dg-body{display:grid;grid-template-columns:250px 1fr;gap:12px;min-height:0;flex:1;overflow:hidden}
.dg-list{overflow-y:auto;-webkit-overflow-scrolling:touch;display:grid;grid-template-columns:1fr;gap:5px;padding-right:4px;align-content:start}
.dg-item{position:relative;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 10px;border:1.5px solid #3a342c;border-radius:6px;background:rgba(20,23,34,.9);color:#d7ccb6;font:600 12.5px/1.2 var(--vl-font);text-align:left;cursor:pointer}
.dg-item:hover{border-color:#8a6c40}
.dg-item.sel{border-color:#e8b04a;background:rgba(232,176,74,.14);color:#fff0cc}
.dg-item.lock{color:#787266}
.dg-item.boss .dg-it-nm{color:#ffb37a}
.dg-item.lock.boss .dg-it-nm{color:#8c6a55}
.dg-it-b{font-style:normal;font-size:9.5px;padding:2px 5px;border-radius:4px;background:rgba(255,138,60,.18);color:#ff9b57;border:1px solid rgba(255,138,60,.4)}
.dg-it-dot{width:7px;height:7px;border-radius:50%;background:#6fe3c1;box-shadow:0 0 6px #6fe3c1;flex-shrink:0}

.dg-detail{overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:12px;padding-right:2px}
.dg-stage{display:flex;flex-direction:column;align-items:center;background:radial-gradient(circle at 50% 62%,rgba(34,42,64,.85),rgba(11,14,22,.96));border:1.5px solid #493f32;border-radius:8px;padding:10px}
#dg-canvas{display:block;width:230px;height:200px}
.dg-ctrls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px}
.dg-acts,.dg-dirs{display:flex;gap:4px}
.dg-sm-btn{padding:5px 9px;border:1px solid #524637;border-radius:5px;background:rgba(20,24,36,.92);color:#d7ccb6;font:600 11.5px/1 var(--vl-font);cursor:pointer}
.dg-sm-btn.on,.dg-sm-btn:hover{border-color:#e8b04a;color:#ffe4a8;background:rgba(232,176,74,.14)}

.dg-info{display:flex;flex-direction:column;gap:10px}
.dg-info-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.dg-d-name{font-size:17px;font-weight:700;color:#ffe2a8}
.dg-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.dg-tag{font-size:11px;font-weight:600;padding:2px 7px;border-radius:4px;border:1px solid;background:rgba(255,255,255,.04)}
.dg-stats-g{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.dg-stats-g>div{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:7px;text-align:center}
.dg-stats-g span{display:block;font-size:11px;color:#9d9482}
.dg-stats-g b{display:block;font-size:13.5px;color:#efe4cd;margin-top:2px}
.dg-tip-box{background:rgba(24,28,42,.88);border:1px solid rgba(255,255,255,.08);border-left:3px solid #e8b04a;border-radius:6px;padding:9px 11px;font-size:12.5px;line-height:1.45;color:#ddd2bc}
.dg-tip-box.counter{border-left-color:#6fe3c1}
.dg-lock-msg{text-align:center;padding:18px 12px;background:rgba(255,255,255,.03);border:1px dashed #4a4134;border-radius:8px;color:#b8ae99;font-size:13px;line-height:1.55}

.dg-achs{overflow-y:auto;-webkit-overflow-scrolling:touch;display:grid;grid-template-columns:repeat(2,1fr);gap:9px;padding-right:2px}
.dg-ach{display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(22,26,39,.92);border:1.5px solid #443b30;border-radius:8px;padding:10px 12px}
.dg-ach.ready{border-color:#e8b04a}
.dg-ach.done{border-color:#4d7a58;background:rgba(22,34,29,.88)}
.dg-ach-main{flex:1;min-width:0}
.dg-ach-name{font-size:13.5px;font-weight:700;color:#ffe2a8}
.dg-ach-name span{font-size:11.5px;color:#9d9482;font-weight:500}
.dg-ach-desc{font-size:12px;color:#cfc5b0;margin:3px 0 6px}
.dg-bar{height:5px;background:rgba(0,0,0,.45);border-radius:3px;overflow:hidden}
.dg-bar i{display:block;height:100%;background:linear-gradient(90deg,#c9862d,#ffd275)}
.dg-claim-btn{flex-shrink:0;padding:7px 10px;border-radius:6px;border:1.5px solid #4a4136;background:#1e2230;color:#8e877a;font:600 12px/1 var(--vl-font);cursor:pointer;white-space:nowrap}
.dg-claim-btn.is-ready{border-color:#e8b04a;background:linear-gradient(180deg,#523c1b,#34240f);color:#ffe5b0}
.dg-claim-btn.is-done{border-color:#5b8f67;background:rgba(91,143,103,.18);color:#9fd08a;cursor:default}

/* Thanh Nhac Nen Vo Lam */
#bgm-bar{position:fixed;right:max(12px,env(safe-area-inset-right,12px));bottom:max(136px,calc(env(safe-area-inset-bottom,0px) + 134px));z-index:43;display:flex;align-items:center;gap:6px;padding:5px 9px;border:2px solid #5d4c35;border-radius:7px;background:rgba(12,15,24,.90);color:#efe4cd;font-family:var(--vl-font);box-shadow:0 4px 14px rgba(0,0,0,.55);pointer-events:auto}
#bgm-bar.playing{border-color:#8a6c40}
#bgm-bar .bgm-btn,#bgm-bar .bgm-next{width:26px;height:26px;border:1px solid #554736;border-radius:5px;background:rgba(26,30,44,.95);color:#ffd98e;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
#bgm-bar.playing .bgm-btn{border-color:#e8b04a;background:rgba(232,176,74,.18)}
#bgm-bar .bgm-nm{font-size:11.5px;font-weight:600;color:#d8cdb8;max-width:118px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bgm-bar .bgm-vol{width:54px;accent-color:#e8b04a;cursor:pointer}

@media (max-width:720px){
  .dg-body{grid-template-columns:1fr;overflow-y:auto}
  .dg-list{max-height:145px;grid-template-columns:repeat(2,1fr)}
  .dg-stats-g{grid-template-columns:repeat(2,1fr)}
  .dg-achs{grid-template-columns:1fr}
  #dg-fab{bottom:max(154px,calc(env(safe-area-inset-bottom,0px) + 152px));padding:6px 10px;font-size:12px}
  #bgm-bar{bottom:max(134px,calc(env(safe-area-inset-bottom,0px) + 132px));padding:4px 7px}
  #bgm-bar .bgm-nm,#bgm-bar .bgm-vol{display:none}
}

/* === TAI KHOAN & HO SO UI === */
#acc-root{position:fixed;inset:0;pointer-events:none;z-index:48;font-family:var(--vl-font);color:#efe4cd}

#acc-badge{pointer-events:auto;position:fixed;left:max(12px,env(safe-area-inset-left,12px));top:max(66px,calc(env(safe-area-inset-top,0px) + 64px));display:flex;align-items:center;gap:8px;padding:6px 10px;border:2px solid #6b563a;border-radius:8px;background:rgba(12,15,24,.90);color:#efe4cd;text-align:left;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.55);transition:border-color .15s,background .15s}
#acc-badge:hover{border-color:#e8b04a;background:rgba(24,28,42,.96)}
#acc-badge.guest{border-color:#e8b04a}
.acc-b-ic{width:30px;height:30px;border-radius:6px;border:1.5px solid #8a6c40;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.acc-b-main{min-width:128px}
.acc-b-top{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12.5px}
.acc-b-top b{color:#ffe4a8;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acc-lv{background:rgba(232,176,74,.2);color:#ffd275;font-size:10.5px;font-weight:700;padding:1px 5px;border-radius:4px}
.acc-b-gold{font-size:11.5px;color:#f2c94c;font-weight:600;margin-top:2px}
.acc-b-gold small{color:#a79e8a;font-weight:500}
.acc-b-nm{font-size:12.5px;font-weight:700;color:#ffe4a8}
.acc-b-sub{font-size:10.5px;color:#a79e8a;margin-top:1px}
.acc-exp-bar{height:4px;background:rgba(0,0,0,.5);border-radius:2px;overflow:hidden;margin-top:4px}
.acc-exp-bar i{display:block;height:100%;background:linear-gradient(90deg,#4bc9a5,#7cffd7)}

#acc-toast{position:fixed;left:50%;top:max(54px,calc(env(safe-area-inset-top,0px) + 52px));transform:translate(-50%,-10px);opacity:0;pointer-events:none;background:rgba(14,18,30,.95);border:1.5px solid #ffd275;color:#fff2cc;padding:8px 15px;border-radius:7px;font:600 13px/1.3 var(--vl-font);box-shadow:0 8px 24px rgba(0,0,0,.6);transition:opacity .25s,transform .25s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
#acc-toast.show{opacity:1;transform:translate(-50%,0)}

#acc-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(3,5,10,.78);backdrop-filter:blur(4px);pointer-events:auto;touch-action:pan-y}
#acc-modal.open{display:flex}
.acc-box{width:min(760px,100%);max-height:90vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(13,16,26,.98);border:2px solid #967442;border-radius:10px;padding:16px;box-shadow:0 18px 52px rgba(0,0,0,.85);box-sizing:border-box}
.acc-box-auth{width:min(440px,100%)}
.acc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(232,176,74,.24)}
.acc-title{font-size:17.5px;font-weight:700;color:#e8b04a;letter-spacing:.03em}
.acc-sub{font-size:12px;color:#b8ae99;margin-top:2px}
.acc-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}
.acc-close:hover{border-color:#e8b04a}

.acc-tabs{display:flex;gap:8px;margin:12px 0}
.acc-tabs button{flex:1;padding:8px 10px;border:1.5px solid #4a4033;border-radius:6px;background:rgba(22,25,36,.9);color:#c7bda8;font:600 12.5px/1 var(--vl-font);cursor:pointer}
.acc-tabs button.on{border-color:#e8b04a;background:rgba(232,176,74,.16);color:#ffe4a8}

.acc-err{background:rgba(229,85,60,.16);border:1px solid #e5553c;color:#ffaba0;padding:8px 10px;border-radius:6px;font-size:12.5px;margin-bottom:10px;line-height:1.4}
.acc-form{display:flex;flex-direction:column;gap:10px}
.acc-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#cfc5b0}
.acc-form input,.acc-form select{padding:9px 11px;border:1.5px solid #4d4438;border-radius:6px;background:#101420;color:#fff;font:500 13.5px/1.2 var(--vl-font);outline:none;user-select:text;-webkit-user-select:text}
.acc-form input:focus,.acc-form select:focus{border-color:#e8b04a}
.acc-chk{flex-direction:row !important;align-items:center;gap:8px !important;cursor:pointer}
.acc-chk input{width:16px;height:16px;accent-color:#e8b04a}
.acc-submit{margin-top:4px;padding:10px;border:1.5px solid #e8b04a;border-radius:7px;background:linear-gradient(180deg,#5d421d,#3a2810);color:#ffebbf;font:700 13.5px/1 var(--vl-font);cursor:pointer}
.acc-submit:hover{background:linear-gradient(180deg,#725124,#4a3314)}
.acc-guest-btn{padding:8px;border:1px solid #443d34;border-radius:7px;background:transparent;color:#a79e8a;font:600 12px/1 var(--vl-font);cursor:pointer}
.acc-guest-btn:hover{color:#efe4cd;border-color:#6b5c48}

.acc-hero{display:flex;align-items:center;gap:12px;background:rgba(22,26,39,.92);border:1.5px solid #4f4435;border-radius:8px;padding:12px}
.acc-av{width:50px;height:50px;border-radius:10px;border:2px solid #e8b04a;background:rgba(255,255,255,.05);display:flex;align-items:center;justify-content:center;font-size:26px;flex-shrink:0}
.acc-h-info{flex:1;min-width:0}
.acc-h-name{font-size:16px;font-weight:700;color:#ffe4a8}
.acc-h-un{font-size:12px;color:#9d9482;font-weight:500;margin-left:4px}
.acc-h-meta{font-size:12px;color:#cfc5b0;margin-top:3px}
.acc-h-meta b{color:#6fe3c1}
.acc-exp-row{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:11.5px;color:#b8f5e3}
.acc-exp-lg{flex:1;height:7px;background:rgba(0,0,0,.5);border-radius:4px;overflow:hidden}
.acc-exp-lg i{display:block;height:100%;background:linear-gradient(90deg,#3ec29d,#84ffe0)}
.acc-vault-box{text-align:right;background:rgba(242,201,76,.1);border:1px solid rgba(242,201,76,.35);padding:7px 11px;border-radius:7px;flex-shrink:0}
.acc-vault-box span{display:block;font-size:11px;color:#d8c89c}
.acc-vault-box b{display:block;font-size:16px;color:#ffd966;margin-top:2px}

.acc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}
.acc-stats>div{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:7px;text-align:center}
.acc-stats span{display:block;font-size:11px;color:#9d9482}
.acc-stats b{display:block;font-size:14.5px;color:#efe4cd;margin-top:2px}

.acc-sec-ttl{font-size:12.5px;font-weight:700;color:#e8b04a;margin:12px 0 7px;text-transform:uppercase;letter-spacing:.03em}
.acc-shop{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.acc-shop-btn{text-align:left;padding:9px 10px;border:1.5px solid #4e4334;border-radius:7px;background:rgba(22,26,39,.94);color:#efe4cd;cursor:pointer;display:flex;flex-direction:column;gap:4px}
.acc-shop-btn:hover{border-color:#e8b04a;background:rgba(34,38,54,.98)}
.acc-shop-btn b{font-size:12.5px;color:#ffe4a8}
.acc-shop-btn span{font-size:11.5px;color:#c7bda8;flex:1}
.acc-shop-btn em{font-style:normal;font-size:11.5px;font-weight:700;color:#f2c94c}

.acc-sects{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.acc-sect{text-align:left;padding:8px 9px;border:1.5px solid #3f382f;border-radius:7px;background:rgba(18,22,33,.9);color:#d7ccb6;cursor:pointer}
.acc-sect:hover{border-color:var(--sc)}
.acc-sect.on{border-color:var(--sc);background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px var(--sc)}
.acc-s-top{display:flex;align-items:center;gap:5px;font-size:12.5px;color:#ffe6b8}
.acc-s-ds{font-size:11px;color:#b8ae99;margin-top:3px;line-height:1.35}

.acc-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.acc-rename{display:flex;gap:6px}
.acc-rename input{padding:6px 9px;border:1.5px solid #4d4438;border-radius:6px;background:#101420;color:#fff;font:500 12.5px var(--vl-font);width:160px;user-select:text;-webkit-user-select:text}
.acc-rename button,.acc-btn{padding:7px 11px;border:1.5px solid #564a3a;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font:600 12px/1 var(--vl-font);cursor:pointer}
.acc-rename button:hover,.acc-btn:hover{border-color:#e8b04a}
.acc-f-acts{display:flex;gap:8px}
.acc-btn.warn{border-color:#e5553c;background:rgba(229,85,60,.18);color:#ff9c8a}

.acc-lb{display:flex;flex-direction:column;gap:6px}
.acc-lb-row{display:grid;grid-template-columns:42px 1fr 64px 72px 96px;align-items:center;gap:8px;padding:8px 10px;background:rgba(22,26,39,.9);border:1px solid rgba(255,255,255,.07);border-radius:6px;font-size:12.5px}
.acc-lb-row.me{border-color:#e8b04a;background:rgba(232,176,74,.12)}
.acc-lb-rk{font-weight:700;color:#e8b04a}
.acc-lb-nm small{color:#9d9482;margin-left:4px;font-size:11px}
.acc-lb-lv{font-weight:700;color:#6fe3c1}
.acc-lb-wv{color:#d8cdb8}
.acc-lb-gd{text-align:right;color:#ffd966;font-weight:600}
.acc-lb-empty{text-align:center;padding:24px;color:#a79e8a;font-size:13px}

@media (max-width:720px){
  #acc-badge{top:auto;bottom:max(194px,calc(env(safe-area-inset-bottom,0px) + 192px));padding:5px 8px}
  .acc-b-main{min-width:105px}
  .acc-hero{flex-wrap:wrap}
  .acc-vault-box{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center}
  .acc-stats{grid-template-columns:repeat(2,1fr)}
  .acc-shop,.acc-sects{grid-template-columns:1fr}
  .acc-lb-row{grid-template-columns:34px 1fr 52px 76px}
  .acc-lb-wv{display:none}
}

/* === TIEN HOA TRU CAP 3 UI === */
#evo-root{position:fixed;inset:0;pointer-events:none;z-index:45;font-family:var(--vl-font);color:#efe4cd}

#evo-bar{pointer-events:auto;position:fixed;left:50%;bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 14px));transform:translate(-50%,16px);opacity:0;visibility:hidden;display:flex;align-items:center;gap:10px;padding:8px 12px;border:2px solid #8a6c40;border-radius:8px;background:rgba(12,15,24,.94);box-shadow:0 8px 26px rgba(0,0,0,.68);transition:opacity .18s,transform .18s,visibility .18s;max-width:calc(100vw - 24px);box-sizing:border-box}
#evo-bar.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
.evo-b-ic{width:32px;height:32px;border-radius:7px;border:1.5px solid #e8b04a;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.evo-b-tx{min-width:0}
.evo-b-nm{font-size:13px;font-weight:700;color:#ffe4a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.evo-b-nm small{color:#a79e8a;font-weight:500}
.evo-b-ds{font-size:11.5px;color:#cfc5b0;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:290px}
.evo-b-btn{flex-shrink:0;padding:7px 11px;border:1.5px solid #6b563a;border-radius:6px;background:rgba(28,31,44,.95);color:#efe4cd;font:600 12px/1 var(--vl-font);cursor:pointer;white-space:nowrap}
.evo-b-btn:hover{border-color:#e8b04a;color:#ffe7b5}
.evo-b-btn.hi{border-color:#e8b04a;background:linear-gradient(180deg,#5d421d,#3a2810);color:#ffebbf}

#evo-toast{position:fixed;left:50%;top:max(166px,calc(env(safe-area-inset-top,0px) + 162px));transform:translate(-50%,-8px);opacity:0;pointer-events:none;background:rgba(12,15,24,.94);border:1.5px solid #e8b04a;color:#ffe5b0;padding:7px 14px;border-radius:7px;font:600 13px/1.3 var(--vl-font);box-shadow:0 6px 22px rgba(0,0,0,.55);transition:opacity .22s,transform .22s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
#evo-toast.show{opacity:1;transform:translate(-50%,0)}

#evo-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(3,5,10,.78);backdrop-filter:blur(3px);pointer-events:auto;touch-action:pan-y}
#evo-modal.open{display:flex}
.evo-box{width:min(700px,100%);max-height:88vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(13,16,26,.98);border:2px solid #967442;border-radius:10px;padding:16px;box-shadow:0 18px 50px rgba(0,0,0,.82);box-sizing:border-box}
.evo-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid rgba(232,176,74,.24);margin-bottom:14px}
.evo-title{font-size:17.5px;font-weight:700;color:#e8b04a;letter-spacing:.03em}
.evo-sub{font-size:12.5px;color:#b8ae99;margin-top:3px}
.evo-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}
.evo-close:hover{border-color:#e8b04a}

.evo-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.evo-card{text-align:left;background:linear-gradient(180deg,rgba(25,29,44,.96),rgba(16,19,30,.98));border:2px solid #554736;border-top:4px solid var(--ec);border-radius:9px;padding:14px;color:#efe4cd;cursor:pointer;display:flex;flex-direction:column;gap:8px;transition:transform .14s,border-color .14s,box-shadow .14s}
.evo-card:hover:not(:disabled){transform:translateY(-3px);border-color:var(--ec);box-shadow:0 10px 24px rgba(0,0,0,.6)}
.evo-card.cur{border-color:#5b8f67;opacity:.82;cursor:default}
.evo-c-top{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11.5px;font-weight:700}
.evo-c-sect{color:var(--ec)}
.evo-c-tag{color:#d7ccb6;background:rgba(255,255,255,.07);padding:2px 7px;border-radius:4px;font-size:10.5px}
.evo-c-name{font-size:16.5px;font-weight:700;color:#ffe6b8;line-height:1.25}
.evo-c-short{font-size:12.5px;font-weight:600;color:var(--ec)}
.evo-c-desc{font-size:12.5px;line-height:1.45;color:#d6ccb8;flex:1}
.evo-c-cta{margin-top:4px;text-align:center;padding:8px;border-radius:6px;background:rgba(232,176,74,.14);border:1px solid rgba(232,176,74,.45);color:#ffd98e;font-size:12px;font-weight:700}
.evo-c-cta.no-gold{border-color:#e5553c;background:rgba(229,85,60,.15);color:#ff9a88}

@media (max-width:680px){
  .evo-cards{grid-template-columns:1fr}
  #evo-bar{bottom:max(70px,calc(env(safe-area-inset-bottom,0px) + 68px));padding:7px 9px;gap:7px}
  .evo-b-ds{max-width:155px}
}

/* === PHAP BAO & KIEP NAN UI === */
#pb-root{position:fixed;inset:0;pointer-events:none;z-index:46;font-family:var(--vl-font);color:#efe4cd}
#pb-fab{pointer-events:auto;position:fixed;right:max(12px,env(safe-area-inset-right,12px));top:max(72px,calc(env(safe-area-inset-top,0px) + 70px));display:flex;align-items:center;gap:7px;padding:7px 12px;border:2px solid #7d623b;border-radius:8px;background:rgba(12,15,24,.91);color:#efe4cd;font:600 13px/1 var(--vl-font);cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.55);transition:border-color .15s,background .15s}
#pb-fab:hover{border-color:#ffd25a;background:rgba(24,28,42,.96)}
#pb-fab .pb-sub{color:#ffd25a;background:rgba(255,210,90,.15);padding:2px 6px;border-radius:4px;font-size:11.5px}
#pb-fab .pb-dot{display:none;width:8px;height:8px;border-radius:50%;background:#ff8a3c;box-shadow:0 0 8px #ff8a3c}
#pb-fab.has-new{border-color:#ffd25a}
#pb-fab.has-new .pb-dot{display:inline-block}

#pb-toast{position:fixed;left:50%;top:max(92px,calc(env(safe-area-inset-top,0px) + 88px));transform:translate(-50%,-10px);opacity:0;pointer-events:none;background:rgba(12,15,24,.95);border:1.5px solid #ffd25a;color:#fff0c4;padding:8px 15px;border-radius:7px;font:600 13px/1.3 var(--vl-font);box-shadow:0 8px 24px rgba(0,0,0,.6);transition:opacity .25s,transform .25s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
#pb-toast.show{opacity:1;transform:translate(-50%,0)}

#pb-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(3,5,10,.78);backdrop-filter:blur(4px);pointer-events:auto;touch-action:pan-y}
#pb-modal.open{display:flex}
.pb-box{width:min(900px,100%);max-height:90vh;display:flex;flex-direction:column;background:rgba(13,16,26,.98);border:2px solid #967442;border-radius:10px;padding:15px;box-shadow:0 18px 52px rgba(0,0,0,.85);box-sizing:border-box;overflow:hidden}
.pb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(232,176,74,.24)}
.pb-title{font-size:17.5px;font-weight:700;color:#ffd25a;letter-spacing:.03em}
.pb-hsub{font-size:12px;color:#b8ae99;margin-top:2px}
.pb-head-r{display:flex;align-items:center;gap:10px}
.pb-res{display:flex;gap:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);padding:5px 10px;border-radius:6px;font-size:12.5px;font-weight:700;color:#ffe4a8}
.pb-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}
.pb-close:hover{border-color:#ffd25a}

.pb-tabs{display:flex;gap:8px;margin:10px 0}
.pb-tabs button{flex:1;padding:7px 10px;border:1.5px solid #4a4033;border-radius:6px;background:rgba(22,25,36,.9);color:#c7bda8;font:600 12.5px/1 var(--vl-font);cursor:pointer}
.pb-tabs button.on{border-color:#ffd25a;background:rgba(255,210,90,.15);color:#ffe7ad}

.pb-sum{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:7px 10px;font-size:12px;color:#b8ae99;margin-bottom:10px}
.pb-sum b{color:#6fe3c1}

.pb-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:12px;min-height:0;flex:1;overflow:hidden}
.pb-left,.pb-right{overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:9px;padding-right:2px}
.pb-sec-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pb-sec-t{font-size:12px;font-weight:700;color:#e8b04a;text-transform:uppercase;letter-spacing:.03em}
.pb-mini-btn{padding:4px 8px;border:1px solid #564a3a;border-radius:5px;background:rgba(26,30,44,.9);color:#d7ccb6;font:600 11px/1 var(--vl-font);cursor:pointer}
.pb-mini-btn:hover{border-color:#e8b04a;color:#fff}

.pb-eq-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}
.pb-slot{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1.5px solid var(--rc,#443b30);border-radius:7px;background:rgba(20,24,36,.92);color:#efe4cd;text-align:left;cursor:pointer}
.pb-slot.empty{border-style:dashed;border-color:#3f3930;color:#7e776a;cursor:default}
.pb-slot.sel{box-shadow:0 0 0 1.5px var(--rc,#ffd25a);background:rgba(32,37,54,.96)}
.pb-s-ic{font-size:19px;flex-shrink:0}
.pb-slot b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-slot small{display:block;font-size:11px;margin-top:2px}

.pb-bag-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.pb-bitem{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 5px;border:1.5px solid var(--rc,#4a4136);border-radius:7px;background:rgba(18,22,33,.92);color:#efe4cd;cursor:pointer;text-align:center}
.pb-bitem.sel{background:rgba(34,39,58,.98);box-shadow:0 0 0 1.5px var(--rc,#ffd25a)}
.pb-bi-ic{font-size:19px}
.pb-bi-nm{font-size:11px;font-weight:600;color:var(--rc,#efe4cd);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-bi-lv{position:absolute;top:3px;right:4px;font-style:normal;font-size:10px;font-weight:700;color:#ffe4a8;background:rgba(0,0,0,.6);padding:1px 4px;border-radius:4px}
.pb-bag-empty{grid-column:1/-1;text-align:center;padding:20px 10px;color:#9d9482;font-size:12.5px;border:1px dashed #3e372d;border-radius:7px}

.pb-empty{background:rgba(20,24,36,.85);border:1px dashed #4a4033;border-radius:8px;padding:22px 14px;text-align:center;font-size:12.5px;line-height:1.55;color:#b8ae99}
.pb-det-card{background:rgba(20,24,37,.95);border:1.5px solid var(--rc,#6b563a);border-top:4px solid var(--rc,#6b563a);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:10px}
.pb-det-top{display:flex;align-items:center;gap:10px}
.pb-det-ic{width:40px;height:40px;border-radius:8px;border:1.5px solid var(--rc,#e8b04a);background:rgba(255,255,255,.05);display:flex;align-items:center;justify-content:center;font-size:21px;flex-shrink:0}
.pb-det-nm{font-size:15.5px;font-weight:700;color:var(--rc,#ffe4a8)}
.pb-det-nm em{font-style:normal;color:#fff;font-size:13px}
.pb-det-meta{font-size:11.5px;color:#b8ae99;margin-top:2px}
.pb-stat-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.pb-stat-list li{display:flex;justify-content:space-between;background:rgba(255,255,255,.035);padding:6px 9px;border-radius:5px;font-size:12.5px}
.pb-stat-list b{color:#6fe3c1}
.pb-pas{background:rgba(255,210,90,.1);border:1px solid rgba(255,210,90,.38);border-radius:6px;padding:8px 10px;font-size:12px;line-height:1.45;color:#ffeab5}
.pb-det-acts{display:flex;flex-direction:column;gap:6px}
.pb-btn{padding:8px 10px;border:1.5px solid #564a3a;border-radius:6px;background:rgba(28,31,44,.95);color:#efe4cd;font:600 12.5px/1 var(--vl-font);cursor:pointer}
.pb-btn:hover:not(:disabled){border-color:#ffd25a}
.pb-btn:disabled{opacity:.45;cursor:default}
.pb-btn.hi{border-color:#e8b04a;background:linear-gradient(180deg,#5b411c,#3a2810);color:#ffebbf}
.pb-btn.warn{border-color:#e5553c;background:rgba(229,85,60,.16);color:#ff9e8c}

.pb-forge-box{display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(180deg,rgba(44,30,16,.85),rgba(24,18,14,.92));border:1.5px solid #966b30;border-radius:8px;padding:10px 12px}
.pb-fg-t{font-size:13.5px;font-weight:700;color:#ffd25a}
.pb-fg-s{font-size:11.5px;color:#cfc5b0;margin-top:2px}
.pb-forge-btn{padding:8px 12px;border:1.5px solid #ffd25a;border-radius:6px;background:linear-gradient(180deg,#6e4d1c,#463010);color:#fff0c4;font:700 12.5px/1 var(--vl-font);cursor:pointer;white-space:nowrap}
.pb-forge-btn:hover{background:linear-gradient(180deg,#865f24,#583d14)}

.pb-k-note{font-size:12px;color:#c7bda8;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);padding:8px 10px;border-radius:6px;margin-bottom:10px}
.pb-k-grid{overflow-y:auto;-webkit-overflow-scrolling:touch;display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding-right:2px}
.pb-kiep{text-align:left;padding:10px 11px;border:1.5px solid #494034;border-radius:8px;background:rgba(20,24,36,.92);color:#efe4cd;cursor:pointer;display:flex;flex-direction:column;gap:4px}
.pb-kiep:hover:not(:disabled){border-color:#ff9b57}
.pb-kiep.on{border-color:#ffd25a;background:rgba(255,210,90,.12)}
.pb-kiep.lock{opacity:.48;cursor:default}
.pb-k-top{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.pb-k-top b{color:#ffe4a8}
.pb-k-top span{font-size:11px;color:#ffd25a}
.pb-k-ds{font-size:11.5px;color:#cfc5b0}
.pb-k-rw{font-size:11.5px;color:#6fe3c1;font-weight:600}

@media (max-width:760px){
  .pb-layout{grid-template-columns:1fr;overflow-y:auto}
  .pb-left,.pb-right{overflow:visible}
  .pb-bag-grid{grid-template-columns:repeat(2,1fr)}
  .pb-k-grid{grid-template-columns:1fr}
  #pb-fab{top:auto;bottom:max(174px,calc(env(safe-area-inset-bottom,0px) + 172px));padding:6px 10px;font-size:12px}
}

/* === AI THU THACH HANG NGAY UI === */
#dl-root{position:fixed;inset:0;pointer-events:none;z-index:47;font-family:var(--vl-font);color:#efe4cd}
#dl-fab{pointer-events:auto;position:fixed;right:max(12px,env(safe-area-inset-right,12px));top:max(116px,calc(env(safe-area-inset-top,0px) + 114px));display:flex;align-items:center;gap:7px;padding:7px 12px;border:2px solid #7d543b;border-radius:8px;background:rgba(12,15,24,.91);color:#efe4cd;font:600 13px/1 var(--vl-font);cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.55);transition:border-color .15s,background .15s}
#dl-fab:hover{border-color:#ff9b57;background:rgba(24,28,42,.96)}
#dl-fab.active-mode{border-color:#ff8a3c;background:rgba(42,22,14,.94);box-shadow:0 0 14px rgba(255,138,60,.45)}
#dl-fab .dl-sub{color:#ffae63;background:rgba(255,138,60,.16);padding:2px 6px;border-radius:4px;font-size:11.5px}
#dl-fab .dl-dot{display:none;width:8px;height:8px;border-radius:50%;background:#6fe3c1;box-shadow:0 0 8px #6fe3c1}
#dl-fab.has-rew .dl-dot{display:inline-block}

#dl-mode-pill{pointer-events:auto;position:fixed;left:50%;top:max(68px,calc(env(safe-area-inset-top,0px) + 66px));transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:5px 11px;border:1.5px solid #ff8a3c;border-radius:20px;background:rgba(24,14,12,.90);color:#ffe4c4;font-size:12px;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.55);white-space:nowrap;max-width:90vw}
#dl-mode-pill button{padding:3px 8px;border:1px solid #ffae63;border-radius:12px;background:rgba(255,138,60,.2);color:#ffd9a8;font:600 11px/1 var(--vl-font);cursor:pointer}

#dl-toast{position:fixed;left:50%;top:max(104px,calc(env(safe-area-inset-top,0px) + 100px));transform:translate(-50%,-10px);opacity:0;pointer-events:none;background:rgba(12,15,24,.95);border:1.5px solid #ffd25a;color:#fff0c4;padding:8px 15px;border-radius:7px;font:600 13px/1.3 var(--vl-font);box-shadow:0 8px 24px rgba(0,0,0,.6);transition:opacity .25s,transform .25s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}
#dl-toast.show{opacity:1;transform:translate(-50%,0)}

#dl-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(3,5,10,.78);backdrop-filter:blur(4px);pointer-events:auto;touch-action:pan-y}
#dl-modal.open{display:flex}
.dl-box{width:min(860px,100%);max-height:90vh;overflow-y:auto;-webkit-overflow-scrolling:touch;background:rgba(13,16,26,.98);border:2px solid #967442;border-radius:10px;padding:16px;box-shadow:0 18px 52px rgba(0,0,0,.85);box-sizing:border-box}
.dl-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(232,176,74,.24);margin-bottom:12px}
.dl-title{font-size:17.5px;font-weight:700;color:#ffae63;letter-spacing:.03em}
.dl-hsub{font-size:12px;color:#b8ae99;margin-top:2px}
.dl-hsub b{color:#ffe4a8}
.dl-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}
.dl-close:hover{border-color:#ffae63}

.dl-hero{background:linear-gradient(180deg,rgba(26,28,44,.95),rgba(17,20,31,.98));border:1.5px solid var(--mc,#8a6c40);border-left:5px solid var(--mc,#ff8a3c);border-radius:9px;padding:13px 14px;display:flex;flex-direction:column;gap:9px;margin-bottom:14px}
.dl-h-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.dl-biome{font-size:13px;color:#cfc5b0}
.dl-biome b{color:#ffe4a8;font-size:14px}
.dl-mut{font-size:16px;font-weight:700;color:var(--mc,#ffae63);margin-top:3px}
.dl-streak{text-align:right;background:rgba(255,138,60,.12);border:1px solid rgba(255,138,60,.38);padding:6px 10px;border-radius:7px;font-size:12px;color:#ffd9a8;flex-shrink:0}
.dl-streak small{display:block;font-size:10.5px;color:#6fe3c1;margin-top:2px}
.dl-mut-desc{font-size:13px;line-height:1.45;color:#e5dbc6}
.dl-tags{display:flex;flex-wrap:wrap;gap:6px}
.dl-tag{font-size:11.5px;padding:3px 8px;border-radius:5px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#d8cdb8}
.dl-tag.ok{border-color:rgba(111,227,193,.4);color:#7cf0ce;background:rgba(111,227,193,.1)}
.dl-tag.ban{border-color:rgba(229,85,60,.5);color:#ff9e8c;background:rgba(229,85,60,.14)}
.dl-cta-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.dl-go-btn{padding:10px 16px;border:1.5px solid #ffae63;border-radius:7px;background:linear-gradient(180deg,#6e3e1c,#44240e);color:#fff0d4;font:700 13px/1 var(--vl-font);cursor:pointer}
.dl-go-btn:hover{background:linear-gradient(180deg,#884e24,#572e12)}
.dl-exit-btn{padding:10px 14px;border:1.5px solid #564a3a;border-radius:7px;background:rgba(28,31,44,.9);color:#d7ccb6;font:600 12.5px/1 var(--vl-font);cursor:pointer}
.dl-exit-btn:hover{border-color:#e8b04a;color:#fff}

.dl-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:14px}
.dl-sec-t{font-size:12px;font-weight:700;color:#e8b04a;text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px}
.dl-ms-list{display:flex;flex-direction:column;gap:8px}
.dl-ms{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1.5px solid #443b30;border-radius:8px;background:rgba(20,24,36,.92)}
.dl-ms.ready{border-color:#ffd25a}
.dl-ms.done{border-color:#4d7a58;background:rgba(22,34,29,.88)}
.dl-ms b{display:block;font-size:13.5px;color:#ffe4a8}
.dl-ms span{display:block;font-size:11.5px;color:#b8ae99;margin-top:3px}
.dl-ms-btn{flex-shrink:0;padding:7px 11px;border-radius:6px;border:1.5px solid #4a4136;background:#1e2230;color:#8e877a;font:600 12px/1 var(--vl-font);cursor:pointer;white-space:nowrap}
.dl-ms-btn.ready{border-color:#ffd25a;background:linear-gradient(180deg,#5b411c,#3a2810);color:#ffebbf}
.dl-ms-btn.done{border-color:#5b8f67;background:rgba(91,143,103,.18);color:#9fd08a;cursor:default}

.dl-lb{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow-y:auto}
.dl-lb-row{display:grid;grid-template-columns:36px 1fr 78px 82px;align-items:center;gap:6px;padding:8px 10px;background:rgba(20,24,36,.92);border:1px solid rgba(255,255,255,.07);border-radius:6px;font-size:12px}
.dl-lb-row.me{border-color:#ffd25a;background:rgba(255,210,90,.12)}
.dl-rk{font-weight:700;color:#ffae63}
.dl-nm small{color:#9d9482;margin-left:4px;font-size:10.5px}
.dl-wv{color:#6fe3c1;font-weight:600}
.dl-sc{text-align:right;font-weight:700;color:#ffd25a}
.dl-lb-empty{text-align:center;padding:22px 12px;color:#9d9482;font-size:12.5px;border:1px dashed #3e372d;border-radius:7px}

@media (max-width:760px){
  .dl-grid{grid-template-columns:1fr}
  #dl-fab{top:auto;bottom:max(214px,calc(env(safe-area-inset-bottom,0px) + 212px));padding:6px 10px;font-size:12px}
  #dl-mode-pill{top:max(106px,calc(env(safe-area-inset-top,0px) + 104px));font-size:11px;padding:4px 9px}
}

/* === UNIFIED MOBILE & PC HUD LAYOUT === */
:root{--hud-top:64px;--hud-bot:62px}

/* 1. Dock Flexbox thang hang tren Desktop - KHONG BAO GIO de len Canvas HUD */
#thq-hud-root{position:fixed;inset:0;pointer-events:none;z-index:45;font-family:var(--vl-font);color:#efe4cd}
#thq-bl-dock{position:fixed;left:max(10px,env(safe-area-inset-left,10px));bottom:var(--hud-bot);display:flex;flex-direction:column;align-items:flex-start;gap:6px;pointer-events:none}
#thq-tr-dock{position:fixed;right:max(10px,env(safe-area-inset-right,10px));top:var(--hud-top);display:flex;flex-direction:column;align-items:flex-end;gap:6px;pointer-events:none}
#thq-br-dock{position:fixed;right:max(10px,env(safe-area-inset-right,10px));bottom:var(--hud-bot);display:flex;flex-direction:column;align-items:flex-end;gap:6px;pointer-events:none}

/* Dua cac nut ve position:static ben trong Dock de tu xep deu */
#thq-bl-dock>#dg-fab,#thq-bl-dock>#vc-book-fab,#thq-bl-dock>#km-fab,
#thq-tr-dock>#pb-fab,#thq-tr-dock>#dl-fab,
#thq-br-dock>#bgm-bar,#thq-br-dock>#vc-bar{
  position:static !important;inset:auto !important;margin:0 !important;
}
#thq-bl-dock>button,#thq-tr-dock>button{min-width:138px;justify-content:space-between;padding:6px 10px !important;font-size:12.5px !important}
#thq-desk-set{pointer-events:auto;display:flex;align-items:center;gap:6px;min-width:138px;padding:6px 10px;border:2px solid #554838;border-radius:6px;background:rgba(12,15,24,.90);color:#d7ccb6;font:600 12px/1 var(--vl-font);cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.5)}
#thq-desk-set:hover{border-color:#e8b04a;color:#ffe4a8}

#acc-badge{left:max(10px,env(safe-area-inset-left,10px)) !important;top:var(--hud-top) !important;bottom:auto !important}
#dl-mode-pill{top:var(--hud-top) !important}
#evo-bar{bottom:var(--hud-bot) !important}

/* Dong bo vi tri toan bo Toast de khong chen lan nhau */
#km-toast,#vc-banner,#dg-toast,#acc-toast,#evo-toast,#pb-toast,#dl-toast{
  top:calc(var(--hud-top) + 4px) !important;
  font-size:12.5px !important;
  padding:6px 13px !important;
}

/* Thanh Mobile mac dinh an tren PC */
#thq-m-left{display:none}

/* 2. CHE DO MOBILE SIEU GON (man hinh nho <=860px hoac ngang <=520px) */
body.thq-mob #thq-bl-dock,
body.thq-mob #thq-tr-dock,
body.thq-mob #acc-badge,
body.thq-mob #bgm-bar{display:none !important}

body.thq-mob #thq-m-left{
  display:flex;align-items:center;gap:6px;pointer-events:auto;
  position:fixed;left:max(8px,env(safe-area-inset-left,8px));bottom:var(--hud-bot);z-index:46;
}
#thq-m-menu{
  position:relative;display:flex;align-items:center;gap:5px;height:40px;padding:0 11px;
  border:2px solid #7d623b;border-radius:8px;background:rgba(12,15,24,.92);color:#ffe4a8;
  font:700 12.5px/1 var(--vl-font);cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.58);
}
#thq-m-menu.has-alert{border-color:#ffd25a}
.thq-m-ic{font-size:15px}
.thq-m-badge{
  position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;
  background:#e5553c;color:#fff;font-style:normal;font-size:10.5px;font-weight:700;
  display:none;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.6);
}
#thq-m-music{
  width:40px;height:40px;border:2px solid #5d4c35;border-radius:8px;background:rgba(12,15,24,.92);
  color:#b8ae99;font-size:17px;cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.55);
}
#thq-m-music.on{border-color:#e8b04a;color:#ffd978;background:rgba(36,28,16,.94)}
#thq-m-draft{
  height:40px;padding:0 10px;gap:4px;align-items:center;border:2px solid #ffae42;border-radius:8px;
  background:rgba(48,30,14,.95);color:#ffe7b5;font:700 12px/1 var(--vl-font);
  cursor:pointer;box-shadow:0 0 12px rgba(255,174,66,.55);animation:vcPulse 1.3s infinite;
}

/* 3 Tuyet Ky gon gang tren Mobile */
body.thq-mob #thq-br-dock{right:max(8px,env(safe-area-inset-right,8px))}
body.thq-mob #vc-bar{gap:5px !important}
body.thq-mob .vc-sk{width:46px !important;height:46px !important;border-radius:9px !important;padding:2px !important}
body.thq-mob .vc-ic{font-size:21px !important}
body.thq-mob .vc-nm,body.thq-mob .vc-key{display:none !important}
body.thq-mob .vc-cd-txt{font-size:13px !important}

/* Khi xoay ngang dien thoai man hinh thap */
body.thq-land .vc-sk{width:40px !important;height:40px !important}
body.thq-land #thq-m-menu,body.thq-land #thq-m-music,body.thq-land #thq-m-draft{height:36px}
body.thq-land #thq-m-music{width:36px}

/* Thanh Tien Hoa Cap 3 tren Mobile chuyen len top-center de tranh 3 Tuyet Ky */
body.thq-mob #evo-bar{bottom:auto !important;top:var(--hud-top) !important;padding:6px 9px !important}
body.thq-mob .evo-b-ds{display:none !important}

/* Toi uu toan bo Modal cho man hinh Mobile nho */
body.thq-mob #km-modal,body.thq-mob #vc-modal,body.thq-mob #dg-modal,
body.thq-mob #acc-modal,body.thq-mob #pb-modal,body.thq-mob #dl-modal,body.thq-mob #evo-modal{
  padding:8px !important;align-items:flex-end !important;
}
body.thq-mob .km-box,body.thq-mob .vc-box,body.thq-mob .dg-box,
body.thq-mob .acc-box,body.thq-mob .pb-box,body.thq-mob .dl-box,body.thq-mob .evo-box{
  max-height:92dvh !important;border-radius:12px 12px 8px 8px !important;padding:12px !important;
}

/* 3. NGAN KEO HANH TRANG & CAI DAT (#thq-drawer) */
#thq-drawer{
  position:fixed;inset:0;z-index:55;display:none;align-items:center;justify-content:center;
  padding:12px;background:rgba(3,5,10,.78);backdrop-filter:blur(4px);pointer-events:auto;touch-action:pan-y;
}
#thq-drawer.open{display:flex}
body.thq-mob #thq-drawer{align-items:flex-end;padding:8px}
.thq-d-box{
  width:min(540px,100%);max-height:90dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:rgba(13,16,26,.98);border:2px solid #967442;border-radius:12px;padding:14px;
  box-shadow:0 18px 52px rgba(0,0,0,.86);box-sizing:border-box;display:flex;flex-direction:column;gap:12px;
}
.thq-d-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(232,176,74,.24)}
.thq-d-title{font-size:16px;font-weight:700;color:#ffd25a;letter-spacing:.03em}
.thq-d-sub{font-size:12px;color:#b8ae99;margin-top:2px}
.thq-d-close{width:36px;height:36px;border:1.5px solid #5d4c35;border-radius:7px;background:rgba(28,31,44,.95);color:#efe4cd;font-size:16px;cursor:pointer;flex-shrink:0}
.thq-d-close:hover{border-color:#ffd25a}

.thq-d-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.thq-tile{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:74px;padding:9px 6px;
  border:1.5px solid #494034;border-radius:9px;background:rgba(21,25,38,.94);color:#efe4cd;cursor:pointer;text-align:center;
}
.thq-tile:hover{border-color:#e8b04a;background:rgba(30,35,52,.98)}
.thq-tile.hi{border-color:#ffd25a;background:linear-gradient(180deg,rgba(54,39,18,.9),rgba(22,25,38,.95))}
.thq-t-ic{font-size:20px;line-height:1}
.thq-tile b{font-size:13px;color:#ffe6b5}
.thq-tile small{font-size:10.5px;color:#b8ae99;line-height:1.25}
.thq-tile.hi small{color:#6fe3c1;font-weight:600}

.thq-panel{background:rgba(20,24,36,.92);border:1px solid rgba(255,255,255,.09);border-radius:9px;padding:10px 11px;display:flex;flex-direction:column;gap:8px}
.thq-p-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.thq-p-row2{flex-wrap:nowrap}
.thq-p-lbl{font-size:12.5px;font-weight:700;color:#e8b04a;display:flex;align-items:center;gap:6px}
.thq-boss-tag{font-style:normal;font-size:10px;padding:2px 6px;border-radius:4px;background:rgba(229,85,60,.2);color:#ff9b88;border:1px solid rgba(229,85,60,.45)}
.thq-m-ctrls,.thq-gfx-btns{display:flex;gap:5px}
.thq-sm{padding:6px 10px;border:1.5px solid #524637;border-radius:6px;background:rgba(28,31,44,.95);color:#d7ccb6;font:600 12px/1 var(--vl-font);cursor:pointer}
.thq-sm.on{border-color:#ffd25a;background:rgba(255,210,90,.18);color:#ffeab5}
.thq-sel{flex:1;min-width:0;padding:7px 8px;border:1.5px solid #4d4438;border-radius:6px;background:#101420;color:#fff;font:500 12.5px var(--vl-font)}
.thq-vol-wrap{display:flex;align-items:center;gap:4px;font-size:13px;flex-shrink:0}
.thq-vol{width:76px;accent-color:#ffd25a}
.thq-chk{display:flex;align-items:center;gap:7px;font-size:12px;color:#cfc5b0;cursor:pointer}
.thq-chk input{width:15px;height:15px;accent-color:#ffd25a}

@media (max-width:420px){
  .thq-d-grid{grid-template-columns:repeat(2,1fr)}
  .thq-p-row2{flex-wrap:wrap}
  .thq-vol-wrap{width:100%}
  .thq-vol{flex:1}
}

/* === DE CHE ECONOMY UI === */
#eco-root{position:fixed;inset:0;pointer-events:none;z-index:46;font-family:var(--vl-font);color:#efe4cd}

#eco-bar{
  pointer-events:auto;position:fixed;left:50%;bottom:var(--hud-bot,62px);transform:translateX(-50%);
  display:flex;align-items:center;gap:5px;padding:5px 8px;
  border:2px solid #745b38;border-radius:9px;background:rgba(12,15,24,.92);
  box-shadow:0 4px 16px rgba(0,0,0,.58);max-width:calc(100vw - 16px);box-sizing:border-box;
}
#eco-bar.dim{opacity:.5;pointer-events:none}
.eco-pill{display:flex;align-items:center;gap:4px;padding:4px 7px;border-radius:6px;background:rgba(255,255,255,.06);font-size:12px;white-space:nowrap}
.eco-pill b{color:#ffe4a8}
.eco-mini{
  padding:6px 8px;border:1.5px solid #524637;border-radius:6px;background:rgba(24,28,42,.95);
  color:#d7ccb6;font:600 11.5px/1 var(--vl-font);cursor:pointer;white-space:nowrap;
}
.eco-mini:hover{border-color:#e8b04a;color:#fff}
.eco-mini.ready{border-color:#6fe3c1;color:#b8ffe8}
.eco-mini.hi{border-color:#e8b04a;background:linear-gradient(180deg,#5b411c,#3a2810);color:#ffebbf}

/* Tren Mobile: dua len ngay duoi thanh chi so tren de khong tranh cho voi Menu & 3 Tuyet Ky */
body.thq-mob #eco-bar{
  bottom:auto;top:var(--hud-top,58px);padding:4px 6px;gap:4px;border-radius:8px;
}
body.thq-mob .eco-pill{padding:3px 5px;font-size:11px}
body.thq-mob .eco-mini{padding:5px 6px;font-size:11px}

#eco-place{position:fixed;inset:0;display:none;cursor:crosshair;pointer-events:auto;background:rgba(111,227,193,.06);z-index:52}
#eco-place.active{display:block}
.eco-p-bar{
  position:fixed;left:50%;top:calc(var(--hud-top,60px) + 42px);transform:translateX(-50%);
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;
  background:rgba(12,16,26,.95);border:1.5px solid #6fe3c1;color:#d6fff2;padding:7px 12px;border-radius:8px;
  font-size:12px;max-width:92vw;box-shadow:0 6px 22px rgba(0,0,0,.6);
}
.eco-p-bar button{padding:5px 9px;border:1px solid #ffd25a;border-radius:5px;background:rgba(255,210,90,.16);color:#ffe7b5;font:600 11.5px/1 var(--vl-font);cursor:pointer}

#eco-toast{
  position:fixed;left:50%;top:calc(var(--hud-top,60px) + 46px);transform:translate(-50%,-8px);opacity:0;pointer-events:none;
  background:rgba(12,15,24,.95);border:1.5px solid #ffd25a;color:#fff0c4;padding:7px 14px;border-radius:7px;
  font:600 12.5px/1.3 var(--vl-font);box-shadow:0 6px 22px rgba(0,0,0,.58);
  transition:opacity .22s,transform .22s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis;
}
#eco-toast.show{opacity:1;transform:translate(-50%,0)}

#eco-modal{position:fixed;inset:0;z-index:54;display:none;align-items:center;justify-content:center;padding:12px;background:rgba(3,5,10,.78);backdrop-filter:blur(4px);pointer-events:auto;touch-action:pan-y}
#eco-modal.open{display:flex}
body.thq-mob #eco-modal{align-items:flex-end;padding:8px}
.eco-box{
  width:min(820px,100%);max-height:90dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:rgba(13,16,26,.98);border:2px solid #967442;border-radius:11px;padding:14px;
  box-shadow:0 18px 52px rgba(0,0,0,.85);box-sizing:border-box;
}
.eco-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(232,176,74,.24);margin-bottom:10px}
.eco-title{font-size:17px;font-weight:700;color:#ffd25a;letter-spacing:.03em}
.eco-sub{font-size:12px;color:#b8ae99;margin-top:2px}
.eco-head-r{display:flex;align-items:center;gap:8px}
.eco-res{display:flex;gap:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);padding:5px 9px;border-radius:6px;font-size:12px;font-weight:700;color:#ffe4a8}
.eco-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}

.eco-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.eco-qbtn{text-align:left;padding:9px 10px;border:1.5px solid #534636;border-radius:8px;background:rgba(22,26,39,.94);color:#ffe4a8;font:700 12.5px/1.3 var(--vl-font);cursor:pointer;display:flex;flex-direction:column;gap:3px}
.eco-qbtn:hover{border-color:#ffd25a}
.eco-qbtn em{font-style:normal;font-size:11px;font-weight:500;color:#6fe3c1}

.eco-sec{font-size:12px;font-weight:700;color:#e8b04a;text-transform:uppercase;letter-spacing:.03em;margin:10px 0 7px}
.eco-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.eco-card{background:rgba(20,24,36,.94);border:1.5px solid #494034;border-radius:8px;padding:10px 11px;display:flex;flex-direction:column;gap:5px}
.eco-card.can{border-color:#8a6c40}
.eco-card.maxed{border-color:#4d7a58;background:rgba(22,34,29,.88)}
.eco-c-top{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:13.5px}
.eco-c-nm b{color:#ffe4a8}
.eco-c-nm small{color:#9d9482;font-weight:500}
.eco-c-cost{font-size:12px;font-weight:700;color:#ffd25a}
.eco-c-sh{font-size:12px;font-weight:600;color:#6fe3c1}
.eco-c-ds{font-size:11.5px;color:#cfc5b0;line-height:1.4;flex:1}
.eco-c-acts{display:flex;gap:6px;margin-top:4px}
.eco-btn{flex:1;padding:7px 8px;border:1.5px solid #524637;border-radius:6px;background:rgba(28,31,44,.95);color:#d7ccb6;font:600 11.5px/1 var(--vl-font);cursor:pointer}
.eco-btn:hover:not(:disabled){border-color:#ffd25a;color:#fff}
.eco-btn:disabled{opacity:.48;cursor:default}
.eco-btn.hi{border-color:#e8b04a;background:linear-gradient(180deg,#5b411c,#3a2810);color:#ffebbf}
.eco-btn.ok{border-color:#5bb595;background:rgba(91,181,149,.16);color:#b8ffe8}
.eco-btn.done{border-color:#5b8f67;background:rgba(91,143,103,.18);color:#9fd08a}

.eco-tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.eco-tech{background:rgba(20,24,36,.92);border:1.5px solid #443b30;border-radius:8px;padding:9px 10px;display:flex;flex-direction:column;justify-content:space-between;gap:8px}
.eco-tech.can{border-color:#ffd25a}
.eco-tech.done{border-color:#4d7a58;background:rgba(22,34,29,.88)}
.eco-tech b{font-size:13px;color:#ffe4a8}
.eco-tech p{margin:4px 0 0;font-size:11.5px;color:#cfc5b0;line-height:1.4}

@media (max-width:700px){
  .eco-quick,.eco-grid,.eco-tgrid{grid-template-columns:1fr}
  .eco-res{display:none}
}

/* === WAR EMPIRE UI === */
#war-root{position:fixed;inset:0;pointer-events:none;z-index:48;font-family:var(--vl-font);color:#efe4cd}
.eco-mini.war-hi{border-color:#ff7e47;background:linear-gradient(180deg,#5e2518,#38150d);color:#ffe0cc}
.eco-mini.war-fl{border-color:#d99a38;color:#ffe4a8}
body.thq-mob #eco-bar{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body.thq-mob #eco-bar::-webkit-scrollbar{display:none}

#war-place{position:fixed;inset:0;display:none;cursor:crosshair;pointer-events:auto;background:rgba(255,126,71,.07);z-index:53}
#war-place.active{display:block}
.war-p-bar{
  position:fixed;left:50%;top:calc(var(--hud-top,60px) + 42px);transform:translateX(-50%);
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;
  background:rgba(16,12,14,.95);border:1.5px solid #ff8a47;color:#ffe4cc;padding:7px 12px;border-radius:8px;
  font-size:12px;max-width:92vw;box-shadow:0 6px 22px rgba(0,0,0,.6);
}
.war-p-bar button{padding:5px 9px;border:1px solid #ffd25a;border-radius:5px;background:rgba(255,210,90,.16);color:#ffe7b5;font:600 11.5px/1 var(--vl-font);cursor:pointer}

#war-toast{
  position:fixed;left:50%;top:calc(var(--hud-top,60px) + 48px);transform:translate(-50%,-8px);opacity:0;pointer-events:none;
  background:rgba(12,15,24,.96);border:1.5px solid #ffd25a;color:#fff0c4;padding:7px 14px;border-radius:7px;
  font:600 12.5px/1.3 var(--vl-font);box-shadow:0 6px 22px rgba(0,0,0,.6);
  transition:opacity .22s,transform .22s;white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis;
}
#war-toast.show{opacity:1;transform:translate(-50%,0)}

#war-modal{position:fixed;inset:0;z-index:55;display:none;align-items:center;justify-content:center;padding:12px;background:rgba(3,5,10,.78);backdrop-filter:blur(4px);pointer-events:auto;touch-action:pan-y}
#war-modal.open{display:flex}
body.thq-mob #war-modal{align-items:flex-end;padding:8px}
.war-box{
  width:min(880px,100%);max-height:90dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:rgba(13,16,26,.98);border:2px solid #967442;border-radius:11px;padding:14px;
  box-shadow:0 18px 52px rgba(0,0,0,.85);box-sizing:border-box;
}
.war-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid rgba(232,176,74,.24);margin-bottom:10px}
.war-title{font-size:17px;font-weight:700;color:#ffae63;letter-spacing:.03em}
.war-sub{font-size:12px;color:#b8ae99;margin-top:2px}
.war-head-r{display:flex;align-items:center;gap:8px}
.war-res{display:flex;gap:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);padding:5px 9px;border-radius:6px;font-size:12px;font-weight:700;color:#ffe4a8}
.war-close{width:34px;height:34px;border:1.5px solid #5d4c35;border-radius:6px;background:rgba(28,31,44,.9);color:#efe4cd;font-size:16px;cursor:pointer}

.war-tabs{display:flex;gap:8px;margin-bottom:11px}
.war-tabs button{flex:1;padding:8px 10px;border:1.5px solid #4a4033;border-radius:7px;background:rgba(22,25,36,.92);color:#c7bda8;font:600 12.5px/1 var(--vl-font);cursor:pointer}
.war-tabs button.on{border-color:#ffae63;background:rgba(255,174,99,.16);color:#ffe8c4}

.war-hero{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:linear-gradient(180deg,rgba(46,28,18,.88),rgba(20,18,28,.95));border:1.5px solid #c98636;border-radius:9px;padding:10px 12px;margin-bottom:10px}
.war-h-ic{width:42px;height:42px;border-radius:9px;border:1.5px solid #ffd25a;background:rgba(255,210,90,.12);display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.war-h-main{flex:1;min-width:170px}
.war-h-nm{font-size:14.5px;font-weight:700;color:#ffe6b5}
.war-h-nm span{font-size:11.5px;color:#ffd25a;background:rgba(255,210,90,.15);padding:2px 6px;border-radius:4px;margin-left:5px}
.war-h-st{font-size:11.5px;color:#d6ccb8;margin-top:3px}
.war-stances{display:flex;flex-wrap:wrap;gap:5px}
.war-st-btn{padding:6px 9px;border:1.5px solid #564a3a;border-radius:6px;background:rgba(22,25,36,.94);color:#d7ccb6;font:600 11.5px/1 var(--vl-font);cursor:pointer}
.war-st-btn.on{border-color:#ffd25a;background:rgba(255,210,90,.2);color:#fff0c4}
.war-st-btn.hi{border-color:#ff7e47;background:rgba(255,126,71,.2);color:#ffd8c4}

.war-sec{font-size:12px;font-weight:700;color:#e8b04a;text-transform:uppercase;letter-spacing:.03em;margin:10px 0 7px}
.war-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.war-card{background:rgba(20,24,36,.94);border:1.5px solid #494034;border-radius:8px;padding:10px;display:flex;flex-direction:column;gap:5px}
.war-card.can{border-color:#8a6c40}
.war-card.done{border-color:#4d7a58;background:rgba(22,34,29,.88)}
.war-c-top{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:12.5px}
.war-c-top b{color:#ffe4a8}
.war-c-top span{font-size:11px;color:#ffd25a;font-weight:600}
.war-c-sh{font-size:11.5px;font-weight:600;color:#6fe3c1}
.war-c-ds{font-size:11.5px;color:#cfc5b0;line-height:1.38;flex:1}
.war-c-row{display:flex;gap:5px;margin-top:3px}

.war-btn{width:100%;padding:7px 8px;border:1.5px solid #524637;border-radius:6px;background:rgba(28,31,44,.95);color:#d7ccb6;font:600 11.5px/1.15 var(--vl-font);cursor:pointer}
.war-btn:hover:not(:disabled){border-color:#ffd25a;color:#fff}
.war-btn:disabled{opacity:.48;cursor:default}
.war-btn.hi{border-color:#e8b04a;background:linear-gradient(180deg,#5b411c,#3a2810);color:#ffebbf}
.war-btn.ok{border-color:#5bb595;background:rgba(91,181,149,.16);color:#b8ffe8}
.war-btn.done{border-color:#5b8f67;background:rgba(91,143,103,.18);color:#9fd08a}

.war-age-box{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(180deg,rgba(48,34,16,.9),rgba(22,20,30,.96));border:1.5px solid #d49635;border-radius:9px;padding:11px 13px;margin-bottom:10px}
.war-a-t{font-size:15px;font-weight:700;color:#ffd25a}
.war-a-d{font-size:12px;color:#dcd2be;margin-top:3px;line-height:1.4}
.war-age-btn{flex-shrink:0;padding:9px 14px;border:1.5px solid #6b563a;border-radius:7px;background:rgba(30,28,38,.95);color:#b8ae99;font:700 12.5px/1.25 var(--vl-font);cursor:pointer;text-align:center}
.war-age-btn.can{border-color:#ffd25a;background:linear-gradient(180deg,#7a531d,#4d330f);color:#fff2cc}
.war-a-max{padding:6px 11px;border-radius:6px;background:rgba(91,143,103,.2);border:1px solid #5b8f67;color:#9fd08a;font-size:12px;font-weight:700}

.war-up-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.war-up-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;background:rgba(20,24,36,.94);border:1.5px solid #494034;border-radius:8px}
.war-up-card.can{border-color:#ffd25a}
.war-up-card.done{border-color:#4d7a58;background:rgba(22,34,29,.88)}
.war-u-nm{font-size:13px;color:#ffe4a8}
.war-u-nm em{font-style:normal;font-size:11px;color:#6fe3c1;margin-left:5px}
.war-u-ds{font-size:11.5px;color:#cfc5b0;margin-top:3px}
.war-up-card .war-btn{width:auto;flex-shrink:0;white-space:nowrap;padding:7px 10px}
.war-empty{grid-column:1/-1;text-align:center;padding:24px 12px;color:#b8ae99;font-size:13px;line-height:1.55;border:1px dashed #4a4134;border-radius:8px}

@media (max-width:740px){
  .war-grid3,.war-up-grid{grid-template-columns:1fr}
  .war-age-box{flex-direction:column;align-items:stretch}
  .war-res{display:none}
}

/* === VO LAM VISUAL ICONS === */
.vl-ic{width:28px;height:28px;object-fit:contain;display:block;image-rendering:pixelated;filter:drop-shadow(0 2px 3px rgba(0,0,0,.65))}
.pb-det-ic .vl-ic{width:34px;height:34px}
.vl-sk-ic{width:28px;height:28px;border-radius:5px;object-fit:cover;display:block;border:1px solid rgba(255,217,120,.45)}
body.thq-mob .vl-sk-ic{width:34px;height:34px}

/* === THQ COMPACT HUD V2 START === */
/* 1. Phan tang Z-index: Thanh HUD (46-51) < Dat nha/Ngam chieu (62) < Modal (80) < Khay Thong Bao (90) */
#thq-hud-root { z-index: 50 !important; }
#thq-hud-root:has(#thq-drawer.open) { z-index: 82 !important; }
.thq-modal-top { z-index: 80 !important; }
#km-root:has(.open), #vc-root:has(.open), #dg-root:has(.open), #acc-root:has(.open),
#evo-root:has(.open), #pb-root:has(.open), #dl-root:has(.open), #eco-root:has(.open), #war-root:has(.open) {
  z-index: 80 !important;
}
#eco-root:has(#eco-place.active), #war-root:has(#war-place.active), #vc-root:has(#vc-aim.active) {
  z-index: 62 !important;
}

/* An 8 nut roi rac cu & an han nut bat/tat nhac thu 2 */
#thq-bl-dock, #thq-tr-dock, #thq-br-dock, #thq-m-left, #thq-mob-dock, #thq-m-music,
#acc-badge, #km-fab, #dg-fab, #pb-fab, #dl-fab, #vc-book-fab, #bgm-bar {
  display: none !important;
}

/* 2. Khay Thong Bao Chung (#thq-notify-stack) - LUON NOI TREN MOI NUT BAM */
#thq-notify-stack {
  position: fixed !important;
  left: 50% !important;
  top: calc(var(--hud-top, 48px) + 4px) !important;
  transform: translateX(-50%) !important;
  z-index: 90 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  width: min(90vw, 420px) !important;
  pointer-events: none !important;
}
#thq-notify-stack > .thq-toast-item {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  pointer-events: none !important;
  display: none !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
  padding: 6px 13px !important;
  border-radius: 8px !important;
  border: 1.5px solid #e8b04a !important;
  background: linear-gradient(180deg, rgba(22,18,16,.96), rgba(10,12,20,.96)) !important;
  color: #fff2cc !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.78), inset 0 1px 0 rgba(255,220,145,.2) !important;
}
#thq-notify-stack > .thq-toast-item.show,
#thq-notify-stack > .thq-toast-item.open,
#thq-notify-stack > .thq-toast-item.active,
#thq-notify-stack > .thq-toast-item.on,
#thq-notify-stack > .thq-toast-item.thq-vis {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  animation: thqToastIn .18s ease-out;
}
@keyframes thqToastIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

#dl-mode-pill {
  left: auto !important;
  right: max(8px, env(safe-area-inset-right, 8px)) !important;
  top: var(--hud-top-l, 42px) !important;
  transform: none !important;
  z-index: 51 !important;
}
.eco-p-bar, #war-place .war-p-bar, #vc-aim {
  top: calc(var(--hud-top, 52px) + 6px) !important;
  z-index: 64 !important;
}

/* 3. Cum nut gon goc tren trai (ngay duoi thanh chi so, da an nut nhac thu 2) */
#thq-top-bar {
  position: fixed !important;
  top: var(--hud-top-l, 42px) !important;
  left: max(8px, env(safe-area-inset-left, 8px)) !important;
  z-index: 51 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  pointer-events: auto !important;
}
#thq-m-menu, #thq-m-hide, #thq-m-draft {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 32px !important;
  padding: 0 9px 0 7px !important;
  border: 1.5px solid #8a6c3e !important;
  border-radius: 7px !important;
  background: linear-gradient(180deg, rgba(32,25,18,.94), rgba(14,13,18,.94)) !important;
  color: #f6e8c8 !important;
  font-size: 12.5px !important;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,220,150,.22) !important;
  transition: transform .1s, border-color .15s, background .15s;
}
#thq-m-menu:hover, #thq-m-hide:hover, #thq-m-draft:hover {
  border-color: #f3c46b !important;
  background: linear-gradient(180deg, rgba(46,35,24,.97), rgba(20,18,24,.97)) !important;
}
#thq-m-menu:active, #thq-m-hide:active, #thq-m-draft:active { transform: translateY(1px); }
#thq-m-menu.has-alert {
  border-color: #e8b04a !important;
  box-shadow: 0 0 10px rgba(232,176,74,.38), 0 3px 12px rgba(0,0,0,.6) !important;
}
#thq-m-menu .thq-m-lbl {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#thq-m-menu .thq-m-lv {
  font-style: normal;
  font-size: 10.5px;
  color: #f3c46b;
  background: rgba(243,196,107,.14);
  border: 1px solid rgba(243,196,107,.35);
  padding: 1px 5px;
  border-radius: 4px;
}
#thq-m-menu .thq-m-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #d93829;
  border: 1.5px solid #ffd27a;
  color: #fff;
  font-style: normal;
  font-size: 10.5px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.7);
}
#thq-m-hide {
  padding: 0 !important;
  width: 32px !important;
  display: none !important;
}
body.thq-mob #thq-m-hide { display: inline-flex !important; }
#thq-m-hide.on {
  border-color: #6fe3c1 !important;
  background: linear-gradient(180deg, rgba(24,52,44,.95), rgba(12,24,22,.95)) !important;
}
#thq-m-hide.on img { opacity: 0.78; transform: rotate(180deg); }

#thq-m-draft {
  border-color: #ffd060 !important;
  background: linear-gradient(180deg, rgba(64,42,14,.95), rgba(32,20,8,.95)) !important;
  color: #ffe39b !important;
  animation: thqPulse 1.4s ease-in-out infinite;
}
@keyframes thqPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,208,96,.35); }
  50% { box-shadow: 0 0 16px rgba(255,208,96,.78); }
}

/* 4. Icon PNG Vo Lam chuan kich thuoc */
img.vl-ui-ic {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.85));
  pointer-events: none;
}
img.vl-tile-ic { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
img.thq-h-ic { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.85)); }

/* 5. Thanh #eco-bar & 3 Tuyet Ky tren PC */
#eco-bar {
  top: auto !important;
  bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 260px) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 8px !important;
  border: 1.5px solid #937342 !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, rgba(26,21,17,.94), rgba(11,12,17,.96)) !important;
  box-shadow: 0 5px 20px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,216,140,.2) !important;
}
#eco-bar > * {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 32px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
#eco-bar .eco-pill {
  padding: 0 8px !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(196,154,84,.25) !important;
  font-size: 12px !important;
}
#eco-bar button {
  padding: 0 9px !important;
  border-radius: 6px !important;
  border: 1.5px solid #6b5638 !important;
  background: linear-gradient(180deg, rgba(34,30,28,.96), rgba(18,19,27,.96)) !important;
  color: #efe2c4 !important;
  font-size: 12px !important;
  cursor: pointer;
  transition: transform .1s, border-color .15s, background .15s;
}
#eco-bar button:hover {
  border-color: #f3c46b !important;
  background: linear-gradient(180deg, rgba(50,41,32,.98), rgba(24,25,35,.98)) !important;
  color: #fff6dc !important;
}
#eco-bar button:active { transform: translateY(1px); }
#eco-bar button.hi, #eco-bar [data-vl-act="build"] {
  border-color: #e8b04a !important;
  background: linear-gradient(180deg, #6b491d, #3f290e) !important;
  color: #fff0c8 !important;
}
#evo-bar { bottom: calc(var(--hud-bot, 42px) + 46px) !important; z-index: 48 !important; }
#vc-bar {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: max(8px, env(safe-area-inset-right, 8px)) !important;
  bottom: var(--hud-bot, 44px) !important;
  z-index: 47 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px !important;
}

/* 6. Ngan keo Hanh Trang Vo Lam */
#thq-drawer .thq-d-head-l { display: flex; align-items: center; gap: 10px; }
#thq-drawer .thq-t-ic {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 auto 4px; border-radius: 8px;
  background: radial-gradient(circle, rgba(255,204,102,.18), rgba(14,12,18,.88));
  border: 1px solid rgba(196,154,84,.45);
}
#thq-drawer .thq-p-lbl { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================================
   7. MOBILE: CUM PHIM VONG CUNG 2 LOP GOC DUOI PHAI (CHUAN GAME VO LAM / MOBA)
   - Tam vong cung: Nut Co / Danh (58px tron noi bat)
   - Lop 1 (trong): 3 Tuyet Chieu (46px tron om vong cung 3deg, 45deg, 87deg)
   - Lop 2 (ngoai): Quan Doan, Xay Nha, +Dan, Ban Go (40px tron om 4deg, 32deg, 60deg, 88deg)
   - 2 Chi so Go & Phu Dich: thanh mini gon goc tren trai ngay duoi #thq-top-bar
   ============================================================================ */
body.thq-mob #thq-m-menu,
body.thq-mob #thq-m-hide,
body.thq-mob #thq-m-draft {
  height: 30px !important;
  font-size: 11.5px !important;
}
body.thq-mob #thq-m-hide { width: 30px !important; }
body.thq-mob #thq-m-menu .thq-m-lv { display: none !important; }
body.thq-narrow #thq-m-menu .thq-m-lbl { display: none !important; }
body.thq-narrow #thq-m-menu { width: 32px !important; padding: 0 !important; }

/* Bien #eco-bar va #vc-bar thanh lop trong suot khong chan cham, de tung nut dat theo toa do vong cung */
body.thq-mob #eco-bar,
body.thq-mob #vc-bar {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
  display: block !important;
}

/* 2 Chi so Go & Phu Dich gon goc tren trai ngay duoi nut Hanh Trang */
body.thq-mob #eco-bar .eco-pill {
  position: fixed !important;
  top: calc(var(--hud-top-l, 42px) + 35px) !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(196,154,84,.48) !important;
  background: rgba(13,15,22,.88) !important;
  font-size: 11px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.55) !important;
  pointer-events: auto !important;
}
body.thq-mob #eco-bar .eco-pill:nth-of-type(1),
body.thq-mob #eco-bar [data-vl-act="stat-wood"] {
  left: max(8px, env(safe-area-inset-left, 8px)) !important;
}
body.thq-mob #eco-bar .eco-pill:nth-of-type(2),
body.thq-mob #eco-bar [data-vl-act="stat-pop"] {
  left: calc(max(8px, env(safe-area-inset-left, 8px)) + 64px) !important;
}
body.thq-mob #eco-bar .eco-pill img.vl-ui-ic { width: 14px !important; height: 14px !important; }

/* Dinh dang chung cho cac nut tron trong vong cung */
body.thq-mob #eco-bar button,
body.thq-mob #vc-bar .vc-sk {
  position: fixed !important;
  pointer-events: auto !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: transform .14s, opacity .18s, border-color .15s !important;
}
body.thq-mob #eco-bar button:active,
body.thq-mob #vc-bar .vc-sk:active {
  transform: scale(0.91) !important;
}

/* TAM VONG CUNG (Goc duoi phai): Nut Co / Danh chinh (58px tron noi bat) */
body.thq-mob #eco-bar .war-fl,
body.thq-mob #eco-bar [data-vl-act="flag"] {
  right: calc(10px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  width: 58px !important;
  height: 58px !important;
  gap: 1px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  border: 2.5px solid #ffd25a !important;
  background: radial-gradient(circle at 35% 30%, #7d2e18, #38120c 72%, #1d0a08) !important;
  color: #fff2cc !important;
  box-shadow: 0 0 18px rgba(255,178,66,.42), 0 6px 18px rgba(0,0,0,.78), inset 0 1px 2px rgba(255,230,170,.4) !important;
  z-index: 49 !important;
}
body.thq-mob #eco-bar .war-fl img.vl-ui-ic,
body.thq-mob #eco-bar [data-vl-act="flag"] img.vl-ui-ic {
  width: 26px !important;
  height: 26px !important;
}
body.thq-mob #eco-bar .war-fl.ready,
body.thq-mob #eco-bar [data-vl-act="flag"].ready {
  border-color: #6fe3c1 !important;
  box-shadow: 0 0 22px rgba(111,227,193,.72), 0 6px 18px rgba(0,0,0,.8) !important;
}

/* VONG CUNG LOP 1 (TRONG - Ban kinh 80px): 3 Tuyet Chieu (46px tron) */
body.thq-mob #vc-bar .vc-sk {
  width: 46px !important;
  height: 46px !important;
  border: 2px solid #d4a34a !important;
  background: radial-gradient(circle at 35% 30%, rgba(42,34,26,.96), rgba(14,15,22,.96)) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.75), inset 0 1px 1px rgba(255,224,150,.3) !important;
  z-index: 48 !important;
}
body.thq-mob #vc-bar .vc-sk .vc-ic,
body.thq-mob #vc-bar .vc-sk .vl-sk-ic {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
}
body.thq-mob #vc-bar .vc-nm,
body.thq-mob #vc-bar .vc-key { display: none !important; }
body.thq-mob #vc-bar .vc-sk[data-sk="0"] {
  right: calc(96px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #vc-bar .vc-sk[data-sk="1"] {
  right: calc(73px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(73px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #vc-bar .vc-sk[data-sk="2"] {
  right: calc(18px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

/* VONG CUNG LOP 2 (NGOAI - Ban kinh 134px): 4 nut chuc nang (40px tron) */
body.thq-mob #eco-bar button:not(.war-fl):not([data-vl-act="flag"]) {
  width: 40px !important;
  height: 40px !important;
  gap: 1px !important;
  font-size: 8.5px !important;
  line-height: 1 !important;
  border: 1.5px solid #8a6c3e !important;
  background: radial-gradient(circle at 35% 30%, rgba(34,29,24,.94), rgba(13,15,22,.94)) !important;
  color: #f3e4c2 !important;
  box-shadow: 0 3px 12px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,220,150,.22) !important;
  z-index: 47 !important;
}
body.thq-mob #eco-bar button:not(.war-fl):not([data-vl-act="flag"]) img.vl-ui-ic {
  width: 17px !important;
  height: 17px !important;
}
body.thq-mob #eco-bar .war-hi,
body.thq-mob #eco-bar [data-vl-act="army"] {
  right: calc(152px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  border-color: #d98245 !important;
}
body.thq-mob #eco-bar [data-eco="open"],
body.thq-mob #eco-bar [data-vl-act="build"] {
  right: calc(130px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  border-color: #e8b04a !important;
  background: radial-gradient(circle at 35% 30%, #69481d, #32210d) !important;
}
body.thq-mob #eco-bar [data-eco="vil"],
body.thq-mob #eco-bar [data-vl-act="vil"] {
  right: calc(86px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar [data-eco="sell"],
body.thq-mob #eco-bar [data-vl-act="sell"] {
  right: calc(22px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(152px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Man hinh dien thoai rat hep (<=385px) hoac xoay ngang thap: thu gon nhe ban kinh vong cung */
body.thq-xs #eco-bar .war-fl, body.thq-xs #eco-bar [data-vl-act="flag"],
body.thq-land #eco-bar .war-fl, body.thq-land #eco-bar [data-vl-act="flag"] {
  width: 52px !important; height: 52px !important; right: 8px !important; bottom: 8px !important;
}
body.thq-xs #vc-bar .vc-sk, body.thq-land #vc-bar .vc-sk { width: 42px !important; height: 42px !important; }
body.thq-xs #vc-bar .vc-sk[data-sk="0"], body.thq-land #vc-bar .vc-sk[data-sk="0"] { right: 84px !important; bottom: 14px !important; }
body.thq-xs #vc-bar .vc-sk[data-sk="1"], body.thq-land #vc-bar .vc-sk[data-sk="1"] { right: 64px !important; bottom: 64px !important; }
body.thq-xs #vc-bar .vc-sk[data-sk="2"], body.thq-land #vc-bar .vc-sk[data-sk="2"] { right: 14px !important; bottom: 84px !important; }
body.thq-xs #eco-bar button:not(.war-fl):not([data-vl-act="flag"]),
body.thq-land #eco-bar button:not(.war-fl):not([data-vl-act="flag"]) { width: 36px !important; height: 36px !important; font-size: 8px !important; }
body.thq-xs #eco-bar .war-hi, body.thq-xs #eco-bar [data-vl-act="army"],
body.thq-land #eco-bar .war-hi, body.thq-land #eco-bar [data-vl-act="army"] { right: 134px !important; bottom: 18px !important; }
body.thq-xs #eco-bar [data-eco="open"], body.thq-xs #eco-bar [data-vl-act="build"],
body.thq-land #eco-bar [data-eco="open"], body.thq-land #eco-bar [data-vl-act="build"] { right: 114px !important; bottom: 74px !important; }
body.thq-xs #eco-bar [data-eco="vil"], body.thq-xs #eco-bar [data-vl-act="vil"],
body.thq-land #eco-bar [data-eco="vil"], body.thq-land #eco-bar [data-vl-act="vil"] { right: 74px !important; bottom: 114px !important; }
body.thq-xs #eco-bar [data-eco="sell"], body.thq-xs #eco-bar [data-vl-act="sell"],
body.thq-land #eco-bar [data-eco="sell"], body.thq-land #eco-bar [data-vl-act="sell"] { right: 18px !important; bottom: 134px !important; }

/* Thanh tien hoa tru cap 3 tren Mobile: nam ben trai phia tren nut || 1x */
body.thq-mob #evo-bar {
  top: auto !important;
  bottom: calc(var(--hud-bot, 42px) + 38px) !important;
  left: 8px !important;
  right: auto !important;
  transform: none !important;
  max-width: calc(100vw - 210px) !important;
}

/* Che do thu gon HUD 1 cham tren Mobile -> an vong cung de soi tron ban do 54x54 */
body.thq-mob.thq-hud-min #eco-bar button,
body.thq-mob.thq-hud-min #vc-bar .vc-sk {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.5) !important;
}
/* === THQ COMPACT HUD V2 END === */
/* === VO LAM FONT FORCE ALL START === */
html, body, *, *::before, *::after {
  font-family: var(--vl-font), sans-serif!important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
/* Tieu de dung rieng khoi THQ FANTASY TITLE FONT ben duoi */
/* === VO LAM FONT FORCE ALL END === */

/* === THQ FIX4 START === */
/* 1. AN HOAN TOAN VONG CUNG & NUT HUD KHI MO BAT KY TAB / MODAL NAO (triet de loi 3 nut danh chong cheo) */
body.thq-modal-open #vc-bar,
body.thq-modal-open #eco-bar,
body.thq-modal-open #evo-bar,
body.thq-modal-open #thq-top-bar,
body.thq-modal-open #dl-mode-pill,
#vc-root:has(#vc-modal.open) #vc-bar,
#eco-root:has(#eco-modal.open) #eco-bar {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Dam bao toan bo Modal luon nam tren cung cac lop HUD (chi duoi Khay Thong Bao z-index 90) */
#km-modal, #vc-modal, #dg-modal, #acc-modal, #pb-modal, #dl-modal,
#eco-modal, #war-modal, #evo-modal, #thq-drawer, #thq-guide-modal {
  z-index: 86 !important;
}

/* 2. Khoa chat toa do 3 nut Tuyet Chieu & Vong cung 2 lop Mobile (khong bi lech khi hover/cham/chuyen tab) */
body.thq-mob #eco-bar button,
body.thq-mob #vc-bar .vc-sk {
  top: auto !important;
  left: auto !important;
  transform: none !important;
}
body.thq-mob #vc-bar .vc-sk:hover {
  transform: none !important;
}
body.thq-mob #eco-bar button:active,
body.thq-mob #vc-bar .vc-sk:active {
  transform: scale(0.92) !important;
}

/* Toa do chuan hinh hoc (cach deu >= 9px giua 3 nut danh, >= 13px giua 2 lop) */
body.thq-mob #eco-bar .war-fl,
body.thq-mob #eco-bar [data-vl-act="flag"] {
  width: 56px !important; height: 56px !important;
  right: calc(12px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #vc-bar .vc-sk { width: 46px !important; height: 46px !important; }
body.thq-mob #vc-bar .vc-sk[data-sk="0"] {
  right: calc(98px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #vc-bar .vc-sk[data-sk="1"] {
  right: calc(75px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #vc-bar .vc-sk[data-sk="2"] {
  right: calc(26px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar button:not(.war-fl):not([data-vl-act="flag"]) {
  width: 40px !important; height: 40px !important;
}
body.thq-mob #eco-bar .war-hi,
body.thq-mob #eco-bar [data-vl-act="army"] {
  right: calc(158px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar [data-eco="open"],
body.thq-mob #eco-bar [data-vl-act="build"] {
  right: calc(137px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(93px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar [data-eco="vil"],
body.thq-mob #eco-bar [data-vl-act="vil"] {
  right: calc(93px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(137px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar [data-eco="sell"],
body.thq-mob #eco-bar [data-vl-act="sell"] {
  right: calc(32px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(158px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Dien thoai rat hep (<= 385px) hoac xoay ngang thap */
body.thq-xs #eco-bar .war-fl, body.thq-xs #eco-bar [data-vl-act="flag"],
body.thq-land #eco-bar .war-fl, body.thq-land #eco-bar [data-vl-act="flag"] {
  width: 50px !important; height: 50px !important; right: 8px !important; bottom: 8px !important;
}
body.thq-xs #vc-bar .vc-sk, body.thq-land #vc-bar .vc-sk { width: 42px !important; height: 42px !important; }
body.thq-xs #vc-bar .vc-sk[data-sk="0"], body.thq-land #vc-bar .vc-sk[data-sk="0"] { right: 84px !important; bottom: 18px !important; }
body.thq-xs #vc-bar .vc-sk[data-sk="1"], body.thq-land #vc-bar .vc-sk[data-sk="1"] { right: 64px !important; bottom: 64px !important; }
body.thq-xs #vc-bar .vc-sk[data-sk="2"], body.thq-land #vc-bar .vc-sk[data-sk="2"] { right: 18px !important; bottom: 84px !important; }
body.thq-xs #eco-bar button:not(.war-fl):not([data-vl-act="flag"]),
body.thq-land #eco-bar button:not(.war-fl):not([data-vl-act="flag"]) { width: 36px !important; height: 36px !important; }
body.thq-xs #eco-bar .war-hi, body.thq-xs #eco-bar [data-vl-act="army"],
body.thq-land #eco-bar .war-hi, body.thq-land #eco-bar [data-vl-act="army"] { right: 136px !important; bottom: 22px !important; }
body.thq-xs #eco-bar [data-eco="open"], body.thq-xs #eco-bar [data-vl-act="build"],
body.thq-land #eco-bar [data-eco="open"], body.thq-land #eco-bar [data-vl-act="build"] { right: 118px !important; bottom: 76px !important; }
body.thq-xs #eco-bar [data-eco="vil"], body.thq-xs #eco-bar [data-vl-act="vil"],
body.thq-land #eco-bar [data-eco="vil"], body.thq-land #eco-bar [data-vl-act="vil"] { right: 76px !important; bottom: 118px !important; }
body.thq-xs #eco-bar [data-eco="sell"], body.thq-xs #eco-bar [data-vl-act="sell"],
body.thq-land #eco-bar [data-eco="sell"], body.thq-land #eco-bar [data-vl-act="sell"] { right: 22px !important; bottom: 136px !important; }

/* 3. Nut ? mo Huong Dan Tan Thu gon goc tren trai */
#thq-m-guide {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 1.5px solid #8a6c3e !important;
  border-radius: 7px !important;
  background: linear-gradient(180deg, rgba(32,25,18,.94), rgba(14,13,18,.94)) !important;
  color: #ffd978 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,220,150,.22) !important;
}
#thq-m-guide:hover { border-color: #ffd25a !important; color: #fff4cf !important; }
body.thq-mob #thq-m-guide { width: 30px !important; height: 30px !important; font-size: 13px !important; }

/* 4. Giao dien Modal Huong Dan Tan Thu (#thq-guide-modal) */
#thq-guide-root { position: fixed; inset: 0; pointer-events: none; z-index: 84; }
#thq-guide-modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 12px; background: rgba(4,6,12,.82); backdrop-filter: blur(4px);
  pointer-events: auto; touch-action: pan-y;
}
#thq-guide-modal.open { display: flex; }
body.thq-mob #thq-guide-modal { align-items: flex-end; padding: 8px; }
.thq-g-box {
  width: min(560px, 100%); max-height: 90dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #161926, #0d1019);
  border: 2px solid #9d7b46; border-radius: 12px; padding: 14px 15px;
  color: #efe4cd; box-shadow: 0 20px 54px rgba(0,0,0,.88); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 11px;
}
.thq-g-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(232,176,74,.25);
}
.thq-g-title { font-size: 15.5px; font-weight: 700; color: #ffd25a; letter-spacing: .02em; }
.thq-g-sub { font-size: 12px; color: #b8ae99; margin-top: 2px; }
.thq-g-close {
  width: 34px; height: 34px; border: 1.5px solid #5d4c35; border-radius: 7px;
  background: rgba(28,31,44,.95); color: #efe4cd; font-size: 15px; cursor: pointer; flex-shrink: 0;
}
.thq-g-close:hover { border-color: #ffd25a; }
.thq-g-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.thq-g-tab {
  flex: 1 1 auto; min-width: 78px; padding: 6px 8px; border-radius: 7px;
  border: 1.5px solid #473e33; background: rgba(22,26,38,.92); color: #bfb5a0;
  font-size: 11.5px; font-weight: 700; cursor: pointer; text-align: center;
}
.thq-g-tab.on {
  border-color: #ffd25a; color: #fff2cc;
  background: linear-gradient(180deg, rgba(84,58,22,.92), rgba(40,28,12,.94));
}
.thq-g-body {
  background: rgba(20,24,36,.9); border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px; padding: 12px 13px; display: flex; flex-direction: column; gap: 10px;
}
.thq-g-ic-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.thq-g-ic-box {
  width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255,204,102,.18), rgba(13,15,24,.92));
  border: 1.5px solid rgba(204,162,88,.5);
}
.thq-g-ic-box img { width: 28px; height: 28px; object-fit: contain; }
.thq-g-stitle { font-size: 15px; font-weight: 700; color: #ffe6b3; }
.thq-g-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; line-height: 1.48; color: #dfd4be; }
.thq-g-list b { color: #ffd985; }
.thq-g-list i { color: #8ad8ff; font-style: normal; font-weight: 600; }
.thq-g-tip {
  padding: 8px 10px; border-radius: 7px; font-size: 12px; line-height: 1.4;
  background: rgba(111,227,193,.1); border: 1px solid rgba(111,227,193,.35); color: #9df5da;
}
.thq-g-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thq-g-nav { display: flex; gap: 7px; }
.thq-g-btn {
  padding: 8px 14px; border-radius: 7px; border: 1.5px solid #594b39;
  background: rgba(28,32,46,.95); color: #e8dcc4; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.thq-g-btn:hover { border-color: #e8b04a; color: #fff; }
.thq-g-btn.ghost { background: transparent; color: #a99f8c; border-color: #3f372d; }
.thq-g-btn.pri {
  border-color: #ffd25a; color: #fff4d2;
  background: linear-gradient(180deg, #744e1e, #472d0f);
}
.thq-g-btn.pri:hover { background: linear-gradient(180deg, #8e6126, #5a3913); }
/* === THQ FIX4 END === */
/* === THQ POLISH V4 START === */
/* 1. An hoan toan nut Huong Dan & nut Thu Gon Vong Cung khoi man hinh chinh */
#thq-m-guide, #thq-m-hide {
  display: none !important;
}

/* 2. Chuan hoa nut Linh Ngo Bao Dien (#thq-m-draft) bang DUNG kich thuoc cac nut khac */
#thq-m-draft {
  height: 32px !important;
  min-height: 0 !important;
  padding: 0 8px !important;
  gap: 4px !important;
  border-width: 1.5px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
#thq-m-draft img.vl-ui-ic {
  width: 16px !important;
  height: 16px !important;
}
#thq-m-draft b {
  font-size: 11.5px !important;
  line-height: 1 !important;
}
body.thq-mob #thq-m-draft,
body.thq-land #thq-m-draft,
body.thq-narrow #thq-m-draft {
  height: 30px !important;
  padding: 0 7px !important;
  font-size: 11px !important;
  gap: 3px !important;
}
body.thq-mob #thq-m-draft img.vl-ui-ic,
body.thq-land #thq-m-draft img.vl-ui-ic {
  width: 15px !important;
  height: 15px !important;
}
body.thq-land #thq-m-menu {
  height: 30px !important;
}

/* 3. Hang nut tien ich (Huong Dan + Bat/Tat Vong Cung Mobile) ben trong Hanh Trang */
.thq-util-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px !important;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.thq-util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1.5px solid #594b39;
  background: rgba(26, 30, 44, .95);
  color: #efe2c4;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.thq-util-btn:hover {
  border-color: #ffd25a;
  color: #fff6dc;
}
.thq-util-btn.on {
  border-color: #6fe3c1;
  background: rgba(24, 54, 46, .92);
  color: #b8ffe8;
}
.thq-util-btn b { color: #ffd978; }
.thq-util-btn.on b { color: #6fe3c1; }
@media (max-width: 420px) {
  .thq-util-row { grid-template-columns: 1fr; }
}

/* 4. Giao dien chon Tong Mon dang luoi the bai Vo Lam (thay the drop list cu) */
.acc-box-auth {
  width: min(540px, 100%) !important;
}
.acc-sect-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}
.acc-sect-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #e8b04a;
  letter-spacing: 0.02em;
}
.acc-sect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.acc-form label.acc-sect-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 9px 10px 9px 11px;
  border-radius: 9px;
  border: 1.5px solid #3f382e;
  border-left: 3.5px solid var(--sc, #e8b04a);
  background: linear-gradient(160deg, rgba(24, 28, 42, .94), rgba(14, 17, 27, .96));
  cursor: pointer;
  transition: border-color .15s, transform .12s, box-shadow .15s, background .15s;
  box-sizing: border-box;
  margin: 0;
}
.acc-form label.acc-sect-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.acc-form label.acc-sect-card:hover {
  border-color: var(--sc, #e8b04a);
  background: linear-gradient(160deg, rgba(34, 38, 56, .96), rgba(18, 21, 33, .98));
}
.acc-form label.acc-sect-card.on,
.acc-form label.acc-sect-card:has(input:checked) {
  border-color: var(--sc, #ffd25a);
  background: linear-gradient(160deg, rgba(46, 38, 28, .96), rgba(19, 22, 34, .98));
  box-shadow: 0 0 0 1px var(--sc, #ffd25a), 0 4px 16px rgba(0, 0, 0, .55);
}
.acc-sc-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.acc-sc-ic {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  flex-shrink: 0;
}
.acc-sc-nm {
  flex: 1;
  min-width: 0;
  font-family: var(--vl-title-font, var(--vl-font)) !important;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sc, #ffe4a8);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.acc-sc-chk {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #524a3e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: transparent;
  flex-shrink: 0;
  transition: all .15s;
}
.acc-form label.acc-sect-card.on .acc-sc-chk,
.acc-form label.acc-sect-card:has(input:checked) .acc-sc-chk {
  background: var(--sc, #ffd25a);
  border-color: var(--sc, #ffd25a);
  color: #10131d;
}
.acc-sc-bn {
  font-size: 11.5px;
  line-height: 1.38;
  color: #d6cbb5;
}
@media (max-width: 440px) {
  .acc-sect-grid { gap: 6px; }
  .acc-form label.acc-sect-card { padding: 7px 8px 7px 9px; }
  .acc-sc-ic { width: 22px; height: 22px; font-size: 12px; }
  .acc-sc-nm { font-size: 12.5px; }
  .acc-sc-bn { font-size: 10.5px; }
}
/* === THQ POLISH V4 END === */

/* === THQ MONO TITLE FONT START === */
/* cyrillic-ext */
@font-face {
  font-family: 'THQMono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/thq-mono-0.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'THQMono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/thq-mono-1.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'THQMono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/thq-mono-2.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'THQMono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/thq-mono-3.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'THQMono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/thq-mono-4.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'THQMono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/thq-mono-5.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --vl-title-font: var(--vl-font);
}
html body #load,
html body h1,
html body h1 *:not(small):not(img):not(em),
html body h2,
html body h2 *:not(small):not(img):not(em),
html body h3,
html body h3 *:not(small):not(img):not(em),
html body h4,
html body h4 *:not(small):not(img):not(em),
html body [class$="-title"],
html body [class$="-title"] *:not(small):not(img):not(em),
html body [class$="-stitle"],
html body [class$="-stitle"] *:not(small):not(img):not(em),
html body [class$="-sec"],
html body [class$="-sec"] *:not(small):not(img):not(em),
html body [class$="-sec-t"],
html body [class$="-sec-t"] *:not(small):not(img):not(em),
html body [class$="-sec-ttl"],
html body [class$="-sec-ttl"] *:not(small):not(img):not(em),
html body .thq-d-title,
html body .thq-d-title *:not(small):not(img):not(em),
html body .thq-g-title,
html body .thq-g-title *:not(small):not(img):not(em),
html body .thq-g-stitle,
html body .thq-g-stitle *:not(small):not(img):not(em),
html body .thq-tile b,
html body .thq-p-lbl,
html body .thq-p-lbl *:not(small):not(img):not(em),
html body .km-title,
html body .km-title *:not(small):not(img):not(em),
html body .km-name,
html body .km-name *:not(small):not(img):not(em),
html body .vc-title,
html body .vc-title *:not(small):not(img):not(em),
html body .dg-title,
html body .dg-title *:not(small):not(img):not(em),
html body .dg-d-name,
html body .dg-d-name *:not(small):not(img):not(em),
html body .dg-ach-name,
html body .dg-ach-name *:not(small):not(img):not(em),
html body .acc-title,
html body .acc-title *:not(small):not(img):not(em),
html body .acc-sec-ttl,
html body .acc-sec-ttl *:not(small):not(img):not(em),
html body .acc-sect-lbl,
html body .acc-sect-lbl *:not(small):not(img):not(em),
html body .acc-sc-nm,
html body .acc-sc-nm *:not(small):not(img):not(em),
html body .acc-h-name,
html body .acc-h-name *:not(small):not(img):not(em),
html body .acc-s-top b,
html body .evo-title,
html body .evo-title *:not(small):not(img):not(em),
html body .evo-c-name,
html body .evo-c-name *:not(small):not(img):not(em),
html body .pb-title,
html body .pb-title *:not(small):not(img):not(em),
html body .pb-sec-t,
html body .pb-sec-t *:not(small):not(img):not(em),
html body .pb-det-nm,
html body .pb-det-nm *:not(small):not(img):not(em),
html body .dl-title,
html body .dl-title *:not(small):not(img):not(em),
html body .dl-sec-t,
html body .dl-sec-t *:not(small):not(img):not(em),
html body .dl-mut,
html body .dl-mut *:not(small):not(img):not(em),
html body .eco-title,
html body .eco-title *:not(small):not(img):not(em),
html body .eco-sec,
html body .eco-sec *:not(small):not(img):not(em),
html body .eco-c-nm b,
html body .war-title,
html body .war-title *:not(small):not(img):not(em),
html body .war-sec,
html body .war-sec *:not(small):not(img):not(em),
html body .war-a-t,
html body .war-a-t *:not(small):not(img):not(em) {
  font-family: var(--vl-title-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.03em !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.88);
}
html body #load {
  font-size: clamp(22px, 4.4vw, 36px);
  color: #ffd978;
}
html body #load small {
  font-family: var(--vl-font), sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0;
}
/* === THQ MONO TITLE FONT END === */

/* === THQ DRAFT ICON FIX START === */
/* Can chuan nut & icon Linh Ngo Bao Dien (#thq-m-draft) thanh o vuong gon bang dung nut Hanh Trang, khong bi to hon */
#thq-top-bar #thq-m-draft {
  position: relative !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  border-width: 1.5px !important;
  border-radius: 7px !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  transform: none !important;
}
#thq-top-bar #thq-m-draft img.vl-ui-ic {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  object-fit: contain !important;
  display: block !important;
}
#thq-top-bar #thq-m-draft b {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 3px !important;
  border-radius: 99px !important;
  background: #d93829 !important;
  border: 1.5px solid #ffd27a !important;
  color: #fff !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .7) !important;
  pointer-events: none !important;
}
body.thq-mob #thq-top-bar #thq-m-draft,
body.thq-narrow #thq-top-bar #thq-m-draft,
body.thq-land #thq-top-bar #thq-m-draft {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
}
body.thq-mob #thq-top-bar #thq-m-draft img.vl-ui-ic,
body.thq-narrow #thq-top-bar #thq-m-draft img.vl-ui-ic,
body.thq-land #thq-top-bar #thq-m-draft img.vl-ui-ic {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}

/* Can dong deu thi giac icon Bao Dien ben trong bang Hanh Trang (anh sach vuong day vien nen giam nhe 4px cho deu mat) */
#thq-drawer .thq-tile img.vl-tile-ic {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
}
#thq-drawer .thq-tile[data-open="vc"] img.vl-tile-ic {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}
/* === THQ DRAFT ICON FIX END === */

/* === THQ ECO DEEP V2 START === */
.eco-quick.eco-quick-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
@media (max-width: 680px) {
  .eco-quick.eco-quick-4 { grid-template-columns: repeat(2, 1fr); }
}
.eco-qbtn.on {
  border-color: #6fe3c1 !important;
  background: rgba(24, 62, 52, .92) !important;
  color: #c2ffea !important;
}
.eco-up-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(232, 176, 74, .25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eco-up-ds {
  font-size: 11px;
  line-height: 1.35;
  color: #d7ccb6;
}
.eco-up-ds b { color: #ffd978; }
.eco-btn.upg {
  width: 100%;
  border-color: #4f6c5c !important;
  background: rgba(24, 42, 36, .9) !important;
  color: #b8f0d8 !important;
}
.eco-btn.upg.hi {
  border-color: #6fe3c1 !important;
  background: linear-gradient(180deg, rgba(38, 86, 68, .96), rgba(22, 54, 43, .96)) !important;
  color: #e6fff6 !important;
}
.eco-up-max {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 210, 90, .2);
  font-size: 11px;
  color: #ffd25a;
  text-align: center;
}
.eco-t-tier {
  font-style: normal;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  background: rgba(232, 176, 74, .16);
  color: #ffd978;
}
.eco-tech.locked { opacity: .66; }
/* === THQ ECO DEEP V2 END === */

/* === FIX KHUNG HOANG KIM TRONG HO SO NHAN VAT === */
#acc-modal .acc-box,
#acc-modal .acc-box * {
  box-sizing: border-box;
}
#acc-modal .acc-hero {
  max-width: 100%;
  overflow: hidden;
}
#acc-modal .acc-vault-box {
  box-sizing: border-box;
  max-width: 100%;
}
@media (max-width: 680px) {
  #acc-modal .acc-hero {
    flex-wrap: wrap;
    align-items: center;
  }
  #acc-modal .acc-h-info {
    flex: 1 1 170px;
    min-width: 0;
  }
  #acc-modal .acc-vault-box {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    padding: 8px 12px;
  }
  #acc-modal .acc-vault-box b {
    margin-top: 0;
    white-space: nowrap;
  }
}
body.thq-mob #acc-modal .acc-hero {
  flex-wrap: wrap;
}
body.thq-mob #acc-modal .acc-vault-box {
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 8px 12px;
}
body.thq-mob #acc-modal .acc-vault-box b {
  margin-top: 0;
  white-space: nowrap;
}

/* === FIX XEP DOC O SO DAN DUOI O GO (KHOANG CACH DEU) === */
body.thq-mob #eco-bar .eco-pill {
  left: max(10px, env(safe-area-inset-left, 10px)) !important;
  min-width: 68px !important;
  height: 26px !important;
  padding: 0 8px !important;
  gap: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}
body.thq-mob #eco-bar .eco-pill:nth-of-type(1),
body.thq-mob #eco-bar [data-vl-act="stat-wood"] {
  top: calc(var(--hud-top) + 38px) !important;
  left: max(10px, env(safe-area-inset-left, 10px)) !important;
}
body.thq-mob #eco-bar .eco-pill:nth-of-type(2),
body.thq-mob #eco-bar [data-vl-act="stat-pop"] {
  top: calc(var(--hud-top) + 70px) !important;
  left: max(10px, env(safe-area-inset-left, 10px)) !important;
}

/* === FIX FONT THONG BAO LEN CAP & TOAST START === */
html body #thq-notify-stack,
html body #thq-notify-stack > .thq-toast-item,
html body #acc-toast,
html body #km-toast,
html body #vc-banner,
html body #dg-toast,
html body #evo-toast,
html body #pb-toast,
html body #dl-toast,
html body #eco-toast,
html body #war-toast {
  font-family: var(--vl-title-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.03em !important;
}
/* === FIX FONT THONG BAO LEN CAP & TOAST END === */

/* === FIX NUT +LINH & VOM CUNG 5 NUT START === */
#eco-bar .war-sol {
  border-color: #4f9e79 !important;
  color: #c8ffe4 !important;
  background: linear-gradient(180deg, rgba(24,54,42,.95), rgba(12,26,22,.96)) !important;
}
#eco-bar .war-sol:hover {
  border-color: #79f2b8 !important;
  color: #ffffff !important;
}
#eco-bar .war-sol.full {
  opacity: 0.62;
  border-color: #5b5244 !important;
  color: #b7ad9a !important;
}
#eco-bar .war-sol .war-sol-ic {
  font-size: 13px;
  line-height: 1;
}

/* Mobile: Xep 5 nut vong ngoai (Quan Doan, +Linh, Xay Nha, +Dan, Ban Go) cach deu >= 16px, khong chong cheo */
body.thq-mob #eco-bar button:not(.war-fl):not([data-vl-act="flag"]) {
  width: 38px !important;
  height: 38px !important;
}
body.thq-mob #eco-bar .war-sol {
  flex-direction: column !important;
  gap: 1px !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
}
body.thq-mob #eco-bar .war-sol .war-sol-ic {
  font-size: 14px !important;
}
body.thq-mob #eco-bar .war-hi,
body.thq-mob #eco-bar [data-vl-act="army"] {
  right: calc(167px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar .war-sol,
body.thq-mob #eco-bar [data-vl-act="soldier"] {
  right: calc(151px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar [data-eco="open"],
body.thq-mob #eco-bar [data-vl-act="build"] {
  right: calc(118px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(129px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar [data-eco="vil"],
body.thq-mob #eco-bar [data-vl-act="vil"] {
  right: calc(70px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(158px + env(safe-area-inset-bottom, 0px)) !important;
}
body.thq-mob #eco-bar [data-eco="sell"],
body.thq-mob #eco-bar [data-vl-act="sell"] {
  right: calc(16px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(168px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Man hinh nho (<= 385px) hoac xoay ngang */
body.thq-xs #eco-bar button:not(.war-fl):not([data-vl-act="flag"]),
body.thq-land #eco-bar button:not(.war-fl):not([data-vl-act="flag"]) {
  width: 34px !important;
  height: 34px !important;
}
body.thq-xs #eco-bar .war-hi, body.thq-xs #eco-bar [data-vl-act="army"],
body.thq-land #eco-bar .war-hi, body.thq-land #eco-bar [data-vl-act="army"] {
  right: 145px !important; bottom: 24px !important;
}
body.thq-xs #eco-bar .war-sol, body.thq-xs #eco-bar [data-vl-act="soldier"],
body.thq-land #eco-bar .war-sol, body.thq-land #eco-bar [data-vl-act="soldier"] {
  right: 132px !important; bottom: 72px !important;
}
body.thq-xs #eco-bar [data-eco="open"], body.thq-xs #eco-bar [data-vl-act="build"],
body.thq-land #eco-bar [data-eco="open"], body.thq-land #eco-bar [data-vl-act="build"] {
  right: 102px !important; bottom: 111px !important;
}
body.thq-xs #eco-bar [data-eco="vil"], body.thq-xs #eco-bar [data-vl-act="vil"],
body.thq-land #eco-bar [data-eco="vil"], body.thq-land #eco-bar [data-vl-act="vil"] {
  right: 60px !important; bottom: 137px !important;
}
body.thq-xs #eco-bar [data-eco="sell"], body.thq-xs #eco-bar [data-vl-act="sell"],
body.thq-land #eco-bar [data-eco="sell"], body.thq-land #eco-bar [data-vl-act="sell"] {
  right: 14px !important; bottom: 146px !important;
}
/* === FIX NUT +LINH & VOM CUNG 5 NUT END === */

/* === THQ PVP SIEGE WAR START === */
#thq-m-pvp {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  padding: 0 9px;
  border: 1.5px solid #e06d44;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(78,24,18,.95), rgba(34,12,12,.96));
  color: #ffe2c4;
  font: 700 12px/1 var(--vl-title-font);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.55);
}
#thq-m-pvp:hover { border-color: #ffd25a; color: #fff; }
#thq-m-pvp.has-alert { border-color: #ff4d3d; box-shadow: 0 0 12px rgba(255,77,61,.65); }
body.thq-mob #thq-m-pvp { height: 30px !important; padding: 0 7px !important; font-size: 11px !important; }
body.thq-narrow #thq-m-pvp span { display: none; }

.thq-pvp-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1.5px solid #e06d44;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(76,24,18,.92), rgba(34,20,24,.94));
  color: #ffe8cc;
  cursor: pointer;
}
.thq-pvp-banner:hover { border-color: #ffd25a; }
.thq-pvp-ic { font-size: 22px; flex-shrink: 0; }
.thq-pvp-banner > div { flex: 1; min-width: 0; }
.thq-pvp-banner b { display: block; font-size: 13px; color: #ffd978; font-family: var(--vl-title-font); }
.thq-pvp-banner small { display: block; font-size: 11px; color: #d8c7b0; margin-top: 2px; }
.thq-pvp-banner em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #ffae63; flex-shrink: 0; }

#pvp-root { position: fixed; inset: 0; pointer-events: none; z-index: 86; font-family: var(--vl-font); color: #efe4cd; }
#pvp-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(4,6,12,.82); backdrop-filter: blur(4px); pointer-events: auto; touch-action: pan-y; }
#pvp-modal.open { display: flex; }
.pvp-box { width: min(760px, 100%); max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: rgba(14,17,28,.98); border: 2px solid #b86b3a; border-radius: 11px; padding: 15px; box-shadow: 0 20px 56px rgba(0,0,0,.88); box-sizing: border-box; }
.pvp-box * { box-sizing: border-box; }
.pvp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,176,90,.24); }
.pvp-title { font-size: 16.5px; font-weight: 700; color: #ffd25a; font-family: var(--vl-title-font); }
.pvp-sub { font-size: 12px; color: #b8ae99; margin-top: 2px; }
.pvp-close { width: 34px; height: 34px; border: 1.5px solid #6b4e38; border-radius: 7px; background: rgba(28,31,44,.95); color: #efe4cd; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.pvp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 11px 0; }
.pvp-tabs button { padding: 8px 6px; border: 1.5px solid #4a4033; border-radius: 7px; background: rgba(22,25,36,.92); color: #c7bda8; font: 600 12px/1.2 var(--vl-font); cursor: pointer; }
.pvp-tabs button.on { border-color: #ffd25a; background: rgba(232,176,74,.18); color: #ffe8b0; }

.pvp-my-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 11px; }
.pvp-my-strip > div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 7px; padding: 7px; text-align: center; }
.pvp-my-strip span { display: block; font-size: 10.5px; color: #a79e8a; }
.pvp-my-strip b { display: block; font-size: 13.5px; color: #ffe6b3; margin-top: 2px; }

.pvp-err { background: rgba(229,85,60,.18); border: 1px solid #e5553c; color: #ffb2a6; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; margin-bottom: 10px; }
.pvp-guest, .pvp-scan-idle { text-align: center; padding: 18px 12px; background: rgba(22,26,39,.85); border: 1.5px solid #493f32; border-radius: 9px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pvp-g-ic { font-size: 34px; }
.pvp-mode-note { font-size: 13px; line-height: 1.5; color: #dfd4be; max-width: 540px; }
.pvp-btn { padding: 9px 14px; border: 1.5px solid #63533d; border-radius: 8px; background: rgba(28,32,46,.95); color: #efe4cd; font: 700 13px/1.2 var(--vl-font); cursor: pointer; }
.pvp-btn:hover { border-color: #ffd25a; color: #fff; }
.pvp-btn.pri { border-color: #ff9c54; background: linear-gradient(180deg, #8c371d, #541d11); color: #fff1d4; }
.pvp-btn.pri:hover { background: linear-gradient(180deg, #a84222, #692415); }
.pvp-btn.big { width: 100%; padding: 12px 14px; font-size: 14px; }
.pvp-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.pvp-target-card { background: rgba(22,25,38,.94); border: 1.5px solid #9e5b34; border-radius: 9px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pvp-tc-head { display: flex; align-items: center; gap: 10px; }
.pvp-tc-av { width: 46px; height: 46px; border-radius: 9px; border: 2px solid #ffd25a; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.pvp-tc-nm { font-size: 15.5px; font-weight: 700; color: #ffe6b0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pvp-tc-nm span { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(255,210,90,.18); color: #ffd25a; }
.pvp-tc-nm em { font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 4px; background: rgba(120,160,210,.2); color: #a8d4ff; }
.pvp-tc-nm em.real { background: rgba(255,107,87,.22); color: #ff9c8a; }
.pvp-tc-sub { font-size: 12px; color: #bdb39e; margin-top: 2px; }
.pvp-tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pvp-tc-stats > div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 7px; text-align: center; }
.pvp-tc-stats span { display: block; font-size: 10.5px; color: #a79e8a; }
.pvp-tc-stats b { display: block; font-size: 12.5px; color: #f3e8d2; margin-top: 2px; }
.pvp-est-box { background: rgba(255,210,90,.1); border: 1px solid rgba(255,210,90,.35); border-radius: 7px; padding: 8px 10px; font-size: 12.5px; color: #ffe8b5; text-align: center; }
.pvp-tc-acts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }

.pvp-sec-ttl { font-size: 12px; font-weight: 700; color: #ffd25a; text-transform: uppercase; margin: 10px 0 6px; font-family: var(--vl-title-font); }
.pvp-panel { background: rgba(22,26,39,.9); border: 1px solid rgba(255,255,255,.09); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 9px; }
.pvp-p-txt { font-size: 12.5px; line-height: 1.45; color: #d6cbb5; }
.pvp-withdraw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pvp-w-btn { text-align: left; padding: 9px; border: 1.5px solid #4e4334; border-radius: 7px; background: rgba(22,26,39,.95); color: #efe4cd; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.pvp-w-btn:hover:not(:disabled) { border-color: #6fe3c1; }
.pvp-w-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pvp-w-btn b { font-size: 12.5px; color: #ffe4a8; }
.pvp-w-btn span { font-size: 11px; color: #a79e8a; }

.pvp-logs, .pvp-lb { display: flex; flex-direction: column; gap: 6px; }
.pvp-log-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 7px; background: rgba(22,26,39,.92); border: 1px solid rgba(255,255,255,.08); }
.pvp-log-row.win { border-left: 3px solid #6fe3c1; }
.pvp-log-row.lose { border-left: 3px solid #ff6b57; }
.pvp-lr-main b { display: block; font-size: 12.5px; color: #ffe8b8; }
.pvp-lr-main small { display: block; font-size: 11.5px; color: #c7bda8; margin-top: 2px; }
.pvp-rev-btn { padding: 6px 10px; border: 1.5px solid #ff6b57; border-radius: 6px; background: rgba(229,85,60,.2); color: #ffb3a6; font: 700 11.5px/1 var(--vl-font); cursor: pointer; flex-shrink: 0; }
.pvp-lb-row { display: grid; grid-template-columns: 36px 1fr 62px 68px; align-items: center; gap: 6px; padding: 7px 10px; background: rgba(22,26,39,.88); border: 1px solid rgba(255,255,255,.07); border-radius: 6px; font-size: 12.5px; }
.pvp-lb-rk { font-weight: 700; color: #ffd25a; }
.pvp-lb-rt { text-align: right; font-weight: 700; color: #ffae63; }
.pvp-empty { text-align: center; padding: 14px; color: #9d9482; font-size: 12.5px; }

/* CHIEN TRUONG CONG THANH TRUC TIEP (#pvp-arena) */
#pvp-arena { position: fixed; inset: 0; display: none; flex-direction: column; background: #080b13; pointer-events: auto; z-index: 88; }
#pvp-arena.open { display: flex; }
.pvp-a-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(8px, env(safe-area-inset-top, 8px)) 12px 8px; background: rgba(14,17,28,.96); border-bottom: 1.5px solid rgba(255,176,90,.3); }
.pvp-a-who b { display: block; font-size: 13.5px; color: #ffe4a8; }
.pvp-a-who span { display: block; font-size: 11px; color: #b8ae99; }
.pvp-a-hpwrap { flex: 1; max-width: 280px; text-align: center; }
.pvp-a-hp { height: 10px; background: rgba(0,0,0,.6); border: 1px solid #8a4b38; border-radius: 5px; overflow: hidden; }
.pvp-a-hp-i { display: block; height: 100%; background: linear-gradient(90deg, #ff543d, #ff9d47); transition: width .12s; }
.pvp-a-hptxt { font-size: 11px; color: #ffd9c4; margin-top: 2px; font-weight: 700; }
.pvp-a-right { display: flex; align-items: center; gap: 8px; }
.pvp-a-time { font-size: 15px; font-weight: 700; color: #ffd25a; font-family: var(--vl-title-font); min-width: 36px; text-align: right; }
.pvp-a-retreat { padding: 6px 10px; border: 1.5px solid #e05a47; border-radius: 6px; background: rgba(180,45,35,.28); color: #ffb8ac; font: 700 11.5px/1 var(--vl-font); cursor: pointer; }
.pvp-a-tip { text-align: center; font-size: 11.5px; padding: 4px 8px; background: rgba(255,210,90,.09); color: #ffe2a8; border-bottom: 1px solid rgba(255,210,90,.16); }
#pvp-canvas { flex: 1; width: 100%; min-height: 0; display: block; touch-action: none; cursor: crosshair; }

.pvp-a-dock { padding: 8px 10px max(10px, env(safe-area-inset-bottom, 10px)); background: rgba(13,16,26,.97); border-top: 1.5px solid rgba(255,176,90,.3); display: flex; flex-direction: column; gap: 7px; }
.pvp-a-enrow { display: flex; align-items: center; gap: 10px; }
.pvp-a-en { flex: 1; height: 8px; background: rgba(0,0,0,.55); border-radius: 4px; overflow: hidden; border: 1px solid rgba(111,227,193,.35); }
.pvp-a-en-i { display: block; height: 100%; background: linear-gradient(90deg, #3ac79b, #7fffd4); }
.pvp-a-entxt { font-size: 11.5px; font-weight: 700; color: #9effde; white-space: nowrap; }
.pvp-a-cmds { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pvp-a-units { flex: 1.4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; min-width: 240px; }
.pvp-a-skills { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-width: 175px; }
.pvp-u-btn, .pvp-sk-btn { position: relative; padding: 6px 4px; border: 1.5px solid #594b38; border-radius: 8px; background: rgba(24,28,42,.95); color: #efe4cd; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.pvp-sk-btn { border-color: #a86b32; background: linear-gradient(180deg, rgba(56,34,18,.95), rgba(24,18,16,.96)); }
.pvp-u-btn span, .pvp-sk-btn span { font-size: 18px; line-height: 1; }
.pvp-u-btn b, .pvp-sk-btn b { font-size: 11px; color: #ffe8b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pvp-u-btn em, .pvp-sk-btn em { font-style: normal; font-size: 10px; color: #7fffd4; font-weight: 700; }
.pvp-u-btn i { position: absolute; top: 3px; left: 5px; font-style: normal; font-size: 9.5px; color: #8c8372; }
.pvp-u-btn.off, .pvp-sk-btn.off { opacity: 0.45; }

.pvp-res-ov { position: absolute; inset: 0; background: rgba(5,8,14,.82); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 14px; z-index: 95; }
.pvp-res-box { width: min(460px, 100%); background: rgba(16,20,32,.98); border: 2px solid #ffd25a; border-radius: 12px; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 11px; box-shadow: 0 20px 55px rgba(0,0,0,.9); }
.pvp-res-box.lose { border-color: #e0604c; }
.pvp-res-ttl { font-size: 19px; font-weight: 700; color: #ffd978; font-family: var(--vl-title-font); }
.pvp-res-box.lose .pvp-res-ttl { color: #ff9684; }
.pvp-res-sub { font-size: 13px; color: #d6cbb5; }
.pvp-loot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pvp-loot-card { background: rgba(255,210,90,.09); border: 1px solid rgba(255,210,90,.35); border-radius: 8px; padding: 10px; }
.pvp-loot-card span { display: block; font-size: 11px; color: #d8c89c; }
.pvp-loot-card b { display: block; font-size: 18px; color: #ffd966; margin: 3px 0; }
.pvp-loot-card small { display: block; font-size: 10.5px; color: #9effde; }
.pvp-res-note { font-size: 12px; color: #b8ae99; line-height: 1.45; }
.pvp-res-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 640px) {
  .pvp-my-strip { grid-template-columns: repeat(2, 1fr); }
  .pvp-tc-stats, .pvp-tc-acts, .pvp-withdraw-grid, .pvp-res-acts { grid-template-columns: 1fr; }
  .pvp-u-btn i { display: none; }
}
/* === THQ PVP SIEGE WAR END === */

/* === THQ PVP 3D REAL MAP HUD START === */
/* An toan bo HUD PvE khi dang danh tren ban do 3D PvP */
body.pvp-3d-active #thq-top-bar,
body.pvp-3d-active #eco-bar,
body.pvp-3d-active #vc-bar,
body.pvp-3d-active #acc-badge,
body.pvp-3d-active #km-fab,
body.pvp-3d-active #dg-fab,
body.pvp-3d-active #pb-fab,
body.pvp-3d-active #dl-fab,
body.pvp-3d-active #vc-book-fab,
body.pvp-3d-active #dl-mode-pill {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Overlay PvP 3D TRONG SUOT hoan toan de lo 100% ban do 3D that ben duoi */
#pvp-arena {
  position: fixed !important;
  inset: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
  z-index: 88 !important;
  display: none !important;
}
#pvp-arena.open {
  display: block !important;
}
#pvp-hud-cv {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.pvp3-top {
  position: fixed;
  top: max(6px, env(safe-area-inset-top, 6px));
  left: 8px;
  right: 8px;
  z-index: 5;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(12, 16, 26, 0.86);
  border: 1.5px solid rgba(232, 176, 74, 0.45);
  box-shadow: 0 6px 20px rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.pvp3-who { min-width: 0; }
.pvp3-who b { display: block; font-size: 12.5px; color: #ffe4a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 135px; }
.pvp3-who span { display: block; font-size: 10px; color: #b8ae99; white-space: nowrap; }
.pvp3-hpwrap { flex: 1; max-width: 240px; text-align: center; }
.pvp3-hp { height: 9px; background: rgba(0,0,0,0.65); border: 1px solid #964e39; border-radius: 5px; overflow: hidden; }
.pvp3-hp-i { display: block; height: 100%; background: linear-gradient(90deg, #ff4b36, #ff9b45); transition: width 0.12s; }
.pvp3-hptxt { font-size: 10.5px; color: #ffdcc6; margin-top: 2px; font-weight: 700; }
.pvp3-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pvp3-time { font-size: 14px; font-weight: 700; color: #ffd25a; font-family: var(--vl-title-font); min-width: 30px; text-align: right; }
.pvp3-retreat { padding: 5px 8px; border: 1.5px solid #e05a47; border-radius: 6px; background: rgba(180,45,35,0.34); color: #ffc0b5; font: 700 11px/1 var(--vl-font); cursor: pointer; }

.pvp3-tip {
  position: fixed;
  top: calc(max(6px, env(safe-area-inset-top, 6px)) + 54px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(14, 18, 28, 0.78);
  border: 1px solid rgba(255, 210, 90, 0.35);
  color: #ffe6b3;
  font-size: 11px;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.6s;
}

.pvp3-dock {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom, 8px));
  z-index: 5;
  pointer-events: auto;
  max-width: 680px;
  margin: 0 auto;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(12, 16, 26, 0.88);
  border: 1.5px solid rgba(232, 176, 74, 0.42);
  box-shadow: 0 8px 26px rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pvp3-enrow { display: flex; align-items: center; gap: 8px; }
.pvp3-en { flex: 1; height: 7px; background: rgba(0,0,0,0.6); border-radius: 4px; overflow: hidden; border: 1px solid rgba(111,227,193,0.38); }
.pvp3-en-i { display: block; height: 100%; background: linear-gradient(90deg, #3ac79b, #7fffd4); }
.pvp3-entxt { font-size: 11px; font-weight: 700; color: #9effde; white-space: nowrap; }
.pvp3-cam { padding: 3px 7px; border: 1px solid #59697a; border-radius: 5px; background: rgba(24,32,46,0.92); color: #d8e8ff; font: 600 10.5px/1 var(--vl-font); cursor: pointer; white-space: nowrap; }

.pvp3-cmds {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.pvp3-btn {
  position: relative;
  padding: 5px 2px;
  border: 1.5px solid #594b38;
  border-radius: 7px;
  background: rgba(24,28,42,0.94);
  color: #efe4cd;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
}
.pvp3-btn.sk {
  border-color: #b87333;
  background: linear-gradient(180deg, rgba(64,36,18,0.94), rgba(26,18,16,0.96));
}
.pvp3-btn span { font-size: 16px; line-height: 1.05; }
.pvp3-btn b { font-size: 9.5px; color: #ffe8b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pvp3-btn em { font-style: normal; font-size: 9.5px; color: #7fffd4; font-weight: 700; }
.pvp3-btn.sk em { color: #ffd25a; }
.pvp3-btn i { position: absolute; top: 2px; left: 4px; font-style: normal; font-size: 8.5px; color: #8c8372; }
.pvp3-btn.off { opacity: 0.42; }

#pvp-arena .pvp-res-ov { pointer-events: auto !important; }

@media (max-width: 520px) {
  .pvp3-who b { max-width: 96px; font-size: 11.5px; }
  .pvp3-cmds { gap: 4px; }
  .pvp3-btn { padding: 4px 1px; }
  .pvp3-btn span { font-size: 15px; }
  .pvp3-btn b { font-size: 8.5px; }
  .pvp3-btn i { display: none; }
}
/* === THQ PVP 3D REAL MAP HUD END === */

/* === THQ PVP 3D V2 FEEL START === */
.pvp3-stars { font-size: 13px; line-height: 1; letter-spacing: 2px; margin-bottom: 2px; color: #696050; }
.pvp3-stars i { font-style: normal; }
.pvp3-stars i.lit { color: #ffd25a; text-shadow: 0 0 8px rgba(255,210,90,.75); }
.pvp3-stars small { letter-spacing: 0; font-size: 10px; color: #d8cdb8; margin-left: 3px; }
.pvp3-spd { padding: 5px 7px; border: 1.5px solid #6b6150; border-radius: 6px; background: rgba(24,28,42,.92); color: #e8dec8; font: 700 11px/1 var(--vl-title-font); cursor: pointer; }
.pvp3-spd.on { border-color: #ffd25a; color: #ffd978; background: rgba(232,176,74,.2); }

.pvp3-aimbar {
  position: fixed;
  top: calc(max(6px, env(safe-area-inset-top, 6px)) + 64px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(160, 42, 22, 0.92);
  border: 1.5px solid #ffd25a;
  color: #fff4d4;
  font-size: 11.5px;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.7);
}
.pvp3-aimbar.show { display: block; }

.pvp3-banner {
  position: fixed;
  top: calc(max(6px, env(safe-area-inset-top, 6px)) + 98px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  z-index: 6;
  pointer-events: none;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(12, 16, 26, 0.92);
  border: 1.5px solid #ffd25a;
  color: #ffe8b0;
  font: 700 12.5px/1.2 var(--vl-title-font);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.75);
}
.pvp3-banner.show { opacity: 1; transform: translateX(-50%) scale(1); }

.pvp3-row-units, .pvp3-row-skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.pvp3-btn.sk.aim {
  border-color: #fff0a8 !important;
  box-shadow: 0 0 14px rgba(255, 210, 90, 0.85) !important;
  transform: translateY(-2px);
}
.pvp3-btn.ult {
  overflow: hidden;
  border-color: #c74a2e;
  background: linear-gradient(180deg, rgba(66,22,22,.95), rgba(26,12,16,.96));
}
.pvp3-btn.ult > * { position: relative; z-index: 2; }
.pvp3-ult-fill {
  position: absolute !important;
  inset: 0 auto 0 0;
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(255,110,45,.45), rgba(255,205,70,.55));
  transition: width 0.16s;
}
.pvp3-btn.ult.ready {
  opacity: 1 !important;
  border-color: #ffe066 !important;
  box-shadow: 0 0 16px rgba(255, 190, 60, 0.9) !important;
  animation: pvpUltPulse 0.9s infinite alternate;
}
.pvp3-btn.ult.ready em { color: #fff6c2 !important; }
@keyframes pvpUltPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.pvp-res-stars { font-size: 32px; letter-spacing: 6px; line-height: 1; color: #4c463c; }
.pvp-res-stars span.lit { color: #ffd25a; text-shadow: 0 0 14px rgba(255,210,90,.85); }
/* === THQ PVP 3D V2 FEEL END === */

/* === THQ COMPACT NOTIFY & UNIFIED FONT START === */
/* 1. DONG BO 100% FONT THQMono CHO MOI THONG BAO, BANNER & TIEU DE (KE CA PVP) */
html body #thq-notify-stack,
html body #thq-notify-stack > .thq-toast-item,
html body #acc-toast,
html body #km-toast,
html body #vc-banner,
html body #dg-toast,
html body #evo-toast,
html body #pb-toast,
html body #dl-toast,
html body #eco-toast,
html body #war-toast,
html body #pvp-toast,
html body .pvp3-banner,
html body .pvp3-tip,
html body .pvp3-aimbar,
html body .vc-aim-bar,
html body .eco-p-bar,
html body #war-place .war-p-bar,
html body #dl-mode-pill,
html body #thq-m-pvp,
html body .thq-pvp-banner b,
html body .pvp-title,
html body .pvp-sec-ttl,
html body .pvp-tc-nm,
html body .pvp-res-ttl,
html body .pvp3-who b,
html body .pvp3-time,
html body .pvp3-spd,
html body .pvp3-hptxt,
html body .pvp3-entxt {
  font-family: var(--vl-title-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.03em !important;
}

/* Dong bo font noi dung/nut trong PvP theo font goc cua game */
html body #pvp-root,
html body #pvp-modal,
html body #pvp-arena,
html body #pvp-modal button,
html body #pvp-arena button:not(.pvp3-spd) {
  font-family: var(--vl-font), sans-serif !important;
}
html body #pvp-modal .pvp-title,
html body #pvp-modal .pvp-sec-ttl,
html body #pvp-modal .pvp-tc-nm,
html body #pvp-arena .pvp-res-ttl,
html body #pvp-arena .pvp3-who b,
html body #pvp-arena .pvp3-time,
html body #pvp-arena .pvp3-spd,
html body #pvp-arena .pvp3-banner,
html body #pvp-arena .pvp3-tip,
html body #pvp-arena .pvp3-aimbar,
html body #pvp-toast {
  font-family: var(--vl-title-font) !important;
}

/* 2. THU NHO TOAN BO KHAY THONG BAO & BANNER DE KHONG DE CAC NUT KHAC */
html body #thq-notify-stack {
  top: calc(var(--hud-top, 44px) + 2px) !important;
  width: min(74vw, 300px) !important;
  gap: 3px !important;
  z-index: 94 !important;
  pointer-events: none !important;
}
html body.pvp-3d-active #thq-notify-stack {
  top: calc(max(6px, env(safe-area-inset-top, 6px)) + 56px) !important;
  width: min(76vw, 290px) !important;
}
html body #thq-notify-stack > .thq-toast-item {
  padding: 3px 9px !important;
  border-radius: 6px !important;
  border-width: 1px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7) !important;
}
html body.thq-mob #thq-notify-stack {
  top: calc(var(--hud-top, 40px) + 1px) !important;
  width: min(68vw, 245px) !important;
}
html body.thq-mob #thq-notify-stack > .thq-toast-item {
  padding: 2.5px 8px !important;
  font-size: 9.8px !important;
  line-height: 1.22 !important;
}

/* Thu gon thanh banner, tip, aimbar trong PvP & PvE de khong che ban do va nut */
html body .pvp3-top {
  padding: 4px 8px !important;
  gap: 6px !important;
}
html body .pvp3-tip {
  top: calc(max(6px, env(safe-area-inset-top, 6px)) + 52px) !important;
  padding: 2.5px 8px !important;
  font-size: 9.5px !important;
  line-height: 1.2 !important;
  max-width: min(82vw, 295px) !important;
}
html body .pvp3-aimbar {
  top: calc(max(6px, env(safe-area-inset-top, 6px)) + 52px) !important;
  padding: 3px 9px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  border-width: 1px !important;
  max-width: min(84vw, 310px) !important;
}
html body .pvp3-banner {
  top: calc(max(6px, env(safe-area-inset-top, 6px)) + 80px) !important;
  padding: 3px 10px !important;
  font-size: 10.5px !important;
  line-height: 1.22 !important;
  border-radius: 6px !important;
  border-width: 1px !important;
  max-width: min(80vw, 295px) !important;
}
html body .vc-aim-bar,
html body .eco-p-bar,
html body #war-place .war-p-bar {
  padding: 4px 9px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  border-radius: 6px !important;
  max-width: min(84vw, 330px) !important;
}
html body #dl-mode-pill {
  padding: 3px 8px !important;
  font-size: 10px !important;
}
/* === THQ COMPACT NOTIFY & UNIFIED FONT END === */

/* === THQ PVP 3D ARC HUD START === */
/* Cum Khi Luc & Toc do/Zoom goc duoi trai (giong PvE) */
.pvp3-bl {
  position: fixed;
  left: max(8px, env(safe-area-inset-left, 8px));
  bottom: max(10px, env(safe-area-inset-bottom, 10px));
  z-index: 6;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  touch-action: manipulation;
}
.pvp3-en-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(12, 16, 26, 0.88);
  border: 1.5px solid rgba(111, 227, 193, 0.45);
  box-shadow: 0 4px 14px rgba(0,0,0,0.65);
  width: 148px;
}
.pvp3-en-pill .pvp3-en { flex: 1; height: 7px; background: rgba(0,0,0,0.6); border-radius: 4px; overflow: hidden; border: 1px solid rgba(111,227,193,0.35); }
.pvp3-en-pill .pvp3-entxt { font-size: 10px; font-weight: 700; color: #9effde; white-space: nowrap; }
.pvp3-bl-btns {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pvp3-bl-btns .pvp3-spd,
.pvp3-bl-btns .pvp3-zbtn {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1.5px solid #6b6150;
  border-radius: 6px;
  background: rgba(16, 20, 32, 0.92);
  color: #efe4cd;
  font: 700 12px/1 var(--vl-title-font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.58);
  touch-action: manipulation;
}
.pvp3-bl-btns .pvp3-zbtn { font-size: 16px; }
.pvp3-bl-btns .pvp3-spd.on { border-color: #ffd25a; color: #ffd978; background: rgba(232,176,74,0.22); }

/* VOM CUNG 2 LOP GOC DUOI PHAI (GIONG HET BEN DANH QUAI) */
.pvp3-arc {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.pvp3-arc-btn {
  position: fixed;
  pointer-events: auto;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 240, 200, 0.22);
  transition: transform 0.1s, border-color 0.15s, opacity 0.15s;
}
.pvp3-arc-btn:active { transform: scale(0.91) !important; }
.pvp3-arc-btn.off { opacity: 0.48; }
.pvp3-arc-btn .pvp3-ic { line-height: 1; position: relative; z-index: 2; }
.pvp3-arc-btn .pvp3-sub {
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 2;
  font-family: var(--vl-title-font) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}

/* Nut Tam: Tran Phai (No) */
.pvp3-arc-btn.ult {
  width: 62px; height: 62px;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border: 2.5px solid #d45535;
  background: radial-gradient(circle at 35% 30%, rgba(92,28,24,0.96), rgba(26,11,15,0.97));
  overflow: hidden;
}
.pvp3-arc-btn.ult .pvp3-ult-fill {
  position: absolute !important;
  left: 0; right: 0; bottom: 0; top: auto !important;
  width: 100% !important;
  z-index: 1 !important;
  background: linear-gradient(0deg, rgba(255,95,35,0.68), rgba(255,205,70,0.62));
  transition: height 0.16s;
}
.pvp3-arc-btn.ult .pvp3-ic { font-size: 23px; }
.pvp3-arc-btn.ult .pvp3-sub { font-size: 10.5px; color: #ffe6a8; }
.pvp3-arc-btn.ult.ready {
  opacity: 1 !important;
  border-color: #ffe066 !important;
  box-shadow: 0 0 20px rgba(255, 195, 65, 0.95), 0 6px 18px rgba(0,0,0,0.75) !important;
  animation: pvpUltPulse 0.85s infinite alternate;
}

/* Vong Trong: 3 Tuyet Ky */
.pvp3-arc-btn.sk {
  width: 50px; height: 50px;
  border: 2px solid #c9863a;
  background: radial-gradient(circle at 35% 30%, rgba(68,38,18,0.95), rgba(22,16,18,0.96));
}
.pvp3-arc-btn.sk .pvp3-ic { font-size: 19px; }
.pvp3-arc-btn.sk .pvp3-sub { font-size: 9.5px; color: #ffd978; }
.pvp3-arc-btn.sk.aim {
  border-color: #fff2a8 !important;
  box-shadow: 0 0 16px rgba(255, 215, 90, 0.95) !important;
}
.pvp3-arc-btn[data-arc-sk="0"] { right: calc(108px + env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.pvp3-arc-btn[data-arc-sk="1"] { right: calc(83px + env(safe-area-inset-right, 0px));  bottom: calc(83px + env(safe-area-inset-bottom, 0px)); }
.pvp3-arc-btn[data-arc-sk="2"] { right: calc(28px + env(safe-area-inset-right, 0px));  bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }

/* Vong Ngoai: 4 Binh Chung + nut Theo quan */
.pvp3-arc-btn.u, .pvp3-arc-btn.cam {
  width: 44px; height: 44px;
  border: 1.8px solid #598572;
  background: radial-gradient(circle at 35% 30%, rgba(26,44,44,0.95), rgba(13,19,28,0.96));
}
.pvp3-arc-btn.cam { border-color: #6b7b94; background: radial-gradient(circle at 35% 30%, rgba(30,38,54,0.95), rgba(14,18,28,0.96)); }
.pvp3-arc-btn.u .pvp3-ic, .pvp3-arc-btn.cam .pvp3-ic { font-size: 17px; }
.pvp3-arc-btn.u .pvp3-sub { font-size: 9.5px; color: #8fffe0; }
.pvp3-arc-btn.cam .pvp3-sub { font-size: 8.5px; color: #d0e4ff; }
.pvp3-arc-btn[data-arc-u="0"]   { right: calc(182px + env(safe-area-inset-right, 0px)); bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
.pvp3-arc-btn[data-arc-u="1"]   { right: calc(165px + env(safe-area-inset-right, 0px)); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.pvp3-arc-btn[data-arc-u="2"]   { right: calc(129px + env(safe-area-inset-right, 0px)); bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
.pvp3-arc-btn[data-arc-u="3"]   { right: calc(76px + env(safe-area-inset-right, 0px));  bottom: calc(172px + env(safe-area-inset-bottom, 0px)); }
.pvp3-arc-btn[data-arc-cam="1"] { right: calc(18px + env(safe-area-inset-right, 0px));  bottom: calc(182px + env(safe-area-inset-bottom, 0px)); }

/* Mobile chuan: khop 100% toa do vom cung PvE (56 / 46 / 38) */
body.thq-mob .pvp3-arc-btn.ult {
  width: 56px; height: 56px;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
body.thq-mob .pvp3-arc-btn.ult .pvp3-ic { font-size: 21px; }
body.thq-mob .pvp3-arc-btn.sk { width: 46px; height: 46px; }
body.thq-mob .pvp3-arc-btn.sk .pvp3-ic { font-size: 17px; }
body.thq-mob .pvp3-arc-btn[data-arc-sk="0"] { right: calc(98px + env(safe-area-inset-right, 0px)); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
body.thq-mob .pvp3-arc-btn[data-arc-sk="1"] { right: calc(75px + env(safe-area-inset-right, 0px)); bottom: calc(75px + env(safe-area-inset-bottom, 0px)); }
body.thq-mob .pvp3-arc-btn[data-arc-sk="2"] { right: calc(26px + env(safe-area-inset-right, 0px)); bottom: calc(98px + env(safe-area-inset-bottom, 0px)); }

body.thq-mob .pvp3-arc-btn.u, body.thq-mob .pvp3-arc-btn.cam { width: 38px; height: 38px; }
body.thq-mob .pvp3-arc-btn.u .pvp3-ic, body.thq-mob .pvp3-arc-btn.cam .pvp3-ic { font-size: 15px; }
body.thq-mob .pvp3-arc-btn[data-arc-u="0"]   { right: calc(167px + env(safe-area-inset-right, 0px)); bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
body.thq-mob .pvp3-arc-btn[data-arc-u="1"]   { right: calc(151px + env(safe-area-inset-right, 0px)); bottom: calc(85px + env(safe-area-inset-bottom, 0px)); }
body.thq-mob .pvp3-arc-btn[data-arc-u="2"]   { right: calc(118px + env(safe-area-inset-right, 0px)); bottom: calc(129px + env(safe-area-inset-bottom, 0px)); }
body.thq-mob .pvp3-arc-btn[data-arc-u="3"]   { right: calc(70px + env(safe-area-inset-right, 0px));  bottom: calc(158px + env(safe-area-inset-bottom, 0px)); }
body.thq-mob .pvp3-arc-btn[data-arc-cam="1"] { right: calc(16px + env(safe-area-inset-right, 0px));  bottom: calc(168px + env(safe-area-inset-bottom, 0px)); }

body.thq-mob .pvp3-en-pill { width: 126px; padding: 3px 6px; }
body.thq-mob .pvp3-bl-btns .pvp3-spd, body.thq-mob .pvp3-bl-btns .pvp3-zbtn { width: 30px; height: 28px; }

/* Dien thoai rat hep (<= 385px) hoac xoay ngang */
body.thq-xs .pvp3-arc-btn.ult, body.thq-land .pvp3-arc-btn.ult { width: 50px; height: 50px; right: 8px; bottom: 8px; }
body.thq-xs .pvp3-arc-btn.sk, body.thq-land .pvp3-arc-btn.sk { width: 42px; height: 42px; }
body.thq-xs .pvp3-arc-btn[data-arc-sk="0"], body.thq-land .pvp3-arc-btn[data-arc-sk="0"] { right: 84px; bottom: 18px; }
body.thq-xs .pvp3-arc-btn[data-arc-sk="1"], body.thq-land .pvp3-arc-btn[data-arc-sk="1"] { right: 64px; bottom: 64px; }
body.thq-xs .pvp3-arc-btn[data-arc-sk="2"], body.thq-land .pvp3-arc-btn[data-arc-sk="2"] { right: 18px; bottom: 84px; }
body.thq-xs .pvp3-arc-btn.u, body.thq-xs .pvp3-arc-btn.cam,
body.thq-land .pvp3-arc-btn.u, body.thq-land .pvp3-arc-btn.cam { width: 34px; height: 34px; }
body.thq-xs .pvp3-arc-btn[data-arc-u="0"],   body.thq-land .pvp3-arc-btn[data-arc-u="0"]   { right: 145px; bottom: 24px; }
body.thq-xs .pvp3-arc-btn[data-arc-u="1"],   body.thq-land .pvp3-arc-btn[data-arc-u="1"]   { right: 132px; bottom: 72px; }
body.thq-xs .pvp3-arc-btn[data-arc-u="2"],   body.thq-land .pvp3-arc-btn[data-arc-u="2"]   { right: 102px; bottom: 111px; }
body.thq-xs .pvp3-arc-btn[data-arc-u="3"],   body.thq-land .pvp3-arc-btn[data-arc-u="3"]   { right: 60px;  bottom: 137px; }
body.thq-xs .pvp3-arc-btn[data-arc-cam="1"], body.thq-land .pvp3-arc-btn[data-arc-cam="1"] { right: 14px;  bottom: 146px; }

/* Bao dam man hinh ket qua PvP luon nhan cham tot */
#pvp-arena .pvp-res-ov {
  position: fixed !important;
  inset: 0 !important;
  z-index: 98 !important;
  pointer-events: auto !important;
  touch-action: pan-y !important;
}
#pvp-arena .pvp-res-ov button,
.pvp3-top button {
  touch-action: manipulation !important;
  pointer-events: auto !important;
}
/* === THQ PVP 3D ARC HUD END === */

/* === THQ PVP V3 RANK & EDITOR START === */
.pvp-rank-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(42,26,22,0.92), rgba(18,22,36,0.94));
  border: 1.5px solid rgba(255,210,90,0.42);
  flex-wrap: wrap;
}
.pvp-rk-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pvp-rk-ic { width: 38px; height: 38px; border-radius: 8px; border: 2px solid #ffd25a; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.pvp-rk-left b { display: block; font-size: 13.5px; font-family: var(--vl-title-font) !important; }
.pvp-rk-left small { display: block; font-size: 11px; color: #cfc5b0; margin-top: 2px; }
.pvp-daily-btn {
  padding: 7px 11px;
  border: 1.5px solid #595042;
  border-radius: 7px;
  background: rgba(24,28,40,0.9);
  color: #9e9584;
  font: 700 11.5px/1.2 var(--vl-font);
  cursor: pointer;
}
.pvp-daily-btn.on {
  border-color: #ffd25a;
  background: linear-gradient(180deg, #8a5b18, #54350d);
  color: #fff2c6;
  box-shadow: 0 0 12px rgba(255,210,90,0.4);
}
.pvp-daily-btn:disabled { opacity: 0.65; cursor: default; }

.pvp-slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pvp-slot-btn {
  padding: 7px 4px;
  border: 1.5px solid #5e4f3c;
  border-radius: 7px;
  background: rgba(20,24,38,0.95);
  color: #efe4cd;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.pvp-slot-btn:hover { border-color: #ffd25a; background: rgba(44,36,28,0.95); }
.pvp-slot-btn span { font-size: 18px; line-height: 1; }
.pvp-slot-btn b { font-size: 11.5px; color: #ffe6b0; }
.pvp-slot-btn small { font-size: 9.5px; color: #9c9280; }

.pvp-pol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pvp-pol-btn {
  text-align: left;
  padding: 7px 8px;
  border: 1.5px solid #4a4236;
  border-radius: 7px;
  background: rgba(18,22,34,0.94);
  color: #cfc5b0;
  cursor: pointer;
}
.pvp-pol-btn.on { border-color: #6fe3c1; background: rgba(34,76,62,0.42); color: #eafff6; }
.pvp-pol-btn b { display: block; font-size: 12px; color: #ffe6b0; margin-bottom: 2px; }
.pvp-pol-btn small { display: block; font-size: 10.5px; line-height: 1.3; color: #b8ae99; }
.pvp-def-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pvp3-vbadge {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  margin-left: 3px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity 0.2s, transform 0.2s;
}
.pvp3-vbadge.done {
  opacity: 1;
  filter: none;
  transform: scale(1.15);
}
.pvp3-pop {
  height: 30px;
  padding: 0 7px;
  border: 1.5px solid #4f6b63;
  border-radius: 6px;
  background: rgba(14, 24, 28, 0.92);
  color: #b8ffe6;
  font: 700 10.5px/1 var(--vl-title-font) !important;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.58);
}
body.thq-mob .pvp3-pop { height: 28px; padding: 0 6px; font-size: 9.8px !important; }
@media (max-width: 600px) {
  .pvp-pol-grid, .pvp-def-acts { grid-template-columns: 1fr; }
}
/* === THQ PVP V3 RANK & EDITOR END === */

/* === THQ PVP RESULT UI PRO START === */
#pvp-arena .pvp-res-box {
  width: min(440px, 94vw) !important;
  max-height: 90vh;
  overflow-y: auto;
  padding: 16px 15px 15px !important;
  gap: 10px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(24,22,36,0.98), rgba(11,13,22,0.99)) !important;
  border: 2px solid #e5b34b !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,226,145,0.28) !important;
}
#pvp-arena .pvp-res-box.lose {
  border-color: #d95b45 !important;
  background: linear-gradient(180deg, rgba(32,19,24,0.98), rgba(12,13,22,0.99)) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,130,105,0.24) !important;
}

.pvp-res-badge {
  align-self: center;
  padding: 3px 11px;
  border-radius: 99px;
  font: 700 10.5px/1.2 var(--vl-title-font) !important;
  letter-spacing: 0.04em !important;
  background: rgba(255, 210, 90, 0.16);
  border: 1px solid rgba(255, 210, 90, 0.45);
  color: #ffe399;
}
.pvp-res-box.lose .pvp-res-badge {
  background: rgba(255, 102, 82, 0.16);
  border-color: rgba(255, 110, 90, 0.48);
  color: #ffb8ac;
}

/* An xoay dang ket toan chien cong */
.pvp-spin-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 2px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pvp-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 210, 90, 0.18);
  border-top-color: #ffd25a;
  border-right-color: #ff9c47;
  animation: pvpSpin 0.9s linear infinite;
}
.pvp-res-box.lose .pvp-spin-ring {
  border-color: rgba(255, 110, 90, 0.18);
  border-top-color: #ff7a63;
  border-right-color: #ffb86c;
}
.pvp-spin-ic {
  font-size: 26px;
  filter: drop-shadow(0 0 10px rgba(255, 200, 90, 0.65));
}
@keyframes pvpSpin { to { transform: rotate(360deg); } }

.pvp-load-bar {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 210, 90, 0.25);
}
.pvp-load-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8a3d, #ffe066, #6fe3c1);
  animation: pvpLoadSlide 1.2s ease-in-out infinite;
}
@keyframes pvpLoadSlide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

.pvp-res-stars {
  font-size: 34px !important;
  letter-spacing: 8px !important;
  line-height: 1 !important;
  margin: 2px 0;
}
#pvp-arena .pvp-res-ttl {
  font-size: 20px !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
#pvp-arena .pvp-res-sub {
  font-size: 12.5px !important;
  color: #e4dac4 !important;
}
#pvp-arena .pvp-res-sub b { color: #fff2cc; }

/* 3 the chi so tran danh */
.pvp-res-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.pvp-res-stats > div {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 220, 150, 0.16);
  border-radius: 8px;
  padding: 7px 4px;
}
.pvp-res-stats span {
  display: block;
  font-size: 10.5px;
  color: #b8ae99;
}
.pvp-res-stats b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: #fff0c4;
  font-family: var(--vl-title-font) !important;
}

/* The chien loi pham phat sang */
#pvp-arena .pvp-loot-card.gold {
  background: linear-gradient(180deg, rgba(112, 74, 18, 0.42), rgba(38, 25, 12, 0.72)) !important;
  border: 1.5px solid rgba(255, 210, 90, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 160, 0.25);
}
#pvp-arena .pvp-loot-card.wood {
  background: linear-gradient(180deg, rgba(24, 88, 62, 0.42), rgba(14, 34, 28, 0.72)) !important;
  border: 1.5px solid rgba(111, 227, 193, 0.58) !important;
  box-shadow: inset 0 1px 0 rgba(160, 255, 224, 0.2);
}
#pvp-arena .pvp-loot-card.wood b { color: #8dffcf !important; }
#pvp-arena .pvp-loot-card b {
  font-size: 20px !important;
  font-family: var(--vl-title-font) !important;
}

/* Khung mo ta / meo chien thuat / bao loi NOI BAT, de doc */
.pvp-res-callout {
  text-align: left;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 90, 0.34);
  border-left: 4px solid #ffd25a;
  background: rgba(255, 210, 90, 0.09);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pvp-res-callout b {
  font-size: 12.5px;
  color: #ffe8a6;
}
.pvp-res-callout span {
  font-size: 12px;
  line-height: 1.48;
  color: #f3ead6;
}
.pvp-res-callout span b {
  color: #ffd978;
  font-size: 12px;
}
.pvp-res-callout.ok {
  border-color: rgba(111, 227, 193, 0.38);
  border-left-color: #6fe3c1;
  background: rgba(44, 148, 112, 0.14);
}
.pvp-res-callout.ok b { color: #9effde; }
.pvp-res-callout.info {
  text-align: center;
  border-left-width: 1px;
  border-color: rgba(130, 195, 255, 0.35);
  background: rgba(45, 95, 160, 0.16);
}
.pvp-res-callout.info b { color: #cbe6ff; font-size: 12px; }
.pvp-res-callout.err {
  border-color: rgba(255, 107, 87, 0.52);
  border-left-color: #ff5e47;
  background: rgba(200, 48, 36, 0.2);
}
.pvp-res-callout.err b { color: #ffb8ac; }

.pvp-retry-btn {
  width: 100%;
  padding: 11px 14px !important;
  font-size: 13.5px !important;
  border-color: #ffd25a !important;
  background: linear-gradient(180deg, #9a6216, #5c360a) !important;
  color: #fff6d6 !important;
  box-shadow: 0 0 16px rgba(255, 200, 75, 0.35);
}
/* === THQ PVP RESULT UI PRO END === */

/* === THQ SPACING TUNING START === */
/* 1. Chu thuong (font Vo Lam): them do thoang nhe, het dinh chu khi in dam */
html body,
html body p,
html body button,
html body input,
html body select,
html body .pvp-res-sub,
html body .pvp-res-callout,
html body .pvp-res-callout b,
html body .pvp-res-callout span,
html body .pvp-sub,
html body .pvp-tc-sub,
html body .pvp-mode-note,
html body .pvp-est-box,
html body .pvp-rk-left small,
html body .pvp-pol-btn small,
html body .pvp-log-row small {
  letter-spacing: 0.018em;
  word-spacing: 0.03em;
}

/* Chan khong cho nhan/chu nho trong tieu de ke thua khoang cach am gay dinh chu */
html body [class$="-title"] small,
html body [class$="-title"] em,
html body [class$="-sec"] small,
html body [class$="-sec"] em,
html body .pvp-tc-nm span,
html body .pvp-tc-nm em,
html body #load small {
  letter-spacing: 0.015em !important;
  word-spacing: 0.02em !important;
}

/* 2. Tieu de (THQMono): keo khit khoang cach ky tu (-0.075em) cho gon dep, giu khoang cach tu thoang (-0.02em) de khong dinh tu */
html body #load,
html body h1,
html body h2,
html body h3,
html body h4,
html body [class$="-title"],
html body [class$="-title"] *:not(small):not(img):not(em),
html body [class$="-stitle"],
html body [class$="-stitle"] *:not(small):not(img):not(em),
html body [class$="-sec"],
html body [class$="-sec"] *:not(small):not(img):not(em),
html body [class$="-sec-t"],
html body [class$="-sec-t"] *:not(small):not(img):not(em),
html body [class$="-sec-ttl"],
html body [class$="-sec-ttl"] *:not(small):not(img):not(em),
html body .thq-d-title,
html body .thq-g-title,
html body .thq-g-stitle,
html body .thq-tile b,
html body .thq-p-lbl,
html body .km-title,
html body .km-name,
html body .vc-title,
html body .dg-title,
html body .dg-d-name,
html body .dg-ach-name,
html body .acc-title,
html body .acc-sec-ttl,
html body .acc-sect-lbl,
html body .acc-sc-nm,
html body .acc-h-name,
html body .acc-s-top b,
html body .evo-title,
html body .evo-c-name,
html body .pb-title,
html body .pb-sec-t,
html body .pb-det-nm,
html body .dl-title,
html body .dl-sec-t,
html body .dl-mut,
html body .eco-title,
html body .eco-sec,
html body .eco-c-nm b,
html body .war-title,
html body .war-sec,
html body .war-a-t,
html body .pvp-title,
html body .pvp-sec-ttl,
html body .pvp-tc-nm,
html body .pvp-res-ttl,
html body .pvp-res-badge,
html body .pvp-rk-left b,
html body .pvp3-who b,
html body .pvp3-time,
html body .pvp3-spd,
html body .pvp3-hptxt,
html body .pvp3-entxt {
  letter-spacing: 0.02em !important;
  word-spacing: 0.03em !important;
}

/* 3. Thong bao / toast / banner nho: khit vua phai, khoang cach tu 0em de doc ro khong bi dinh tu */
html body #thq-notify-stack,
html body #thq-notify-stack > .thq-toast-item,
html body #acc-toast,
html body #km-toast,
html body #vc-banner,
html body #dg-toast,
html body #evo-toast,
html body #pb-toast,
html body #dl-toast,
html body #eco-toast,
html body #war-toast,
html body #pvp-toast,
html body .pvp3-banner,
html body .pvp3-tip,
html body .pvp3-aimbar,
html body .vc-aim-bar,
html body .eco-p-bar,
html body #war-place .war-p-bar,
html body #dl-mode-pill {
  letter-spacing: 0.015em !important;
  word-spacing: 0em !important;
}
/* === THQ SPACING TUNING END === */

/* === NHAN BIEN THE DOT QUAI === */
#thq-wave-mut-pill {
  position: fixed;
  top: max(54px, calc(env(safe-area-inset-top, 0px) + 50px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 38;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 92vw;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14, 12, 18, 0.84);
  border: 1.5px solid #ffd25a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  font-family: var(--vl-font);
  font-size: 12px;
  line-height: 1.25;
  color: #efe4cd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#thq-wave-mut-pill b {
  font-weight: 700;
  letter-spacing: 0.02em;
}
#thq-wave-mut-pill span {
  opacity: 0.9;
  font-size: 11px;
}
@media (max-width: 640px) {
  #thq-wave-mut-pill {
    top: max(50px, calc(env(safe-area-inset-top, 0px) + 46px));
    padding: 4px 10px;
    font-size: 11px;
    gap: 6px;
  }
  #thq-wave-mut-pill span {
    display: none;
  }
}

/* === THQ COMPACT UI & NOTIFICATIONS START === */
/* 1. Thanh Ai Ngay (#dl-mode-pill): sieu gon, 1 dong, co nut x & tu an */
html body #dl-mode-pill {
  padding: 3px 8px !important;
  gap: 6px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  max-width: min(240px, 72vw) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body #dl-mode-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}
html body #dl-mode-pill button {
  padding: 1px 6px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  border-radius: 999px !important;
  flex-shrink: 0;
}
html body #dl-mode-pill.dl-pill-hide {
  display: none !important;
}

/* 2. Thu nho toan bo o thong bao (toast, banner, pill bien the dot) */
html body #thq-notify-stack {
  max-width: min(360px, 86vw) !important;
  gap: 4px !important;
}
html body #thq-notify-stack > .thq-toast-item,
html body #acc-toast,
html body #km-toast,
html body #vc-banner,
html body #dg-toast,
html body #evo-toast,
html body #pb-toast,
html body #dl-toast,
html body #eco-toast,
html body #war-toast,
html body #pvp-toast,
html body .pvp3-banner {
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  border-radius: 7px !important;
  max-width: min(360px, 86vw) !important;
}
html body #thq-wave-mut-pill {
  padding: 3px 9px !important;
  font-size: 11px !important;
  gap: 6px !important;
  max-width: min(360px, 86vw) !important;
}
html body #thq-wave-mut-pill span {
  font-size: 10.5px !important;
}
html body .thq-pvp-banner {
  padding: 6px 9px !important;
  gap: 8px !important;
}
html body .thq-pvp-banner b { font-size: 12px !important; }
html body .thq-pvp-banner small { font-size: 10.5px !important; }

/* 3. Thu nho toan bo cac bang (modal box, the card, tieu de, nut) */
html body #km-modal,
html body #vc-modal,
html body #dg-modal,
html body #acc-modal,
html body #pb-modal,
html body #dl-modal,
html body #eco-modal,
html body #war-modal,
html body #evo-modal,
html body #thq-guide-modal,
html body #pvp-modal {
  padding: 8px !important;
}
html body .km-box,
html body .vc-box,
html body .dg-box,
html body .acc-box,
html body .evo-box,
html body .pb-box,
html body .dl-box,
html body .thq-d-box,
html body .eco-box,
html body .war-box,
html body .thq-g-box,
html body .pvp-box {
  width: min(580px, 94vw) !important;
  max-height: 80vh !important;
  padding: 10px 12px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}
html body .acc-box-auth,
html body .vc-box-sm,
html body .pvp-res-box {
  width: min(390px, 92vw) !important;
  padding: 12px !important;
}
html body .km-title,
html body .vc-title,
html body .dg-title,
html body .acc-title,
html body .evo-title,
html body .pb-title,
html body .dl-title,
html body .thq-d-title,
html body .eco-title,
html body .war-title,
html body .thq-g-title,
html body .pvp-title {
  font-size: 14.5px !important;
  line-height: 1.2 !important;
}
html body .pvp-res-ttl {
  font-size: 16px !important;
}
html body .km-card,
html body .vc-card,
html body .evo-card,
html body .eco-card,
html body .war-card,
html body .war-up-card,
html body .pvp-target-card,
html body .pvp-panel,
html body .thq-panel,
html body .pb-det-card,
html body .dg-tip-box {
  padding: 7px 9px !important;
  gap: 4px !important;
  border-radius: 7px !important;
}
html body .vc-card-name,
html body .acc-vault-box b,
html body .pvp-loot-card b {
  font-size: 14px !important;
}
html body .vc-card-desc,
html body .pvp-est-box {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}

/* Mobile sieu gon */
html body.thq-mob .km-box,
html body.thq-mob .vc-box,
html body.thq-mob .dg-box,
html body.thq-mob .acc-box,
html body.thq-mob .evo-box,
html body.thq-mob .pb-box,
html body.thq-mob .dl-box,
html body.thq-mob .thq-d-box,
html body.thq-mob .eco-box,
html body.thq-mob .war-box,
html body.thq-mob .thq-g-box,
html body.thq-mob .pvp-box {
  width: min(520px, 95vw) !important;
  max-height: 76vh !important;
  padding: 8px 10px !important;
}
html body.thq-mob #thq-notify-stack,
html body.thq-mob #thq-notify-stack > .thq-toast-item,
html body.thq-mob .pvp3-banner {
  max-width: min(300px, 88vw) !important;
  font-size: 10.5px !important;
  padding: 3px 8px !important;
}
/* === THQ COMPACT UI & NOTIFICATIONS END === */

/* === PVP COMPETITION TITLES & REVENGE START === */
.pvp-title-tag {
  display: inline-block;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.1;
  padding: 1px 5px;
  margin-left: 4px;
  border-radius: 4px;
  border: 1px solid currentColor;
  background: rgba(12, 15, 24, 0.82);
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.pvp-revenge-banner {
  background: linear-gradient(90deg, rgba(168, 36, 24, 0.92), rgba(212, 118, 28, 0.92));
  border: 1px solid #ffd25a;
  color: #fff4d2;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.pvp-target-card.revenge {
  border-color: #ff6b4a !important;
  box-shadow: 0 0 18px rgba(255, 107, 74, 0.25);
}
.pvp-rev-done {
  font-size: 10.5px;
  font-weight: 700;
  color: #6fe3c1;
  background: rgba(45, 110, 82, 0.25);
  border: 1px solid rgba(111, 227, 193, 0.45);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pvp-ago {
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  color: #a79e8a;
}
.pvp-tab-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e84835;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
/* === PVP COMPETITION TITLES & REVENGE END === */

/* === THQ RETENTION (CHECKIN + QUESTS + AUTOSAVE) START === */
#ret-root { position: fixed; inset: 0; pointer-events: none; z-index: 84; font-family: var(--vl-font); color: #efe4cd; }
#ret-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 8px; background: rgba(3,5,10,.78); backdrop-filter: blur(4px); pointer-events: auto; }
#ret-modal.open { display: flex; }
.ret-box { width: min(560px, 94vw); max-height: 82vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: rgba(14,17,28,.98); border: 2px solid #967442; border-radius: 10px; padding: 10px 12px; box-shadow: 0 18px 50px rgba(0,0,0,.85); box-sizing: border-box; font-size: 12px; }
.ret-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ret-title { font-size: 14.5px; font-weight: 700; color: #ffd25a; }
.ret-sub { font-size: 11px; color: #b9ae98; margin-top: 2px; }
.ret-close { width: 26px; height: 26px; border: 1px solid #6b583e; border-radius: 6px; background: rgba(30,34,48,.9); color: #efe4cd; cursor: pointer; font-weight: 700; flex-shrink: 0; }
.ret-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 6px; font-size: 12px; font-weight: 700; color: #ffd25a; }
.ret-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 8px; }
.ret-day { background: rgba(22,26,39,.92); border: 1.5px solid #443b30; border-radius: 7px; padding: 5px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ret-day.today { border-color: #ffd25a; background: rgba(64,48,20,.65); box-shadow: 0 0 10px rgba(255,210,90,.28); }
.ret-day.done { border-color: #4d7a58; background: rgba(20,38,28,.8); opacity: .82; }
.ret-day.big { border-color: #c98aff; }
.ret-d-no { font-size: 10px; color: #c8bda6; font-weight: 700; }
.ret-d-ic { font-size: 14px; line-height: 1.1; }
.ret-day small { font-size: 9.5px; line-height: 1.15; color: #e2d6be; }
.ret-quests { display: flex; flex-direction: column; gap: 6px; }
.ret-q-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(22,26,39,.92); border: 1.5px solid #443b30; border-radius: 7px; padding: 7px 9px; }
.ret-q-row.ready { border-color: #ffd25a; }
.ret-q-row.done { border-color: #4d7a58; opacity: .78; }
.ret-q-info { flex: 1; min-width: 0; }
.ret-q-info b { display: block; font-size: 12px; color: #ffe6b8; }
.ret-q-info b span { color: #6fe3c1; font-weight: 700; }
.ret-q-info small { display: block; font-size: 10.5px; color: #c4b8a0; margin: 2px 0 4px; }
.ret-q-bar { height: 5px; background: rgba(0,0,0,.55); border-radius: 999px; overflow: hidden; }
.ret-q-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e8a43b, #6fe3c1); }
.ret-btn { padding: 5px 9px; border-radius: 6px; border: 1px solid #6b583e; background: rgba(34,38,54,.92); color: #e8dec8; font: 700 11px/1.1 var(--vl-font); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.ret-btn.pri { border-color: #ffd25a; background: linear-gradient(180deg, #c98628, #8c5314); color: #fff7df; }
.ret-btn:disabled { opacity: .55; cursor: default; }
#ret-toast { position: fixed; left: 50%; top: max(54px, calc(env(safe-area-inset-top, 0px) + 50px)); transform: translate(-50%, -8px); opacity: 0; pointer-events: none; background: rgba(14,17,28,.95); border: 1.5px solid #ffd25a; border-radius: 7px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; color: #fff1cf; transition: .2s; z-index: 90; }
#ret-toast.show { opacity: 1; transform: translate(-50%, 0); }
#ret-resume-bar { pointer-events: auto; position: fixed; left: 50%; top: max(56px, calc(env(safe-area-inset-top, 0px) + 52px)); transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; background: rgba(14,18,30,.94); border: 1.5px solid #6fe3c1; box-shadow: 0 6px 20px rgba(0,0,0,.65); font-size: 11px; color: #efe4cd; z-index: 65; max-width: 90vw; white-space: nowrap; }
#ret-resume-bar .ret-res-go { padding: 3px 8px; border-radius: 999px; border: 1px solid #6fe3c1; background: rgba(45,130,96,.85); color: #fff; font: 700 11px/1 var(--vl-font); cursor: pointer; }
#ret-resume-bar .ret-res-x { padding: 2px 6px; border-radius: 999px; border: 1px solid #665b4c; background: rgba(35,38,50,.85); color: #d8cdb8; font: 700 11px/1 var(--vl-font); cursor: pointer; }
@media (max-width: 600px) {
  .ret-days { grid-template-columns: repeat(4, 1fr); }
}
/* === THQ RETENTION (CHECKIN + QUESTS + AUTOSAVE) END === */

/* === THQ STAGE INDICATOR & EXIT BUTTON START === */
html body #dl-mode-pill { display: none !important; }

#thq-stage-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 52;
  font-family: var(--vl-font);
  color: #efe4cd;
}

/* Thanh trang thai Ai & Thoat: sieu gon, nam goc phai ngay duoi nut Tu dong */
#thq-stage-bar {
  pointer-events: auto;
  position: fixed;
  right: max(8px, calc(env(safe-area-inset-right, 0px) + 6px));
  top: var(--hud-top-l, 44px);
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 22px;
  padding: 0 2px 0 6px;
  border-radius: 6px;
  background: rgba(12, 16, 25, 0.88);
  border: 1px solid rgba(196, 158, 94, 0.48);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 228, 168, 0.12);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  z-index: 42;
}
#thq-stage-bar.is-daily {
  border-color: rgba(235, 162, 74, 0.72);
  background: rgba(28, 18, 12, 0.90);
}
#thq-stage-bar.is-kiep {
  border-color: rgba(188, 118, 240, 0.72);
  background: rgba(24, 14, 34, 0.90);
}
#thq-stage-bar .stnav-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #f3ead6;
  padding: 0 5px 0 0;
  height: 100%;
  font: 700 10px/1 var(--vl-font);
  letter-spacing: 0.02em;
  cursor: pointer;
}
#thq-stage-bar .stnav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6fe3c1;
  box-shadow: 0 0 5px #6fe3c1;
  flex-shrink: 0;
  animation: stnavPulse 2s infinite;
}
#thq-stage-bar.is-daily .stnav-dot { background: #ffae42; box-shadow: 0 0 5px #ffae42; }
#thq-stage-bar.is-kiep .stnav-dot { background: #d17aff; box-shadow: 0 0 5px #d17aff; }
@keyframes stnavPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}
#thq-stage-bar .stnav-sep {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}
#thq-stage-bar .stnav-exit {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #f49b8d;
  padding: 0 5px;
  height: 100%;
  border-radius: 4px;
  font: 700 10px/1 var(--vl-font);
  cursor: pointer;
  transition: background .15s, color .15s;
}
#thq-stage-bar .stnav-exit:hover {
  background: rgba(214, 66, 54, 0.24);
  color: #ffd7d0;
}
#thq-stage-bar .stnav-ic-xs {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#thq-stage-bar .stnav-ic-xs svg { width: 10px; height: 10px; }

/* Tra pill Bien The Dot & Auto-Save ve dung vi tri giua tren da thong thoang */
html body #thq-wave-mut-pill,
html body #ret-resume-bar {
  top: var(--hud-top, 48px) !important;
}

body.thq-modal-open #thq-stage-bar,
body.pvp-3d-active #thq-stage-bar {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* === MODAL TRANG THAI & THOAT AI PHONG CACH CO PHONG HIEN DAI === */
#thq-stage-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(4, 6, 12, 0.76);
  backdrop-filter: blur(5px);
  pointer-events: auto;
  z-index: 88;
}
#thq-stage-modal.open { display: flex; }

.stnav-box {
  position: relative;
  width: min(336px, 92vw);
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.98) 0%, rgba(11, 14, 23, 0.99) 100%);
  border: 1px solid rgba(198, 158, 92, 0.52);
  border-radius: 12px;
  padding: 14px 14px 13px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 228, 168, 0.14);
  box-sizing: border-box;
  overflow: hidden;
  --st-accent: #6fe3c1;
}
.stnav-box.is-daily { --st-accent: #ffae42; }
.stnav-box.is-kiep { --st-accent: #c98aff; }

.stnav-top-accent {
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--st-accent), transparent);
  opacity: 0.9;
}

.stnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.stnav-head-l {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.stnav-emblem {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--st-accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.stnav-emblem svg { width: 16px; height: 16px; }
.stnav-kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--st-accent);
  line-height: 1.1;
}
.stnav-ttl {
  font-size: 16px;
  font-weight: 700;
  color: #fff3d6;
  line-height: 1.2;
  margin-top: 2px;
}
.stnav-x {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #bfb5a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.stnav-x:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.stnav-x svg { width: 13px; height: 13px; }

.stnav-meta {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}
.stnav-meta-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 7px 9px;
}
.stnav-meta-cell span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #9e9686;
}
.stnav-meta-cell b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f3ead6;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stnav-mut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 174, 66, 0.09);
  border: 1px solid rgba(255, 174, 66, 0.30);
  border-radius: 7px;
  padding: 6px 9px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #d6c3a1;
}
.stnav-mut b { color: #ffd485; font-weight: 700; }

/* Nut chinh Tiep Tuc Chien Dau */
.stnav-pri-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid rgba(242, 198, 109, 0.72);
  background: linear-gradient(180deg, #b8812d 0%, #835416 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 240, 196, 0.35);
  color: #fff8e6;
  font: 700 13px/1.1 var(--vl-font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter .15s, transform .12s;
}
.stnav-pri-btn:hover { filter: brightness(1.08); }
.stnav-pri-btn:active { transform: translateY(1px); }

/* Luoi 2 cot gon dep cho Danh Lai & Thoat Ai */
.stnav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stnav-act-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 10px 8px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.032);
  color: #efe4cd;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.stnav-act-tile:active { transform: translateY(1px); }
.stnav-t-ic {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.stnav-t-ic svg { width: 14px; height: 14px; }
.stnav-act-tile b {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.stnav-act-tile small {
  font-size: 10px;
  color: #9e9788;
  line-height: 1.2;
}
.stnav-act-tile.is-warn .stnav-t-ic {
  background: rgba(235, 166, 60, 0.14);
  border: 1px solid rgba(235, 166, 60, 0.36);
  color: #f4be5e;
}
.stnav-act-tile.is-warn:hover {
  background: rgba(235, 166, 60, 0.10);
  border-color: rgba(235, 166, 60, 0.50);
}
.stnav-act-tile.is-danger .stnav-t-ic {
  background: rgba(232, 86, 72, 0.14);
  border: 1px solid rgba(232, 86, 72, 0.36);
  color: #ff8678;
}
.stnav-act-tile.is-danger:hover {
  background: rgba(232, 86, 72, 0.10);
  border-color: rgba(232, 86, 72, 0.50);
}

.stnav-sub-btn {
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  color: #d6cbb5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 600 11.5px/1.1 var(--vl-font);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.stnav-sub-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(198, 158, 92, 0.45);
  color: #fff2d2;
}
.stnav-ic-sm {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stnav-ic-sm svg { width: 14px; height: 14px; }

@media (max-width: 420px) {
  #thq-stage-bar { height: 20px; padding: 0 2px 0 5px; }
  #thq-stage-bar .stnav-info,
  #thq-stage-bar .stnav-exit { font-size: 9.5px; }
}
/* === THQ STAGE INDICATOR & EXIT BUTTON END === */

/* === THQ BOOT SHIELD & STAGE STACK FIX START === */
/* 1. Man hinh khoi dong #load LUON che kin 100%, khong de lo thanh HUD/menu/kinh te khi dang tai */
html body #load {
  z-index: 99999 !important;
  background: #020308 !important;
}
body.thq-booting > :not(#load):not(canvas),
body:has(#load) > :not(#load):not(canvas) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2. Nang z-index tang modal Thoat Ai & tang do nhay cham tren iPhone */
#thq-stage-root.modal-open {
  z-index: 95 !important;
}
#thq-stage-bar button,
#thq-stage-modal button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* === THQ BOOT SHIELD & STAGE STACK FIX END === */

/* === THQ UI POLISH (TOAST SVG & PB RES) START === */
/* 1. Toast Nhiem Vu & Diem Danh voi icon SVG net manh */
html body #ret-toast {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.96), rgba(11, 14, 24, 0.98)) !important;
  border-width: 1px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 228, 168, 0.12) !important;
  padding: 5px 10px 5px 7px !important;
}
#ret-toast .ret-t-ic {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#ret-toast .ret-t-ic svg { width: 11px; height: 11px; }
#ret-toast .ret-t-tx {
  color: #f3ead6;
  font-weight: 600;
  line-height: 1.25;
}
.pvp-co-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
}
.pvp-co-ic.ok { color: #6fe3c1; }
.pvp-co-ic.warn { color: #ffbe5c; }
.pvp-co-ic svg { width: 14px; height: 14px; }

/* 2. Dong bo tong mau & can hang cho Vang + Linh Tinh trong Kho Phap Bao */
html body .pb-head {
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding-bottom: 8px !important;
}
html body .pb-head-r {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-left: auto !important;
}
html body .pb-res {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body .pb-res-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  background: rgba(18, 22, 35, 0.94) !important;
  border: 1px solid rgba(196, 158, 94, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, 0.08) !important;
  white-space: nowrap !important;
  font-family: var(--vl-font) !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
}
html body .pb-res-pill svg {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
}
html body .pb-res-pill b {
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.01em !important;
}
html body .pb-res-pill em {
  font-style: normal !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  opacity: 0.86 !important;
}
html body .pb-res-pill.gold {
  color: #f4cf7a !important;
  border-color: rgba(232, 176, 74, 0.42) !important;
}
html body .pb-res-pill.dust {
  color: #7ee3c4 !important;
  border-color: rgba(111, 227, 193, 0.36) !important;
}
html body .pb-res-pill.dust em {
  color: #c8d8cf !important;
}
html body .pb-close {
  width: 26px !important;
  height: 26px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}
@media (max-width: 460px) {
  html body .pb-res-pill {
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 10.5px !important;
  }
  html body .pb-res-pill b { font-size: 11px !important; }
  html body .pb-res-pill em { font-size: 10px !important; }
}
/* === THQ UI POLISH (TOAST SVG & PB RES) END === */
