/* Quiet world feedback, approved pine/wood palette and parchment dialogue. */
#game #navigation-status{left:50%;right:auto;bottom:250px;transform:translateX(-50%);width:max-content;max-width:120px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;z-index:10;font-size:12px;line-height:20px}
#game #navigation-cancel{position:relative;isolation:isolate;display:block;min-width:80px;width:auto;min-height:44px;height:44px;padding:0 12px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#ead9b5;font-size:12px;line-height:20px;white-space:nowrap;text-shadow:0 1px 2px #000}
#game #navigation-cancel:before{content:'';position:absolute;inset:8px 0;z-index:-1;border-radius:4px;background:rgba(6,23,25,.6);pointer-events:none}
#game #navigation-cancel:hover:before{background:rgba(6,23,25,.8)}
#game #navigation-cancel:focus-visible{outline:2px solid #d9b878;outline-offset:-4px}
/* Bound the image explicitly; stock is separate from the unavailable artwork. */
#game .hud-tools #torch-button{opacity:1}
#game #torch-button>[data-icon]{position:absolute;inset:8px 10px 12px;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;pointer-events:none}
#game #torch-button .torch-glyph{display:block;width:100%;height:100%;max-width:100%;max-height:100%;filter:none;overflow:hidden}
#game #torch-button .torch-glyph img{display:block;width:100%;height:100%;object-fit:contain}
#game #torch-button:disabled>[data-icon]{opacity:.38}
#game #torch-button:disabled{cursor:default}
#game #wood-label{position:absolute;z-index:2;right:3px;bottom:2px;display:grid;place-items:center;min-width:20px;min-height:20px;padding:0 4px;border:1px solid #ad8a56;border-radius:4px;background:#0a2025;color:#f3dfac;font:600 11px/18px "PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;font-variant-numeric:tabular-nums;text-shadow:none;pointer-events:none}
/* Scope ink to the light speech surface: legacy NPC paragraphs use light text. */
#sheet #npc-navigation:not(.overflowing)>button{display:none}
#sheet #npc-tabs button[aria-pressed=true]{background:#28564a;border-color:#d9b878;color:#fff0c6}
#npc-dialogue .npc-dialogue-hero{grid-template-columns:132px minmax(0,1fr);gap:20px;align-items:center;margin:0 0 18px;padding:8px 0 18px;border-bottom:1px solid #a38b5940}
#npc-dialogue .npc-illustration{width:132px;height:144px;border:0;border-radius:0;background:transparent;flex:none}
#npc-dialogue .npc-illustration img{width:768px;height:192px;left:-30px;top:-24px}
#npc-dialogue .npc-speech{position:relative;min-width:0;width:100%;padding:20px 22px;background:#e6d5b1;border:1px solid #b99b66;border-radius:7px 7px 7px 2px;box-shadow:0 2px 3px #0004;color:#332b22;text-shadow:none}
#npc-dialogue .npc-speech h3{display:block;margin:0 0 10px;padding:0;border:0;color:#58432e;font-size:19px;line-height:1.4;text-shadow:none}
#npc-dialogue .npc-speech h3:before,#npc-dialogue .npc-speech h3:after{display:none}
#npc-dialogue .npc-speech p{margin:0;color:#332b22;font-size:16px;line-height:1.85;text-shadow:none;overflow-wrap:anywhere}
#npc-dialogue .npc-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;margin:0}
#npc-dialogue .npc-actions button{width:100%;min-height:46px;font-size:15px;padding:8px 14px;border-color:#927345;background:#15352f;color:#eee0bd}
#npc-dialogue .npc-actions button:hover{background:#21473b;border-color:#d0aa69}
@media(min-width:1000px) and (min-height:650px){
 #panel-modal:has([data-view=town][data-service=dialogue]){width:min(680px,calc(100vw - 48px));height:fit-content;min-height:0;max-height:calc(var(--visible-height) - 48px)}
 #panel-modal:has([data-view=town][data-service=dialogue]) #sheet{height:auto;max-height:calc(var(--visible-height) - 48px);padding-bottom:16px}
 #sheet[data-view=town][data-service=dialogue] .sheet-scroll{flex:0 1 auto;max-height:calc(var(--visible-height) - 250px);padding-top:16px}
}
@media(max-width:599px){
 #game #navigation-status{bottom:250px}
 #npc-dialogue .npc-dialogue-hero{gap:10px;padding-top:0}
 #npc-dialogue .npc-illustration{height:120px}
 #npc-dialogue .npc-illustration img{top:-36px}
 #npc-dialogue .npc-speech{padding:17px 18px}
 #npc-dialogue .npc-actions{grid-template-columns:1fr}
}
@media(max-height:599px){#game #navigation-status{bottom:192px}}
