/* Capabilities and viewport widths cover tablets, split-screen and foldables. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body .site-nav{flex-wrap:nowrap;justify-content:safe center;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:10px}
.site-main{min-width:0}
.site-main video,.site-main iframe{max-width:100%}
.site-main input,.site-main select,.site-main textarea{min-width:0}
@media(pointer:coarse){
 body .site-nav a{min-height:44px;display:flex;align-items:center;padding:8px 12px}
 .site-auth a,.site-auth button{display:inline-flex;align-items:center;min-height:40px}
 .site-main button,.site-main .button,.avatar-tabs button,.catalog-categories button{min-height:44px;touch-action:manipulation}
 .site-main input,.site-main select,.site-main textarea{font-size:16px;min-height:44px}
 .site-main input[type=checkbox],.site-main input[type=radio]{min-height:0;width:20px;height:20px}
}
@media(max-width:1024px){
 body .site-header,body .site-main,body .site-footer{max-width:calc(100% - 16px)}
 body .site-nav{justify-content:flex-start}
 .site-main .classic-columns{gap:12px}
 .site-main .catalog-toolbar{flex-wrap:wrap}
 .site-main .catalog-categories,.avatar-tabs{max-width:100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain}
 .site-main .catalog-categories>*,.avatar-tabs>*{flex-shrink:0}
}
@media(max-width:600px){
 body .site-main{padding:10px;margin-top:8px}
 .site-banner .site-auth{font-size:13px}
 .site-banner .site-play img{width:140px}
 .site-main .classic-columns,.site-main .auth-layout,.site-main .account-layout,.site-main .profile-layout,.site-main .composer-fields{grid-template-columns:minmax(0,1fr)}
 .site-main .profile-character img{height:240px;max-width:100%}
 .site-main .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .site-main .catalog-toolbar>*{min-width:0;max-width:100%}
 .site-main .classic-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .site-main .classic-results-header{flex-wrap:wrap}
 .site-main .DisplayFilters ul{display:flex;flex-wrap:wrap;gap:8px 14px;margin:8px 0 14px!important}
 .site-main .character-layout{grid-template-columns:minmax(0,1fr)}
 .site-main .avatar-controls{position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid #aaa}
 .site-main .avatar-sticky{position:static}
 .site-main .avatar-controls .character-preview{height:clamp(145px,26dvh,220px);min-height:145px}
 .site-main .wardrobe-panels{max-height:none;overflow:visible;padding:0}
 .site-main .wardrobe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .site-main .community-table{display:block;overflow-x:auto}
 .site-main .forum-post{grid-template-columns:85px minmax(0,1fr)}
 .site-main .post-author img{width:70px;height:100px}
 .site-main .post-content{overflow-wrap:anywhere}
}
@media(max-width:380px){.site-main .wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-main .classic-game-grid{grid-template-columns:1fr}}
