/* Actual spoken scenes retain their own controls above passive game furniture. */
body[data-story="true"]:has(.spoken-patron21:not([hidden])) #storyTimeline17{visibility:hidden!important}
body .tavern-root .spoken-patron21 .spoken-scene21__turn{border:0!important;box-shadow:none!important;min-height:0!important;height:auto!important;width:100%!important;padding:0!important;text-align:left!important}
@media(max-width:650px){
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #playerHud #resources>#storyResourcePocket19{left:8px!important;right:auto!important;top:auto!important;bottom:278px!important;width:72px!important;height:auto!important;grid-template-columns:minmax(0,1fr)!important;gap:1px!important;padding:3px!important;border-width:4px!important;border-image-width:4px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #playerHud #resources>#storyResourcePocket19>:is(.mini-resource,.coin-purse){min-height:32px!important;max-height:32px!important;gap:0!important;font-size:13px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #storyResourcePocket19 .mini-resource>span{font-size:16px!important;line-height:18px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #storyResourcePocket19 .mini-resource small{font-size:10px!important;line-height:12px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #storyResourcePocket19 .coin-purse .coin-count{font-size:16px!important;line-height:18px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #storyResourcePocket19 .coin-caption{font-size:10px!important;line-height:12px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #storyResourcePocket19 .icon{width:15px!important;height:15px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #playerHud #resources #threatInfo{position:fixed!important;left:auto!important;right:8px!important;top:72px!important;bottom:auto!important;width:66px!important;min-width:0!important;height:52px!important;min-height:0!important;padding:2px!important;font-size:11px!important;line-height:12px!important;z-index:78!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #playerHud #resources #threatInfo small{display:none!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>#handSection{position:fixed!important;inset:auto 8px 8px!important;width:auto!important;height:200px!important;max-height:200px!important;margin:0!important;padding:0!important;z-index:60!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>#handSection>.hand-heading{height:26px!important;min-height:26px!important;position:relative!important;inset:auto!important;padding:0!important;margin:0!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>#handSection .hand-paging{position:absolute!important;inset:0 0 auto auto!important;display:flex;align-items:center;gap:7px;height:24px!important;z-index:2!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>#handSection #hand{position:relative!important;inset:auto!important;display:flex!important;justify-content:center!important;align-items:end!important;gap:6px!important;width:100%!important;height:174px!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>#handSection #hand>.ability{position:relative!important;inset:auto!important;transform:none!important;flex:0 1 calc((100vw - 30px)/2)!important;width:calc((100vw - 30px)/2)!important;min-width:0!important;max-width:calc((100vw - 30px)/2)!important;height:174px!important;min-height:174px!important;max-height:174px!important;margin:0!important;z-index:1!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>#handSection #hand>.ability:is(:hover,:focus-visible){transform:none!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game :is(#retreatButton,#extractButton){position:fixed!important;inset:auto auto 218px 8px!important;transform:none!important;width:calc(50vw - 12px)!important;min-width:0!important;max-width:none!important;min-height:42px!important;height:42px!important;padding:3px!important;z-index:61!important;font-size:16px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>.controls #endButton{position:fixed!important;inset:auto 8px 218px auto!important;transform:none!important;width:calc(50vw - 12px)!important;min-width:0!important;max-width:none!important;min-height:42px!important;height:42px!important;max-height:42px!important;padding:3px!important;z-index:61!important;font-size:16px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #storyTutorialHint18{bottom:272px!important;left:92px!important;right:12px!important;min-height:80px!important;max-height:100px!important;padding:4px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #storyTutorialHint18 .stag-speaker19{width:60px!important;height:60px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] .resolved-events15{top:128px!important;bottom:auto!important;right:8px!important;width:min(250px,calc(100vw - 16px))!important;z-index:20!important}
}

@media(max-width:700px),(max-aspect-ratio:1/1){.spoken-scene21[data-speaker-role="neutral"]:not([data-speaker-name="Lord Hartwell"]) .spoken-scene21__role-paint{display:none}}

@media(max-width:650px){body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game{perspective:none!important}body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game :is(#retreatButton,#extractButton,#endButton){max-height:42px!important}body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #playerHud #resources #threatInfo{max-height:52px!important;max-width:66px!important}body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #playerHud #resources #threatInfo .icon{width:15px!important;height:15px!important}}



@media(max-width:650px){#cardInspection:not(.pinned){display:none!important}}

@media(max-width:650px){body[data-story="true"] #playerHud #resources #threatInfo :is(.threat-next,.threat-bonus,.threat-column,.threat-meter15){display:none!important}}

/* The resource pocket reads top-down on every viewport. Mana only exists in combat. */
body[data-story="true"] #playerHud #resources>#storyResourcePocket19{width:88px;grid-template-columns:minmax(0,1fr);gap:3px}
body[data-story="true"] #playerHud #resources>#storyResourcePocket19[data-combat="false"]>:last-child{grid-column:auto}

/* Final composed cascade: legacy Tavern heading and starter rules must not flatten these gaps/anchors. */
body .tavern-root .spoken-scene21 .spoken-scene21__turn{margin-top:18px!important}
.spoken-scene21__choices{position:absolute;left:32px;bottom:24px;border:0;padding:0!important;margin:0!important}
.spoken-scene21__speech{left:40%;right:5%}
body .refuge-selection18 .painted-starter-name17{top:var(--starter-y)!important;width:var(--starter-width)!important;grid-template-columns:44px minmax(0,1fr)!important;gap:3px 8px!important}
@media(max-width:700px),(max-aspect-ratio:1/1){.spoken-scene21__speech{left:auto;right:auto}.spoken-scene21__choices{left:25px;bottom:22px}}
@media(max-width:650px){body .refuge-selection18 .painted-starter-name17{top:auto!important;width:100%!important;grid-template-columns:42px minmax(0,1fr)!important}}

@media(max-width:700px),(max-aspect-ratio:1/1){.spoken-scene21__choices{position:static!important;padding-top:8px!important;margin-top:8px!important;justify-content:flex-start}.spoken-scene21__choices>[data-opening-skip]{margin-left:auto!important}}

/* Quest conversation continues in a smaller surface with the same representative portrait. */
body[data-story="true"] .story-patron-dialogue18 .story-conversation18{width:min(860px,calc(100vw - 40px))!important;max-width:860px!important;height:min(540px,calc(100dvh - 80px))!important;max-height:calc(100dvh - 80px)!important}
body[data-story="true"] .story-patron-portrait18{background:var(--speaker-paint,#314733)}
body[data-story="true"] .story-patron-portrait18 img{object-fit:contain!important}
.story-conversation-actions18{position:sticky;bottom:-1px;background:#e5d3aa;padding-bottom:7px;box-shadow:0 -5px 8px #e5d3aa}
@media(max-width:700px){body[data-story="true"] .story-patron-dialogue18 .story-conversation18{width:calc(100vw - 36px)!important;height:min(740px,calc(100dvh - 70px))!important;max-height:calc(100dvh - 70px)!important;grid-template-rows:170px minmax(0,1fr)}.story-patron-copy18{padding:10px 12px}.story-patron-copy18 blockquote{font-size:18px!important;line-height:1.35!important}}

/* This inherited capacity bar occupied the printed Mana caption, not extra row content. */
body[data-story="true"] #playerHud #resources #storyResourcePocket19 .hud-capacity-track{display:none!important}

/* Leave the phone resource column clear of the independently interactive player deck. */
@media(max-width:650px){body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #playerDeck{position:fixed!important;left:94px!important;right:auto!important;top:auto!important;bottom:381px!important;transform:none!important;z-index:62!important}}

#cleansePanel18 [data-cleanse-cancel18]{color:#f2e1b5!important;background:#304839!important;border:1px solid #7c8861;min-height:36px;padding:5px 12px}

/* Selected-card forecasts share the clear column beside the phone resource pocket. */
@media(max-width:650px){body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-casting="true"] #game>#handSection>#mainActionDock{left:80px!important;right:0!important;width:auto!important;max-width:none!important}}

/* Connected choices retain readable controls on their parchment surface. */
#connectedChoice82 :is(button,select){color:#f2e1b5!important;background:#304839!important;border:1px solid #7c8861;min-height:36px;padding:5px 12px}

/* Keep the actual Gather hit area clear of the resource column. */
@media(max-width:650px){
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #fieldActions .fire-source{position:fixed!important;left:94px!important;right:auto!important;top:auto!important;bottom:310px!important;width:132px!important;height:44px!important;margin:0!important;transform:none!important;z-index:62!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #fieldActions .fire-source>.fire-gather{position:absolute!important;inset:0!important;width:100%!important;height:44px!important;min-height:44px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #fieldActions .fire-gather>.gather-caption,body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #fieldActions .fire-gather>.main-target-symbol{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;min-height:36px!important;width:100%!important;background:#203128!important;color:#efdfb6!important;font-size:16px!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #fieldActions .fire-gather>.main-target-symbol>.icon{display:none!important}
body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #fieldActions .fire-gather>.main-target-symbol>span{font-size:16px!important;line-height:22px!important;border:0!important}
body[data-story="true"][data-casting="true"] #game #fieldActions .fire-source{visibility:hidden!important}
}

@media(max-width:650px){body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #fieldActions .fire-gather>.main-target-symbol{display:none!important}}

/* Hero-action forecasts use the clear gap beneath Gather on phones. */
@media(max-width:650px){body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game #fieldActions #fieldPreview{position:fixed!important;left:88px!important;right:8px!important;top:auto!important;bottom:264px!important;width:auto!important;max-width:none!important;min-height:42px!important;max-height:42px!important;padding:3px 5px!important;transform:none!important;font-size:14px!important;line-height:17px!important;text-align:left!important;white-space:normal!important;z-index:62!important}}
