/* Shared motion. Individual transforms preserve the existing layout and 3D scenes. */
.motion-card { position:relative; isolation:isolate; }
.pointer-glow {
  position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:2;
  background:radial-gradient(340px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #89edff17, transparent 72%);
  opacity:0;
}
.art-shine { position:absolute; inset:0; border-radius:inherit; overflow:hidden; pointer-events:none; }
.art-shine::after {
  content:''; position:absolute; inset:-30% -80%;
  background:linear-gradient(110deg, transparent 43%, #c9f8ff13 49%, #ffffff20 50%, transparent 57%);
  translate:-35% 0; opacity:0;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal]:not(.is-revealed) { opacity:0; translate:0 22px; }
  .motion-ready [data-reveal].is-revealed {
    animation:omo-reveal .76s cubic-bezier(.16,1,.3,1) backwards;
    animation-delay:var(--reveal-delay, 0ms);
  }
  .motion-ready [data-reveal]:focus-within { animation-delay:0ms; }
  .pointer-glow { transition:opacity .3s; }
  .motion-active .motion-card:is(.pointer-active, :focus-within) > .pointer-glow { opacity:1; }

  .motion-active .token-hero-art.is-in-view { animation:omo-art-float 7s ease-in-out infinite; }
  .motion-active .token-hero-art.is-in-view .art-shine::after { animation:omo-art-shine 9s ease-in-out infinite; }
  .motion-active .token-hero-art:hover { animation-play-state:paused; }
  .motion-active .token-hero-art::before { transition:border-color .5s; }
  .motion-active .token-hero-art:hover::before { border-color:#89c6ef45; }
  .motion-active .token-hero.is-in-view h1 .rocket-emoji { animation:omo-rocket-lift 4.8s ease-in-out infinite; }
  .motion-active :is(.token-hero, .token-final).is-in-view .token-gradient,
  .motion-active .token-teaser.is-in-view .teaser-gradient {
    background-size:190% 100%; animation:omo-gradient-drift 9s ease-in-out infinite;
  }

  .motion-active .hero-visual.is-in-view .star-field span { animation:omo-twinkle 4.6s ease-in-out infinite; }
  .motion-active .star-field span:nth-child(3n) { animation-delay:-1.5s; }
  .motion-active .star-field span:nth-child(3n + 1) { animation-delay:-3.1s; }
  .motion-active .hero-visual.is-in-view .coin-aura { animation:omo-aura-breathe 6s ease-in-out infinite; }
  .motion-ready .hero-visual :is(.orbit-game, .orbit-bolt) { animation-play-state:paused; }
  .motion-active .hero-visual.is-in-view :is(.orbit-game, .orbit-bolt) { animation-play-state:running; }
  .motion-active .hero.is-in-view .hero-star { animation:omo-star-turn 12s ease-in-out infinite; }
  .motion-active .community-art.is-in-view .avatar-node { animation:omo-small-float 5.5s ease-in-out infinite; }
  .motion-active .community-art.is-in-view .node-b { animation-delay:-1.6s; }
  .motion-active .community-art.is-in-view .node-c { animation-delay:-3.1s; }
  .motion-active .community-art.is-in-view .node-d { animation-delay:-4.2s; }
  .motion-active .community-art.is-in-view .community-orbit { animation:omo-orbit-turn 35s linear infinite; }
  .motion-active .community-art.is-in-view .orbit-b { animation-duration:43s; animation-direction:reverse; }
  .motion-active .community-art.is-in-view .community-star { animation:omo-star-turn 13s ease-in-out infinite; }
  .motion-active .task-path-art.is-in-view .path-coin { animation:omo-coin-turn 8s ease-in-out infinite; }
  .motion-active .closing-panel.is-in-view .closing-orbit { animation:omo-orbit-turn 50s linear infinite; }
  .motion-active .closing-panel.is-in-view .closing-spark { animation:omo-small-float 5s ease-in-out infinite; }
  .motion-active .vault-scene.is-in-view .vault-scene-aura { animation:omo-aura-breathe 7s ease-in-out infinite; }
  .motion-active .vault-scene.is-in-view .vault-scene-ring::before { animation:omo-orbit-turn 45s linear infinite; }
  .motion-active .connection-path.is-in-view .connection-spark { animation:omo-star-turn 8s ease-in-out infinite; }
  .motion-active .final-orbit.is-in-view::before { animation:omo-orbit-turn 32s linear infinite; }
  .motion-active .final-orbit.is-in-view > b { animation:omo-rocket-lift 5s ease-in-out infinite; }
  .motion-active .final-orbit.is-in-view > i { animation:omo-star-turn 10s ease-in-out infinite; }
  .motion-active .token-culture-strip { position:relative; overflow:hidden; }
  .motion-active .token-culture-strip.is-in-view::after {
    content:''; position:absolute; width:25%; height:1px; left:-25%; bottom:0;
    background:linear-gradient(90deg,transparent,#78e6f4b0,transparent);
    animation:omo-signal-pass 7s ease-in-out infinite;
  }

  .motion-active .button { position:relative; isolation:isolate; overflow:hidden; }
  .motion-active .button::after {
    content:''; position:absolute; top:-25%; bottom:-25%; left:-80%; width:55%;
    background:linear-gradient(100deg,transparent,#ffffff38,transparent);
    transform:skewX(-18deg); pointer-events:none;
  }
  .motion-active .button:is(:hover, :focus-visible)::after { animation:omo-button-shine .75s ease-out; }
  .motion-active .button svg { transition:translate .25s, rotate .25s; }
  .motion-active .button:hover svg { translate:3px 0; rotate:-5deg; }
  .motion-active :is(.text-link, .token-text-link, .vault-quiet-link) > :is(svg, span) { transition:translate .3s; }
  .motion-active :is(.text-link, .token-text-link, .vault-quiet-link):hover > :is(svg, span) { translate:3px -2px; }
  .motion-active .task-icon, .motion-active .pillar-icon, .motion-active .process-icon { transition:translate .35s, rotate .35s; }
  .motion-active :is(.task-card, .vault-pillar, .process-step):hover :is(.task-icon, .pillar-icon, .process-icon) { translate:0 -3px; rotate:-5deg; }
  .motion-active .game-art::before { transition:transform .65s cubic-bezier(.2,.7,.3,1); }
  .motion-active .game-card:hover .game-art::before { transform:scale(1.055); }
  .motion-active dialog[open] { animation:omo-dialog-in .3s cubic-bezier(.16,1,.3,1); }
  .motion-active dialog[open]::backdrop { animation:omo-backdrop-in .25s ease-out; }
}

@keyframes omo-reveal { from { opacity:0; translate:0 22px; } to { opacity:1; translate:0 0; } }
@keyframes omo-art-float { 0%,100% { translate:0 0; } 50% { translate:0 -9px; } }
@keyframes omo-art-shine { 0%,18%,65%,100% { opacity:0; translate:-35% 0; } 25% { opacity:.8; } 43% { opacity:0; translate:35% 0; } }
@keyframes omo-small-float { 0%,100% { translate:0 0; } 50% { translate:0 -7px; } }
@keyframes omo-rocket-lift { 0%,100% { translate:0 0; } 50% { translate:3px -6px; } }
@keyframes omo-gradient-drift { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@keyframes omo-twinkle { 0%,100% { opacity:.18; } 50% { opacity:.85; } }
@keyframes omo-aura-breathe { 0%,100% { opacity:.55; scale:.96; } 50% { opacity:1; scale:1.04; } }
@keyframes omo-star-turn { 0%,100% { rotate:0deg; } 50% { rotate:45deg; } }
@keyframes omo-orbit-turn { to { rotate:360deg; } }
@keyframes omo-coin-turn { 0%,25%,100% { rotate:y 0deg; } 75% { rotate:y 360deg; } }
@keyframes omo-signal-pass { 0%,20% { translate:0 0; } 80%,100% { translate:500% 0; } }
@keyframes omo-button-shine { to { left:140%; } }
@keyframes omo-dialog-in { from { opacity:0; translate:0 12px; } to { opacity:1; translate:0 0; } }
@keyframes omo-backdrop-in { from { opacity:0; } to { opacity:1; } }
