/* Each room fills the viewport, with six levels directly on its scenery. */
body.academy-map-screen{isolation:isolate;background:#173d37;padding-bottom:80px}
.academy-map-screen .academy-header{position:relative;background:#0b2024c9;backdrop-filter:blur(8px)}
.academy-map-screen .academy-dock{background:#0d252de8}
.academy-map{max-width:1320px;margin:auto;padding:12px 48px 0}
.academy-map-backdrop{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:#173d37}
.academy-map-backdrop img{width:100%;height:100%;object-fit:cover;object-position:center;max-width:none}
.academy-map-light{position:absolute;inset:0;background:linear-gradient(180deg,#071e2b44,transparent 40%,#071e2b26)}
.academy-room-switch{display:flex;justify-content:center;gap:10px;margin:0 auto 8px;flex-wrap:wrap}
.academy-room-switch button{min-height:46px;padding:8px 24px;border:1px solid #f3dfac55;border-radius:28px;background:#102b32d9;color:#fff7e5;font-size:16px;line-height:1.5;box-shadow:0 3px 12px #071e2b20}
.academy-room-switch [aria-pressed="true"]{background:#fff0ce;color:#294636;border-color:#fff4d9}
.academy-room-switch button:focus-visible{outline:3px solid #ffe6a0;outline-offset:4px}
.academy-map .room-route{position:relative;display:block;margin:0;border:0;border-radius:0;background:none;overflow:visible;scroll-margin-top:0}
.academy-map .room-route[hidden]{display:none!important}
.academy-map .recipe-trail{position:relative;container-type:size;width:100%;height:calc(100svh - 225px);min-height:520px;max-height:780px;margin:0}
.academy-map .trail-line{width:100%;height:100%}
.academy-map .trail-line path{stroke:#f5e5b7b8;stroke-width:11;stroke-dasharray:3 18;filter:drop-shadow(0 3px 3px #102d2a99)}
.academy-map .trail-line-mobile{display:none}
.academy-map .recipe-stop{left:var(--stop-x);top:var(--stop-y);z-index:2}
.academy-map .recipe-node{width:100px;height:100px;left:-50px;top:-50px;border-width:4px;box-shadow:0 6px 0 #152b24,0 10px 20px #0003}
.academy-map .recipe-node-number{font:900 34px/1 Nunito,Verdana,sans-serif}
.academy-map .recipe-node-state{width:29px;height:29px;right:0;bottom:-2px}
.academy-map .recipe-stop-title{top:60px;width:190px;max-width:20vw;font:700 15px/1.4 Nunito,Verdana,sans-serif;color:#fff8e5;background:#102b32df;border-radius:18px;padding:5px 12px;box-shadow:0 3px 10px #071e2b20;text-shadow:none}
.academy-map .recipe-node:disabled{opacity:1;filter:saturate(.35);background:linear-gradient(145deg,#526459,#34493f);border-color:#97a995;color:#d4decd}
.academy-map .route-locked{position:absolute;z-index:3;top:0;left:50%;transform:translateX(-50%);margin:0;max-width:600px;width:calc(100% - 24px);padding:5px 16px;border-radius:18px;background:#102b32df;color:#fff0cc;text-align:center;font:14px/1.5 Nunito,Verdana,sans-serif}
.academy-map .greenhouse-map-decor,.academy-map .observatory-map-decor{z-index:0}
.academy-map :is(.greenhouse-decoration,.observatory-decoration){width:clamp(60px,8vw,110px);top:auto;bottom:auto;left:auto;right:auto}
.academy-map .greenhouse-decoration-0,.academy-map .observatory-decoration-0{left:1%;top:0}
.academy-map .greenhouse-decoration-1,.academy-map .observatory-decoration-1{right:0;top:1%}
.academy-map .greenhouse-decoration-1{transform:none}
.academy-map .room-route:has(.route-locked) :is(.observatory-decoration-0,.observatory-decoration-1){top:56px}
.academy-map .greenhouse-decoration-2,.academy-map .observatory-decoration-2{right:0;bottom:0}
.academy-map .greenhouse-decoration-3,.academy-map .observatory-decoration-3{left:0;bottom:0}
.academy-map .greenhouse-fox{width:clamp(40px,calc(36.6cqh - 145px),140px);left:50%;top:calc(50% + 31px);bottom:auto;transform:translate(-50%,-50%);height:auto}
.map-celebration{text-align:center;margin:20px auto 0}
@media(max-width:700px){
 .academy-map{padding:12px 12px 0}
 .academy-room-switch{gap:8px;margin-bottom:4px}
 .academy-room-switch button{padding:9px 12px;font-size:14px;min-height:44px}
 .academy-map .recipe-trail{height:calc(100svh - 210px);min-height:450px;max-height:800px}
 .academy-map .trail-line-desktop{display:none}
 .academy-map .trail-line-mobile{display:block}
 .academy-map .trail-line path{stroke-width:8;stroke-dasharray:3 14}
 .academy-map .recipe-stop{left:var(--stop-mx);top:var(--stop-my)}
 .academy-map .recipe-node{width:78px;height:78px;left:-39px;top:-39px;border-width:3px}
 .academy-map .recipe-node-number{font-size:29px}
 .academy-map .recipe-node-state{width:24px;height:24px;font-size:13px}
 .academy-map .recipe-stop-title{top:46px;width:145px;max-width:38vw;padding:4px 8px;font-size:13px}
 .academy-map .route-locked{font-size:13px;padding:5px 12px}
 .academy-map :is(.greenhouse-decoration,.observatory-decoration){width:clamp(40px,8vw,56px);opacity:.85}
 .academy-map .greenhouse-decoration-0,.academy-map .observatory-decoration-0{left:-8px;top:0}
 .academy-map .greenhouse-decoration-1,.academy-map .observatory-decoration-1{right:-8px;top:0}
 .academy-map .greenhouse-decoration-2,.academy-map .observatory-decoration-2{display:none}
 .academy-map .greenhouse-decoration-3,.academy-map .observatory-decoration-3{left:50%;top:0;bottom:auto;transform:translateX(-50%)}
 .academy-map .room-route:has(.route-locked) :is(.observatory-decoration-0,.observatory-decoration-1,.observatory-decoration-3){top:56px}
 .academy-map .greenhouse-fox{width:clamp(40px,calc(44vw - 112px),64px);left:50%;right:auto;top:49%;bottom:auto}
}
@media(prefers-reduced-motion:reduce){.academy-map .recipe-node{animation:none}}
