/* Desktop/laptop layout: resize containers and gaps, not the entire page or its text. */
:root{--workspace-top:32px;--workspace-pad:28px;--sidebar-width:236px;--gutter:32px}
main{min-width:0}img,video{max-width:100%}
.container{width:min(var(--width,1180px),calc(100% - var(--gutter)*2))}
.site-header .main-nav a{font-size:14px;white-space:nowrap}
.site-header .nav-inner{max-width:1536px}
.panel,.member-content,.sidebar,.form-grid>*{min-width:0}
.member-shell,.admin-shell{width:min(1180px,calc(100% - var(--gutter)*2));margin:var(--workspace-top) auto 48px;display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:0;overflow:visible;align-items:start}
.admin-shell{width:min(1530px,calc(100% - var(--gutter)*2));background:#0b1421}
.member-shell{background:rgba(7,13,21,.91)}
.member-shell>.sidebar,.admin-shell>.sidebar{position:sticky;top:calc(var(--nav-height) + 16px);max-height:calc(100dvh - var(--nav-height) - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#766747 #0c1420;align-self:start;padding:22px 14px;border-right:1px solid var(--line);border-radius:17px 0 0 17px}
.member-shell .member-content,.admin-shell .member-content{padding:var(--workspace-pad);container-type:inline-size;container-name:workspace}
.member-title{align-items:flex-start;gap:16px;margin-bottom:24px}
.member-title>div:first-of-type{flex:1;min-width:0}
.member-title h1{font-size:clamp(24px,2vw,30px);line-height:1.3;letter-spacing:.015em}
.member-title p{font-size:14px;line-height:1.75}
.member-content .panel{padding:22px}
.member-content .panel p{font-size:14px;line-height:1.75}
.member-shell .side-item{font-size:14px;min-height:44px;line-height:1.4;white-space:nowrap;display:flex;width:100%;padding:10px}
.member-shell .member-nav{display:block;margin:0;overflow:visible}
.member-nav-group{margin:0 0 10px;border:0;background:none}
.member-nav-group>summary{cursor:pointer;display:flex!important;justify-content:space-between;align-items:center;list-style:none;font-size:11px;letter-spacing:.035em;min-height:33px;padding:9px 10px;color:#b5bec9}
.member-nav-group>summary::-webkit-details-marker{display:none}
.member-nav-group>summary:after{content:'+';color:var(--accent);font-size:16px}
.member-nav-group[open]>summary:after{content:'−'}
.member-nav-group>div{padding-top:3px}
.member-shell .side-bottom{display:block;margin-top:12px;padding-top:12px}
.side-profile{padding:0 6px 17px;margin-bottom:14px}
.side-profile small{font-size:11px;letter-spacing:.055em}
.workspace-toggle,.workspace-close,.workspace-scrim{display:none}
.workspace-toggle{flex:none;color:var(--accent);border:1px solid var(--line-strong);border-radius:8px;min-width:44px;height:44px;background:#d0ae6210;font-size:14px;padding:10px 12px;align-items:center;gap:9px;white-space:nowrap}
.workspace-toggle .icon{width:18px;height:18px}
.workspace-close{margin:0 0 16px auto;color:var(--ink);border:1px solid var(--line);border-radius:7px}
.workspace-scrim{position:fixed;inset:var(--nav-height) 0 0;border:0;background:#01050ac4;z-index:49;cursor:pointer}
body.workspace-open{overflow:hidden}
.workspace-open .workspace-scrim{display:block}
.member-shell .two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.form-grid .field input,.form-grid .field select{width:100%;font-size:16px;min-height:46px}
.field small{font-size:12px;line-height:1.65}
.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.metric>span{font-size:13px}.metric small{font-size:11px;line-height:1.6}
.category-grid,.game-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:20px}
.game-info h3,.category-copy h3{line-height:1.4;overflow-wrap:normal;word-break:normal}
.category-copy h3{font-size:17px}
.category-copy p,.game-info .english{font-size:13px}
.section-head h2{line-height:1.3}.section-head p{font-size:15px}
.product-top{grid-template-columns:minmax(0,1fr) minmax(320px,365px);gap:24px}
.checkout-layout{grid-template-columns:minmax(0,1fr) minmax(300px,350px);gap:24px}
.purchase-panel,.checkout-aside{top:calc(var(--nav-height) + 20px);max-height:calc(100dvh - var(--nav-height) - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.purchase-panel .btn,.checkout-aside .btn{white-space:nowrap;min-height:46px}
.plan span{line-height:1.55;font-size:14px}.plan strong{font-size:14px}
.table-wrap{width:100%;overflow-x:auto;scrollbar-width:thin}.table-wrap th{white-space:nowrap}
.breadcrumb{flex-wrap:wrap;line-height:1.6}.readonly-badge{flex-shrink:0}
.btn{min-height:44px;font-size:15px}.btn.small{min-height:38px;font-size:13px}
.btn-row{flex-wrap:wrap}.btn-row .btn{max-width:100%}
dialog{max-height:calc(100dvh - 40px);overflow:hidden}
.modal-header{flex-shrink:0}.modal-footer{flex-shrink:0}
#modal[open]{display:flex;flex-direction:column}
.modal-body{overflow:auto;min-height:0;overscroll-behavior:contain}
@container workspace (max-width:730px){
 .member-shell .member-content .two-col,.admin-shell .member-content .two-col,.inbox-layout{grid-template-columns:1fr}
 .settings-grid{grid-template-columns:1fr}
 .settings-nav{display:flex;flex-wrap:wrap;gap:8px}
 .settings-nav button{width:auto;max-width:100%}
}
@container workspace (max-width:560px){
 .form-grid,.member-content .metric-grid,.product-info-grid{grid-template-columns:1fr}
 .member-content .panel{padding:19px}
 .money-banner{align-items:flex-start;flex-direction:column}
 .member-title{flex-wrap:wrap}.member-title .readonly-badge{display:none}
 .order-main,.order-top,.order-bottom{flex-wrap:wrap}
 .order-main .summary{min-width:min(210px,100%)}
 .member-content .btn-row{align-items:stretch}.member-content .btn-row>.btn{flex:1 1 200px}
 .timeline{flex-wrap:wrap}.timeline>div{min-width:120px}
 .profile-grid{grid-template-columns:1fr}
}
@media(min-width:1800px){:root{--workspace-top:40px;--workspace-pad:30px}.member-shell{max-width:1180px}.admin-shell{max-width:1530px}}
@media(max-height:800px) and (min-width:960px){
 :root{--nav-height:64px;--workspace-top:20px;--workspace-pad:22px;--sidebar-width:224px}
 .member-title{margin-bottom:18px}.member-title .kicker{margin-bottom:9px}
 .member-content .panel{padding:20px}.member-content .panel h2{margin-bottom:13px}
 .member-shell>.sidebar,.admin-shell>.sidebar{padding:16px 12px}
 .member-shell .side-item{min-height:42px;padding:9px 10px}
 .side-profile{padding-bottom:12px;margin-bottom:10px}
 .section{padding:38px 0}.page-intro{min-height:240px;padding-top:36px}
}
@media(max-width:1199px){
 :root{--gutter:24px;--workspace-pad:24px}
 .member-shell,.admin-shell{display:block;width:calc(100% - var(--gutter)*2);margin-top:22px}
 .workspace-toggle{display:inline-flex}
 .member-shell>.sidebar,.admin-shell>.sidebar{position:fixed;top:calc(var(--nav-height) + 12px);left:16px;bottom:16px;width:280px;max-width:calc(100vw - 32px);height:auto;max-height:none;z-index:50;background:#0b1420;border:1px solid var(--line-strong);border-radius:12px;padding:18px;overflow-y:auto}
 .member-shell>.sidebar[hidden],.admin-shell>.sidebar[hidden]{display:none!important}
 .workspace-close{display:flex}
 .site-header .nav-inner{gap:20px;padding-inline:24px}.site-header .main-nav{gap:20px}
 .member-title .kicker{letter-spacing:.13em}
 .category-grid,.game-grid{gap:18px}
}
@media(max-width:999px){
 .product-top,.checkout-layout{grid-template-columns:1fr}
 .purchase-panel,.checkout-aside{position:static;max-height:none;overflow:visible}
 .product-top>.purchase-panel{width:100%}
 .main-nav{gap:16px}
 .site-header .main-nav a{font-size:13px}
 .member-shell .member-nav{display:block}
}
@media(max-width:759px){
 :root{--gutter:16px;--workspace-pad:20px;--nav-height:62px}
 .site-header .main-nav{display:none}
 .site-header .mobile-nav-toggle{display:inline-flex}
 .site-header .main-nav.mobile-open{display:flex;position:absolute;left:0;right:0;top:var(--nav-height);padding:12px 16px;background:#07101afc;flex-wrap:wrap;border-bottom:1px solid var(--line)}
 .site-header .main-nav.mobile-open a{line-height:40px}
 .member-title{flex-wrap:wrap}.member-title h1{font-size:25px}.member-title>div:first-of-type{min-width:180px}
 .workspace-toggle span{display:none}.workspace-toggle{padding:10px}
 .category-grid,.game-grid{grid-template-columns:1fr}
 .form-grid,.two-col,.inbox-layout{grid-template-columns:1fr}
 .metric-grid{grid-template-columns:1fr}
 .member-shell,.admin-shell{margin:20px auto 36px}
 .admin-shell .metric-grid{grid-template-columns:1fr}
 .category-banner{grid-template-columns:1fr}
 .section-head:before{left:0!important;right:0!important}
 .footer-links{gap:18px}
 .footer-inner{gap:24px}.footer-brand{min-width:0}
 .btn-row .btn{white-space:normal}
}
/* Fixed drawer gets an explicit available height; intrinsic grid-item size must not exceed its inset box. */
@media(max-width:1199px){.member-shell>.sidebar,.admin-shell>.sidebar{height:calc(100dvh - var(--nav-height) - 28px);bottom:auto;align-self:stretch}}
