/* EternalMU responsive polish for tablet and mobile screens. */
html{min-width:0}
body.em-body{width:100%;max-width:100%;overflow-x:hidden}
.em-shell,.em-footer,.em-topbar__inner,.em-md-shell,.em-md-flash{width:100%;min-width:0}
.em-panel,.em-tabs,.em-market,.em-form-shell,.em-account-main,.em-account-menu,.em-news-panel,.em-side-panel,.em-download-card,.em-price-card{min-width:0}
.em-table-wrap,.em-md-items,.em-md-warehouse{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.em-table-wrap:focus,.em-md-items:focus,.em-md-warehouse:focus{outline:1px solid rgba(243,199,107,.35);outline-offset:2px}
input,select,textarea,button{font:inherit;max-width:100%}
button,a,input,select{touch-action:manipulation}

@media (max-width:1280px){
  .em-shell{padding-left:18px;padding-right:18px}
  .em-hero{grid-template-columns:minmax(0,1fr) 380px;gap:24px}
  .em-market-grid,.em-md-items.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-md-search{flex:1 1 420px}
  .em-md-item{grid-template-columns:70px minmax(180px,1.2fr) minmax(120px,.8fr) minmax(180px,1fr) 112px}
  .em-md-item-price{padding-right:10px}
}

@media (max-width:1100px){
  .em-topbar{padding:10px 12px}
  .em-topbar__inner{min-height:64px;border-radius:18px;gap:12px;overflow:visible}
  .em-brand__logo-img{max-height:54px;width:auto}
  .em-nav{z-index:80;max-height:calc(100vh - 108px);overflow:auto}
  .em-nav a{padding:15px 16px;text-align:center}
  .em-shell{padding-top:24px}
  .em-page-head{padding:44px 10px 22px}
  .em-page-head h1{font-size:clamp(34px,8vw,58px);line-height:1.02}
  .em-page-head p{font-size:16px;line-height:1.55}
  .em-section--split,.em-download-grid,.em-pricing-grid,.em-account-grid{grid-template-columns:1fr}
  .em-news-list,.em-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-form{grid-template-columns:1fr;max-width:760px}
  .em-tab-buttons,.em-view-switch,.em-account-menu{display:flex;overflow-x:auto;gap:10px;-webkit-overflow-scrolling:touch}
  .em-tab-buttons button,.em-view-switch button,.em-account-menu a{white-space:nowrap;flex:0 0 auto}
  .em-stat-grid,.em-stat-grid--account{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-equipment-grid{grid-template-columns:repeat(4,minmax(54px,1fr))}
  .em-md-market{padding:0 12px 56px}
  .em-md-tabs{height:auto;justify-content:flex-start;overflow-x:auto;padding-bottom:8px}
  .em-md-tab{flex:0 0 auto}
  .em-md-walletbar{justify-content:flex-start}
  .em-md-wallet-user{margin-right:0}
  .em-md-filterbox{padding:12px}
  .em-md-row,.top-search,.segmented,.last-filters{flex-wrap:wrap;align-items:stretch}
  .em-md-search{flex:1 1 100%;height:42px}
  .em-md-class-icons,.em-md-rarity,.em-md-levels,.em-md-options2,.em-md-currencies,.em-md-seg{width:100%;overflow-x:auto}
  .em-md-class,.em-md-rarity button,.em-md-levels button,.em-md-options2 button,.em-md-currencies button,.em-md-seg button{flex:1 0 auto;min-width:76px}
  .em-md-toolbar{height:auto;flex-wrap:wrap;padding:6px 0}
  .em-md-found{width:100%}
  .em-md-sell{height:40px}
  .em-md-view{margin-left:0}
  #emMarketSort{min-width:160px}
  .em-md-item{grid-template-columns:62px minmax(0,1fr) auto;gap:10px;min-height:auto;padding:10px}
  .em-md-item-icon{width:62px;height:62px;border-radius:10px}
  .em-md-item-name{min-width:0}
  .em-md-item-name b{white-space:normal;overflow-wrap:anywhere}
  .em-md-item-options,.em-md-item-price{grid-column:2/4}
  .em-md-actions{grid-column:1/4;justify-content:flex-start;padding-right:0}
  .em-md-buy{min-width:96px;height:40px}
  .em-md-item .em-mu-tip{left:8px;right:8px;top:calc(100% + 8px);width:auto;max-width:none;transform:none}
  .em-md-items.grid{grid-template-columns:1fr}
  .em-md-wh-head{align-items:flex-start}
  .em-md-wh-stats{flex-wrap:wrap}
  .em-md-wh-grid{grid-template-columns:repeat(auto-fill,minmax(62px,1fr))}
}

@media (max-width:760px){
  :root{--em-radius:18px}
  .em-topbar{position:sticky;padding:8px}
  .em-topbar__inner{padding:8px 10px;border-radius:16px}
  .em-brand{max-width:calc(100% - 58px)}
  .em-brand__logo-img{max-height:48px}
  .em-nav-toggle{width:44px;height:40px;border-radius:12px}
  .em-nav{left:8px;right:8px;top:66px;border-radius:16px}
  .em-shell{padding:18px 10px 48px}
  .em-hero{padding-top:20px;gap:18px}
  .em-hero h1{font-size:clamp(34px,12vw,52px);line-height:.98;letter-spacing:0}
  .em-hero__lead{font-size:16px;line-height:1.55}
  .em-hero__actions{gap:10px;margin:22px 0}
  .em-btn,.em-play{width:100%;min-height:48px;border-radius:13px;padding-left:14px;padding-right:14px}
  .em-kicker{max-width:100%;white-space:normal;border-radius:14px}
  .em-hero__chips{gap:8px}
  .em-hero__chips span{flex:1 1 140px;text-align:center}
  .em-panel,.em-news-card,.em-feature-card,.em-download-card,.em-price-card,.em-form-shell,.em-account-main,.em-account-menu,.em-tabs,.em-market{border-radius:16px}
  .em-hero__panel,.em-news-panel,.em-side-panel,.em-tabs,.em-market,.em-form-shell,.em-account-main,.em-account-menu{padding:16px}
  .em-section{margin-top:22px}
  .em-section-head h2{font-size:24px}
  .em-news-list,.em-feature-grid,.em-market-grid,.em-download-grid,.em-pricing-grid{grid-template-columns:1fr}
  .em-news-card{min-height:0}
  .em-status-card{grid-template-columns:1fr;gap:10px}
  .em-stat-grid,.em-stat-grid--account{grid-template-columns:1fr}
  .em-equipment-grid{grid-template-columns:repeat(3,minmax(58px,1fr));gap:9px}
  .em-slot{border-radius:12px}
  .em-form{gap:12px}
  .em-form input,.em-market-toolbar input,.em-market-toolbar select{min-height:48px;border-radius:12px;font-size:16px}
  .em-tab-buttons{margin-left:-4px;margin-right:-4px;padding:0 4px 8px}
  .em-table{min-width:640px}
  .em-item-card,.em-market-grid.is-list .em-item-card{grid-template-columns:56px minmax(0,1fr);gap:12px;border-radius:15px}
  .em-item-card__icon{width:56px;height:56px;border-radius:13px}
  .em-item-card h3{overflow-wrap:anywhere}
  .em-footer{padding:0 10px;margin-bottom:16px}
  .em-footer__inner{padding:16px;border-radius:16px}
  .em-footer__links{width:100%;flex-wrap:wrap;gap:10px}
  .em-footer__links a{flex:1 1 120px;padding:10px;border-radius:12px;background:rgba(255,255,255,.04);text-align:center}
  .em-md-market{margin-top:0;padding:0 8px 44px}
  .em-md-tabs{margin-bottom:10px}
  .em-md-tab{height:38px;padding:0 16px;border-radius:12px!important;border-left:1px solid var(--md-line)}
  .em-md-walletbar{gap:8px}
  .em-md-wallet-pill{flex:1 1 84px;min-width:0;height:48px}
  .em-md-filterbox{border-radius:12px}
  .em-md-row{gap:7px}
  .em-md-clear,.em-md-filterbtn{flex:1 1 130px;height:40px}
  .compact-icons{width:100%;display:grid;grid-template-columns:repeat(6,1fr)}
  .em-md-iconfilter{width:100%;height:36px}
  .em-md-toolbar{gap:8px}
  .em-md-found{font-size:14px}
  .em-md-sell{flex:1 1 130px;justify-content:center;border-radius:12px}
  .em-md-view{flex:1 1 auto}
  .em-md-view button{flex:1}
  #emMarketSort{flex:1 1 100%;height:40px}
  .em-md-items.list{border-top:0;background:transparent}
  .em-md-item{grid-template-columns:56px minmax(0,1fr);border:1px solid rgba(114,151,188,.18);border-radius:12px;margin-bottom:10px;background:rgba(0,12,24,.62)}
  .em-md-item-icon{width:56px;height:56px}
  .em-md-item-options,.em-md-item-price,.em-md-actions{grid-column:1/3}
  .em-md-item-price{justify-content:flex-start;padding-right:0}
  .em-md-price{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
  .em-md-actions{gap:8px}
  .em-md-buy{flex:1;height:42px}
  .em-md-help{width:42px;height:42px}
  .em-mu-tip{font-size:12px}
  .em-md-wh-head{padding:14px;border-radius:12px}
  .em-md-wh-head h2{font-size:24px}
  .em-md-wh-stats div{flex:1 1 92px}
  .em-md-wh-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .em-md-wh-slot{min-height:0;border-radius:7px}
  .em-md-wh-item{padding:6px}
  .em-md-wh-item .em-market-item-icon-img{width:36px;height:36px}
  .em-md-wh-pop{position:fixed;left:10px;right:10px;top:auto;bottom:12px;width:auto;max-height:82vh;overflow:auto;transform:none;z-index:200}
  .em-md-wh-sellform{grid-template-columns:1fr}
  .em-account-hero{display:block;text-align:left}
  .em-account-logout{width:100%;margin-top:12px;justify-content:center}
}

@media (max-width:420px){
  .em-shell{padding-left:8px;padding-right:8px}
  .em-page-head h1{font-size:32px}
  .em-page-head p{font-size:15px}
  .em-brand__logo-img{max-height:42px}
  .em-nav{top:60px}
  .em-hero h1{font-size:36px}
  .em-btn{font-size:12px;letter-spacing:.5px}
  .em-panel,.em-news-card,.em-feature-card,.em-download-card,.em-price-card,.em-form-shell,.em-account-main,.em-account-menu,.em-tabs,.em-market{border-radius:14px}
  .em-hero__panel,.em-news-panel,.em-side-panel,.em-tabs,.em-market,.em-form-shell,.em-account-main,.em-account-menu{padding:13px}
  .em-equipment-grid{grid-template-columns:repeat(2,minmax(70px,1fr))}
  .em-md-market{padding-left:4px;padding-right:4px}
  .em-md-wh-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .compact-icons{grid-template-columns:repeat(4,1fr)}
  .em-md-class,.em-md-rarity button,.em-md-levels button,.em-md-options2 button,.em-md-currencies button,.em-md-seg button{min-width:68px;padding-left:10px;padding-right:10px}
}
