/* Keep navigation compact and the current task at the top of the viewport. */
body:has(.store-workspace){overflow:hidden}
#store .store-header{height:60px;min-height:60px;max-width:none;padding:0 24px;gap:14px}
#store .brand{gap:9px;font-size:12px}
#store .brand img{width:32px;height:32px}
#store .brand small{font-size:8px;margin-top:3px}
#store .header-right{gap:22px}
#store .wallet{padding:5px 12px;min-width:96px;border-radius:8px}
#store .wallet b{font-size:18px}
#store .wallet small{font-size:8px;margin-top:1px}
#store .store-workspace{display:grid;grid-template-columns:78px minmax(0,1fr);max-width:none;padding:0;margin:0;height:calc(100vh - 60px);height:calc(100dvh - 60px);min-height:0}
#store .store-tabs{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:6px;padding:14px 8px;margin:0;border:0;border-right:1px solid var(--border);overflow-y:auto;background:#0d0b1680}
#store .store-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:62px;flex-shrink:0;padding:8px 3px;border:1px solid transparent;border-radius:9px;color:var(--soft);font-size:10px;background:transparent}
#store .store-tabs button svg{width:22px;height:22px}
#store .store-tabs button span{display:block;background:none;padding:0;margin:0;font-size:10px;line-height:1.2}
#store .store-tabs button.active{color:var(--gold);background:#e8c77710;border-color:#e8c77745;box-shadow:inset 2px 0 var(--gold)}
#store .store-tabs button:hover{background:#ffffff08;color:var(--gold)}
.store-content{overflow:auto;min-width:0;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:20px}
.store-page{max-width:1440px;margin:0 auto;padding:22px 28px 12px}
#store .section-title{margin:0 0 18px;gap:12px;align-items:center;flex-direction:row;flex-wrap:wrap}
#store .section-title h1{font-size:28px;line-height:1.2;margin:0}
#store .section-title p{font-size:12px;margin:5px 0 0;line-height:1.5}
#store .reset{padding:8px 10px;border:1px solid var(--border);border-radius:6px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--gold)}
#store .card-grid{gap:14px}
#store .card-tile{padding:12px;gap:6px}
#store .card-face{max-width:min(175px,22dvh);aspect-ratio:421/614}
#store .card-tile h3{min-height:38px;font-size:13px;line-height:1.4}
#store .card-tile .rarity{font-size:10px;line-height:1.4;margin-top:5px;padding:4px 6px}
#store .effect-bonus{min-height:30px}
#store .card-tile .buy{min-height:40px;padding:9px 6px;font-size:12px}
#store .section-note{margin:14px 0;font-size:11px}
#store .rarity-guide{margin-top:20px;padding:3px 0}
#store footer{padding:14px 0;font-size:10px;line-height:1.6}
#store .pack-panel{padding:22px;gap:22px;grid-template-columns:minmax(90px,125px) minmax(0,1fr)}
#store .pack-panel h3{font-size:23px;margin:4px 0 8px}
#store .pack-art{height:190px}
#store .pack-panel .eyebrow{font-size:9px;line-height:1.5;margin-bottom:8px}
#store .collection-toolbar,#store .deck-toolbar{gap:10px}
#store .collection-toolbar label,#store .deck-toolbar label{gap:5px}
#store .collection-results{min-height:42px;font-size:11px}
#store .section-link{font-size:12px;padding:6px 0}
#store .deck-overview{padding:12px 16px;gap:20px;margin-bottom:16px}
#store .deck-overview>div{min-width:90px;gap:4px}
#store .deck-overview strong{font-size:23px}
#store .deck-overview p{gap:16px;font-size:12px}
#store .deck-help{margin:10px 0 14px;font-size:11px}
#store .saved-deck-layout{gap:16px}
#store .saved-deck-layout .deck-panel{padding:16px}
#store .forge-tabs{margin:0 0 16px}
#store .forge-tabs button{padding:10px 12px;min-height:42px}
#store .seal-wallet{padding:8px 12px;width:auto}
#store .forge-workbench{padding:20px}
#store .forge-selection h3{font-size:22px;margin:0 0 10px}
#store .forge-recipe{margin-top:18px;gap:22px}
#store .forge-card-list{max-height:min(44dvh,460px)}
#store .mastery-strip{padding-top:14px;margin-top:18px}
#store .forge-goal{margin-bottom:16px;padding:12px 16px}
/* Home and dungeon chrome share the same restrained spacing. */
.app-shell>header{min-height:60px;height:60px;padding:0 28px}
body:has(.home-hub) .app-shell>header{min-height:60px;height:60px;padding:0 28px}
.home-hub{padding:22px 28px 0}
.hub-heading{margin-bottom:18px;gap:16px}
.hub-heading h1{font-size:clamp(26px,3vw,36px)}
.hub-heading p{margin-top:6px;font-size:13px}
.hub-wallet{padding:8px 12px}
.hub-layout{gap:36px;align-items:start}
.hub-showcase{min-height:280px}
.hub-showcase>.art-card.full-face{width:180px}
.hub-decks h2{margin-bottom:10px}
.hub-deck{min-height:78px;padding:8px 12px;gap:14px}
.hub-deck img{width:38px;height:55px}
.hub-deck strong{font-size:16px}
.hub-deck small{margin-top:3px}
.hub-saved-deck{padding:18px}
.saved-deck-heading img{width:54px;height:79px}
.saved-deck-footer{padding-top:14px;margin-top:14px}
.hub-actions{margin-top:14px}
.hub-actions .btn{min-height:44px}
.hub-footer{margin-top:22px;padding:14px 0}
.resume-run{padding:12px 16px;margin-bottom:16px}
.home-hub .dungeon-levels{margin:0 0 20px}
.home-hub .level-card{padding:14px 18px;gap:16px}
.home-hub .level-card h2{font-size:21px;margin:4px 0}
.home-hub .level-card p{font-size:12px;line-height:1.5}
.home-hub .level-next{padding:9px 18px}
.run-main{padding-top:24px}
.chapter-track{margin-bottom:22px}
.chapter-intro{margin-bottom:22px}
.chapter-intro h1{font-size:32px}
/* Farming keeps tickets and encounter actions above the fold. */
.rematch-header{min-height:60px;padding:12px 28px;gap:16px;flex-wrap:nowrap}
.rematch-brand{font-size:15px}
.rematch-header nav{width:auto;gap:20px;font-size:12px}
.rematch-main{padding:22px 28px 40px}
.rematch-intro{margin-bottom:16px}
.rematch-intro h1{font-size:30px;margin:4px 0 6px}
.rematch-intro p{font-size:12px}
.rematch-intro .eyebrow{font-size:9px;margin-bottom:4px}
.farm-ticket-panel{padding:12px 16px;gap:14px;flex-wrap:nowrap;margin-bottom:12px}
.farm-ticket-mark{width:36px;height:48px;font-size:24px}
.farm-ticket-panel .eyebrow{font-size:9px;letter-spacing:1px}
.farm-ticket-panel strong{font-size:21px;margin:2px 0}
.farm-ticket-panel p{font-size:12px}
.farm-unlock-count{font-size:18px;width:auto;padding:0;text-align:right}
.farm-unlock-count small{display:block;margin:4px 0 0;font-size:10px}
.farm-ticket-hint{margin:0 0 12px;font-size:11px}
.rematch-search{margin:18px 0 12px}
.rematch-search label{margin-bottom:6px;font-size:12px}
.rematch-search input{padding:10px 12px;min-height:42px}
.farm-filters{margin:12px 0 0}
.rematch-count{margin-bottom:12px}
.rematch-tile{padding:16px;gap:12px}
@media(max-width:1100px){
 #store .card-grid.featured{grid-template-columns:repeat(3,minmax(0,1fr))}
 #store .collection-section .card-grid.owned{grid-template-columns:repeat(3,minmax(0,1fr))}
 #store .pack-grid{grid-template-columns:1fr}
 #store .forge-layout{grid-template-columns:190px minmax(0,1fr)}
 #store .forge-recipe{grid-template-columns:minmax(100px,32%) minmax(0,1fr)}
}
@media(max-width:760px){
 #store .store-header{padding:0 16px;height:56px;min-height:56px}
 #store .store-workspace{grid-template-columns:62px minmax(0,1fr);height:calc(100dvh - 56px)}
 #store .store-tabs{padding:10px 5px;gap:5px}
 #store .store-tabs button{min-height:58px}
 #store .brand{font-size:11px;letter-spacing:.07em}
 #store .brand img{width:30px;height:30px}
 .store-page{padding:18px 16px 12px}
 #store .section-title h1{font-size:25px}
 #store .section-title{margin-bottom:16px}
 #store .card-grid.featured,#store .collection-section .card-grid.owned{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #store .card-tile{padding:10px}
 #store .card-face{max-width:min(155px,21dvh)}
 #store .collection-toolbar{grid-template-columns:minmax(0,1fr) auto}
 #store .collection-toolbar .search-field{grid-column:1/-1}
 #store .collection-results{flex-wrap:wrap;gap:4px;padding:8px 0}
 #store .deck-overview{gap:16px;flex-wrap:wrap}
 #store .deck-overview p{width:100%;margin:0;gap:14px;flex-wrap:wrap}
 #store .deck-toolbar{grid-template-columns:1fr 1fr}
 #store .deck-toolbar>label:first-child{grid-column:1/-1}
 #store .saved-deck-layout{grid-template-columns:1fr}
 #store .main-deck .deck-list{grid-template-columns:1fr}
 #store .forge-layout{grid-template-columns:1fr;gap:14px}
 #store .forge-library{padding:12px}
 #store .forge-card-list{max-height:130px}
 #store .forge-library .collection-pagination{margin:8px 0 0}
 #store .forge-selection{flex-wrap:wrap;gap:6px}
 #store .forge-selection button{margin-bottom:0}
 #store .forge-workbench{padding:16px}
 #store .forge-recipe{gap:16px}
 #store .seal-wallet{display:flex;gap:8px;align-items:center}
 #store .seal-wallet small{display:none}
 #store .forge-result-preview .rarity{font-size:9px}
 .home-hub{padding:20px 22px 0}
 .hub-heading{margin-bottom:16px}
 .hub-showcase{display:none}
 .rematch-header{padding:10px 18px;gap:10px}
 .rematch-brand{font-size:13px}
 .rematch-brand img{width:26px;height:26px}
 .rematch-header nav{gap:12px;font-size:11px}
 .rematch-main{padding:18px 18px 32px}
 .rematch-grid{grid-template-columns:1fr}
 .farm-ticket-panel p{font-size:11px}
 .farm-ticket-panel .eyebrow{font-size:8px}
}
@media(max-width:480px){
 #store .store-workspace{grid-template-columns:54px minmax(0,1fr)}
 #store .store-tabs{padding:10px 4px}
 #store .store-tabs button span{font-size:9px}
 #store .store-tabs button svg{width:20px;height:20px}
 #store .brand{font-size:10px}
 #store .wallet{min-width:78px;padding:5px 8px}
 .store-page{padding:16px 12px 10px}
 #store .section-title h1{font-size:24px}
 #store .reset{padding:6px 8px;font-size:10px}
 #store .card-grid.featured,#store .collection-section .card-grid.owned{gap:10px}
 #store .card-tile{padding:9px;gap:5px}
 #store .card-tile .rarity{font-size:9px;padding:4px;letter-spacing:0}
 #store .card-tile h3{font-size:12px;min-height:34px}
 #store .card-tile .buy{font-size:11px}
 #store .card-tile .statline{font-size:11px}
 #store .copy-counts{flex-wrap:wrap;gap:2px}
 #store .pack-panel{padding:16px;gap:16px;grid-template-columns:70px minmax(0,1fr)}
 #store .pack-panel h3{font-size:20px}
 #store .pack-panel .eyebrow{display:none}
 #store .pack-art{height:138px;gap:10px}
 #store .pack-art span{font-size:5px}
 #store .pack-art strong{font-size:9px}
 #store .pack-art b{font-size:32px}
 #store .forge-tabs{gap:4px}
 #store .forge-tabs button{font-size:11px;padding:10px 5px}
 #store .forge-recipe{grid-template-columns:minmax(85px,34%) minmax(0,1fr);gap:12px}
 #store .forge-requirements li{font-size:11px;padding:8px 0;flex-wrap:wrap}
 #store .forge-requirements .buy{font-size:11px;white-space:normal}
 #store .collection-links{gap:12px}
 .home-hub{padding:16px 16px 0}
 .hub-heading h1{font-size:26px}
 .hub-heading p{font-size:12px;max-width:195px}
 .hub-wallet{padding:8px;gap:3px 6px}
 .hub-saved-deck{padding:14px}
 .hub-deck{min-height:74px;gap:12px;padding:8px 12px}
 .hub-deck strong{font-size:15px}
 .hub-deck small{font-size:11px}
 .hub-deck img{width:35px;height:51px}
 .hub-deck-list{gap:8px}
 .home-hub .level-card{padding:12px;gap:12px}
 .home-hub .level-card h2{font-size:19px}
 .home-hub .level-card p{font-size:11px}
 .home-hub .level-next{padding:8px 12px;gap:10px}
 .home-hub .dungeon-levels{margin-bottom:16px}
 .hub-footer{margin-top:16px;padding:12px 0}
 body:has(.home-hub) .app-shell>header,.app-shell>header{height:56px;min-height:56px;padding:0 14px}
 body:has(.home-hub) .app-shell>header nav{gap:12px}
 body:has(.home-hub) header .brand{font-size:10px}
 body:has(.home-hub) header nav .text-btn{font-size:10px}
 .rematch-header{flex-wrap:wrap;gap:8px}
 .rematch-header nav{width:100%;justify-content:space-between}
 .farm-ticket-panel{padding:12px;gap:10px}
 .farm-ticket-mark{display:none}
 .farm-ticket-panel strong{font-size:20px}
 .farm-unlock-count{font-size:16px}
 .rematch-intro h1{font-size:28px}
}

.forge-library-toggle{display:none}
@media(max-width:760px){
 #store .forge-library-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:24px;background:none;color:var(--gold);border:0;text-align:left;padding:0;font-size:12px}
 #store .forge-library:not(.is-open) .forge-library-body{display:none}
 #store .forge-library.is-open .forge-library-body{margin-top:14px}
 #store .forge-library.is-open .forge-card-list{max-height:180px}
 #store .seal-wallet{flex-direction:row}
 #store .seal-wallet b{font-size:18px}
 #store .seal-wallet span{font-size:10px}
}
@media(max-width:800px){
 body:has(.campaign-sidebar) .app-shell>header{height:56px;min-height:56px;padding:0 16px}
 body:has(.campaign-sidebar) .run-layout{padding:16px 18px 30px;gap:18px}
 .campaign-sidebar{grid-template-columns:minmax(0,1fr) auto auto;gap:12px;padding:0 0 14px;align-items:center}
 .campaign-sidebar>div:first-child{grid-row:1;grid-column:1}
 .campaign-sidebar>div:first-child h2{font-size:14px}
 .campaign-sidebar>div:first-child .run-label{display:none}
 .campaign-sidebar .campaign-purse{grid-row:1;grid-column:2}
 .campaign-sidebar .run-chip-panel{grid-row:1;grid-column:3;background:none;border:0;padding:0;margin:0}
 .campaign-sidebar .run-chip-panel>div{flex-direction:column;align-items:end;gap:3px;font-size:10px}
 .campaign-sidebar .run-chip-panel strong{font-size:20px}
 .campaign-sidebar .run-chip-panel>small{display:none}
 .campaign-sidebar>.btn{grid-row:2;grid-column:1;min-height:38px;padding:8px 10px;justify-self:start}
 .campaign-sidebar>.text-btn{grid-row:2;grid-column:2/4;text-align:right;min-height:38px}
 .campaign-sidebar .campaign-summary{display:none}
 .campaign-sidebar>.campaign-invite{grid-row:3;grid-column:1/-1;justify-self:start}
 .campaign-sidebar .relic-list{grid-row:4;grid-column:1/-1;margin:0}
 .campaign-map .chapter-track{margin-bottom:18px}
 .campaign-map .chapter-intro{margin-bottom:18px}
 .campaign-map .chapter-intro h1{font-size:28px;margin:8px 0}
 .campaign-map .tile-content{padding:20px}
 .campaign-map .tile-content>p{margin-bottom:16px}
 .campaign-map .route-journal{margin-top:18px}
 .campaign-map .route-journal>summary{padding:14px 16px}
}
@media(max-width:480px){
 .campaign-sidebar{gap:10px}
 .campaign-sidebar>div:first-child h2{font-size:12px}
 .campaign-sidebar .run-chip-panel>div{font-size:9px}
 .campaign-map .chapter-intro h1{font-size:26px}
 .campaign-map .tile-content{padding:16px 14px}
 .campaign-map .tile-content h2{font-size:23px}
}
