/* Desktop sizes follow the usable viewport, including browser/toolbars and scaling.
   Stable workshop rows and card proportions remain shared by every section. */
body.pc #deck .manabar .mv{flex:none;min-width:60px;white-space:nowrap}
body.pc #deck .manabar .mtrack{flex:1;min-width:32px}
body.pc #deck .shell-reserve{gap:12px;font-size:18px;line-height:1.35}
body.pc #deck .shell-reserve small{min-width:0;text-align:right}
/* Keep reserve card information readable; scrolling absorbs additional cards. */
body.pc #deck .strip .shell-stats{font-size:clamp(12px,calc(var(--card-width,180px)*.0833),16px)}
body.pc #deck .strip .ucard .lvbar{font-size:clamp(11px,calc(var(--card-width,180px)*.0778),15px)}
body.pc #deck .strip .shell-ability .mini-ic{width:clamp(14px,calc(var(--card-width,180px)*.0889),18px);height:clamp(14px,calc(var(--card-width,180px)*.0889),18px)}
/* Small battle cards preserve 5:7 while key numbers keep a readable floor. */
body.pc #battle .battle-name{font-size:clamp(12px,calc(var(--card-width,256px)*.0547),17px)}
body.pc #battle .bstats{font-size:clamp(14px,calc(var(--card-width,256px)*.0664),22px)}
body.pc #battle .bstats :is(.lvchip,.ab){font-size:clamp(10px,calc(var(--card-width,256px)*.043),13px)}
body.pc #battle .bstats .ab .mini-ic{width:clamp(14px,calc(var(--card-width,256px)*.0625),18px);height:clamp(14px,calc(var(--card-width,256px)*.0625),18px)}
body.pc #battle .shell-mana{font-size:clamp(13px,calc(var(--card-width,256px)*.0859),22px)}
@media(min-width:1000px) and (max-height:900px){
 body.pc{--shell-nav-width:88px;--shell-column-gap:14px;--shell-gap:12px}
 body.pc .phone{grid-template-columns:var(--shell-nav-width) minmax(0,1fr);grid-template-rows:112px minmax(0,1fr);padding:0 16px 12px}
 body.pc .top{padding:12px 0}
 body.pc .shell-avatar::after{border-width:14px}
 body.pc .hud-panel{grid-template-columns:minmax(210px,1fr) minmax(360px,1.2fr);gap:16px;padding:0 16px}
 body.pc .hud-unified .shell-profile-details{grid-template-columns:56px minmax(0,1fr);grid-template-rows:24px 6px 20px;gap:5px 12px}
 body.pc .hud-unified #tb-lvl{width:56px;height:56px;font-size:21px}
 body.pc .hud-unified .shell-profile-name{font-size:19px}
 body.pc .hud-unified .cons{gap:14px}
 body.pc .hud-unified .cons .c,body.pc .hud-unified .wallet .w{padding-left:12px;grid-template-columns:26px minmax(0,1fr);gap:3px 6px}
 body.pc .hud-unified .cons .res-ic{width:26px;height:32px}
 body.pc .hud-resource-value{font-size:18px}
 body.pc .shell-sidebar{height:100%;gap:8px}
 body.pc .shell-sidebar .nav{width:100%;flex:0 1 auto;max-height:calc(100% - 48px);padding:4px;display:flex;flex-direction:column;justify-content:flex-start}
 body.pc .shell-sidebar .nav button{width:100%;height:clamp(82px,12vh,104px);flex:0 1 auto;gap:5px;padding:6px 0}
 body.pc .shell-sidebar .nav button[data-go] img.ng{width:52px;height:52px}
 body.pc .shell-sidebar :is(#helpbtn,#settingsbtn){height:40px;gap:3px;padding:2px}
 body.pc .shell-sidebar :is(#helpbtn,#settingsbtn)::before{width:18px;height:20px}
 body.pc #deck[data-workshop] .dscroll{gap:12px;padding:12px}
 body.pc #deck .shead{gap:16px}
 body.pc #deck .shead h1{font-size:24px}
 body.pc #deck .shead .manabar{gap:9px;padding:6px 9px}
 body.pc #deck .shead .manabar .ml{font-size:0;gap:0;flex:none}
 body.pc #deck .shead .manabar .ml::before{width:23px;height:26px}
 body.pc #deck .shead .manabar .mv{font-size:16px}
 body.pc #deck .work{padding:6px 10px}
 body.pc #deck .work>.strip{padding-top:8px;padding-bottom:5px}
 body.pc #deck{--reserve-card-width:120px;--reserve-chrome-height:59px;--workshop-hand-min:180px}
 body.pc #deck .topzone .ucard .shell-name{font-size:clamp(12px,calc(var(--card-width,322px)*.0714),23px)}
 body.pc #deck .topzone .ucard .shell-stats{font-size:clamp(14px,calc(var(--card-width,322px)*.0745),24px)}
 body.pc #deck .topzone .ucard .lvbar{font-size:clamp(12px,calc(var(--card-width,322px)*.0652),21px)}
 body.pc #deck .topzone .ucard .shell-ability{font-size:11px}
 body.pc #deck .topzone .ucard .shell-ability .mini-ic{width:16px;height:16px}
 body.pc #deck .shell-reserve{margin:4px 0 0}
 body.pc #deck .shell-reserve small{font-size:13px}
 body.pc #deck :is(.burn-empty,.fusion-empty) strong{font-size:clamp(12px,calc(var(--card-width,180px)*.075),18px)}
 body.pc #deck :is(.burn-empty,.fusion-empty) span{font-size:clamp(11px,calc(var(--card-width,180px)*.06),14px)}
}
@media(min-width:1000px) and (min-height:901px) and (max-height:1100px){
 body.pc #deck{--reserve-card-width:144px;--reserve-chrome-height:77px}
 body.pc #deck .work>.strip{padding-top:8px;padding-bottom:5px}
}
@media(min-width:1000px) and (max-height:700px){
 body.pc{--shell-nav-width:76px}
 body.pc .phone{grid-template-rows:96px minmax(0,1fr)}
 body.pc .top{padding:10px 0}
 body.pc .shell-avatar::after{border-width:12px}
 body.pc .shell-sidebar .nav button[data-go] img.ng{width:46px;height:46px}
 body.pc .shell-sidebar .nav button{max-height:95px}
 body.pc #deck .shell-reserve small{max-width:64%;font-size:12px}
}
