/* Soft noren curtains: cover immediately, then open onto the next little world. */
.route-curtain{--curtain:#fbe1eb;--curtain-edge:#e9b2c8;--curtain-ink:#a14470;position:fixed;inset:0;z-index:9000;isolation:isolate;overflow:hidden;pointer-events:none;contain:layout paint;color:var(--curtain-ink)}
.route-curtain[hidden]{display:none!important}
.route-curtain[data-destination=world]{--curtain:#d9eff4;--curtain-edge:#a7cfdb;--curtain-ink:#48798a}
.route-curtain[data-destination=arcade]{--curtain:#fff0bb;--curtain-edge:#edce78;--curtain-ink:#946628}
.route-curtain[data-destination=shrine]{--curtain:#e4edda;--curtain-edge:#bdcea9;--curtain-ink:#667b44}
.route-curtain[data-destination=birthday]{--curtain:#ebe3f7;--curtain-edge:#cdb9e5;--curtain-ink:#7c5b9c}
.route-panel{position:absolute;inset:-20px auto -20px 0;width:calc(50% + 2px);background-color:var(--curtain);background-image:radial-gradient(circle at center,#ffffff8a 1.8px,transparent 2px),linear-gradient(90deg,transparent 0,#ffffff25 50%,transparent 100%);background-size:26px 26px,90px 100%;border-bottom:12px solid var(--curtain-edge);will-change:transform}
.route-panel.panel-left{border-right:1px solid #ffffff80;border-radius:0 0 30px 0}
.route-panel.panel-right{left:auto;right:0;border-left:1px solid #fff8;border-radius:0 0 0 30px}
.route-curtain.is-active .panel-left{animation:kawaii-curtain-left .72s cubic-bezier(.55,0,.2,1) both}
.route-curtain.is-active .panel-right{animation:kawaii-curtain-right .72s cubic-bezier(.55,0,.2,1) both}
.route-bloom{position:absolute;left:50%;top:47%;width:240px;height:240px;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:translate(-50%,-50%);text-align:center}
.route-curtain.is-active .route-bloom{animation:kawaii-route-bloom .58s ease both}
.route-ring{position:absolute;inset:9px;border:1px dashed currentColor;border-radius:50%;opacity:.35}
.route-ring:after{content:'';position:absolute;inset:12px;border:8px solid #ffffff65;border-radius:50%}
.route-mascot{position:relative;display:block;width:140px;height:140px;object-fit:contain;z-index:1}
.route-label{position:relative;font-size:1rem;font-weight:800;line-height:1.4;max-width:240px;padding:8px 17px;background:#ffffffeb;border-radius:40px;box-shadow:0 3px 0 #ffffff50;z-index:1}
.route-tiny-stars{position:relative;font-size:.75rem;letter-spacing:.27em;margin-top:10px;opacity:.7}
.route-petal{position:absolute;font-style:normal;font-size:31px;line-height:1;opacity:.8}.petal-a{left:-5px;top:32px}.petal-b{right:0;top:18px;font-size:40px}.petal-c{left:5px;bottom:22px;font-size:24px}.petal-d{right:-3px;bottom:38px;font-size:25px}
.route-curtain.is-active .route-petal{animation:kawaii-route-petal .6s ease both}
.route-curtain.is-active .petal-b,.route-curtain.is-active .petal-d{animation-direction:reverse}
@keyframes kawaii-curtain-left{0%,26%{transform:translateX(0)}100%{transform:translateX(-103%)}}
@keyframes kawaii-curtain-right{0%,26%{transform:translateX(0)}100%{transform:translateX(103%)}}
@keyframes kawaii-route-bloom{0%{opacity:0;transform:translate(-50%,-46%) scale(.87)}25%,45%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-55%) scale(1.04)}}
@keyframes kawaii-route-petal{from{transform:translateY(8px) rotate(-20deg) scale(.6)}to{transform:translateY(-7px) rotate(15deg) scale(1)}}
/* Arrival choreography complements the instant route commit beneath the curtains. */
.route-arriving .hero-copy,.route-arriving .section-heading,.route-arriving .shrine-copy,.route-arriving .arcade-welcome-copy,.route-arriving .birthday-page-head{animation:kawaii-page-arrive .58s .16s cubic-bezier(.2,.65,.2,1) both}
.route-arriving .friend-feature,.route-arriving .arcade-game-menu,.route-arriving .birth-form{animation:kawaii-page-arrive .54s .24s cubic-bezier(.2,.65,.2,1) both}
@keyframes kawaii-page-arrive{from{opacity:.3;translate:0 13px}to{opacity:1;translate:0 0}}
/* Short, tactile responses and slow scenery movement use separate transform properties. */
.nav-button[aria-current=page] svg{animation:kawaii-nav-pop .48s ease both}
@keyframes kawaii-nav-pop{0%{scale:.8}55%{scale:1.18;rotate:-5deg}100%{scale:1;rotate:0deg}}
body:not([data-motion=paused]) .festival-stamp{animation:kawaii-stamp-drift 4.2s ease-in-out infinite alternate}
@keyframes kawaii-stamp-drift{from{translate:0 0;rotate:-3deg}to{translate:0 -7px;rotate:3deg}}
.scene-light:after{content:'';position:absolute;inset:-20%;background:linear-gradient(115deg,transparent 30%,#fff8 46%,transparent 63%);opacity:.1;animation:kawaii-light-pass 9s ease-in-out infinite;pointer-events:none}
@keyframes kawaii-light-pass{0%,18%{translate:-35% 0;opacity:0}45%{opacity:.22}80%,100%{translate:35% 0;opacity:0}}
body:not([data-motion=paused]) .hero-eyebrow>span:first-child,body:not([data-motion=paused]) .shrine-blossom{animation:kawaii-flower-sway 5s ease-in-out infinite alternate}
@keyframes kawaii-flower-sway{from{rotate:-8deg}to{rotate:10deg}}
body:not([data-motion=paused]) .product-ground{animation:kawaii-ground-breathe 4s ease-in-out infinite alternate}
@keyframes kawaii-ground-breathe{from{scale:1;opacity:.5}to{scale:.88;opacity:.35}}
@media(hover:hover){.experience-ticket:hover .ticket-image img,.friend-thumb:hover img{animation:kawaii-tiny-hop .48s ease both}.nav-button:hover svg{translate:0 -2px}.button:hover .button-flower{rotate:35deg}}
@keyframes kawaii-tiny-hop{0%,100%{translate:0 0}42%{translate:0 -7px}70%{translate:0 1px}}
.button .button-flower,.nav-button svg{transition:translate .2s ease,rotate .3s ease}
.button:active,.experience-ticket:active,.friend-thumb:active{scale:.975}
@media(max-width:560px){.route-bloom{width:210px;height:210px}.route-mascot{width:120px;height:120px}.route-label{font-size:.9375rem}.route-petal{font-size:26px}.route-ring{inset:3px}}
body[data-motion=paused] .route-curtain{display:none!important}
body[data-motion=paused] .route-arriving *,body[data-motion=paused] .nav-button svg,body[data-motion=paused] .festival-stamp,body[data-motion=paused] .scene-light:after,body[data-motion=paused] .hero-eyebrow>span:first-child,body[data-motion=paused] .shrine-blossom,body[data-motion=paused] .product-ground,body[data-motion=paused] .experience-ticket img,body[data-motion=paused] .friend-thumb img{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.route-curtain{display:none!important}.route-arriving *,.nav-button svg,.festival-stamp,.scene-light:after,.hero-eyebrow>span:first-child,.shrine-blossom,.product-ground,.experience-ticket img,.friend-thumb img{animation:none!important;transition:none!important}.button:active,.experience-ticket:active,.friend-thumb:active{scale:1}}
