/* Keep dialogue stable as the visible welcome types in. Its full accessible copy is separate. */
#guide-heading,#guide-copy{white-space:pre-line;}

/* The official mark stays vector-sharp; only the cave raster is pixelated. */
.cave-art{position:relative;height:100%}
#hero-head{position:absolute;left:var(--hero-x);top:var(--hero-y);width:4.55078125%;height:auto;transform:translate(-50%,-100%);pointer-events:none;image-rendering:auto}
@media(max-width:700px){.cave-art{height:auto}}
#fire-ouch{position:absolute;z-index:2;left:var(--ouch-x);top:var(--ouch-y);transform:translate(-50%,-100%);padding:.12em .35em;color:#ffebb6;background:#25130d;border:1px solid #b96f43;border-radius:3px;font:700 clamp(12px,1.6cqw,17px)/1.25 var(--mono);white-space:nowrap;pointer-events:none}

/* Non-modal invitation: the entrance remains playable without sound. */
.sound-prompt[hidden]{display:none}
.sound-prompt{position:absolute;z-index:19;top:calc(100% + 9px);right:0;display:grid;grid-template-columns:auto 1fr;gap:.72rem;width:min(330px,100%);padding:.92rem 1rem;border:1px solid #b48850;border-radius:6px;background:#221a12f5;color:#f6e7d3;box-shadow:0 10px 25px #0007}
.sound-prompt-symbol{font:700 1.2rem/1 var(--serif);display:grid;place-items:center;width:31px;height:31px;border:1px solid #785b38;border-radius:4px;color:#ffd68f;background:#3c2a18}
.sound-prompt h3{margin:0 0 .09rem;font:700 1.14rem/1.15 var(--serif)}
.sound-prompt p{margin:0;color:#d5c4ab;font:400 .895rem/1.26 system-ui,sans-serif}
.sound-prompt-actions{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.65rem}
.sound-prompt-actions button{padding:.37rem .58rem;background:transparent;border:1px solid #a88455;border-radius:4px;color:#f4e2c5;font:600 .79rem/1.22 system-ui,sans-serif;cursor:pointer}
.sound-prompt-actions button:first-child{background:#f0c887;color:#251708;border-color:#f0c887}
.sound-prompt-actions button:focus-visible{outline:2px solid #fbe2ba;outline-offset:3px}
@media(max-width:700px){.sound-prompt{width:min(308px,100%)}}
@media(max-width:410px){body:not(.grove-page) .adventure-section .story-toolbar{top:103px}}

/* Space for the four-link recruiter navigation on wrapped, narrow screens. */
@media(max-width:410px){body:not(.grove-page) .masthead .main-nav{gap:8px;flex-wrap:wrap}body:not(.grove-page) .adventure-section .story-toolbar{top:103px}body.lit:not(.grove-page) #sound-prompt{display:none}}
@media(max-width:370px){body.lit:not(.grove-page) .adventure-section{padding-top:216px}body:not(.grove-page) .masthead .main-nav{font-size:10px;gap:8px}}

/* Review pass, Nov 2026 */
.portal-hint .hint-touch{display:none}
@media(hover:none),(pointer:coarse){.portal-hint .hint-keys{display:none}.portal-hint .hint-touch{display:inline}}
.darkness>.opening{text-align:center}
@media(min-width:701px){
 body:not(.grove-page) .adventure-section .viewport{padding-top:140px;align-items:center}
 body:not(.grove-page) .adventure-section .art-stage{height:auto;aspect-ratio:4/3;width:min(100%,calc((100svh - 140px)*4/3))}
 body:not(.grove-page) .adventure-section .darkness{padding-top:140px}
}
