/* Compact native presentation, with Pride artwork and palette. Desktop skins
   stay on PC; native actions, prices, saved styles and card rules stay shared. */
body:not(.pc){--panel:#0b1623;--stone:#132537;--stone2:#1b3043;--line:#35465b;--ivory:#eee5d1;--ash:#abbac8;--faint:#72879a;--teal:#78c5c5;--teal-dim:#315a62;--gold:#d9b46b;--energy:#d4a057;padding:0;background:#06101b}
body:not(.pc) .phone{width:100%;max-width:100vw;height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none;background:var(--panel)}
#orientation-prompt{position:fixed;inset:0;z-index:2147483647;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px;background:#0b1725;color:#eee5d1;text-align:center;box-sizing:border-box}
#orientation-prompt[hidden]{display:none}
#orientation-prompt h1{font:500 26px/1.25 var(--font-display);margin:0}
#orientation-prompt p{max-width:470px;margin:0;font:400 16px/1.5 var(--font-ui);color:#bdcbd9}
body.portrait-required>:not(#orientation-prompt){visibility:hidden!important;pointer-events:none!important}
body:not(.pc) .screen{border:0;border-radius:0;box-shadow:none;background:none}
body:not(.pc) .screen::after{display:none}
/* Original two compact HUD rows and four fixed bottom navigation actions. */
body:not(.pc) .top{display:flex;align-items:center;gap:7px;padding:8px 10px;background:linear-gradient(#172b3f,#0b1725);border-bottom:1px solid var(--line)}
body:not(.pc) .top .center.hud-unified{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0;padding:4px 6px;border:0;border-radius:8px;background:none;box-shadow:none}
body:not(.pc) .hud-unified .shell-profile-details{display:flex;align-items:center;gap:6px;height:22px;min-height:22px;padding:0 29px 0 0}
body:not(.pc) .hud-unified :is(.shell-avatar,.shell-profile-name,.shell-xp,.hud-resource-label,.hud-resource-meter){display:none}
body:not(.pc) .hud-unified .lvl{display:contents}
body:not(.pc) .hud-unified #tb-lvl{display:block;flex:none;width:auto;height:auto;background:none;font:600 13px/1.2 var(--font-ui);color:var(--gold)}
body:not(.pc) .hud-unified .lvl .star{display:block;flex:none;font-size:14px;color:var(--gold)}
body:not(.pc) .hud-unified .xp{flex:1;min-width:20px;height:7px;margin:0;border:1px solid #536070;border-radius:9px;background:#07111c}
body:not(.pc) .hud-unified .xp i{background:linear-gradient(90deg,#8b733f,#e2bb68)}
body:not(.pc) .hud-unified .xp i::after{display:none}
body:not(.pc) .hud-level-cue{right:1px;width:20px;height:23px}
body:not(.pc) .hud-unified .cons{display:flex;gap:4px;min-width:0}
body:not(.pc) .hud-unified .cons .c,body:not(.pc) .hud-unified .wallet .w{display:flex;align-items:center;justify-content:center;flex:1;gap:3px;min-width:0;height:25px;padding:2px 4px;border:1px solid var(--line);border-radius:7px;background:var(--stone);font-size:12px}
body:not(.pc) .hud-unified .wallet{display:contents}
body:not(.pc) .hud-unified .cons .res-ic{width:15px;height:19px;flex:none;margin:0}
body:not(.pc) .hud-unified .hud-resource-value{display:flex;align-items:baseline;gap:0;font:600 12px/1.2 var(--font-ui)}
body:not(.pc) .hud-resource-value :is(#tb-enmax,#tb-manamax){font-size:11px;min-width:0}
body:not(.pc) :is(#tb-encur,#tb-manacur){min-width:0}
body:not(.pc) .hud-unified .cons .vialn{top:-4px;right:-2px;font-size:8px;background:#0c1825}
body:not(.pc) .top #helpbtn{width:34px;height:38px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--stone)}
body:not(.pc) .top #helpbtn::before{width:23px;height:23px}
body:not(.pc) .shell-sidebar{display:block;padding:0;flex:none;background:#0d1c2b;border-top:1px solid var(--line)}
body:not(.pc) .shell-sidebar .nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px 9px max(8px,env(safe-area-inset-bottom));border:0;background:none}
body:not(.pc) .shell-sidebar .nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:70px;height:70px;padding:4px 2px;gap:1px;border:1px solid #766747;border-radius:10px;background:linear-gradient(#243a4b,#142637);box-shadow:none}
body:not(.pc) .shell-sidebar .nav button.active{border:2px solid var(--gold);background:linear-gradient(#35535b,#1a3542);box-shadow:inset 0 0 10px #ddb87818}
body:not(.pc) .shell-sidebar .nav button img.ng{width:28px;height:29px;object-fit:contain;filter:drop-shadow(0 2px 3px #0008)}
body:not(.pc) .shell-sidebar .nav button::after{content:attr(aria-label);color:var(--ivory);font:500 15px/17px var(--font-ui);min-height:34px;letter-spacing:0;white-space:normal;overflow-wrap:normal;hyphens:auto}
body:not(.pc) .shead{padding:10px 12px 7px}
body:not(.pc) .shead h1{font-size:22px}
/* Home keeps its current tournament content in native compact cards. */
body:not(.pc) #home .hscroll{padding:10px 12px 14px;gap:10px}
body:not(.pc) #home .home-top{display:flex;flex-direction:column;gap:10px}
body:not(.pc) #home :is(.home-panel,.home-hero,.home-chest){min-height:0;border:1px solid var(--line);border-radius:10px;background:var(--stone);box-shadow:none}
body:not(.pc) #home .home-tournament-header{padding:10px 11px 8px;gap:8px}
body:not(.pc) #home .home-eyebrow{display:none}
body:not(.pc) #home .home-tournament h1{font-size:21px;margin:0 0 3px}
body:not(.pc) #home #home-lead{font-size:12px;line-height:1.35}
body:not(.pc) #home .home-tournament-status{gap:3px;max-width:80px}
body:not(.pc) #home #home-tournament-state{font-size:11px}
body:not(.pc) #home :is(.home-text-button,.home-text-link){font-size:12px;padding:4px 6px}
body:not(.pc) #home .home-tournament-body{gap:8px;padding:0 10px 10px}
body:not(.pc) #home .home-tournament-section-heading{min-height:24px;margin-bottom:2px;gap:5px}
body:not(.pc) #home .home-tournament-section-heading h2{font-size:13px}
body:not(.pc) #home .home-standing{min-height:29px;padding:5px 6px;font-size:13px}
body:not(.pc) #home .home-rival small{font-size:12px}
body:not(.pc) #home .home-defense-summary{font-size:12px;padding:5px 6px}
body:not(.pc) #home .home-defense-entry{font-size:12px;padding:5px 6px}
body:not(.pc) #home .home-market-bar{padding:8px 10px;gap:7px;flex-wrap:nowrap}
body:not(.pc) #home .home-market-icon{width:27px;height:30px}
body:not(.pc) #home .home-market-copy{flex:1;min-width:0}
body:not(.pc) #home .home-market-copy strong{font-size:15px}
body:not(.pc) #home .home-token-balance{font-size:11px;gap:0}
body:not(.pc) #home .home-token-balance b{font-size:16px}
body:not(.pc) #home #shopcard{width:auto;min-height:34px;padding:6px 9px;font-size:13px}
body:not(.pc) #home :is(.home-primary,.home-secondary){border-radius:8px;font-size:13px;min-height:36px;padding:7px 10px;background:linear-gradient(#35505c,#1c3545);color:var(--ivory);border-color:#827044;box-shadow:none}
body:not(.pc) #home .home-daily{padding:10px}
body:not(.pc) #home .home-panel-heading{gap:7px;min-height:22px}
body:not(.pc) #home .home-panel-heading h2{font-size:17px}
body:not(.pc) #home .home-panel-heading>span{font-size:12px}
body:not(.pc) #home .dq{padding-top:8px}
body:not(.pc) #home .dqrow{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:8px}
body:not(.pc) #home .dqb{--daily-icon-size:35px;height:60px;border-radius:6px;padding:3px 1px;grid-template-rows:35px 16px;gap:1px}
body:not(.pc) #home .dqb:not(:has(.dqg)){grid-template-rows:35px}
body:not(.pc) #home .dqb .dqg{font-size:11px}
body:not(.pc) #home :is(.dqtask,.dqprog){font-size:12px}
body:not(.pc) #home .home-wheel{padding:10px 12px}
body:not(.pc) #home .home-wheel .roul{padding:21px 0 0;flex:none}
body:not(.pc) #home .home-wheel .wheelwrap{width:min(228px,100%)}
body:not(.pc) #home .home-wheel .pin{width:40px;height:40px;top:-18px}
body:not(.pc) #home .home-wheel .spinbtn{min-height:36px;margin-top:8px;border-radius:8px;font-size:14px;padding:7px}
body:not(.pc) #home .home-wheel-note{font-size:11px;margin:7px 0 0}
body:not(.pc) #home .home-chest-grid{gap:8px}
body:not(.pc) #home .home-chest{padding:9px 10px}
body:not(.pc) #home .ch-top{grid-template-columns:48px minmax(0,1fr);gap:3px 8px}
body:not(.pc) #home .ch-ic .chwrap{width:48px;height:56px}
body:not(.pc) #home .ch-name{font-size:16px}
body:not(.pc) #home .ch-desc{font-size:12px;margin-top:2px}
body:not(.pc) #home .ch-buy{font-size:13px;padding:5px 9px;min-height:32px;border-radius:7px}
body:not(.pc) #home .odds-t{font-size:12px;margin-top:7px}
/* Small native hand, mana meter, four workshop icons, horizontal reserve tray. */
body:not(.pc) #deck .dscroll{padding:0 10px 12px}
body:not(.pc) #deck[data-workshop="deck"] .shead{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:9px 0}
body:not(.pc) #deck .shead h1{font-size:21px;text-align:center}
body:not(.pc) #deck .shead .manabar{width:100%;height:30px;padding:4px 8px;gap:7px;margin:0;border-radius:7px;font-size:12px}
body:not(.pc) #deck .manabar .ml,body:not(.pc) #deck .manabar .mv{font-size:12px}
body:not(.pc) #deck .deckrow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 10px}
body:not(.pc) #deck .modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:9px 0 10px}
body:not(.pc) #deck .mode{border-radius:9px;padding:7px 1px;gap:3px;min-height:57px;background:linear-gradient(#22384a,#122737);border-color:#786641}
body:not(.pc) #deck .mode .mimg{width:30px;height:30px;object-fit:contain}
body:not(.pc) #deck .mode::after{content:attr(aria-label);font:500 12px/1.2 var(--font-ui);overflow-wrap:anywhere}
body:not(.pc) #deck .mode.on{border-color:var(--gold);background:linear-gradient(#354c52,#1b3542)}
body:not(.pc) #deck .shell-reserve{display:flex;align-items:center;justify-content:space-between;margin:4px 0 2px;font-size:12px;color:var(--ash)}
body:not(.pc) #deck .shell-reserve small{display:none}
body:not(.pc) #deck .strip{padding:8px 3px 12px;touch-action:pan-x}
body:not(.pc) #deck .striptrack{gap:8px}
/* Same fixed fields in every state; smaller operators and confirmation area. */
body:not(.pc) #deck :is(#top-burn,#top-fuse){padding:8px 0;gap:0}
body:not(.pc) #deck #top-burn .burnwrap{display:grid;grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr);grid-template-rows:176px 136px;gap:8px;align-items:center}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .bslot{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .ritual-shell{width:min(100%,108px);padding:0;background:none}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .ucard{width:100%;min-height:0;aspect-ratio:5/7;display:flex;flex-direction:column}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .ucard .art{flex:1;height:auto!important;min-height:0}
body:not(.pc) #deck #top-burn .bmid{height:176px;gap:4px;margin:0;align-self:center}
body:not(.pc) #deck #top-burn .bflow{height:28px}
body:not(.pc) #deck #top-burn .bgain{height:144px;grid-template-rows:26px 28px repeat(3,30px) 0px}
body:not(.pc) #deck #top-burn .burn-gain-title{font-size:10px}
body:not(.pc) #deck #top-burn .burn-xp-gain{height:23px;padding:2px 0;font-size:11px}
body:not(.pc) #deck #top-burn .burn-gain-row{padding:2px 4px 11px;font-size:10px}
body:not(.pc) #deck #top-burn .burn-gain-value b{font-size:13px}
body:not(.pc) #deck :is(#top-burn,#top-fuse) :is(.burn-summary,.fuse-summary){grid-column:1/-1;height:136px;max-height:none;width:100%;padding:9px 10px;gap:6px;grid-template-rows:minmax(0,1fr) 44px;border-radius:8px;background:var(--stone);box-shadow:none}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .wk-summary-copy{font-size:12px;line-height:1.35}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .wk-summary-copy>strong{display:none}
body:not(.pc) #deck :is(#top-burn,#top-fuse) :is(.burn-status,.fusion-status){font-size:10px;line-height:14px;min-height:14px}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .wk-summary-copy p{margin:3px 0 0}
body:not(.pc) #deck :is(#top-burn,#top-fuse) :is(.burn-return,.burn-consequence){font-size:11px;margin-top:3px}
body:not(.pc) #deck :is(#top-burn,#top-fuse) :is(.burn-summary,.fuse-summary) .workshop-cost{height:44px;min-height:44px;padding:5px 9px;border-radius:7px;gap:1px 5px;font-size:12px;grid-template-columns:16px minmax(0,1fr) auto;grid-template-rows:18px 14px;box-shadow:none}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .wk-action-label{font-size:13px;line-height:18px}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .workshop-cost .ci{width:14px;height:14px}
body:not(.pc) #deck :is(#top-burn,#top-fuse) .workshop-cost .bcv{font-size:12px}
body:not(.pc) #deck #top-fuse .fusecol{gap:0}
body:not(.pc) #deck #top-fuse .fuserow{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 24px minmax(0,1fr);grid-template-rows:142px 78px 136px;gap:6px}
body:not(.pc) #deck #top-fuse #fuse-a{grid-column:1;grid-row:1}
body:not(.pc) #deck #top-fuse .fusion-link{grid-column:2;grid-row:1;height:22px}
body:not(.pc) #deck #top-fuse #fuse-b{grid-column:3;grid-row:1}
body:not(.pc) #deck #top-fuse .fusion-flow{display:contents}
body:not(.pc) #deck #top-fuse .fusion-arrow{grid-column:4;grid-row:1;height:30px}
body:not(.pc) #deck #top-fuse #fuse-r{grid-column:5;grid-row:1}
body:not(.pc) #deck #top-fuse #fusion-preview{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:26px 44px;gap:3px;font-size:12px;height:78px}
body:not(.pc) #deck .fusion-preview-title{display:none}
body:not(.pc) #deck .fusion-rank{grid-column:1/-1;height:25px;font-size:12px;padding:3px}
body:not(.pc) #deck .fusion-preview-row{padding:4px 6px;font-size:11px}
body:not(.pc) #deck .fusion-preview-row b{font-size:14px}
body:not(.pc) #deck #top-fuse .fuse-summary{grid-row:3;height:136px}
body:not(.pc) #deck :is(.burn-empty,.fusion-empty){padding:7%;gap:5px}
body:not(.pc) #deck :is(.burn-empty,.fusion-empty) strong{font-size:11px}
body:not(.pc) #deck :is(.burn-empty,.fusion-empty) span{font-size:10px;line-height:1.3}
body:not(.pc) #deck #top-shards{padding:8px 0}
body:not(.pc) #deck #top-shards .shard-workbench{grid-template-rows:152px 90px;gap:6px}
body:not(.pc) #deck #top-shards .shard-stock{height:142px;grid-template-rows:22px 48px 32px 16px 24px}
body:not(.pc) #deck #top-shards .shard-stock-art{height:48px}
body:not(.pc) #deck #top-shards #sv-card{width:100px}
body:not(.pc) #deck #top-shards .wk-shards{height:90px;grid-template-rows:62px 24px;gap:4px;width:100%;max-width:none}
body:not(.pc) #deck #wk-mint{height:62px;padding:6px 10px;border-radius:8px;font-size:13px;gap:2px 5px;box-shadow:none}
body:not(.pc) #deck #wk-mint .wk-action-label{font-size:14px}
body:not(.pc) #deck #shardrows{grid-template-columns:minmax(0,1fr);gap:7px;padding:8px 0}
body:not(.pc) #deck #shardrows .shardrow{height:91px;grid-template-columns:48px minmax(0,1fr);padding:7px 7px 7px 2px;gap:10px;border-radius:8px}
body:not(.pc) #deck .shard-portrait{width:48px;height:67px}
body:not(.pc) #deck #shardrows .sname{font-size:14px;min-height:20px}
body:not(.pc) #deck #shardrows .sbar{margin:4px 0}
/* Tournament uses small native rows instead of desktop reward panels. */
body:not(.pc) #league .tour-scroll{padding:9px 10px}
body:not(.pc) #league .tour-shead{padding-bottom:9px;gap:8px}
body:not(.pc) #league .tour-shead h1{font-size:21px}
body:not(.pc) #league .tour-eyebrow{display:none}
body:not(.pc) #league .tourmini-time,body:not(.pc) #league .tourmini-time b{font-size:11px}
body:not(.pc) #league .tour-layout{gap:9px}
body:not(.pc) #league .tour-sidebar{gap:8px}
body:not(.pc) #league .tour-panel{padding:9px;border-radius:9px;background:var(--stone);box-shadow:none}
body:not(.pc) #league :is(.tour-my-stats span,.tour-entry-cost,.tour-market-heading span){font-size:11px}
body:not(.pc) #league .tour-my-stats{margin:6px 0;gap:5px}
body:not(.pc) #league .tour-my-stats b{font-size:16px}
body:not(.pc) #league .tour-market-heading{flex-direction:row;flex-wrap:wrap;gap:5px;margin-bottom:5px}
body:not(.pc) #league .tour-market-heading>img{width:22px;height:25px}
body:not(.pc) #league .tour-market h2,body:not(.pc) #league .lgleague{font-size:13px}
body:not(.pc) #league .tour-market .tour-primary{font-size:12px;min-height:32px;padding:5px}
body:not(.pc) #league .tour-board{min-height:0;padding:3px 3px 12px;border-radius:10px;background:var(--stone);box-shadow:none}
body:not(.pc) #league .tourchrome{padding:0 5px;gap:4px}
body:not(.pc) #league .ttabs{gap:5px}
body:not(.pc) #league .ttab{height:51px;gap:2px;font-size:12px;white-space:normal;text-align:center}
body:not(.pc) #league .ttab .ttab-ic{width:20px;height:20px}
body:not(.pc) #league .tour-refresh{font-size:11px;padding:4px}
body:not(.pc) #league .tour-list-note{font-size:11px;padding:7px 5px}
body:not(.pc) #league .row{grid-template-columns:16px 30px minmax(0,1fr) 65px;grid-template-rows:20px 18px 32px;min-height:82px;row-gap:3px;column-gap:5px;padding:5px 3px}
body:not(.pc) #league .ava{width:30px;height:36px}
body:not(.pc) #league .rank{font-size:12px}
body:not(.pc) #league .pname{font-size:13px}
body:not(.pc) #league .tour-score{font-size:12px;gap:5px}
body:not(.pc) #league .pts{font-size:13px}
body:not(.pc) #league .pdelta{font-size:11px}
body:not(.pc) #league .reward{min-height:28px;gap:3px 7px;padding:3px 5px;background:none;border:0}
body:not(.pc) #league .reward :is(b,.ritem){font-size:11px}
body:not(.pc) #league .reward .ric{width:17px;height:18px}
body:not(.pc) #league :is(.atk,.tour-own-action){min-height:32px;padding:5px;font-size:12px;border-radius:7px}
body:not(.pc) #league[data-tour-tab="def"] .row{grid-template-columns:16px 30px minmax(0,1fr) 65px;grid-template-rows:22px 30px;min-height:66px}
body:not(.pc) #league[data-tour-tab="top"] .row{grid-template-columns:16px 30px minmax(0,1fr) 55px;grid-template-rows:22px 20px;min-height:53px}
/* Profile, collection and settings remain ordinary compact mobile panels. */
body:not(.pc) #profile .pscroll{padding:10px 12px 14px}
body:not(.pc) #profile .phdr{gap:10px;padding-bottom:10px}
body:not(.pc) #profile .avatar{width:48px;height:56px}
body:not(.pc) #profile .pnick{font-size:21px}
body:not(.pc) #profile .profile-brand{font-size:11px}
body:not(.pc) #profile .profile-milestones{padding-top:8px;gap:8px}
body:not(.pc) #profile .profile-milestones small{font-size:11px}
body:not(.pc) #profile .profile-milestones img{width:22px;height:25px}
body:not(.pc) #profile .profile-milestones b{font-size:14px}
body:not(.pc) #profile .ptabs{gap:4px;margin-bottom:10px}
body:not(.pc) #profile .ptab{font-size:12px;min-height:38px;padding:6px 4px}
body:not(.pc) #profile .ptab img{width:17px;height:17px}
body:not(.pc) #profile .profile-panel{padding:11px;border-radius:10px;background:var(--stone);box-shadow:none}
body:not(.pc) #profile h2{font-size:18px}
body:not(.pc) #profile .profile-columns{gap:10px}
body:not(.pc) #profile .profile-stat>strong{font-size:20px}
body:not(.pc) #profile .profile-stat>img{width:26px;height:26px}
body:not(.pc) #profile .collection-filters{padding:8px;gap:7px}
body:not(.pc) #profile .visual-style-choices{gap:7px}
body:not(.pc) #profile .theme-choice.visual-style-choice{display:block;min-height:0;border-radius:8px;padding:7px}
body:not(.pc) #profile .visual-style-preview{display:none}
body:not(.pc) #profile .visual-style-copy{padding:2px;gap:4px}
body:not(.pc) #profile .visual-style-copy strong{font-size:15px}
body:not(.pc) #profile .visual-style-description{min-height:0;font-size:12px}
body:not(.pc) #profile .visual-style-selection{min-height:20px;padding-top:4px}
body:not(.pc) #profile .visual-style-heading{margin-bottom:9px}
body:not(.pc) .mobile-style-note{font:12px/1.4 var(--font-ui);color:var(--ash);margin:7px 0 10px}
body.pc .mobile-style-note{display:none}
@media(max-height:550px){body:not(.pc) .top{padding-block:4px}body:not(.pc) .shell-sidebar .nav button{min-height:54px;height:54px}body:not(.pc) .shell-sidebar .nav button img.ng{height:20px;width:22px}body:not(.pc) .shell-sidebar .nav{padding-block:4px}}

body:not(.pc) #deck .shead .manabar .mtrack{display:block;flex:1;height:7px;min-width:20px}
body:not(.pc) #deck .shead .manabar .ml{font-size:11px;gap:4px;flex:none}
body:not(.pc) #deck .shead .manabar .ml::before{width:14px;height:18px}
body:not(.pc) .top #mobileback{display:grid;place-items:center;flex:none;width:26px;height:34px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--stone);color:var(--ivory);font:24px/1 var(--font-ui)}
body.pc #mobileback{display:none}
body:not(.pc) .top #helpbtn{width:26px;height:34px}
body:not(.pc) .top #helpbtn::before{width:20px;height:22px}

/* Restore the phone battle's hero health row outside its footer, as upstream.
   The same nodes return to their desktop bands when the viewport changes. */
body:not(.pc) #battle.active{justify-content:center;overflow-y:auto;overflow-x:hidden;background:radial-gradient(ellipse at 50% 5%,#302139,#0b1623 55%)}
body:not(.pc) #battle>.flexsp{display:none}
body:not(.pc) #battle .pfoot{display:flex;flex-direction:row-reverse;align-items:center;gap:9px;padding:7px 12px;flex:none;background:none}
body:not(.pc) #battle .pfoot .head.player{flex:0 1 auto;min-width:0;gap:7px;padding:0;margin:0}
body:not(.pc) #battle .pfoot .nick{font-size:14px;max-width:118px}
body:not(.pc) #battle .pfoot .bctrl{flex:0 0 auto;padding:0;background:none;position:static}
body:not(.pc) #battle .pfoot .bbtn{padding:9px 12px;min-height:42px;font-size:13px;max-width:170px}
body:not(.pc) #battle>.hprow.player{padding:3px 12px 4px}
body:not(.pc) #battle .arena{min-height:62px}
body:not(.pc) #battle .combat-caption{display:flex;flex-direction:column;align-items:center;gap:2px}
body:not(.pc) #battle .combat-caption strong{font-size:13px;max-width:100%;text-align:center}
body:not(.pc) #battle .combat-caption span{font-size:11px;max-width:100%}
body:not(.pc) #battle .combat-side.enemy{padding:6px 12px}
body:not(.pc) #battle .combat-side.enemy .nick{font-size:14px}
body:not(.pc) #battle .combat-tools{gap:5px}
body:not(.pc) #battle .bbtn.speed{font-size:12px;min-width:47px;padding:7px;min-height:36px}
body:not(.pc) #battle .combat-sound{width:34px;height:36px;min-height:36px;padding:6px}
body:not(.pc) #battle .brow{gap:7px}
body:not(.pc) #battle .head .bigav{width:56px;height:56px;flex:none}
@media(max-height:550px){body:not(.pc) #battle.active{justify-content:flex-start}}
/* Native campaign map keeps the space; chapter controls remain small. */
body:not(.pc) #campaign .chap{padding:10px 12px 7px;column-gap:8px;background:var(--stone)}
body:not(.pc) #campaign .campaign-eyebrow{font-size:16px;text-align:center}
body:not(.pc) #campaign .cname{font-size:21px}
body:not(.pc) #campaign .campaign-status{padding:0 12px 8px;font-size:12px;background:var(--stone)}
body:not(.pc) #campaign .campaign-journey{padding:9px 12px;gap:6px 9px;background:var(--stone)}
body:not(.pc) #campaign #campaign-destination{font-size:15px}
body:not(.pc) #campaign :is(#campaign-next-title,#campaign-next-note){font-size:12px}
body:not(.pc) #campaign #campaign-continue{font-size:12px;padding:7px 9px;min-height:38px;max-width:110px;border-radius:8px}

body:not(.pc) .phone.inbattle .shell-sidebar{display:none}
body:not(.pc) #deck #top-shards .shard-workbench{grid-template-rows:152px 108px}
body:not(.pc) #deck #top-shards .wk-shards{height:108px;grid-template-rows:78px 26px}
body:not(.pc) #deck #wk-mint{height:78px;grid-template-rows:20px 18px 16px;gap:3px 5px;padding:7px 10px}
body:not(.pc) #deck #wk-mint .shard-spend{font-size:12px;line-height:16px}
body:not(.pc) #deck #shardrows .shardrow{height:104px}
body:not(.pc) #deck #shardrows .sinfo{display:block;font-size:12px;line-height:1.25}
body:not(.pc) #deck #shardrows .sname{display:block;min-height:20px;line-height:20px}
body:not(.pc) #deck #shardrows .shard-rarity{font-size:13px;line-height:15px}
body:not(.pc) #deck #shardrows .sbar{height:5px;margin:4px 0}
body:not(.pc) #deck #shardrows .snum{font-size:11px;line-height:15px;gap:3px}
body:not(.pc) #deck #shardrows .snum b{font-size:12px}

body:not(.pc) .hud-unified .wallet .w{flex:0 0 auto}

body:not(.pc) #profile .ptab{gap:4px;padding-inline:2px}
body:not(.pc) #profile .ptab img{display:none}
body:not(.pc) #profile .ptab>span:not(.profile-count){white-space:nowrap;overflow-wrap:normal}
body:not(.pc) #profile .profile-count{flex:none;min-width:20px;padding:2px 3px;font-size:11px;line-height:14px;white-space:nowrap;overflow-wrap:normal}
