/* Dedicated mobile-device presentation. Applied only when mobile-device.js identifies a phone/tablet. */
html.mobile-device body{padding-bottom:76px}
html.mobile-device .topbar{position:sticky;top:0;padding:10px 14px;display:block}
html.mobile-device .topbar>div{display:flex;align-items:baseline;gap:8px}
html.mobile-device .topbar .eyebrow{display:none}
html.mobile-device .topbar h1{font-size:17px;margin:2px 0 8px}
html.mobile-device .topbar nav{position:fixed;z-index:50;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:7px max(6px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:rgba(13,15,19,.97);border-top:1px solid var(--line);backdrop-filter:blur(14px)}
html.mobile-device .nav{min-height:48px;padding:7px 3px;border-radius:8px;font-size:11px;font-weight:700}
html.mobile-device main{padding:14px 12px 30px;max-width:none}
html.mobile-device .hero,html.mobile-device .sectionHead{display:block;margin:6px 0 18px}
html.mobile-device .hero h2,html.mobile-device .sectionHead h2,html.mobile-device .importBox h2{font-size:28px;line-height:1.05;margin:6px 0 8px}
html.mobile-device .hero>div:last-child{margin-top:12px}
html.mobile-device .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
html.mobile-device .stat{padding:11px}
html.mobile-device .stat strong{font-size:21px}
html.mobile-device .toolbar{display:grid;grid-template-columns:1fr 1fr;gap:7px;position:sticky;top:54px;z-index:6;background:#0d0f13;padding:8px 0}
html.mobile-device .toolbar input{grid-column:1/-1}
html.mobile-device .toolbar input,html.mobile-device .toolbar select{min-height:44px;padding:10px;font-size:16px}
html.mobile-device .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.mobile-device .card{border-radius:10px}
html.mobile-device .cardBody{padding:9px}
html.mobile-device .cardName{font-size:13px}
html.mobile-device .meta{font-size:10px}
html.mobile-device .badge{font-size:9px;padding:3px 5px}
html.mobile-device .deckGrid{grid-template-columns:1fr;gap:10px}
html.mobile-device .deck{padding:16px}
html.mobile-device .deckTile{min-height:0}
html.mobile-device .deckActions{grid-template-columns:1fr 1fr}
html.mobile-device .deckActionPrimary{grid-column:1/-1}
html.mobile-device .builderLayout{display:block}
html.mobile-device .buildList{position:static;display:flex;flex-direction:row;overflow-x:auto;gap:7px;margin-bottom:12px;padding-bottom:4px;scrollbar-width:none}
html.mobile-device .buildList::-webkit-scrollbar{display:none}
html.mobile-device .buildListItem{min-width:150px;flex:0 0 auto}
html.mobile-device .buildWorkspace{padding:14px;border-radius:12px;min-height:0}
html.mobile-device .builderHead{display:block;margin-bottom:15px}
html.mobile-device .builderHead h2{font-size:25px}
html.mobile-device .builderActions{margin-top:10px}
html.mobile-device .builderActions button,html.mobile-device .primary{min-height:44px}
html.mobile-device .cardAdder{display:block}
html.mobile-device .cardAdder .commanderCheck{padding:10px 0}
html.mobile-device .buildCardRow{gap:8px}
html.mobile-device .qtyControls{gap:5px}
html.mobile-device .qtyControls button{width:38px;height:38px}
html.mobile-device .builderCardPreview{display:none!important}
html.mobile-device .modal{padding:0;align-items:flex-end}
html.mobile-device .modal.open{align-items:flex-end}
html.mobile-device .modalCard{margin:0;width:100%;max-width:none;max-height:92dvh;overflow:auto;border-radius:18px 18px 0 0;padding:20px 15px calc(22px + env(safe-area-inset-bottom))}
html.mobile-device .detail{display:block}
html.mobile-device .detail img{display:block;max-width:210px;margin:0 auto 16px}
html.mobile-device .deckModalHead{display:block;padding-right:32px}
html.mobile-device .deckModalHead .primary{margin-top:12px;width:100%}
html.mobile-device .deckStats,html.mobile-device .deckCountStats{grid-template-columns:repeat(2,minmax(0,1fr))}
html.mobile-device .deckRow{display:block}
html.mobile-device .deckRow>span:last-child{display:block;text-align:left;margin-top:4px}
html.mobile-device .copy{gap:10px;flex-direction:column}
html.mobile-device .emptyState,html.mobile-device .importBox{padding:24px 14px}
html.mobile-device .importBox .primary{width:100%;margin-top:16px}
html.mobile-device footer{padding:18px 12px calc(18px + env(safe-area-inset-bottom))}
@media(max-width:380px){html.mobile-device .grid{grid-template-columns:1fr}html.mobile-device .stats{grid-template-columns:1fr 1fr}html.mobile-device .nav{font-size:10px}}
