/* Mobile layout: loaded after the existing theme. Desktop rules stay unchanged. */
.mobile-menu-toggle,.mobile-category-toggle{display:none}
@media(max-width:760px){
 body{font-size:14px;line-height:1.6}
 .topline{height:auto;min-height:42px;padding:8px 12px;letter-spacing:0;gap:8px;flex-wrap:wrap}
 .topline>span{display:none}
 .topline-tools{display:flex!important;justify-content:flex-end;gap:6px;flex-wrap:wrap;width:100%}
 .topline #subscription-button{position:static!important;width:auto!important;min-height:40px!important;display:inline-flex;align-items:center;justify-content:center;padding:8px 10px!important;margin:0!important;font-size:12px!important;line-height:1.4!important}
 .topline #subscription-button[hidden]{display:none!important}
 .header-member-actions{display:flex!important;justify-content:flex-end;gap:6px;flex-wrap:wrap;width:100%}
 .header-control{min-height:40px!important;padding:8px 10px!important;font-size:12px!important}
 .site-header{height:auto!important;min-height:0!important;padding:14px 12px 0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;gap:12px!important;align-items:center!important;overflow:visible!important}
 .site-header::before,.site-header::after{display:none!important}
 .site-header .brand-center{grid-column:1!important;grid-row:1!important;position:static!important;transform:none!important;justify-self:start!important;width:130px!important;height:65px!important;margin:0!important;max-width:100%}
 .site-header .brand-center::before,.site-header .brand-center::after{display:none!important}
 .mobile-menu-toggle{display:block;grid-column:2;grid-row:1;min-height:44px;padding:9px 14px}
 .site-header .header-nav-left{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;width:100%!important;height:auto!important;padding:0!important;margin:0!important}
 .site-header .header-nav-left a{display:flex!important;justify-content:center!important;align-items:center!important;min-height:48px!important;height:auto!important;padding:8px 3px!important;font-size:12px!important;letter-spacing:0!important;white-space:normal!important;text-align:center}
 .site-header .header-tools{display:none!important;position:static!important;grid-column:1/-1!important;grid-row:3!important;width:100%;height:auto!important;min-height:0;margin:0!important;padding:12px 0!important;border-top:1px solid #47371e;background:#17120c}
 .site-header.mobile-menu-open .header-tools{display:flex!important;flex-direction:column!important;gap:12px!important}
 .site-header.mobile-menu-open .header-nav-right{order:0!important;flex:none!important}
 .site-header.mobile-menu-open #account{order:1!important;flex:none!important}
 .site-header .header-nav-right{display:flex!important;position:static!important;flex-wrap:wrap;justify-content:center;gap:8px!important;height:auto!important;min-height:44px;width:100%!important;overflow:visible!important;align-self:auto!important}
 .site-header .header-nav-right a{height:auto!important;min-height:44px;padding:8px 12px!important;font-size:13px!important}
 .site-header #account{position:static!important;width:100%!important;height:auto!important;min-height:44px;margin:0!important;justify-content:center;flex-wrap:wrap;gap:8px!important;white-space:normal!important}
 .banner{min-height:0!important;padding:22px 16px!important}.banner h1{font-size:28px!important}.banner-note{display:none!important}
 main{padding:0 12px 28px!important;width:100%!important;max-width:100%!important}.breadcrumb{padding:14px 0!important;flex-wrap:wrap}
 .layout{display:flex!important;flex-direction:column!important;gap:14px!important}.layout>*{min-width:0!important;width:100%!important}
 .mobile-category-toggle{display:block;min-height:44px;text-align:left;width:100%;color:#ddbf85}
 .layout>.sidebar{display:none!important;padding:8px;background:#17120d;border:1px solid #47371e;border-radius:6px}
 .layout>.sidebar.mobile-categories-open{display:block!important}.sidebar-foot{display:none!important}.sidebar .side-title{padding:12px}.sidebar .side-link{min-height:44px}
 .layout>.rightbar,.layout>.right-sidebar{display:none!important}
 .section-title{margin-bottom:14px!important;gap:8px}.section-title h2{font-size:25px!important}.section-title .outline-label{display:none!important}
 .welcome{padding:12px!important;margin-bottom:16px!important}.toolbar{flex-wrap:wrap!important;gap:8px!important}.toolbar .search{width:100%;max-width:none!important}.tabs{gap:14px!important;flex-wrap:wrap}.tabs button{min-height:44px}
 .topic{padding:15px 0!important;gap:10px!important}.topic-title{font-size:14px!important}.metadata{gap:5px;font-size:12px}.topic-copy{overflow-wrap:anywhere}
 .market-intro,.market-hero{padding:16px!important}.market-intro h3,.market-hero h3{font-size:24px!important}
 .market-toolbar,.market-filters,.market-tabs{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.market-search{width:100%!important;max-width:none!important;display:flex!important;gap:8px}.market-search input{width:100%;min-width:0}
 .market-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.market-card,.market-panel,.market-detail{padding:14px!important;min-width:0!important}
 .market-actions{display:flex;flex-wrap:wrap;gap:8px!important}.market-actions>*{min-height:44px;max-width:100%;white-space:normal!important}.market-actions button{flex:1 1 130px}
 .market-compact-main,.market-compact-heading,.mbc-bar{flex-wrap:wrap!important}.market-compact-price{font-size:20px!important}.market-detail h2{font-size:25px!important}
 .market-panel p,.market-guide,.market-safety{overflow-wrap:anywhere}.market-guide{font-size:13px!important;line-height:1.7!important}
 #market-search{display:flex!important;width:100%!important;gap:8px!important;margin:0!important}#market-search input{flex:1;min-width:0;width:100%!important;font-size:16px!important}#market-search button{min-height:44px}
 .market-heading h2{font-size:25px!important}.market-trade-guide{font-size:13px!important;padding:12px!important}.market-scope button,.market-filters button{min-height:44px}
 #modal,#modal.mc4-modal,#modal.inbox-modal{width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:18px 14px!important;border-radius:10px!important;margin:auto!important;overflow:auto}
 #modal .close{min-width:44px;min-height:44px;top:4px;right:4px}#modal h2{font-size:24px!important}
 #modal input:not([type=checkbox]):not([type=radio]),#modal textarea,#modal select{font-size:16px!important;max-width:100%;min-width:0}#modal input,#modal select{min-height:44px}
 #modal .mc4-head{gap:10px!important;margin-bottom:14px!important;padding-right:32px!important}#modal .mc4-avatar{display:none!important}
 .broker-room .br-participants{grid-template-columns:1fr!important;gap:6px;margin:12px 0!important}.broker-room .br-participant{padding:10px!important;display:grid;grid-template-columns:minmax(0,1fr) auto!important}.broker-room .br-participant-identity .member-avatar{width:38px;height:38px;flex-basis:38px}.broker-room .br-participant-identity{gap:9px;margin:3px 0!important}.broker-room .br-participant-note{font-size:11px}
 #modal.mc4-modal .mc4-summary{padding:10px!important;gap:8px}#modal.mc4-modal .mc4-messages{height:230px!important;gap:10px!important;padding:12px 0!important}#modal.mc4-modal .mc4-bubble{max-width:96%!important;padding:11px 12px!important}#modal.mc4-modal .mc4-composer{padding-top:12px!important}#modal.mc4-modal .mc4-send button{min-height:44px;margin-left:auto}
 .notification-popover{position:fixed!important;top:54px!important;right:8px!important;left:8px!important;width:auto!important;max-width:none!important;max-height:70dvh!important}.notification-heading{flex-wrap:wrap;gap:8px}.notification-item{white-space:normal!important}.notification-item small{white-space:normal!important;overflow-wrap:anywhere}
 .inbox-layout,.profile-layout,.profile-stats,.members-grid,.profile-form-grid{grid-template-columns:1fr!important}.inbox-list-pane{max-height:150px!important}.inbox-thread form{grid-template-columns:minmax(0,1fr)!important}.inbox-message{max-width:95%!important}
 .site-footer{padding:22px 16px!important}.footer-grid,.footer-main{display:flex!important;flex-direction:column!important;gap:20px!important}.footer-cta{padding:24px 16px!important;min-height:0!important}.footer-cta h2{font-size:27px!important}
 .site-footer{display:block!important;height:auto!important;min-height:0!important;padding:0!important;margin-top:28px!important}
 .site-footer .footer-game-call{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;gap:20px;padding:32px 18px 22px!important}
 .site-footer .footer-game-copy{width:100%;max-width:100%;position:relative}.site-footer .footer-game-copy h2{font-size:30px!important;line-height:1.2!important;overflow-wrap:anywhere}
 .site-footer .footer-game-aside{position:static!important;margin:0!important;font-size:12px!important;line-height:1.5!important;text-align:center!important}
 .site-footer .footer-game-art{object-fit:cover!important}
 .site-footer .footer-main{display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:0!important;gap:22px!important;padding:24px 18px!important}
 .site-footer .footer-community{display:flex!important;flex-direction:column!important;align-items:flex-start!important;width:100%!important;height:auto!important;padding:0 0 18px!important;gap:8px!important;border-right:0!important}
 .site-footer .footer-mark{width:170px!important;max-width:100%!important;height:72px!important;flex:none!important}
 .site-footer .footer-community>p{width:100%!important;flex:none!important;margin:0!important;text-align:left!important;font-size:14px!important;line-height:1.6!important}
 .site-footer .footer-links{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:22px!important;position:static!important;align-self:auto!important;height:auto!important;min-height:0!important;width:100%!important;padding:0!important;margin:0!important}
 .site-footer .footer-links section{display:flex!important;flex-direction:column!important;gap:0!important;position:static!important;height:auto!important;min-height:0!important}
 .site-footer .footer-links h3{margin:0 0 8px!important;font-size:12px!important;line-height:1.4!important}
 .site-footer .footer-links a{display:flex!important;align-items:center!important;position:static!important;width:100%!important;height:auto!important;min-height:44px!important;margin:0!important;padding:8px 0!important;font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere}
 .site-footer .footer-connect{display:flex!important;flex-wrap:wrap!important;width:100%!important;height:auto!important;gap:12px!important;margin:0!important;padding:18px 0 0!important}.site-footer .footer-connect>p{flex:1!important;min-width:0!important;font-size:16px!important}.site-footer .footer-connect>a{min-height:44px!important;flex-basis:100%!important}
 .site-footer .footer-bottom{display:flex!important;flex-direction:column!important;align-items:flex-start!important;position:static!important;width:100%!important;height:auto!important;min-height:0!important;gap:12px!important;margin:0!important;padding:18px 18px 82px!important;font-size:12px!important;line-height:1.6!important}
 .site-footer .footer-bottom>span{display:block!important;width:100%!important;overflow-wrap:anywhere}.site-footer .footer-bottom>a{display:block!important;height:auto!important;min-height:44px!important;margin:0!important;padding:8px 0!important;line-height:1.6!important}
 .bot-toggle,#bot-toggle{right:12px!important;bottom:12px!important;padding:10px 14px!important}.bot-panel{right:8px!important;left:8px!important;width:auto!important;max-height:75dvh!important}
}
