/* The lightweight globe remains a real rendered globe even without WebGL. */
.ffx-globe-scene.has-canvas-globe canvas{opacity:1;transition:opacity .35s}
.ffx-globe-scene.has-canvas-globe .ffx-globe-fallback{opacity:0!important}
.ffx-nav-mobile-login{display:none}
.ffx-header .ffx-motion{flex-shrink:0;cursor:pointer}
.ffx-header .ffx-motion[aria-pressed=true]{border-color:#3179a9;color:#145d8f;background:#e4eff8}

@media(max-width:740px){
    .ffx-header .ffx-motion{display:grid;place-items:center;width:36px;height:36px;font-size:13px}
    .ffx-header .ffx-login{display:none}
    .ffx-header .ffx-nav-mobile-login{display:block}
    .ffx-header-actions{gap:10px}
    .ffx-header-inner{gap:10px}
    .ffx-hero-stage{transform:translate3d(0,var(--ff141-hero-y,0px),0);transition:transform .16s linear}
    .ffx-portrait-main{animation-duration:6s}
    .ffx-motion-ready:not(.ffx-paused) .ffx-chapter-scroll.ff141-scroll-story{height:calc(100svh + 1100px);padding-bottom:0}
    .ff141-scroll-story .ffx-chapter-sticky{position:sticky;top:12px;height:calc(100svh - 24px);max-height:780px;min-height:0;display:flex;justify-content:center;gap:25px;padding-block:12px}
    .ff141-scroll-story .ffx-product-scene{width:min(86%,350px);height:clamp(230px,35svh,290px);min-height:0;flex:0 0 auto}
    .ff141-scroll-story .ffx-product-window{height:100%;transform:rotateY(calc(-14deg + var(--chapter-progress,0)*28deg)) rotateX(calc(7deg - var(--chapter-progress,0)*13deg));transition:transform .12s linear}
    .ff141-scroll-story .ffx-product-screen{height:calc(100% - 29px);min-height:0;overflow:hidden}
    .ff141-scroll-story .ffx-screen-panel{padding:10px}
    .ff141-scroll-story .ffx-screen-cover{height:clamp(85px,13svh,110px)}
    .ff141-scroll-story .ffx-screen-cover>span{font-size:19px;top:20px}
    .ff141-scroll-story .ffx-screen-profile{margin-top:8px}
    .ff141-scroll-story .ffx-screen-profile strong{font-size:9px}
    .ff141-scroll-story .ffx-screen-profile small{font-size:6px}
    .ff141-scroll-story .ffx-screen-grid{margin-top:8px}
    .ff141-scroll-story .ffx-screen-grid>div{height:34px}
    .ff141-scroll-story .ffx-screen-pill{font-size:6px;padding:5px}
    .ff141-scroll-story .ffx-link-card{bottom:-12px;right:-10px;width:165px;padding:12px;transform:translateY(calc(var(--chapter-progress,0)*-10px)) rotate(-3deg)}
    .ff141-scroll-story .ffx-link-card>strong{font-size:12px}
    .ff141-scroll-story .ffx-chapter-tabs{margin-bottom:14px}
    .ff141-scroll-story .ffx-chapter-tabs button{min-height:43px;padding:11px 8px;font-size:11px}
    .ff141-scroll-story .ffx-chapter-panel{min-height:206px}
    .ff141-scroll-story .ffx-chapter-panel h3{font-size:34px;margin-bottom:12px}
    .ff141-scroll-story .ffx-chapter-panel .ffx-eyebrow{margin-bottom:11px;font-size:6px}
    .ff141-scroll-story .ffx-chapter-panel>p:not(.ffx-eyebrow){font-size:11px;line-height:1.65;margin-bottom:0}
    .ff141-scroll-story .ffx-chapter-panel .ffx-text-link{font-size:11px;padding-block:10px}
    .ff141-scroll-story .ffx-chapter-progress{display:block;margin-top:10px}
    .ff141-scroll-story .ffx-connect-title{font-size:17px;margin:2px 0 10px}
    .ff141-scroll-story .ffx-chat-preview{margin-top:11px}
    .ff141-scroll-story .ffx-community-preview{margin-top:14px;padding-top:10px}
    .ff141-scroll-story .ffx-community-preview strong{font-size:19px}
    .ff141-scroll-story .ffx-chart-preview{height:105px}
    .ffx-motion-ready:not(.ffx-paused) .ffx-membership{transform:rotate(calc(-8deg + var(--ff141-rank-progress,0)*14deg)) rotateY(calc(-12deg + var(--ff141-rank-progress,0)*24deg)) rotateX(calc(9deg - var(--ff141-rank-progress,0)*16deg));transition:transform .15s linear}
    .ffx-motion-ready:not(.ffx-paused) .ffx-ai-art{transform:perspective(1000px) rotateX(calc(5deg - var(--ff141-art-progress,0)*7deg));transform-origin:center;transition:transform .18s linear}
}

/* A deliberate press of Play can override the device preference for this visit. */
@media(prefers-reduced-motion:reduce){
    .ffx-user-motion .ffx-portrait-main{animation:ffx-levitate 6s ease-in-out infinite!important}
    .ffx-user-motion .ffx-floating-top{animation:ffx-float 8s ease-in-out infinite!important}
    .ffx-user-motion .ffx-floating-bottom{animation:ffx-float 8s ease-in-out -4s infinite!important}
    .ffx-user-motion .ffx-ticker-track{animation:ffx-marquee 45s linear infinite!important}
    .ffx-user-motion .ffx-chapter-panel,.ffx-user-motion .ffx-screen-panel{animation:ffx-panel .4s ease-out!important}
    .ffx-user-motion.ffx-motion-ready [data-reveal]:not(.is-visible){opacity:0;transform:translateY(15px)}
    .ffx-user-motion.ffx-motion-ready [data-reveal]{transition:opacity .6s ease,transform .6s ease!important}
    .ffx-user-motion .ffx-globe-scene.has-canvas-globe .ffx-globe-fallback{opacity:0!important}
}
@media(prefers-reduced-motion:reduce) and (min-width:741px){
    .ffx-user-motion .ffx-chapter-scroll{height:220vh;padding-block:0}
    .ffx-user-motion .ffx-chapter-sticky{position:sticky;top:50px;height:calc(100svh - 75px);min-height:570px}
    .ffx-user-motion .ffx-product-window{transform:rotateY(calc(-16deg + var(--chapter-progress,0)*24deg)) rotateX(calc(7deg - var(--chapter-progress,0)*12deg))}
}
