/* Stage40 unified site shell. Applies only to public pages explicitly upgraded. */
:root{--tb40-bg:#1b0b37;--tb40-panel:#29134b;--tb40-text:#fff;--tb40-muted:#e0c8f5;--tb40-pink:#fb4ba9;--tb40-yellow:#ffce40}
html{scroll-padding-top:92px}*,*:before,*:after{box-sizing:border-box}
body.tb40-has-header{padding-top:76px!important;min-width:0;max-width:100%;overflow-x:clip}
body.tb40-has-header .tb24-header,body.tb40-has-header .tb27-head,body.tb40-has-header .tb33-header,body.tb40-has-header .tb37-header{display:none!important}
body.tb40-has-header #tb40-header{display:block!important}
#tb40-header{position:fixed!important;inset:0 0 auto!important;width:100%!important;z-index:9900!important;height:76px!important;background:rgba(26,9,51,.97)!important;border-bottom:1px solid rgba(255,255,255,.14)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#fff!important;box-shadow:0 8px 30px rgba(0,0,0,.20);font-family:Arial,Helvetica,sans-serif!important}
#tb40-header .tb40-header-inner{width:min(1480px,100%);height:100%;padding:0 clamp(14px,2.5vw,30px);margin:auto;display:flex;align-items:center;gap:clamp(14px,2vw,28px)}
.tb40-logo{white-space:nowrap;text-decoration:none!important;color:#fff!important;font-weight:900!important;letter-spacing:-1.4px;font-size:clamp(25px,2.2vw,31px)!important;line-height:1.2;display:inline-flex;align-items:baseline;gap:0}.tb40-logo span{color:var(--tb40-yellow)!important}.tb40-logo i{font-size:9px;color:var(--tb40-pink);font-style:normal;margin-left:3px}
#tb40-header .tb40-search{margin:0;flex:1;min-width:120px;max-width:430px;display:flex;align-items:center;gap:10px;padding:5px 7px 5px 14px;background:#3b235d;border:1px solid #684389;border-radius:28px;height:44px}
#tb40-header .tb40-search svg{width:18px;height:18px;stroke:#cda9e7;stroke-width:2;fill:none;flex:none}
#tb40-header .tb40-search input{min-width:0;flex:1;width:100%;padding:6px 0!important;margin:0!important;height:auto!important;border:0!important;background:transparent!important;color:#fff!important;outline:none!important;font:400 15px/1.4 Arial,Helvetica,sans-serif!important;box-shadow:none!important}
#tb40-header .tb40-search input::placeholder{color:#d1b6e4}
#tb40-header .tb40-search button{border:none!important;border-radius:24px;background:#f9bb32!important;color:#27103d!important;font:700 13px Arial,sans-serif!important;min-width:48px;height:32px;cursor:pointer}
.tb40-desktop-nav{display:flex!important;align-items:center;gap:clamp(7px,1vw,15px);flex-shrink:0}
.tb40-desktop-nav a{color:#efdefc!important;text-decoration:none!important;font:700 14px Arial,Helvetica,sans-serif!important;padding:10px 9px!important;border-radius:12px;white-space:nowrap}
.tb40-desktop-nav a:hover,.tb40-desktop-nav a[aria-current="page"]{background:#593076!important;color:#fff!important}
.tb40-menu-button{display:none;align-items:center;justify-content:center;width:42px;height:42px;background:#3b235d;border:1px solid #70488d;border-radius:12px;color:white;cursor:pointer;flex:none}
.tb40-menu-button svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.tb40-mobile-bottom{display:none}
.tb40-backdrop{position:fixed;inset:0;background:rgba(8,3,20,.65);z-index:9905}.tb40-backdrop[hidden]{display:none!important}
.tb40-drawer{position:fixed;z-index:9910;top:0;bottom:0;left:0;width:min(330px,88vw);max-width:100%;overflow:auto;overscroll-behavior:contain;background:#24113f;border-right:1px solid #654081;box-shadow:16px 0 50px #090317;color:#fff;transform:translateX(-110%);transition:transform .24s ease;visibility:hidden}
.tb40-drawer.tb40-open{visibility:visible;transform:translateX(0)}
.tb40-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 15px;border-bottom:1px solid #684389}
.tb40-drawer-head button{background:#4a286c;color:#fff;border:0;border-radius:10px;width:38px;height:38px;font-size:18px;cursor:pointer}
.tb40-drawer nav{display:flex;flex-direction:column;gap:3px;padding:16px}
.tb40-drawer nav a{color:#f3e7fd;text-decoration:none;font:600 15px/1.3 Arial,sans-serif;padding:12px 15px;border-radius:12px}
.tb40-drawer nav a:hover,.tb40-drawer nav a[aria-current="page"]{background:#523071;color:#fff}
.tb40-nav-divider{height:1px;background:#654081;margin:10px 0}
.tb40-skip,.tb40-sr{position:absolute!important;width:1px!important;height:1px!important;clip:rect(0,0,0,0)!important;overflow:hidden!important;white-space:nowrap!important}
.tb40-skip:focus{position:fixed!important;top:80px;left:12px;width:auto!important;height:auto!important;clip:auto!important;background:#fff;color:#170627;padding:12px;z-index:9920}
body.tb40-has-header main,body.tb40-has-header .tb33-shell,body.tb40-has-header .tb37-container,body.tb40-has-header .tb24-main{max-width:100%}
body.tb40-has-header img,body.tb40-has-header video,body.tb40-has-header iframe{max-width:100%}
body.tb40-has-header .tb33-columns,body.tb40-has-header .tb29-home-wrap{min-width:0}
body.tb40-has-header .tb33-columns>*,body.tb40-has-header .tb29-home-wrap>*{min-width:0}
@media(max-width:1120px){.tb40-desktop-nav{display:none!important}.tb40-menu-button{display:flex!important}#tb40-header .tb40-search{max-width:none}}
@media(max-width:700px){
 html{scroll-padding-top:78px}
 body.tb40-has-header{padding-top:65px!important;padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))!important}
 #tb40-header{height:65px!important}
 #tb40-header .tb40-header-inner{padding:0 12px;gap:9px}
 .tb40-logo{font-size:25px!important}
 #tb40-header .tb40-search{height:38px;min-width:0;padding-left:9px;gap:6px}
 #tb40-header .tb40-search svg{width:16px;height:16px}
 #tb40-header .tb40-search input{font-size:14px!important}
 #tb40-header .tb40-search button{height:29px;min-width:35px;font-size:12px!important}
 .tb40-menu-button{height:38px;width:38px}
 .tb40-mobile-bottom{display:flex!important;position:fixed!important;z-index:9900!important;inset:auto 0 0!important;height:calc(62px + env(safe-area-inset-bottom,0px));padding:5px 5px env(safe-area-inset-bottom,0px);background:#251043!important;border-top:1px solid #674183;align-items:center;justify-content:space-around;box-shadow:0 -6px 30px #1007227a;font-family:Arial,sans-serif!important}
 .tb40-mobile-bottom a{display:flex!important;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#dfc0f4!important;text-decoration:none!important;font:500 11px/1.2 Arial,sans-serif!important;min-height:50px;border-radius:12px}
 .tb40-mobile-bottom a span{font-size:23px;line-height:1}
 .tb40-mobile-bottom a[aria-current="page"]{color:#ffce40!important;background:#463067}
 .tb40-mobile-bottom a small{font:inherit;white-space:nowrap}
 body.tb40-has-header .tb25-mobile-nav,body.tb40-has-header .tb24-mobile-nav,body.tb40-has-header .tb35-mobile-nav,body.tb40-has-header .tb25-mobile-top{display:none!important}
 body.tb40-has-header .tb24-main,body.tb40-has-header .tb24-account,body.tb40-has-header .tb27-table,body.tb40-has-header .tb27-auth-wrap,body.tb40-has-header .tb33-shell,body.tb40-has-header .tb37-container,body.tb40-has-header .tb35-info{width:100%;max-width:100%;padding-left:clamp(12px,4vw,20px)!important;padding-right:clamp(12px,4vw,20px)!important}
 body.tb40-has-header .tb33-columns{display:flex!important;flex-direction:column!important;gap:16px}
 body.tb40-has-header .tb33-side{width:100%!important;max-width:100%!important;min-height:0!important}
 body.tb40-has-header .tb29-home-wrap{display:flex!important;flex-direction:column!important}
 body.tb40-has-header .tb29-home-rail{width:100%!important;max-width:100%!important}
 body.tb40-has-header .tb27-table .panel{max-width:100%;overflow-x:auto}
 body.tb40-has-header .tb24-sound-grid,body.tb40-has-header .tb38-fav-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:370px){.tb40-logo{font-size:22px!important}#tb40-header .tb40-search svg{display:none}#tb40-header .tb40-search{padding-left:7px}#tb40-header .tb40-search input{font-size:12px!important}.tb40-menu-button{width:35px}}
@media(prefers-reduced-motion:reduce){.tb40-drawer{transition:none}}
/* Older Stage35 JS may append a second header/navigation; leave its footer intact. */
body.tb40-has-header .tb35-header,body.tb40-has-header .tb35-menu,body.tb40-has-header .tb35-bottom-nav,body.tb40-has-header .tb25-mobile-nav{display:none!important}
html.tb40-menu-open{overflow:hidden}
