/* The uncomposed phone room keeps its native patrons and offers on one screen. */
@media (min-width:361px) and (max-width:700px) and (min-height:700px) {
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] {overflow:hidden!important;--tavern-action-y:452px;--tavern-tabs-y:502px;--tavern-goods-y:546px;--tavern-card-h:236px;--tavern-art-h:82px;--tavern-copy-h:100px}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] #storyTownCommitments17 {display:contents!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] #storyTownCommitments17>span {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] #storyRestOpen17 {position:fixed!important;inset:var(--tavern-action-y) auto auto 8px!important;width:calc(50vw - 12px)!important;height:44px!important;min-height:44px!important;z-index:9!important;transform:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] #storyForestOpen17 {position:fixed!important;inset:var(--tavern-action-y) 8px auto auto!important;width:calc(50vw - 12px)!important;height:44px!important;min-height:44px!important;z-index:9!important;transform:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .phone-shop27 {inset:var(--tavern-tabs-y) 8px auto!important;z-index:10!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters {position:fixed!important;inset:var(--tavern-goods-y) 8px 8px 104px!important;width:auto!important;height:auto!important;display:block!important;padding:0!important;margin:0!important;overflow:hidden!important;z-index:8!important;--offer-face-h:var(--tavern-card-h)!important;--offer-buy-h:40px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters>.patron-stock {display:contents!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters .patron-stock>header {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-cards {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false][data-focused-shop27=Orin] [data-patron=Orin] .patron-stock-cards,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false][data-focused-shop27=Mara] [data-patron=Mara] .patron-stock-cards,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false][data-focused-shop27=Bram] [data-patron=Bram] .patron-stock-cards,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false][data-focused-shop27=Tess] [data-patron=Tess] .patron-stock-cards {display:flex!important;gap:8px!important;justify-content:center!important;align-items:start!important;width:100%!important;height:auto!important;overflow:visible!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-offer {width:calc((100% - 8px)/2)!important;flex:0 1 calc((100% - 8px)/2)!important;max-width:220px!important;min-width:0!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-card-object {height:var(--tavern-card-h)!important;min-height:var(--tavern-card-h)!important;max-height:var(--tavern-card-h)!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-offer>button {height:40px!important;min-height:40px!important;font-size:16px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters .market-card-object>.ability {width:100%!important;max-width:none!important;box-sizing:border-box!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters .ability-face15 {grid-template-rows:32px var(--tavern-art-h) minmax(var(--tavern-copy-h),1fr)!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern]:not(:has(#tavern .stationary-tavern23)) #playerHud {position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:500!important;pointer-events:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern]:not(:has(#tavern .stationary-tavern23)) #playerHud #resources {z-index:501!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern]:not(:has(#tavern .stationary-tavern23)) #playerHud #resources .mini-resource {pointer-events:auto!important}
}
@media (min-width:361px) and (max-width:700px) and (min-height:700px) and (max-height:829px) {
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] {--tavern-action-y:370px;--tavern-tabs-y:420px;--tavern-goods-y:464px;--tavern-card-h:180px;--tavern-art-h:58px;--tavern-copy-h:86px}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] .market-host {padding:2px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] .market-host>.market-art {height:50px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-service-card {height:180px!important;min-height:180px!important;max-height:180px!important;padding:4px!important;gap:3px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-service-card>.market-art {height:70px!important;width:80px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hero-card {height:180px!important;min-height:180px!important;max-height:180px!important}
}
/* A 300px viewport uses four short patron rows and a horizontal resource pocket. */
@media (max-width:360px) and (min-height:649px) {
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] {width:calc(100vw - 10px)!important;max-width:none!important;overflow:hidden!important;--tavern-action-y:258px;--tavern-tabs-y:308px;--tavern-goods-y:352px;--tavern-card-h:180px}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-shell {width:100%!important;max-width:none!important;box-sizing:border-box!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] {grid-template-columns:minmax(0,1fr)!important;gap:2px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] .market-host {display:grid!important;grid-template-columns:42px 54px minmax(0,1fr)!important;grid-template-rows:44px!important;height:48px!important;min-height:48px!important;max-height:48px!important;padding:1px!important;gap:2px!important;box-sizing:border-box!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] .market-host>.market-art {grid-area:1/1!important;width:42px!important;height:44px!important;object-fit:contain!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] .market-host-label {grid-area:1/2!important;align-self:center!important;justify-self:stretch!important;margin:0!important;padding:1px 2px!important;height:24px!important;min-height:24px!important;box-sizing:border-box!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] .market-host-label strong {font-size:14px!important;line-height:20px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] .composed-quest-summary {grid-area:1/3!important;align-self:center!important;height:48px!important;min-height:48px!important;max-height:48px!important;padding:2px!important;margin:0!important;overflow:hidden!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .composed-quest-summary .quest-type-icon,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hosts[data-story-patrons] .market-new-quest {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .composed-quest-summary .quest-summary-title {height:26px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .composed-quest-summary strong {font-size:13px!important;line-height:13px!important;white-space:normal!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .composed-quest-summary .quest-summary-goal {height:14px!important;font-size:11px!important;line-height:14px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] #storyTownCommitments17 {display:contents!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] #storyTownCommitments17>span {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] #storyRestOpen17 {position:fixed!important;inset:var(--tavern-action-y) auto auto 8px!important;width:calc(50vw - 12px)!important;height:44px!important;min-height:44px!important;z-index:9!important;transform:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] #storyForestOpen17 {position:fixed!important;inset:var(--tavern-action-y) 8px auto auto!important;width:calc(50vw - 12px)!important;height:44px!important;min-height:44px!important;z-index:9!important;transform:none!important;font-size:14px!important;line-height:18px!important;white-space:nowrap!important;gap:3px!important;padding:2px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .phone-shop27 {inset:var(--tavern-tabs-y) 8px auto!important;z-index:10!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters {position:fixed!important;inset:var(--tavern-goods-y) 8px 60px 8px!important;width:auto!important;height:auto!important;display:block!important;padding:0!important;margin:0!important;overflow:hidden!important;z-index:8!important;--offer-face-h:var(--tavern-card-h)!important;--offer-buy-h:40px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters>.patron-stock {display:contents!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters .patron-stock>header {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-cards {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false][data-focused-shop27=Orin] [data-patron=Orin] .patron-stock-cards,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false][data-focused-shop27=Mara] [data-patron=Mara] .patron-stock-cards,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false][data-focused-shop27=Bram] [data-patron=Bram] .patron-stock-cards,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false][data-focused-shop27=Tess] [data-patron=Tess] .patron-stock-cards {display:flex!important;gap:8px!important;justify-content:center!important;align-items:start!important;width:100%!important;height:auto!important;overflow:visible!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-offer {width:calc((100% - 8px)/2)!important;flex:0 1 calc((100% - 8px)/2)!important;max-width:220px!important;min-width:0!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-card-object {height:180px!important;min-height:180px!important;max-height:180px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-offer>button {height:40px!important;min-height:40px!important;font-size:16px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters .market-card-object>.ability {width:100%!important;max-width:none!important;box-sizing:border-box!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .patron-stock-clusters .ability-face15 {grid-template-rows:32px 58px minmax(86px,1fr)!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-service-card {height:180px!important;min-height:180px!important;max-height:180px!important;padding:4px!important;gap:3px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-service-card.offer-card-face .offer-face-header {height:30px!important;min-height:30px!important;max-height:30px!important;grid-template-columns:12px minmax(0,1fr) 20px!important;overflow:hidden!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-service-card.offer-card-face .offer-face-header>strong {font-size:11px!important;line-height:12px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-service-card.offer-card-face .service-illustration {height:75px!important;min-height:75px!important;max-height:75px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=false] .market-hero-card {height:180px!important;min-height:180px!important;max-height:180px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern]:not(:has(#tavern .stationary-tavern23)) #playerHud {position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:500!important;pointer-events:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false]:not(:has(#tavern .stationary-tavern23)) #playerHud #resources {position:fixed!important;inset:auto 8px 4px 8px!important;width:auto!important;height:60px!important;min-height:60px!important;z-index:501!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false]:not(:has(#tavern .stationary-tavern23)) #playerHud #resources>#storyResourcePocket19 {position:static!important;width:100%!important;height:60px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:60px!important;gap:4px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false]:not(:has(#tavern .stationary-tavern23)) #playerHud #resources>#storyResourcePocket19>.mini-resource {font-size:12px!important;line-height:13px!important;padding:2px!important;pointer-events:auto!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false]:not(:has(#tavern .stationary-tavern23)) #playerHud #resources>#storyResourcePocket19 .resource-name26 {font-size:12px!important;line-height:13px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false]:not(:has(#tavern .stationary-tavern23)) #playerHud #resources>#storyResourcePocket19 #foodCounter .food-upkeep26 {font-size:10px!important;line-height:11px!important}
}
/* Keep the four Quest choices legible without covering the cast. Full reward cards remain in each patron's offer. */
@media (max-width: 650px) {
  body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=true] .market-overview>.composed-tavern {inset:173px auto auto 0!important}
  body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #hartwellHelp23 {top:194px!important}
  body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=true] .composed-quest-summary {
    height:57px!important;min-height:57px!important;max-height:57px!important;
    padding:3px 5px!important;box-sizing:border-box!important;overflow:hidden!important
  }
  body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-summary .quest-summary-title {height:28px!important}
  body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-summary .quest-summary-goal {height:16px!important;font-size:11px!important;line-height:16px!important;margin-top:1px!important}
  body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-summary .quest-summary-rewards {display:none!important}
  body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-patron-target[data-patron-name=Bram]>.composed-quest-summary,
  body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-patron-target[data-patron-name=Tess]>.composed-quest-summary {top:111px!important}
}

/* Keep Quest rewards truthful and make goods a deliberate, scrollable phone view. */
@media (max-width: 650px) {
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-composed-tavern=true] .composed-quest-summary {height:65px!important;min-height:65px!important;max-height:65px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-patron-target[data-patron-name=Bram]>.composed-quest-summary,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-patron-target[data-patron-name=Tess]>.composed-quest-summary {top:116px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-summary .quest-summary-title {height:26px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-summary .quest-summary-brief {display:flex;align-items:center;justify-content:center;gap:3px;height:15px;font:700 11px/15px var(--fantasy-copy);white-space:nowrap;color:#63451e}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-summary .quest-summary-brief .icon {display:inline-block!important;width:14px!important;height:14px!important;min-width:14px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-patron-name {opacity:0!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .composed-quest-mark {margin-top:18px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=false] .patron-stock-clusters>.patron-stock {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=false] .phone-shop27 [data-market-shop27],
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=false] .phone-shop27 [data-market-goods-close27] {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=false] .phone-shop27 {inset:450px 8px auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=false] .market-reroll {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .phone-shop27 [data-market-goods-open27] {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .phone-shop27 {inset:44px 8px auto!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:3px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .phone-shop27 button {font-size:12px!important;line-height:14px!important;padding:2px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .phone-shop27 [data-market-goods-close27] {font-size:11px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .market-overview>.composed-tavern,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .composed-quest-summary,
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] :is(#hartwellHelp23,#storyRestOpen17,.story-forest-exit19) {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .market-reroll {inset:87px auto auto 8px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .patron-stock-clusters {inset:123px 8px 70px 8px!important;width:auto!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;--offer-face-h:240px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true][data-focused-shop27] .patron-stock-cards {flex-wrap:wrap!important;justify-content:center!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .patron-stock-offer {max-width:220px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .patron-stock-clusters .ability-face15 {transform:none!important;position:static!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false] #playerHud #resources {position:fixed!important;inset:auto 8px 4px 8px!important;width:auto!important;height:60px!important;min-height:60px!important;max-height:60px!important;z-index:501!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false] #playerHud #resources>#storyResourcePocket19 {position:static!important;width:100%!important;height:60px!important;min-height:60px!important;max-height:60px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:60px!important;gap:4px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false] #playerHud #resources>#storyResourcePocket19>:is(.mini-resource,#moraleInfo,#foodCounter) {position:static!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:auto!important;height:60px!important;min-height:60px!important;padding:2px!important;font-size:12px!important;line-height:13px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false] #playerHud #resources>#storyResourcePocket19 .resource-name26 {font-size:12px!important;line-height:13px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern][data-view=tavern][data-combat=false] #playerHud #resources>#storyResourcePocket19 #foodCounter .food-upkeep26 {font-size:10px!important;line-height:11px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern]:has(#tavern .major-patron) #playerHud #resources,
 body[data-story=true][data-style=hybrid][data-phase=tavern]:has(#tavern .major-patron) #tavern :is(#storyRestOpen17,#hartwellHelp23) {display:none!important}
}
@media(max-width:360px){
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern #hartwellHelp23 {left:0!important;width:54px!important;height:54px!important;min-height:54px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .story-forest-exit19 small {display:none!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern .story-forest-exit19 strong {white-space:nowrap!important;font-size:14px!important}
 body[data-story=true][data-cycle-phase=town] .story-timeline17 {left:8px!important;transform:none!important;max-width:calc(100vw - 60px)!important;gap:3px!important;padding:3px 4px!important}
 body[data-story=true][data-cycle-phase=town] .story-day17 {font-size:12px!important}
 body[data-story=true][data-cycle-phase=town] .story-day17>.icon {width:14px!important;height:14px!important}
 body[data-story=true][data-cycle-phase=town] .story-seasons17 {gap:2px!important}
 body[data-story=true][data-cycle-phase=town] .story-season17 ol {gap:1px!important}
 body[data-story=true][data-cycle-phase=town] .story-season17 li {min-width:10px!important}
 body[data-story=true][data-cycle-phase=town] .story-season17 li.boss {min-width:20px!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .patron-stock-cards {flex-direction:column!important;align-items:center!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .patron-stock-offer {width:min(100%,220px)!important;flex-basis:auto!important}
 body[data-story=true][data-style=hybrid][data-phase=tavern] #tavern[data-phone-goods27=true] .phone-deck27 {font-size:0!important}
}
