/* Responsive presentation for the live GEN theme. */
body.home,body.home #gen-content { overflow:visible!important; }
body.home .gen-hero.gen-platform-hero { height:280svh!important; min-height:0!important; }
body.home .gen-platform-hero .gen-hero__stage { position:sticky!important; top:0; height:100svh!important; }
.home .x4m-home-curtain { display:block; position:relative; z-index:4; margin-top:-100svh; background:#08080d; border-radius:32px 32px 0 0; padding-top:clamp(24px,3vw,40px); box-shadow:0 -16px 44px rgba(0,0,0,.42); }
.home .x4m-home-curtain .gen-home-portals { margin-top:0!important; background:transparent; box-shadow:none; }
.page-template-page-tournaments .x4p-hub-guide.x4m-after-broadcast { margin-top:0; margin-bottom:32px; }
body.page-template-page-tournaments .x4p-hub-panels { padding-top:12px; }
body.page-template-page-tournaments .x4t-registration { min-height:0; padding-bottom:32px; }
.page-template-page-tournaments .x4p-tournament-auth { display:grid; place-items:center; min-height:calc(100svh - var(--x4p-page-top,118px)); padding:24px 0 calc(var(--x4p-page-top,118px) + 24px); }
.x4p-tournament-auth__card { display:flex; flex-direction:column; align-items:center; gap:24px; width:min(100%,640px); padding:clamp(28px,4vw,48px); border:1px solid var(--border-subtle); border-radius:28px; background:var(--bg-secondary); text-align:center; }
.x4p-tournament-auth__card h1 { margin:0; font-family:var(--font-sans); font-size:clamp(26px,3vw,40px); font-weight:700; line-height:1.2; letter-spacing:-.03em; text-wrap:balance; }
.x4p-tournament-auth__card .x4t-button { min-height:48px; max-width:100%; justify-content:center; white-space:normal; }
.page-template-page-tournaments #broadcast { min-height:0; height:auto; padding:0; margin:0 auto 28px; }
.x4m-only,.x4m-track-nav,.x4m-roster-tabs,.x4m-menu-backdrop { display:none; }
.x4m-wide-copy { display:inline; }
.x4m-short-copy { display:none; }
body.gen { --x4m-ease:cubic-bezier(.22,.68,0,1); }
/* Desktop destinations fill one viewport; phones keep the compact swipe layout. */
body.home .x4m-home-curtain { padding-top:0; }
body.home .x4m-home-curtain .x4p-home-navigation { --x4p-navigation-top:112px; --x4p-navigation-bottom:24px; min-height:100svh; padding:var(--x4p-navigation-top) 0 var(--x4p-navigation-bottom); }
.home .x4p-home-navigation .gen-home-portals__inner { width:calc(100% - 48px); display:flex; flex-direction:column; min-width:0; }
.home .x4m-home-curtain .x4p-home-navigation .gen-portal-grid { flex:1; min-height:calc(100svh - var(--x4p-navigation-top) - var(--x4p-navigation-bottom)); grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr); grid-template-rows:repeat(2,minmax(0,1fr)); gap:20px; }
.home .x4m-home-curtain .x4p-home-navigation .gen-portal-card { min-height:0; }
body.home .x4p-home-navigation .gen-portal-card__copy h3 { font-size:clamp(22px,2.4vw,40px); line-height:1.15; white-space:normal; }
/* The about workspace fills the available screen without widening paragraphs. */
body.page-template-page-about .x4p-about-story { width:calc(100% - 48px); min-height:calc(100svh - var(--x4p-page-top)); padding-bottom:24px; align-items:stretch; }
body.page-template-page-about .x4p-about-main { display:flex; flex-direction:column; }
body.page-template-page-about .x4p-about-features { flex:1; align-content:stretch; }
body.page-template-page-about .x4p-about-features p { max-width:42ch; }
.page-template-page-shop .x4p-shop-heading { justify-content:flex-end; }
.page-template-page-shop .x4p-shop > .x4p-shop-empty:first-child { margin-top:0; }
.page-template-page-shop .x4p-shop > .mt-6:first-child { margin-top:0; }
.x4p-shop-grid { align-items:stretch; }
.x4p-shop-card { min-width:0; overflow:hidden; border-radius:24px; }
.x4p-shop-card h3 { overflow-wrap:anywhere; }
.x4p-shop-card .x4p-shop-card__buy,.x4p-shop-card__state { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; padding:12px; border-radius:14px; text-align:center; font-family:var(--font-sans); font-size:13px; font-weight:600; line-height:1.4; white-space:normal; }
.x4p-shop-card__state { background:var(--bg-tertiary); color:var(--text-secondary); }
.x4p-shop-balance-unit { font-family:var(--font-sans); font-size:13px; font-weight:500; color:var(--text-secondary); }
.x4p-redemption-toolbar { display:flex; justify-content:flex-end; padding:0 0 16px; border-bottom:1px solid var(--border-subtle); }
.x4p-redemption-card { min-width:0; }
.x4p-redemption-card__body { min-width:0; }
.x4p-redemption-card__title { font-family:var(--font-sans); line-height:1.4; overflow-wrap:anywhere; }
.x4p-redemption-card .x4p-redemption-card__cancel { min-height:44px; padding:10px 12px; font-family:var(--font-sans); font-size:13px; line-height:1.4; text-transform:none; white-space:normal; }
@media(max-width:480px){
  .x4p-redemption-card { flex-direction:column; align-items:stretch; gap:16px; text-align:center; }
  .x4p-redemption-card__qr { align-self:center; }
  .x4p-redemption-card .x4p-redemption-card__cancel { width:100%; }
}
@media(min-width:360px) and (max-width:760px){
  .page-template-page-shop #gen-content .x4p-shop .x4p-shop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px){
  .x4p-shop-grid { gap:12px; }
  .x4p-shop-card { border-radius:20px; }
  .x4p-shop-card > .p-4 { padding:14px 12px; }
  .x4p-shop-card h3 { font-family:var(--font-sans); font-size:15px; line-height:1.35; text-transform:none; }
  .x4p-shop-card__price { font-family:var(--font-sans); font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
  .x4p-shop-card .x4p-shop-card__buy,.x4p-shop-card__state { padding:10px 8px; font-size:12px; }
}
/* Games are one segmented selector; competition modes are a separate tab bar. */
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace { display:grid; grid-template-columns:minmax(280px,360px) minmax(0,1fr); align-items:center; gap:28px; padding:0 0 18px; overflow:visible; }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-discipline-tabs { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr); width:100%; padding:5px; margin:0; gap:4px; border:1px solid var(--border-subtle); border-radius:18px; background:var(--bg-secondary); }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-discipline-tabs > * { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:3px; min-width:0; min-height:52px; padding:8px 12px; border:0; border-radius:12px; font-size:14px; line-height:1.35; white-space:nowrap; color:var(--text-secondary); background:transparent; }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-discipline-tabs .is-active { background:rgba(154,104,255,.16); color:var(--text-primary); box-shadow:inset 0 0 0 1px rgba(174,108,255,.24); }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-discipline-tabs small { font-size:10px; line-height:1.3; color:var(--text-muted); }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-mode-tabs { display:flex; flex:1; justify-content:flex-end; align-self:stretch; gap:clamp(16px,2.4vw,36px); width:100%; margin:0; padding:0; border:0; overflow:visible; }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-mode-tabs a { position:relative; display:flex; flex:0 0 auto; align-items:center; justify-content:center; min-width:0; min-height:52px; padding:12px 0; border:0; border-radius:0; background:transparent; font-size:15px; line-height:1.4; font-weight:550; color:var(--text-secondary); white-space:nowrap; }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-mode-tabs a::after { content:''; position:absolute; left:0; right:0; bottom:0; height:3px; border-radius:3px; background:var(--volt); transform:scaleX(0); transform-origin:center; transition:transform 360ms var(--x4m-ease); }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-mode-tabs a[aria-selected=true] { background:transparent; color:var(--text-primary); }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-mode-tabs a[aria-selected=true]::after { transform:scaleX(1); }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace :is(a,button):hover { color:var(--text-primary); }
body.page-template-page-tournaments .x4p-tournament-toolbar--workspace :is(a,button):focus-visible { outline:2px solid var(--volt); outline-offset:4px; }
@media(max-width:1000px){
  body.page-template-page-tournaments .x4p-tournament-toolbar--workspace { grid-template-columns:minmax(0,1fr); gap:12px; padding-bottom:12px; }
  body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-discipline-tabs { width:min(100%,360px); }
  body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-mode-tabs { justify-content:flex-start; gap:24px; }
}
@media(max-width:760px){
  body.home .x4m-home-curtain { padding-top:26px; }
  body.home .x4m-home-curtain .x4p-home-navigation { min-height:0; padding:0 0 22px; }
  .home .x4p-home-navigation .gen-home-portals__inner { width:calc(100% - 24px); display:block; }
  .home .x4m-home-curtain .x4p-home-navigation .gen-portal-grid { flex:initial; grid-auto-flow:column; grid-auto-columns:calc(100% - 32px); grid-template-columns:none; grid-template-rows:none; min-height:0; gap:12px; padding:0 0 4px; overflow-x:auto; overflow-y:hidden; }
  .home .x4m-home-curtain .x4p-home-navigation .gen-portal-card { grid-row:auto; grid-column:auto; min-height:clamp(244px,66vw,290px); }
  body.home .x4p-home-navigation .gen-portal-card__copy h3 { font-size:26px; line-height:1.1; }
  body.page-template-page-about .x4p-about-story { width:calc(100% - 24px); min-height:0; padding-bottom:16px; }
  body.page-template-page-about .x4p-about-features { flex:none; }
  body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-discipline-tabs { width:100%; }
  body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-mode-tabs { display:grid; grid-template-columns:1fr 1fr 1.4fr; gap:8px; }
  body.page-template-page-tournaments .x4p-tournament-toolbar--workspace .x4p-mode-tabs a { min-height:48px; padding:10px 2px; font-size:12px; }
}
@media(min-width:761px) and (max-height:600px){
  .home .x4m-home-curtain .x4p-home-navigation .gen-portal-grid { min-height:440px; }
}
.home .x4p-highlight-pages .gen-highlight-card { display:grid; grid-template-rows:minmax(2.4em,auto) 1fr; gap:16px; text-align:center; align-content:stretch; }
.home .x4p-highlight-pages .gen-highlight-card h3 { margin:0; align-self:start; }
.home .x4p-highlight-pages .gen-highlight-card p { margin:0; align-self:center; text-wrap:pretty; }
.x4m-disclosure > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; list-style:none; }
.x4m-disclosure > summary::-webkit-details-marker { display:none; }
.x4m-disclosure > summary::marker { content:''; }
.x4m-disclosure > summary::after { content:none!important; }
.x4m-disclosure-chevron { display:block; width:22px; height:22px; flex:0 0 22px; color:var(--text-secondary); transform:rotate(0); transition:transform 520ms var(--x4m-ease),color 360ms var(--x4m-ease); }
.x4m-disclosure[data-expanded=true] > summary > .x4m-disclosure-chevron { transform:rotate(180deg); color:var(--text-primary); }
.x4m-disclosure[data-animating] { overflow:clip; }
.page-template-page-tournaments .x4p-hub-guide > summary { min-height:72px; padding:20px 0; font-size:20px; font-weight:600; line-height:1.45; color:var(--text-primary); }
@media(prefers-reduced-motion:no-preference){
  body.gen :is(.gen-button,.x4t-button,.x4-profile__mode-toggle,.x4p-tabs a,.x4m-roster-tabs button) { transition:background-color 360ms var(--x4m-ease),border-color 360ms var(--x4m-ease),color 320ms var(--x4m-ease),box-shadow 400ms var(--x4m-ease),transform 420ms var(--x4m-ease); }
  body.gen .gen-reveal { transition:opacity 820ms var(--x4m-ease),transform 920ms var(--x4m-ease); }
  body.gen :is(.gen-highlight-card,.gen-portal-card) { transition:background-color 460ms var(--x4m-ease),border-color 460ms var(--x4m-ease),box-shadow 520ms var(--x4m-ease),transform 620ms var(--x4m-ease),opacity 820ms var(--x4m-ease); }
  body.gen #gen-mobile { transition:opacity 400ms var(--x4m-ease),transform 480ms var(--x4m-ease),visibility 480ms; }
  body.gen #gen-burger span { transition:transform 480ms var(--x4m-ease),background-color 320ms var(--x4m-ease); }
  body.gen .x4m-menu-backdrop { transition:opacity 400ms var(--x4m-ease),visibility 400ms; }
  body.gen .x4m-track-nav button::after { transition:width 420ms var(--x4m-ease),opacity 360ms var(--x4m-ease),background-color 360ms var(--x4m-ease); }
  body.gen dialog[open] { animation:x4m-dialog-enter 440ms var(--x4m-ease) both; }
  @keyframes x4m-dialog-enter { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
}

@media(max-width:1100px){
  body.gen { --x4m-hud-height:72px; --x4m-hud-top:max(10px,env(safe-area-inset-top)); }
  body.gen #gen-nav.gen-header { display:block; top:var(--x4m-hud-top); left:10px; right:10px; margin:0; width:calc(100% - 20px); min-height:var(--x4m-hud-height); padding:8px 10px; border-radius:25px; z-index:100; opacity:1!important; transform:none!important; }
  body.gen #gen-nav .gen-header__inner { display:flex; width:100%; min-height:54px; gap:10px; align-items:center; }
  body.gen #gen-nav .gen-brand { min-width:0; gap:8px; flex:1 1 auto; }
  body.gen #gen-nav .gen-brand__mark { display:grid; place-items:center; width:36px; height:38px; flex:0 0 36px; overflow:visible; }
  body.gen #gen-nav .gen-brand__mark svg { width:36px; height:38px; overflow:visible; }
  body.gen #gen-nav .gen-brand__copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
  body.gen #gen-nav .gen-brand__copy strong { font-size:13px; line-height:1.2; }
  body.gen #gen-nav .gen-brand__copy small { display:block; font-size:8px; line-height:1.2; letter-spacing:.025em; white-space:nowrap; }
  body.gen #gen-nav .gen-header__actions { display:flex; flex:0 0 auto; align-items:center; gap:5px; }
  body.gen #gen-nav .gen-header__actions > .gen-sound-toggle,
  body.gen #gen-nav .gen-header__actions > .gen-cart-button { display:none; }
  body.gen #gen-nav .gen-header__actions > a[aria-label="Личный кабинет"] { display:grid; width:44px; height:44px; min-width:44px; padding:10px; border-radius:15px; }
  body.gen #gen-nav .x4p-friends.is-docked { display:block; width:44px; flex:0 0 44px; }
  body.gen #gen-nav .x4p-friends.is-docked > summary { width:44px; height:44px; }
  body.gen #gen-nav #gen-burger { display:flex; flex:0 0 46px; width:46px; min-width:46px; height:46px; min-height:46px; padding:0; gap:6px; align-items:center; justify-content:center; border-radius:16px; }
  body.gen #gen-nav #gen-burger span { flex:0 0 2px; width:20px; height:2px; min-height:2px; border-radius:2px; margin:0; transform-origin:center; }
  body.gen #gen-nav #gen-burger[aria-expanded=true] span:first-child { transform:translateY(4px) rotate(45deg); }
  body.gen #gen-nav #gen-burger[aria-expanded=true] span:last-child { transform:translateY(-4px) rotate(-45deg); }
  body.gen #gen-mobile { top:calc(100% + 10px); left:0; right:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; max-height:calc(100dvh - var(--x4m-hud-height) - var(--x4m-hud-top) - 28px - env(safe-area-inset-bottom)); overflow-y:auto; overscroll-behavior:contain; padding:12px; border-radius:24px; background:#111116; box-shadow:0 20px 40px #0006; }
  body.gen #gen-mobile a { min-width:0; display:flex; align-items:center; min-height:50px; padding:12px; font-size:15px; font-weight:550; line-height:1.35; border-radius:14px; }
  body.gen #gen-mobile a.is-current { background:rgba(154,104,255,.15); color:#d5c3fa; }
  body.gen #gen-mobile .x4m-menu-account { grid-column:1/-1; margin-top:4px; border:1px solid var(--border-subtle); background:var(--bg-tertiary); }
  body.gen #gen-mobile .x4m-menu-secondary { font-size:13px; color:var(--text-secondary); }
  .x4m-menu-backdrop { display:block; position:fixed; inset:0; z-index:90; visibility:hidden; pointer-events:none; opacity:0; background:rgba(3,3,8,.58); transition:opacity 260ms var(--ease),visibility 260ms; border:0; border-radius:0; }
  body.gen-menu-open .x4m-menu-backdrop { visibility:visible; pointer-events:auto; opacity:1; }
  .x4p-friends.is-docked > .x4p-friends-body { top:calc(var(--x4m-hud-top) + var(--x4m-hud-height) + 10px); max-height:calc(100dvh - 116px); z-index:101; }
  :is(button,a,input,select,summary):focus-visible { outline:2px solid var(--volt); outline-offset:4px; }
  .home .x4p-highlight-pages .gen-section-head { display:block; }
  .home .x4p-highlight-pages .gen-section-head p { margin:16px 0 0; max-width:42ch; }
}

@media(max-width:760px){
  body.gen { --x4p-page-top:calc(102px + var(--x4m-hud-top,10px))!important; --x4-account-top:calc(102px + var(--x4m-hud-top,10px))!important; --x4p-screen-top:calc(102px + var(--x4m-hud-top,10px)); --x4p-footer-gap:48px; }
  body.gen input,body.gen select,body.gen textarea { font-size:16px; }
  body.gen :is(button,.gen-button,.x4t-button,summary) { touch-action:manipulation; }
  .x4m-wide-copy { display:none; }
  .x4m-short-copy { display:inline; }
  body.home .gen-hero.gen-platform-hero { height:200svh!important; min-height:0!important; }
  body.home .gen-platform-hero .gen-hero__stage { position:sticky!important; top:0; height:100svh!important; }
  body.home .gen-platform-hero .gen-hero__content { top:49%; width:calc(100% - 32px); }
  body.home .gen-platform-hero .gen-hero__wordmark { font-size:clamp(26px,7.8vw,34px); font-weight:800; line-height:1.1; letter-spacing:-.035em; }
  body.home .gen-platform-hero .gen-hero__content > p { font-size:15px; line-height:1.55; max-width:34ch; margin:20px auto 0; }
  body.home .gen-platform-hero .x4p-hero-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:22px; }
  body.home .gen-platform-hero .x4p-hero-actions a { width:100%; min-width:0; min-height:48px; height:auto; padding:12px 9px; margin:0; font-size:12px; font-weight:600; line-height:1.35; border-radius:17px; }
  body.home .gen-platform-hero .gen-hero__media-frame img { transform:scale(var(--x4m-hero-scale,1.06)); will-change:transform; }
  .home .x4m-home-curtain { display:block; position:relative; z-index:4; margin-top:-100svh; background:#08080d; border-radius:28px 28px 0 0; padding-top:26px; box-shadow:0 -16px 44px rgba(0,0,0,.42); }
  .home .x4m-home-curtain .gen-home-portals { margin-top:0!important; padding:0 0 22px; min-height:0; box-shadow:none; background:transparent; }
  .home .x4m-home-curtain .gen-home-portals::before { display:none; }
  .home .x4m-home-curtain .gen-portal-grid { display:grid; grid-auto-flow:column; grid-auto-columns:calc(100% - 32px); grid-template-columns:none; grid-template-rows:none; min-height:0; gap:12px; overflow-x:auto; overflow-y:hidden; padding:0 0 4px; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; }
  .home .x4m-home-curtain .gen-portal-card { grid-column:auto; grid-row:auto; min-height:clamp(244px,66vw,290px); border-radius:24px; scroll-snap-align:start; }
  .home .x4m-home-curtain .gen-portal-card__copy { padding:22px; gap:9px; grid-template-rows:auto minmax(55px,auto) minmax(44px,auto); }
  .home .x4m-home-curtain .gen-portal-card__copy h3 { font-size:26px; line-height:1.1; white-space:normal; }
  .home .x4m-home-curtain .gen-portal-card__copy p { font-size:14px; line-height:1.55; }
  .home .x4p-highlight-pages { padding:16px 0 12px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .home .x4p-highlight-screen,.home .x4p-highlight-screen .gen-highlight-grid { display:contents; }
  .home .x4p-highlight-pages .gen-section-head { grid-column:1/-1; display:block; margin:0 0 12px; }
  .home .x4p-highlight-pages .gen-section-head h2 { font-size:32px; line-height:1.12; }
  .home .x4p-highlight-pages .gen-section-head p { margin:14px 0 0; font-size:14px; line-height:1.65; }
  .home .x4p-highlight-pages .gen-highlight-card { width:auto; max-width:100%; min-width:0; min-height:220px; padding:22px 16px; gap:12px; border-radius:22px; }
  .home .x4p-highlight-pages .gen-highlight-card h3 { font-size:clamp(16px,5vw,20px); line-height:1.2; }
  .home .x4p-highlight-pages .gen-highlight-card p { font-size:13px; line-height:1.6; }
  .x4m-carousel { scrollbar-width:none; }
  .x4m-carousel::-webkit-scrollbar { display:none; }
  .x4m-carousel[data-x4m-count="1"] { grid-auto-columns:100%!important; }
  .x4m-carousel > .gen-reveal { opacity:1!important; visibility:visible!important; transform:none!important; }
  .x4m-track-nav { display:flex; align-items:center; justify-content:center; gap:4px; padding:4px 0 0; min-height:48px; }
  .x4m-track-nav button { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:12px; padding:0; background:transparent; }
  .x4m-track-nav button::after { content:''; width:6px; height:6px; border-radius:6px; background:var(--text-muted); opacity:.45; transition:width 260ms var(--ease),opacity 260ms var(--ease),background-color 260ms var(--ease); }
  .x4m-track-nav button[aria-current=true]::after { width:22px; background:var(--volt); opacity:1; }
  .x4p-about-main,.x4p-about-values { padding:24px; }
  .x4p-about-main .x4p-about-features { display:grid; grid-auto-flow:column; grid-auto-columns:calc(100% - 18px); grid-template-columns:none; gap:16px; overflow:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; margin-top:26px; padding-bottom:4px; }
  .x4p-about-features > section { min-width:0; scroll-snap-align:start; padding-top:18px; min-height:212px; }
  .x4p-about-values ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
  .x4p-about-values li { font-size:13px; line-height:1.6; padding:15px 0; }
  .x4p-profile-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:24px 0; }
  .x4p-profile-stats > div { padding:14px 10px; border-radius:18px; gap:8px; min-width:0; }
  .x4p-profile-stats strong { font-size:clamp(18px,5vw,24px); line-height:1.25; overflow-wrap:anywhere; }
  .x4p-profile-stats small { font-size:10px; line-height:1.5; }
  .page-template-page-afisha #past-events { min-height:0; padding-top:48px; padding-bottom:0; }
  .page-template-page-afisha .x4p-event-feature > div { padding:24px; gap:16px; }
  .x4p-tournament-toolbar { display:grid; gap:12px; overflow:visible; }
  .x4p-tournament-toolbar .x4p-mode-tabs { border:0; padding-left:0; }
  .x4p-tournament-toolbar .x4p-tabs { display:flex; max-width:100%; overflow:auto; flex-wrap:nowrap; gap:8px; padding-bottom:2px; scrollbar-width:none; }
  .x4p-tournament-toolbar .x4p-tabs > * { flex:0 0 auto; min-height:46px; padding:10px 15px; }
  .page-template-page-tournaments .x4p-hub-guide > summary { min-height:68px; font-size:18px; padding:20px 0; }
  .page-template-page-tournaments .x4t-team-summary__head { padding:20px; gap:12px; }
  .page-template-page-tournaments .x4t-team-summary__head h3 { font-size:23px; line-height:1.22; }
  .page-template-page-tournaments .x4t-invite-slots { margin:18px 20px; gap:0; }
  .x4m-roster-tabs { display:flex; grid-column:1/-1; gap:8px; margin-bottom:22px; }
  .x4m-roster-tabs button { display:flex; align-items:center; justify-content:center; min-width:0; flex:1; min-height:44px; padding:10px 12px; border:1px solid var(--border-subtle); border-radius:15px; background:transparent; font-size:13px; line-height:1.4; }
  .x4m-roster-tabs [aria-selected=true] { color:#d5c3fa; border-color:var(--volt); background:rgba(154,104,255,.1); }
  .x4t-invite-slots[data-x4m-roster] > .x4t-roster-group { display:none; }
  .x4t-invite-slots[data-x4m-roster] > .x4t-roster-group[data-mobile-active=true] { display:block; }
  .page-template-page-tournaments .x4t-roster-group__head { padding-bottom:10px; }
  .page-template-page-tournaments .x4t-invite-seat { min-height:68px; gap:12px; }
  .page-template-page-tournaments .x4t-invite-seat strong { font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
  .page-template-page-tournaments .x4t-invite-seat .x4t-roster__state { font-size:9px; }
  .x4t-invite-seat .x4t-button { min-height:44px; padding:10px 12px; }
  .x4-account-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .x4-account-nav a { min-height:48px; padding:10px 14px; font-size:12px; }
  .x4-account-primary > .x4-account-dashboard { display:grid; grid-auto-flow:column; grid-auto-columns:calc(100% - 24px); grid-template-columns:none; gap:12px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; align-items:start; padding:0 0 4px; }
  .x4-account-dashboard > * { min-width:0; scroll-snap-align:start; }
  .x4-account-pass { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; min-height:0!important; padding:22px!important; }
  .x4-account-pass__title { margin:0; font-size:19px; line-height:1.3; }
  .x4-account-pass__qr { width:min(100%,250px); margin:18px auto 0; }
  .x4-account-pass__qr > *,.x4-account-pass .offline-pass-placeholder { width:100%!important; max-width:250px; margin-left:auto; margin-right:auto; }
  .x4-account-pass__copy { margin:18px 0 0; font-size:13px; line-height:1.6; }
  .x4-account-pass__form { margin:18px 0 0; }
  .x4-account-side { gap:10px; }
  .x4-account-side > .x4-account-wallet,.x4-account-side > .x4-account-telegram { padding:18px!important; }
  .x4-account-status-grid { gap:10px; }
  .x4-account-status-grid > * { padding:14px!important; }
  .x4-profile { padding:22px!important; }
  .x4-profile__head { display:flex; flex-direction:column; gap:18px; align-items:stretch; }
  .x4-profile__head h2 { font-size:32px; }
  .x4-profile__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .x4-profile__grid > label:has(input[type=email]),.x4-profile__grid > label:has(select) { grid-column:1/-1; }
  .x4-profile__esports-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .x4-profile__esports-grid > label:first-child,.x4-profile__esports-grid > .x4-profile__steam-field { grid-column:1/-1; }
  .x4-profile :is(input,select) { min-height:48px; min-width:0; }
  .x4-profile__head-actions { width:100%; }
  .x4-profile__mode-toggle { min-height:44px; max-width:100%; }
  .x4p-ledger { font-size:12px; }
  .x4p-ledger :is(th,td) { padding:12px 8px; }
  body.page-template-page-game #gen-content { padding-top:0; }
  .x4g-page { padding-top:calc(102px + var(--x4m-hud-top,10px)); }
  .x4g-page .x4g-layout { display:flex; flex-direction:column; gap:16px; }
  .x4g-page .x4g-layout > .x4g-column { display:contents; }
  .x4g-page .x4g-panel--voice { order:1; }
  .x4g-page .x4g-panel--roster { order:2; }
  .x4g-page .x4g-panel--lobby { order:3; }
  .x4g-panel { padding:0; border-radius:24px; }
  .x4g-panel__head { padding:20px; }
  .x4g-panel__head h2 { font-size:23px; line-height:1.25; }
  .x4g-roster { display:grid; grid-auto-flow:column; grid-auto-columns:calc(100% - 22px); grid-template-columns:none; overflow:auto; gap:12px; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; }
  .x4g-roster > .x4g-team { min-width:0; scroll-snap-align:start; margin:0; }
  .x4g-team > summary { min-height:48px; display:flex; align-items:center; }
  .x4g-player { padding:12px 14px; gap:10px; }
  .x4g-player__identity strong { font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
  .x4g-player__state { font-size:9px; }
  .x4g-player__avatar { width:30px; height:30px; }
  .x4p-voice-actions .x4t-button { min-height:46px; padding:12px!important; }
  .x4p-voice-check { min-height:44px; }
  .x4p-voice-check input[type=checkbox] { width:20px; height:20px; }
  .x4g-page [data-game-voice] #x4p-game-voice { padding:20px; }
  .x4p-voice-settings select,.x4p-voice-controls input:not([type=checkbox]):not([type=range]) { min-height:48px; }
  .gen-footer { padding-top:28px; border-radius:25px; margin-bottom:max(12px,env(safe-area-inset-bottom)); }
  .gen-footer__top { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 22px; padding:0 24px 28px; }
  .gen-footer__brand,.gen-footer__contact { grid-column:1/-1; }
  .gen-footer__brand { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:center; gap:18px; }
  .gen-footer__brand > a svg { width:44px!important; height:48px; }
  .gen-footer__brand p { margin:0; font-size:12px; line-height:1.7; }
  .gen-footer__column { min-width:0; gap:12px; }
  .gen-footer__column > a { font-size:13px; line-height:1.55; overflow-wrap:anywhere; }
  .gen-footer__contact { border-top:1px solid var(--border-subtle); padding-top:22px; }
  .gen-footer__bottom { padding:22px 24px; font-size:10px; gap:10px; }
}
.x4m-voice-advanced { display:contents; }
.x4m-voice-advanced > summary { display:none; }
@media(max-width:760px){
  .x4m-voice-advanced { display:block; border-top:1px solid var(--border-subtle); padding-top:8px; }
  .x4m-voice-advanced > summary { display:flex; align-items:center; min-height:48px; cursor:pointer; font-size:14px; font-weight:600; list-style:none; }
  .x4m-voice-advanced > summary::-webkit-details-marker { display:none; }
  .x4m-voice-advanced > summary::after { content:'+'; margin-left:auto; font-size:22px; font-weight:400; color:var(--text-secondary); }
  .x4m-voice-advanced[open] > summary::after { content:'−'; }
}
@media(max-width:360px){
  body.gen #gen-nav { padding:8px!important; }
  body.gen #gen-nav .gen-header__inner { gap:5px; }
  body.gen #gen-nav .gen-header__actions { gap:0; }
  body.gen #gen-nav .gen-brand__copy small { font-size:7px; }
  body.home .gen-platform-hero .gen-hero__wordmark { font-size:26px; }
  .x4p-about-main,.x4p-about-values { padding:20px; }
  .x4p-about-values ul { gap:0 12px; }
  .x4p-about-values li { font-size:12px; }
  .home .x4p-highlight-pages .gen-highlight-card { padding:20px 12px; }
  .x4-profile__grid { grid-template-columns:minmax(0,1fr); }
  .x4-profile__grid > label { grid-column:auto!important; }
}
@media(min-width:520px) and (max-width:1100px) and (max-height:520px){
  .x4m-wide-copy { display:none; }
  .x4m-short-copy { display:inline; }
  body.home .gen-platform-hero .gen-hero__content { top:calc(94px + var(--x4m-hud-top,10px)); width:calc(100% - 40px); transform:translateX(-50%); }
  body.home .gen-platform-hero .gen-hero__wordmark { font-size:clamp(25px,3.8vw,32px); line-height:1.06; }
  body.home .gen-platform-hero .gen-hero__content > p { max-width:64ch; font-size:14px; line-height:1.45; margin:14px auto 0; }
  body.home .gen-platform-hero .x4p-hero-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:16px; }
  body.home .gen-platform-hero .x4p-hero-actions a { width:100%; min-width:0; min-height:46px; padding:8px; margin:0; font-size:12px; line-height:1.3; }
}
@media(prefers-reduced-motion:reduce){
  .x4m-menu-backdrop,.x4m-track-nav button::after,.x4m-disclosure-chevron { transition:none; }
  body.home .gen-platform-hero .gen-hero__media-frame img { will-change:auto; }
}

/* Account navigation retains the existing HUD scale and palette. */
body.gen #gen-nav .gen-profile-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:10px 16px; border:1px solid var(--border-subtle); border-radius:999px; color:var(--text-primary); font-size:12px; font-weight:600; line-height:1.2; white-space:nowrap; transition:background-color 240ms ease,border-color 240ms ease; }
body.gen #gen-nav .gen-profile-button svg { width:20px; height:20px; flex:none; }
body.gen #gen-nav .gen-profile-button:hover { background:var(--bg-tertiary); border-color:var(--volt); }
body.gen #gen-nav .gen-profile-button:focus-visible { outline:2px solid var(--volt); outline-offset:3px; }
@media(max-width:1100px){
  body.gen #gen-nav .gen-profile-button { width:44px; height:44px; min-width:44px; padding:10px; border-radius:15px; }
  body.gen #gen-nav .gen-profile-button__label { display:none; }
}

/* The gaming profile is a visible section, no longer an alternative form mode. */
.x4p-esports-form { margin:28px 0; border:1px solid var(--border-subtle); border-radius:20px; min-width:0; overflow:hidden; scroll-margin-top:120px; }
.x4p-esports-form .x4-profile__esports-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:24px; }
.x4p-esports-form h3 { margin:0; font-size:clamp(20px,2vw,28px); line-height:1.25; font-weight:650; letter-spacing:-.025em; }
.x4p-esports-form .x4-profile__esports-grid { min-width:0; }
.x4p-esports-form .x4-profile__steam-field { grid-column:auto; }
.x4p-esports-form :is(input,select) { min-width:0; width:100%; }
@media(min-width:1101px){
  .page-template-page-lk .x4-account-primary { gap:24px; }
  .page-template-page-lk .x4-account-dashboard { gap:24px; }
  .page-template-page-lk .x4-account-side { gap:24px; }
  .page-template-page-lk .x4-lk-shell > .x4t-lk { margin-top:48px; }
  .page-template-page-lk .x4-account-overview > .x4-profile { margin-top:48px; }
}
@media(max-width:760px){
  .x4p-esports-form { margin:24px 0; border-radius:16px; }
  .x4p-esports-form .x4-profile__esports-head { padding:20px; }
  .x4p-esports-form .x4-profile__esports-grid { padding:20px; }
  .x4p-esports-form .x4-profile__esports-grid > .x4-profile__steam-field { grid-column:1/-1; }
}

/* Seat transfer choices expand inside their row, without overlaying another player. */
.page-template-page-tournaments .x4t-invite-seat:has(.x4t-roster-move) { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 16px; padding-block:12px; }
.x4t-roster-move { grid-column:1/-1; min-width:0; }
.x4t-roster-move > summary { display:flex; align-items:center; justify-content:center; width:fit-content; min-height:36px; margin-left:auto; padding:8px 14px; border:1px solid var(--border-subtle); border-radius:999px; cursor:pointer; list-style:none; font-size:12px; font-weight:600; transition:background-color 240ms ease,border-color 240ms ease; }
.x4t-roster-move > summary::-webkit-details-marker { display:none; }
.x4t-roster-move > summary:hover,.x4t-roster-move[open] > summary { border-color:var(--volt); background:var(--bg-tertiary); }
.x4t-roster-move > summary:focus-visible { outline:2px solid var(--volt); outline-offset:3px; }
.x4t-roster-move form { display:grid; gap:16px; margin:12px 0 4px; padding:18px; border:1px solid var(--border-subtle); border-radius:16px; background:var(--bg-secondary); }
.x4t-roster-move fieldset { min-width:0; margin:0; padding:0; border:0; }
.x4t-roster-move legend { padding:0 0 12px; font-size:13px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.x4t-roster-move label { display:flex; align-items:center; gap:10px; min-height:48px; padding:8px; border-radius:10px; cursor:pointer; }
.x4t-roster-move label:has(input:checked) { background:rgba(154,104,255,.12); }
.x4t-roster-move label:has(input:disabled) { opacity:.45; cursor:not-allowed; }
.x4t-roster-move input[type=radio] { width:18px; height:18px; min-height:0; flex:none; accent-color:var(--volt); }
.x4t-roster-move label > span { min-width:0; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.x4t-roster-move form > button { width:fit-content; }

/* Two primary account screens, using the existing cards and controls. */
.page-template-page-lk #gen-content > .x4-lk-shell:not(.x4-auth-shell) { max-width:none; width:100%; padding-inline:24px; }
.x4-account-overview { gap:20px; }
.x4-account-overview > .x4-account-nav { margin:0; flex:none; order:0; }
.x4-account-workspace { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; min-width:0; order:1; }
.x4-account-workspace > .x4-profile { min-width:0; margin:0; }
.x4-account-workspace .x4-account-dashboard { margin:0!important; min-width:0; }
.x4-account-workspace .x4-account-side { min-width:0; gap:16px; }
.x4-account-status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px!important; padding:0; overflow:visible; background:transparent; border-radius:0; }
.x4-account-status-grid > div { min-width:0; padding:16px!important; border:1px solid var(--border-subtle)!important; border-radius:18px!important; }
.x4-account-status-grid > div > div:last-child { margin-top:8px; line-height:1.4; overflow-wrap:anywhere; }
.x4-account-workspace :is(.x4-account-wallet,.x4-account-telegram) { display:grid; align-content:start; gap:12px; min-width:0; padding:20px!important; }
.x4-account-workspace :is(.x4-account-wallet,.x4-account-telegram) > * { margin:0!important; }
.x4-account-workspace :is(.x4-account-wallet,.x4-account-telegram) > :is(p,div) { line-height:1.55; }
.x4-account-workspace :is(.x4-account-wallet,.x4-account-telegram) > a { display:inline-flex; justify-self:start; align-items:center; gap:10px; min-height:44px; margin-top:4px!important; }
.x4-account-workspace :is(.x4-account-wallet,.x4-account-telegram) > a + p { margin-top:4px!important; }
.x4-account-game-screen { scroll-margin-top:var(--x4-account-top,118px); }
.x4-account-game-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; min-width:0; }
.x4-account-game-main,.x4-account-game-stats { min-width:0; }
.x4-account-game-main { display:flex; flex-direction:column; gap:16px; }
.x4-account-game-main > .x4p-esports-form { margin:0; flex:1; }
.x4-account-game-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.x4-account-game-actions > :is(a,button) { display:flex; justify-content:center; align-items:center; width:100%; min-width:0; min-height:48px; margin:0; text-align:center; font-size:13px; }
.x4-account-game-stats { display:flex; flex-direction:column; gap:16px; }
.x4-account-game-stats > :is(.x4p-status-note,.x4p-profile-stats,.x4p-medals,.x4p-accordion) { margin:0; }
.x4-account-game-stats .x4p-profile-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.x4-account-game-stats .x4p-profile-stats > div { min-width:0; padding:20px; justify-content:center; gap:8px; }
.x4-account-game-stats .x4p-profile-stats > div:first-child { grid-column:1/-1; }
.x4-account-game-stats .x4p-profile-stats strong { font-size:clamp(24px,2.2vw,34px); line-height:1.2; }
.x4-account-game-stats .x4p-accordion > summary { font-size:19px; line-height:1.35; }
.x4-account-game-stats .x4p-medals p { margin:0; }
@media(min-width:1101px){
  .x4-account-overview { min-height:calc(100svh - var(--x4-account-top,118px)); padding-bottom:24px; }
  .x4-account-workspace { flex:1; grid-template-columns:minmax(0,1.18fr) minmax(220px,.72fr) minmax(0,1fr); align-items:stretch; }
  .x4-account-workspace .x4-account-dashboard { display:contents; }
  .x4-account-workspace .x4-account-pass { min-height:0; padding:22px!important; }
  .x4-account-workspace .x4-account-pass > .x4-account-pass__qr { width:min(100%,270px); }
  .x4-account-workspace .x4-account-side { display:grid; grid-template-rows:auto auto auto; gap:16px; }
  .x4-account-workspace :is(.x4-account-wallet,.x4-account-telegram) { align-content:center; }
  .x4-account-workspace .x4-account-wallet > .text-5xl { font-size:38px; line-height:1.1; }
  .x4-account-workspace .x4-profile { display:flex; flex-direction:column; }
  .x4-account-workspace .x4-profile__head { min-height:0; padding:20px; align-items:center; }
  .x4-account-workspace .x4-profile__head h2,.x4-account-game-screen .x4t-lk__head h2 { margin-top:6px; font-size:clamp(30px,2.5vw,44px); line-height:1.15; letter-spacing:-.03em; }
  .x4-account-workspace .x4-profile__form { flex:1; display:flex; flex-direction:column; }
  .x4-account-workspace .x4-profile__grid { flex:1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 16px; padding:20px; align-content:center; }
  .x4-account-workspace .x4t-field { min-width:0; }
  .x4-account-workspace .x4t-field small { font-size:11px; line-height:1.5; }
  .x4-account-workspace .x4-profile__footer { padding:16px 20px; }
  .page-template-page-lk .x4-lk-shell > .x4-account-game-screen { display:flex; flex-direction:column; gap:24px; min-height:calc(100svh - var(--x4-account-top,118px)); margin-top:24px; padding-block:24px; }
  .x4-account-game-screen .x4t-lk__head { display:flex; align-items:center; justify-content:space-between; width:100%; max-width:none; margin:0; gap:20px; }
  .x4-account-game-layout { flex:1; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); }
  .x4-account-game-main .x4p-esports-form { display:flex; flex-direction:column; }
  .x4-account-game-main .x4-profile__esports-grid { flex:1; align-content:center; }
  .x4-account-game-stats .x4p-profile-stats { flex:1; }
  .x4-account-game-stats .x4p-radar { width:100%; max-height:180px; }
}
@media(min-width:1101px) and (max-height:800px){
  .x4-account-overview { gap:16px; padding-bottom:16px; }
  .x4-account-workspace { gap:16px; }
  .x4-account-workspace :is(.x4-account-wallet,.x4-account-telegram) { gap:8px; padding:16px!important; }
  .x4-account-workspace .x4-account-wallet > .text-5xl { font-size:32px; }
  .x4-account-workspace .x4-profile__grid { gap:14px; padding:16px; }
  .x4-account-workspace .x4-profile__head { padding:16px; }
  .x4-account-workspace .x4-profile__footer { padding:12px 16px; }
  .x4-account-workspace .x4-profile__grid :is(input,select) { min-height:46px; padding-block:12px; }
  .x4-account-status-grid > div { padding:12px!important; }
  .x4-account-status-grid > div:first-child > div:last-child { font-size:20px; line-height:1.3; }
  .x4-account-game-screen .x4-profile__esports-head { padding:18px; }
  .x4-account-game-screen .x4-profile__esports-grid { padding:18px; gap:14px; }
}
@media(max-width:1100px){
  .x4-account-workspace > .x4-account-dashboard { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
  .x4-account-game-screen { margin-top:32px; }
}
@media(max-width:760px){
  .page-template-page-lk #gen-content > .x4-lk-shell:not(.x4-auth-shell) { padding-inline:12px; }
  .x4-account-overview,.x4-account-workspace { gap:16px; }
  .x4-account-workspace > .x4-account-dashboard { grid-auto-flow:column; grid-auto-columns:calc(100% - 24px); grid-template-columns:none; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; padding-bottom:4px; }
  .x4-account-workspace > .x4-account-dashboard > * { scroll-snap-align:start; }
  .x4-account-game-layout { gap:20px; }
  .x4-account-game-actions { grid-template-columns:minmax(0,1fr); }
  .x4-account-status-grid { gap:12px!important; }
}

/* Match the IT site's content canvas; keep dialogs and individual inputs readable. */
body.gen { --x4-layout-max:1680px; --x4-layout-gutter:24px; --shell:min(var(--x4-layout-max),calc(100% - 2 * var(--x4-layout-gutter))); }
body.gen #gen-content :is(.gen-shell,.x4t-shell,.x4g-shell) { width:var(--shell); max-width:none; margin-inline:auto; }
body.gen .gen-footer.gen-shell { width:var(--shell); max-width:none; margin-inline:auto; }
body.home #gen-content .x4p-home-navigation .gen-home-portals__inner { width:var(--shell); max-width:none; margin-inline:auto; }
body.page-template-page-lk #gen-content > .x4-lk-shell,
body.page-template-page-lk #gen-content > .x4-lk-shell:not(.x4-auth-shell) { width:var(--shell); max-width:none; margin-inline:auto; padding-inline:0; }
body.gen #gen-content :is(.gen-cart-hero > div,.gen-cart-content) { width:var(--shell); max-width:none; margin-inline:auto; padding-inline:0; }
body.woocommerce-cart #gen-content .gen-cart-page > section:not(.gen-cart-hero),
body.woocommerce-cart #gen-content .gen-cart-page > .woocommerce > section:not(.gen-cart-hero),
body.woocommerce-cart #gen-content .gen-cart-page > .woocommerce > :is(.woocommerce-notices-wrapper,.wc-empty-cart-message) { width:var(--shell); max-width:none; margin-inline:auto; }
body.woocommerce-cart #gen-content .gen-cart-page > section:first-of-type:not(.gen-cart-hero) > div,
body.woocommerce-cart #gen-content .gen-cart-page > .woocommerce > section:first-of-type:not(.gen-cart-hero) > div { width:100%; max-width:none; padding-inline:0; }
/* IT scales its 1680px canvas above 1920px. Match that width without changing eSports typography. */
@media(min-width:1921px){ body.gen { --x4-layout-max:min(3360px,87.5vw); } }
@media(max-width:680px){ body.gen { --x4-layout-gutter:12px; } }

/* Available stages are a distinct, centered group, not another roster row. */
body.page-template-page-tournaments #qualification-stages { display:flex; flex-direction:column; align-items:center; gap:24px; margin-top:32px; margin-bottom:48px; }
body.page-template-page-tournaments #qualification-stages > .x4p-section-title { width:100%; margin:0; padding-bottom:.08em; text-align:center; line-height:1.2; }
body.page-template-page-tournaments #qualification-stages > .x4p-agent-grid { display:flex; flex-wrap:wrap; justify-content:center; align-items:stretch; gap:24px; width:100%; margin:0; }
body.page-template-page-tournaments #qualification-stages .x4p-stage-card { flex:0 1 420px; width:100%; max-width:100%; min-width:0; margin:0; }
body.page-template-page-tournaments #qualification-stages .x4p-stage-card h3 { margin:0; line-height:1.25; overflow-wrap:anywhere; }
body.page-template-page-tournaments #qualification-stages .x4p-stage-card p { margin:0; line-height:1.6; }
body.page-template-page-tournaments #qualification-stages .x4p-stage-card > .x4t-button { margin-top:auto; }
body.page-template-page-tournaments #qualification-stages + .x4t-registration { clear:both; position:relative; padding-top:0; }
@media(max-width:680px){
  body.page-template-page-tournaments #qualification-stages { gap:20px; margin-top:24px; margin-bottom:32px; }
  body.page-template-page-tournaments #qualification-stages > .x4p-agent-grid { gap:16px; }
}

/* A modest contrast lift; the dark palette, accents and all layout metrics stay unchanged. */
body.gen {
  --text-secondary:#bdbac8;
  --text-muted:#9c98a8;
  --border-subtle:rgba(235,230,248,.22);
  --border-strong:rgba(235,230,248,.36);
  --border-field:rgba(235,230,248,.40);
}
body.gen #gen-content :is(.x4-profile,.x4p-esports-form,.x4t-team-summary,.x4p-stage-card,.x4p-about-main,.x4p-about-values,.x4p-shop-card,.x4p-profile-stats > div,.x4p-accordion,.x4-account-pass,.x4-account-wallet,.x4-account-telegram,.x4-account-status-grid > div,.x4-order-card,.x4-account-empty,.x4p-redemption-card) { border-color:var(--border-subtle)!important; }
body.gen #gen-content :is(.gen-portal-card,.x4p-stage-card,.x4p-shop-card,.x4-order-card):hover { border-color:var(--border-strong)!important; }
body.gen #gen-content :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]),select,textarea) { border-color:var(--border-field)!important; }
body.gen #gen-content :is(input,select,textarea)::placeholder { color:var(--text-muted); opacity:1; }
body.gen #gen-content :is(input,select,textarea):is(:focus,:focus-visible) { border-color:var(--volt)!important; }
body.gen #gen-content :is(input[readonly],textarea[readonly]) { color:var(--text-secondary); }
body.gen #gen-content :is(input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true],.woocommerce-invalid input,.woocommerce-invalid select,.woocommerce-invalid textarea) { border-color:var(--accent-red)!important; }
body.gen :is(.gen-button--glass,.x4-account-pass__form button):not(:hover):not(:focus-visible) { border-color:var(--border-strong); }
body.gen #gen-nav { border-color:var(--border-subtle); }
body.gen #gen-nav .gen-menu-button { border-color:var(--border-subtle); }
body.gen #gen-nav .gen-header__links a:not(.is-current):not(:hover):not(:focus-visible) { color:var(--text-secondary); }
body.gen #gen-nav .gen-brand__copy small { color:var(--text-muted); }
