/* Shared action palette: readable on both parchment and dark dialogue panels. */
#overlay :is(.actions,.diaryActions)>button,
#overlay .panel>button,
#overlay .storyText button,
#overlay .inventory button,
#overlay .storyBookPage button,
#overlay .muteControl {
 color:#fff3d6;background:#173d46;border-color:#c0a26b;text-shadow:none;
}
#overlay :is(.actions,.diaryActions)>button.secondary,
#overlay .panel>button.secondary,
#overlay .storyText button.secondary,
#overlay .inventory button.secondary,
#overlay .storyBookPage button.secondary {
 color:#49351f;background:#ead5ab;border-color:#ae8750;
}
#overlay :is(.actions,.diaryActions)>button:hover,
#overlay .panel>button:hover,
#overlay .storyText button:hover,
#overlay .inventory button:hover,
#overlay .storyBookPage button:hover,
#overlay .muteControl:hover {color:#fff3d6;background:#24545b}
#overlay :is(.actions,.diaryActions)>button.secondary:hover,
#overlay .panel>button.secondary:hover,
#overlay .storyText button.secondary:hover,
#overlay .inventory button.secondary:hover,
#overlay .storyBookPage button.secondary:hover {color:#49351f;background:#fff0cc}
#overlay .storyText .answers button {color:#49351f;background:#f0dfbb}
#overlay .storyText .answers button:hover {color:#49351f;background:#fff0cc}
#overlay button:focus-visible {outline:3px solid #d79e35;outline-offset:3px;box-shadow:0 0 0 6px #142f43}
#overlay button:disabled {cursor:default;filter:saturate(.5)}
#toast {top:auto;bottom:calc(var(--dock-space,88px) + 12px);height:auto;min-height:0;max-height:none;width:max-content;max-width:min(480px,calc(100vw - 32px));box-sizing:border-box;padding:10px 16px;pointer-events:none;line-height:1.4;z-index:45}
#routeHint {position:fixed;left:50%;bottom:calc(var(--dock-space,88px) + 12px);transform:translateX(-50%);max-width:calc(100vw - 32px);box-sizing:border-box;padding:7px 14px;border:1px solid #b79b64;border-radius:20px;background:#182e2ef0;color:#f5e8c9;font:14px/1.4 Georgia,serif;pointer-events:none;z-index:44;opacity:0;transition:opacity .16s}
#routeHint.shown{opacity:1}
@media(prefers-reduced-motion:reduce){#routeHint{transition:none}}
