/* Shared small-screen polish. Desktop layouts retain their existing structure. */
html{scroll-padding-top:16px}img{max-width:100%}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid #e2bf77;outline-offset:3px}
@media(max-width:760px){
 body{background-attachment:fixed;line-height:1.5}
 .wrap{padding:14px!important;width:100%;min-width:0}
 .mfnav{gap:4px!important;align-items:center!important;row-gap:6px!important}
 .mfnav .brandLink{flex:0 0 100%;border-right:0!important;font-size:19px!important;margin-bottom:5px;padding:6px 2px!important}
 .mfnav>a:not(.brandLink){display:inline-flex;align-items:center;min-height:44px;padding:8px!important;font-size:12px}
 .mfnav .sp{display:none}.mfnav #navAuth{flex:0 0 100%;justify-content:flex-end;margin-top:3px;min-width:0}.mfnav #navAuth:empty{display:none}
 .top{gap:16px!important}.brand{width:100%}.wordmark{font-size:30px!important}.heroSummary{line-height:1.5}
 .controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;width:100%;align-items:end!important}
 .controls>div{min-width:0}.controls label{font-size:11px;line-height:1.4;margin-bottom:6px}.controls select{width:100%;min-width:0}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;max-width:100%}
 button,select{min-height:44px}button{touch-action:manipulation}.controls>.primary{font-weight:600}.controls .more>button{width:100%}
 .grid,.game,.rightGrid,.gear{grid-template-columns:minmax(0,1fr)!important}.grid>*,.game>*,.rightGrid>*,.gear>*{min-width:0}
 .tbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;padding:12px!important}
 .tbar .barLbl,.tbar #codeIn,.tbar #buildSel{grid-column:1/-1}.tbar input,.tbar select{min-width:0!important;width:100%}.tbar .barSep{display:none}.tbar .barLbl{margin:0;font-size:11px}
 .affixFilters{gap:10px!important}.affixFilters #whatFits{flex-basis:100%}.affixFilters input{min-width:0;flex:1 1 100%}.affixFilters select{width:100%}
 .agrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:12px!important}.atile{min-width:0}.anm{overflow-wrap:anywhere}
 .game{padding:12px!important;gap:14px!important}.lgrid{max-width:100%!important;gap:10px!important}.gright{padding:12px!important}
 .status,.howto,.notesRow,.notice{overflow-wrap:anywhere}.status button{margin-top:6px}.eqv{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.eqv #eqvNote{flex-basis:100%}
 .altItems{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.altHead{gap:8px!important}.altCode input{min-width:0!important;flex-basis:100%}.altCode button{flex:1}
 #altCard>h2{flex-wrap:wrap;gap:12px;line-height:1.4}#altCard>h2 span{flex-basis:100%;font-size:12px}#findAlts{width:100%}
 .details{padding:10px!important;font-size:17px!important}.details h3{display:flex;flex-wrap:wrap;gap:10px}.dsock{grid-template-columns:minmax(0,1fr)!important}
 .ahrow{grid-template-columns:48px minmax(0,1fr)!important;gap:8px!important;padding:10px!important}.ahart{width:48px!important;height:48px!important}.ahright{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.ahname,.ahmid{min-width:0;overflow-wrap:anywhere}.ahhead{flex-wrap:wrap;gap:6px}
 .dlg{padding:12px}.dlgBox{width:100%!important;max-width:520px;max-height:90dvh;overflow-y:auto;padding:16px!important}.dlgAct{display:flex;flex-wrap:wrap;gap:8px}.dlgAct button{flex:1}
 .acard{left:12px!important;right:12px!important;top:auto!important;bottom:12px;width:auto!important;max-width:none!important;max-height:75dvh;overflow-y:auto;border-radius:12px!important;padding:16px!important}.acard .asegs i{height:30px}.acard .aacts button{min-height:44px}.acard .acx{min-width:44px;min-height:44px}
 .totHead,.totRow{grid-template-columns:minmax(70px,1fr) repeat(4,34px) minmax(30px,1fr)!important;gap:3px!important;padding:8px!important;font-size:12px}.statGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.statGrid>*{min-width:0;overflow-wrap:anywhere}
 .tools{gap:10px!important;flex-wrap:wrap}.tools input{min-width:0!important;width:100%;flex-basis:100%}.cards{grid-template-columns:minmax(0,1fr)!important}
 .footer{line-height:1.7;padding-bottom:env(safe-area-inset-bottom,12px)}
}
@media(max-width:380px){.agrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.mfnav>a:not(.brandLink){padding:7px 6px!important;font-size:11px}.statGrid{grid-template-columns:1fr!important}}

@media(max-width:760px){.gright .prow{grid-template-columns:38px minmax(0,1fr)!important;gap:10px!important}.gright .prow>div{min-width:0}.gright .prow .pright{grid-column:2;justify-content:space-between;flex-wrap:wrap}.gright .prow .rowAct{opacity:1!important;flex-wrap:wrap}.gright .rowAct button{min-width:40px}.gright .prow .segs{display:flex;gap:3px}.gright .prow .segs i{flex:1;min-width:0;width:auto!important;height:18px!important}.gright .prow .pn{font-size:16px!important}}

@media(max-width:760px){.bcard .bhead{flex-wrap:wrap}.bcard .bhead>div{min-width:0}.bcard .bname,.bcard .bnotes{overflow-wrap:anywhere}.bcard .bact input{flex-basis:100%;min-width:0}.bcard .bact .btn{display:inline-flex;align-items:center;min-height:44px}.bar input{min-width:0!important}.pick{grid-template-columns:minmax(0,1fr)!important}}
