/* Enhanced motion stays independent of game canvases and platform players. */
body{isolation:isolate}
.site-atmosphere{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;contain:strict}
.site-atmosphere>i{position:absolute;width:min(48vw,720px);height:min(48vw,720px);border-radius:50%;background:radial-gradient(ellipse,#b5a0e522,transparent 67%);animation:fx-atmosphere 24s ease-in-out infinite alternate;will-change:transform}
.site-atmosphere>i:nth-child(1){left:-16%;top:0}
.site-atmosphere>i:nth-child(2){right:-18%;top:25%;background:radial-gradient(ellipse,#90b3a122,transparent 68%);animation-delay:-8s;animation-duration:30s}
.site-atmosphere>i:nth-child(3){left:20%;bottom:-32%;background:radial-gradient(ellipse,#e7afba24,transparent 67%);animation-delay:-16s}
.site-night .site-atmosphere>i{background:radial-gradient(ellipse,#9483ff25,transparent 68%)}
.site-night .site-atmosphere>i:nth-child(2){background:radial-gradient(ellipse,#5ddfce15,transparent 68%)}
.site-night .site-atmosphere>i:nth-child(3){background:radial-gradient(ellipse,#e58ea41c,transparent 68%)}
.site-scroll-progress{position:absolute;bottom:-1px;left:0;width:100%;height:2px;background:linear-gradient(90deg,#89ac7a,#a295e6,#dc9cae);transform:scaleX(0);transform-origin:left;pointer-events:none}
.site-click-lights{position:fixed;inset:0;overflow:hidden;contain:strict;z-index:80;pointer-events:none}
.fx-ripple{position:absolute;z-index:2;width:40px;height:40px;margin:-20px 0 0 -20px;border:1px solid #aa95d4;border-radius:50%;pointer-events:none;animation:fx-ripple .65s ease-out forwards}
.fx-spark{position:absolute;z-index:1;width:4px;height:4px;border-radius:50%;background:var(--spark-color,#a495d8);pointer-events:none;animation:fx-spark .65s ease-out forwards}
.fx-spotlight{position:absolute;inset:0;pointer-events:none;z-index:2;border-radius:inherit;background:radial-gradient(240px circle at var(--glow-x,50%) var(--glow-y,50%),#c5b0ec28,transparent 70%);opacity:0;transition:opacity .25s}
.fx-card{position:relative}
.fx-card.fx-card-active>.fx-spotlight{opacity:1}
@media(hover:hover) and (pointer:fine){
  .fx-card.fx-card-active{transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-4px);transition:transform .16s ease-out,box-shadow .25s;box-shadow:0 14px 30px #49337116}
  .fx-card.fx-card-active .game-arrow,.fx-card.fx-card-active .song-card-arrow{transform:translate(2px,-2px);transition:transform .2s}
}
.fx-hero-halo{position:absolute;inset:0;overflow:hidden;contain:strict;pointer-events:none}
.fx-hero-halo>i{position:absolute;inset:6% 3% 12%;border-radius:50%;background:conic-gradient(from 0deg,#b5c88300,#a89ae733,#ecbbca22,#b5c88300);animation:fx-halo 20s linear infinite}
.fx-hero-halo>i:nth-child(2){inset:13% 11% 18%;border:1px dashed #afa1ce5c;background:none;rotate:-20deg;animation:fx-halo 36s linear infinite reverse}
.hero-visual>.play-machine,.hero-visual>.hero-sticker,.hero-visual>.floating-note,.hero-visual>.visual-caption{position:relative;z-index:1}
/* Existing absolutely positioned stickers keep their coordinates. */
.hero-visual>.hero-sticker,.hero-visual>.floating-note,.hero-visual>.visual-caption{position:absolute}
.fx-on .hero-spark{animation:fx-star-spin 12s linear infinite}
.fx-on .hero-highlight::before{animation:fx-highlight 6s ease-in-out infinite}
.fx-on .site-brand>svg{transition:rotate .6s cubic-bezier(.2,.8,.3,1)}
.fx-on .site-brand:hover>svg{rotate:90deg}
.fx-on .status-dot{animation:fx-status 3s ease-in-out infinite}
.fx-on .portal-hero-stamp{animation:fx-stamp 8s ease-in-out infinite}
.fx-on .floating-note.note-top{animation:fx-note 7s ease-in-out infinite}
.fx-on .floating-note.note-bottom{animation:fx-note 8s ease-in-out infinite reverse}
.fx-on .hero-sticker{animation:fx-sticker 9s ease-in-out infinite}
.fx-on .world-record{animation:fx-halo 12s linear infinite}
.fx-on .world-hex{animation:fx-hex 9s ease-in-out infinite}
.fx-on .world-cup>i{animation:fx-steam 4s ease-in-out infinite}
.fx-on .world-cup>i:nth-child(2){animation-delay:1s}
.fx-on .story-vignette{animation:fx-illustration 9s ease-in-out infinite}
.fx-on .reading-card:nth-child(2n) .story-vignette{animation-delay:-3s}
.fx-on .reading-card:nth-child(3n) .story-vignette{animation-delay:-6s}
.fx-on .site-control:hover>svg{rotate:12deg;transition:rotate .2s}
.fx-on .button:hover>span:last-child{translate:2px -2px;transition:translate .2s}
.motion-section{padding-bottom:12px}
.motion-section-tag{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--site-line);border-radius:30px;font-size:11px;white-space:nowrap}
.motion-section-tag i{width:6px;height:6px;border-radius:50%;background:#a897d9;box-shadow:0 0 0 4px #a897d921}
.motion-lab{margin-top:28px;display:grid;grid-template-columns:minmax(0,1fr) 280px;background:#111321;color:#eeeaff;border:1px solid #292b41;border-radius:16px;overflow:hidden;box-shadow:0 22px 65px #4b387414}
.motion-stage{position:relative;min-width:0;min-height:560px;overflow:hidden;background:radial-gradient(ellipse at 45% 44%,#453965,#111321 68%);isolation:isolate}
#motion-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:pan-y;cursor:crosshair}
#motion-canvas:focus-visible{outline:2px solid #dbd0ff;outline-offset:-4px}
.motion-stage-top{position:absolute;left:28px;right:28px;top:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;font:9px/1.5 monospace;letter-spacing:1.7px;color:#ccc4e2;pointer-events:none}
.motion-stage-top>span:first-child{display:flex;align-items:center;gap:8px}
.motion-stage-top i{width:5px;height:5px;border-radius:50%;background:#b9e5d4;box-shadow:0 0 9px #b9e5d488}
.motion-stage-copy{position:absolute;bottom:33px;left:34px;right:30px;pointer-events:none;filter:drop-shadow(0 2px 8px #111321)}
.motion-stage-copy p{font:9px/1.6 monospace;letter-spacing:2px;color:#c3b5e6;margin:0 0 12px}
.motion-stage-copy h3{font:650 29px/1.5 var(--site-font);letter-spacing:-.6px;margin:0 0 8px;color:#f1ecff}
.motion-stage-copy>span{font-size:11px;color:#c3bbd8}
.motion-stage-state{position:absolute;top:53px;left:28px;font:10px/1.5 var(--site-font);color:#9e94b5;pointer-events:none}
.motion-console{padding:26px 24px;background:linear-gradient(160deg,#222136,#171927);border-left:1px solid #363346}
.motion-console-label{font-size:12px;color:#d9d2e9;margin:0 0 19px}
.motion-modes{display:grid;gap:8px}
.motion-modes button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 11px;color:#e8e1f5;background:#ffffff05;border:1px solid #ffffff12;border-radius:8px;text-align:left;transition:background .2s,border-color .2s,transform .2s}
.motion-modes button:hover{background:#ffffff0c;border-color:#b4a0d866;transform:translateX(2px)}
.motion-modes button[aria-pressed=true]{background:#a992d923;border-color:#b8a0e489}
.motion-mode-icon{width:25px;font-size:24px;line-height:1;text-align:center;color:#bfabe5;flex-shrink:0}
.motion-mode-icon>svg{width:24px;height:24px;display:block}
.motion-modes button>span:nth-child(2){flex:1}
.motion-modes strong{display:block;font-size:13px;font-weight:500;line-height:1.6}
.motion-modes small{display:block;font-size:9px;line-height:1.8;color:#b2a9c5;margin-top:1px}
.motion-modes i{font:9px monospace;color:#80738e}
.motion-energy-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#c8bddb;margin-top:21px}
#motion-energy{width:100%;height:18px;accent-color:#b6a0de;cursor:pointer;margin:8px 0 15px}
.motion-console-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.motion-console-actions>button{background:#ffffff08;border:1px solid #ffffff20;border-radius:7px;padding:10px 6px;color:#cfc5e0;font:500 11px/1.6 var(--site-font);transition:background .2s,transform .2s}
.motion-console-actions>button:hover{background:#ffffff12;transform:translateY(-1px)}
.motion-console-actions>button:first-child{grid-column:1/-1;background:#c4b2e7;color:#292238;border-color:#c4b2e7;display:flex;align-items:center;justify-content:space-between;padding:11px 15px}
.motion-console-actions>button:first-child:hover{background:#d1c0f0}
.motion-console-note{font-size:10px;color:#9e94b2;line-height:1.8;margin:16px 0 0}
.motion-lab :focus-visible{outline:2px solid #e5d6ff;outline-offset:3px}
.motion-lab button:disabled{cursor:default;opacity:.5}
.motion-lab:fullscreen,.motion-lab.is-immersive{width:100%;height:100dvh;grid-template-columns:minmax(0,1fr) 290px;margin:0;border-radius:0;border:0;box-shadow:none}
.motion-lab.is-immersive{position:fixed;inset:0;z-index:120}
html.fx-immersive{overflow:hidden}
.motion-lab:fullscreen,.motion-lab.is-immersive{overflow-x:hidden;overflow-y:auto}
.motion-exit{display:none;position:absolute;right:17px;top:16px;z-index:3;width:34px;height:34px;border:1px solid #ffffff40;border-radius:50%;background:#191629c4;color:#f1e7ff;font:500 23px/1 var(--site-font);cursor:pointer}
.motion-lab:fullscreen .motion-exit,.motion-lab.is-immersive .motion-exit{display:block}
.motion-lab:fullscreen .motion-stage-top,.motion-lab.is-immersive .motion-stage-top{right:65px}
.motion-lab:fullscreen .motion-stage,.motion-lab.is-immersive .motion-stage{height:100%;min-height:0}
.motion-lab:fullscreen .motion-console,.motion-lab.is-immersive .motion-console{display:flex;flex-direction:column;justify-content:center}
.motion-lab:fullscreen .motion-stage-copy,.motion-lab.is-immersive .motion-stage-copy{bottom:50px;left:50px}
.fx-suspended .site-atmosphere>i{animation-play-state:paused!important}
.fx-off .site-atmosphere{display:none}
.fx-off .fx-hero-halo{display:none}
.fx-off .site-click-lights{display:none}
.fx-off .fx-spotlight,.fx-off .fx-ripple,.fx-off .fx-spark{display:none}
.fx-off .hero .play-machine,.fx-off .rose-composition{animation:none;translate:none}
.fx-off .fx-card.fx-card-active{transform:none}
.fx-off .fx-card>.fx-spotlight{opacity:0}
@keyframes fx-atmosphere{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(9%,14%,0) scale(1.15)}}
@keyframes fx-ripple{0%{opacity:.7;transform:scale(.25)}100%{opacity:0;transform:scale(2.7)}}
@keyframes fx-spark{0%{opacity:1;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.2)}}
@keyframes fx-halo{to{transform:rotate(360deg)}}
@keyframes fx-star-spin{to{rotate:360deg}}
@keyframes fx-highlight{0%,100%{transform:rotate(-2deg) scaleX(1)}50%{transform:rotate(0deg) scaleX(1.04)}}
@keyframes fx-status{0%,100%{box-shadow:0 0 0 0 #8eab5130}50%{box-shadow:0 0 0 5px #8eab5100}}
@keyframes fx-stamp{0%,100%{rotate:-4deg;translate:0 0}50%{rotate:5deg;translate:0 -5px}}
@keyframes fx-note{0%,100%{translate:0 0}50%{translate:0 -6px}}
@keyframes fx-sticker{0%,100%{rotate:0deg}50%{rotate:-7deg}}
@keyframes fx-hex{0%,100%{rotate:0deg;scale:1}50%{rotate:12deg;scale:1.05}}
@keyframes fx-steam{0%,100%{translate:0 0;opacity:.5}50%{translate:0 -6px;opacity:1}}
@keyframes fx-illustration{0%,100%{rotate:-3deg;translate:0 0}50%{rotate:3deg;translate:0 -4px}}
@media(max-width:1000px){.motion-lab{grid-template-columns:minmax(0,1fr) 254px}.motion-console{padding:23px 18px}.motion-stage-copy{left:26px}.motion-stage-copy h3{font-size:25px}}
@media(max-width:700px){
  .site-atmosphere>i{width:80vw;height:80vw;animation-duration:32s}
  .site-atmosphere>i:nth-child(3){display:none}
  .motion-lab{grid-template-columns:1fr;margin-top:22px;border-radius:12px}
  .motion-stage{height:360px;min-height:0}
  .motion-stage-top{left:19px;right:19px;top:20px;font-size:8px;letter-spacing:.8px}
  .motion-stage-state{left:19px;top:46px;font-size:9px}
  .motion-stage-copy{left:20px;right:16px;bottom:24px}
  .motion-stage-copy p{font-size:8px;letter-spacing:1px;margin-bottom:8px}
  .motion-stage-copy h3{font-size:23px;margin-bottom:5px}
  .motion-stage-copy>span{font-size:10px;line-height:1.8}
  .motion-console{border-left:0;border-top:1px solid #363346;padding:20px}
  .motion-console-label{margin-bottom:14px;font-size:12px}
  .motion-modes{grid-template-columns:1fr 1fr;gap:8px}
  .motion-modes button{padding:11px 8px;gap:7px}
  .motion-mode-icon{font-size:21px;width:22px}
  .motion-modes strong{font-size:12px}
  .motion-modes small{font-size:8px;letter-spacing:-.2px}
  .motion-modes i{display:none}
  .motion-energy-label{margin-top:17px}
  .motion-console-actions{grid-template-columns:1.2fr 1fr 1fr;gap:7px}
  .motion-console-actions>button:first-child{grid-column:auto;padding:10px 8px;justify-content:center;gap:8px}
  .motion-console-actions>button{font-size:10px}
  .motion-console-note{margin-top:11px;font-size:9px}
  .motion-console-note br{display:none}
  .motion-lab:fullscreen,.motion-lab.is-immersive{display:flex;flex-direction:column;overflow:auto}
  .motion-lab:fullscreen .motion-stage,.motion-lab.is-immersive .motion-stage{flex:1;min-height:220px;height:auto}
  .motion-lab:fullscreen .motion-console,.motion-lab.is-immersive .motion-console{flex-shrink:0;display:block;padding:15px 18px}
  .motion-lab:fullscreen .motion-console-label,.motion-lab.is-immersive .motion-console-label,.motion-lab:fullscreen .motion-console-note,.motion-lab.is-immersive .motion-console-note{display:none}
  .motion-lab:fullscreen .motion-stage-copy,.motion-lab.is-immersive .motion-stage-copy{left:20px;bottom:21px}
}
@media(max-width:360px){.motion-console{padding:16px}.motion-modes button{gap:5px}.motion-modes small{font-size:7px}.motion-stage{height:330px}.motion-stage-copy h3{font-size:22px}.motion-console-actions>button:first-child>span{display:none}.motion-console-actions>button{font-size:9px}}
@media(max-height:500px) and (min-width:701px){.motion-lab:fullscreen .motion-console,.motion-lab.is-immersive .motion-console{padding:14px;overflow:auto;justify-content:flex-start}.motion-lab:fullscreen .motion-modes,.motion-lab.is-immersive .motion-modes{grid-template-columns:1fr 1fr}.motion-lab:fullscreen .motion-modes button,.motion-lab.is-immersive .motion-modes button{gap:5px;padding:8px}.motion-lab:fullscreen .motion-modes small,.motion-lab.is-immersive .motion-modes small,.motion-lab:fullscreen .motion-modes i,.motion-lab.is-immersive .motion-modes i{display:none}.motion-lab:fullscreen .motion-console-note,.motion-lab.is-immersive .motion-console-note{display:none}}
@media(prefers-reduced-motion:reduce){.site-atmosphere,.fx-hero-halo{display:none}.fx-ripple,.fx-spark,.fx-spotlight{display:none}.fx-card.fx-card-active{transform:none}.motion-lab *{animation:none!important;transition:none!important}}
