
/* One resource frame owns the same native controls; no duplicate values or state. */
body[data-story="true"] #playerHud #resources>#storyResourcePocket19{position:fixed;left:10px;bottom:10px;z-index:78;width:148px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:5px;box-sizing:border-box;background:#302317;border:7px solid #785537;border-image:url('themes/scene10/scene-wood-frame.webp') 96 stretch;border-image-width:7px;border-radius:7px;box-shadow:0 3px 7px #0c0a08a0;color:#f2e1b5}
body[data-story="true"] #playerHud #resources>#storyResourcePocket19>:is(.mini-resource,.coin-purse){position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:40px!important;max-height:none!important;padding:1px!important;margin:0!important;box-sizing:border-box!important;flex:none!important;border:0!important;border-image:none!important;background:transparent!important;box-shadow:none!important;color:#f2e1b5!important}
body[data-story="true"] #playerHud #resources>#storyResourcePocket19[data-combat="false"]>:last-child{grid-column:1/-1}
#storyResourcePocket19 .icon{width:20px!important;height:20px!important;vertical-align:middle}#storyResourcePocket19 .mini-resource>span{display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;font:18px/21px var(--fantasy-copy)}#storyResourcePocket19 .mini-resource small{font:12px/14px var(--fantasy-copy);white-space:nowrap}
body[data-story="true"] #playerHud #resources>#storyResourcePocket19>.coin-purse{flex-direction:row!important;flex-wrap:wrap!important;column-gap:2px!important}#storyResourcePocket19 .coin-purse .coin-count{font:21px/23px var(--fantasy-copy)!important}#storyResourcePocket19 .coin-purse .coin-caption{flex-basis:100%;font:12px/14px var(--fantasy-copy)!important;letter-spacing:0!important}#storyResourcePocket19 .coin-pips{display:none}
body[data-story="true"]:has(.story-patron-dialogue18) #storyResourcePocket19{visibility:hidden}
/* Preserve one actual2:1image transform for scene and all four SVG hit regions. */
@media(min-width:900px){body[data-story="true"][data-style="hybrid"] #tavern[data-composed-tavern="true"] .market-overview>.composed-tavern{inset:12px auto auto calc(-4vw + 25.92px)!important;width:calc(108vw - 51.84px)!important;height:auto!important;aspect-ratio:2/1!important}}
body[data-story="true"] #tavern .market-room-foreground{display:none!important}body[data-story="true"] #tavern .market-overview{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}body[data-story="true"] #tavern .market-overview::before,body[data-story="true"] #tavern .market-overview::after{content:none!important}
body[data-story="true"] #tavern .story-forest-exit19{position:fixed!important;left:auto!important;right:16px!important;top:auto!important;bottom:var(--forest-exit-bottom19,260px)!important;z-index:76!important;width:170px!important;min-height:74px!important;height:auto!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px!important;background:#17372a!important;border:1px solid #ada76b!important;border-radius:6px;color:#f4e7ba!important;font:16px/18px var(--fantasy-copy)}
body[data-story="true"]:has(.story-patron-dialogue18) .story-forest-exit19,body:has(.overlay:not([hidden])) .story-forest-exit19{visibility:hidden}
body[data-story="true"] #settingsButton{display:grid!important;place-items:center!important;line-height:0!important}body[data-story="true"] #settingsButton>.icon{display:block!important;width:100%!important;height:100%!important;max-width:24px!important;max-height:24px!important;margin:0!important;transform:none!important}
.painted-starter-name17 .starter-class-glyph19{display:block;width:23px;height:23px;object-fit:contain;grid-column:1;grid-row:1/3}.refuge-selection18 .painted-starter-name17{display:grid;grid-template-columns:23px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:1px 3px;padding:3px;white-space:normal}.refuge-selection18 .painted-starter-name17 strong{font-size:14px;line-height:15px;grid-column:2}.refuge-selection18 .painted-starter-name17 small{font-size:12px;line-height:13px;grid-column:2}
@media(max-width:899px){body[data-story="true"] #tavern .story-forest-exit19{right:12px!important;bottom:150px!important;max-width:45vw!important;font-size:14px!important}body[data-story="true"] #playerHud #resources>#storyResourcePocket19{width:144px}.refuge-selection18 .painted-starter-name17{grid-template-columns:24px minmax(0,1fr)}}

/* Main readiness is distinct from role, selection and card availability. */
body[data-story="true"] .formation .hero>.readiness19{position:absolute;left:50%;bottom:-19px;transform:translateX(-50%);z-index:27;display:flex;align-items:center;justify-content:center;gap:4px;min-width:105px;box-sizing:border-box;padding:3px 6px;border:2px solid #b2d38a;border-radius:5px;background:#254b2d;color:#e8f4ce;font:14px/17px var(--fantasy-copy,Georgia,serif);white-space:nowrap;pointer-events:none;box-shadow:0 2px 3px #101b16}.readiness19 b{font-size:20px;line-height:19px}.readiness19 strong{font-weight:700}
body[data-story="true"] .formation .hero[data-readiness="exhausted"]>.readiness19{border-color:#9e9985;background:#3b3d34;color:#ded9c6}body[data-story="true"] .formation .hero[data-readiness="locked"]>.readiness19{border-color:#c7a3cc;background:#493349;color:#f1d5ef}body[data-story="true"] .formation .hero .activation-badge{display:none!important}
.stag-speaker19{width:110px;height:110px;object-fit:contain;flex:none}.refuge-caption18{left:16%;right:16%;top:2%;display:flex;align-items:center;gap:8px;padding:3px 10px}.stag-speech19{flex:1}.refuge-caption18 .stag-speaker19{width:100px;height:100px}.refuge-opening18 .painted-starter-name17{width:18%}#storyTutorialHint18{display:flex!important;align-items:center;gap:6px;max-width:430px}#storyTutorialHint18[hidden]{display:none!important}#storyTutorialHint18 .stag-speaker19{width:82px;height:82px}#storyTutorialHint18>div{display:flex;flex-direction:column;gap:3px}
@media(max-width:650px){.refuge-caption18 .stag-speaker19{width:90px;height:90px}.refuge-caption18{display:flex}.refuge-opening18 .painted-starter-name17{width:100%}.formation .hero>.readiness19{min-width:96px!important;font-size:12px!important;bottom:-18px!important}#storyTutorialHint18 .stag-speaker19{width:60px;height:60px}}
/* Compound public traits share separate positions. */
.enemy:has(.enemy-no-retreat17) .enemy-signature{top:48px!important}

/* A readable speaker panel owns a bounded region of the clearing. */
body[data-story="true"] #storyTutorialHint18{position:fixed!important;left:auto!important;right:185px!important;top:auto!important;bottom:218px!important;width:350px!important;max-width:calc(100vw - 205px)!important;min-height:100px!important;padding:6px!important;box-sizing:border-box!important;background:#203128!important;border:1px solid #aa9565!important;text-align:left!important;font:16px/1.2 var(--fantasy-copy,Georgia,serif)!important;z-index:71!important}#storyTutorialHint18>div{min-width:0}#storyTutorialHint18 span{display:block}.story-patron-portrait18>svg{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:899px){body[data-story="true"] #storyTutorialHint18{right:12px!important;bottom:210px!important;width:310px!important;max-width:calc(100vw - 24px)!important;font-size:14px!important}}

body[data-story="true"][data-cycle-phase="town"] #storyTimeline17{top:72px!important}

body[data-story="true"][data-cycle-phase="town"] #storyTimeline17>.story-timeline17{top:72px!important}
.story-patron-dialogue18{box-sizing:border-box!important;padding:16px!important;overflow:hidden!important}.story-patron-dialogue18 .story-conversation18{box-sizing:border-box!important;width:100%!important;max-width:1040px!important;max-height:calc(100dvh - 32px)!important;margin:0 auto!important}
@media(min-width:900px) and (max-width:1100px){body[data-story="true"] .patron-stock-clusters .ability-name15{font-size:12px!important;line-height:13px!important}body[data-story="true"] .patron-stock-clusters .af15-title{font-size:12px!important;line-height:13px!important}}

body[data-story="true"] #game>.formation .hero .response-mark{top:29px!important;bottom:auto!important;left:6px!important;right:auto!important;max-width:calc(100% - 12px)!important;width:max-content!important;display:flex!important;align-items:center;gap:3px;padding:1px 4px!important;white-space:nowrap!important;font:12px/16px var(--fantasy-copy,Georgia,serif)!important;z-index:8!important}body[data-story="true"] #game>.formation .hero .response-mark .icon{width:14px;height:14px}
body[data-story="true"] #storyTutorialHint18{left:174px!important;right:auto!important;bottom:188px!important;width:350px!important;max-width:calc(100vw - 360px)!important;font-size:14px!important;min-height:96px!important}#storyTutorialHint18 .stag-speaker19{width:90px;height:90px}
@media(max-width:899px){body[data-story="true"] #storyTutorialHint18{left:12px!important;right:12px!important;bottom:205px!important;width:auto!important;max-width:none!important}#storyTutorialHint18 .stag-speaker19{width:75px;height:75px}}

body[data-story="true"] #game #enemies .enemy:has(.enemy-no-retreat17) .enemy-signature{top:48px!important}
