/* Logo motion uses the same independent ring, glyph, lettering and numeral
   layers as the game. Only decorative layers rotate; the wordmark stays legible. */
.realm-logo{height:365px;margin-top:12px;contain:layout;perspective:900px}
.realm-logo-ring{opacity:.72;animation:none;filter:drop-shadow(0 0 8px #2d98d14d)}
.realm-logo-runes{opacity:.38;animation:realm-spin 85s linear infinite reverse;filter:drop-shadow(0 0 4px #5db9ec66)}
.realm-logo-glyphs{width:265px;height:265px;left:calc(50% - 132.5px);top:35px;opacity:.23;z-index:-1;animation:realm-spin 55s linear infinite;mix-blend-mode:screen}
.realm-logo-aura{position:absolute;inset:0 6% 10%;border-radius:50%;z-index:-2;background:radial-gradient(ellipse,#489fd655 0,#267baa33 32%,#164b7b11 53%,transparent 72%);animation:realm-aura 6s ease-in-out infinite}
.realm-logo-word{top:48px;height:195px;animation:realm-word-enter 1.4s cubic-bezier(.22,.7,.3,1) both}
.realm-logo-word img{filter:drop-shadow(0 4px 8px #000b) drop-shadow(0 0 3px #a9dfff22)}
.realm-logo-two{width:135px;height:155px;bottom:8px;left:calc(50% - 67.5px);animation:realm-number-enter 1.8s cubic-bezier(.22,.7,.3,1) both;filter:drop-shadow(0 0 11px #bb8a2933)}
.realm-logo-shine{inset:0;background:linear-gradient(110deg,transparent 43%,#f2faffb0 49%,#ffe8ad80 51%,transparent 58%);background-size:300% 100%;background-position:100% 0;mask:url('../img/realm/logo.webp') center/contain no-repeat;animation:realm-shine 9s 1.5s linear infinite}
.realm-logo-flare{width:105px;height:105px;left:7%;top:71px;opacity:.6;animation:realm-twinkle 6s 1s ease-in-out infinite;mix-blend-mode:screen}
.realm-logo-flare-right{left:auto;right:3%;top:135px;width:90px;height:90px;animation-delay:-2s}
.realm-logo-orbit{position:absolute;width:310px;height:310px;left:calc(50% - 155px);top:12px;z-index:-1;border-radius:50%;animation:realm-spin 18s linear infinite}
.realm-logo-orbit i{position:absolute;width:4px;height:4px;border-radius:50%;background:#c5eaff;box-shadow:0 0 7px 3px #71caff88;top:17%;left:12%}.realm-logo-orbit i+i{top:auto;left:auto;right:12%;bottom:17%;background:#f2ddb0;box-shadow:0 0 6px 2px #d9b46866}
.realm-brand:before{content:'';position:absolute;top:1px;left:29px;width:64px;height:64px;background:url('../img/realm/runes.webp') center/contain no-repeat;opacity:.2;animation:realm-spin 80s linear infinite;pointer-events:none;z-index:-1}
.realm-brand img,.mw-footer-logo{animation:realm-brand-glimmer 7s ease-in-out infinite}
.realm-motion-toggle{display:grid;place-items:center;width:31px;height:31px;flex-shrink:0;border:1px solid #5a718666;background:#132b4033;color:#b4cadb;font-size:12px;border-radius:50%;padding:0;line-height:1}
.realm-motion-toggle:hover{border-color:#d5b979;color:#f1d9a9;background:#24415b}.realm-motion-toggle[aria-pressed=true]{color:#eed59f;border-color:#a48a56}
html[data-realm-motion=paused] :is(.realm-world *,.realm-logo *,.realm-brand:before,.realm-brand img,.mw-footer-logo,.realm-clouds,.realm-scroll i){animation-play-state:paused!important}
@keyframes realm-word-enter{from{opacity:0;transform:translateY(9px) scale(.96)}to{opacity:1;transform:none}}
@keyframes realm-number-enter{0%,30%{opacity:0;transform:translateY(10px) scale(.92)}100%{opacity:1;transform:none}}
@keyframes realm-aura{0%,100%{opacity:.45;transform:scale(.96)}50%{opacity:.8;transform:scale(1.04)}}
@keyframes realm-twinkle{0%,100%{opacity:.12;transform:scale(.75)}45%{opacity:.7;transform:scale(1)}65%{opacity:.3;transform:scale(.9)}}
@keyframes realm-brand-glimmer{0%,100%{filter:drop-shadow(0 0 1px #79cfff22)}50%{filter:drop-shadow(0 0 5px #79cfff55)}}
@media(max-width:767px){.realm-logo{height:315px}.realm-logo-word{top:63px;height:145px}.realm-logo-two{width:105px;height:125px;left:calc(50% - 52.5px);bottom:8px}.realm-logo-glyphs{width:225px;height:225px;left:calc(50% - 112.5px);top:40px}.realm-logo-flare{width:80px;height:80px;top:76px;left:5%}.realm-logo-flare-right{top:135px;left:auto;right:1%;width:65px;height:65px}.realm-logo-orbit{width:260px;height:260px;left:calc(50% - 130px);top:24px}.realm-brand:before{left:23px;top:6px;width:55px;height:55px}.mw-topbar-tools{gap:5px}.realm-motion-toggle{width:28px;height:28px;font-size:11px}}
@media(max-width:360px){.mw-topbar{gap:6px}.realm-brand{width:119px}.realm-brand img{width:97px}.realm-brand span{font-size:23px}.mw-lang-btn{padding-inline:4px}.mw-topbar-tools{gap:3px}}
@media(prefers-reduced-motion:reduce){.realm-logo *,.realm-brand:before,.realm-brand img,.mw-footer-logo{animation:none!important}.realm-logo-word,.realm-logo-two{opacity:1;transform:none}.realm-logo-aura{opacity:.5}.realm-logo-orbit,.realm-logo-shine{display:none}.realm-logo-flare{opacity:.25}}
/* Reduced motion stays still by default. An explicit Play choice can enable
   the slow emblem effects without restoring scene-wide movement. */
@media(prefers-reduced-motion:reduce){
 html[data-realm-motion-explicit=true][data-realm-motion=playing] .realm-logo-runes{animation:realm-spin 85s linear infinite reverse!important}
 html[data-realm-motion-explicit=true][data-realm-motion=playing] .realm-logo-glyphs{animation:realm-spin 55s linear infinite!important}
 html[data-realm-motion-explicit=true][data-realm-motion=playing] .realm-logo-aura{animation:realm-aura 6s ease-in-out infinite!important}
 html[data-realm-motion-explicit=true][data-realm-motion=playing] .realm-logo-flare{animation:realm-twinkle 6s ease-in-out infinite!important}
}

/* The word brand remains MWRO; the native numeral is a separate logo layer. */
.realm-brand .realm-brand-two{width:27px;height:42px;margin-left:-5px;object-fit:contain}
.realm-footer-brand{display:flex;align-items:center;flex-shrink:0}
.realm-footer-brand .realm-footer-two{width:35px;height:53px;margin-left:-8px;object-fit:contain}
@media(max-width:1100px){.realm-brand .realm-brand-two{width:24px;height:38px}}
@media(max-width:360px){.realm-brand .realm-brand-two{width:22px;height:34px}}
html[data-realm-motion=paused] .realm-logo-two{animation:none!important;opacity:1;transform:none}
