.home-page{background:#271e35;color:#f4e7ed;--gold:#efd4a2;--mint:#a7ddca}.home-page [hidden]{display:none!important}.home-header{max-width:1560px;margin:auto;padding:22px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px}.home-logo{display:flex;gap:12px;align-items:center;text-decoration:none;color:#f3d9ad}.home-logo>span{font-size:38px}.home-logo small{display:block;font-size:9px;letter-spacing:3px;margin-bottom:3px}.home-logo strong{font:25px Georgia,serif}.home-header nav{display:flex;gap:10px}.home-header nav button{background:#3c2f49;border:1px solid #735c8055;border-radius:17px;padding:10px 17px;color:#e6d5eb;font-size:12px;min-height:47px}.home-header nav button span{font-size:21px;vertical-align:middle;margin-right:6px;color:#efd8ae}.home-layout{max-width:1560px;margin:0 auto;padding:0 25px 25px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:6px 0 20px}.home-welcome .eyebrow{font-size:9px;letter-spacing:1.7px;margin:0 0 8px}.home-welcome h1{font:32px Georgia,serif;color:#fff0da;margin:0}.home-chip{font-size:10px;background:#40364b;border:1px solid #b2a0b344;border-radius:20px;padding:9px 13px;white-space:nowrap;color:#cfbdcf}.home-page .room{width:100%;max-width:none;min-height:480px;aspect-ratio:16/10;border-radius:27px}.home-page .room.fluffy:not(.playing) #actor{width:clamp(300px,36vw,460px);bottom:11%;left:60%}.home-page .room.playing #actor{width:290px;bottom:auto}.home-page .room .name-tag{font-size:20px;top:18px;left:18px;padding:10px 17px}.home-page .room .name-tag small{font-size:9px;letter-spacing:.5px}.companion-controls{position:relative;text-align:center;padding:0 12px 15px;background:#31253e;border:1px solid #72567d66;border-top:0;border-radius:0 0 25px 25px;margin:-13px 10px 0}.home-page .hint{position:relative;left:auto;top:auto;transform:none;max-width:none;width:auto;min-height:45px;padding:22px 5px 12px;margin:0;background:none;border:0;box-shadow:none;color:#d8c5df;font-size:12px;z-index:auto}.home-page .pet-menu{position:relative;left:auto;bottom:auto;transform:none;justify-content:center;gap:12px;margin:0 auto 15px;z-index:auto}.home-page .pet-menu button{width:86px;height:78px;font-size:14px;border-radius:20px}.home-page .pet-menu button span{font-size:27px}.home-page .reset{position:static;background:none;border:0;color:#c8b2d2;font-size:11px;padding:5px 12px;min-height:32px}.home-extras{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px}.home-extras>button{display:flex;align-items:center;text-align:left;gap:13px;border-radius:22px;padding:13px 16px;border:1px solid #796185;background:linear-gradient(135deg,#4a375b,#33293f);color:#f4e1de;min-height:102px}.home-extras strong{display:block;font:18px Georgia,serif;line-height:1.25}.home-extras small{display:block;color:#cbb7d5;font-size:10px;line-height:1.5;margin-top:7px}.home-extras b{margin-left:auto;color:#e9d6b1;font-size:22px;font-weight:normal}.home-extras img{width:56px;height:74px;object-fit:contain;flex-shrink:0}.extra-icon{width:56px;flex-shrink:0;text-align:center;color:#c6f0b5;text-shadow:0 0 20px #d5ff9290;font-size:43px}.home-sidebar{padding-top:6px;display:grid;gap:19px}.week-card,.treasure-card{border-radius:26px;border:1px solid #876b7e66;background:linear-gradient(145deg,#4b3858,#352a44);padding:23px 22px;text-align:center;box-shadow:0 10px 28px #120a1b30}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:5px}.card-heading .eyebrow{font-size:8px;letter-spacing:1.4px;color:#d7b7ca}.card-heading #week-stamp{font-size:8px;color:#b9a8c7;white-space:nowrap}.home-sidebar h2{font:25px Georgia,serif;color:#ffedcc;margin:17px 0 10px}.card-description{font-size:11px;line-height:1.6;color:#cdbbd5;margin:0}.weekly-orb{width:111px;height:111px;position:relative;margin:17px auto 7px}.weekly-orb>span{position:absolute;inset:0;display:grid;place-items:center;font-size:43px;color:#edc8f0;text-shadow:0 0 25px #eac3ff66}.weekly-orb svg{width:100%;height:100%;transform:rotate(-90deg)}.weekly-orb circle{fill:none;stroke:#7d62883d;stroke-width:6}.weekly-orb .orb-fill{stroke:#b9dfcb;stroke-linecap:round;stroke-dasharray:320.45;stroke-dashoffset:320.45;transition:stroke-dashoffset .7s ease}.mission-total{font-size:11px;color:#ead6e5;margin-bottom:17px}.mission-list{display:grid;gap:12px;text-align:left}.mission-row>div{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;color:#e5d2e7;margin-bottom:6px}.mission-row small{color:#c4dcca;font-size:10px}.mission-track{height:6px;overflow:hidden;border-radius:5px;background:#92769c36}.mission-track>span{display:block;height:100%;width:0;border-radius:5px;background:linear-gradient(90deg,#b392cb,#b5dfd1);transition:width .6s ease}.soft-button{display:flex;align-items:center;justify-content:center;gap:15px;min-height:44px;width:100%;border:1px solid #ab8fba66;border-radius:14px;background:#ffffff08;color:#f0deeb;padding:10px 16px;font-size:12px}.week-card>.soft-button{margin-top:22px}.week-footer{font-size:9px;color:#bca4c6;line-height:1.7;margin:13px 0 0}.treasure-card{background:radial-gradient(ellipse at 50% 28%,#765b7645,transparent 65%),#392b45}.treasure-card h2{font-size:23px;margin-bottom:0}.chest-button{border:0;background:none;display:block;width:100%;height:152px;padding:0;position:relative}.chest-button img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 16px #e1b67c25);transition:transform .3s}.chest-button:hover img{transform:translateY(-4px)}.gem-row{display:flex;justify-content:center;gap:17px;margin:0 0 10px}.gem-row>span{font-size:26px;color:#6d587d;text-shadow:0 1px 1px #a089b8}.gem-row>span.earned{color:#b4efd7;text-shadow:0 0 16px #a6efc966}.treasure-card>p{font-size:10px;line-height:1.5;color:#d3bedb;margin:0}.prize-target{border-top:1px solid #b69bc42b;border-bottom:1px solid #b69bc42b;padding:14px 0;margin:15px 0}.prize-target small{display:block;font-size:8px;letter-spacing:1.1px;color:#bd9fc9}.prize-target strong{display:block;font:17px/1.3 Georgia,serif;margin-top:7px;color:#ffebcb;overflow-wrap:anywhere}.home-footer{max-width:1510px;margin:0 auto;padding:0 15px 26px;display:flex;justify-content:space-between;gap:20px;color:#ad98b8;font-size:10px}.home-footer a{color:#bfa7cc;text-decoration:none}.home-dialog{width:min(540px,94vw);max-width:94vw;max-height:88svh;overflow:auto;padding:32px;border-radius:25px;border:1px solid #b99bc5;background:linear-gradient(145deg,#463151,#2f233d);color:#f4e1e9;box-shadow:0 25px 100px #13082088}.home-dialog::backdrop{background:#180d29bb;backdrop-filter:blur(7px)}.home-dialog h2{font:29px/1.2 Georgia,serif;color:#fff0cf;padding-right:18px;margin:12px 0}.home-dialog>p:not(.eyebrow){font-size:13px;line-height:1.6;color:#d7c2df}.home-dialog h3{font:20px Georgia,serif;color:#f1d5dd;margin:20px 0 12px}.dialog-close{position:absolute;right:10px;top:8px;width:44px;height:44px;border:0;background:none;color:#e1c8e5;font-size:29px;z-index:2}.gold-button{min-height:47px;border:1px solid #ffe1a9;background:linear-gradient(#ffecc3,#e2bb88);color:#49334d;font-weight:bold;padding:12px 20px;border-radius:14px;font-size:14px}.gold-button:disabled{opacity:.45;cursor:default}.home-dialog>.gold-button{margin-top:15px;width:100%}.quiet-note{font-size:11px!important;line-height:1.6;color:#c1a7cd!important}.progress-item{padding:15px 0;border-bottom:1px solid #b398c039}.progress-item>div{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:10px}.progress-item strong{font-size:13px;font-weight:normal;color:#bfe7cf}.progress-item .mission-track{height:10px}.reward-dialog{text-align:center}.reward-art{width:220px!important;height:175px!important;object-fit:contain;margin:0 auto}.prize-choice{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:12px 14px;margin:8px 0;min-height:48px;background:#ffffff08;border:1px solid #a88abb66;border-radius:13px;color:#f0dbe5;font-size:14px}.prize-choice[aria-pressed=true]{border-color:#bce8d0;background:#a4d7bd14}.prize-choice span{color:#bce8d0}.reward-dialog #open-chest{width:100%;margin-top:15px}.reward-dialog #reward-result{color:#bce8d0;font-size:17px;line-height:1.5}.map-dialog{width:min(800px,94vw)}.starter-destinations{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.starter-destinations button{border:1px solid #ba9cc3;background:#6c4e771f;padding:20px 15px;border-radius:18px;color:#f8e5dc}.starter-destinations span{display:block;font-size:34px;color:#c2e9b9;margin-bottom:10px}.starter-destinations strong{display:block;font:19px Georgia,serif}.starter-destinations small{display:block;margin-top:8px;font-size:11px;color:#c8add4}#adventure-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.adventure-door{border:1px solid #84638b66;background:#1e152d55;min-height:123px;border-radius:40px 40px 12px 12px;padding:17px 7px 12px;text-align:center}.adventure-door>span{display:block;color:#9e82ac;font-size:25px;margin-bottom:8px}.adventure-door strong{font-size:10px;line-height:1.5;display:block;color:#bca4cb}.adventure-door small{display:block;font-size:9px;color:#9377a4;margin-top:5px}.adventure-door.discovered{border-color:#d8ba8a;background:#68507c44}.adventure-door.discovered>span{color:#ead1a7}.adventure-door.discovered strong{color:#f0d8d8}.room-preview-note{border-top:1px solid #92799d4a;padding-top:16px;font-size:10px!important;color:#b9a0c6!important}.parent-dialog{width:min(650px,94vw)}.parent-storage{background:#ffffff08;padding:12px;border:1px solid #987aa344;border-radius:12px;font-size:11px;line-height:1.6;color:#cbb3d5}.parent-form-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.parent-form-heading h3{margin:10px 0}.parent-dialog select,.parent-dialog input{font:14px 'Trebuchet MS',sans-serif;border:1px solid #a889b4;border-radius:10px;background:#f7eff2;color:#4b3458;padding:11px;min-height:44px}.parent-field{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0;font-size:13px}.parent-field small{display:block;font-size:10px;color:#bfa8c9;margin-top:4px}.parent-field input{width:90px;flex-shrink:0}.lesson-target{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;margin-top:16px}.parent-actions{display:flex;gap:10px;align-items:stretch;margin-top:22px}.parent-actions .soft-button{width:auto;flex:1}.parent-actions .gold-button{flex:1}.parent-dialog [role=status]{font-size:12px;line-height:1.6;color:#c5e6d0;min-height:1em}.parent-prizes{border-top:1px solid #95779e55;margin-top:22px;padding-top:8px}#prize-form{display:grid;gap:9px}#prize-form input{width:100%}.earned-treat,.history-row{border-top:1px solid #86688e44;padding:12px 0;font-size:12px;color:#d5bedf;display:flex;gap:12px;justify-content:space-between;align-items:center}.earned-treat button{border:1px solid #a8c7b6;border-radius:9px;background:none;padding:7px 11px;color:#c2e9d2;font-size:11px}.text-button{background:none;border:0;color:#d8bfdd;text-decoration:underline;padding:15px 0;font-size:12px}#hold-parent{touch-action:none;user-select:none;-webkit-user-select:none;width:100%;margin:15px 0;background:linear-gradient(90deg,#b7e1ca var(--hold,0%),#efd4a2 var(--hold,0%))}.home-announcement{position:fixed;z-index:100;left:50%;bottom:25px;transform:translateX(-50%);max-width:min(500px,90vw);border:1px solid #dfc6a1;background:#483653f5;padding:17px 25px;border-radius:18px;color:#ffedcf;box-shadow:0 15px 50px #0a031980;font-size:14px;text-align:center}#firefly-field{position:absolute;inset:0;z-index:8;pointer-events:none}.firefly{position:absolute;width:48px;height:48px;border:0;border-radius:50%;background:radial-gradient(#ffffcb70,transparent 66%);color:#f0ffba;text-shadow:0 0 12px #e8ff83;font-size:27px;pointer-events:auto;animation:fireflyBob 2.5s ease-in-out infinite}.firefly:hover{background:radial-gradient(#f7ffcda0,transparent 70%)}#firefly-count{position:absolute;right:18px;top:18px;z-index:9;background:#3e3049e6;border:1px solid #c5dfac;padding:10px 15px;border-radius:20px;color:#e7f4bd;font-size:12px}@keyframes fireflyBob{50%{translate:8px -11px}}.home-page button:focus-visible,.home-page a:focus-visible,.home-page input:focus-visible,.home-page select:focus-visible{outline:3px solid #a7e8ce;outline-offset:4px}
@media(max-width:1100px){.home-layout{grid-template-columns:minmax(0,1fr) 265px;gap:17px;padding-inline:18px}.week-card,.treasure-card{padding:20px 17px}.home-page .room.fluffy:not(.playing) #actor{width:350px}.home-chip{display:none}.home-welcome h1{font-size:28px}.home-extras strong{font-size:16px}.home-extras>button{padding:12px;gap:8px}.home-extras img,.extra-icon{width:40px}.home-page .pet-menu{gap:9px}.home-page .pet-menu button{width:71px;height:72px}.home-header{padding-inline:23px}}
@media(max-width:850px){.home-header{padding:16px 17px;gap:10px}.home-logo{gap:7px}.home-logo>span{font-size:27px}.home-logo strong{font-size:19px}.home-logo small{font-size:8px;letter-spacing:2px}.home-header nav{gap:5px}.home-header nav button{font-size:9px;padding:7px 9px;border-radius:13px;min-height:46px;display:flex;flex-direction:column;align-items:center;gap:3px}.home-header nav button span{font-size:18px;margin:0}.home-layout{display:block;padding:0 12px 22px}.home-welcome{margin:8px 4px 16px}.home-welcome h1{font-size:27px}.home-welcome .eyebrow{font-size:8px}.home-page .room{height:510px;min-height:510px;aspect-ratio:auto;border-radius:22px}.home-page .room:after{border-radius:22px}.home-page .room.fluffy:not(.playing) #actor{width:min(360px,90vw);bottom:11%;left:50%}.home-page .room.playing #actor{width:min(230px,56vw)}.home-page .room .name-tag{font-size:18px;top:14px;left:14px;padding:8px 12px}.home-page .room .name-tag small{display:none}.companion-controls{margin-inline:3px;padding:0 6px 10px}.home-page .pet-menu{gap:8px;margin-bottom:10px}.home-page .pet-menu button{width:58px;height:67px;border-radius:17px;font-size:12px}.home-page .pet-menu button span{font-size:25px}.home-page .hint{font-size:11px;min-height:46px;padding-top:21px}.home-page .reset{font-size:10px;min-height:35px}.home-extras{gap:10px;margin:17px 0}.home-extras>button{gap:7px;padding:12px 10px;min-height:106px}.home-extras img,.extra-icon{width:35px;height:60px}.home-extras strong{font-size:15px}.home-extras small{font-size:9px}.home-extras b{display:none}.home-sidebar{grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.week-card,.treasure-card{padding:18px 14px;border-radius:22px}.card-heading{display:block}.card-heading .eyebrow{font-size:7px;letter-spacing:1px}.card-heading #week-stamp{display:block;margin-top:7px}.home-sidebar h2{font-size:23px}.home-sidebar .treasure-card h2{font-size:22px;margin-top:25px}.card-description{font-size:10px}.weekly-orb{width:90px;height:90px;margin-top:15px}.mission-row>div{font-size:10px}.mission-row small{font-size:9px}.chest-button{height:150px}.prize-target strong{font-size:16px}.gem-row{gap:12px}.home-footer{padding-inline:20px;line-height:1.5;font-size:9px}.home-dialog{padding:27px 22px;max-height:88svh}.home-dialog h2{font-size:26px}#adventure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.adventure-door{min-height:112px}.starter-destinations strong{font-size:17px}.parent-actions{flex-direction:column}.parent-actions .soft-button{width:100%}.lesson-target{font-size:11px}.parent-form-heading h3{font-size:18px}}
@media(max-width:420px){.home-logo strong{font-size:16px}.home-header nav button{padding-inline:7px}.home-sidebar{grid-template-columns:1fr}.weekly-orb{width:111px;height:111px}.week-card,.treasure-card{padding:23px}.card-heading{display:flex}.card-heading .eyebrow{font-size:8px}.card-heading #week-stamp{margin:0}.mission-row>div{font-size:12px}.mission-row small{font-size:11px}.chest-button{height:180px}.home-sidebar .treasure-card h2{margin-top:17px}.home-page .pet-menu{gap:6px}.home-page .pet-menu button{width:54px}.home-page .room{height:490px;min-height:490px}}
@media(prefers-reduced-motion:reduce){.firefly{animation:none}.weekly-orb .orb-fill,.mission-track>span{transition:none}}
.parent-studio-link{color:#cbb0d8;font-size:11px;text-decoration:none}@media(max-width:370px){.home-header{flex-wrap:wrap;padding:14px 16px}.home-header nav{width:100%}.home-header nav button{flex:1;display:flex;flex-direction:row;justify-content:center;font-size:10px}.home-page .pet-menu{gap:5px}.home-page .pet-menu button{width:48px;height:64px}.home-extras{grid-template-columns:1fr}.home-extras>button{min-height:86px}.home-extras strong{font-size:18px}.home-extras b{display:block}}

/* Keep the room and controls together; one character scale in every mode. */
.home-header{height:92px;padding:5px 25px}.home-logo img{width:164px;height:84px;object-fit:contain}.home-welcome{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.home-page .room{height:clamp(320px,calc(100svh - 240px),720px);min-height:0;aspect-ratio:auto;container-type:size}
.home-page .room #actor,.home-page .room.fluffy:not(.playing) #actor,.home-page .room.playing #actor{width:min(66cqh,52cqw);aspect-ratio:1}
.home-page .room #actor{cursor:default}.home-page #actor.can-pet{cursor:url('assets/home/pet-hand.svg') 18 17,grab}
.home-page .pet-menu button{height:60px;width:74px;font-size:12px;border-radius:17px}.home-page .pet-menu button span{font-size:24px}
.home-page .pet-menu{margin-bottom:4px}.home-page .hint{padding:18px 4px 8px;min-height:38px}.companion-controls{padding-bottom:4px}.home-page .reset{min-height:26px;padding:2px 10px}
.home-page .fluffy-kitten[data-pose=curled] .fluffy-pose{inset:auto;left:16%;top:32%;width:68%;height:68%;object-fit:contain;transform-origin:50% 80%}
.home-page .home-extras{margin-top:14px}.home-page .home-sidebar{padding-top:0}
@media(max-width:850px){.home-header{height:84px;padding:3px 12px}.home-logo img{width:136px;height:78px}.home-page .room{height:clamp(300px,calc(100svh - 220px),560px)}.home-page .room #actor,.home-page .room.fluffy:not(.playing) #actor,.home-page .room.playing #actor{width:min(70cqh,78cqw)}.home-page .pet-menu button{width:54px;height:57px}.home-header nav button{min-height:44px}.home-layout{padding-inline:10px}}

.home-page .fluffy-kitten[data-pose=belly] .fluffy-pose{left:2%;top:33%;width:96%;height:64%;inset:auto;left:2%;top:33%;transform-origin:50% 80%;animation:bellyRoll 3.75s ease-in-out both}
@keyframes bellyRoll{0%{rotate:-22deg;scale:.9}18%{rotate:7deg;scale:1}35%,65%{rotate:-5deg}50%,80%{rotate:5deg}100%{rotate:0deg}}
@media(prefers-reduced-motion:reduce){.home-page .fluffy-kitten[data-pose=belly] .fluffy-pose{animation:none}}

@media(min-width:851px){.home-page{--room-height:clamp(320px,calc(100svh - 240px),720px)}.home-layout{max-width:min(1560px,calc(var(--room-height)*1.75 + 350px))}.home-header{max-width:min(1560px,calc(var(--room-height)*1.75 + 350px))}}
#treat-tray{display:flex;justify-content:center;gap:10px;padding:12px 6px;flex-wrap:wrap}.treat-choice{touch-action:none;min-height:70px;display:flex;align-items:center;gap:9px;max-width:170px;padding:10px;border-radius:17px;background:#f2e4d7;color:#4e325c;border:2px solid transparent}.treat-choice span{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;background:var(--treat);box-shadow:inset 2px 2px 6px #fff9,inset -3px -3px 6px #63365a44;font-size:26px}.treat-choice strong{font-size:12px;text-align:left}.treat-choice[aria-pressed=true]{border-color:#bc8ce9}.treat-choice:disabled{opacity:.55}.treat-ghost{position:fixed;z-index:1000;font-size:40px;translate:-50% -50%;pointer-events:none;filter:drop-shadow(0 3px 5px #392444)}.treat-target:after{content:'';position:absolute;left:37%;top:36%;width:26%;height:26%;border:2px dashed #fff4bd;border-radius:50%;pointer-events:none}.treat-chewing .fluffy-head{animation:chew .22s 3!important;transform-origin:300px 300px}@keyframes chew{50%{transform:translateY(6px) scaleY(.96)}}

.adventure-door[href]{text-decoration:none;display:block;cursor:pointer}.adventure-door[href]:hover{background:#8b639466}

#treat-status{flex-basis:100%;margin:2px 0 0;color:#e7cdef;font-size:12px;min-height:18px}.treat-target:after{left:25%;top:24%;width:50%;height:65%;border-color:#fff4bd99}.treat-choice{user-select:none;-webkit-user-select:none}.treat-chewing .fluffy-head{animation:chew .23s 3!important}

.dance-again{display:block;margin-top:7px;min-height:36px;padding:6px 12px;border-radius:12px;border:1px solid #ddc99b;background:#f4dfba;color:#50365b;font-size:11px}#firefly-count{pointer-events:auto}
.home-header nav .collection-link{display:inline-flex;align-items:center;justify-content:center;min-height:47px;padding:10px 17px;border:1px solid #c49de4;border-radius:17px;background:linear-gradient(145deg,#765295,#513569);box-shadow:0 3px 0 #21132e;color:#fff0d8;text-decoration:none;font:700 12px 'Trebuchet MS',sans-serif;white-space:nowrap}.home-header nav .collection-link:hover{background:#8560a4}.home-header nav .collection-link:focus-visible{outline:3px solid #ffe4a7;outline-offset:3px}@media(max-width:650px){.home-header nav .collection-link{padding:8px 10px;min-height:40px;font-size:11px}}
.map-dialog{width:min(1040px,96vw);padding:24px;overflow:hidden}.map-heading{text-align:center;position:relative;z-index:5}.map-heading h2{margin:4px 0 2px}.map-heading>p:last-child{margin:4px auto 12px!important}.map-dialog .room-preview-note{text-align:center;margin:9px 0 0;padding-top:9px}.map-dialog #academy-map{position:relative;width:100%;height:min(64vh,610px);min-height:470px;overflow:hidden;border:2px solid #d6ba8d;border-radius:30px;background:radial-gradient(ellipse at 50% 50%,#d9b976 0 13%,transparent 14%),radial-gradient(ellipse at 48% 48%,#92b673 0 37%,#6b955e 38% 54%,transparent 55%),linear-gradient(155deg,#7daabc 0 14%,#b8d29a 15% 81%,#759db1 82%);box-shadow:inset 0 0 45px #2a3e3977,0 12px 32px #170c2255}.map-dialog #academy-map:before{content:"";position:absolute;inset:3%;border:7px double #f3db9d77;border-radius:45% 30% 42% 34%;box-shadow:0 0 0 100px #31596722;pointer-events:none}.map-dialog #academy-map:after{content:"N  ✦";position:absolute;right:20px;top:17px;color:#f7e7bc;font:700 13px Georgia,serif;text-shadow:0 2px 3px #29484f;transform:rotate(5deg)}.map-path{position:absolute;height:12px;background:#dfc68c;border:2px dashed #987b4c;border-radius:50%;opacity:.75;transform-origin:left center;z-index:1}.path-a{left:18%;top:27%;width:65%;transform:rotate(15deg)}.path-b{left:19%;top:69%;width:63%;transform:rotate(-17deg)}.path-c{left:48%;top:18%;height:65%;width:12px;transform:rotate(13deg);transform-origin:center}.map-trees{position:absolute;color:#355d48;font-size:28px;letter-spacing:-8px;filter:drop-shadow(0 3px 0 #214a3d);opacity:.8;z-index:1}.trees-a{left:3%;top:38%;transform:rotate(-12deg)}.trees-b{right:5%;bottom:12%;transform:rotate(13deg)}#adventure-grid{position:absolute;inset:0;display:block;z-index:3}.map-landmark{position:absolute;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:120px;min-height:90px;padding:0;border:0;background:none;color:#fff8e7;text-align:center;text-decoration:none;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 4px #233a3977)}.map-landmark .landmark-picture{display:grid;place-items:center;width:68px;height:60px;margin:auto;border:3px solid #f6dd9e;border-radius:50% 50% 44% 44%;background:#4c3863 center/cover no-repeat;box-shadow:0 0 0 4px #442b5388,0 0 19px #ffec9a99;color:#fff1b8;font-size:28px}.map-landmark strong{max-width:130px;margin-top:4px;padding:3px 8px;border-radius:9px;background:#352543e8;font:700 11px/1.2 'Trebuchet MS',sans-serif;color:#fff6df}.map-landmark small{margin-top:2px;padding:2px 6px;border-radius:7px;background:#342346d9;color:#dfcbe5;font-size:8px}.map-landmark:hover{filter:drop-shadow(0 6px 6px #223531);transform:translate(-50%,-53%)}.map-home{left:50%;top:49%;width:180px;z-index:6}.map-home .landmark-picture{width:135px;height:105px;border-radius:45% 45% 18% 18%;background-image:url('assets/nook.webp');background-size:290%;background-position:43% 28%;border-width:4px}.map-home strong{font:19px Georgia,serif;padding-inline:16px}.map-home small{font-size:10px}.map-fireflies{left:33%;top:41%;z-index:5}.map-fireflies .landmark-picture{background:radial-gradient(circle,#faffaf 0 6%,#9ee3b699 7% 22%,#3c5e68 48%);font-size:37px}.map-adventure.mystery{filter:blur(.6px) drop-shadow(0 0 15px #e4bcff);opacity:.8;pointer-events:none}.map-adventure.mystery .landmark-picture{width:48px;height:48px;background:#674d7daa;box-shadow:0 0 23px #e5b9ff,0 0 0 4px #4a3658}.map-adventure.mystery strong{font-size:18px;border-radius:50%;padding:0 8px}.map-adventure.mystery small{display:none}.map-adventure.discovered .landmark-picture{width:78px;height:67px}.map-adventure.discovered strong{font-size:12px}.map-dialog .starter-destinations{display:none}@media(max-width:700px){.map-dialog{padding:17px 8px}.map-dialog #academy-map{height:64vh;min-height:470px}.map-landmark{width:88px}.map-landmark .landmark-picture{width:52px;height:46px}.map-landmark strong{font-size:9px;max-width:95px}.map-landmark small{display:none}.map-home .landmark-picture{width:100px;height:78px}.map-home strong{font-size:15px}.map-fireflies{left:34%;top:38%}.map-adventure.discovered .landmark-picture{width:60px;height:52px}.map-adventure.mystery .landmark-picture{width:39px;height:39px}.map-heading>p:last-child{font-size:10px!important}}
.map-landmark .landmark-symbol{display:grid;place-items:center;width:34px;height:34px;border:2px solid #ffe7ae;border-radius:50%;background:#3b294fcf;color:#fff4bd;font:700 21px/1 Georgia,serif;text-shadow:0 2px 4px #1b1028;box-shadow:0 2px 10px #160c25aa}

/* Living Academy map: illustrated world, semantic landmarks and a real camera. */
.map-dialog{width:min(1420px,98vw);height:min(920px,96svh);max-width:98vw;max-height:96svh;padding:18px;overflow:hidden;display:none;grid-template-rows:auto minmax(0,1fr) auto}.map-dialog[open]{display:grid}.map-dialog .dialog-close{z-index:30;background:#281a3ad9;border:1px solid #e8d3b777;border-radius:50%;top:12px;right:12px}.map-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;text-align:left;padding:0 54px 12px 8px}.map-heading h2{font-size:clamp(25px,3vw,38px)}.map-heading>div>p:last-child{margin:4px 0 0!important}.map-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.map-toolbar button{min-height:44px;border:1px solid #d9c19488;border-radius:14px;background:#2d2041dd;color:#fff0d5;padding:8px 13px;font-weight:700}.map-toolbar button:hover{background:#49345f}.map-dialog #map-shell{position:relative;min-height:0;border:2px solid #d9bd8e;border-radius:25px;overflow:hidden;background:#18243f;box-shadow:inset 0 0 40px #0c102799,0 16px 45px #12091d77}.map-dialog #map-viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab;outline:0}.map-dialog #map-viewport.dragging{cursor:grabbing}.map-dialog #academy-world{--map-x:0px;--map-y:0px;--map-scale:1;position:absolute;left:0;top:0;width:3200px;height:1800px;transform-origin:0 0;transform:translate3d(var(--map-x),var(--map-y),0) scale(var(--map-scale));will-change:transform}.map-dialog #academy-world.camera-moving{transition:transform .55s cubic-bezier(.2,.75,.25,1)}.map-painting{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}.map-dialog #map-regions{position:absolute;inset:0}.map-region,.map-side-place{position:absolute;transform:translate(-50%,-50%);min-width:88px;min-height:88px;border:0;background:transparent;color:#fff7df;text-align:center;filter:drop-shadow(0 4px 5px #0e1327);cursor:pointer}.map-region:before{content:"";position:absolute;left:50%;top:50%;width:128px;height:100px;transform:translate(-50%,-50%);border-radius:48%;background:radial-gradient(ellipse,#fff2a944,transparent 68%);opacity:.3;transition:.25s}.map-region .region-beacon{position:relative;display:block;width:32px;height:32px;margin:0 auto;border:3px solid #ffe4a9;border-radius:50%;background:radial-gradient(circle,#fff8cf 0 12%,#dba9ff 13% 30%,#4a356b88 32% 54%,transparent 56%);box-shadow:0 0 10px #fff5b9,0 0 28px #d6a7ff;animation:mapBeacon 3.4s ease-in-out infinite}.map-region:nth-child(3n+2) .region-beacon{animation-delay:-1.1s}.map-region:nth-child(3n) .region-beacon{animation-delay:-2.2s}.map-region .region-plaque,.map-side-place strong,.map-side-place small{display:block;width:max-content;max-width:190px;margin:7px auto 0;padding:5px 10px;border:1px solid #ebd3a777;border-radius:10px;background:#281b3ee8;font:700 15px/1.2 Georgia,serif;text-shadow:0 1px 3px #160d22}.map-region.secret .region-plaque,.map-region.hinted .region-plaque{font-size:13px;color:#e9dbef}.map-region.secret:after,.map-region.hinted:after{content:"";position:absolute;z-index:-1;left:50%;top:50%;width:210px;height:140px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#bba9d55c 0 18%,#7782a366 38%,transparent 70%);filter:blur(9px);animation:mistBreathe 7s ease-in-out infinite}.map-region.hinted .region-beacon{box-shadow:0 0 15px #fff7b9,0 0 42px #e8c2ff}.map-region.open .region-beacon,.map-region.completed .region-beacon{width:42px;height:42px;background:radial-gradient(circle,#fff9c6 0 20%,#76d7bc 22% 44%,#5b3877 46%);box-shadow:0 0 15px #fff6ba,0 0 42px #8df0ce}.map-region.completed .region-beacon:after{content:"★";display:grid;place-items:center;height:100%;color:#fff4b6;font-size:20px}.map-region:hover:before,.map-region.selected:before,.map-region:focus-visible:before{opacity:1;transform:translate(-50%,-50%) scale(1.18)}.map-region:focus-visible{outline:4px solid #a7f1d4;outline-offset:6px;border-radius:22px}.map-side-place{left:39.5%;top:63%;z-index:3}.map-side-place>span{display:grid;place-items:center;width:55px;height:55px;margin:auto;border-radius:50%;background:radial-gradient(#fffcc6,#8ee8ba77 35%,#283d55aa 68%);color:#fff9ad;font-size:32px;text-shadow:0 0 14px #ffffa2}.map-side-place small{font:10px 'Trebuchet MS',sans-serif;margin-top:3px;color:#c7eed7}.map-pan-tip{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:8;border:1px solid #f0d5a477;border-radius:999px;background:#211630d9;color:#fff1d5;padding:9px 15px;font-size:12px;pointer-events:none;animation:tipAway 1s 5s forwards}.map-pan-tip span{display:inline-block;margin-right:5px;animation:panHand 1.6s ease-in-out 2}.map-cloud{position:absolute;width:540px;height:230px;border-radius:50%;background:radial-gradient(ellipse,#d9d3eaa8,transparent 68%);filter:blur(14px);opacity:.45;pointer-events:none;animation:cloudDrift 34s ease-in-out infinite alternate}.cloud-one{left:12%;top:8%}.cloud-two{right:5%;top:21%;animation-delay:-14s}.map-firefly-swarm{position:absolute;color:#fff3a8;text-shadow:0 0 13px #fff7a8;font-size:24px;letter-spacing:18px;animation:fireflyMap 4s ease-in-out infinite;pointer-events:none}.swarm-one{left:24%;top:42%}.swarm-two{left:67%;top:58%;animation-delay:-2.2s}#map-places{position:absolute;right:12px;top:12px;z-index:15;width:min(310px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;padding:10px;border:1px solid #e5cc9c88;border-radius:18px;background:#281d3af2;box-shadow:0 15px 45px #0b071555}#map-places button{display:block;width:100%;min-height:44px;margin:4px 0;border:0;border-radius:11px;background:#ffffff09;color:#f7e9df;text-align:left;padding:9px 12px;font-size:12px}#map-places button:hover,#map-places button:focus-visible{background:#8e6cac55}#map-card{position:absolute;z-index:14;left:18px;bottom:18px;width:min(380px,calc(100% - 36px));padding:18px;border:1px solid #edd49e;border-radius:19px;background:#281c3bee;box-shadow:0 15px 45px #0a061566;backdrop-filter:blur(8px)}#map-card small{color:#d7b8ea;letter-spacing:1.5px;font-size:9px}#map-card h3{margin:7px 30px 5px 0;color:#fff0c9;font:25px Georgia,serif}#map-card p{margin:0 0 12px;color:#e0cede;font-size:12px;line-height:1.5}#map-card .gold-button{width:100%;min-height:44px}.map-card-close{position:absolute;right:7px;top:7px;width:36px;height:36px;border:0;background:none;color:#ebd7e9;font-size:24px}.map-dialog .room-preview-note{margin:8px 0 0;padding:0;border:0}.map-dialog #academy-map{display:none}
@keyframes mapBeacon{50%{transform:translateY(-7px);filter:brightness(1.15)}}@keyframes mistBreathe{50%{opacity:.6;transform:translate(-50%,-50%) scale(1.1)}}@keyframes cloudDrift{to{transform:translateX(120px) translateY(20px)}}@keyframes fireflyMap{50%{transform:translate(16px,-18px);opacity:.55}}@keyframes panHand{50%{transform:translateX(24px)}}@keyframes tipAway{to{opacity:0;visibility:hidden}}
@media(max-width:760px){.map-dialog{height:98svh;padding:9px}.map-heading{display:block;padding:0 42px 8px 4px}.map-heading h2{font-size:23px}.map-heading>div>p:last-child{display:none}.map-toolbar{justify-content:flex-start;margin-top:7px}.map-toolbar button{font-size:10px;padding:6px 9px}.map-dialog #map-shell{border-radius:18px}.map-dialog .room-preview-note{font-size:9px!important}.map-region .region-plaque{font-size:12px}.map-pan-tip{bottom:10px}#map-card{left:10px;bottom:10px;width:calc(100% - 20px)}}
@media(prefers-reduced-motion:reduce){.map-dialog #academy-world.camera-moving{transition-duration:.01ms}.map-cloud,.map-firefly-swarm,.map-region .region-beacon,.map-region:after,.map-pan-tip span{animation:none}}

/* Map v2: native-resolution art, a wider opening camera and unmistakable places. */
.map-dialog #academy-world{width:1672px;height:941px;--map-scale:1}
.map-dialog #map-shell{min-height:520px}
.map-painting{image-rendering:auto}
.map-region{width:144px;height:122px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.map-region:before{width:150px;height:116px}
.map-region .region-beacon{width:38px;height:38px;border-width:2px;background:radial-gradient(circle,#fff8cf 0 15%,#c891ec 17% 33%,#362650d9 35% 55%,transparent 57%)}
.map-region.open .region-beacon,.map-region.completed .region-beacon{width:54px;height:54px;border-color:#fff1b8;background:radial-gradient(circle,#fffbd0 0 18%,#f0c25f 20% 37%,#654283 39% 58%,transparent 60%);box-shadow:0 0 0 5px #332249aa,0 0 28px #ffe59f,0 0 58px #f4cb6faa}
.map-region.open .region-plaque,.map-region.completed .region-plaque{font-size:16px;border-color:#ffe1a8;background:#2a193ff2;color:#fff4cd}
.map-region.secret:after,.map-region.hinted:after{width:164px;height:104px;filter:blur(6px);opacity:.48}
.map-side-place{left:38.9%;top:59.5%}
.map-toolbar #map-zoom-out,.map-toolbar #map-zoom-in{width:44px;padding:4px;font-size:22px}
@media(max-width:760px){.map-dialog #map-shell{min-height:0}.map-region{width:124px;height:108px}.map-region.open .region-beacon,.map-region.completed .region-beacon{width:48px;height:48px}}

/* Let the painted landmarks lead; controls appear only where they help. */
.map-region:before{opacity:.08}.map-region .region-beacon{width:24px;height:24px;border-width:2px;animation:mapBeacon 4.8s ease-in-out infinite}.map-region.open .region-beacon,.map-region.completed .region-beacon{width:34px;height:34px}.map-region .region-plaque{opacity:0;transform:translateY(5px);pointer-events:none;transition:opacity .2s,transform .2s}.map-region.open .region-plaque,.map-region.completed .region-plaque,.map-region:hover .region-plaque,.map-region:focus-visible .region-plaque,.map-region.selected .region-plaque{opacity:1;transform:none}.map-region:nth-child(n+5) .region-beacon{animation:none}.map-region.secret:after,.map-region.hinted:after{opacity:.28}
