/* Decorative glints use compositor animation only and never intercept input. */
:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child){position:relative;isolation:isolate;}
:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child)::before,
:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child)::after{content:"";position:absolute;z-index:2;pointer-events:none;width:clamp(8px,6%,18px);aspect-ratio:1;background:radial-gradient(circle,#fff 0 14%,#fff2ca 22%,#e4bc7266 52%,transparent 72%);clip-path:polygon(50% 0,59% 39%,100% 50%,59% 59%,50% 100%,41% 59%,0 50%,41% 39%);opacity:0;transform:scale(.35) rotate(0);filter:drop-shadow(0 0 3px #ffe3a7);will-change:transform,opacity;animation:mega-logo-glint 8s ease-in-out infinite;}
:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child)::before{left:5%;top:22%;}
:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child)::after{right:5%;top:36%;animation-delay:3.4s;animation-duration:9.5s;}
@keyframes mega-logo-glint{0%,3%,22%,100%{opacity:0;transform:scale(.35) rotate(0)}10%{opacity:.95;transform:scale(1.15) rotate(45deg)}16%{opacity:.55;transform:scale(.75) rotate(75deg)}}
.site-header .logo{height:82px;align-items:center;}
.site-header .logo img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;filter:drop-shadow(0 3px 6px #0005);}
.footer-brand>a{display:inline-flex;width:220px;max-width:100%;align-items:center;}
.footer-brand>a>img{width:100%;height:auto;filter:drop-shadow(0 2px 5px #0005);}
html body .gb.gx .gx-header>a:first-child{display:flex!important;align-items:center!important;justify-content:center!important;}
html body .gb.gx .gx-header>a:first-child img{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;filter:drop-shadow(0 2px 5px #0006)!important;}
html body .gb.boot .gb-brand-logo,.mega-loading img{filter:drop-shadow(0 2px 5px #0006)!important;}
@media(max-width:850px){.site-header .logo{height:65px;}}
@media(max-width:600px) and (orientation:portrait){html body .gb.gx.gx-game-mode .gx-header>a:first-child{width:100%!important;max-width:none!important;min-width:0!important;flex-basis:auto!important;}}
@media(prefers-reduced-motion:reduce){:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child)::before,:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child)::after{animation:none!important;opacity:0!important;will-change:auto;}}
/* The wordmark follows its natural ratio and fills the header row. */
.site-header .header-inner{padding-block:6px;min-height:0;gap:22px;}
.site-header .logo{width:400px;flex:0 0 400px;height:auto;aspect-ratio:2041/494;}
.site-header .logo img{height:100%;max-height:none;}
.site-header .logo::before,.site-header .logo::after{width:clamp(14px,6%,25px);animation-duration:4.8s;filter:drop-shadow(0 0 5px #fff0bc);}
.site-header .logo::after{animation-delay:-2.4s;animation-duration:5.6s;}
.mega-logo-stars{position:absolute;inset:0;z-index:3;pointer-events:none;}
.mega-logo-stars i{position:absolute;width:clamp(10px,4%,19px);aspect-ratio:1;background:radial-gradient(circle,#fff 0 18%,#fff4cf 28%,#e5bf7655 58%,transparent 74%);clip-path:polygon(50% 0,60% 39%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 39%);filter:drop-shadow(0 0 4px #fff0c9);opacity:0;animation:mega-extra-glint 5.8s ease-in-out infinite;}
.mega-logo-stars i:nth-child(1){left:27%;top:52%;animation-delay:-1.1s;}
.mega-logo-stars i:nth-child(2){left:48%;top:20%;animation-delay:-3.5s;}
.mega-logo-stars i:nth-child(3){left:66%;top:62%;animation-delay:-4.7s;}
.mega-logo-stars i:nth-child(4){left:83%;top:31%;animation-delay:-2.3s;}
@keyframes mega-extra-glint{0%,5%,32%,100%{opacity:0;transform:scale(.3) rotate(0)}15%{opacity:1;transform:scale(1.2) rotate(55deg)}24%{opacity:.55;transform:scale(.8) rotate(85deg)}}
@media(min-width:1001px) and (max-width:1199px){.site-header .logo{width:320px;flex-basis:320px;}.site-header .header-inner{gap:16px;padding-inline:24px}.main-nav{gap:12px}.main-nav a{font-size:10px;}}
@media(max-width:1000px){.site-header .logo{width:min(375px,calc(100vw - 116px));flex:0 1 min(375px,calc(100vw - 116px));height:auto;}.site-header .header-inner{padding:8px 20px;gap:16px;}.site-header .menu-toggle{display:block;margin-left:auto}.site-header .header-action{display:none}.site-header .main-nav{display:none;position:absolute;top:100%;left:0;right:0;padding:20px;background:#26122ff8;border-bottom:1px solid #d3b37888;flex-direction:column;gap:0;align-items:stretch;max-height:calc(100dvh - 110px);overflow:auto;}.site-header .main-nav.open{display:flex;}.site-header .main-nav a{font-size:13px;padding:14px 20px;border-bottom:1px solid #cfb47722;}}
@media(prefers-reduced-motion:reduce){.mega-logo-stars i{animation:none!important;opacity:0!important;}}
/* All glints share the image's fitted plane, not the surrounding header box. */
:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child)::before,
:is(.site-header .logo,.footer-brand>a,.gb.gx .gx-header>a:first-child)::after{content:none!important;animation:none!important;}
.mega-logo-stars{inset:auto;left:50%;top:50%;width:100%;height:auto;aspect-ratio:2041/494;transform:translate(-50%,-50%);}
.mega-logo-stars i{width:clamp(7px,5%,22px);height:auto;margin:0;transform:translate(-50%,-50%) scale(.3);transform-origin:center;animation-name:mega-silver-glint;animation-duration:5.8s;}
/* Pixel-verified bright silver highlights: R, z, B, second i, o and t. */
.mega-logo-stars i:nth-child(1){left:2.695%;top:11.134%;animation-delay:-.3s;}
.mega-logo-stars i:nth-child(2){left:32.337%;top:25.304%;animation-delay:-1.2s;}
.mega-logo-stars i:nth-child(3){left:44.096%;top:68.016%;animation-delay:-2.2s;}
.mega-logo-stars i:nth-child(4){left:61.244%;top:10.121%;animation-delay:-3.1s;}
.mega-logo-stars i:nth-child(5){left:96.374%;top:26.923%;animation-delay:-4.1s;}
.mega-logo-stars i:nth-child(6){left:25.282%;top:55.263%;animation-delay:-5s;}
@keyframes mega-silver-glint{0%,5%,32%,100%{opacity:0;transform:translate(-50%,-50%) scale(.3) rotate(0)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.2) rotate(55deg)}24%{opacity:.55;transform:translate(-50%,-50%) scale(.8) rotate(85deg)}}
@media(prefers-reduced-motion:reduce){.mega-logo-stars i{animation:none!important;opacity:0!important;}}
