.world{position:relative;overflow:hidden;isolation:isolate}
/* Original prototype field atlas; unfinished destinations remain inert roadmap markers. */
.atlas-scroll{overflow-x:auto;border-radius:22px;margin:20px 0 8px}
.world.prototype-atlas{height:auto;aspect-ratio:1000/620;min-width:760px;border:3px solid #987132;border-radius:22px;background:#a9ccc3;box-shadow:inset 0 0 0 5px #eee0ae}
.atlas-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.atlas-pin{position:absolute;transform:translate(-50%,-35%);display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;width:142px;color:#233e32;text-decoration:none;font:600 14px/1.15 system-ui}
.atlas-pin.first{left:27%;top:63%}.atlas-pin.second{left:24%;top:31%}
.atlas-medallion{display:grid;place-items:center;width:48px;height:48px;border:3px solid #38774c;border-radius:50%;background:#e8edda;font:36px Georgia;color:#38774c}
.atlas-pin strong{padding:4px 8px;background:#fff9e7;border:1px solid #987132;border-radius:13px;font:inherit}
.atlas-pin small{padding:2px 7px;border-radius:8px;background:#fff9e7;font:600 11px system-ui}
.atlas-pin.in-dev .atlas-medallion,.atlas-pin.locked .atlas-medallion{border-style:dashed;border-color:#8c9585;color:#6b7467;background:#e6e9df}
.atlas-pin.in-dev strong,.atlas-pin.in-dev small{background:#e6e9df;color:#52635a}
.atlas-pin.in-dev{cursor:default}.atlas-pin:focus-visible{outline:3px solid #987132;outline-offset:5px;border-radius:12px}
.prototype-atlas .map-caption{bottom:10px;left:22px;margin:0;font:italic 17px Georgia;color:#315f49}
.roadmap-note{color:var(--surface-soft);font-size:13px}.migration-roadmap{padding:20px;margin:20px 0;background:var(--surface);border-radius:22px}.migration-roadmap summary{cursor:pointer;font-weight:700}.migration-roadmap ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;padding-left:20px}.migration-roadmap li span{display:inline-block;font-size:12px;color:#536b40;margin-left:6px}

body:has(.world) .admin-entry a{color:var(--surface-soft)}

.atlas-pin.third{left:54%;top:22%}

/* Map-first shell. The atlas pans within the space between the two control bars. */
body.map-screen{height:100dvh;overflow:hidden;padding:0!important;display:flex;flex-direction:column;background:#a9ccc3}
.map-screen .map-menu{flex:none;min-height:60px;padding:calc(6px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left));gap:8px;background:#143727;border:0;z-index:2}
.map-screen .map-menu nav{display:flex;align-items:center;gap:6px;margin-left:auto}
.map-screen .map-menu a{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:44px;padding:8px;color:#e2e9d6;font:500 14px/1.2 system-ui;text-decoration:none;border:0;border-radius:8px;background:transparent;white-space:nowrap}
.map-screen #family-link{justify-content:flex-start;min-width:44px;max-width:35%;overflow:hidden}
.map-screen #learner-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.map-screen .map-menu a:hover{background:#ffffff0d}.map-screen .map-menu a:focus-visible{outline:2px solid #efc975;outline-offset:-2px}
.map-screen .compact-wallet{display:flex;align-items:center;gap:4px;min-width:0;max-width:none;color:#b9c8af;font:500 13px/1 system-ui;white-space:nowrap}
.map-screen .compact-wallet img{width:18px;height:18px;opacity:.75;object-fit:contain}.map-screen .compact-wallet strong{font:inherit;font-variant-numeric:tabular-nums}
.map-screen main{position:relative;flex:1;min-height:0;width:100%;max-width:none;margin:0 0 calc(61px + env(safe-area-inset-bottom));padding:0;display:flex;flex-direction:column}
.map-screen .atlas-scroll{flex:1;min-height:0;overflow:auto;margin:0;border-radius:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.map-screen .world.prototype-atlas{width:max(760px,100%,calc((100dvh - 121px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*1.613));min-width:0;height:auto;aspect-ratio:1000/620;border:0;border-radius:0;box-shadow:none}
.map-screen .atlas-pin[href]{min-width:44px;min-height:44px;touch-action:manipulation}
.map-screen .map-notice{position:absolute;left:12px;right:12px;bottom:12px;z-index:3;background:#fffbea;color:#233e32;border-radius:14px;padding:12px;box-shadow:0 3px 20px #0002;font-size:13px}
.map-screen .map-notice[hidden]{display:none}.map-screen .map-notice #status{color:#233e32;min-height:0}.map-screen .map-tools{gap:14px}.map-screen .map-tools a{color:#285c43;min-height:44px;display:flex;align-items:center}
.map-screen #local-tools{position:absolute;bottom:0;left:0;right:0;z-index:4;margin:0;max-height:35vh;overflow:auto}
@media(max-width:360px){.map-screen .map-menu{gap:2px;padding-left:5px;padding-right:5px}.map-screen .map-menu nav{gap:2px}.map-screen .map-menu a{font-size:13px;padding:6px}.map-screen #family-link{max-width:28%}}

.map-screen .map-menu [hidden]{display:none}

.atlas-pin.fourth{left:76%;top:63%}

.atlas-pin.fifth{left:57%;top:77%}

.atlas-pin.sixth{left:53%;top:48%}

.atlas-pin.mole{left:43%;top:84%}

/* Illustrated treasure atlas. Positions match clearings in treasure-atlas-v1.webp. */
body.map-screen{background:#0b7075}
.map-screen .world.prototype-atlas{width:max(900px,100%,calc((100dvh - 121px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*1.3333));aspect-ratio:4/3;background:#117d80}
.atlas-art{object-fit:fill}
.atlas-pin{width:184px;display:grid;grid-template-columns:48px 1fr;gap:0;align-items:center;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 3px #38260855)}
.atlas-medallion{grid-row:1;width:50px;height:50px;z-index:1;border:3px solid #f2ce7b;outline:1px solid #835417;background:radial-gradient(circle at 35% 25%,#739b54,#305c3d);color:#fff1b4;font-size:31px;box-shadow:inset 0 0 0 2px #41653d}
.atlas-pin strong{min-height:51px;display:flex;align-items:center;justify-content:center;margin-left:-8px;padding:7px 10px 7px 13px;border:1px solid #9a662b;border-radius:5px 13px 6px 3px;background:linear-gradient(100deg,#e6bc70,#fff0c3 25%,#f7df9e 80%,#d7ab61);color:#382b19;font:700 18px/1.03 Georgia,serif;box-shadow:inset 0 0 0 2px #fff2c04d}
.atlas-pin small{grid-column:1/-1;justify-self:center;margin-top:5px;background:#fff2d9ed;color:#4d462e;border:1px solid #ae8b55;font:600 10px/1.3 system-ui;padding:3px 8px;border-radius:12px}
.atlas-pin.completed small{background:#234f3e;color:#fff4cd;border-color:#dcc586}
.atlas-pin.locked .atlas-medallion,.atlas-pin.in-dev .atlas-medallion{border-style:solid;border-color:#dfcda6;background:#6d7566;color:#e9e3ca;box-shadow:inset 0 0 0 2px #4f5b50}
.atlas-pin.locked strong{background:linear-gradient(100deg,#d5c9a6,#eee5ca);color:#555b4c}
.atlas-pin.next-destination .atlas-medallion{outline:3px solid #fff0ac;box-shadow:0 0 0 6px #b8792d,inset 0 0 0 2px #41653d}
.atlas-pin[href]:hover{filter:drop-shadow(0 5px 5px #38260888)}
.atlas-pin.first{left:21%;top:59%}.atlas-pin.second{left:29%;top:33%}.atlas-pin.third{left:61%;top:29%}.atlas-pin.fourth{left:82%;top:56%}.atlas-pin.fifth{left:53%;top:84%}.atlas-pin.sixth{left:51%;top:53%}.atlas-pin.mole{left:20%;top:88%}
.atlas-pin.in-dev{width:120px;display:flex;opacity:.85;filter:none}.atlas-pin.in-dev .atlas-medallion{display:none}.atlas-pin.in-dev strong{font:italic 13px Georgia;min-height:0;background:#fff0ccdf;margin:0;padding:5px 9px}.atlas-pin.in-dev small{font-size:9px;margin:0}
.map-screen .map-menu{background:#173e37;border-bottom:1px solid #d4bc7a55}
@media(min-width:1000px){.map-screen .atlas-scroll{background:radial-gradient(ellipse,#218b8e,#104e52)}.map-screen .world.prototype-atlas{width:min(100%,calc((100dvh - 121px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*1.3333));margin:auto}}

/* Quiet landmarks reveal their names only when explored. */
.map-screen .atlas-pin{width:48px;height:48px;min-width:48px;min-height:48px;display:flex;align-items:center;justify-content:center;filter:none;z-index:1;cursor:pointer}
.map-screen .atlas-pin .atlas-medallion{display:grid;width:38px;height:38px;font-size:24px;border:1px solid #fff0bdb3;outline:0;background:#234c3f99;color:#fff2c9;box-shadow:0 2px 5px #132b2940;backdrop-filter:blur(3px)}
.map-screen .atlas-pin.locked .atlas-medallion,.map-screen .atlas-pin.in-dev .atlas-medallion{background:#46585280;color:#fff4d3b3;border-color:#eee3c080}
.map-screen .atlas-pin.next-destination .atlas-medallion{outline:2px solid #f5d48ca6;outline-offset:3px;box-shadow:0 2px 5px #132b2940}
.map-screen .atlas-pin strong,.map-screen .atlas-pin small,.map-screen .pin-enter{position:absolute;left:50%;transform:translateX(-50%);width:max-content;max-width:190px;margin:0;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .12s;background:#173e37e8;color:#fff4d6;border:0;border-radius:7px;box-shadow:none;backdrop-filter:blur(6px);text-shadow:none}
.map-screen .atlas-pin strong{top:49px;min-height:0;padding:7px 11px;font:600 15px/1.15 Georgia,serif}
.map-screen .atlas-pin small{top:80px;padding:4px 8px;font:500 10px/1.2 system-ui}
.map-screen .pin-enter{top:101px;min-height:44px;min-width:88px;padding:13px 12px;font:600 12px/1.2 system-ui;text-decoration:underline;text-underline-offset:3px}
.map-screen .atlas-pin:is(:focus-visible,.selected){z-index:5}
.map-screen .atlas-pin:is(:focus-visible,.selected) :is(strong,small,.pin-enter){visibility:visible;opacity:1;pointer-events:auto}
@media(hover:hover){.map-screen .atlas-pin:hover{z-index:5}.map-screen .atlas-pin:hover :is(strong,small,.pin-enter){visibility:visible;opacity:1;pointer-events:auto}}
/* Bottom-edge bonus markers open upward, clear of the navigation bar. */
.map-screen .atlas-pin:is(.mole,.fifth,.in-dev) strong{top:auto;bottom:96px}.map-screen .atlas-pin:is(.mole,.fifth,.in-dev) small{top:auto;bottom:74px}.map-screen .atlas-pin:is(.mole,.fifth,.in-dev) .pin-enter{top:auto;bottom:30px}
@media(prefers-reduced-motion:reduce){.map-screen .atlas-pin :is(strong,small,.pin-enter){transition:none}}
.map-screen .atlas-pin{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.map-screen .atlas-pin:not(.mole,.fifth,.in-dev) strong{top:46px}.map-screen .atlas-pin:not(.mole,.fifth,.in-dev) small{top:77px}.map-screen .atlas-pin:not(.mole,.fifth,.in-dev) .pin-enter{top:97px}

/* Keep local-only tools out of the map hit area until explicitly opened. */
.map-screen #local-tools{position:absolute;top:8px;bottom:auto;left:8px;right:auto;width:max-content;max-width:calc(100% - 16px);max-height:65vh;background:#f8f0dc;color:#244334;border:1px solid #9b986d;border-radius:9px;box-shadow:0 2px 8px #0002;font:13px/1.4 system-ui}
.map-screen #local-tools summary{cursor:pointer;min-height:44px;padding:12px;list-style-position:inside}
.map-screen #local-tools[open]{width:300px}.map-screen .local-tools-body{padding:0 12px 12px}.map-screen .local-tools-body label{display:block}.map-screen .local-tools-body select{width:100%;margin:6px 0}.map-screen .local-tools-body button{width:100%;margin:6px 0}

/* A single obvious next step, without changing the illustrated atlas. */
.map-screen .atlas-pin.next-destination{width:64px;height:64px;min-width:64px;min-height:64px;z-index:6}
.map-screen .atlas-pin.next-destination .atlas-medallion{width:54px;height:54px;font-size:30px;background:#265d40;color:#fff6d5;border:3px solid #ffe08a;outline:3px solid #28573c;outline-offset:2px;box-shadow:0 0 0 7px #fff2baaa,0 4px 12px #102b2499}
.map-screen .atlas-pin.next-destination::before{content:'';position:absolute;inset:2px;border:3px solid #ffe08a;border-radius:50%;pointer-events:none;animation:destination-pulse 1.5s ease-out infinite}
.map-screen .atlas-pin.next-destination::after{content:'↓';position:absolute;bottom:calc(100% + 2px);left:50%;margin-left:-18px;width:36px;height:38px;font:900 35px/38px system-ui;color:#ffe08a;text-shadow:0 2px 2px #173e37,2px 0 #173e37,-2px 0 #173e37;pointer-events:none;animation:destination-pointer 1.5s ease-in-out infinite}
.map-screen .next-cue{position:absolute;top:60px;left:50%;transform:translateX(-50%);padding:4px 10px;border:1px solid #28573c;border-radius:9px;background:#ffe08a;color:#163e2d;white-space:nowrap;font:800 13px/1.2 system-ui;box-shadow:0 2px 5px #102b2444;pointer-events:none}
.map-screen .atlas-pin.next-destination strong{top:89px;bottom:auto;visibility:visible;opacity:1;pointer-events:auto;max-width:210px;background:#173e37f5;font-size:15px}
.map-screen .atlas-pin.next-destination small{top:120px;bottom:auto}.map-screen .atlas-pin.next-destination .pin-enter{top:140px;bottom:auto}
/* Lower-edge destinations keep the name and hover actions above the pin. */
.map-screen .atlas-pin.next-destination.fifth strong{top:auto;bottom:110px}.map-screen .atlas-pin.next-destination.fifth small{top:auto;bottom:88px}.map-screen .atlas-pin.next-destination.fifth .pin-enter{top:auto;bottom:44px}
.map-screen .atlas-pin.locked:not(.next-destination) .atlas-medallion,.map-screen .atlas-pin.in-dev .atlas-medallion{opacity:.5;filter:grayscale(1)}
.map-screen .atlas-pin.locked::before{content:'🔒';position:absolute;right:0;bottom:0;font-size:12px;z-index:2;pointer-events:none}
.map-screen .atlas-pin.locked.next-destination::before{content:'';right:2px;bottom:2px;z-index:0}
.map-screen .map-menu #continue{background:#f6d27d;color:#163e2d;padding:11px 16px;font-weight:750;white-space:normal;text-align:center;max-width:320px;box-shadow:0 2px 6px #0002}
@keyframes destination-pulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(1.55);opacity:0}}
@keyframes destination-pointer{0%,100%{transform:translateY(-6px)}50%{transform:translateY(0)}}
@media(max-width:700px){
 .map-screen:has(#continue:not([hidden])) main{margin-bottom:calc(135px + env(safe-area-inset-bottom))}
 .map-screen .map-menu #continue{position:fixed;bottom:calc(69px + env(safe-area-inset-bottom));left:10px;right:10px;max-width:none;min-height:56px;border:2px solid #fff0b5;border-radius:13px;font-size:15px;z-index:35}
 .map-screen .map-notice{bottom:8px}
}
@media(prefers-reduced-motion:reduce){.map-screen .atlas-pin.next-destination::before{animation:none;transform:scale(1.12);opacity:1}.map-screen .atlas-pin.next-destination::after{animation:none}}
