body:has(#home):not(.workspace-mode) .intro {padding:clamp(28px,5vh,64px) 20px 24px}
#home .intro h1 span{display:block}
body:has(#home):not(.workspace-mode) .intro h1{font-size:clamp(40px,4.5vw,72px);line-height:1.08}
body:has(#home):not(.workspace-mode) .intro p{margin-top:16px}
#home .hero-actions{margin-top:15px}
#gallery{--tile:min(22vw,380px);--step:min(22.4vw,394px);--depth:clamp(45px,5vw,84px)}
body:has(#home):not(.workspace-mode) #stage{height:calc(var(--tile)*.68 + 20px);min-height:0;perspective:1100px;perspective-origin:50% 50%}
#gallery .slide.neon-card{width:var(--tile);top:50%;transform:translate(-50%,-50%) translate3d(calc(var(--slot)*var(--step)),0,calc((var(--distance) - 1)*var(--depth))) rotateY(calc(var(--slot)*-11deg))}
#gallery .memory-entry{margin-top:12px}
@media(max-width:760px){
 #gallery{--tile:79vw;--step:80vw;--depth:35px}
 body:has(#home):not(.workspace-mode) .intro{padding:28px 18px 20px}
}

@media (prefers-reduced-motion:no-preference){
  .lobby-aura::before,.lobby-aura::after{
    animation:silver-orbit 10s ease-in-out infinite alternate;
    --drift-x:clamp(10px,2vw,32px);
    --drift-y:-14px;
    --orbit-angle:-30deg;
  }
  .lobby-aura::after{
    --drift-x:clamp(-30px,-1.8vw,-10px);
    --drift-y:20px;
    --orbit-angle:-42deg;
    animation-duration:13s;
    animation-delay:-7s;
  }
  .mode-off .lobby-aura::before,.mode-off .lobby-aura::after{animation-play-state:paused}
}
@keyframes silver-orbit{
  from{transform:translate3d(0,0,0) rotate(-36deg) scaleY(.95);opacity:.76}
  to{transform:translate3d(var(--drift-x),var(--drift-y),0) rotate(var(--orbit-angle)) scaleY(1.07);opacity:1}
}

.lobby-aura::before,.lobby-aura::after{
 background:url('/assets/prism-orbit.svg') center/100% 100% no-repeat;
}
#gallery .slide.neon-card{--hover-scale:1;transform:translate(-50%,-50%) translate3d(calc(var(--slot)*var(--step)),0,calc((var(--distance) - 1)*var(--depth))) rotateY(calc(var(--slot)*-11deg)) translateY(var(--lift,0px)) scale(var(--hover-scale))}
@media(hover:hover) and (pointer:fine){
 body:not(.mode-off) #gallery .slide.neon-card:hover{--hover-scale:1.23;--lift:-6px;z-index:10!important}
 #gallery .slide.neon-card:hover .neon-word{opacity:1}
 body:not(.mode-off) #gallery .slide.neon-card:hover .neon-word{transform:scale(1.15)}
}
#gallery .slide.neon-card:focus-visible .neon-word{opacity:1}
#registrationDialog{position:fixed;inset:0;margin:auto;padding:0;width:min(760px,92vw);max-width:none;max-height:90dvh;border-radius:22px;border:1px solid #fff9;box-shadow:0 24px 90px #252e4338;background:#fbfbfa;color:#202228;overflow:auto}
#registrationDialog[open]{display:grid;grid-template-columns:.9fr 1fr}
#registrationDialog::backdrop{background:#e4e7ed73;-webkit-backdrop-filter:blur(9px) saturate(.8);backdrop-filter:blur(9px) saturate(.8)}
body:has(#registrationDialog[open]){overflow:hidden}
.registration-picture{background:url('/assets/registration.webp') center/cover;min-height:355px}
.registration-content{padding:48px 30px 36px;align-self:center}
#registrationDialog .registration-content p{font-size:14px;line-height:1.75;color:#646875;margin:12px 0}
#registrationDialog h2{margin:5px 0;font-size:clamp(24px,3vw,34px);letter-spacing:-.06em}
.registration-activate{display:flex;justify-content:space-between;border-radius:12px;padding:13px 16px;background:#202126;color:white;margin:20px 0 14px}
.registration-login{color:#404655;font-size:13px;text-decoration:underline}
#registrationDialog .registration-close{position:absolute;right:12px;top:12px;border:1px solid #afb2ba77;background:#fffffff0;border-radius:50%;width:34px;height:34px;line-height:1;color:#27292f;font-size:22px;cursor:pointer}
@media(max-width:600px){#registrationDialog[open]{grid-template-columns:1fr}.registration-picture{min-height:128px;height:18vh}.registration-content{padding:14px 24px 26px}}
@media(prefers-reduced-motion:no-preference){
 body:not(.mode-off) #registrationDialog[open]{animation:register-arrive .32s cubic-bezier(.2,.72,.2,1) both}
}
@keyframes register-arrive{from{opacity:0;transform:translateY(20px) scale(.975)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#gallery .slide.neon-card:hover{--hover-scale:1!important}#gallery .slide.neon-card:hover .neon-word{transform:none!important}}
.orbit-signal{position:absolute;pointer-events:none;width:59vw;height:clamp(155px,19vw,310px);transform:rotate(-36deg)}
.orbit-signal.left{left:-30vw;top:18%}.orbit-signal.right{right:-34vw;top:10%}
@media(max-width:650px){.orbit-signal{width:86vw;height:140px}.orbit-signal.left{left:-64vw;top:29%}.orbit-signal.right{right:-62vw;top:17%}}
@media(prefers-reduced-motion:no-preference){
 .orbit-signal.left{--drift-x:clamp(10px,2vw,32px);--drift-y:-14px;--orbit-angle:-30deg;animation:silver-orbit 10s ease-in-out infinite alternate}
 .orbit-signal.right{--drift-x:clamp(-30px,-1.8vw,-10px);--drift-y:20px;--orbit-angle:-42deg;animation:silver-orbit 13s -7s ease-in-out infinite alternate}
 .orbit-signal g{animation:orbit-transit 8s linear infinite}
 .orbit-signal.right g{animation-duration:11s;animation-delay:-5s}
 .mode-off .orbit-signal,.mode-off .orbit-signal g{animation-play-state:paused}
}
@keyframes orbit-transit{to{stroke-dashoffset:-1000}}

#registrationDialog #activationStatus{background:#ebeff6;border-radius:8px;padding:9px 11px;color:#30394a}
#gallery .cards{pointer-events:none}
#gallery a.slide{pointer-events:auto;display:block;text-decoration:none;color:inherit;text-align:inherit}
