/* Approved site-wide charcoal surfaces. Accent, state, and product colors stay local. */
html:root{--site-charcoal:#030405;--site-surface:#030405}
html body,html body[data-v],html body.customer-page.portal-active,html body:has(.admin-shell){background:#030405!important;background-image:none!important;--premium-page:#030405;--premium-surface:#030405;--panel:#030405}
html body[data-v]::before,html body[data-v]:has(#app)::before{background:none!important}
html body[data-v] #bgWave{opacity:0!important}
html body[data-v] #app :is(.catalog-sidebar,.header,.search-box,.search-row select,.sort-select,.sort-box,.catalog-toolbar,.filter-bar),html body[data-v] #app #grid .card{background:#030405!important;background-image:none!important}
html body[data-v] #app .catalog-sidebar .filter-chip:not(.active){background:#030405!important;background-image:none!important}
html body[data-v] #app :is(.modal,.modal-panel,.modal-content,.product-modal,.checkout-panel){background:#030405!important;background-image:none!important}
html body .admin-shell :is(.sidebar,.workspace,.admin-topbar,.catalog-toolbar,.sales-table-tools,.inventory-reference-header,.inventory-reference-manage,.customer-reference-header,.table-wrap,.inventory-table-wrap,.sales-table-wrap,.customer-table-wrap,.settings-card,.stat,.category-card,.customer-report,.editor-header,.editor-footer,.settings-save,.notification-controls){background:#030405!important;background-image:none!important}
html body .admin-shell table :is(th,td,tr),html body .admin-shell table tbody tr:nth-child(even){background:#030405!important}
html body .admin-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),select,textarea){background:#030405!important}
html body:has(.admin-shell) :is(dialog,.editor-dialog,.admin-dialog,.customer-action-dialog,.sales-details-modal,.login-card,.login-screen){background:#030405!important;background-image:none!important}
html body.customer-page.portal-active :is(.portal-shell,.portal-workspace,.portal-sidebar,.portal-topbar){background:#030405!important;background-image:none!important}
html body.customer-page.portal-active #accountContent :is(.settings-card,.customer-report,.wallet-card,.profile-card,.portal-movement-card,.portal-report-card,.device-card,.profile-phone-form,.advert-card,.advert-card-media,.empty-orders,.order-card,.order-detail-card,.wallet-panel,.devices-panel){background:#030405!important;background-image:none!important}
html body:has(.code-layout) :is(header,main,.history-panel,.history-entry,input,#result){background:#030405!important;background-image:none!important}
/* Override the former seasonal backdrop without altering product artwork. */
html:root[data-theme] body[data-v]:has(#app){background:#030405!important;background-image:none!important}
html:root[data-theme] body[data-v]:has(#app)::before{background:none!important;opacity:0!important}
html:root[data-theme] body[data-v] #app :is(.catalog-sidebar,.header,.search-box,.filter-bar),html:root[data-theme] body[data-v] #app #grid .card{background:#030405!important;background-image:none!important}
html:root[data-theme] body[data-v] #catalog-sidebar,html:root[data-theme] body[data-v] #app>.header:not(#catalogCover),html:root[data-theme] body[data-v] #catalog-sidebar .filter-chip:not(.active){background:#030405!important;background-image:none!important}
/* Preserve the catalog artwork approved before the charcoal panel update. */
html:root[data-theme=dark] body[data-v]:has(#app){background:#08090b url('/assets/catalog-crimson-moon.webp') center top/cover fixed no-repeat!important}
html:root[data-theme=dark] body[data-v]:has(#app)::before{background:linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.48))!important;opacity:1!important}
html:root[data-theme=dark] body[data-v]:has(#app) #bgWave{opacity:.17!important}
@media(max-width:700px){html:root[data-theme=dark] body[data-v]:has(#app){background-position:70% top!important}}
/* Owner login reuses the customer login landscape and drifting mist. */
html body #loginScreen.login-screen{isolation:isolate;overflow:hidden;background:#10090b url('/assets/login-crimson-landscape.webp') center center/cover fixed no-repeat!important}
html body #loginScreen.login-screen::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#08060a35,#08060a10 45%,#08060a50)}
html body #loginScreen.login-screen::after{content:'';position:absolute;inset:-12%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 20% 65%,#d72d283b,transparent 35%),radial-gradient(ellipse at 65% 80%,#e5483638,transparent 38%),radial-gradient(ellipse at 75% 35%,#8d25252b,transparent 35%);filter:blur(28px);animation:owner-mist 6s ease-in-out infinite alternate;opacity:.75}
@keyframes owner-mist{from{transform:translate3d(-15%,4%,0) scale(1)}to{transform:translate3d(15%,-5%,0) scale(1.12)}}
html body #loginScreen .login-card{background:linear-gradient(150deg,#24171acb,#100e12e8 65%)!important;backdrop-filter:blur(13px)}
@media(prefers-reduced-motion:reduce){html body #loginScreen::after{animation:none!important}}
/* Header shortcuts use the same approved charcoal, without tint gradients. */
html:root[data-theme] body[data-v] #app .header :is(.customer-account-link,.customer-wallet-link,.header-action,.reference-home-link,.announcement-bell,.live-mode-toggle:not([aria-pressed=true])){background:#030405!important;background-image:none!important}
/* Catalog product frames reuse the login's crimson orbit, without promoting image layers. */
@property --catalog-frame-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
html:root body[data-v] #app #grid .card{border:2px solid #d055536e!important}
html:root body[data-v] #app #grid .card::after{content:'';position:absolute;inset:0;z-index:2;padding:2px;border-radius:inherit;background:conic-gradient(from var(--catalog-frame-angle),#d5494033 0deg,#d5494033 240deg,#f66e5b 290deg,#ffd0ba 310deg,#d5494033 345deg);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none;animation:catalog-frame-orbit 9s linear infinite}
@keyframes catalog-frame-orbit{to{--catalog-frame-angle:360deg}}
@media(prefers-reduced-motion:reduce){html:root body[data-v] #app #grid .card::after{animation:none}}
/* Product frame motion explicitly enabled by the site owner. */
@media(prefers-reduced-motion:reduce){html:root body[data-v] #app #grid .card::after{animation:catalog-frame-orbit 9s linear infinite!important}}
/* Crimson mist confined to authenticated customer/reseller workspaces. */
html body.customer-page.portal-active .portal-workspace{position:relative;isolation:isolate;overflow:hidden}
html body.customer-page.portal-active .portal-workspace::before,html body.customer-page.portal-active .portal-workspace::after{content:'';position:fixed;pointer-events:none;z-index:-1;inset:-12%;background:radial-gradient(ellipse at 2% 85%,#bc252633,transparent 31%),radial-gradient(ellipse at 98% 70%,#dc342a38,transparent 30%),radial-gradient(ellipse at 60% 110%,#8e182b28,transparent 43%);filter:blur(38px);animation:portal-crimson-mist 22s ease-in-out infinite alternate}
html body.customer-page.portal-active .portal-workspace::after{opacity:.55;animation-duration:31s;animation-direction:alternate-reverse;background:radial-gradient(ellipse at 10% 100%,#dc392d35,transparent 38%),radial-gradient(ellipse at 100% 92%,#a72d3938,transparent 34%)}
@keyframes portal-crimson-mist{from{transform:translate3d(-4%,3%,0) scale(1)}to{transform:translate3d(4%,-3%,0) scale(1.08)}}
/* The same subtle moving crimson mist in the authenticated administration workspace. */
html body .admin-shell .workspace{position:relative;isolation:isolate}
html body .admin-shell .workspace::before,html body .admin-shell .workspace::after{content:'';position:fixed;pointer-events:none;z-index:-1;inset:-12%;background:radial-gradient(ellipse at 2% 85%,#bc252633,transparent 31%),radial-gradient(ellipse at 98% 70%,#dc342a38,transparent 30%),radial-gradient(ellipse at 60% 110%,#8e182b28,transparent 43%);filter:blur(38px);animation:portal-crimson-mist 22s ease-in-out infinite alternate}
html body .admin-shell .workspace::after{opacity:.55;animation-duration:31s;animation-direction:alternate-reverse;background:radial-gradient(ellipse at 10% 100%,#dc392d35,transparent 38%),radial-gradient(ellipse at 100% 92%,#a72d3938,transparent 34%)}
/* Quiet crimson edge and a clear current navigation item. */
html body.customer-page.portal-active .portal-sidebar,html body .admin-shell .sidebar{background:#030405!important;border-right:1px solid #763039!important;box-shadow:5px 0 20px #c6253020!important}
html body.customer-page.portal-active .portal-nav-group.active>.portal-nav-toggle,html body.customer-page.portal-active .portal-subnav a.active,html body .admin-shell .nav-button.active{background:#351218!important;color:#fff!important;border-color:#87313d!important;box-shadow:inset 3px 0 #d84a55!important}
html body.customer-page.portal-active .portal-nav-toggle:hover,html body .admin-shell .nav-button:hover{background:#211014!important}
/* Catalog-like outlined navigation for customer and reseller. */
html body.customer-page.portal-active .portal-nav-toggle,html body.customer-page.portal-active .portal-subnav a{border:1px solid #4c3542!important;border-radius:10px!important;background:#030405!important;margin-bottom:7px;transition:background-color .18s,border-color .18s}
html body.customer-page.portal-active .portal-nav-group.active>.portal-nav-toggle,html body.customer-page.portal-active .portal-subnav a.active{background:linear-gradient(110deg,#b62935,#54171f)!important;border-color:#e34d58!important;color:#fff!important;box-shadow:none!important}
html body.customer-page.portal-active :is(.portal-nav-toggle,.portal-subnav a):hover{border-color:#b13c49!important}
html:root[data-theme] body[data-v] #catalog-sidebar{border-right:1px solid #763039!important;box-shadow:5px 0 20px #c6253020!important}
/* Keep the original animated catalog canvas above its landscape, below the interface. */
html:root[data-theme] body[data-v]:has(#app){isolation:isolate}
html:root[data-theme] body[data-v]:has(#app) #bgWave{z-index:0!important;opacity:.55!important;display:block!important;pointer-events:none!important}
html:root[data-theme] body[data-v] #app{position:relative;z-index:1}
/* Match storefront header shortcuts to the wallet button finish. */
html:root[data-theme] body[data-v] #app .header :is(.customer-account-link,.customer-wallet-link,.header-action,.reference-home-link,.announcement-bell,.live-mode-toggle,.catalog-mobile-toggle){background:linear-gradient(120deg,#25131d,#10121b)!important;border:1px solid #643043!important;border-radius:10px!important;box-shadow:none!important}
html:root[data-theme] body[data-v] #catalog-sidebar :is(.filter-chip-label,.games-category-title){font-size:15px!important}
html:root[data-theme] body[data-v] #app .header :is(#storeWallet,.customer-account-link,.reference-home-link,.announcement-bell,.live-mode-toggle){background:linear-gradient(120deg,#25131d,#10121b)!important}
/* Match the customer panel's moving mist on the account messages page. */
html body:has(.code-layout){position:relative;isolation:isolate;min-height:100dvh;overflow-x:hidden}
html body:has(.code-layout)::before,html body:has(.code-layout)::after{content:'';position:fixed;pointer-events:none;z-index:-1;inset:-12%;background:radial-gradient(ellipse at 2% 85%,#bc252633,transparent 31%),radial-gradient(ellipse at 98% 70%,#dc342a38,transparent 30%),radial-gradient(ellipse at 60% 110%,#8e182b28,transparent 43%);filter:blur(38px);animation:portal-crimson-mist 22s ease-in-out infinite alternate}
html body:has(.code-layout)::after{opacity:.55;animation-duration:31s;animation-direction:alternate-reverse;background:radial-gradient(ellipse at 10% 100%,#dc392d35,transparent 38%),radial-gradient(ellipse at 100% 92%,#a72d3938,transparent 34%)}

/* Textured smoke trial only on the messages page. */
html body:has(.code-layout)::before,html body:has(.code-layout)::after{background:transparent url('/assets/messages-smoke.svg') center/cover no-repeat!important;filter:none!important;opacity:.52;animation:message-smoke-drift 28s ease-in-out infinite alternate!important}
html body:has(.code-layout)::after{opacity:.22;background-position:80% 70%!important;animation-duration:39s!important;animation-direction:alternate-reverse!important}
@keyframes message-smoke-drift{from{transform:translate3d(-3%,3%,0) scale(1.03)}to{transform:translate3d(3%,-4%,0) scale(1.14)}}
/* Softer low-contrast fog instead of defined smoke wisps. */
html body:has(.code-layout)::before,html body:has(.code-layout)::after{filter:blur(22px) saturate(.4)!important;opacity:.25!important;animation-duration:40s!important}
html body:has(.code-layout)::after{opacity:.12!important;animation-duration:53s!important}
html body:has(.code-layout)::before,html body:has(.code-layout)::after{background-image:url('/assets/messages-crimson-fog.png')!important;background-size:cover!important;filter:none!important;opacity:.58!important}
html body:has(.code-layout)::after{opacity:.16!important;mix-blend-mode:screen}
html body.customer-page.portal-active .portal-workspace::before,html body.customer-page.portal-active .portal-workspace::after{background:transparent url('/assets/messages-crimson-fog.png') center/cover no-repeat!important;filter:none!important;opacity:.58!important;animation:message-smoke-drift 40s ease-in-out infinite alternate!important}
html body.customer-page.portal-active .portal-workspace::after{opacity:.16!important;mix-blend-mode:screen;animation-duration:53s!important;animation-direction:alternate-reverse!important}
html body:has(.code-layout)>header{font-size:26px!important;font-weight:700!important;line-height:1.3!important}
@media(max-width:600px){html body:has(.code-layout)>header{font-size:21px!important}}
/* Lift only the account messages access form from the dark fog. */
html body:has(.code-layout) .code-layout>main{background:linear-gradient(145deg,#291c23,#19171f)!important;border-color:#754552!important;box-shadow:0 16px 42px #0005,0 0 20px #ae354215}
html body:has(.code-layout) .code-layout>main:not(#unused-access-card){background:linear-gradient(145deg,#291c23,#19171f)!important;background-image:linear-gradient(145deg,#291c23,#19171f)!important}
html body:has(.code-layout) .code-layout>main:not(#unused-access-card){background:linear-gradient(145deg,#191318,#111015)!important;background-image:linear-gradient(145deg,#191318,#111015)!important;border-color:#51333e!important}
html body:has(.code-layout) .code-layout>main:not(#unused-access-card){background:linear-gradient(145deg,#0f0c10,#09090d)!important;background-image:linear-gradient(145deg,#0f0c10,#09090d)!important;border-color:#3c2933!important}
html body:has(.code-layout) .code-layout>main:not(#unused-access-card){background:#07070a!important;background-image:none!important;border-color:#2e2028!important}
/* Unified near-black card surfaces across customer/reseller/admin panels. */
html body.customer-page.portal-active #accountContent :is(.orders-panel,.premium-toolbar,.purchase-status-filters,.purchase-tools,.settings-card,.customer-report,.wallet-card,.profile-card,.portal-movement-card,.portal-report-card,.device-card,.profile-phone-form,.advert-card,.empty-orders,.order-card,.order-detail-card,.wallet-panel,.devices-panel),html body .admin-shell :is(.workspace,.admin-topbar,.catalog-toolbar,.sales-table-tools,.inventory-reference-header,.inventory-reference-manage,.customer-reference-header,.table-wrap,.inventory-table-wrap,.sales-table-wrap,.customer-table-wrap,.settings-card,.stat,.category-card,.customer-report,.editor-header,.editor-footer,.settings-save,.notification-controls){background:#07070a!important;background-image:none!important}
html body.customer-page.portal-active .portal-workspace,html body.customer-page.portal-active .portal-sidebar,html body .admin-shell .sidebar{background:#030405!important;background-image:none!important}

/* Animate only products near the viewport; pause work in background tabs. */
html:root body[data-v] #app #grid .card:not(.motion-visible)::after,html.motion-hidden body[data-v] #app #grid .card::after{animation-play-state:paused!important}
/* Admin matches the approved reseller fog texture. */
html body .admin-shell .workspace::before,html body .admin-shell .workspace::after{background:transparent url('/assets/messages-crimson-fog.png') center/cover no-repeat!important;filter:none!important;opacity:.58!important;animation:message-smoke-drift 40s ease-in-out infinite alternate!important}
html body .admin-shell .workspace::after{opacity:.16!important;mix-blend-mode:screen;animation-duration:53s!important;animation-direction:alternate-reverse!important}

html:root[data-theme]:not(.catalog-waves-enabled) body[data-v]:has(#app) #bgWave{display:none!important}

/* Keep workspace fog behind the opaque admin navigation. */
html body .admin-shell .sidebar{z-index:20;isolation:isolate;background:#030405!important}

/* Clean line model for storefront category icons only. */
html:root body #catalog-sidebar #filters .filter-chip-media > :not(.catalog-menu-line),html:root body #catalog-sidebar #filters .games-category-title > .catalog-3d-symbol{display:none!important}
html:root body #catalog-sidebar #filters .games-category-title::before{display:none!important}
html:root body #catalog-sidebar #filters .catalog-menu-line{display:block!important;width:23px!important;height:23px!important;flex:0 0 23px!important;color:#eee9f0!important;fill:none!important;filter:none!important;background:none!important}
html:root body #catalog-sidebar #filters .filter-chip-media{display:flex!important;align-items:center!important;justify-content:center!important}
html:root body #catalog-sidebar #filters .games-category-title > .catalog-menu-line{margin-right:10px}
html:root body #catalog-sidebar #filters .filter-chip.active .catalog-menu-line{color:#fff!important}

html:root body #catalog-sidebar #filters .filter-chip-media{font-size:0!important;line-height:0!important}

/* Avoid painting decorative effects outside the viewport or during a scroll gesture. */
html:root body[data-v] #app .hero:not(.motion-visible),html:root body[data-v] #app .hero:not(.motion-visible) *,html:root body[data-v] #app #grid .card:not(.motion-visible) *{animation-play-state:paused!important}
html:root.motion-hidden body[data-v] #app .hero,html:root.motion-hidden body[data-v] #app .hero *,html:root.motion-hidden body[data-v] #app .wa-float{animation-play-state:paused!important}


/* Pause only the visible effect containers, without invalidating the whole page. */
html:root body[data-v] #app #grid .card.scroll-paused,html:root body[data-v] #app #grid .card.scroll-paused *,html:root body[data-v] #app #grid .card.scroll-paused::before,html:root body[data-v] #app #grid .card.scroll-paused::after,html:root body[data-v] #app #grid .card.scroll-paused *::before,html:root body[data-v] #app #grid .card.scroll-paused *::after,html:root body[data-v] #app .hero.scroll-paused,html:root body[data-v] #app .hero.scroll-paused *,html:root body[data-v] #app .wa-float.scroll-paused{animation-play-state:paused!important}
html:root body[data-v] #app #grid .card:not(.motion-visible) *::before,html:root body[data-v] #app #grid .card:not(.motion-visible) *::after{animation-play-state:paused!important}
html:root body[data-v] #app #grid .card.scroll-paused:hover{transform:none!important;box-shadow:none!important}
html:root body[data-v] #app .header{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Owner-requested static mode: all decorative motion disabled site-wide. */
html:is(#static-motion,html):is(#static-motion,html):is(#static-motion,html):is(#static-motion,html),html:is(#static-motion,html):is(#static-motion,html):is(#static-motion,html):is(#static-motion,html) *,html:is(#static-motion,html):is(#static-motion,html):is(#static-motion,html):is(#static-motion,html) *::before,html:is(#static-motion,html):is(#static-motion,html):is(#static-motion,html):is(#static-motion,html) *::after {
 animation:none!important;animation-play-state:paused!important;
 transition:none!important;scroll-behavior:auto!important;
}
html:root body[data-v] #app #grid .card::after{content:none!important}

/* Entrance animations are disabled; their content must stay in its final visible state. */
html:root body[data-v] #app .hero .logo-scene,html:root body[data-v] #app .hero .hero-sub{opacity:1!important;transform:none!important}

/* Keep individual catalog cards from invalidating neighboring layout and paint. */
html:root body[data-v] #app #grid .card{contain:layout paint;transform:none!important}

/* Match the approved sidebar line style in the header and sign-in fields. */
html:root body .clean-icon-control svg:not(.clean-line-icon),html:root body .clean-icon-control .catalog-3d-symbol,html:root body .clean-icon-control .catalog-icon-3d,html:root body .clean-icon-control .ui3d-symbol{display:none!important}
html:root body .clean-icon-control>.clean-line-icon{display:inline-block!important;width:23px!important;height:23px!important;flex:0 0 23px!important;color:inherit!important;vertical-align:middle;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
html:root body .auth-card .field svg,html:root body .auth-card .password-toggle svg{fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}
html:root body #passwordField>span.clean-icon-control,html:root body #otpField>span.clean-icon-control{display:flex;align-items:center;gap:8px}

/* Lightweight catalog surfaces: no background sampling while scrolling or opening details. */
html:root body[data-v] #app *,html:root body[data-v] #app *::before,html:root body[data-v] #app *::after{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:root body[data-v] #app #grid .card,html:root body[data-v] #app #grid .card:hover{box-shadow:0 2px 6px #0005!important}
html:root[data-theme] body[data-v] #catalog-sidebar{box-shadow:2px 0 6px #0004!important}
html:root body[data-v] #app .trust-strip,html:root body[data-v] #app .search-box{background-color:#09090de8!important}
