/* One navigation system for the hub, collection, exchange and farm duels. */
:root{--nav-width:184px;--site-header:60px}
body:has(.site-workspace){overflow:hidden}
#app .site-header,#store .site-header,#coop-app .site-header{height:var(--site-header);min-height:var(--site-header);padding:0 24px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);background:#100d19;margin:0;max-width:none}
.site-brand{display:flex;align-items:center;gap:10px;color:var(--cream,var(--text));text-decoration:none;letter-spacing:.13em;font-family:Georgia,serif;font-weight:600;font-size:14px}
.site-brand img{width:34px;height:34px}
.site-balance{display:flex;align-items:center;gap:8px;border:1px solid #e8c77730;background:#e8c77708;border-radius:8px;padding:7px 11px;text-decoration:none;color:var(--gold);white-space:nowrap}
.site-balance>span{font-size:22px}.site-balance b{font-size:17px;font-variant-numeric:tabular-nums}.site-balance small{font-size:10px;color:var(--soft);margin-left:3px}
.site-wallets{display:flex;align-items:stretch;gap:6px}
.site-shards{color:#ddc6fc;border-color:#c6a5e63d;background:#c6a5e60d}
.site-shards svg{width:20px;height:20px;flex:none}
.site-seals{color:#b9e5cc;border-color:#a2d3b83d;background:#a2d3b80d}
.farm-ticket-icon{width:1.1em;height:1.1em;vertical-align:-.18em}
.site-workspace,#store .store-workspace{display:grid;grid-template-columns:var(--nav-width) minmax(0,1fr);height:calc(100dvh - var(--site-header));min-height:0;padding:0;margin:0;max-width:none}
.site-nav{grid-column:1;grid-row:1;display:flex;align-items:stretch;justify-content:flex-start;flex-direction:column;gap:4px;padding:16px 12px;overflow:auto;border-right:1px solid var(--border);background:#100d19b3;min-width:0;scrollbar-width:thin}
.site-nav .nav-group{font:10px Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#91879f;margin:12px 10px 5px}.site-nav .nav-group:first-child{margin-top:0}
.site-nav .site-nav-item{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px;border:1px solid transparent;border-radius:7px;text-decoration:none;font-size:12px;line-height:1.3;color:var(--soft);transition:background .15s,color .15s;flex-shrink:0}
.site-nav-item svg{width:20px;height:20px;flex-shrink:0}.site-nav-item .nav-short{display:none}
.site-nav .site-nav-item.active{color:var(--gold);border-color:#e8c77735;background:#e8c7770e;box-shadow:inset 2px 0 var(--gold)}
.site-nav .site-nav-item:hover{background:#ffffff08;color:var(--cream,var(--text))}.site-nav .site-nav-credit{margin-top:auto;padding:22px 10px 4px;color:#91879f;font-size:10px;line-height:1.4;text-decoration:none}
.site-workspace>main{grid-column:2;grid-row:1;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;width:100%}
.hub-dashboard.home-hub{padding:28px 32px 18px;max-width:1400px;margin:0 auto}
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.dashboard-heading .eyebrow{font-size:10px;letter-spacing:.14em;margin:0 0 7px}.dashboard-heading h1{font-size:clamp(25px,2.8vw,36px);line-height:1.2;margin:0}.dashboard-heading>.text-btn{font-size:12px;white-space:nowrap;min-height:40px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px;align-items:stretch}
.hub-chapter,.hub-deck-panel{padding:24px;border-radius:14px;border:1px solid var(--border);background:linear-gradient(135deg,#241d2f,#171221)}
.hub-chapter{border-color:#e8c77740}.chapter-card-heading{display:flex;align-items:center;gap:16px;justify-content:space-between}.chapter-card-heading .eyebrow{font-size:10px;letter-spacing:.12em;margin:0 0 8px}.chapter-card-heading h2{font-size:27px;margin:0;line-height:1.2}.chapter-card-heading p{font-size:12px;line-height:1.5;color:var(--soft);margin:8px 0 0}.chapter-card-heading>img{width:62px;height:72px;object-fit:cover;object-position:top;border-radius:9px;border:1px solid #e8c77735}
.hub-current-run{margin-top:24px}.hub-run-status{display:flex;align-items:center;gap:7px;font-size:12px}.hub-run-status>span:last-child{margin-left:auto;color:var(--gold);font-size:11px;border:1px solid #e8c77730;padding:3px 7px;border-radius:5px}.status-dot{width:6px;height:6px;border-radius:50%;background:#b9cca1}.hub-current-run>p{font-size:12px;color:var(--soft);margin:10px 0}.hub-current-run>p>span{white-space:nowrap}.hub-run-progress{height:4px;border-radius:3px;background:#ffffff0c;margin:14px 0 20px;overflow:hidden}.hub-run-progress>span{height:100%;display:block;background:var(--gold);border-radius:3px}.hub-current-run>.btn,.hub-run-setup .btn{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:46px;font-size:13px;padding:12px 16px}
.hub-run-note{display:flex;align-items:center;gap:12px;margin:22px 0;color:var(--gold)}.hub-run-note>span{font-size:28px}.hub-run-note p{font-size:12px;line-height:1.7;margin:0;color:var(--soft)}.hub-run-note strong{font-weight:400;color:var(--cream,var(--text))}
.hub-run-setup{margin-top:18px}.hub-setup-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-top:1px solid var(--border);background:none;color:var(--soft);padding:14px 0 0;font:inherit;font-size:12px;min-height:40px;cursor:pointer}.hub-setup-toggle:hover{color:var(--gold)}
.hub-run-setup [hidden]{display:none!important}.hub-dashboard .difficulty-picker{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 14px;padding:0;margin:14px 0;background:none;border:0;align-items:center}.hub-dashboard .difficulty-picker label{font-size:12px}.hub-dashboard .difficulty-picker select{width:100%;min-width:0;font-size:12px;height:40px;min-height:40px;padding:8px 12px}.hub-dashboard .difficulty-picker>span{display:none}.hub-dashboard .difficulty-picker>small{grid-column:1/-1;font-size:11px;line-height:1.5;margin:0;color:var(--soft)}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.hub-decks .panel-heading h2{font-family:inherit;font-size:15px;line-height:1.4;margin:0}.panel-heading>.text-btn,.panel-heading>span{font-size:11px;color:var(--gold)}
.hub-deck-preview{display:flex;align-items:center;gap:24px;margin:22px 0}.hub-deck-preview>img{width:106px;aspect-ratio:421/614;object-fit:contain;filter:drop-shadow(0 8px 14px #0005);transform:rotate(-3deg)}.hub-deck-preview .eyebrow{font-size:9px;letter-spacing:.12em;margin:0 0 8px}.hub-deck-preview h3{font-size:24px;line-height:1.25;margin:0}.hub-deck-preview p{font-size:12px;margin:8px 0;color:var(--soft)}.hub-deck-count{display:flex;gap:20px;margin-top:18px;color:var(--soft);font-size:11px}.hub-deck-count b{font-size:20px;color:var(--cream,var(--text));display:block;margin-bottom:3px;font-weight:500}
.hub-collection-link{border-top:1px solid var(--border);padding-top:16px;margin-top:18px;display:flex;justify-content:space-between;gap:12px;color:var(--gold);text-decoration:none;font-size:12px;line-height:1.5}
.hub-dashboard .hub-deck-list{gap:8px}.hub-dashboard .hub-deck{min-height:65px;padding:8px 10px}.hub-dashboard .hub-deck img{width:30px;height:44px}.hub-dashboard .hub-deck strong{font-size:14px}.hub-dashboard .hub-deck small{font-size:11px}.hub-starter-note{font-size:11px;color:var(--soft);line-height:1.6;margin:14px 0 0}
.hub-shortcut{display:flex;align-items:center;gap:16px;padding:18px 22px;border:1px solid var(--border);border-radius:11px;background:#171221;text-align:left;color:var(--cream,var(--text));text-decoration:none;cursor:pointer;font:inherit;min-width:0}.hub-shortcut:hover{border-color:#e8c77770;background:#21192b}.shortcut-symbol{font-size:25px;color:var(--gold);width:28px;text-align:center}.hub-shortcut>div{flex:1;min-width:0}.hub-shortcut h2{font-family:inherit;font-size:14px;margin:0}.hub-shortcut p{color:var(--soft);font-size:11px;line-height:1.6;margin:5px 0 0}.hub-shortcut>span:last-child{color:var(--gold)}
.dashboard-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0 0;font-size:10px;color:#91879f}.dashboard-footer .text-btn{font-size:11px;min-height:36px}.farm-workspace .rematch-main{max-width:1440px;margin:0 auto;padding:24px 28px}.farm-workspace .rematch-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.farm-workspace .rematch-tile .rematch-actions{flex-wrap:wrap}.farm-workspace .rematch-search>p{font-size:11px}.farm-workspace .difficulty-picker{margin:12px 0}
@media(min-width:1600px){.hub-dashboard.home-hub{padding-top:36px}.hub-chapter,.hub-deck-panel{padding:30px}.hub-deck-preview{margin:28px 0}.hub-deck-preview>img{width:120px}}
@media(max-width:1100px){:root{--nav-width:160px}.site-nav{padding:16px 8px}.site-nav .site-nav-item{gap:9px;font-size:11px}.hub-dashboard.home-hub{padding:22px}.hub-chapter,.hub-deck-panel{padding:20px}.hub-deck-preview{gap:16px}.hub-deck-preview>img{width:85px}.hub-deck-preview h3{font-size:21px}.farm-workspace .rematch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){:root{--nav-width:64px;--site-header:56px}.site-nav{padding:12px 5px;gap:5px}.site-nav .nav-group,.site-nav-item .nav-full,.site-nav .site-nav-credit{display:none}.site-nav .site-nav-item{flex-direction:column;justify-content:center;gap:5px;padding:8px 2px;min-height:55px}.site-nav-item .nav-short{display:block;font-size:9px}.site-nav-item svg{width:21px;height:21px}.dashboard-grid{gap:14px}.hub-dashboard.home-hub{padding:22px}.dashboard-heading h1{font-size:27px}.hub-chapter,.hub-deck-panel{padding:18px}.hub-deck-preview{gap:14px}.hub-deck-preview>img{width:76px}.chapter-card-heading>img{width:48px;height:60px}.chapter-card-heading h2{font-size:23px}.hub-shortcut{padding:16px;gap:10px}.hub-shortcut p{font-size:10px}}
@media(max-width:650px){.hub-dashboard.is-new .hub-deck-panel{order:-1}#app .site-header,#store .site-header{padding:0 14px}.site-brand{font-size:11px;letter-spacing:.08em;gap:8px}.site-brand img{width:28px;height:28px}.site-balance{padding:6px 8px;gap:5px}.site-balance small{display:none}.site-balance b{font-size:15px}.site-balance>span{font-size:19px}.hub-dashboard.home-hub{padding:20px 16px 12px}.dashboard-heading{margin-bottom:18px;align-items:start}.dashboard-heading h1{font-size:25px;max-width:250px}.dashboard-heading .eyebrow{font-size:8px}.dashboard-heading>.text-btn{font-size:10px}.dashboard-grid{grid-template-columns:1fr}.hub-current-run{margin-top:20px}.hub-deck-preview{margin:14px 0;gap:20px}.hub-deck-preview>img{width:66px}.hub-deck-preview h3{font-size:22px}.hub-deck-count{margin-top:12px}.hub-deck-count b{display:inline;font-size:15px;margin-right:4px}.hub-deck-preview .eyebrow{display:none}.panel-heading{margin-bottom:12px}.hub-collection-link{margin-top:14px;padding-top:12px}.dashboard-footer{flex-wrap:wrap;gap:4px}.farm-workspace .rematch-main{padding:20px 16px}.farm-workspace .rematch-grid{grid-template-columns:1fr}.farm-workspace .difficulty-picker{flex-wrap:wrap}.farm-workspace .farm-ticket-panel{flex-wrap:wrap}.farm-workspace .farm-unlock-count{font-size:14px}.farm-workspace .farm-unlock-count small{display:inline;margin-left:5px}.farm-workspace .farm-ticket-panel .eyebrow{font-size:9px}}
@media(max-width:390px){:root{--nav-width:56px}.site-brand{font-size:10px}.hub-dashboard.home-hub{padding:18px 12px 10px}.dashboard-heading{flex-direction:column;gap:3px}.dashboard-heading>.text-btn{min-height:28px}.hub-chapter,.hub-deck-panel{padding:16px}.chapter-card-heading h2{font-size:22px}.chapter-card-heading>img{width:42px;height:53px}}
@media(prefers-reduced-motion:reduce){.site-nav .site-nav-item{transition:none}}
@media(max-width:1100px){
 .site-wallets .site-balance{display:grid;grid-template-columns:auto auto;column-gap:6px;row-gap:0;line-height:1.1;padding:5px 8px}
 .site-wallets .site-balance>:is(span,svg){grid-row:span 2}
 .site-wallets .site-balance b{font-size:15px}
 .site-wallets .site-balance small{display:block;margin:0;font-size:9px}
 .site-shards svg{width:16px;height:16px}
 .site-balance .currency-label-full{display:none}
}
@media(max-width:900px){
 .site-brand{font-size:11px;letter-spacing:.08em;gap:8px}
 .site-brand img{width:28px;height:28px;flex-shrink:0}
}
@media(max-width:760px){
 :root{--site-header:98px}
 #app .site-header,#store .site-header,#coop-app .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:44px 36px;align-content:center;gap:6px 8px;padding-inline:14px}
 .site-header .site-header-actions{display:contents}
 .site-wallets{grid-column:1/-1;justify-content:flex-end}
 .site-wallets .site-balance{min-height:36px;padding:4px 8px}
 .site-wallets .site-balance b{font-size:14px}
}
@media(max-width:340px){
 .site-wallets .site-balance{padding-inline:5px;column-gap:4px}
 .site-wallets .site-balance b{font-size:12px}
 .site-wallets .site-balance>span{font-size:16px}
}
/* On phones, a labelled menu returns the sidebar space to the current task. */
.nav-desktop{display:flex;flex-direction:column;gap:4px;min-height:100%}
.nav-mobile{display:none}
@media(max-width:650px){
 .site-workspace,#store .store-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .site-workspace>.site-nav,#store .store-workspace>.site-nav{grid-column:1;grid-row:1;padding:0 12px;border-right:0;border-bottom:1px solid var(--border);overflow:visible;z-index:3;background:#15101e}
 .nav-desktop{display:none}
 .nav-mobile{display:block;min-width:0}
 .nav-mobile>summary{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;color:var(--gold)}
 .nav-mobile>summary::-webkit-details-marker{display:none}
 .nav-mobile>summary>span{display:flex;flex-direction:column;gap:3px;min-width:0}
 .nav-mobile>summary small{font:9px Arial,sans-serif;letter-spacing:.1em;color:#a99bb8}
 .nav-mobile>summary strong{font-size:13px;font-weight:500;color:#f0e7d6}
 .nav-mobile>summary>b{display:flex;align-items:center;gap:8px;font-size:13px;padding:8px 12px;border:1px solid #e8c77735;border-radius:7px;font-weight:500}
 .nav-mobile[open]>summary>b{background:#e8c77718}
 .nav-mobile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:4px 0 12px;max-height:45dvh;overflow:auto;overscroll-behavior:contain}
 .site-nav .nav-mobile .nav-group{display:block;grid-column:1/-1;margin:10px 8px 3px}
 .site-nav .nav-mobile .site-nav-item{flex-direction:row;justify-content:flex-start;gap:9px;padding:9px;min-height:48px;font-size:12px}
 .nav-mobile .site-nav-item .nav-full{display:block}
 .nav-mobile .site-nav-item .nav-short{display:none}
 .site-nav .nav-mobile .site-nav-credit{display:block;grid-column:1/-1;margin:0;padding:12px 8px;min-height:44px}
 .site-workspace>main,#store .store-workspace>.store-content{grid-column:1;grid-row:2;min-height:0}
}

.site-nav .site-nav-account{margin-bottom:6px;border-color:#e8c77730;background:#e8c77708}
.site-nav-account img{display:block;flex:none;border-radius:6px;object-fit:cover;object-position:center 28%;background:#21192e}
.nav-mobile .site-nav-account{grid-column:1/-1}
