/* One frame for all public applications. Game HUD keeps its compact mobile layout. */
:root{--site-content-max:1760px;--site-content-gutter:32px;--site-secondary-height:52px}
body[data-site-page] .platform-workspace>main{box-sizing:border-box;width:100%;max-width:var(--site-content-max);margin-inline:auto;padding-inline:var(--site-content-gutter)}
body[data-site-page="account"] #main,body[data-site-page="p2p"] #main,body[data-site-page="entertainment"] .entertainment-workspace>main{padding-top:20px}
body[data-site-page] .shop-workspace>.shop-main{max-width:var(--site-content-max)!important;padding-inline:var(--site-content-gutter)!important}
body[data-site-page] .platform-topbar{box-sizing:border-box;height:64px;min-height:64px;gap:12px;padding-inline:max(var(--site-content-gutter),calc((100vw - var(--site-nav-width) - var(--site-content-max))/2 + var(--site-content-gutter)))}
body[data-site-page] .platform-topbar :is(.breadcrumb,.platform-breadcrumb){display:flex;align-items:center;gap:10px;min-width:0;min-height:32px;margin:0 auto 0 0;font:12px/1.5 system-ui,-apple-system,"PingFang SC",sans-serif;color:#82917b}
body[data-site-page] .platform-topbar :is(.breadcrumb,.platform-breadcrumb)>span{margin:0}
body[data-site-page] .platform-topbar :is(.breadcrumb,.platform-breadcrumb) strong{font-weight:650;color:#36583b}
body[data-site-page] .platform-topbar :is(.top-actions,.shop-top-actions){display:flex;align-items:center;gap:12px;min-width:0;flex-shrink:0}
body[data-site-page] .platform-topbar :is(.lang-toggle,.language-button){box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 10px;border:1px solid #dce6d3;border-radius:8px;background:#fff;color:#456742;font-size:11px;line-height:18px;white-space:nowrap}
body[data-site-page] .platform-topbar :is(.lang-toggle,.language-button) svg{width:15px;height:15px;flex:none}
body[data-site-page] .platform-topbar :is(.avatar,.profile-avatar){display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;border:0;background:#eaf0e2;color:#487046;font-size:13px;font-weight:750}
body[data-site-page] .platform-topbar :is(.profile-button,.platform-account-link){box-sizing:border-box;display:flex;align-items:center;gap:8px;min-height:34px;border:1px solid #dce6d3;border-radius:8px;background:#fff;color:#36583b;padding:6px 10px;text-decoration:none;font:600 11px/20px system-ui,-apple-system,"PingFang SC",sans-serif;white-space:nowrap;max-width:200px}
body[data-site-page] .platform-topbar .site-account-summary .site-account-name{overflow:hidden;text-overflow:ellipsis;max-width:130px}
body[data-site-page] .platform-topbar .site-account-summary .site-account-avatar{display:grid;place-items:center;flex:none;width:22px;height:22px;background:#eaf0e2;border-radius:50%;font-size:10px;color:#487046}
body[data-site-page] .platform-topbar .profile-button{flex-direction:row-reverse}
body[data-site-page] .platform-workspace>main>:is(.platform-account-nav,.play-section-nav){box-sizing:border-box;display:flex;align-items:flex-start;gap:7px;height:var(--site-secondary-height);min-height:var(--site-secondary-height);margin:0 0 16px;padding:0 0 12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
body[data-site-page] .platform-workspace>main>:is(.platform-account-nav,.play-section-nav)[hidden]{display:none}
body[data-site-page] .platform-workspace>main>:is(.platform-account-nav,.play-section-nav)>a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:38px;padding:8px 13px;border:1px solid transparent;border-radius:9px;background:transparent;color:#7f9172;font-size:12px;line-height:20px;white-space:nowrap;text-decoration:none}
body[data-site-page] .platform-workspace>main>:is(.platform-account-nav,.play-section-nav)>a:is(.active,[aria-current="page"],[aria-current="location"]){background:#e9f3dc;border-color:#dce9cf;color:#365f30;font-weight:650}
body[data-site-page] .platform-workspace>main>:is(.platform-account-nav,.play-section-nav)>a:hover{background:#f0f5e9;color:#365f30}
body[data-site-page] .platform-workspace>main>:is(.platform-account-nav,.play-section-nav)>a svg{width:16px;height:16px}
body[data-site-page] .platform-workspace>main>footer{max-width:none}
body[data-site-page]>.site-operator-footer{padding-inline:max(var(--site-content-gutter),calc((100vw - var(--site-nav-width) - var(--site-content-max))/2 + var(--site-content-gutter)))}
/* Keep the map, controls and full-screen entrance independent of article spacing. */
body[data-site-page="gem"] .platform-game>.platform-topbar{height:56px;min-height:56px;padding-inline:0}
body[data-site-page="gem"] .platform-topbar .platform-breadcrumb{font-size:11px}
@media(min-width:961px){
 body[data-site-page]{--site-nav-width:208px;--site-tabbar-height:0px}
 body[data-site-page] .platform-workspace{width:calc(100% - var(--site-nav-width));margin-inline-start:var(--site-nav-width);margin-inline-end:0}
 body[data-site-page] .platform-bottom{width:var(--site-nav-width)}
}
@media(max-width:960px){
 :root{--site-content-gutter:22px}
 body[data-site-page] .platform-workspace{width:100%;margin-inline:0}
 body[data-site-page] .platform-topbar .connection,body[data-site-page] .platform-topbar .shop-online{display:none}
 body[data-site-page="gem"] .platform-game>.platform-topbar{height:39px;min-height:39px;padding-inline:6px;gap:6px}
}
@media(max-width:650px){
 :root{--site-content-gutter:16px;--site-secondary-height:50px}
 body[data-site-page] .platform-topbar{height:56px;min-height:56px;gap:8px;padding-inline:16px}
 body[data-site-page] .platform-topbar :is(.breadcrumb,.platform-breadcrumb){gap:6px;font-size:10px}
 body[data-site-page] .platform-topbar :is(.top-actions,.shop-top-actions){gap:6px}
 body[data-site-page] .platform-topbar :is(.lang-toggle,.language-button){min-height:32px;gap:5px;padding:6px 8px;font-size:10px}
 body[data-site-page] .platform-topbar :is(.profile-button,.platform-account-link){min-height:32px;padding:5px 8px;font-size:10px;max-width:112px;overflow:hidden}
 body[data-site-page] .platform-topbar .site-account-summary .site-account-name{max-width:70px}
 body[data-site-page] .platform-topbar .site-account-summary .site-account-avatar{display:none}
 body[data-site-page] .platform-topbar .avatar{display:none}
 body[data-site-page="account"] #main,body[data-site-page="p2p"] #main,body[data-site-page="entertainment"] .entertainment-workspace>main{padding-top:12px}
 body[data-site-page] .platform-workspace>main>:is(.platform-account-nav,.play-section-nav){margin-bottom:12px;gap:3px;padding-bottom:10px}
 body[data-site-page] .platform-workspace>main>:is(.platform-account-nav,.play-section-nav)>a{padding:8px 10px;font-size:11px}
 body[data-site-page="gem"] .platform-game>.platform-topbar{height:39px;min-height:39px;padding-inline:6px;gap:6px}
}
/* Long translated breadcrumbs yield to account controls on narrow phones. */
@media(max-width:650px){
 body[data-site-page] .platform-topbar :is(.breadcrumb,.platform-breadcrumb){flex:1;overflow:hidden;white-space:nowrap}
 body[data-site-page] .platform-topbar :is(.breadcrumb,.platform-breadcrumb) strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-site-page] .platform-topbar .top-account-name{max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:380px){body[data-site-page] .platform-topbar .top-account-name{display:none}}
/* Trading uses the same secondary row; its original nodes and listeners are retained. */
body[data-site-page="p2p"] [data-panel="p2p"]>.p2p-toolbar{box-sizing:border-box;display:flex;align-items:flex-start;height:var(--site-secondary-height);min-height:var(--site-secondary-height);margin:0 0 16px;padding:0 0 12px;gap:12px}
body[data-site-page="p2p"] .p2p-toolbar .p2p-tabs{gap:7px;border:0;min-width:0;overflow-x:auto;scrollbar-width:none}
body[data-site-page="p2p"] .p2p-toolbar .p2p-tabs button{min-height:38px;padding:8px 13px;border:1px solid transparent;border-radius:9px;color:#7f9172;font-size:12px;line-height:20px;white-space:nowrap}
body[data-site-page="p2p"] .p2p-toolbar .p2p-tabs button.active{background:#e9f3dc;border-color:#dce9cf;color:#365f30;font-weight:650}
body[data-site-page="p2p"] .p2p-toolbar>#p2p-refresh{min-height:38px;margin:0;white-space:nowrap;flex:none}
@media(max-width:650px){
 body[data-site-page="p2p"] [data-panel="p2p"]>.p2p-toolbar{margin-bottom:12px;padding-bottom:10px;gap:6px}
 body[data-site-page="p2p"] .p2p-toolbar .p2p-tabs{gap:3px}
 body[data-site-page="p2p"] .p2p-toolbar .p2p-tabs button{font-size:11px;padding:8px 10px}
}
body[data-site-page="gem"] .platform-workspace>main.game-layout{padding:0;max-width:none}
@media(max-width:960px){body[data-site-page="gem"] .platform-game .platform-topbar .platform-breadcrumb{display:none}}
@media(max-width:380px){body[data-homepage-v2] .hero-actions .button{padding-inline:12px;gap:8px;font-size:10px;white-space:nowrap}}
@media(min-width:961px){
 body[data-site-page] .platform-bottom{font:13px/1.4 system-ui,-apple-system,"PingFang SC",sans-serif}
 body[data-site-page] .platform-sidebar-brand{min-height:46px;line-height:1.4}
 body[data-site-page] .platform-sidebar-brand>span{min-width:0}
 body[data-site-page] .platform-sidebar-brand small{line-height:1.4}
 body[data-site-page] .platform-nav-caption{margin:40px 14px 14px;line-height:14px}
}
@media(max-width:650px){body[data-homepage-v2] .hero-actions{flex-wrap:wrap}body[data-homepage-v2] .hero-actions .button{max-width:100%;min-width:0}}
@media(max-width:650px){html:not([lang^="zh"]) body[data-homepage-v2] .hero-actions .button{flex:1 0 100%;white-space:normal}}
