/* Modern gold. User-approved replacement for the old forged button material.
   Presentation only: native layout, cosmetics, state selectors and events remain. */
@font-face{font-family:'AD Jakarta';src:url('assets/fonts/plus-jakarta-sans-variable.ttf') format('truetype');font-style:normal;font-weight:200 800;font-display:swap}
:root{--mg-bg:#101113;--mg-surface:#1a1c20;--mg-raised:#222429;--mg-edge:#34363c;--mg-gold:#dbbc78;--mg-gold-bright:#f0d49a;--mg-gold-dark:#b99551;--mg-text:#f0eeea;--mg-muted:#b8b5ad;--mg-font:'AD Jakarta',sans-serif}
#stage#stage#stage#stage{
  --font:var(--mg-font);--title:var(--mg-font);--font-body:var(--mg-font);--font-display:var(--mg-font);
  --k-display:var(--mg-font);--k-body:var(--mg-font);--k-amber:var(--mg-gold);--k-muted:var(--mg-muted);--k-ink:var(--mg-text);
  --u3-display:var(--mg-font);--u3-body:var(--mg-font);--u3-text:var(--mg-text);--u3-sub:var(--mg-muted);--u3-light:var(--mg-gold);--u3-amber:var(--mg-gold-dark);
  --ui-bg-0:var(--mg-bg);--ui-bg-1:var(--mg-surface);--ui-edge:var(--mg-edge);--ui-muted:var(--mg-muted);--ui-text:var(--mg-text);--ui-gold:var(--mg-gold);
  --k-grain:none;--k-face:linear-gradient(#292b30,#222429);--k-rim:linear-gradient(#484a50,#34363c);
  background:var(--mg-bg);font-family:var(--mg-font);color:var(--mg-text);
}
#stage#stage#stage#stage :is(#Shell,#Lobby,#Shop.fg,#Match,#Summary,#PostChat){
  --u3-display:var(--mg-font);--u3-body:var(--mg-font);--u3-text:var(--mg-text);--u3-sub:var(--mg-muted);--u3-light:var(--mg-gold);--u3-amber:var(--mg-gold-dark);
  --k-display:var(--mg-font);--k-body:var(--mg-font);font-family:var(--mg-font);
}
#stage#stage#stage#stage :is(button,input,select,textarea,.Btn,.PlanTag,.np,.ttl,.medal,.pf2-big b,.sm-title,.report-banner .result,.fg-hi h4,.fg-wr b,.mt-top .clk,.mt-top .sc,.TypeLabel,.sh-brand,.brand){font-family:var(--mg-font);font-stretch:normal;letter-spacing:0}
#stage#stage#stage#stage :is(h2,h3,h4,h5,.sm-title){font-family:var(--mg-font);letter-spacing:-.02em;text-transform:none;line-height:1.4}
#stage#stage#stage#stage :is(.panel-head h3,.pf2-tab h3,.sh-team>h4,.sh-sel .lbl,.sh-shop .lbl){color:var(--mg-gold);letter-spacing:0;text-transform:none}
#stage#stage#stage#stage :is(.dim,.lib-note,.lb-note){color:var(--mg-muted)!important}
#stage#stage#stage#stage :is(.k-btn,.Btn,.lb button,button[data-act],button[data-mt],button[data-pg],button[data-sh],button[data-go],button[data-setpos],button[data-setlane],button[data-move],.pg-quick button,.pg-chips button,.cw-i){
  border:1px solid #42444a;border-radius:9px;background:#25272c;color:var(--mg-text);
  box-shadow:0 3px 9px #0003;filter:none;backdrop-filter:none;clip-path:none;
  font-family:var(--mg-font);font-weight:600;letter-spacing:0;text-transform:none;
}
#stage#stage#stage#stage :is(.Btn,.lb button,button[data-act],button[data-mt],button[data-pg],button[data-sh],button[data-go])::after{background:linear-gradient(105deg,transparent 35%,#fff2 49%,transparent 63%);border-radius:inherit}
#stage#stage#stage#stage :is(.Btn.green,.btn-primary,.k-btn.primary,button[data-act="new"],button[data-mt].on){
  color:#211b10;background:linear-gradient(115deg,#f0d49a,#c7a560);border-color:#ead29b;box-shadow:0 6px 18px #0004,inset 0 1px #fff5;
}
#stage#stage#stage#stage :is(.k-btn.rune,button[data-act="refAll"]){color:#bfe8ee;background:#1a3036;border-color:#46656d;box-shadow:0 3px 9px #0003}
#stage#stage#stage#stage :is(.Btn.red,.k-btn.danger,button[data-sh="delAcc"]){color:#ffc6bc;background:#39272b;border-color:#69454a}
#stage#stage#stage#stage :is(.k-btn.ghost,.btn-ghost,.sm-actions button:not([data-act="new"])){color:var(--mg-muted);background:#1b1d21;border-color:#37393f;box-shadow:none}
#stage#stage#stage#stage :is(.k-cta,button.play.btn-primary,button[data-act="toMatch"],button[data-act="lockPos"]){
  isolation:isolate;border:1px solid #ead29b;border-radius:11px;clip-path:none;filter:none;
  color:#211b10;background:linear-gradient(110deg,#efd398,#d7b46b);box-shadow:0 8px 24px #0005,inset 0 1px #fff7;
  padding:14px 24px;overflow:hidden;letter-spacing:0;font-weight:700;
}
#stage#stage#stage#stage :is(.k-cta,button.play.btn-primary,button[data-act="toMatch"],button[data-act="lockPos"])::before{display:none}
#stage#stage#stage#stage :is(.k-cta,button.play.btn-primary,button[data-act="toMatch"],button[data-act="lockPos"])::after{animation:none;opacity:0}
#stage#stage#stage#stage :is(.k-panel,.panel,.pf-card,.sh-team,.sh-sel,.sh-shop,.mt-team,.mt-feed,.mt-bot,.sm-wrap,.lib-box,.lb,.cl-box,.lg-panel,#PostChat.show){
  border:1px solid #383a40;border-radius:13px;clip-path:none;
  background:linear-gradient(135deg,#202227,#181a1e);box-shadow:0 8px 24px #0004;
}
#stage#stage#stage#stage :is(.sh-sel,.panel-emphasis){border-color:#766442;background:linear-gradient(135deg,#292722,#1b1d21);box-shadow:0 9px 28px #0005}
#stage#stage#stage#stage :is(.k-panel,.sh-team,.sh-sel,.sh-shop)::before,
#stage#stage#stage#stage :is(.k-panel,.sh-team,.sh-sel,.sh-shop)::after{display:none}
#stage#stage#stage#stage #PostChat.show::before{display:none}
#stage#stage#stage#stage :is(.stabs,.sm-tabs,.lb-opt,.tabs,.lg-lang){background:#141519;border:1px solid #32343a;border-radius:11px;gap:5px;padding:5px;box-shadow:none}
#stage#stage#stage#stage :is([data-stab],[data-smtab],[data-lib],[data-pft],.tabs button){font-family:var(--mg-font);background:transparent;border:0;border-radius:7px;box-shadow:none;color:var(--mg-muted);letter-spacing:0}
#stage#stage#stage#stage :is([data-stab].on,[data-smtab].on,[data-lib].on,[data-pft].on,.tabs button.on){color:var(--mg-gold-bright);background:#343029;box-shadow:inset 0 0 0 1px #7b6742}
#stage#stage#stage#stage :is(button,.Btn,.Tile):focus-visible{outline:3px solid var(--mg-gold-bright);outline-offset:4px}
#stage#stage#stage#stage :is(button,.Btn):disabled{color:#b8b5ad;background:#25272c;border-color:#3d3f45;box-shadow:none;filter:none;opacity:1}
@media(hover:hover){
  #stage#stage#stage#stage :is(.Btn,.lb button,button[data-act],button[data-mt],button[data-pg],button[data-sh],button[data-go]):hover:not(:disabled){border-color:#9d865e;box-shadow:0 5px 14px #0004;filter:none}
  #stage#stage#stage#stage :is(.k-cta,button.play.btn-primary,button[data-act="toMatch"],button[data-act="lockPos"]):hover::after{animation:k-sheen 420ms ease-out}
}
/* One continuous navigation rail, independent from the action-button language. */
#stage#stage#stage#stage .ui-topbar{height:100px;padding:0 96px 0 28px;gap:24px;background:#151619;border:0;border-bottom:1px solid #5f5135;box-shadow:0 5px 20px #0004}
#stage#stage#stage#stage .ui-brand{min-width:210px;gap:12px}
#stage#stage#stage#stage .ui-brand .brand{font:700 18px/1.35 var(--mg-font);letter-spacing:-.02em;color:var(--mg-text)}
#stage#stage#stage#stage .ui-brand small{display:none}
#stage#stage#stage#stage .ui-brand img{width:38px;height:44px}
#stage#stage#stage#stage .ui-topbar .nav{gap:2px;background:none;border:0;box-shadow:none;padding:0;height:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
#stage#stage#stage#stage .ui-topbar .nav button{
  flex:none;height:64px;min-height:64px;padding:0 12px;font:600 17px/1.4 var(--mg-font);gap:8px;
  color:var(--mg-muted);border:0;border-radius:8px;background:transparent;box-shadow:none;clip-path:none;filter:none;position:relative;
}
#stage#stage#stage#stage .ui-topbar .nav button.on{color:var(--mg-gold-bright);background:#dbbc7812;box-shadow:none}
#stage#stage#stage#stage .ui-topbar .nav button.on::before{content:'';position:absolute;left:16px;right:16px;bottom:0;height:2px;background:var(--mg-gold);border-radius:2px}
#stage#stage#stage#stage .ui-topbar .nav button::after{display:none}
#stage#stage#stage#stage .ui-topbar .nav button:hover{color:var(--mg-text);background:#ffffff08;border:0;box-shadow:none}
#stage#stage#stage#stage .ui-topbar .nav .ui-icon{width:20px;height:20px;flex:none}
#stage#stage#stage#stage .ui-topbar .nav .badge{top:4px;right:4px;width:18px;height:18px;border-radius:5px;font:700 11px/1 var(--mg-font);background:#927a44;color:#fff4da}
#stage#stage#stage#stage .ui-topbar .nav .ui-logout{width:46px;min-width:46px;padding:0;justify-content:center;margin-left:auto}
#stage#stage#stage#stage .ui-account-chips{gap:10px;flex:none}
#stage#stage#stage#stage :is(.ui-wallet,.ui-plus-chip){min-height:54px;padding:9px 12px;gap:8px;border:1px solid #494334;border-radius:9px;background:#22221e;box-shadow:none;color:var(--mg-gold-bright)}
#stage#stage#stage#stage .ui-wallet{font-size:18px}
#stage#stage#stage#stage .ui-plus-chip span{font:600 15px/1.5 var(--mg-font)}
#stage#stage#stage#stage .ui-plus-chip small{font-size:12px;color:var(--mg-muted)}
#stage#stage#stage#stage .ui-topbar .me{width:260px;height:62px;padding:6px 10px;gap:12px;border:1px solid #393a40;border-radius:10px;background:#202126;box-shadow:none}
#stage#stage#stage#stage .ui-topbar .me .n{font:600 17px/1.5 var(--mg-font)}
#stage#stage#stage#stage .ui-topbar .me>div:not(.av){min-width:0;flex:1}
#stage#stage#stage#stage .ui-topbar .me .n{display:flex;align-items:center;gap:5px;min-width:0;max-width:none}
#stage#stage#stage#stage .ui-topbar .me .n .np{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#stage#stage#stage#stage .ui-topbar .me .adm{flex:none;font-size:10px;padding:3px 5px}
#stage#stage#stage#stage .ui-topbar .me :is(.lv,.mmr){font-size:12px;color:var(--mg-muted)}
/* Primary play area: breathing room, clean gold action, quieter secondaries. */
#stage#stage#stage#stage .ui-lobby-bg{background:linear-gradient(90deg,#101113c9,#10111366 50%,#101113c9),linear-gradient(0deg,#101113df,transparent 70%),url(assets/ui/v2/lobby-backdrop.jpg) center/cover}
#stage#stage#stage#stage .ui-lobby-grid{top:130px;gap:24px}
#stage#stage#stage#stage .ui-lobby-center{background:transparent;border:0;padding:24px 26px}
#stage#stage#stage#stage .ui-display-kicker{display:none}
#stage#stage#stage#stage .ui-hero-showcase{padding:7px 7px 0;border:1px solid #8d754a;border-radius:16px;background:#252621;box-shadow:0 18px 38px #0007}
#stage#stage#stage#stage .ui-hero-showcase .pcard{border:0;border-radius:10px;overflow:hidden}
#stage#stage#stage#stage .ui-showcase-name{margin:0 -20px -20px;padding:20px;border:1px solid #4b4538;border-radius:11px;background:#202126;clip-path:none;box-shadow:0 7px 20px #0005}
#stage#stage#stage#stage .ui-showcase-name h2{font:700 27px/1.4 var(--mg-font);letter-spacing:-.02em}
#stage#stage#stage#stage .ui-rank-medallion{margin-top:30px}
#stage#stage#stage#stage .ui-play-group{width:570px;margin-top:22px}
#stage#stage#stage#stage .ui-mode-label{margin-bottom:16px;gap:16px}
#stage#stage#stage#stage .ui-mode-label button{font:500 15px/1.4 var(--mg-font);padding:8px 12px;min-height:42px;color:var(--mg-muted);background:#1a1c20;border-color:#3d3e44;box-shadow:none}
#stage#stage#stage#stage .ui-play-group .play{height:78px!important;min-height:78px;padding:16px 24px;gap:16px;border-radius:11px}
#stage#stage#stage#stage .ui-play-group .play span{font:700 23px/1.5 var(--mg-font);letter-spacing:0}
#stage#stage#stage#stage .ui-play-group .play>.ui-icon:first-child{width:24px;height:24px}
#stage#stage#stage#stage .ui-play-group .play>.ui-icon:last-child{margin-left:auto;width:24px;height:24px}
#stage#stage#stage#stage .ui-secondary-play{gap:12px;margin-top:14px}
#stage#stage#stage#stage .ui-secondary-play button{min-height:52px;padding:12px 16px;background:#1f2126;border:1px solid #494640;color:#ded3bb;font:600 16px/1.5 var(--mg-font);box-shadow:none}
#stage#stage#stage#stage .ui-lobby-center .tipbox{margin-top:22px;padding:14px 4px;background:none;border:0;color:var(--mg-muted);font:400 14px/1.7 var(--mg-font)}
#stage#stage#stage#stage .ui-mmr-panel{margin-top:22px;padding:18px!important}
#stage#stage#stage#stage .panel-head h3{font:600 18px/1.5 var(--mg-font);color:var(--mg-gold);letter-spacing:0}
#stage#stage#stage#stage .panel-head>button{background:transparent;border:0;box-shadow:none;padding:8px;color:var(--mg-muted);font:500 13px/1.4 var(--mg-font)}
/* Profile: artwork stays equipped; statistics get a calm, legible foreground. */
#stage#stage#stage#stage .pf-body{top:130px;left:28px;right:28px;padding:0;border:0;background:none}
#stage#stage#stage#stage #Shell{background:var(--mg-bg)}
#stage#stage#stage#stage #Summary .sm-actions{width:100%;max-width:none;background:#191b1f;border-top-color:#554a35}
#stage#stage#stage#stage #Summary .report-banner{border-radius:12px;clip-path:none}
#stage#stage#stage#stage #Summary .u3-stat{background:#222429;border:1px solid #363a40;border-radius:9px;box-shadow:none}
#stage#stage#stage#stage #Summary .u3-stat:first-child{background:#1b3036;border-color:#42606a;box-shadow:none}
#stage#stage#stage#stage #Shop .fb-h b{font-size:26px;line-height:1.4;white-space:nowrap}
#stage#stage#stage#stage #Shop .fg-wr b{font-size:34px;line-height:1.4;white-space:nowrap}
#stage#stage#stage#stage .pf2-head{min-height:245px;padding:30px 34px;gap:30px;border:1px solid #65563a;border-radius:16px;overflow:hidden;box-shadow:0 10px 32px #0005;background-color:#191b1f}
#stage#stage#stage#stage .pf2-head:not(.has-bg){background:linear-gradient(90deg,#17191def,#17191de3 45%,#17191d8c),url(assets/ui/v2/lobby-backdrop.jpg) center 35%/cover}
#stage#stage#stage#stage .pf2-id h2{font:700 34px/1.5 var(--mg-font);letter-spacing:-.02em}
#stage#stage#stage#stage .pf2-id .dim{font:400 16px/1.7 var(--mg-font);color:#d1cec5!important}
#stage#stage#stage#stage .pf2-g{font:500 16px/1.7 var(--mg-font);margin-top:4px}
#stage#stage#stage#stage .pf2-big{padding:24px;gap:26px;align-self:center;background:#17191de6;border:1px solid #76644266;border-radius:12px;box-shadow:0 6px 20px #0004}
#stage#stage#stage#stage .pf2-big b{font:700 38px/1.4 var(--mg-font);color:var(--mg-gold-bright);letter-spacing:-.02em}
#stage#stage#stage#stage .pf2-big b.ok{color:#a2d4b7}
#stage#stage#stage#stage .pf2-big b.bad{color:#eeb3a8}
#stage#stage#stage#stage .pf2-big span{font:500 13px/1.5 var(--mg-font);text-transform:none;color:#cdc5b5;white-space:nowrap}
#stage#stage#stage#stage .pf-body>.tabs{width:max-content;max-width:100%;margin:22px 0;gap:5px}
#stage#stage#stage#stage .pf-body>.tabs button{padding:10px 18px;min-height:48px;font:600 15px/1.5 var(--mg-font)}
#stage#stage#stage#stage .pf-grid{gap:20px}
#stage#stage#stage#stage .pf-card{padding:24px;min-width:0;background:linear-gradient(135deg,#222429,#1a1c20);border-color:#393b41;border-radius:13px;clip-path:none;box-shadow:0 8px 24px #0003}
#stage#stage#stage#stage .pf-card h3{font:600 18px/1.5 var(--mg-font);color:var(--mg-gold);margin:0 0 20px;letter-spacing:0}
#stage#stage#stage#stage .pf-card h3:not(:first-child){margin-top:24px}
#stage#stage#stage#stage .pf-card :is(.kv,.wlb,.pr){font:400 15px/1.6 var(--mg-font);color:#dedbd3}
#stage#stage#stage#stage .pf-card :is(.kv b,.wlb b,.wlb em){font-family:var(--mg-font);font-weight:600}
#stage#stage#stage#stage .pf-card .kv{padding:8px 0;border-bottom:1px solid #3c3d43}
#stage#stage#stage#stage .pf-card .wlb{margin:10px 0;column-gap:12px}
#stage#stage#stage#stage .pf-card .wlb i{border-radius:3px;background:#373235}
#stage#stage#stage#stage .pf-card .wlb i b{border-radius:3px}
#stage#stage#stage#stage .pf-card .rk-row button{background:#202227;border:1px solid #393b41;border-radius:8px;padding:12px;font-family:var(--mg-font)}
#stage#stage#stage#stage .pf-card .rk-row button.on{border-color:#a98b51;background:#373126}
#stage#stage#stage#stage #Shell.show~#AudioBtn{position:absolute;top:24px;right:24px;bottom:auto;width:52px;height:52px;min-width:52px;min-height:52px;background:#222429;border:1px solid #45423a;border-radius:9px;box-shadow:none;font-size:20px;color:var(--mg-gold-bright)}
html.touch #stage#stage#stage#stage :is(button,.Btn,.cw-i){min-height:64px;min-width:64px;font-size:24px}
html.touch #stage#stage#stage#stage .ui-topbar{height:126px;gap:18px}
html.touch #stage#stage#stage#stage #Shell.show~#AudioBtn{top:31px;width:64px;height:64px;min-width:64px;min-height:64px}
html.touch #stage#stage#stage#stage .ui-brand{min-width:220px}
html.touch #stage#stage#stage#stage .ui-brand .brand{font-size:20px}
html.touch #stage#stage#stage#stage .ui-topbar .nav button{font-size:23px;padding:0 12px;min-height:78px;height:78px}
html.touch #stage#stage#stage#stage .ui-topbar .nav .ui-icon{width:24px;height:24px}
html.touch #stage#stage#stage#stage .ui-topbar .nav .badge{font-size:20px;width:27px;height:27px}
html.touch #stage#stage#stage#stage .ui-topbar .me{width:300px;height:80px}
html.touch #stage#stage#stage#stage .ui-topbar .me :is(.n,.lv,.mmr),html.touch #stage#stage#stage#stage .ui-plus-chip :is(span,small){font-size:20px}
html.touch #stage#stage#stage#stage .ui-topbar .me .adm{font-size:20px}
html.touch #stage#stage#stage#stage .ui-wallet{font-size:24px}
html.touch #stage#stage#stage#stage .ui-lobby-grid{top:152px}
html.touch #stage#stage#stage#stage :is(.ui-display-kicker,.ui-mode-label button,.ui-secondary-play button,.panel-head>button,.panel-head h3){font-size:20px}
html.touch #stage#stage#stage#stage .ui-play-group .play{height:88px!important;min-height:88px}
html.touch #stage#stage#stage#stage .ui-play-group .play span{font-size:28px}
html.touch #stage#stage#stage#stage .pf-body{top:152px}
html.touch #stage#stage#stage#stage .pf2-head{padding:30px;min-height:255px}
html.touch #stage#stage#stage#stage .pf2-id h2{font-size:38px}
html.touch #stage#stage#stage#stage .pf2-id :is(.dim,.pf2-g),html.touch #stage#stage#stage#stage .pf2-big span{font-size:20px}
html.touch #stage#stage#stage#stage .pf2-big{gap:22px;padding:24px}
html.touch #stage#stage#stage#stage .pf2-big b{font-size:42px}
html.touch #stage#stage#stage#stage .pf-body>.tabs button{font-size:22px;min-height:64px}
html.touch #stage#stage#stage#stage .pf-card h3{font-size:25px}
html.touch #stage#stage#stage#stage #Shop .fb-h b{font-size:30px}
html.touch #stage#stage#stage#stage #Shop .fg-wr b{font-size:42px}
html.touch #stage#stage#stage#stage .pf-card :is(.kv,.wlb,.pr,.wlb .l,.wlb em,.kv b,.pr em,.pr b){font-size:20px;line-height:1.6}
html.touch #stage#stage#stage#stage .pf2-tab :is(.dim,.pa b,.pa em,.rk-row button span){font-size:20px}
html.touch #stage#stage#stage#stage .l20{display:flex;flex-wrap:wrap;gap:5px}
html.touch #stage#stage#stage#stage .l20 i{display:grid;place-items:center;width:28px;height:28px;font:700 20px/1.4 var(--mg-font)}
@media(prefers-reduced-motion:reduce){#stage#stage#stage#stage *,#stage#stage#stage#stage *::before,#stage#stage#stage#stage *::after{animation:none!important;transition:none!important}}

/* Claude 13/10 — trạng thái ĐANG CHỌN (.on) bị quy tắc nút chung ở trên che mất (thiết lập trận 7s/Hitter/Skiller, vị trí, lane, tốc độ trận…) */
#stage#stage#stage#stage :is(.k-btn,.Btn,.lb button,button[data-act],button[data-mt],button[data-pg],button[data-sh],button[data-go],button[data-setpos],button[data-setlane],button[data-move],.pg-quick button,.pg-chips button,.cw-i):is(.on,.sel,[aria-pressed="true"]){
  color:var(--mg-gold-bright);background:linear-gradient(180deg,#463c2a,#2c271f);border-color:var(--mg-gold);
  box-shadow:inset 0 0 0 1px #dbbc7880,0 0 0 1px #dbbc7833,0 4px 14px #dbbc7826;
}
#stage#stage#stage#stage .lb button:is(.on,.sel) :is(b,strong,em,small,span){color:inherit}
/* Claude 13/10 — khung tạo/chọn tài khoản: kit đặt position:relative làm khung trôi sang trái, đè thẻ tướng → trả về absolute như bố cục gốc */
#stage#stage#stage#stage .lg-panel{position:absolute}
#stage#stage#stage#stage .lg-hero .pcard .pc-v{left:0;top:0;width:100%;height:100%;-webkit-mask-image:none;mask-image:none}
#stage#stage#stage#stage .lg-lang button[data-lang].on{color:var(--mg-gold-bright);background:linear-gradient(180deg,#463c2a,#2c271f);border-color:var(--mg-gold);box-shadow:inset 0 0 0 1px #dbbc7880,0 0 0 1px #dbbc7833}
/* (16/10) admin: ô nhập vàng / kim cương */
#stage .ui-account-chips{position:relative}
#stage .ui-add[data-adm]{cursor:pointer;outline:1px dashed #e4ae3988;border-radius:4px}
#stage .adm-pop{position:absolute;top:calc(100% + 8px);left:0;z-index:60;width:300px;padding:14px;background:#11161dF2;border:1px solid #e4ae3966;border-radius:10px;box-shadow:0 12px 34px #000a;display:flex;flex-direction:column;gap:10px}
#stage .adm-pop .adm-h{display:flex;align-items:center;gap:8px}#stage .adm-pop .adm-h b{flex:1;font-size:14px;color:#ffe08a}
#stage .adm-pop input{width:100%;font-size:18px;padding:8px 10px;background:#0b0f14;border:1px solid #2a3442;color:#fff;border-radius:6px}
#stage .adm-pop .adm-pre{display:flex;flex-wrap:wrap;gap:6px}#stage .adm-pop .adm-b{display:flex;gap:8px}#stage .adm-pop .adm-b .Btn{flex:1}
/* (16/10) mở nhanh nhiều rương: bảng kết quả */
#stage .ch-bulk span{color:#c9a6ef}
#stage .bulk-box{width:980px;max-width:94%;max-height:940px;display:flex;flex-direction:column;gap:12px}
#stage .bk-sum{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;font-size:14px}
#stage .bk-sum span{display:inline-flex;align-items:center;gap:6px}#stage .bk-sum span i{width:10px;height:10px;border-radius:2px;background:var(--rc)}
#stage .bk-sum .bk-tot{margin-left:auto;color:#ffe08a}
#stage .bk-wrap{overflow:auto;flex:1;min-height:160px;border:1px solid #2a3442;border-radius:8px}
#stage .bk-tab{width:100%;border-collapse:collapse;font-size:14px;text-align:left}#stage .bk-tab td{text-align:left}#stage .bk-tab th:nth-child(4),#stage .bk-tab th:nth-child(5){text-align:right}
#stage .bk-tab th{position:sticky;top:0;background:#151b23;text-align:left;padding:8px;font-weight:600;color:#9fb0c3;z-index:1}
#stage .bk-tab td{padding:6px 8px;border-top:1px solid #1d2530;vertical-align:middle}
#stage .bk-tab td small{display:block;color:#8a99ab;font-size:12px}
#stage .bk-tab td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#stage .bk-tab .bk-img{width:64px}#stage .bk-tab .bk-img img{width:56px;height:38px;object-fit:cover;border-radius:4px;display:block}
#stage .bk-tab tr.r5 td:first-child,#stage .bk-tab tr.r6 td:first-child{box-shadow:inset 3px 0 0 #e4ae39}
#stage .bk-tab em.new{font-style:normal;font-size:11px;color:#7bd96a;font-weight:700}
/* (16/10) lối vào minigame Invoker ở Sảnh */
#stage .ui-minigame{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:12px;text-decoration:none;color:inherit;border:1px solid #6b4fa055;background:linear-gradient(100deg,#1d1530e6,#11161de6);transition:border-color .15s}
#stage .ui-minigame:hover{border-color:#c77dff}
#stage .ui-minigame img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid #d9a441;flex:none}
#stage .ui-minigame div{flex:1;min-width:0}#stage .ui-minigame b{display:block;font-family:'FG Display';font-size:17px;color:#ffe08a}#stage .ui-minigame span{font-size:13px;color:#a9b6c5}
#stage .ui-minigame .mg-orbs{display:flex;gap:4px}#stage .ui-minigame .mg-orbs u{width:12px;height:12px;border-radius:50%;background:#5ec8ff;box-shadow:0 0 8px #5ec8ff}
#stage .ui-minigame .mg-orbs u:nth-child(2){background:#c77dff;box-shadow:0 0 8px #c77dff}#stage .ui-minigame .mg-orbs u:nth-child(3){background:#ffa443;box-shadow:0 0 8px #ffa443}
/* (16/10) khoá đồ */
#stage .cos.locked{box-shadow:inset 0 0 0 2px #e4ae39aa}
#stage .mini.lk{min-width:30px;padding-inline:6px}#stage .mini.lk.on,#stage .Btn.lk.on{border-color:#e4ae39;color:#ffe08a}
/* (16/10) trưng bày tối đa 30 món: ô nhỏ gọn */
#stage .pf2-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;margin-top:8px}
#stage .pf2-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 4px 6px;background:#0d1218;border:1px solid #243041;border-radius:8px;min-width:0;text-align:center;color:inherit;font:inherit}
#stage .pf2-tile img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:5px;background:radial-gradient(70% 70% at 50% 60%,color-mix(in srgb,var(--rc,#4b69ff) 35%,transparent),#0000)}
#stage .pf2-tile span{display:block;width:100%;font-size:11px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#stage .pf2-tile em{font-style:normal;font-size:10px;color:#e4ae39}
#stage .pf2-tile i{position:absolute;top:7px;right:7px;width:8px;height:8px;transform:rotate(45deg);background:var(--gc);box-shadow:0 0 6px var(--gc)}
#stage .pf2-tile.r1{--rc:#5e98d9}#stage .pf2-tile.r2{--rc:#4b69ff}#stage .pf2-tile.r3{--rc:#8847ff}#stage .pf2-tile.r4{--rc:#d32ce6}#stage .pf2-tile.r5{--rc:#e4ae39}#stage .pf2-tile.r6{--rc:#ade55c}
#stage .pf2-tile{box-shadow:inset 0 -2px 0 var(--rc,#4b69ff)}#stage .pf2-tile.unu{background:linear-gradient(180deg,#1d1530,#0d1218)}
#stage .pf2-tiles.pick .pf2-tile{cursor:pointer}#stage .pf2-tiles.pick .pf2-tile.on{border-color:#ffe08a;box-shadow:0 0 0 1px #ffe08a,inset 0 -2px 0 var(--rc)}
#stage .pf2-tile b{position:absolute;top:4px;left:6px;color:#ffe08a;font-size:14px}
#stage .sw-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center}#stage .sw-top h3{margin:0;flex:1}#stage .sw-top input{min-width:220px}
html.touch #stage .pf2-tiles{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}html.touch #stage .pf2-tile span{font-size:18px}
/* (17/10) Bộ sưu tập: bộ lọc loại/tướng/xếp + chọn nhiều để bán hàng loạt */
#stage .co-filt{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
#stage .co-ty{display:flex;flex-wrap:wrap;gap:4px}
#stage .co-ty button{background:#121923;border:1px solid #2a3646;color:#b9c4d2;padding:5px 10px;border-radius:999px;font:inherit;font-size:13px;cursor:pointer}
#stage .co-ty button.on{background:#2b2214;border-color:#e4ae39;color:#ffd68a}
#stage .co-filt select{background:#0e141c;border:1px solid #2a3646;color:#dfe6ee;padding:6px 8px;border-radius:6px;font:inherit;font-size:13px;max-width:200px}
#stage .co-cnt{font-size:12px}
#stage .co-selbtn{margin-left:auto}
#stage .co-selbtn.on{border-color:#5fb3ff;color:#bfe0ff}
#stage .co-selbar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;margin:0 0 12px;background:#0f1a26ee;border:1px solid #2f5f8a;border-radius:8px;backdrop-filter:blur(4px)}
#stage .co-selbar .co-warn{color:#ffb4a8;font-weight:600}
#stage .co-selnote{margin-left:auto;font-size:12px}
#stage .co-grid.selm .cos{cursor:pointer}
#stage .co-pick{position:absolute;inset:0;z-index:3;background:transparent;border:0;padding:0;cursor:pointer;display:flex;align-items:flex-start;justify-content:flex-end}
#stage .co-pick i{margin:6px;width:24px;height:24px;border-radius:6px;border:2px solid #9fb0c4;background:#0b1118cc;color:#fff;font-style:normal;font-weight:800;display:flex;align-items:center;justify-content:center}
#stage .co-pick.on i{background:#2f8cff;border-color:#8cc4ff}
#stage .co-pick.lockd{position:absolute;inset:0;z-index:3;background:#0008;display:flex;align-items:center;justify-content:center;font-size:26px;cursor:not-allowed}
#stage .cos.picked{outline:2px solid #2f8cff;outline-offset:1px}
/* (22/10) đánh giá pick cuối trận */
.pick-verdict{margin:10px 0 12px;padding:10px 14px;border-radius:8px;border:1px solid #33465c;background:#101823;color:#dfe7f0;font-size:15px;line-height:1.5}
.pick-verdict.good{border-color:#3f8a55;background:#0f1d14}
.pick-verdict.bad{border-color:#8a3f3f;background:#1d1010}
.pick-verdict b{color:#fff}
/* (27/10) huấn luyện viên sau trận */
#stage .coach{display:flex;flex-direction:column;gap:14px;padding:6px 2px 10px;font-size:16px}
#stage .coach .co-head h3{margin:0 0 4px;font:700 26px var(--font);color:#f0d49a}
#stage .coach .co-head p{margin:0;color:#c3ccd8}
#stage .co-tab{width:100%;border-collapse:collapse}
#stage .co-tab th{text-align:left;padding:8px 10px;color:#9fb0c3;font-weight:600;border-bottom:1px solid #2a3442}
#stage .co-tab td{padding:8px 10px;border-top:1px solid #1d2530;vertical-align:middle}
#stage .co-tab td.num{text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
#stage .co-tab td small{display:block;font-size:12px;margin-top:2px}
#stage .co-n{width:64px;font-weight:700;color:#fff}
#stage .co-it{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
#stage .co-it img{width:38px;height:38px;border-radius:4px;object-fit:cover}
#stage .co-it .co-h{width:56px;height:32px}
#stage .co-rnd{display:block;font-style:normal;font-size:12px;color:#e0a458}
#stage .co-g{display:inline-block;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:700;background:#26303c;color:#c3ccd8}
#stage .co-opt .co-g{background:#1f4d2e;color:#8ee59f}#stage .co-good .co-g{background:#23413f;color:#8fd9cf}
#stage .co-ok .co-g{background:#4a3d1c;color:#f0cf7a}#stage .co-bad .co-g{background:#5a2328;color:#ff9a9a}
#stage .co-bad td.num{color:#ff9a9a}#stage .co-ok td.num{color:#f0cf7a}
#stage .co-deep{padding:10px 14px;border-radius:8px;background:#141b24;border:1px solid #2a3442;color:#d6dde6}
#stage .co-miss h4{margin:4px 0 8px;font-size:18px;color:#f0d49a}
#stage .co-m{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 0;border-top:1px solid #1d2530}
#stage .co-m small{flex-basis:100%;color:#8a99ab;font-size:13px}
#stage .co-note{font-size:13px;line-height:1.5}
#stage .sk-story{display:block;font-size:13px;line-height:1.35;text-align:center}
/* (28/10) số trận MVP ở Sự nghiệp (sảnh) và Hồ sơ */
#stage .ui-career-stats{grid-template-columns:repeat(4,1fr)}
#stage .ui-career-stats .mvp b,#stage#stage#stage#stage .pf2-big .mvp b{color:#f5c542;text-shadow:0 0 14px #f5c54255}
#stage .ui-career-stats .mvp b::before,#stage .pf2-big .mvp b::before{content:'★';font-size:.62em;margin-right:4px;vertical-align:.18em;color:#f5c542}

/* ===== (02/11) Trận: bảng COMBO!/RAMPAGE/ACE giữa bản đồ, bình luận viên 3 giọng, chat AI ===== */
#Match .mt-map{overflow:hidden}
#Match .mt-call{position:absolute;left:50%;top:8%;z-index:6;min-width:46%;padding:14px 28px 12px;border-radius:16px;text-align:center;pointer-events:none;opacity:0;transform:translate(-50%,-10px) scale(.6);background:radial-gradient(ellipse at center,#0b1017f0 0%,#0b1017c8 62%,#0b101700 100%)}
#Match .mt-call.show{animation:mtCall 2.4s cubic-bezier(.2,1.4,.4,1) forwards}
@keyframes mtCall{0%{opacity:0;transform:translate(-50%,-10px) scale(.55)}12%{opacity:1;transform:translate(-50%,0) scale(1.08)}20%{transform:translate(-50%,0) scale(1)}82%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-14px) scale(.96)}}
#Match .mt-call .ck{font:900 46px/1 Georgia,'Times New Roman',serif;letter-spacing:3px;color:#fff3c4;text-shadow:0 0 18px #f0b23aaa,0 3px 0 #6b3f0a,0 0 2px #000}
#Match .mt-call.yt .ck{color:#ffe1dc;text-shadow:0 0 18px #ff3b2eaa,0 3px 0 #6b0f0a}
#Match .mt-call.mk .ck{color:#ffd6c6;text-shadow:0 0 22px #ff4a1caa,0 3px 0 #5a1306}
#Match .mt-call.mk5 .ck{font-size:60px;color:#fff;text-shadow:0 0 28px #ff2a1c,0 0 8px #ff8a1c,0 4px 0 #5a0606}
#Match .mt-call.ace .ck{color:#dceeff;text-shadow:0 0 22px #4aa8ffaa,0 3px 0 #0c2c55}
#Match .mt-call.mine{box-shadow:inset 0 0 0 2px #e9c46a99}
#Match .mt-call .cr{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px}
#Match .mt-call .cr img.hh{width:56px;height:74px;object-fit:cover;border:2px solid #6cd48f;border-radius:4px}
#Match .mt-call.D .cr img.hh{border-color:#e86a59}
#Match .mt-call .cr img.ab{width:56px;height:56px;border:2px solid #e9c46a;border-radius:6px;box-shadow:0 0 14px #e9c46a66}
#Match .mt-call .cr span{font:900 26px/1 sans-serif;color:#e9c46a}
#Match .mt-call .cr b{margin-left:6px;padding:5px 10px;border-radius:999px;background:#e9c46a;color:#1a1408;font:800 16px/1 sans-serif}
#Match .mt-call .cn{margin-top:8px;font:600 16px/1.25 sans-serif;color:#e8edf2;text-shadow:0 1px 2px #000}
#Match .mt-caster{position:absolute;left:8px;right:8px;bottom:8px;z-index:5;display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 8px 6px 10px;border:1px solid #c9a46a66;border-radius:10px;background:#0b1118e0;font:500 15px/1.35 sans-serif;color:#eef2f5}
#Match .mt-caster .mic{font-style:normal;font-size:18px}
#Match .mt-caster .ctxt{flex:1;min-width:0}
#Match .mt-caster.pop .ctxt{animation:mtLineIn .45s ease-out}
@keyframes mtLineIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
#Match .mt-caster .cv{display:flex;flex:none;gap:3px}
#Match .mt-caster .cv button{padding:5px 7px;border:1px solid #ffffff22;border-radius:6px;background:#ffffff0d;color:#aab6c2;font:600 11px/1 sans-serif;cursor:pointer}
#Match .mt-caster .cv button.on{border-color:#e9c46a;background:#e9c46a;color:#1a1408}
#Match .mt-caster .cv .chatb{margin-left:4px;font-size:13px;opacity:.45;background:none}
#Match .mt-caster .cv .chatb.on{opacity:1;background:#ffffff14;color:#fff;border-color:#ffffff33}
#Match.mt-nocast .mt-caster .mic,#Match.mt-nocast .mt-caster .ctxt{opacity:.3}
#Match .mt-caster b.al,#Match .mt-chat b.al{color:#7fe0a0}
#Match .mt-caster b.en,#Match .mt-chat b.en{color:#ff8a78}
#Match .mt-chat{position:absolute;left:10px;bottom:60px;z-index:5;display:flex;flex-direction:column;gap:2px;width:60%;pointer-events:none}
#Match .mt-chat .cl{align-self:flex-start;max-width:100%;padding:2px 8px;border-radius:5px;background:#05080bb8;font:500 15px/1.35 sans-serif;color:#f4f4f4;text-shadow:0 1px 2px #000;transition:opacity 2s;animation:mtLineIn .3s}
#Match .mt-chat .cl i{font-style:normal;color:#c9d3dc}
#Match .mt-chat .cl.tm i{color:#7fd4ff}
#Match .mt-chat .cl.old{opacity:0}
#Match .mkb{display:inline-block;margin-right:4px;padding:0 5px;border-radius:3px;background:#e9c46a;color:#1a1408;font:800 10px/16px sans-serif;letter-spacing:.5px;vertical-align:middle}
#Match .mkb.mk4,#Match .mkb.mk5{background:#ff5a2a;color:#fff}
#Match .mkb.ace{background:#4aa8ff;color:#fff}
#Match .mkb.sd{background:#a06bff;color:#fff}

/* ===== (02/11) Báo cáo: thẻ "Pha của trận" ===== */
.u3-play{margin:14px 0;padding:14px;border:1px solid #c9a46a55;border-radius:12px;background:#0e141bcc}
.u3-play .up-h{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}
.u3-play .up-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 3px;border:1px solid #e9c46a55;border-radius:999px;background:#ffffff10;color:#f3e7c6;font:600 13px/1 sans-serif}
.u3-play .up-chip img{width:26px;height:26px}
.u3-play .up-chip em{padding:2px 5px;border-radius:4px;background:#ff5a2a;color:#fff;font-size:10px;font-style:normal}
.u3-play .up-chip.new{border-color:#ffb14a;box-shadow:0 0 12px #ffb14a55}
.u3-play .up-card canvas{display:block;width:100%;max-width:720px;height:auto;border-radius:10px;box-shadow:0 10px 30px #0008}
.u3-play .up-act{display:flex;gap:8px;margin-top:10px}

/* ===== (02/11) Hồ sơ: Bộ sưu tập khoảnh khắc ===== */
.mom-card{margin-bottom:12px}
.mom-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-top:10px}
.mom-grid .mom{display:flex;flex-direction:column;align-items:center;padding:10px 8px;border:1px solid #ffffff14;border-radius:10px;background:#ffffff08;text-align:center;cursor:pointer}
.mom-grid .mom img{width:72px;height:72px}
.mom-grid .mom b{margin-top:4px;font-size:14px}
.mom-grid .mom small{margin-top:3px;color:#9fb0c0;font-size:11px;line-height:1.3}
.mom-grid .mom em{margin-top:5px;color:#e9c46a;font-size:11px;font-style:normal}
.mom-grid .mom.off{cursor:default}
.mom-grid .mom.off img{filter:grayscale(1) brightness(.45)}
.mom-grid .mom.off b{color:#7d8894}
.mom-grid .mom.off em{color:#6f7b86}
.mom-grid .mom.sel{border-color:#e9c46a;box-shadow:0 0 0 1px #e9c46a,0 0 16px #e9c46a44}

/* ===== (03/11) Hiệu ứng nhẹ (Cài đặt ▸ Hiệu ứng ▸ Nhẹ; tự bật trên máy yếu): bỏ làm mờ nền và hiệu ứng lặp vô hạn ===== */
html.lite *, html.lite *::before, html.lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; animation-iteration-count: 1 !important; }
html.lite .mt-map image { image-rendering: auto; }

/* ===== (03/11) Thanh trên: menu co lại thay vì bị ví vàng che (nút Combo/Đăng xuất từng bị đẩy ra ngoài) ===== */
#stage#stage#stage#stage .ui-topbar .nav{flex:1 1 0;min-width:0}
@media (max-width:2200px){
  #stage#stage#stage#stage .ui-topbar{gap:14px;padding-right:84px}
  #stage#stage#stage#stage .ui-brand{min-width:0}
  #stage#stage#stage#stage .ui-topbar .nav button{padding:0 8px;font-size:15px;gap:6px}
  #stage#stage#stage#stage .ui-topbar .me{width:220px}
}
@media (max-width:1700px){
  #stage#stage#stage#stage .ui-brand .brand{display:none}
  #stage#stage#stage#stage .ui-topbar .nav button:not(.on) span{display:none}
  #stage#stage#stage#stage .ui-topbar .nav button{padding:0 11px}
  #stage#stage#stage#stage .ui-lang-btn small{display:none}
}

/* ===== (03/11) Chữ trang trí trong CSS content: theo ngôn ngữ game (html[lang] do ad_app.js đặt) ===== */
html[lang="en"] #stage #Shop.fg .sh-head .sm-title::before{content:'RUNE FORGE / LOADOUT'}
html[lang="ru"] #stage #Shop.fg .sh-head .sm-title::before{content:'КУЗНИЦА РУН / СНАРЯЖЕНИЕ'}
html[lang="zh"] #stage #Shop.fg .sh-head .sm-title::before{content:'符文熔炉 / 出装'}
html[lang="en"] #stage #Shop.fg .tap2::after{content:'TAP AGAIN'}
html[lang="ru"] #stage #Shop.fg .tap2::after{content:'НАЖМИТЕ ЕЩЁ'}
html[lang="zh"] #stage #Shop.fg .tap2::after{content:'再点一次'}
html[lang="en"] #stage #Match .mt-top .mid::before{content:'SIMULATED MATCH'}
html[lang="ru"] #stage #Match .mt-top .mid::before{content:'СИМУЛЯЦИЯ МАТЧА'}
html[lang="zh"] #stage #Match .mt-top .mid::before{content:'模拟比赛'}
html[lang="en"] #stage #Match .mt-end .box::before{content:'ABILITY DRAFT / MATCH REPORT'}
html[lang="ru"] #stage #Match .mt-end .box::before{content:'ABILITY DRAFT / ОТЧЁТ О МАТЧЕ'}
html[lang="zh"] #stage #Match .mt-end .box::before{content:'ABILITY DRAFT / 比赛报告'}
html[lang="en"] #stage#stage#stage .sh-shop .it.tap2::after{content:'Tap again to buy'}
html[lang="ru"] #stage#stage#stage .sh-shop .it.tap2::after{content:'Нажмите ещё раз, чтобы купить'}
html[lang="zh"] #stage#stage#stage .sh-shop .it.tap2::after{content:'再点一次购买'}
/* (03/11) điện thoại: ở màn lên đồ, nút âm thanh/cài đặt xuống góc dưới để không che nút "Chốt vị trí"/"Vào trận" */
html.touch #stage.ph-items :is(#SettingsButton,#AudioBtn){top:auto;bottom:28px}
html.touch #stage.ph-items #AudioPanel{top:auto;bottom:110px}

/* (05/11) xong 10 trận định hạng: màn hình báo rank */
.plc-reveal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 42%,#2a2010f5 0%,#07090cfa 62%);animation:plcIn .35s ease-out both;padding:16px}
.plc-reveal.out{animation:plcOut .25s ease-in both}
.plc-card{display:flex;flex-direction:column;align-items:center;gap:min(1.6vh,14px);text-align:center;color:#f3ead6;max-width:640px}
.plc-k{font-weight:700;font-size:clamp(14px,2.2vmin,22px);line-height:1.2;letter-spacing:.32em;color:#e8c76a}
.plc-medal{position:relative;width:min(46vmin,360px);aspect-ratio:1}
.plc-medal::before{content:'';position:absolute;inset:8%;border-radius:50%;background:radial-gradient(circle,#ffd98a66 0%,#ffd98a00 68%);animation:plcGlow 2.4s ease-in-out infinite}
.plc-medal img{position:relative;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 30px #000c);animation:plcPop .7s cubic-bezier(.2,1.4,.4,1) .15s both}
.plc-tier{font-weight:800;font-size:clamp(40px,9vmin,92px);line-height:1;text-transform:uppercase;letter-spacing:.04em;color:#fff3d6;text-shadow:0 0 28px #e8b84a88,0 4px 24px #000}
.plc-tier span{color:#ffd36b;font-size:.6em;letter-spacing:.06em;vertical-align:middle}
.plc-mmr{font-size:clamp(18px,3.2vmin,30px);color:#cdbf9f}.plc-mmr b{font-size:1.9em;color:#fff;margin-right:.2em}
.plc-sub{font-size:clamp(13px,1.9vmin,17px);color:#a99d84;max-width:520px;line-height:1.45}
.plc-ok{margin-top:6px;padding:12px 40px;border:0;border-radius:4px;background:linear-gradient(180deg,#e8c76a,#b8913a);color:#1b1307;font-weight:700;font-size:16px;line-height:1;cursor:pointer;letter-spacing:.05em}
@keyframes plcIn{from{opacity:0}to{opacity:1}}@keyframes plcOut{to{opacity:0}}
@keyframes plcPop{0%{transform:scale(.2) rotate(-12deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes plcGlow{0%,100%{opacity:.55;transform:scale(.95)}50%{opacity:1;transform:scale(1.08)}}

/* (05/11) đổi tên người chơi */
.pf-ren{margin-left:8px;width:30px;height:30px;border-radius:50%;border:1px solid #c4a66c66;background:#0006;color:#e8c76a;font-size:15px;cursor:pointer;vertical-align:middle}
.pf-ren:hover{background:#c4a66c33}
.pf-renbox{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.pf-renbox input{flex:1 1 180px;min-width:0;padding:8px 10px;border-radius:4px;border:1px solid #c4a66c88;background:#0b0f14;color:#f3ead6;font-size:16px}
.pf-renbox .dim{flex-basis:100%;font-size:13px}
/* (06/11) TIP BẨN — bot tip vàng thật + câu kháy */
#Match .mt-tip{position:absolute;right:2%;top:24%;z-index:7;max-width:46%;padding:10px 14px 10px;border-radius:12px;background:linear-gradient(135deg,#2a2210f2,#14110bf2);border:1px solid #d9a93f;box-shadow:0 0 0 1px #000a,0 8px 26px #000a,0 0 24px #f0b23a44;color:#f3ead8;pointer-events:none;opacity:0;transform:translateX(30px)}
#Match .mt-tip.show{animation:mtTip 4.2s ease forwards}
@keyframes mtTip{0%{opacity:0;transform:translateX(30px) scale(.96)}8%{opacity:1;transform:none}86%{opacity:1;transform:none}100%{opacity:0;transform:translateX(12px)}}
#Match .mt-tip .tp-h{display:flex;align-items:center;gap:8px;font-size:15px;white-space:nowrap}
#Match .mt-tip .hh{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid #d9a93f}
#Match .mt-tip .tp-l{margin-top:6px;font-size:16px;line-height:1.35;font-style:italic;color:#ffe9b8}
#stage .tp-g{color:#ffd24a;font-weight:800;white-space:nowrap}
#Match .mt-chat .cl.tip{background:#3a2c0d99;border-left:3px solid #d9a93f}
#Summary .sm-tips{margin:10px 0;padding:10px 14px;border-radius:12px;background:#2a22101f;border:1px solid #d9a93f66}
#Summary .sm-tips>b{display:block;margin-bottom:6px;font-size:16px}
#Summary .sm-tip{padding:4px 0;font-size:14px;line-height:1.4;border-top:1px dashed #ffffff14}
#Summary .sm-tip i{opacity:.6;font-style:normal}
#PostChat .pl .tp-g,#Summary .pl .tp-g{margin-left:4px}
html.touch #Match .mt-tip{max-width:70%}
html.touch #Match .mt-tip .tp-l{font-size:20px}
html.touch #Summary .sm-tip{font-size:18px}
/* (06/11) PvP 1vs1: hàng chờ, khối PvP ở sảnh, đối thủ người thật */
#PvpQ{position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#1a0c0cdd,#000e 70%)}
#PvpQ .pq-box{width:620px;padding:34px 40px 30px;border-radius:18px;text-align:center;background:linear-gradient(180deg,#22161a,#120d10);border:1px solid #c0444a88;box-shadow:0 20px 60px #000c,0 0 40px #c0444a33}
#PvpQ .pq-k{font:800 15px/1 var(--mg-font,inherit);letter-spacing:.32em;color:#ff8a8a}
#PvpQ .pq-t{margin-top:14px;font:800 34px/1.1 var(--mg-font,inherit);letter-spacing:.06em;color:#fff3e6}
#PvpQ .pq-t i{display:inline-block;width:18px;height:18px;margin-left:12px;border-radius:50%;border:3px solid #ff8a8a;border-right-color:transparent;animation:pqSpin 1s linear infinite;vertical-align:middle}
@keyframes pqSpin{to{transform:rotate(360deg)}}
#PvpQ .pq-time{margin:16px 0 8px;font:700 56px/1 Georgia,serif;color:#ffd27a;font-variant-numeric:tabular-nums}
#PvpQ .pq-meta{display:flex;justify-content:center;gap:22px;font-size:16px;color:#c9b8b0}
#PvpQ .pq-meta b{color:#fff}
#PvpQ .pq-note{margin:18px auto 20px;max-width:500px;font-size:15px;line-height:1.45;color:#a99}
#Lobby .lb-pvpn{margin-top:4px;color:#e8d4cf}
#Lobby .lb-pvpn b{color:#ffd27a}
#stage .Btn.red{background:linear-gradient(180deg,#b8343c,#7a1d24);border-color:#e0656b;color:#fff}
#stage .Tile.pending{outline:3px solid #ffd27a;animation:tilePend .8s ease-in-out infinite alternate}
@keyframes tilePend{to{outline-color:#ffd27a33}}
#stage .seat-label.rival{background:#b8343c;color:#fff}
#stage .HeroContainer.RivalPlayer{box-shadow:inset 0 0 0 2px #e0656b99}
html.touch #PvpQ .pq-box{width:86%;}
html.touch #PvpQ .pq-meta,html.touch #PvpQ .pq-note{font-size:20px}
/* (06/11) Bạn bè + mời đấu */
#stage .fr-body{position:absolute;top:130px;left:40px;right:40px;bottom:30px;display:grid;grid-template-columns:560px 1fr;gap:22px}
#Shell .fr-side,#Shell .fr-main{background:#0f151dcc;border:1px solid #ffffff14;border-radius:14px;padding:18px 20px;overflow:auto}
#Shell .fr-body h2{margin:0 0 12px}#Shell .fr-body h3{margin:18px 0 8px;font-size:17px}
#Shell .fr-code-box{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;background:#1a2330;border:1px dashed #ffd27a66}
#Shell .fr-code-box b{font:800 24px/1 ui-monospace,Consolas,monospace;letter-spacing:.12em;color:#ffd27a;flex:1}
#Shell .fr-find{display:flex;gap:8px}#Shell .fr-find input{flex:1;padding:10px 12px;border-radius:8px;border:1px solid #ffffff22;background:#0b1016;color:#fff;font-size:16px}
#Shell .fr-row{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:10px;background:#141c26;margin-top:6px}
#Shell .fr-row img{width:46px;height:46px;border-radius:50%;object-fit:cover}
#Shell .fr-n{display:flex;flex-direction:column;min-width:150px}#Shell .fr-n b{font-size:16px}
#Shell .fr-n .on{color:#6fe39a;font-size:13px}#Shell .fr-n .off{color:#7f8fa6;font-size:13px}
#Shell .fr-m{font-size:14px;color:#c9d2dc}#Shell .fr-m b{color:#ffd27a}
#Shell .fr-code{font:600 13px ui-monospace,Consolas,monospace;color:#7f8fa6}
#Shell .fr-b{margin-left:auto;display:flex;gap:6px}#Shell .fr-b .Btn{padding:6px 12px;font-size:14px}
#Shell .fr-b .ok{color:#6fe39a;white-space:nowrap}#Shell .fr-none{margin-top:8px}#Shell .fr-note{margin-bottom:6px}
#Shell .Btn.warn{background:#7a1d24;border-color:#e0656b}
#Shell .pf-fr{position:absolute;right:30px;top:96px;z-index:3;display:flex;gap:10px;align-items:center}
#Shell .pf-fr .ok{color:#6fe39a;font-weight:700}
#PvpInv{position:absolute;left:50%;top:86px;transform:translateX(-50%);z-index:80}
#PvpInv .pi-card{display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:14px;background:linear-gradient(180deg,#2a1518f2,#170d10f2);border:1px solid #e0656b;box-shadow:0 12px 40px #000c,0 0 30px #c0444a44;animation:piIn .35s ease}
@keyframes piIn{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
#PvpInv img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:2px solid #e0656b}
#PvpInv .pi-t{font-size:17px;color:#fff3e6;max-width:420px}#PvpInv .pi-t b{color:#ffd27a}#PvpInv .pi-t .dim{font-size:13px;margin-top:3px}
html.touch #stage .fr-body{top:152px;grid-template-columns:1fr;overflow:auto}
html.touch #PvpInv .pi-t{font-size:20px}
/* (06/11 b2) PvP: bảng Chấp nhận trận, trạng thái đối thủ, vào lại trận, chat nhanh, gợi ý khi chờ lâu, thẻ PvP trong hồ sơ */
#PvpAcc{position:absolute;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#2a0d10e6,#000f 72%);animation:piIn .25s ease}
#PvpAcc .pa-box{width:560px;padding:32px 40px 30px;border-radius:20px;text-align:center;background:linear-gradient(180deg,#2a1719,#120c0e);border:2px solid #e0656b;box-shadow:0 24px 80px #000d,0 0 60px #e0656b55;animation:paPulse 1.1s ease-in-out infinite alternate}
@keyframes paPulse{to{box-shadow:0 24px 80px #000d,0 0 90px #ffd27a55}}
#PvpAcc .pq-k{font:800 15px/1 var(--mg-font,inherit);letter-spacing:.32em;color:#ff8a8a}
#PvpAcc .pa-t{margin-top:12px;font:800 38px/1.1 var(--mg-font,inherit);letter-spacing:.08em;color:#fff3e6}
#PvpAcc .pa-ring{--p:100;width:132px;height:132px;margin:20px auto 12px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:conic-gradient(#ffd27a calc(var(--p)*1%),#ffffff14 0)}
#PvpAcc .pa-ring b{width:110px;height:110px;border-radius:50%;background:#160e10;display:flex;align-items:center;justify-content:center;font:700 54px/1 Georgia,serif;color:#ffd27a}
#PvpAcc .pa-dots{display:flex;justify-content:center;gap:14px;margin-bottom:10px}
#PvpAcc .pa-dots i{width:22px;height:22px;border-radius:50%;background:#ffffff1c;border:2px solid #ffffff44}
#PvpAcc .pa-dots i.on{background:#6fe39a;border-color:#b6ffd0;box-shadow:0 0 14px #6fe39a}
#PvpAcc .pa-m{font-size:16px;color:#c9b8b0}#PvpAcc .pa-m b{color:#fff}
#PvpAcc .pa-btns{margin-top:20px;display:flex;flex-direction:column;align-items:center;gap:10px;min-height:96px}
#PvpAcc .pa-go{width:340px;padding:16px 0;font-size:24px;font-weight:800;letter-spacing:.12em}
#PvpAcc .pa-wait{padding:18px 0;font-size:18px;color:#6fe39a}#PvpAcc .pa-wait.bad{color:#ff8a8a}
#PvpHud{position:absolute;left:32px;top:196px;max-width:330px;z-index:55;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;padding:5px 12px;border-radius:12px;background:#120c0ee6;border:1px solid #e0656b66;font-size:14px;color:#fff3e6;pointer-events:none}
#PvpHud .ph-k{font-weight:700}#PvpHud .ok{color:#6fe39a}#PvpHud .bad{color:#ff8a8a}
#PvpHud.lost{border-color:#ff8a8a;animation:paPulse .8s ease-in-out infinite alternate}
#PvpRe{position:absolute;left:50%;top:86px;transform:translateX(-50%);z-index:81}
#PvpRe .pi-card{display:flex;align-items:center;gap:16px;padding:12px 18px;border-radius:14px;background:linear-gradient(180deg,#2a1518f2,#170d10f2);border:1px solid #ffd27a;box-shadow:0 12px 40px #000c,0 0 30px #ffd27a33;animation:piIn .35s ease}
#PvpRe .pi-t{font-size:17px;color:#fff3e6;max-width:560px}#PvpRe .pi-t b{color:#ffd27a}#PvpRe .pi-t .dim{font-size:13px;margin-top:3px}
#PvpQ .pq-hint{margin:0 auto 18px;padding:12px 14px;border-radius:12px;background:#ffffff0a;border:1px dashed #ffd27a55;font-size:15px;color:#e8d4cf}
#PvpQ .pq-hint div{display:flex;justify-content:center;gap:10px;margin-top:10px}
#stage #ChatQuick:has(.pvc){flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}#stage #ChatQuick button.pvc{border-color:#e0656b88;white-space:nowrap;flex:none;padding:4px 9px;font-size:14px}#stage #ChatQuick button.pvc.bm{color:#ffb0a0}
#PostChat .pg-pvp{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid #e0656b44}
#PostChat .pg-pvp>span{font-size:14px;color:#ff8a8a;margin-right:4px}#PostChat .pg-pvp>span b{color:#fff}
#PostChat .pg-pvp button:not(.Btn){padding:5px 10px;border-radius:8px;border:1px solid #e0656b66;background:#2a1518;color:#fff3e6;font-size:14px;cursor:pointer}
#PostChat .pg-pvp .pg-rm{margin-left:auto}
#Shell .pf-pvp{border-color:#e0656b55}
#Shell .pf-pvp .pp-top{display:flex;align-items:center;gap:12px;margin-bottom:8px}
#Shell .pf-pvp .pp-top img{width:64px;height:64px}#Shell .pf-pvp .pp-top b{display:block;font:800 30px/1 Georgia,serif;color:#ffd27a}#Shell .pf-pvp .pp-top span{font-size:13px;color:#c9b8b0}
#Shell .pf-pvp i.ok{color:#6fe39a;font-style:normal}#Shell .pf-pvp i.bad{color:#ff8a8a;font-style:normal}
html.touch #PvpAcc .pa-box{width:80%}html.touch #PvpAcc .pa-go{font-size:28px}html.touch #PvpHud{font-size:18px}
/* (06/11 b3) báo có người tìm trận, link mời đấu */
#PvpPing{position:absolute;left:50%;top:86px;transform:translateX(-50%);z-index:79}
#PvpPing .pi-card{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:14px;background:linear-gradient(180deg,#2a1518f2,#170d10f2);border:1px solid #e0656b;box-shadow:0 12px 40px #000c,0 0 30px #c0444a44;animation:piIn .35s ease}
#PvpPing .pi-t{font-size:17px;color:#fff3e6;max-width:560px}#PvpPing .pi-t b{color:#ffd27a}#PvpPing .pi-t .dim{font-size:13px;margin-top:3px}
#Shell .fr-link{display:flex;align-items:center;gap:10px;margin-top:10px}#Shell .fr-link .dim{font-size:13px;line-height:1.35}
#Lobby .lb-lnk{background:none;border:0;padding:0;color:#ffd27a;text-decoration:underline;cursor:pointer;font:inherit}
html.touch #PvpPing .pi-t{font-size:20px}
/* điện thoại: ô trạng thái đối thủ chỉ hiện khi đối thủ mất kết nối (không đè chữ RADIANT), chữ hàng chat sau trận to hơn */
html.touch #PvpHud:not(.lost){display:none}
html.touch #PvpHud.lost{left:50%;top:150px;transform:translateX(-50%);max-width:640px}
html.touch #PostChat .pg-pvp>span{font-size:20px}
html.touch #stage #ChatQuick button.pvc{font-size:20px;padding:6px 12px}
/* (06/11) điện thoại: ô draft to hơn (~16%) + khe ngang rộng hơn để bớt bấm nhầm; khung thông tin có dòng "Chạm ra ngoài để đóng" */
html.touch #stage #UltBlock{top:4px;height:186px;width:610px}
html.touch #stage #UltLabel,html.touch #stage #AbilityLabel{top:4px;height:22px}
html.touch #stage #UltGrid{top:28px;grid-template-columns:repeat(6,74px);gap:8px 18px}
html.touch #stage #AbilityBlock{top:196px;height:508px;width:610px}
html.touch #stage #AbilityGrid{top:26px;grid-template-columns:repeat(2,246px);gap:14px 48px}
html.touch #stage .AbilSet,html.touch #stage .HeroSet{gap:6px}
html.touch #stage .AbilRow{gap:12px}
html.touch #stage #HeroBlock{top:196px;height:508px;left:90px;width:980px}
html.touch #stage #HeroLabel span{width:94px}
html.touch #stage #HeroGrid{top:26px;grid-template-columns:94px 94px;gap:14px 0}
html.touch #stage .Tile,html.touch #stage .Tile.ult{width:74px;height:74px}
html.touch #stage .Tile img.ic{left:3px;top:3px;width:66px;height:66px}
html.touch #stage .Tile.hero{width:94px;height:74px}html.touch #stage .Tile.hero img.ic{width:86px;height:66px}
html.touch #stage:not(.ph-draft) #Tooltip.show[data-close]::after{content:attr(data-close);display:block;padding:8px 12px;border-top:1px solid #ffffff1a;text-align:center;font-size:20px;color:#9fb0c0}
/* (06/11 b4) hàng chờ PvP thu nhỏ: thanh nhỏ trên cùng, vẫn bấm được các màn khác */
#PvpQ.mini{inset:auto;left:50%;bottom:34px;transform:translateX(-50%);z-index:85;background:none;display:block}
#PvpQ .pq-pill{display:flex;align-items:center;gap:12px;padding:8px 10px 8px 16px;border-radius:999px;background:linear-gradient(180deg,#2a1518f2,#170d10f2);border:1px solid #e0656b;box-shadow:0 10px 30px #000b,0 0 24px #c0444a44;white-space:nowrap;font-size:15px;color:#fff3e6}
#PvpQ .pq-pill i{width:12px;height:12px;border-radius:50%;border:2px solid #ff8a8a;border-right-color:transparent;animation:pqSpin 1s linear infinite}
#PvpQ .pq-pill b{letter-spacing:.06em;color:#ff8a8a;font-size:13px}#PvpQ .pq-pill .pq-pt{font:700 20px/1 Georgia,serif;color:#ffd27a;font-variant-numeric:tabular-nums}
#PvpQ .pq-pill .dim{font-size:13px}#PvpQ .pq-pill .Btn{padding:5px 12px;font-size:14px}
#PvpQ .pq-btns{display:flex;justify-content:center;gap:10px}
html.touch #PvpQ .pq-pill{font-size:20px}html.touch #PvpQ .pq-pill .Btn{font-size:19px;padding:8px 14px}
#Shell .fr-row .h2h{font-size:14px;color:#c9d2dc;white-space:nowrap}#Shell .fr-row .h2h i{font-style:normal;font-weight:700}#Shell .fr-row .h2h .ok{color:#6fe39a}#Shell .fr-row .h2h .bad{color:#ff8a8a}
#Shell .pf-pvp .pp-season{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin:2px 0 8px;padding:8px 10px;border-radius:8px;background:#e0656b14;border:1px solid #e0656b33;font-size:13px;color:#c9b8b0}
#Shell .pf-pvp .pp-season b{color:#ff8a8a;font-size:14px}
/* (06/11 b5) giới thiệu PvP lần đầu + nhãn MỚI */
#PvpIntro{position:absolute;left:50%;top:86px;transform:translateX(-50%);z-index:78}
#PvpIntro .pi-card{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:14px;background:linear-gradient(180deg,#2a1518f5,#170d10f5);border:1px solid #ffd27a;box-shadow:0 12px 40px #000c,0 0 34px #ffd27a33;animation:piIn .35s ease}
#PvpIntro .pi-ic{font-size:34px;color:#ff8a8a}
#PvpIntro .pi-t{font-size:18px;color:#fff3e6;max-width:640px}#PvpIntro .pi-t b{color:#ffd27a}#PvpIntro .pi-t .dim{font-size:14px;margin-top:4px;line-height:1.4}
#Lobby .new-tag{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.08em;padding:2px 6px;margin-left:6px;border-radius:6px;background:#e0656b;color:#fff;vertical-align:2px}
html.touch #PvpIntro .pi-t{font-size:21px}html.touch #PvpIntro .pi-t .dim{font-size:17px}
/* (06/11 b5) nút chính chia đôi: trái PvE (đấu máy), phải PvP 1vs1 */
#stage .ui-play-split{display:flex;gap:12px}
#stage#stage#stage#stage .ui-play-split .play{flex:1 1 0;width:auto;min-width:0;padding:12px 16px;gap:12px}
#stage .ui-play-split .play span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05;text-align:left}
#stage .ui-play-split .play small{font-size:13px;font-weight:600;letter-spacing:.04em;opacity:.75;margin-top:4px;text-transform:none}
#stage#stage#stage#stage .ui-play-split .play.pvp{background:linear-gradient(180deg,#c43a43,#7a1d24);color:#fff3e6;border-color:#ff8a8a;box-shadow:0 10px 26px #7a1d2466}
#stage#stage#stage#stage .ui-play-split .play.pvp:hover{background:linear-gradient(180deg,#d84a52,#8a232b)}
html.touch #stage .ui-play-split .play small{font-size:16px}
#Shell .pf-pvp .pp-season .ok{color:#6fe39a}

/* (06/11) bong bóng gáy khi pick khắc chế */
.TauntBubble{position:fixed;z-index:60;max-width:300px;padding:7px 11px;border-radius:10px;background:rgba(16,20,26,.94);color:#f3e6c4;font-size:13px;line-height:1.35;
  border:1px solid rgba(255,196,90,.55);box-shadow:0 6px 18px rgba(0,0,0,.55);pointer-events:none;animation:tbIn .18s ease-out;transition:opacity .5s}
.TauntBubble.r{border-left:3px solid #6fe39a}.TauntBubble.d{border-right:3px solid #ff6b5a}
.TauntBubble.out{opacity:0}
@keyframes tbIn{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}
#ChatTabs button.unread{color:#ffd56a;animation:tbPulse 1s ease-in-out infinite alternate}
@keyframes tbPulse{from{box-shadow:0 0 0 rgba(255,213,106,0)}to{box-shadow:0 0 8px rgba(255,213,106,.7)}}
html.touch .TauntBubble{max-width:220px;font-size:12px;padding:5px 8px}
