/* =====================================================================
   Lò Rèn Rune — giao diện màn Lên đồ & vị trí (theo canvas Design 12/10).
   Nạp sau cùng. Phạm vi: #Shop.fg (renderShop gắn class fg + st-pos/st-build).
   Font đi kèm offline: Saira Condensed (số, tiêu đề) + Be Vietnam Pro (chữ), bản latin + tiếng Việt.
   ===================================================================== */
@font-face{font-family:'FG Display';font-weight:500;font-style:normal;font-display:swap;src:url(assets/fonts/fg-disp-vietnamese-500.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:'FG Display';font-weight:500;font-style:normal;font-display:swap;src:url(assets/fonts/fg-disp-latin-500.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:'FG Display';font-weight:600;font-style:normal;font-display:swap;src:url(assets/fonts/fg-disp-vietnamese-600.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:'FG Display';font-weight:600;font-style:normal;font-display:swap;src:url(assets/fonts/fg-disp-latin-600.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:'FG Display';font-weight:700;font-style:normal;font-display:swap;src:url(assets/fonts/fg-disp-vietnamese-700.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:'FG Display';font-weight:700;font-style:normal;font-display:swap;src:url(assets/fonts/fg-disp-latin-700.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:'FG Body';font-weight:400;font-style:normal;font-display:swap;src:url(assets/fonts/fg-body-vietnamese-400.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:'FG Body';font-weight:400;font-style:normal;font-display:swap;src:url(assets/fonts/fg-body-latin-400.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:'FG Body';font-weight:500;font-style:normal;font-display:swap;src:url(assets/fonts/fg-body-vietnamese-500.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:'FG Body';font-weight:500;font-style:normal;font-display:swap;src:url(assets/fonts/fg-body-latin-500.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:'FG Body';font-weight:600;font-style:normal;font-display:swap;src:url(assets/fonts/fg-body-vietnamese-600.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:'FG Body';font-weight:600;font-style:normal;font-display:swap;src:url(assets/fonts/fg-body-latin-600.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:'FG Body';font-weight:700;font-style:normal;font-display:swap;src:url(assets/fonts/fg-body-vietnamese-700.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:'FG Body';font-weight:700;font-style:normal;font-display:swap;src:url(assets/fonts/fg-body-latin-700.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}
#stage #Shop.fg{--fg-bg:#0d0f12;--fg-p1:#171b21;--fg-p2:#121519;--fg-card:#101317;--fg-line:#2a3139;--fg-line2:#39424c;--fg-amber:#f3a33a;--fg-amber2:#ffc46b;--fg-cyan:#46c9d6;--fg-rad:#6cd48f;--fg-dire:#e86a59;--fg-tx:#ece6da;--fg-tx2:#a59d90;--fg-tx3:#6f6a62;--fg-d:'FG Display','Saira Condensed',sans-serif;--fg-b:'FG Body','Be Vietnam Pro',sans-serif;
  background:radial-gradient(1100px 520px at 45% -12%,#2a1d10 0%,transparent 62%),var(--fg-bg);font-family:var(--fg-b);color:var(--fg-tx)}
#stage #Shop.fg :is(button,input){font-family:var(--fg-b)}
/* ---- thanh trên ---- */
#stage #Shop.fg .sh-head{border-bottom:1px solid #2a2219;gap:18px}
#stage #Shop.fg .sh-head .sm-title{font:700 40px/1 var(--fg-d);letter-spacing:.04em;text-transform:uppercase;color:#f4ede1}
#stage #Shop.fg .sh-head .stages{display:flex;align-items:center;gap:0}
#stage #Shop.fg .sh-head .stages span{font:600 15px var(--fg-b);letter-spacing:0;padding:7px 12px;border:1px solid #333b44;background:#0e1115;color:var(--fg-tx3);border-radius:0;text-transform:none}
#stage #Shop.fg .sh-head .stages span+span{margin-left:22px;position:relative}
#stage #Shop.fg .sh-head .stages span+span::before{content:'';position:absolute;left:-23px;top:50%;width:22px;height:1px;background:#3a3229}
#stage #Shop.fg .sh-head .stages span.done{color:var(--fg-rad);border-color:#2f5a3e}
#stage #Shop.fg .sh-head .stages span.on{color:#1a1208;background:var(--fg-amber);border-color:var(--fg-amber)}
#stage #Shop.fg .shtimer{display:flex;align-items:baseline;gap:10px;margin-left:auto}
#stage #Shop.fg .shtimer span{font:600 15px var(--fg-d);letter-spacing:.2em;text-transform:uppercase;color:#8f8574}
#stage #Shop.fg .shtimer b{font:700 40px/1 var(--fg-d);font-variant-numeric:tabular-nums;color:#f4ede1}
#stage #Shop.fg .shtimer b.hot{color:var(--fg-dire)}
#stage #Shop.fg .sh-btns .Btn{border-radius:0;font:600 16px var(--fg-b);background:transparent;border:1px solid #4a3f31;color:#e8d9bf;min-height:48px;box-shadow:none}
#stage #Shop.fg .sh-btns .Btn:hover{border-color:var(--fg-amber);color:#fff}
#stage #Shop.fg .sh-btns .Btn.green{font:700 21px var(--fg-d);letter-spacing:.06em;text-transform:uppercase;color:#1a1006;background:linear-gradient(180deg,#ffb951,#e38a1f);border:0;padding:10px 34px 10px 26px;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%)}
#stage #Shop.fg .sh-btns .Btn.green:hover{filter:brightness(1.08)}
/* ---- lưới 3 cột + khung vát góc ---- */
#stage #Shop.fg .sh-grid{grid-template-columns:400px minmax(0,1fr) 720px!important;gap:20px}
#stage #Shop.fg :is(.sh-team,.sh-sel,.sh-shop){background:linear-gradient(180deg,var(--fg-p1),var(--fg-p2));border:1px solid var(--fg-line);box-shadow:none;clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%);padding:16px 18px;scrollbar-width:thin;scrollbar-color:#3a3229 transparent}
#stage #Shop.fg :is(.sh-team>h4,.sh-sel .lbl,.sh-shop .lbl){display:flex;align-items:center;gap:10px;font:600 17px var(--fg-d)!important;letter-spacing:.14em!important;text-transform:uppercase;color:#cfc5b3!important;margin:18px 0 10px}
#stage #Shop.fg :is(.sh-team>h4,.sh-sel .lbl,.sh-shop .lbl)::before{content:'';width:8px;height:8px;flex:none;background:var(--fg-amber);transform:rotate(45deg)}
#stage #Shop.fg :is(.sh-team>h4,.sh-sel .lbl,.sh-shop .lbl)::after{content:'';flex:1;min-width:20px;height:1px;background:linear-gradient(90deg,#3a3229,transparent)}
#stage #Shop.fg .sh-team>h4{margin-top:0}
#stage #Shop.fg :is(.sh-sel .lbl,.sh-shop .lbl) .dim{order:3;font:400 13px var(--fg-b);letter-spacing:0;text-transform:none;color:var(--fg-tx3)}
#stage #Shop.fg .dim{color:var(--fg-tx3)}
/* ---- thẻ đồng đội ---- */
#stage #Shop.fg .sc-card{background:var(--fg-card);border:1px solid #262d35;border-left:1px solid #262d35;border-radius:0;padding:10px;margin-bottom:8px;transition:border-color .15s}
#stage #Shop.fg .sc-card:hover{border-color:#4a3f31}
#stage #Shop.fg .sc-card.sel{border-color:var(--fg-amber);background:linear-gradient(90deg,#2a1e0f,#14171c);box-shadow:0 0 0 1px #f3a33a55,0 0 24px #f3a33a22}
#stage #Shop.fg .sc-card .h>img{width:52px;height:68px;border:1px solid var(--fg-line2)}
#stage #Shop.fg .sc-card.me .h>img{border-color:var(--fg-amber)}
#stage #Shop.fg .sc-card .n{font:600 16px var(--fg-b);color:var(--fg-tx)}
#stage #Shop.fg .sc-card .ab img{width:30px;height:30px;border:1px solid var(--fg-line2)}
#stage #Shop.fg .sc-card .pp{gap:4px;margin:8px 0 6px}
#stage #Shop.fg .sc-card .pp button{width:40px;height:40px;border-radius:0;background:#0e1115;border:1px solid #333b44;opacity:.6}
#stage #Shop.fg .sc-card .pp button.on{opacity:1;border-color:var(--fg-amber);background:#2a1e0f}
#stage #Shop.fg .sc-card .pp button em{font:600 13px var(--fg-d)}
#stage #Shop.fg .sc-card .pn{font:600 14px var(--fg-b);color:#e8d9bf}
#stage #Shop.fg .sc-card .who{font-size:12px;color:var(--fg-tx3);width:100%}
#stage #Shop.fg .sc-card .lnr{gap:4px}
#stage #Shop.fg .sc-card .lnr button{border-radius:0;background:#0e1115;border:1px solid #333b44;font:600 13px var(--fg-b);color:var(--fg-tx3)}
#stage #Shop.fg .sc-card .lnr button.on{color:var(--lc);border-color:var(--lc);background:color-mix(in srgb,var(--lc) 12%,#0e1115)}
#stage #Shop.fg .sc-card .slots{gap:3px}
#stage #Shop.fg .sc-card .slots .sl{width:44px;height:32px}
/* lúc lên đồ: vị trí & lane đã chốt → chỉ còn 1 nhãn, thẻ gọn lại */
#stage #Shop.fg.st-build .sc-card .pp button:not(.on),#stage #Shop.fg.st-build .sc-card .lnr button:not(.on){display:none}
#stage #Shop.fg.st-build .sc-card .pp{flex-wrap:nowrap;margin:6px 0 4px}
#stage #Shop.fg.st-build .sc-card .pp button.on{width:30px;height:30px;padding:2px;border-color:#4a3f31;background:#0e1115}
#stage #Shop.fg.st-build .sc-card .pp .who{display:none}
#stage #Shop.fg.st-build .sc-card{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center}
#stage #Shop.fg.st-build .sc-card .h{grid-column:1/-1}
#stage #Shop.fg.st-build .sc-card .pp{grid-column:1}
#stage #Shop.fg.st-build .sc-card .lnr{grid-column:2;margin:0}
#stage #Shop.fg.st-build .sc-card .lnr button.on{flex:none;padding:4px 10px}
#stage #Shop.fg.st-build .sc-card .slots{grid-column:1/-1}
/* ---- ô đồ ---- */
#stage #Shop.fg .slots .sl{background:#0a0c0f;border:1px solid var(--fg-line);border-radius:0;box-shadow:inset 0 0 0 1px #0008}
#stage #Shop.fg .slots .sl.empty{border-style:dashed;border-color:#2f363e}
#stage #Shop.fg .slots .sl:not(.empty):hover{border-color:var(--fg-dire)}
/* ---- khối giữa: thẻ tướng đang lên đồ ---- */
#stage #Shop.fg .fg-hero{display:flex;gap:16px;align-items:center;padding:4px 0 14px;border-bottom:1px solid #2a2219}
#stage #Shop.fg .fg-hero>img{width:78px;height:104px;object-fit:cover;border:2px solid var(--fg-amber);flex:none}
#stage #Shop.fg .fg-hi{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
#stage #Shop.fg .fg-hi h4{margin:0!important;font:700 26px/1.1 var(--fg-b)!important;color:#f4ede1!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#stage #Shop.fg .fg-hi h4 span{font-weight:500;font-size:17px;color:var(--fg-tx2);margin-left:6px}
#stage #Shop.fg .fg-chips{display:flex;gap:6px;flex-wrap:wrap}
#stage #Shop.fg .fg-chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border:1px solid #333b44;background:#0e1115;font:600 13px var(--fg-b);color:#cfc5b3;white-space:nowrap;letter-spacing:0;text-transform:none}
#stage #Shop.fg .fg-chip .posI{width:18px;height:18px}
#stage #Shop.fg .fg-chip[class*="ln-"]{color:var(--lc);border-color:color-mix(in srgb,var(--lc) 45%,#0e1115)}
#stage #Shop.fg .fg-hi .ab{display:flex;gap:5px}
#stage #Shop.fg .fg-hi .ab img{width:36px;height:36px;border:1px solid var(--fg-line2)}
#stage #Shop.fg .fg-hi .ab span:last-child img{border-color:var(--fg-amber)}
#stage #Shop.fg .fg-wr{text-align:right;flex:none;display:flex;flex-direction:column;align-items:flex-end}
#stage #Shop.fg .fg-wr:empty{display:none}
#stage #Shop.fg .fg-wr em{font:600 13px var(--fg-d);font-style:normal;letter-spacing:.18em;text-transform:uppercase;color:#8f8574}
#stage #Shop.fg .fg-wr b{font:700 52px/1 var(--fg-d);color:var(--fg-cyan);font-variant-numeric:tabular-nums}
#stage #Shop.fg .fg-wr i{font:500 13px var(--fg-b);font-style:normal;color:var(--fg-rad)}
/* đồ đang chọn */
#stage #Shop.fg .slots.big{gap:10px}
#stage #Shop.fg .slots.big .sl{border-color:#4a3f31;background:#0a0c0f;position:relative}
#stage #Shop.fg .slots.big .sl.empty{border-color:#2f363e}
#stage #Shop.fg .slot-order{font:600 14px var(--fg-d);color:#8f8574}
#stage #Shop.fg .slot-order button{background:#0e1115;border:1px solid #333b44;color:#cfc5b3;border-radius:0}
#stage #Shop.fg .slot-order button:not(:disabled):hover{border-color:var(--fg-amber);color:#fff}
#stage #Shop.fg .order-help{font-size:13px;color:var(--fg-tx3)}
/* mốc mua đồ */
#stage #Shop.fg .tline{background:repeating-linear-gradient(90deg,transparent 0 calc(11.111% - 1px),#232a31 calc(11.111% - 1px) 11.111%);border-top:1px solid var(--fg-line);border-bottom:1px solid var(--fg-line)}
#stage #Shop.fg .tline .tk em{font:500 13px var(--fg-d);color:var(--fg-tx3);font-style:normal}
#stage #Shop.fg .tline .ti img{border:1px solid var(--fg-amber)}
#stage #Shop.fg .tline .ti b{font:600 13px var(--fg-d);color:#ffc46b}
/* nhu cầu build */
#stage #Shop.fg .needs .nb{font:500 14px var(--fg-b);color:#cfc5b3;grid-template-columns:170px 1fr}
#stage #Shop.fg .needs .nb i{height:8px;border-radius:0;background:linear-gradient(90deg,#2b8f99,var(--fg-cyan));box-shadow:0 0 0 1px #232a31}
/* chuỗi phân tích, chia lane, đồ địch */
#stage #Shop.fg .chain{color:#cfc5b3}
#stage #Shop.fg .lnb{background:transparent;border:0;padding:0}
#stage #Shop.fg .lnb-row{background:#0e1115;border:1px solid #232a31;border-radius:0}
#stage #Shop.fg .lnb-row:not(.locked):hover{border-color:#4a3f31;background:#16120c}
#stage #Shop.fg .lnb-h{border-color:var(--fg-line2)}
#stage #Shop.fg .lnb-h.sel{border-color:var(--fg-amber);box-shadow:0 0 0 1px var(--fg-amber)}
#stage #Shop.fg .lnb-row .lw{font:700 18px var(--fg-d)}
#stage #Shop.fg .lnb .mini,#stage #Shop.fg .sh-shop .mini{border-radius:0;background:#0e1115;border:1px solid #4a3f31;color:#e8d9bf}
#stage #Shop.fg .enemies .er{padding:4px 6px;border-left:3px solid #6a2c24;background:#0e1115;margin-bottom:4px}
#stage #Shop.fg .enemies .er>img{border:1px solid #6a2c24}
#stage #Shop.fg :is(.ok){color:var(--fg-rad)}#stage #Shop.fg :is(.bad){color:var(--fg-dire)}
/* ---- cửa hàng ---- */
#stage #Shop.fg .shop-search{font:600 17px var(--fg-d);letter-spacing:.14em;color:#cfc5b3;border-bottom:1px solid #2a2219}
#stage #Shop.fg .shop-search input{background:#0a0c0f;border:1px solid var(--fg-line);border-radius:0;color:var(--fg-tx);width:60%;padding:10px 12px}
#stage #Shop.fg .shop-search input:focus{outline:none;border-color:var(--fg-amber)}
#stage #Shop.fg .sh-shop .stabs{gap:0;border:1px solid var(--fg-line);margin-bottom:14px}
#stage #Shop.fg .sh-shop .stabs button{flex:1;margin:0;border:0;border-radius:0;background:transparent;font:600 19px var(--fg-d);letter-spacing:.08em;text-transform:uppercase;color:var(--fg-tx2);min-height:46px}
#stage #Shop.fg .sh-shop .stabs button+button{border-left:1px solid var(--fg-line)}
#stage #Shop.fg .sh-shop .stabs button.on{background:#2a1e0f;color:var(--fg-amber2);box-shadow:inset 0 -2px 0 var(--fg-amber)}
#stage #Shop.fg .sh-shop .cols{gap:8px}
#stage #Shop.fg .sh-shop .col{background:#0e1115;border:1px solid #232a31;padding:8px 6px}
#stage #Shop.fg .sh-shop .col h5{font:600 14px var(--fg-d);letter-spacing:.12em;text-transform:uppercase;color:#c9a46a;min-height:0;margin:0 0 8px;white-space:nowrap}
#stage #Shop.fg .sh-shop .ci{grid-template-columns:minmax(0,1fr);gap:6px}
#stage #Shop.fg .sh-shop .it{position:relative;width:100%;height:auto;border:1px solid var(--fg-line);background:#0a0c0f;border-radius:0;display:block}
#stage #Shop.fg .sh-shop .it img{width:100%;height:auto;aspect-ratio:88/64;display:block}
#stage #Shop.fg .sh-shop .it .item-name{display:none}
#stage #Shop.fg .sh-shop .it .c{position:absolute;left:0;right:0;bottom:0;min-height:0;display:flex;justify-content:flex-end;align-items:center;gap:3px;padding:1px 5px;font:600 14px/18px var(--fg-d);color:#f3c46b;background:linear-gradient(90deg,transparent,#000d 45%)}
#stage #Shop.fg .sh-shop .it .c .ui-icon{width:11px;height:11px}
#stage #Shop.fg .sh-shop .it:hover{border-color:var(--fg-amber);box-shadow:0 0 14px #f3a33a33;filter:none}
#stage #Shop.fg .sh-shop .it.fit{border-color:var(--fg-amber)}
#stage #Shop.fg .sh-shop .it.no{opacity:.3}
#stage #Shop.fg .sh-shop .items.search{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
#stage #Shop.fg .sh-shop>.dim{font-size:12px;color:var(--fg-tx3);margin-top:8px}
/* tab Gợi ý (AD+) */
#stage #Shop.fg .ana{background:#0e1115;border:1px solid #232a31;padding:10px 12px;color:#cfc5b3}
#stage #Shop.fg .ana .an-big{font:700 26px var(--fg-d);color:var(--fg-cyan)}
#stage #Shop.fg .dplus .dp-st{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:10px}
#stage #Shop.fg .dplus .dp-h{font:600 16px var(--fg-d);letter-spacing:.06em;text-transform:uppercase;color:#e8d9bf}
#stage #Shop.fg .dplus .dp-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
#stage #Shop.fg .dplus .dp-it{width:auto;border:1px solid var(--fg-line);background:#0a0c0f;padding:0 0 3px;text-align:center}
#stage #Shop.fg .dplus .dp-it:first-child{border-color:var(--fg-amber);box-shadow:0 0 14px #f3a33a33}
#stage #Shop.fg .dplus .dp-it img{width:100%;height:auto;aspect-ratio:88/64;display:block}
#stage #Shop.fg .dplus .dp-it b{font:700 16px var(--fg-d);color:var(--fg-tx)}
#stage #Shop.fg .dplus .dp-it span{font:600 13px var(--fg-d)}
#stage #Shop.fg .dplus .dp-it em{display:block;font:500 11px var(--fg-b);color:var(--fg-tx3)}
#stage #Shop.fg .slots.ref .sl{border-color:#4a3f31}

/* =====================================================================
   Điện thoại / máy tính bảng (html.touch): vẫn 3 cột, mỗi cột tự cuộn; chữ & nút to cho ngón tay
   ===================================================================== */
html.touch #stage #Shop.fg .sh-head{height:96px}
html.touch #stage #Shop.fg .sh-head .sm-title{font-size:44px}
html.touch #stage #Shop.fg .sh-head .stages span{font-size:22px;padding:10px 14px}
html.touch #stage #Shop.fg .shtimer span{font-size:22px}
html.touch #stage #Shop.fg .shtimer b{font-size:52px}
html.touch #stage #Shop.fg .sh-btns .Btn{font-size:26px;min-height:72px}
html.touch #stage #Shop.fg .sh-btns .Btn.green{font-size:32px}
html.touch #stage #Shop.fg .sh-grid{top:136px;bottom:24px;grid-template-columns:420px 600px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch;overflow:hidden;gap:16px}
html.touch #stage #Shop.fg .sh-grid>:is(.sh-team,.sh-sel,.sh-shop){grid-column:auto!important;grid-row:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;-webkit-overflow-scrolling:touch;padding:14px}
html.touch #stage #Shop.fg :is(.sh-team>h4,.sh-sel .lbl,.sh-shop .lbl){font-size:24px!important}
html.touch #stage #Shop.fg :is(.sh-sel .lbl,.sh-shop .lbl) .dim{display:none}
html.touch #stage #Shop.fg .sc-card{padding:10px}
html.touch #stage #Shop.fg .sc-card .h>img{width:60px;height:80px}
html.touch #stage #Shop.fg .sc-card .n{font-size:24px}
html.touch #stage #Shop.fg .sc-card .n .PlanTag{font-size:16px}
html.touch #stage #Shop.fg .sc-card .ab img{width:38px;height:38px}
html.touch #stage #Shop.fg .sc-card .pp button{width:68px;height:64px;min-width:0;min-height:0}
html.touch #stage #Shop.fg .sc-card .pp :is(.pn,.who){font-size:21px}
html.touch #stage #Shop.fg .sc-card .lnr button{font-size:21px;min-height:60px;padding:4px 6px}
html.touch #stage #Shop.fg .sc-card .slots .sl{width:60px;height:44px}
html.touch #stage #Shop.fg.st-build .sc-card .pp button.on{width:48px;height:48px}
html.touch #stage #Shop.fg.st-build .sc-card .lnr button.on{min-height:48px;font-size:21px}
html.touch #stage #Shop.fg .fg-hero>img{width:96px;height:128px}
html.touch #stage #Shop.fg .fg-hi h4{font-size:32px!important}
html.touch #stage #Shop.fg .fg-hi h4 span{font-size:22px}
html.touch #stage #Shop.fg .fg-chip{font-size:20px;height:38px}
html.touch #stage #Shop.fg .fg-chip .posI{width:26px;height:26px}
html.touch #stage #Shop.fg .fg-hi .ab img{width:48px;height:48px}
html.touch #stage #Shop.fg .fg-wr b{font-size:60px}
html.touch #stage #Shop.fg .fg-wr :is(em,i){font-size:18px}
html.touch #stage #Shop.fg .slots.big{gap:8px}
html.touch #stage #Shop.fg .slots.big .sl{min-height:0!important}
html.touch #stage #Shop.fg .slot-order{font-size:20px;flex-wrap:nowrap}
html.touch #stage #Shop.fg .slot-order button{min-width:0!important;min-height:0!important;width:30px;height:40px;font-size:20px}
html.touch #stage #Shop.fg .order-help{display:none}
html.touch #stage #Shop.fg .tline .tk em,html.touch #stage #Shop.fg .tline .ti b{font-size:20px}
html.touch #stage #Shop.fg .needs .nb{font-size:22px;grid-template-columns:230px 1fr}
html.touch #stage #Shop.fg .needs .nb i{height:12px}
html.touch #stage #Shop.fg .lnb-n{width:auto;font-size:22px}
html.touch #stage #Shop.fg .lnb-row{grid-template-columns:150px 1fr auto;min-height:80px}
html.touch #stage #Shop.fg .lnb-h{width:50px;height:64px}
html.touch #stage #Shop.fg .lnb-row .lw{font-size:24px}
html.touch #stage #Shop.fg :is(.lnb-tot,.lnb>.dim,.chain,.chain .ch .t){font-size:21px}
html.touch #stage #Shop.fg .enemies .er>img{width:40px;height:52px}
html.touch #stage #Shop.fg .enemies .slots.sm .sl{width:52px;height:38px}
html.touch #stage #Shop.fg .shop-search{font-size:24px;padding-bottom:10px;margin-bottom:10px}
html.touch #stage #Shop.fg .shop-search input{min-height:64px;font-size:26px}
html.touch #stage #Shop.fg .sh-shop .stabs button{font-size:28px;min-height:68px}
html.touch #stage #Shop.fg .sh-shop .cols.c6{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px}
html.touch #stage #Shop.fg .sh-shop .cols.c4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.touch #stage #Shop.fg .sh-shop .col{padding:6px 4px}
html.touch #stage #Shop.fg .sh-shop .col h5{font-size:19px;letter-spacing:.04em;min-height:0!important}
html.touch #stage #Shop.fg .sh-shop .it{min-height:0!important}
html.touch #stage #Shop.fg .sh-shop .it .c{font-size:20px;line-height:24px;min-height:0}
html.touch #stage #Shop.fg .sh-shop .it .c .ui-icon{width:15px;height:15px}
html.touch #stage #Shop.fg .sh-shop .items.search{grid-template-columns:repeat(6,minmax(0,1fr))}
html.touch #stage #Shop.fg .sh-shop>.dim{display:none}
html.touch #stage #Shop.fg .dplus .dp-st{grid-template-columns:130px minmax(0,1fr)}
html.touch #stage #Shop.fg .dplus .dp-h{font-size:22px}
html.touch #stage #Shop.fg .dplus .dp-it{width:auto!important;font-size:inherit}
html.touch #stage #Shop.fg .dplus .dp-it img{width:100%!important;height:auto!important}
html.touch #stage #Shop.fg .dplus .dp-it b{font-size:22px}
html.touch #stage #Shop.fg .dplus .dp-it span{font-size:18px}
html.touch #stage #Shop.fg .dplus .dp-it em{display:none}
html.touch #stage #Shop.fg .ana{font-size:22px}
html.touch #stage #Shop.fg .ana .an-big{font-size:34px}
#stage #Shop.fg .fg-chip.ln-safe{--lc:#6fd36a}#stage #Shop.fg .fg-chip.ln-mid{--lc:#ffd23a}#stage #Shop.fg .fg-chip.ln-off{--lc:#ff8a4a}#stage #Shop.fg .fg-chip.ln-roam{--lc:#9cc2ff}
#stage #Shop.fg .sh-team>h4 .dim{order:3;font:400 13px var(--fg-b);letter-spacing:0;text-transform:none;color:var(--fg-tx3)}
html.touch #stage #Shop.fg .sh-team>h4 .dim{font-size:19px}
html.touch #stage #Shop.fg.st-pos .sc-card .pp{display:flex;flex-wrap:wrap;gap:5px}
html.touch #stage #Shop.fg.st-pos .sc-card .pp button{flex:1 1 0;width:auto;height:64px}
html.touch #stage #Shop.fg.st-pos .sc-card .pp button .posI{width:30px;height:30px}
html.touch #stage #Shop.fg.st-pos .sc-card .pp :is(.pn,.who){flex:0 0 auto;margin-left:0}
html.touch #stage #Shop.fg.st-pos .sc-card .pp .pn{flex-basis:100%;order:6}
html.touch #stage #Shop.fg.st-pos .sc-card .pp .who{order:7}
html.touch #stage #Shop.fg .sc-card .lnr{flex-wrap:nowrap}
html.touch #stage #Shop.fg .sc-card .lnr button{flex:1 1 auto;white-space:nowrap;font-size:19px;padding:4px 4px}
html.touch #stage #Shop.fg .lnb-row{grid-template-columns:200px 1fr auto}
html.touch #stage #Shop.fg .lnb-n{font-size:20px;white-space:normal}
/* bàn draft: ô đã có người lấy chỉ tối đi như game thật — không vạch màu, không chấm/ghi chú */
#stage #Board .Tile.taken :is(.note,.styleDot,.aghs,.owner){display:none!important}

/* ---- mua theo mốc thời gian: 3 dòng 0–15′ · 15–30′ · 30–45′ ---- */
#stage #Shop.fg .slots.big{gap:8px;margin-bottom:4px}
#stage #Shop.fg .slots.big .slot-order,#stage #Shop.fg .order-help{display:none!important}
#stage #Shop.fg .fg-bands{display:flex;flex-direction:column;gap:8px}
#stage #Shop.fg .fg-band{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:stretch;background:#0e1115;border:1px solid #232a31;cursor:pointer;transition:border-color .15s,background .15s}
#stage #Shop.fg .fg-band:hover{border-color:#4a3f31}
#stage #Shop.fg .fg-band.on{border-color:var(--fg-amber);background:linear-gradient(90deg,#2a1e0f,#101317 60%);box-shadow:0 0 0 1px #f3a33a55,0 0 22px #f3a33a1f}
#stage #Shop.fg .fb-h{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:8px 12px;border-right:1px solid #232a31}
#stage #Shop.fg .fb-h b{font:700 24px/1 var(--fg-d);color:#f4ede1;font-variant-numeric:tabular-nums}
#stage #Shop.fg .fg-band.on .fb-h b{color:var(--fg-amber2)}
#stage #Shop.fg .fb-h em{font:500 12px var(--fg-b);font-style:normal;color:var(--fg-tx3)}
#stage #Shop.fg .fb-its{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 8px;min-height:58px}
#stage #Shop.fg .fb-it{position:relative;width:76px;border:1px solid #4a3f31;background:#0a0c0f;cursor:pointer}
#stage #Shop.fg .fb-it img{width:100%;aspect-ratio:88/64;height:auto;display:block}
#stage #Shop.fg .fb-it i{position:absolute;right:0;bottom:0;padding:0 4px;font:600 13px/17px var(--fg-d);font-style:normal;color:#ffc46b;background:#000c}
#stage #Shop.fg .fb-it.late{border-color:var(--fg-dire)}#stage #Shop.fg .fb-it.late i{color:var(--fg-dire)}
#stage #Shop.fg .fb-it:hover{border-color:var(--fg-dire);filter:brightness(.85)}
#stage #Shop.fg .fb-add{height:52px;min-width:56px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px dashed #3a4048;color:var(--fg-tx3);font:600 14px var(--fg-b);white-space:nowrap}
#stage #Shop.fg .fg-band.on .fb-add{border-color:#7a5a2a;color:var(--fg-amber2)}
#stage #Shop.fg .fg-band.drop,#stage #Shop.fg .fg-band:has(.drop){border-color:var(--fg-cyan)}
/* chạm lần 1 trên điện thoại: ô sáng lên, chạm lần 2 mới mua/bỏ */
#stage #Shop.fg .tap2{outline:3px solid var(--fg-amber);outline-offset:-3px;box-shadow:0 0 18px #f3a33a88!important}
#stage #Shop.fg .fb-it.tap2,#stage #Shop.fg .slots .sl.tap2{outline-color:var(--fg-dire);box-shadow:0 0 18px #e86a5988!important}
html.touch #stage #Shop.fg .fg-band{grid-template-columns:150px minmax(0,1fr)}
html.touch #stage #Shop.fg .fb-h b{font-size:32px}
html.touch #stage #Shop.fg .fb-h em{font-size:18px}
html.touch #stage #Shop.fg .fb-its{gap:6px;min-height:84px}
html.touch #stage #Shop.fg .fb-it{width:96px}
html.touch #stage #Shop.fg .fb-it i{font-size:18px;line-height:22px}
html.touch #stage #Shop.fg .fb-add{height:68px;font-size:19px}

/* ---- điện thoại ngang: sân khấu rộng (tới 2340px) → bàn draft ra giữa ---- */
html.wide #stage #Board{left:calc((var(--stage-w) - 1160px) / 2)!important}
html.wide #stage :is(#Header,#DraftMeta){left:calc((var(--stage-w) - 1170px) / 2)!important;right:auto!important;width:1170px}
/* nút Aghs: nhỏ, gọn ở góc dưới trái */
html.touch #MbAghs{left:max(4px,env(safe-area-inset-left));bottom:max(4px,env(safe-area-inset-bottom));height:28px!important;padding:0 6px!important;gap:0;border-radius:14px!important;opacity:.78;font-size:0!important}
html.touch #MbAghs img{width:16px!important;height:16px!important}
html.touch #MbAghs span{display:none}
html.touch #MbAghs.on{opacity:1}
/* điện thoại: ô đồ không chặn cuộn (đã bỏ kéo thả bằng ngón tay, mua bằng chạm 2 lần) */
html.touch #Shop :is([data-buy],.slots .sl,.fb-it,.fg-band){touch-action:pan-x pan-y!important}
/* iOS: position:sticky trong sân khấu đã phóng/thu (transform) vẽ sai chỗ, đè lên nội dung → bỏ sticky trên điện thoại */
html.touch #stage :is(.lb-go,.sm-actions){position:relative!important;bottom:auto!important}
/* điện thoại — bàn draft: hiện nhãn gom Hitter/Skiller của đồng đội, khung chat cao 2 dòng */
html.touch #stage .HeroContainer .PlanTag{display:inline-block!important;font:600 17px/1.2 var(--font)!important;padding:1px 6px!important;margin:0 4px;vertical-align:middle}
html.touch #stage :is(#Chat,#CompBar){bottom:8px!important;height:146px!important;box-sizing:border-box}
html.touch #stage #Chat{padding:6px 12px!important;row-gap:2px!important;align-content:start}
html.touch #stage #ChatLines{height:62px!important;max-height:62px!important;font-size:22px!important;line-height:31px;overflow:auto}
html.touch #stage #ComboSug{max-height:62px!important;height:62px;overflow:auto;font-size:20px!important;line-height:1.3}
html.touch #stage #ComboSug :is(*,.dim){font-size:20px!important;line-height:1.3!important}
html.touch #stage #ComboSug img{width:24px!important;height:24px!important;vertical-align:middle}
html.touch #stage #CompBar{padding:8px 16px!important}
html.touch #stage #CompBar :is(.cb-w,.cb-h){font-size:22px!important;line-height:1.3}
html.touch #stage #Chat.combo #ComboSug{order:-1;flex:0 0 100%!important;width:100%!important;max-width:none!important;display:flex!important;gap:18px;align-items:center;overflow-x:auto;overflow-y:hidden;white-space:nowrap;position:static!important}
html.touch #stage #Chat.combo #ComboSug>*{flex:none;display:flex!important;align-items:center;gap:8px;width:auto!important;margin:0!important}
html.touch #stage #Chat.combo #ComboSug .cs-agh .dim,html.touch #stage #Chat.combo #ComboSug .cs-empty{display:none!important}
html.touch #stage #Chat.combo #ComboSug :is(.cs-rows,.cs-r,.cs-p){display:inline-flex!important;align-items:center;gap:6px}
html.touch #stage #Chat.combo #ComboSug :is(.cs-p img,.cs-k img){width:36px!important;height:36px!important}
html.touch #stage #Chat.combo #ComboSug *{position:static!important}
/* tab Cơ bản (4 nhóm): mỗi nhóm 2 cột cho gọn */
#stage #Shop.fg .sh-shop .cols.c4 .ci{grid-template-columns:repeat(2,minmax(0,1fr))}

/* ===== Lên đồ kiểu mới (Claude, 13/10): Aghanim riêng + đồ đầu trận + phút dưới ô đồ. Codex: cứ restyle, giữ class/data-* ===== */
#stage #Shop.fg .slot-unit{display:flex;flex-direction:column;align-items:center;gap:4px}
#stage #Shop.fg .slot-eta{display:block;min-height:18px;font:600 15px/18px 'FG Display',sans-serif;font-style:normal;color:#9ad9e0}
#stage #Shop.fg .slot-eta.late{color:#ef897a}
#stage #Shop.fg .agh-board{display:grid;gap:10px}
#stage #Shop.fg .agh-row{padding:10px 12px;background:linear-gradient(180deg,#1a1f26,#13171c);box-shadow:inset 0 0 0 1px #313a44;border-radius:4px}
#stage #Shop.fg .agh-row.on{box-shadow:inset 0 0 0 1px #7a5524,inset 0 0 28px -12px #ffa03c66}
#stage #Shop.fg .agh-h{display:flex;align-items:center;gap:10px;margin-bottom:8px}
#stage #Shop.fg .agh-h img{width:30px;height:30px}
#stage #Shop.fg .agh-h b{font:700 18px 'FG Display',sans-serif;letter-spacing:.04em;color:#ece6da}
#stage #Shop.fg .agh-n{font-size:13px;color:#9ad9e0}
#stage #Shop.fg .agh-n.zero{color:#ef897a}
#stage #Shop.fg .agh-eta{margin-left:auto;font:600 15px 'FG Display',sans-serif;font-style:normal;color:#ffc46b}
#stage #Shop.fg .agh-eta.late{color:#ef897a}
#stage #Shop.fg .agh-opts{display:flex;gap:8px;flex-wrap:wrap}
#stage#stage #Shop.fg :is(.agh-o,.agh-t button){border:1px solid transparent;border-radius:4px;cursor:pointer;color:#ece6da;text-transform:none;text-shadow:none;
  background:linear-gradient(180deg,#2c333c,#181d23) padding-box,linear-gradient(145deg,#6b7682,#2e363f 55%,#5d6874) border-box;
  box-shadow:inset 0 1px #ffffff22,inset 0 -2px #0006,0 2px 0 #050608,0 4px 10px #0005;transition:transform .1s,filter .15s}
#stage#stage #Shop.fg :is(.agh-o,.agh-t button):hover{filter:brightness(1.15)}
#stage#stage #Shop.fg :is(.agh-o,.agh-t button):active{transform:translateY(2px);box-shadow:inset 0 2px 5px #0008}
#stage#stage #Shop.fg .agh-o{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:48px;padding:6px 14px;font:600 16px 'FG Display',sans-serif;letter-spacing:.03em}
#stage#stage #Shop.fg .agh-o small{font:500 12px 'FG Body',sans-serif;color:#b6afa3;letter-spacing:0}
#stage#stage #Shop.fg .agh-o.on{color:#211407;background:linear-gradient(180deg,#ffc267,#e38a1f) padding-box,linear-gradient(145deg,#ffe4b3,#965118 65%,#ffbe63) border-box;box-shadow:inset 0 1px #fff6,inset 0 -2px #7a3d0066,0 2px 0 #050608,0 0 16px #ffa03c55}
#stage#stage #Shop.fg .agh-o.on small{color:#4a2c08}
#stage #Shop.fg .agh-t{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}
#stage #Shop.fg .agh-t span{font-size:13px;color:#b6afa3;margin-right:4px}
#stage#stage #Shop.fg .agh-t button{min-width:46px;min-height:32px;padding:0 8px;font:600 15px 'FG Display',sans-serif}
#stage#stage #Shop.fg .agh-t button.on{color:#d8fbff;background:linear-gradient(#21515a,#123038) padding-box,linear-gradient(145deg,#8ef0f7,#1f5a63) border-box;box-shadow:inset 0 1px #ffffff33,0 0 12px #46c9d655}
#stage #Shop.fg .fg-start{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;padding:8px 12px;border:1px dashed #3a434d;border-radius:4px;color:#b6afa3;font-size:13px}
#stage #Shop.fg .fg-start b{font:700 15px 'FG Display',sans-serif;letter-spacing:.06em;color:#ece6da;text-transform:uppercase}
#stage #Shop.fg .fg-start .sl{width:36px;height:27px}
#stage #Shop.fg .fg-start .sl img{width:100%;height:100%;object-fit:cover}
#stage #Shop.fg .fg-start .fs-t{color:#ece6da}
#stage #Shop.fg .fg-start em{flex-basis:100%;font-style:normal;font-size:12px;color:#8f8574}
html.touch #stage #Shop.fg .slot-eta{font-size:20px;min-height:24px}
html.touch #stage #Shop.fg .agh-h b,html.touch #stage #Shop.fg .agh-eta{font-size:22px}
html.touch #stage #Shop.fg :is(.agh-n,.agh-t span,.fg-start,.fg-start em){font-size:20px}
html.touch #stage#stage #Shop.fg .agh-o{min-height:64px;padding:8px 18px;font-size:22px}
html.touch #stage#stage #Shop.fg .agh-o small{font-size:20px}
html.touch #stage#stage #Shop.fg .agh-t button{min-width:64px;min-height:64px;font-size:22px}

/* Lên đồ 6 · 6 món cuối theo thứ tự mua, Aghanim riêng.
   Giữ nguyên markup/state/data-* do gameplay cung cấp. */
#stage#stage #Shop.fg .sh-sel .lbl .dim{max-width:72%;line-height:1.35;letter-spacing:0}
#stage#stage #Shop.fg .slots.big{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:8px 0 18px;counter-reset:buy-slot}
#stage#stage #Shop.fg .slots.big .slot-unit{position:relative;min-width:0;gap:6px;counter-increment:buy-slot}
#stage#stage #Shop.fg .slots.big .slot-unit::before{content:counter(buy-slot);position:absolute;z-index:2;top:5px;left:5px;min-width:22px;height:22px;padding:0 3px;display:grid;place-items:center;background:#09111de8;border:1px solid #9cb3c2;color:#f2f5f6;font:700 15px/1 'FG Display',sans-serif;pointer-events:none;box-shadow:0 2px 7px #0009}
#stage#stage #Shop.fg .slots.big .sl{display:block;width:100%;height:auto;aspect-ratio:88/64;min-height:0;border:1px solid #68798b;background:#080d16;box-shadow:inset 0 0 0 1px #0009,0 4px 12px #0006}
#stage#stage #Shop.fg .slots.big .sl.empty{border:1px dashed #5d7183;background:#0e1823}
#stage#stage #Shop.fg .slots.big .sl:not(.empty):hover{border-color:#dfbb72;box-shadow:inset 0 0 0 1px #eacb8b77,0 6px 15px #0009}
#stage#stage #Shop.fg .slots.big .slot-eta{display:block;width:100%;min-height:27px;text-align:center;padding:3px 4px;background:#112c34;border:1px solid #2c6068;color:#b9f3ef;font:700 17px/19px 'FG Display',sans-serif;font-style:normal;font-variant-numeric:tabular-nums}
#stage#stage #Shop.fg .slots.big .slot-eta:empty{background:transparent;border-color:transparent}
#stage#stage #Shop.fg .slots.big .slot-eta.late{background:#381f23;border-color:#8d4244;color:#ffb3a5}

#stage#stage #Shop.fg .agh-board{display:grid;gap:10px;margin-top:8px}
#stage#stage #Shop.fg .agh-row{padding:15px 17px;background:linear-gradient(160deg,#1d2933,#111922);border:1px solid #45596a;border-radius:8px;box-shadow:inset 0 1px #ffffff14,0 6px 16px #0005}
#stage#stage #Shop.fg .agh-row.on{border-color:#b68c50;background:linear-gradient(155deg,#30291e,#161e25 58%);box-shadow:inset 0 1px #ffe2a32a,0 8px 19px #0007}
#stage#stage #Shop.fg .agh-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;min-height:38px}
#stage#stage #Shop.fg .agh-h img{width:38px;height:38px;flex:none;object-fit:contain}
#stage#stage #Shop.fg .agh-h b{font:700 22px/1.2 'FG Display',sans-serif;letter-spacing:0;color:#f2ece1;white-space:nowrap}
#stage#stage #Shop.fg .agh-n{font:500 14px/1.3 'FG Body',sans-serif;color:#bce7e6}
#stage#stage #Shop.fg .agh-n.zero{color:#ffb3a5}
#stage#stage #Shop.fg .agh-eta{margin-left:auto;font:600 16px/1.3 'FG Display',sans-serif;color:#f2d79c;font-style:normal;font-variant-numeric:tabular-nums}
#stage#stage #Shop.fg .agh-eta.late{color:#ffb3a5}
#stage#stage #Shop.fg .agh-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#stage#stage #Shop.fg .agh-row.sh .agh-opts{grid-template-columns:repeat(2,minmax(0,1fr))}
#stage#stage #Shop.fg .agh-o{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;min-width:0;min-height:54px;padding:7px 12px;font:600 18px/1.1 'FG Display',sans-serif;text-align:left}
#stage#stage #Shop.fg .agh-o small{font:500 13px/1.2 'FG Body',sans-serif;letter-spacing:0;color:#c8d3da}
#stage#stage #Shop.fg .agh-o.on small{color:#39250f}
#stage#stage #Shop.fg .agh-o:focus-visible,#stage#stage #Shop.fg .agh-t button:focus-visible,#stage#stage #Shop.fg .slot-order button:focus-visible{outline:3px solid #ffe0a2;outline-offset:3px}
#stage#stage #Shop.fg .agh-t{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:13px 0 0;padding-top:12px;border-top:1px solid #61707a6b}
#stage#stage #Shop.fg .agh-t span{font:600 14px/1.2 'FG Body',sans-serif;color:#d5dfdf;margin-right:5px}
#stage#stage #Shop.fg .agh-t button{min-width:47px;min-height:38px;padding:3px 8px;font:700 17px/1 'FG Display',sans-serif;font-variant-numeric:tabular-nums}
#stage#stage #Shop.fg .agh-t button.on{color:#dcfcfc}

#stage#stage #Shop.fg .fg-start{display:flex;align-items:center;gap:9px;margin:14px 0 0;padding:12px 15px;background:#141c25;border:1px solid #3c5262;border-radius:8px;color:#d4dce0;font:500 14px/1.4 'FG Body',sans-serif}
#stage#stage #Shop.fg .fg-start b{font:700 19px/1 'FG Display',sans-serif;letter-spacing:0;text-transform:none;color:#efdfb8;margin-right:6px}
#stage#stage #Shop.fg .fg-start .sl{width:42px;height:32px;flex:none;border:1px solid #546779}
#stage#stage #Shop.fg .fg-start .fs-t{color:#e4e9e7}
#stage#stage #Shop.fg .fg-start em{flex-basis:100%;font:400 13px/1.4 'FG Body',sans-serif;color:#aebdc4}

/* Hai nút chuyển món đã có data-move; điện thoại cần thấy và chạm được. */
html.touch #stage#stage #Shop.fg .slots.big{gap:7px;margin-bottom:22px}
html.touch #stage#stage #Shop.fg .slots.big .slot-unit::before{min-width:29px;height:29px;font-size:20px}
html.touch #stage#stage #Shop.fg .slots.big .sl{width:100%;height:76px;min-height:76px;aspect-ratio:auto}
html.touch #stage#stage #Shop.fg .slots.big .slot-eta{min-height:34px;font-size:22px;line-height:26px}
html.touch #stage#stage #Shop.fg .slots.big .slot-order{display:flex!important;justify-content:space-between;align-items:center;width:100%;height:64px;font-size:0;color:transparent}
html.touch #stage#stage #Shop.fg .slots.big .slot-order button{display:grid;place-items:center;flex:1 1 50%;width:auto;min-width:64px!important;min-height:64px!important;height:64px;padding:0;font:700 25px/1 'FG Display',sans-serif;color:#f0e6d6;border:1px solid #627788;background:#1b2b38;box-shadow:inset 0 1px #ffffff26,0 3px 7px #0007}
html.touch #stage#stage #Shop.fg .slots.big .slot-order button:first-child{border-radius:6px 0 0 6px}
html.touch #stage#stage #Shop.fg .slots.big .slot-order button:last-child{border-radius:0 6px 6px 0}
html.touch #stage#stage #Shop.fg .slots.big .slot-order button:disabled{opacity:.5;color:#aab5bd}
html.touch #stage#stage #Shop.fg .agh-row{padding:19px 20px}
html.touch #stage#stage #Shop.fg .agh-h{gap:13px;min-height:48px}
html.touch #stage#stage #Shop.fg .agh-h img{width:48px;height:48px}
html.touch #stage#stage #Shop.fg .agh-h b{font-size:27px}
html.touch #stage#stage #Shop.fg .agh-n,html.touch #stage#stage #Shop.fg .agh-eta{font-size:20px}
html.touch #stage#stage #Shop.fg .agh-o{min-height:72px;padding:10px 13px;font-size:24px}
html.touch #stage#stage #Shop.fg .agh-o small{font-size:20px}
html.touch #stage#stage #Shop.fg .agh-t span{font-size:20px;width:100%;margin-bottom:4px}
html.touch #stage#stage #Shop.fg .agh-t button{min-width:64px;min-height:64px;font-size:23px}
html.touch #stage#stage #Shop.fg .fg-start{gap:11px;padding:16px;font-size:20px}
html.touch #stage#stage #Shop.fg .fg-start b{font-size:24px}
html.touch #stage#stage #Shop.fg .fg-start .sl{width:60px;height:46px}
html.touch #stage#stage #Shop.fg .fg-start em{font-size:20px}

/* ===== Cược trước trận + MVP sau trận (Claude, 14/10) — style tạm, Codex restyle được; giữ id/class/data-* ===== */
#stage #BetBox{display:none}
#stage #BetBox.show{display:flex;position:absolute;inset:0;z-index:60;align-items:center;justify-content:center;background:#05060899}
#stage #BetBox .bet-box{width:980px;max-height:960px;overflow:auto;padding:30px 36px;background:linear-gradient(180deg,#1c1e23,#131418);border:1px solid #6b5a3a;border-radius:14px;box-shadow:0 24px 70px #000b;color:#f0eeea}
#stage #BetBox h3{margin:0 0 6px;font:700 32px var(--mg-font,'FG Display'),sans-serif;color:#f0d49a}
#stage #BetBox .bet-sub{margin:0 0 18px;color:#b8b5ad;font-size:17px}
#stage #BetBox .bet-sub b{color:#f0d49a}
#stage #BetBox .bet-chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
#stage#stage #BetBox .bet-chips button{min-width:110px;min-height:54px;padding:0 18px;border:1px solid #42444a;border-radius:10px;background:#25272c;color:#f0eeea;font:600 20px var(--mg-font,'FG Body'),sans-serif;cursor:pointer}
#stage#stage #BetBox .bet-chips button.on{color:#f0d49a;background:linear-gradient(180deg,#463c2a,#2c271f);border-color:#dbbc78;box-shadow:inset 0 0 0 1px #dbbc7880,0 0 14px #dbbc7833}
#stage #BetBox .bet-pots{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#stage #BetBox .bp{padding:12px 16px;border-radius:10px;background:#16171b;border:1px solid #32343a}
#stage #BetBox .bp.al{border-color:#2f6b47}#stage #BetBox .bp.en{border-color:#7a3329}
#stage #BetBox .bp h4{margin:0 0 8px;font:600 18px var(--mg-font,'FG Body'),sans-serif;color:#b8b5ad}
#stage #BetBox .bp h4 b{color:#f0d49a}
#stage #BetBox .br{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid #ffffff0d;font-size:16px}
#stage #BetBox .br b{color:#f0d49a}#stage #BetBox .br.me span{color:#6cd48f;font-weight:700}
#stage #BetBox .bet-note{margin:14px 0 18px;color:#8f8a80;font-size:14px}
#stage #BetBox .bet-act{display:flex;justify-content:flex-end}
#stage#stage #BetBox .bet-act .Btn{min-height:58px;padding:0 32px;font-size:22px}
html.touch #stage #BetBox .bet-box{width:1500px;max-height:1000px}
html.touch #stage #BetBox .bet-sub,html.touch #stage #BetBox .br,html.touch #stage #BetBox .bet-note,html.touch #stage #BetBox .bp h4{font-size:22px}
html.touch #stage#stage #BetBox .bet-chips button{min-height:72px;min-width:150px;font-size:26px}
html.touch #stage#stage #BetBox .bet-act .Btn{min-height:76px;font-size:28px}

#stage .u3-bonus{display:grid;grid-template-columns:1.1fr 1fr;gap:14px;margin:16px 0}
#stage .u3-bonus .ub-k{font:700 13px var(--mg-font,'FG Body'),sans-serif;letter-spacing:.12em;color:#dbbc78;text-transform:uppercase}
#stage .u3-bonus .ub-mvp{grid-row:span 2;display:flex;align-items:center;gap:16px;padding:16px 18px;border-radius:12px;background:linear-gradient(120deg,#2c261b,#17181c 70%);border:1px solid #6b5a3a}
#stage .u3-bonus .ub-mvp.me{box-shadow:0 0 0 2px #dbbc78,0 0 26px #dbbc7844}
#stage .u3-bonus .ub-mvp img{width:84px;height:84px;object-fit:cover;border-radius:10px;border:1px solid #dbbc78}
#stage .u3-bonus .ub-mvp .ub-n{flex:1;display:flex;flex-direction:column}
#stage .u3-bonus .ub-mvp .ub-n b{font:700 24px var(--mg-font,'FG Body'),sans-serif;color:#f0eeea}
#stage .u3-bonus .ub-mvp .ub-n em{font-style:normal;color:#b8b5ad;font-size:15px}
#stage .u3-bonus .ub-mvp strong{font:700 34px var(--mg-font,'FG Display'),sans-serif;color:#f0d49a}
#stage .u3-bonus .ub-top{list-style:none;margin:0;padding:10px 14px;border-radius:12px;background:#16171b;border:1px solid #32343a;display:grid;gap:6px}
#stage .u3-bonus .ub-top li{display:flex;align-items:center;gap:10px;font-size:16px;color:#f0eeea}
#stage .u3-bonus .ub-top li.me span{color:#6cd48f;font-weight:700}
#stage .u3-bonus .ub-top li i{width:22px;font-style:normal;color:#dbbc78;font-weight:700}
#stage .u3-bonus .ub-top li img{width:30px;height:30px;border-radius:6px;object-fit:cover}
#stage .u3-bonus .ub-top li span{flex:1}#stage .u3-bonus .ub-top li b{color:#f0d49a}
#stage .u3-bonus .ub-me{padding:10px 14px;border-radius:12px;background:#16171b;border:1px solid #32343a;display:flex;flex-direction:column;gap:4px}
#stage .u3-bonus .ub-me b{color:#f0eeea;font-size:18px}#stage .u3-bonus .ub-me small{color:#9d988f;font-size:13px}
#stage .u3-bonus .ub-rw,#stage .u3-bonus .ub-bet{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 14px;border-radius:12px;background:#16171b;border:1px solid #32343a;color:#f0eeea;font-size:16px}
#stage .u3-bonus .ub-chest{padding:4px 12px;border-radius:999px;background:#3a3222;border:1px solid #dbbc78;color:#f0d49a;font-weight:700}
#stage .u3-bonus .ub-rw em{font-style:normal;color:#9d988f;font-size:14px}
#stage .u3-bonus .ub-gold{color:#f0d49a;font-weight:700}
#stage .u3-bonus .ub-bet.win{border-color:#2f6b47;color:#8fe0ac}#stage .u3-bonus .ub-bet.lose{border-color:#7a3329;color:#ef897a}
html.touch #stage .u3-bonus :is(.ub-top li,.ub-rw,.ub-bet,.ub-me small,.ub-rw em,.ub-mvp .ub-n em,.ub-k){font-size:20px}
#stage .u3-bonus .ub-cw{color:#ffd25e;font-weight:700}
/* (26/10) bảng chỉ số chiến đấu + vai trò (MVP chấm theo vai trò) */
#stage .u3-bonus .ub-top li span small{display:block;color:#9d988f;font-size:13px;font-weight:400}
#stage .u3-bonus .ub-stats{grid-column:1/-1;order:5;padding:10px 14px;border-radius:12px;background:#16171b;border:1px solid #32343a;overflow-x:auto}
#stage .u3-bonus .ub-stats table{width:100%;border-collapse:collapse;font-size:15px;color:#e6e3dc}
#stage .u3-bonus .ub-stats th{font:700 12px var(--mg-font,'FG Body'),sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#dbbc78;text-align:right;padding:4px 8px;border-bottom:1px solid #32343a}
#stage .u3-bonus .ub-stats th:first-child,#stage .u3-bonus .ub-stats th:nth-child(2),#stage .u3-bonus .ub-stats td:first-child,#stage .u3-bonus .ub-stats td:nth-child(2){text-align:left}
#stage .u3-bonus .ub-stats td{padding:4px 8px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#stage .u3-bonus .ub-stats td:first-child{display:flex;align-items:center;gap:8px}#stage .u3-bonus .ub-stats td img{width:26px;height:26px;border-radius:5px;object-fit:cover}
#stage .u3-bonus .ub-stats tr.me td{color:#6cd48f;font-weight:700}#stage .u3-bonus .ub-stats tr.mvp td:first-child span::after{content:' ★';color:#f0d49a}
#stage .u3-bonus .ub-stats tr.gap td{height:6px;padding:0;border-bottom:1px solid #32343a}
#stage .u3-bonus .ub-stats small{display:block;margin-top:6px;color:#9d988f;font-size:13px}
html.touch #stage .u3-bonus .ub-stats :is(table,small,th){font-size:18px}
/* ===== Candyworks (Claude, 14/10) — theo trang Crownfall Candyworks trong Dota =====
   Nguồn: layout/battle_pass/crownfall/bp_page_crownfall_candy_shop.xml + styles/.../bp_page_crownfall_candy_shop.css
   Ảnh: assets/ui/candy/* (trích từ pak01_dir.vpk). Codex được chỉnh tiếp nhưng giữ class + data-cw. */
#stage#stage#stage#stage .cdy-page{--cg1:#FFF2DF;--cg2:#ebc386;--cg3:#BA8C47;--cg4:#8d6c3a;--gold1:#f4d58d;--gold2:#c9a35a;--gold3:#7a5a2b;
  position:relative;margin-top:14px;flex:1;min-height:0;border-radius:4px;overflow:hidden;color:#e8e1d3;
  background:#0b0806 url(assets/ui/candy/candyworks_coming_soon_bg.webp) center 40%/cover no-repeat;display:flex;flex-direction:column;padding:18px 28px 18px}
#stage#stage#stage#stage .st-body:has(.cdy-page){display:flex;flex-direction:column;overflow:hidden}
#stage#stage#stage#stage .st-body:has(.cdy-page)>.tabs{flex:none}
#stage#stage#stage#stage .cdy-page::before{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,#000c 0,#0000 22%),linear-gradient(0deg,#000d 0,#0000 30%),linear-gradient(90deg,#0000 55%,#000c 100%),radial-gradient(ellipse at 35% 45%,#0000 30%,#0008 100%)}
#stage#stage#stage#stage .cdy-page>*{position:relative}
/* tiêu đề */
#stage#stage#stage#stage .cdy-title{display:flex;align-items:center;gap:14px;flex:none}
#stage#stage#stage#stage .cdy-shop{width:72px;height:93px;flex:none;background:url(assets/ui/candy/midgate_candyshop.webp) 0 0/1700% 100% no-repeat;animation:cdy-shop 2.2s steps(17,jump-none) infinite alternate;filter:drop-shadow(0 4px 10px #000)}
@keyframes cdy-shop{to{background-position:100% 0}}
#stage#stage#stage#stage .cdy-title h2{margin:0;font:700 46px/1 Reaver,serif;text-transform:uppercase;letter-spacing:1px;
  background:linear-gradient(180deg,var(--cg1) 35%,var(--cg2) 58%,var(--cg3) 62%,var(--cg4));-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 4px #000)}
#stage#stage#stage#stage .cdy-title p{margin:2px 0 0;font:600 20px/1.2 var(--mg-font);text-transform:uppercase;letter-spacing:2px;background:linear-gradient(180deg,#fff,#c9a35a);-webkit-background-clip:text;background-clip:text;color:transparent}
#stage#stage#stage#stage .cdy-help{margin-left:28px;display:flex;flex-direction:column;gap:2px;color:#ffffffa0;font:400 15px/1.4 var(--mg-font);max-width:620px}
#stage#stage#stage#stage .cdy-info{display:inline-block;width:16px;height:16px;margin-right:6px;vertical-align:-2px;border-radius:50%;border:1.5px solid var(--gold1);position:relative}
#stage#stage#stage#stage .cdy-info::after{content:'i';position:absolute;inset:0;font:700 11px/13px serif;text-align:center;color:var(--gold1)}
#stage#stage#stage#stage .cdy-main{flex:1;min-height:0;display:flex;gap:28px;margin-top:6px}
/* bên trái: 3 món quà + hàng roll */
#stage#stage#stage#stage .cdy-left{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end}
#stage#stage#stage#stage .cdy-rewards{display:flex;justify-content:center;gap:10px;flex:1;min-height:0;align-items:stretch;padding-top:44px}
#stage#stage#stage#stage .cdy-rw{--rc:#b0c3d9;position:relative;width:400px;max-width:33%;display:flex;flex-direction:column;align-items:center}
#stage#stage#stage#stage .cdy-rw-top{position:absolute;left:0;right:0;top:-34px;bottom:196px;z-index:2;pointer-events:none}
#stage#stage#stage#stage .cdy-glow{position:absolute;left:8%;right:8%;top:4%;bottom:6%;background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--rc) 45%,transparent),transparent 65%);filter:blur(6px);opacity:.75}
#stage#stage#stage#stage .cdy-it{position:absolute;left:50%;top:50%;width:94%;height:96%;object-fit:contain;transform:translate(-50%,-50%);
  -webkit-mask:radial-gradient(closest-side,#000 58%,#0000 100%);mask:radial-gradient(closest-side,#000 58%,#0000 100%);filter:drop-shadow(0 10px 14px #000a);transition:transform .25s}
#stage#stage#stage#stage .cdy-it.refl{display:none}
#stage#stage#stage#stage .cdy-shelf{position:absolute;left:20%;right:20%;bottom:2px;height:18px;border-radius:50%;background:radial-gradient(ellipse at 50% 40%,#000c,#0000 70%)}
#stage#stage#stage#stage .cdy-rw-front{position:relative;flex:1;width:300px;padding-top:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  background:linear-gradient(180deg,#04070b 0,#0A101A 40%,#17293d 60%,#293d54 100%);border:1px solid #ffffff12;border-top:0;box-shadow:0 12px 64px -4px #0007}
#stage#stage#stage#stage .cdy-rw-front::after{content:'';position:absolute;inset:-1px;pointer-events:none;border:1px solid transparent;
  background:linear-gradient(180deg,#fff0 20%,#ffffff40) border-box;-webkit-mask:linear-gradient(#000 0 0) padding-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) padding-box exclude,linear-gradient(#000 0 0)}
#stage#stage#stage#stage .cdy-dash{position:absolute;top:0;left:-1px;right:-1px;height:2px;background:linear-gradient(90deg,var(--gold3),var(--gold1),var(--gold3))}
#stage#stage#stage#stage .cdy-rw-name{width:calc(100% - 32px);min-height:58px;padding-bottom:6px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;position:relative}
#stage#stage#stage#stage .cdy-rw-name::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,#0000,var(--gold2) 40%,var(--gold2) 60%,#0000)}
#stage#stage#stage#stage .cdy-rw-name b{font:600 18px/1.2 var(--mg-font);color:#e7e3dc;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#stage#stage#stage#stage .cdy-rw-name small{font:400 14px/1.4 var(--mg-font);color:#9aa3ad}
#stage#stage#stage#stage .cdy-rw-name small span{color:var(--rc);font-weight:600}
#stage#stage#stage#stage .cdy-price{min-height:86px;padding:10px 12px 28px;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:2px}
#stage#stage#stage#stage .cdy-ci{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;font-style:normal}
#stage#stage#stage#stage .cdy-ci img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px #000a)}
#stage#stage#stage#stage .cdy-ci.miss img{filter:grayscale(1) brightness(.45);opacity:.7}
#stage#stage#stage#stage .cdy-ci.miss::after{content:'';position:absolute;inset:6px;border-radius:50%;box-shadow:inset 0 0 0 1px #ff6b5a55}
#stage#stage#stage#stage .cdy-ci.any{border-radius:50%;background:#00000055;border:1px dashed #ffffff30;color:#ffffff50;font:600 16px var(--mg-font)}
#stage#stage#stage#stage .cdy-ci b{position:absolute;right:-6px;bottom:-4px;min-width:20px;padding:0 4px;border-radius:9px;background:#000c;border:1px solid #ffffff2a;font:700 13px/18px var(--mg-font);color:#fff;text-align:center}
/* nút vàng kiểu BattlePassBrightButton */
#stage#stage#stage#stage .cdy-page .cdy-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 16px;border-radius:2px;cursor:pointer;
  font:700 14px/1 var(--mg-font);text-transform:uppercase;letter-spacing:.5px;color:#2a1a05;border:1px solid #ffe7a8;
  background:linear-gradient(180deg,#fff1c4 0,#f2cc72 45%,#d5a345 55%,#b98431 100%);box-shadow:0 0 0 1px #0008,0 6px 18px #0009,inset 0 1px 0 #fff8;text-shadow:0 1px 0 #fff6;filter:none}
#stage#stage#stage#stage .cdy-page .cdy-btn::after{display:none}
#stage#stage#stage#stage .cdy-page .cdy-btn:hover:not(:disabled){filter:brightness(1.12);box-shadow:0 0 0 1px #0008,0 0 22px #f2cc7266,inset 0 1px 0 #fff8}
#stage#stage#stage#stage .cdy-page .cdy-btn:disabled{color:#ffffff55;background:linear-gradient(180deg,#2a3340,#1a212b);border-color:#ffffff14;box-shadow:0 6px 18px #0007;text-shadow:none;cursor:default}
#stage#stage#stage#stage .cdy-rw .cdy-btn{position:absolute;bottom:-18px;min-width:44%;z-index:3}
#stage#stage#stage#stage .cdy-rw.can .cdy-rw-front{box-shadow:0 12px 64px -4px #0007,0 0 34px -6px #f2cc7255}
#stage#stage#stage#stage .cdy-rw:hover .cdy-it{transform:translate(-50%,-50%) scale(1.05)}
#stage#stage#stage#stage .cdy-rw.r6 .cdy-glow{opacity:1;animation:cdy-arc 2.4s ease-in-out infinite}
#stage#stage#stage#stage .cdy-rw.r6 .cdy-rw-front{box-shadow:0 12px 64px -4px #0007,0 0 40px -4px #ade55c88;border-color:#ade55c66}
#stage#stage#stage#stage .cdy-rw.r6 .cdy-dash{background:linear-gradient(90deg,#3d6b16,#d9ff9a,#3d6b16)}
@keyframes cdy-arc{50%{opacity:.55;transform:scale(1.08)}}
/* hàng roll */
#stage#stage#stage#stage .cdy-reroll{flex:none;margin-top:44px;display:flex;flex-direction:column;align-items:center}
#stage#stage#stage#stage .cdy-rr{display:flex;align-items:center;gap:12px;width:100%;max-width:880px}
#stage#stage#stage#stage .cdy-rdash{flex:1;height:2px;background:linear-gradient(90deg,#0000,#ffffff55);opacity:.5}
#stage#stage#stage#stage .cdy-rdash.r{transform:scaleX(-1)}
#stage#stage#stage#stage .cdy-rri-row{display:flex;gap:3px}
#stage#stage#stage#stage .cdy-rri{width:24px;height:24px;background:#c8c8c8;opacity:.3;-webkit-mask:url(assets/ui/candy/reroll_crownfall.webp) center/contain no-repeat;mask:url(assets/ui/candy/reroll_crownfall.webp) center/contain no-repeat}
#stage#stage#stage#stage .cdy-rri.on{opacity:1;background:linear-gradient(180deg,var(--cg1) 35%,var(--cg2) 48%,var(--cg3) 52%,var(--cg4))}
#stage#stage#stage#stage .cdy-more{min-width:44px;margin-left:-4px;font:700 26px/1 Reaver,serif;background:linear-gradient(180deg,var(--cg1) 35%,var(--cg2) 48%,var(--cg3) 52%,var(--cg4));-webkit-background-clip:text;background-clip:text;color:transparent}
#stage#stage#stage#stage .cdy-reroll .cdy-btn.sec{color:#f1e3c4;text-shadow:none;border-color:#c9a35a88;background:linear-gradient(180deg,#3b4c62,#1d2836);box-shadow:0 0 0 1px #0008,0 6px 18px #0009,inset 0 1px 0 #ffffff22}
#stage#stage#stage#stage .cdy-reroll.has .cdy-btn.sec{border-color:#ffe7a8;color:#2a1a05;text-shadow:0 1px 0 #fff6;background:linear-gradient(180deg,#fff1c4 0,#f2cc72 45%,#d5a345 55%,#b98431 100%)}
#stage#stage#stage#stage .cdy-dice{width:18px;height:18px;background:currentColor;-webkit-mask:url(assets/ui/candy/random_dice.webp) center/contain no-repeat;mask:url(assets/ui/candy/random_dice.webp) center/contain no-repeat}
#stage#stage#stage#stage .cdy-rmsg{margin:8px 0 0;font:400 15px/1.4 var(--mg-font);color:#ffffff88;text-align:center}
#stage#stage#stage#stage .cdy-rmsg b{color:#e6e0d4}
#stage#stage#stage#stage .cdy-reroll.max .cdy-rmsg{color:#ffb38a}
/* bên phải: túi kẹo, ô kẹo, đổi kẹo */
#stage#stage#stage#stage .cdy-right{width:500px;flex:none;display:flex;flex-direction:column;min-height:0}
#stage#stage#stage#stage .cdy-packs{position:relative;flex:none;height:104px;padding-left:168px;display:flex;align-items:center;gap:18px;background:#000000cc;transition:background .4s}
#stage#stage#stage#stage .cdy-packs.has{background:linear-gradient(135deg,#f4d58d55 0,#c9a35a18 70%,#0000 100%),#000000b0}
#stage#stage#stage#stage .cdy-packs.full{background:linear-gradient(135deg,#000000cc,#76251fcb)}
#stage#stage#stage#stage .cdy-sack{position:absolute;left:-14px;bottom:-24px;width:170px;height:170px;background:url(assets/ui/candy/candy_bag.webp) center/contain no-repeat;filter:drop-shadow(0 8px 16px #000);animation:cdy-bob 3.6s ease-in-out infinite}
@keyframes cdy-bob{50%{transform:translateY(-5px) rotate(-1.5deg)}}
#stage#stage#stage#stage .cdy-cnt{display:flex;flex-direction:column;align-items:flex-start}
#stage#stage#stage#stage .cdy-cnt b{font:700 58px/1 Reaver,serif;background:linear-gradient(180deg,#ffe6a3 15%,#fff 50%,#ffe6a3 51%,#fff8e6);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 3px #000)}
#stage#stage#stage#stage .cdy-cnt span{white-space:nowrap;margin-top:-4px;font:600 14px/1.2 var(--mg-font);text-transform:uppercase;letter-spacing:1px;color:var(--gold1)}
#stage#stage#stage#stage .cdy-earn{display:flex;flex-wrap:wrap;gap:4px 12px;font:500 15px/1.3 var(--mg-font);color:#ffffffaa}
#stage#stage#stage#stage .cdy-earn b{color:var(--gold1)}
#stage#stage#stage#stage .cdy-earn em{flex-basis:100%;font-style:normal;font-size:13px;color:#ffffff70}
#stage#stage#stage#stage .cdy-packs.full .cdy-earn em{color:#ff8a7a}
#stage#stage#stage#stage .cdy-group{flex:1;min-height:0;overflow:auto;margin-top:10px;padding:12px 18px 16px;background:linear-gradient(160deg,#847457 0,#3d2f19 55%,#2b2110 100%);box-shadow:0 2px 32px #0007}
#stage#stage#stage#stage .cdy-sub{display:flex;align-items:center;gap:14px;margin:4px 0 10px}
#stage#stage#stage#stage .cdy-sub i{flex:1;height:1px;background:#ffffff22}
#stage#stage#stage#stage .cdy-sub b{font:600 19px/1.2 var(--mg-font);text-transform:uppercase;letter-spacing:1px;color:#ffe9ca}
#stage#stage#stage#stage .cdy-inv{display:grid;grid-template-columns:repeat(10,40px);gap:4px;justify-content:center}
#stage#stage#stage#stage .cdy-sub small{font:600 14px var(--mg-font);color:#ffe9ca99;margin-left:-6px}
#stage#stage#stage#stage .cdy-slot{width:40px;height:40px;border-radius:2px;background:#ffffff05;border:1px solid #fff1d83d;display:flex;align-items:center;justify-content:center}
#stage#stage#stage#stage .cdy-slot.has{background:none;border-color:transparent;animation:cdy-add .35s ease-out}
@keyframes cdy-add{40%{transform:scale(1.3)}}
#stage#stage#stage#stage .cdy-legend{display:flex;justify-content:center;gap:16px;margin:10px 0 12px}
#stage#stage#stage#stage .cdy-legend .cdy-ci{width:34px;height:34px}
#stage#stage#stage#stage .cdy-st{margin:-4px 0 8px;text-align:center;font:500 13px/1.3 var(--mg-font);text-transform:uppercase;color:#ffffff68}
#stage#stage#stage#stage .cdy-exs{display:flex;flex-direction:column;gap:4px}
#stage#stage#stage#stage .cdy-page .cdy-ex{display:flex;align-items:center;width:100%;min-height:46px;padding:2px 12px;border-radius:2px;cursor:pointer;
  background:#ffda9f0e;border:1px solid #fff0cb14;box-shadow:none;color:#e8e1d3;font:500 15px var(--mg-font);text-transform:none;letter-spacing:0;transition:background .2s}
#stage#stage#stage#stage .cdy-page .cdy-ex::after{display:none}
#stage#stage#stage#stage .cdy-page .cdy-ex:hover:not(:disabled){background:#ffda9f22;border-color:#fff0cb30;box-shadow:none}
#stage#stage#stage#stage .cdy-page .cdy-ex:disabled{background:#00000057;border-color:#0000003e;color:#ffffff66}
#stage#stage#stage#stage .cdy-exin{display:flex;gap:0;width:132px}
#stage#stage#stage#stage .cdy-exin .cdy-ci{width:36px;height:36px;margin-right:6px}
#stage#stage#stage#stage .cdy-exbtn{position:relative;flex:none;width:32px;height:32px;margin:0 22px;border-radius:50%;background:linear-gradient(180deg,#e8d3a4,#a8803f);border:1px solid #c9a35a;box-shadow:0 2px 8px #0009;transition:transform .2s}
#stage#stage#stage#stage .cdy-exbtn::before{content:'';position:absolute;left:12px;top:9px;border:7px solid transparent;border-left:10px solid #2a1a05;border-right:0}
#stage#stage#stage#stage .cdy-ex:hover:not(:disabled) .cdy-exbtn{transform:scale(1.15)}
#stage#stage#stage#stage .cdy-ex:disabled .cdy-exbtn{opacity:.2;box-shadow:none}
#stage#stage#stage#stage .cdy-exout{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
#stage#stage#stage#stage .cdy-exout .cdy-ci{width:38px;height:38px}
#stage#stage#stage#stage .cdy-exout em{font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* điện thoại: chữ ≥ 20px, nút ≥ 64px */
html.touch #stage#stage#stage#stage .cdy-page{padding:10px 20px}
html.touch #stage#stage#stage#stage .cdy-title h2{font-size:44px}
html.touch #stage#stage#stage#stage .cdy-shop{width:52px;height:67px}
html.touch #stage#stage#stage#stage .cdy-price{padding-bottom:48px;min-height:80px}
html.touch #stage#stage#stage#stage .cdy-rw .cdy-btn{bottom:-30px;min-width:40%}
html.touch #stage#stage#stage#stage .cdy-reroll{margin-top:40px}
html.touch #stage#stage#stage#stage .cdy-st{display:none}
html.touch #stage#stage#stage#stage .cdy-group{margin-top:26px;padding:12px 18px}
html.touch #stage#stage#stage#stage .cdy-help{display:none}
html.touch #stage#stage#stage#stage :is(.cdy-title p,.cdy-rw-name small,.cdy-rmsg,.cdy-earn,.cdy-earn em,.cdy-st){font-size:20px}
html.touch #stage#stage#stage#stage .cdy-rw-name b{font-size:22px}
html.touch #stage#stage#stage#stage .cdy-page .cdy-btn{min-height:64px;padding:0 18px;font-size:20px}
html.touch #stage#stage#stage#stage .cdy-rri{width:30px;height:30px}
html.touch #stage#stage#stage#stage .cdy-page .cdy-ex{min-height:64px;font-size:20px}
html.touch #stage#stage#stage#stage .cdy-right{width:540px}
html.touch #stage#stage#stage#stage .cdy-ci b{font-size:18px}

/* ===== Avatar (Claude, 14/10): lớp riêng av-cos / av-acc — trước dùng 'cos' và 'acc' nên dính style của thẻ món đồ (.cos rộng 168px) và thẻ tài khoản (.acc lưới 95px + padding) → khung và ảnh lệch ở màn chọn tài khoản ===== */
.av.av-cos > img:not(.fov) { object-fit: contain; object-position: center; background: radial-gradient(#2a3442, #0b0f15); }
.av.av-acc { width: 74px; height: 74px; align-self: center; justify-self: center; }
html.touch #stage .acc { grid-template-columns: 130px 1fr; }
html.touch #stage .av.av-acc { width: 86px; height: 86px; }

/* Số vàng trên nút vàng (Mở tiếp · 320, Mở · 500…): chữ vàng trên nền vàng không đọc được → chữ nâu đậm (Claude, 14/10) */
#stage#stage#stage#stage :is(.Btn.green,.btn-primary,.k-btn.primary):not(:disabled) .goldv{color:#3a2408;text-shadow:none}
#stage#stage#stage#stage :is(.Btn.green,.btn-primary,.k-btn.primary):not(:disabled) .goldv :is(.ui-icon,svg){color:#3a2408;opacity:.85}
/* Rương: kho rương đã có + mua ×1/×5/×10 + nút Bỏ qua khi quay (Claude, 14/10) */
#stage .chest .ch-stock{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:4px 0 2px;font:500 14px/1.3 var(--mg-font,inherit);color:#c9c3b6}
#stage .chest .ch-stock b{color:#f4d58d;font-weight:700}
#stage .chest .ch-stock span{padding:1px 8px;border-radius:10px;background:#ffffff0d;border:1px solid #ffffff1a;font-size:13px}
#stage .chest .ch-buy{display:flex;align-items:center;gap:4px;margin-top:8px;flex-wrap:nowrap}
#stage .chest .ch-buy>span{font:600 13px var(--mg-font,inherit);color:#9aa3ad;text-transform:uppercase;letter-spacing:.5px;margin-right:2px}
#stage#stage#stage#stage .chest .ch-buy .Btn{min-height:34px;min-width:0;padding:4px 6px;font-size:13px;flex:1 1 0;justify-content:center;white-space:nowrap;gap:3px}
#stage#stage#stage#stage .chest .ch-buy .goldv .ui-icon{width:13px;height:13px;margin-right:2px}
#stage#stage#stage#stage .chest .ch-buy .Btn .goldv{font-size:13px}
#stage .op-skip{display:flex;justify-content:center;margin-top:22px}
#stage#stage#stage#stage .op-skip .Btn{min-width:180px;min-height:44px;font-size:16px;letter-spacing:.5px;background:#1d2128cc;border-color:#9d865e;color:#f1e3c4}
html.touch #stage .chest .ch-stock,html.touch #stage .chest .ch-stock span,html.touch #stage .chest .ch-buy>span{font-size:20px}
html.touch #stage .chest .ch-buy{flex-wrap:wrap}
html.touch #stage#stage#stage#stage .chest .ch-buy .Btn,html.touch #stage#stage#stage#stage .chest .ch-buy .Btn .goldv{font-size:20px;min-height:64px}
html.touch #stage#stage#stage#stage .op-skip .Btn{min-height:72px;font-size:24px;min-width:260px}

/* Candyworks luật Crownfall (Claude, 14/10 chiều): túi kẹo → bấm ô để đổ, 30 ô, gói kẹo, đổi tự chọn */
#stage#stage#stage#stage .cdy-buy{flex:none;display:flex;align-items:center;gap:12px;margin-top:18px;padding:6px 10px 6px 14px;background:#000000b0;border:1px solid #c9a35a40}
#stage#stage#stage#stage .cdy-buy-ic{width:40px;height:40px;flex:none;background:url(assets/ui/candy/candy_bag.webp) center/contain no-repeat}
#stage#stage#stage#stage .cdy-buy>div{flex:1;min-width:0;display:flex;flex-direction:column}
#stage#stage#stage#stage .cdy-buy b{font:600 16px/1.2 var(--mg-font);color:#ffe9ca}
#stage#stage#stage#stage .cdy-buy small{font:400 13px/1.3 var(--mg-font);color:#ffffff90}
#stage#stage#stage#stage .cdy-page .cdy-buy .cdy-btn .goldv{color:#3a2408}
#stage#stage#stage#stage .cdy-page .cdy-buy .cdy-btn:disabled .goldv{color:#ffffff60}
#stage#stage#stage#stage .cdy-page .cdy-slot{position:relative;width:40px;height:40px;min-width:0;min-height:0;padding:0;margin:0;border-radius:2px;background:#ffffff05;border:1px solid #fff1d83d;box-shadow:none;font:600 12px var(--mg-font);color:#2a1a05;display:flex;align-items:center;justify-content:center;letter-spacing:0;text-transform:none}
#stage#stage#stage#stage .cdy-page .cdy-slot::after{display:none}
#stage#stage#stage#stage .cdy-page .cdy-slot.has{background:none;border-color:transparent}
#stage#stage#stage#stage .cdy-page .cdy-slot.fill{cursor:pointer;background:#f4d58d12;border:1px solid #f4d58d88;animation:cdy-fillable 1.6s ease-in-out infinite}
@keyframes cdy-fillable{50%{box-shadow:0 0 10px #f4d58d44}}
#stage#stage#stage#stage .cdy-page .cdy-slot.lock,#stage#stage#stage#stage .cdy-page .cdy-slot.lock:disabled{background:radial-gradient(#00000042,#00000076);border-color:#0000001a;cursor:default}
#stage#stage#stage#stage .cdy-page .cdy-slot em{font-style:normal;opacity:0}
/* rê chuột: sáng các ô sẽ được đổ (từ ô trống đầu tiên tới ô đang chỉ) */
#stage#stage#stage#stage .cdy-inv:has(.cdy-slot.fill:hover) .cdy-slot.fill{background:linear-gradient(180deg,#fff1c4,#d5a345);border-color:#ffe7a8;animation:none}
#stage#stage#stage#stage .cdy-inv .cdy-slot.fill:hover ~ .cdy-slot.fill{background:#f4d58d12;border-color:#f4d58d88}
#stage#stage#stage#stage .cdy-page .cdy-slot.fill:hover em{opacity:1}
#stage#stage#stage#stage .cdy-legend .cdy-ci.miss img{filter:grayscale(1) brightness(.5)}
#stage#stage#stage#stage .cdy-custom{display:flex;flex-direction:column;gap:6px;padding:8px 10px;background:#ffda9f0a;border:1px solid #fff0cb14}
#stage#stage#stage#stage .cdy-crow{display:flex;align-items:center;gap:4px}
#stage#stage#stage#stage .cdy-crow>span{width:96px;flex:none;font:500 14px var(--mg-font);color:#ffffffaa}
#stage#stage#stage#stage .cdy-page .cdy-pick{width:52px;height:46px;min-width:0;min-height:0;padding:0;border-radius:3px;background:#00000040;border:1px solid #ffffff14;box-shadow:none;display:flex;align-items:center;justify-content:center}
#stage#stage#stage#stage .cdy-page .cdy-pick::after{display:none}
#stage#stage#stage#stage .cdy-page .cdy-pick.on{background:#f4d58d26;border-color:#f4d58d;box-shadow:inset 0 0 0 1px #f4d58d88}
#stage#stage#stage#stage .cdy-page .cdy-pick:disabled{opacity:.3;background:#00000040}
#stage#stage#stage#stage .cdy-pick .cdy-ci{width:34px;height:34px}
#stage#stage#stage#stage .cdy-custom .cdy-ex{margin-top:2px}
html.touch #stage#stage#stage#stage .cdy-inv{grid-template-columns:repeat(10,46px);gap:4px}
html.touch #stage#stage#stage#stage .cdy-page .cdy-slot{width:46px;height:46px;min-width:0;min-height:0;font-size:18px}
html.touch #stage#stage#stage#stage .cdy-page .cdy-slot.fill em{opacity:1}
html.touch #stage#stage#stage#stage .cdy-page .cdy-pick{width:64px;height:64px;min-width:0;min-height:0}
html.touch #stage#stage#stage#stage :is(.cdy-buy b,.cdy-buy small,.cdy-crow>span,.cdy-sub small){font-size:20px}
html.touch #stage#stage#stage#stage .cdy-crow>span{width:120px}
#stage#stage#stage#stage .cdy-packs{height:92px}
#stage#stage#stage#stage .cdy-sack{bottom:-12px;width:150px;height:150px;left:-6px}
#stage#stage#stage#stage .cdy-packs{padding-left:156px}
#stage#stage#stage#stage .cdy-page .cdy-ex{min-height:40px}
#stage#stage#stage#stage .cdy-exin .cdy-ci,#stage#stage#stage#stage .cdy-exout .cdy-ci{width:32px;height:32px}
#stage#stage#stage#stage .cdy-page .cdy-pick{height:40px;width:48px}
#stage#stage#stage#stage .cdy-pick .cdy-ci{width:30px;height:30px}
#stage#stage#stage#stage .cdy-sub{margin:2px 0 8px}
#stage#stage#stage#stage .cdy-pgrp{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px}
#stage#stage#stage#stage .cdy-pgrp>span{display:flex;align-items:center;gap:2px}
#stage#stage#stage#stage .cdy-pgrp b{font:700 15px var(--mg-font);color:#ff9a8a}
#stage#stage#stage#stage .cdy-pgrp .ok b{color:#9fe2a8}
html.touch #stage#stage#stage#stage .cdy-pgrp b{font-size:20px}
html.touch #stage#stage#stage#stage .cdy-page .cdy-pick{width:64px;height:64px}
html.touch #stage#stage#stage#stage .cdy-page .cdy-ex{min-height:64px}
#stage#stage#stage#stage .cdy-custom{display:grid;grid-template-columns:1fr auto;grid-auto-flow:column;grid-template-rows:auto auto;column-gap:10px;row-gap:4px;align-items:center}
#stage#stage#stage#stage .cdy-custom .cdy-crow{grid-column:1}
#stage#stage#stage#stage .cdy-page .cdy-cgo{grid-column:2;grid-row:1 / span 2;width:76px;height:100%;min-width:0;min-height:0;padding:6px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:3px;background:#ffda9f14;border:1px solid #f4d58d66;box-shadow:none;color:#ffe9ca;font:700 14px var(--mg-font);text-transform:uppercase}
#stage#stage#stage#stage .cdy-page .cdy-cgo::after{display:none}
#stage#stage#stage#stage .cdy-page .cdy-cgo .cdy-exbtn{margin:0}
#stage#stage#stage#stage .cdy-page .cdy-cgo:hover:not(:disabled){background:#ffda9f2a}
#stage#stage#stage#stage .cdy-page .cdy-cgo:hover:not(:disabled) .cdy-exbtn{transform:scale(1.15)}
#stage#stage#stage#stage .cdy-page .cdy-cgo:disabled{background:#00000057;border-color:#0000003e;color:#ffffff55}
#stage#stage#stage#stage .cdy-page .cdy-cgo:disabled .cdy-exbtn{opacity:.25}
html.touch #stage#stage#stage#stage .cdy-page .cdy-cgo{width:100px;font-size:20px}
html.touch #stage#stage#stage#stage .cdy-packs{height:auto;min-height:100px;padding-top:6px;padding-bottom:6px}
html.touch #stage#stage#stage#stage .cdy-earn>span{display:none}

/* Ảnh đại diện (Claude, 14/10 chiều): chỉ chân dung tướng, Arcana (cắt vuông, lấp kín khung) hoặc ảnh tự đăng */
.av.av-arc > img:not(.fov) { object-fit: cover; object-position: center 32%; background: #0b0f15; }
.av.av-up > img:not(.fov) { object-fit: cover; object-position: center; }
#stage .av-pick.arc img { width: 84px; height: 84px; object-fit: cover; object-position: center 32%; border: 2px solid #ade55c55; background: #0b0f15; }
#stage .av-pick.arc img.on { border-color: #ade55c; opacity: 1; }
#stage .av-up-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#stage .av-up-row .av-up-prev { width: 84px; height: 84px; object-fit: cover; border: 2px solid #ffffff22; cursor: pointer; opacity: .8; }
#stage .av-up-row .av-up-prev.on { border-color: #e8c68c; opacity: 1; }
html.touch #stage .av-pick.arc img, html.touch #stage .av-up-row .av-up-prev { width: 120px; height: 120px; }
html.touch #stage .av-up-row .dim { font-size: 20px; }
/* Đăng nhập online + Giftcode (Claude, 14/10) */
#stage .lg-panel.cloud input{width:100%;max-width:420px}
#stage .lg-panel .cl-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px}
#stage .lg-panel .cl-links a{cursor:pointer;color:#c9b27f;font-size:14px;text-decoration:underline;text-underline-offset:3px}
#stage .gc-wrap{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:20px;align-items:start;margin-top:16px}
#stage .gc-card{padding:20px 22px;background:#12161ccc;border:1px solid #ffffff1a;border-radius:6px}
#stage .gc-card h2{margin:0 0 12px;font-size:24px}#stage .gc-card h3{margin:18px 0 8px;font-size:16px;color:#c9c3b6}
#stage .gc-row{display:flex;gap:10px}#stage .gc-row input{flex:1;font-size:20px;letter-spacing:2px;text-transform:uppercase;padding:8px 12px}
#stage .gc-msg{margin-top:10px;font-weight:600}#stage .gc-msg.ok{color:#9fe2a8}#stage .gc-msg.bad{color:#ff9a8a}
#stage .gc-hist{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto}#stage .gc-hist li{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid #ffffff10}
#stage .gc-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;margin-bottom:12px}
#stage .gc-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#b9b3a6}#stage .gc-form label.wide{grid-column:span 4}
#stage .gc-form input,#stage .gc-form select{padding:6px 8px;font-size:15px}
#stage .gc-tab{width:100%;border-collapse:collapse;font-size:14px}#stage .gc-tab th{text-align:left;color:#9aa3ad;font-weight:600;padding:4px 6px}
#stage .gc-tab td{padding:6px;border-top:1px solid #ffffff10;vertical-align:top}#stage .gc-tab td small{display:block;color:#9aa3ad}
html.touch #stage .gc-wrap{grid-template-columns:1fr}html.touch #stage .gc-form{grid-template-columns:1fr 1fr}html.touch #stage .gc-form label.wide{grid-column:span 2}
html.touch #stage :is(.gc-form label,.gc-tab,.gc-hist li,.lg-panel .cl-links a){font-size:20px}
#stage#stage#stage#stage#stage button[data-mt="sp"]:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(1)}
/* ===== Kim cương (Claude, 15/10) ===== */
#stage .dia-ic{display:inline-block;width:.85em;height:.85em;margin-right:.3em;vertical-align:-.08em;background:linear-gradient(135deg,#bff4ff 0%,#4fd3f2 45%,#1d7fc4 100%);clip-path:polygon(50% 0,100% 38%,50% 100%,0 38%);filter:drop-shadow(0 0 3px #4fd3f288)}
#stage .dia-ic.big{width:44px;height:44px;margin:0}
#stage .diav{color:#8fe6ff;font-weight:700;white-space:nowrap}
#stage#stage#stage#stage :is(.Btn.green):not(:disabled) .diav{color:#06334a}
#stage#stage#stage#stage .Btn.green.dia:not(:disabled){background:linear-gradient(#5fd6f5,#2a8fc9);border-color:#9ee9ff;color:#06334a}
#stage .st-body .wallet{display:flex;gap:16px;align-items:center}
#stage .ui-wallet.ui-dia{border-color:#3d7f99}
#stage .tabs button.st-dia{color:#8fe6ff}
#stage .dia-wrap{max-width:1100px;margin:10px auto;display:flex;flex-direction:column;gap:18px}
#stage .dia-head{display:flex;gap:18px;align-items:center;padding:18px 22px;border:1px solid #2f5d72;border-radius:6px;background:linear-gradient(90deg,#0f2a38,#0b1820)}
#stage .dia-head h2{margin:0;font-size:28px;color:#bff4ff}
#stage .dia-head p{margin:4px 0 0;font-size:16px}
#stage .dia-bal{margin-left:auto;font-size:28px}
#stage .dia-packs{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
#stage .dia-pack{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 12px;border:1px solid #2a4a5a;border-radius:6px;background:#0d1a22}
#stage .dia-pack b{font-size:26px;color:#bff4ff}
#stage .dia-pack b em{font-style:normal;font-size:15px;color:#7fe0a0;margin-left:6px}
#stage .dia-notes{padding:16px 20px;border:1px dashed #2f5d72;border-radius:6px;font-size:16px;line-height:1.5}
#stage .dia-notes p{margin:0 0 8px}
html.touch #stage .dia-packs{grid-template-columns:repeat(2,1fr)}
html.touch #stage .dia-head h2{font-size:34px}html.touch #stage .dia-head p,html.touch #stage .dia-notes{font-size:22px}
/* miễn trừ Valve + link quyền riêng tư (Claude, 15/10) */
#stage .lg-legal{margin-top:10px;font-size:12px;line-height:1.45;color:#8c97a3;opacity:.9}
#stage .lg-legal a{color:#b8c7d6;text-decoration:underline;cursor:pointer}
#stage .mn-legal{position:absolute;left:0;right:0;bottom:4px;text-align:center;pointer-events:none}
#stage .mn-legal .lg-legal{display:inline-block;margin:0;padding:2px 10px;background:#0009;border-radius:3px;pointer-events:auto;font-size:11px}
#stage .lg-lang{flex-wrap:wrap}
html.touch #stage .lg-legal{font-size:16px}
#stage .lg-consent{font-size:13px;margin:6px 0}#stage .lg-consent a{color:#9fd0ff;text-decoration:underline}
#stage#stage#stage#stage .Btn.green:disabled .diav{color:#2c4f60}
/* chọn ngôn ngữ ở thanh trên (thay chỗ AD+) — Claude 15/10 */
#stage .ui-lang-chip{position:relative}
#stage .ui-lang-btn{display:flex;align-items:center;gap:10px;min-height:56px;background:linear-gradient(#25354299,#121e28cc);border:1px solid #45606d;padding:8px 12px;border-radius:4px;color:#e6c473;cursor:pointer}
#stage .ui-lang-btn span{font-size:17px;line-height:1.2;font-weight:600;text-align:left}#stage .ui-lang-btn small{display:block;font-size:13px;font-weight:400;color:#9eacb5}
#stage .ui-lang-pop{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:50;flex-direction:column;gap:4px;padding:8px;min-width:170px;background:#101a22f5;border:1px solid #45606d;border-radius:4px;box-shadow:0 10px 30px #000a}
#stage .ui-lang-chip.open .ui-lang-pop{display:flex}
#stage .ui-lang-pop button{text-align:left;padding:8px 12px;font-size:16px;background:transparent;border:1px solid transparent;color:#d9e2ea;border-radius:3px;cursor:pointer}
#stage .ui-lang-pop button:hover{background:#1d2c38}#stage .ui-lang-pop button.on{border-color:#b29050;color:#e6c473}
html.touch #stage .ui-lang-btn{min-height:70px;padding:12px 16px}html.touch #stage .ui-lang-btn span{font-size:24px}html.touch #stage .ui-lang-btn small{display:none}html.touch #stage .ui-lang-pop button{font-size:26px;padding:14px 18px}
#stage .PlanTag.T{color:#ff9f8f;background:#a8403525;border-color:#a85a4c}.PlanTag.T{color:#ff9f8f}
/* (15/10) khung chat / Combo gợi ý trên máy tính: cao hơn, combo mở rộng lên trên để đọc được (Claude) */
/* Bảng "Combo gợi ý" bản web: gọn, không che bàn chọn (15/10) */
#ComboSug .cw{position:static;width:auto;height:auto;left:auto;top:auto}
html:not(.touch) #stage #Chat.combo{background:#14212c}   /* 15/10: giữ nguyên cỡ khung chat, không nở to che đội hình bên dưới — nội dung tự cuộn */
html:not(.touch) #stage #Chat #ChatTabs,html:not(.touch) #stage #Chat #ChatQuick{flex:none}
html:not(.touch) #stage #Chat.combo #ChatLines{display:none!important}
html:not(.touch) #stage #Chat.combo #ComboSug{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;width:auto;font-size:12.5px;line-height:1.25;padding:0 6px}
html:not(.touch) #stage #Chat.combo #ComboSug .cs-agh .dim{display:none}
html:not(.touch) #stage #Chat.combo #ComboSug :is(.cs-cur,.cs-agh){display:inline-block;margin-right:14px}
html:not(.touch) #stage #Chat.combo #ComboSug .cs-g{align-items:center;padding:2px 0}
html:not(.touch) #stage #Chat.combo #ComboSug .cs-k{width:150px;flex:none;display:flex;align-items:center;gap:6px}
html:not(.touch) #stage #Chat.combo #ComboSug .cs-k img{width:24px;height:24px}
html:not(.touch) #stage #Chat.combo #ComboSug .cs-rows{display:flex;flex-wrap:wrap;gap:2px 16px}
html:not(.touch) #stage #Chat.combo #ComboSug .cs-r{display:inline-flex;align-items:center;gap:5px;margin:1px 0}
html:not(.touch) #stage #Chat.combo #ComboSug .cs-p img{width:20px;height:20px}
html:not(.touch) #stage #Chat.combo #ComboSug .cs-r .cw{font-size:12px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not(.touch) #stage #ChatLines{font-size:16px;overflow-y:auto}
/* 15/10: tab Combo gợi ý dùng trọn khung chat (ẩn hàng nút "Tôi gom…" — vẫn có ở tab Kênh chat) để không phải nở khung che đội hình */
html:not(.touch) #stage #Chat.combo #ChatQuick{display:none}
html:not(.touch) #stage #Chat.combo #ChatTabs{margin-bottom:3px}
/* rê chuột vào khung thì mở rộng để đọc hết gợi ý, rời chuột thì thu lại (không che đội hình khi chọn) */
html:not(.touch) #stage #Chat.combo{transition:height .15s ease;z-index:30}
html:not(.touch) #stage #Chat.combo:hover{height:auto;max-height:246px;box-shadow:0 -6px 18px #0008}
html:not(.touch) #stage #Chat.combo:not(:hover) #ComboSug{overflow:hidden}
html:not(.touch) #stage #Chat.combo:not(:hover) #ComboSug::after{content:attr(data-hint);position:absolute;right:14px;top:8px;font-size:11px;color:#8fa7bb;pointer-events:none}
/* ===== 15/10: xem trận — kỹ năng trong diễn biến, giao tranh nổi bật, % thắng, vì sao thắng ===== */
#stage #Match #feed .fa{width:22px;height:22px;border-radius:2px;border:1px solid #c9a46a88;vertical-align:middle;margin-left:2px}
#stage #Match #feed .fa.it{width:28px;border-color:#a48856}
#stage #Match .mt-cast .fa{width:24px;height:24px;vertical-align:middle;border-radius:2px;margin-right:2px;border:1px solid #c9a46a}
#stage #Match .mt-cast .fa.it{width:31px}
#stage #Match #feed>div.play{background:#ffffff06}
#stage #Match #feed>div.play.combo{background:linear-gradient(90deg,#f0c75e22,transparent)}
#stage #Match #feed>div.play.mine{box-shadow:inset 3px 0 0 #f0c75e;background:linear-gradient(90deg,#f0c75e33,transparent)}
#stage #Match #feed>div.hl{border-left-color:#f0c75e!important}
#stage #Match #feed>div.swing.good{color:#9be8a8}
#stage #Match #feed>div.swing.bad{color:#f2a08f}
#stage #Match .mt-cast b.hlb{display:inline-block;padding:0 8px;margin-right:6px;background:#f0c75e;color:#1a1408;border-radius:2px;font-weight:700;letter-spacing:1px}
#stage #Match .mt-cast b.hlb.sw{background:#9fd0ff}
#stage #Match .pfx .pbg{fill:#0b0f15e6;stroke:#c9a46a;stroke-width:.25}
#stage #Match .pfx.R .pbg{stroke:#6cd48f}#stage #Match .pfx.D .pbg{stroke:#e86a59}
#stage #Match .pfx.combo .pbg,#stage #Match .pfx.mine .pbg{stroke:#f0c75e;stroke-width:.5}
#stage #Match .pfx .ph{font:700 3.6px var(--u3-body,sans-serif);fill:#fff}
#stage #Match .pfx{animation:pfxIn 2.6s ease-out forwards}
@keyframes pfxIn{0%{opacity:0;transform:translateY(2px)}12%{opacity:1;transform:none}80%{opacity:1}100%{opacity:0;transform:translateY(-3px)}}
#stage #Match.mt-hl .mt-map{box-shadow:0 0 0 2px #f0c75e,0 0 40px #f0c75e44}
#stage #Match .mt-ffb{display:none;font-size:12px;color:#9fd0ff;letter-spacing:1px;margin-top:-4px}
#stage #Match.mt-ff .mt-ffb{display:block}
#stage #Match #wpTxt{margin-left:6px;font-weight:700}
#stage #Match #wpTxt.ok{color:#6cd48f}#stage #Match #wpTxt.bad{color:#e86a59}
#stage #Match .mt-end .why{margin:22px auto 26px;max-width:760px;text-align:left;background:#0008;border:1px solid #ffffff1a;padding:14px 20px}
#stage #Match .mt-end .why h5{margin:0 0 10px;font:600 15px var(--u3-body,sans-serif);letter-spacing:1px;color:#e8c68c;text-transform:uppercase}
#stage #Match .mt-end .why>div{font-size:18px;line-height:1.5;color:#dfe7ee;margin:6px 0}
#stage #Match .mt-end .why .fa{width:28px;height:28px;vertical-align:middle;margin-right:3px;border:1px solid #c9a46a;border-radius:2px}
#stage #Match .mt-end .why .fa.it{width:36px}
#stage #Match .mt-end .box{padding-top:40px;padding-bottom:40px}
#stage #Match #feed>div.pl-ab{background:#ffffff06}
#stage #Match #feed>div.pl-ab.combo{background:linear-gradient(90deg,#f0c75e22,transparent)}
#stage #Match #feed>div.pl-ab.mine{box-shadow:inset 3px 0 0 #f0c75e;background:linear-gradient(90deg,#f0c75e33,transparent)}
#stage #Match .pfx .ph{font-size:2.8px}
#stage #Summary .u3-why .u3-lesson p{font-size:17px;line-height:1.5;color:#e6edf3;margin:0}
#stage #Summary .u3-why .u3-lesson .fa{width:28px;height:28px;vertical-align:middle;margin-right:4px;border:1px solid #c9a46a;border-radius:2px}
#stage #Summary .u3-why .u3-lesson .fa.it{width:36px}
#stage #Summary .u3-why h3 b.al{color:var(--u3-r,#6cd48f)}#stage #Summary .u3-why h3 b.en{color:var(--u3-d,#e86a59)}
#stage #Summary .u3-why .u3-lesson b.al{color:#9be8a8}#stage #Summary .u3-why .u3-lesson b.en{color:#f2a08f}
/* 16/10: xem hồ sơ người khác */
#stage .ld-row.pf-link{cursor:pointer}
#stage .ld-row.pf-link:hover{background:#ffffff10;outline:1px solid #c9a46a66}
#stage .pf-other-bar{display:flex;align-items:center;gap:14px}
/* 16/10: thẻ riêng cho từng màu gem */
#stage .cos.gemv .gemname{font-size:12px;color:#e8c68c;margin:2px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* (05/11) Candyworks: giá bán dưới tên quà + Immortal Crimson Witness */
#stage#stage#stage#stage .cdy-rw-name small.cdy-sell{margin-top:2px;color:#c9b27a}
#stage#stage#stage#stage .cdy-sell .goldv{font-weight:700;color:#ffd27a;display:inline-flex;align-items:center;gap:3px}
#stage#stage#stage#stage .cdy-sell .goldv svg,#stage#stage#stage#stage .cdy-sell .goldv img{width:15px;height:15px}
#stage#stage#stage#stage .cdy-crim{font:700 12px/1.3 var(--mg-font);font-style:normal;letter-spacing:.06em;text-transform:uppercase;color:#ff6b7d;margin-top:2px}
#stage#stage#stage#stage .cdy-rw.crim .cdy-glow{background:radial-gradient(circle,#d2475b88,#0000 70%)}
#stage#stage#stage#stage .cdy-rw.crim{box-shadow:0 0 0 1px #d2475b99,0 0 22px #d2475b44}
#stage#stage#stage#stage .cdy-crn{color:#ff8a98}
html.touch #stage#stage#stage#stage .cdy-crim{font-size:16px}
