.nh-map-tabs,.nh-filters,.nh-pages,.nh-panel-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.nh-map-tabs{margin:0 0 12px}.nh-map-tabs button[aria-pressed=true],.nh-filters button[aria-pressed=true]{background:#365e47;color:#fff9e3}.nh-map{display:grid;gap:16px;color:#294b3e}.nh-map[hidden],.nh-adventure[hidden]{display:none!important}.nh-map *{min-width:0;box-sizing:border-box}.nh-map button,.nh-door button,.nh-panel-links button{min-height:44px}.nh-map-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.nh-map-head h1{font-size:clamp(22px,3vw,30px);margin:6px 0}.nh-map-head p{margin:0;font-size:15px;line-height:1.6}.nh-map-head>button{flex:none}.nh-village{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:24px;border:1px solid #cbd7ac;border-radius:24px;background:linear-gradient(#eaf0dcdf,#eef0d6ef),url('/assets/forest.webp') center/cover}.nh-house{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:200px;padding:12px;background:#fffdf2d9;border:1px solid #c6d3aa;border-radius:55% 55% 18px 18px;color:#294b3e}.nh-house:nth-child(even){background:#f7edcced}.nh-house:hover,.nh-house:focus-visible{outline:3px solid #b8a060;outline-offset:3px}.nh-house strong{font-size:16px;max-width:100%;overflow-wrap:anywhere}.nh-house>span:last-child{font-size:13px}.nh-art{display:block;width:92px;height:92px;flex:none;border-radius:50%;background:#dfebcc}.nh-art .ex-illustration{display:block;width:100%;height:100%}.nh-style-1{background:#f2df9e}.nh-style-2{background:#cce4de}.nh-pages{justify-content:center}.nh-empty{grid-column:1/-1;text-align:center;padding:28px;max-width:620px;margin:auto}.nh-empty p{line-height:1.7}.nh-door{display:flex;flex-direction:column;align-items:center;gap:12px;padding:12px}.nh-door h3,.nh-door p{margin:0;text-align:center}.nh-door p{line-height:1.65}.nh-door-actions{width:100%;display:grid;gap:12px}.nh-door label{display:grid;gap:8px}.nh-error{color:#9a4931}.nh-preview{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px;background:#eef1dc;border-radius:16px}.nh-preview small{line-height:1.6;text-align:center}.nh-check{flex-direction:row!important;align-items:center;gap:12px!important;min-height:44px}.nh-check input{width:22px;height:22px;flex:none}.nh-blocked{display:flex;gap:12px;justify-content:space-between;align-items:center}.nh-help{border:1px solid #d6dfc2;background:#f7f7e9;padding:12px;border-radius:14px}.nh-help summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-weight:700;line-height:1.6}.nh-help ol{padding-left:26px;margin:12px 0 0;display:grid;gap:16px}.nh-help li{font-size:16px;line-height:1.8;padding-left:4px}.nh-welcome{background:#edf2dd;padding:12px;border-radius:12px}.hs-tools{flex-wrap:wrap}.nh-panel-links{border-top:1px solid #d6dfc2;padding-top:12px;margin-top:4px}.nh-help:focus-within{border-color:#7c9864}
.hs-audio{flex:none;display:flex;justify-content:flex-end}.hs-audio .task-music{display:flex;gap:8px;flex-wrap:wrap}.hs-audio .task-music button{min-height:44px;font-size:13px;padding:8px 10px}.nh-guide-audio{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.hs-immersive .hs-audio{display:none}
@media(max-width:1099px){.nh-village{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px}.nh-house{min-height:176px}.nh-art{width:80px;height:80px}}
@media(max-width:599px){.nh-map-head{align-items:flex-start}.nh-map-head>button{padding:10px;font-size:13px}.nh-village{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:12px}.nh-house{min-height:165px;border-radius:40% 40% 16px 16px;padding:12px 8px}.nh-art{width:72px;height:72px}.nh-house strong{font-size:14px}.nh-map-head h1{font-size:22px}.nh-map-head p{font-size:14px}.nh-empty{padding:12px}.nh-help li{font-size:16px}.hs-tools button{flex:1 1 auto}.hs-drawer:has(.nh-help){bottom:12px;top:58px;padding-bottom:max(16px,env(safe-area-inset-bottom))}}
.nh-art img{display:block;width:100%;height:100%;object-fit:contain}.nh-house .nh-art{width:108px;height:108px;background:transparent}.nh-house:nth-child(even){transform:translateY(8px)}
.nh-house:has(.nh-style-0){background:#f6f8e9ed}.nh-house:has(.nh-style-1){background:#f7edcced}.nh-house:has(.nh-style-2){background:#e0eee6ed}

/* Entry and sound are one stable action row on every device. */
html:not(.hs-immersive) .hs-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center}
html:not(.hs-immersive) .hs-top h1{text-align:center}
.hs-top-actions{display:flex;align-items:center;gap:8px;min-width:0}
.hs-top-actions .hs-audio{min-width:0}
.hs-top-actions .task-music{display:flex;flex-wrap:nowrap;gap:8px;min-width:0}
.hs-top-actions button{white-space:nowrap;min-height:44px!important}
.hs-top-actions [data-music-toggle]{max-width:150px;overflow:hidden;text-overflow:ellipsis}
html.hs-immersive .hs-top-actions{display:contents}
html[data-client].hs-immersive .hs-top-actions .hs-audio{display:none!important}
html.hs-immersive .hs-top [data-hs=fullscreen]{order:-1}
@media(max-width:900px){
 html:not(.hs-immersive) .hs-top{grid-template-columns:auto minmax(0,1fr)}
 html:not(.hs-immersive) .hs-top-actions{grid-column:1/-1;justify-self:end}
}
@media(max-width:600px){
 html:not(.hs-immersive) .hs-top-actions{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;justify-self:stretch}
 .hs-top-actions .hs-audio{display:block}
 .hs-top-actions .task-music{display:grid;grid-template-columns:minmax(0,1fr) auto auto;width:100%}
 .hs-top-actions button{font-size:12px!important;padding:8px 6px!important;min-width:0}
 .hs-top-actions [data-music-toggle]{max-width:none;width:100%}
}

/* Reading a guide is a distinct modal state, not another game toolbar. */
.hs-panel-shade{position:fixed;inset:0;background:#193d30a3;z-index:200;touch-action:none}
.hs-panel-shade[hidden]{display:none}
html.hs-panel-open body{overflow:hidden!important}
html[data-client] .hs-shell .hs-drawer{position:fixed;inset:16px 12px;width:min(560px,calc(100% - 24px));height:fit-content;max-height:calc(100dvh - 32px);margin:auto;z-index:201;transform:none;box-sizing:border-box;overscroll-behavior:contain}
html[data-client] .hs-shell .hs-drawer-head{flex:none;top:-16px;gap:12px;min-height:52px}
html[data-client] .hs-shell .hs-drawer-head button{flex:none}
html:not(.hs-immersive)[data-view=home]:has(.hs-editing) #game{height:auto;min-height:0;overflow:visible}
html:not(.hs-immersive) .hs-editing{height:auto;gap:12px}
html:not(.hs-immersive) .hs-editing .hs-scene{flex:none;height:auto;min-height:0}
html:not(.hs-immersive) .hs-editing .voxel-home{height:auto;gap:12px}
html:not(.hs-immersive) .hs-editing .voxel-stage{flex:none;height:clamp(240px,42dvh,460px)}
html:not(.hs-immersive) .hs-editing .voxel-toolbar{flex:none;position:static;gap:12px}
html:not(.hs-immersive) .hs-tools{flex-shrink:0;flex-wrap:wrap;gap:8px;position:static}
