/* v6: original home layout; full width on inner pages. Menu uses original positioning. */
/* Full width layout for the public standart11 template. */
html.gx-wide-site body.gx-body{--gx-page-gutter:16px}
html.gx-wide-site body.gx-body .gx-shell{width:100%;max-width:none!important;min-width:0;margin-left:0!important;padding-left:0!important;box-sizing:border-box}
html.gx-wide-site body.gx-body :is(.gx-container,.container,.container-fluid){width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
html.gx-wide-site body.gx-body .gx-container{padding-left:var(--gx-page-gutter)!important;padding-right:var(--gx-page-gutter)!important}
html.gx-wide-site body.gx-body :is(.gx-page,.content,.main-content,.page-content){max-width:none!important;min-width:0}
/* Only page-level columns expand; inner grids keep their own responsive layout. */
html.gx-wide-site body.gx-body .gx-row>[class*="col-"]{flex:0 0 100%!important;width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box}
html.gx-wide-site body.gx-body .gx-row>.order-is-first{order:1!important}
html.gx-wide-site body.gx-body .gx-row>.order-is-last{order:2!important}
html.gx-wide-site body.gx-body .gx-row>[class*="col-"]> :is(.block,.card,.panel,.gx-panel,.gx-section,.gx-stats){width:100%;max-width:none;box-sizing:border-box}
html.gx-wide-site body.gx-body :is(.gx-team,.gx-demo,.gx-girlvip,.gx-gifts,.gx-case,.gx-dl,.gx-form){width:100%;max-width:none!important;min-width:0;box-sizing:border-box}
html.gx-wide-site body.gx-body .gx-page .table-responsive{width:100%;max-width:100%;overflow-x:auto}
@media(max-width:991.98px){html.gx-wide-site body.gx-body{--gx-page-gutter:12px}}
@media(max-width:575.98px){html.gx-wide-site body.gx-body{--gx-page-gutter:10px}}

/* v7: remove legacy shop centering margins after widening page columns. */
html.gx-wide-site body.gx-body .gx-row>[class*="col-"]{margin-left:0!important;margin-right:0!important;left:auto!important;right:auto!important}
html.gx-wide-site body.gx-body .gx-page-block,html.gx-wide-site body.gx-body .gx-page-body{min-width:0;max-width:100%;box-sizing:border-box}
body.gx-body .gx-moderation-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px}
body.gx-body .gx-mod-server-picker{display:flex;align-items:center;gap:12px;flex:0 1 360px;min-width:220px;margin-left:auto}
body.gx-body .gx-mod-server-picker>label{font-size:12px;color:#aaa7b2;margin:0;flex:0 0 auto}
body.gx-body .gx-mod-server-picker>.gx-server-select{flex:1;min-width:0}
body.gx-body .gx-mod-server-picker>select{width:100%;min-height:46px;padding:10px;border-radius:10px;background:#111118;color:#ececf4;border:1px solid rgba(245,197,24,.55)}
@media(max-width:600px){body.gx-body .gx-mod-server-picker{flex-basis:100%;min-width:0;width:100%;margin-left:0}}

/* v8: compact case catalogue, four cards per desktop row. */
body.gx-body .gx-cases-store__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body.gx-body .gx-cases-store__card{height:190px;min-height:0;border-radius:12px;box-sizing:border-box}
body.gx-body .gx-cases-store__img{flex:0 0 142px;height:142px;min-height:0;padding:8px 12px 4px;box-sizing:border-box}
body.gx-body .gx-cases-store__img img{display:block;width:100%;height:130px;max-width:100%;max-height:130px;aspect-ratio:auto;object-fit:contain;border-radius:8px}
body.gx-body .gx-cases-store__bar{flex:0 0 34px;min-height:34px;gap:8px;margin:4px 8px 8px;padding:6px 8px;border-radius:8px;box-sizing:border-box}
body.gx-body .gx-cases-store__name{font-size:11px;line-height:16px;min-width:0}
body.gx-body .gx-cases-store__price{font-size:11px;line-height:16px;flex-shrink:0}
@media(max-width:1099.98px){body.gx-body .gx-cases-store__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:799.98px){body.gx-body .gx-cases-store__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:419.98px){body.gx-body .gx-cases-store__grid{grid-template-columns:1fr}}

/* v9: latest real case results beneath the catalogue. */
body.gx-body .gx-recent-opens{margin-top:24px;padding:20px;background:#17171f;border:1px solid rgba(245,197,24,.45);border-radius:14px}
.gx-recent-opens__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.gx-recent-opens__head h3{font-size:18px;color:#ececf4;margin:0;font-weight:800}.gx-recent-opens__head h3 i{color:#f5c518;margin-right:6px}
.gx-recent-opens__head>span,.gx-recent-opens__empty{font-size:12px;color:#aaa7b2}
.gx-recent-opens__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:12px}
.gx-recent-opens__card{min-width:0;display:flex;flex-direction:column;gap:10px;padding:16px 12px;background:linear-gradient(160deg,#30291b,#111118 75%);border:1px solid rgba(245,197,24,.35);border-radius:11px;transition:border-color .2s,transform .2s}
.gx-recent-opens__card:hover{border-color:#f5c518;transform:translateY(-2px)}
.gx-recent-opens__case{align-self:flex-start;max-width:100%;font-size:10px;font-weight:800;color:#f5c518!important;padding:6px 8px;border:1px solid rgba(245,197,24,.3);border-radius:6px;text-decoration:none}
.gx-recent-opens__prize{font-size:13px;line-height:1.5;color:#ececf4;overflow-wrap:anywhere;min-height:40px}
.gx-recent-opens__status{font-size:10px;color:#a4c6a1}.gx-recent-opens__status.is-pending{color:#e6bd55}
.gx-recent-opens__user{display:flex;align-items:center;gap:8px;font-size:12px;min-width:0;margin-top:auto;text-decoration:none}.gx-recent-opens__user .gx-account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gx-recent-opens__avatar{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;background:#29262c;border-radius:50%;color:#f5c518;flex-shrink:0}
.gx-recent-opens__card time{font-size:10px;color:#97939f}
@media(max-width:479.98px){body.gx-body .gx-recent-opens{padding:14px}.gx-recent-opens__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gx-recent-opens__card{padding:12px 9px}.gx-recent-opens__head h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){.gx-recent-opens__card{transition:none}.gx-recent-opens__card:hover{transform:none}}

/* v10: exactly seven recent results in a single scrollable row. */
body.gx-body .gx-recent-opens__grid{grid-template-columns:repeat(7,minmax(150px,1fr));grid-template-rows:auto;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 0 10px;scrollbar-width:thin;scrollbar-color:rgba(245,197,24,.5) #111118}
body.gx-body .gx-recent-opens__grid:focus-visible{outline:2px solid #f5c518;outline-offset:4px;border-radius:8px}
body.gx-body .gx-recent-opens__card{box-sizing:border-box}
