/* Child-first navigation. Reuse the approved atlas, type and palette. */
.topbar{position:sticky;top:0;z-index:24;background:#f1e5cfef;backdrop-filter:blur(10px);padding:8px 3%;min-height:62px;flex-wrap:nowrap;}
.header-actions{display:flex;gap:10px;align-items:center;margin-left:auto;}
.current-activity{font-size:13px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.game-menu{position:relative;}
.game-menu>summary,.activity-options>summary,.entry-options>summary,.title-secondary>summary{cursor:pointer;font-weight:650;min-height:44px;padding:12px 14px;list-style-position:inside;}
.game-menu>summary{background:#f8efdd;border:1px solid #b9a181;border-radius:3px;}
.menu-sheet{position:absolute;right:0;top:52px;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 92px);overflow:auto;padding:18px;background:#f8efdd;border:2px solid #382b45;box-shadow:5px 6px 0 #382b4530;}
.topbar .menu-sheet nav{display:grid;grid-template-columns:1fr 1fr;padding:0;gap:8px;}
.menu-sheet .nav{display:flex;align-items:center;text-align:left;min-height:48px;border:1px solid #c7b595;}
.menu-sheet .utilities,.menu-help{display:flex;gap:8px;margin:16px 0;}
.menu-sheet .utilities>*{flex:1;}
.menu-help>*{flex:1;min-height:44px;background:transparent;border:1px solid #c7b595;}
.menu-sheet .profile-block{min-width:0;border-top:1px solid #c7b595;padding-top:16px;}
.menu-sheet .profile-switch{display:flex;}.menu-sheet .profile{min-width:0;flex:1;}.menu-sheet .profile small{display:none;}.menu-sheet .profile:disabled{opacity:.55;}
.menu-sheet .profile-meta{display:flex;justify-content:space-between;gap:8px;margin-top:12px;}
.intro{margin-bottom:18px;}.intro h1{font-size:clamp(27px,3vw,36px);margin:4px 0;}.intro #subheading{margin:5px 0 0;}.intro .eyebrow{margin:0;}
body[data-view="game"] .intro,body[data-view="result"] .intro{display:none;}
body[data-view="game"] main,body[data-view="result"] main{padding-top:18px;}
body[data-view="game"] footer{display:none;}
#panel,#other-view,.world-card{scroll-margin-top:80px;}
.activity-options{border-top:1px solid #c7b595;border-bottom:1px solid #c7b595;padding:0 0 4px;margin:8px 0;}
.activity-options>summary{font-size:14px;padding-inline:0;}
.activity-options[open]>summary{margin-bottom:12px;}
.activity-options .track-choices,.activity-options .typing-projects{margin:14px 0;}
.activity-options .settings-inline{padding:12px 0;}
.launch-summary{font-size:14px!important;font-weight:650;color:#594568;margin:8px 0!important;}
.launch-start{width:100%;margin-bottom:8px;}
.typing-device{padding:10px!important;}.typing-device strong{font-size:13px;}.typing-device span{font-size:12px;}
.entry-options{position:relative;}.entry-options>div{position:absolute;right:0;top:48px;display:grid!important;width:170px;gap:6px;padding:10px;border:1px solid #ab9374;background:#f8efdd;box-shadow:3px 4px 0 #382b4520;}
.title-secondary{display:block;margin-top:18px;padding:0 12px;}.title-secondary>div{display:flex;align-items:center;gap:14px;padding:0 10px 8px;}
#title-continue{margin-top:20px;max-width:85vw;font-size:14px;min-height:48px;padding:12px 18px;}
body[data-view="atlas"] .entry{min-height:100svh;}
body[data-view="atlas"] .entry-top{padding:18px 26px 5px;}
.atlas-content{width:min(100%,920px);margin:auto;padding:0 26px;min-height:0;}
.atlas-heading{margin:4px 0 18px;width:100%;max-width:100%;padding:16px 20px;}
.atlas-heading h1{font-size:clamp(26px,4vw,36px);}.atlas-heading .map-eyebrow{display:none;}
.world-picks{width:100%;padding:0;gap:14px;margin:0;grid-template-columns:1fr 1fr;}
.world-shelf{border:0;box-shadow:none;background:transparent;}
.world-shelf .world-pick{min-height:86px;height:100%;padding:16px;border:2px solid #947d60;box-shadow:0 3px 0 #382b4530;outline:none;background:#f1e5cfef;}
.world-pick[aria-pressed="true"]{border-color:#382b45;background:#f4df9e;box-shadow:0 4px 0 #382b45;}
.world-pick:hover{transform:translateY(-1px);}.world-shelf .world-pick strong{font-size:clamp(18px,2.7vw,25px);line-height:1.15;}.world-pick em,.world-seal,.world-pick>b{display:none!important;}.world-pick small{margin-bottom:7px;}
.atlas-games{width:100%;margin:20px 0 0;background:#f8efddf5;border:1px solid #b39b79;box-shadow:4px 5px 0 #382b4530;}
.atlas-subjects{grid-template-columns:repeat(3,minmax(0,1fr));padding:16px;gap:12px;}
.subject-door{min-height:84px;padding:15px;}.subject-door strong{font-family:Bitter,Georgia,serif;font-size:17px;}.subject-door small{font-size:12px;}
.bridge-invite{margin-top:18px;min-height:52px;}.bridge-invite small{display:none;}
body[data-view="atlas"] .entry-bottom{margin-top:18px;}.geo-modes .destination{min-height:88px;}
.song-steps-help{margin-bottom:15px;}.song-practice>.panel-kicker{margin-top:0;}.song-steps{margin:8px 0;}.song-times summary{font-size:13px;}.song-choice{margin-bottom:14px;}.song-choice summary{font-size:14px;}.song-layout .song-media{margin-top:12px;}.song-heading{margin-bottom:12px;}.song-heading .pill{display:none;}
@media(max-width:1000px){
 .adventure-layout{grid-template-columns:1fr;}
 body[data-view="home"][data-yard="false"][data-scene="island"] #panel{grid-row:1;}
 body[data-view="home"][data-yard="false"][data-scene="island"] .world-card{grid-row:2;}
 body[data-view="home"][data-yard="false"][data-scene="island"] .world-card #world{min-height:300px;height:300px;}
 body[data-view="game"]:not([data-phase="explore"]):not([data-phase="walking"]) #panel,body[data-view="result"] #panel{grid-row:1;}
 body[data-view="game"]:not([data-phase="explore"]):not([data-phase="walking"]) .world-card,body[data-view="result"] .world-card{grid-row:2;}
 body[data-view="game"]:not([data-phase="explore"]):not([data-phase="walking"]) .world-card #world,body[data-view="result"] .world-card #world{height:260px;min-height:260px;}
 .mission-panel{padding:20px;}
 .song-layout{gap:14px;}.song-practice>.panel-kicker{display:none;}
}
@media(max-width:740px){
 .topbar{padding:7px 12px;gap:8px;}.brand span{display:none;}.brand img{width:30px;height:30px;}.header-actions{gap:7px;}.current-activity{font-size:11px;}.map-nav{padding:10px;font-size:12px;min-height:44px;}.game-menu>summary{padding:11px;font-size:12px;}
 main{padding:18px 16px;}.intro #subheading{display:none;}.intro{margin-bottom:16px;}
 .atlas-content{padding:0 18px;}.atlas-heading{margin:8px 0 14px;padding:13px;}.atlas-heading>p:last-child{display:none;}.world-picks{gap:10px;}.world-shelf .world-pick{padding:12px;min-height:80px;}.world-pick small{font-size:9px;letter-spacing:.3px;}.atlas-games{margin-top:16px;}.atlas-subjects{grid-template-columns:1fr 1fr;padding:12px;gap:9px;}.subject-door{min-height:78px;padding:11px;gap:9px;}.subject-door strong{font-size:15px;}.subject-door small{font-size:11px;line-height:1.35;}.subject-door .glyph{width:20px;height:20px;}
 .bridge-invite{width:100%;margin-top:14px;}.study-wrap{padding:14px;}.song-studio{padding:14px;}.song-heading h2{font-size:28px;}.song-heading p:not(.panel-kicker){font-size:13px;}.song-studio .study-actions button{flex-basis:120px;}
}
@media(max-width:380px){.current-activity{max-width:82px;}.header-actions{gap:4px;}.atlas-content{padding:0 14px;}.subject-door small{font-size:10px;}.subject-door .glyph{display:none;}.world-shelf .world-pick strong{font-size:18px;}}
