/* A single semantic event surface, authored text and native mechanics remain live. */
.major-event{--event-colour:#9dc6e8;background:#e8d4a3;color:#2a241b;border:7px solid #58442d;border-radius:18px;padding:20px;box-shadow:0 12px 48px #000b;text-align:left;font-family:var(--font-body,Georgia,serif)}
.major-event[data-role="Tank"]{--event-colour:#a17639}.major-event[data-role="DPS"]{--event-colour:#b65330}.major-event[data-role="Support"]{--event-colour:#52743d}.major-event[data-role="Lead"]{--event-colour:#44779d}
.major-story{display:flex;gap:16px;align-items:center;padding-bottom:12px;border-bottom:2px solid #80684266}.major-story img{width:112px;height:112px;object-fit:contain}.major-story strong{font-size:18px}.major-story p{font-size:20px;line-height:1.35;margin:4px 0}
.major-title{font-size:26px;margin:14px 0;color:#352619}.major-mechanics{font-size:16px;line-height:1.4}.major-mechanics p{margin:10px 0}.major-mechanics .icon{vertical-align:middle;width:26px;height:26px}.major-facts{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:14px 0}.major-facts p{display:flex;gap:7px;align-items:center;margin:0;padding:9px;background:#dcc18b;border-radius:9px}.major-facts .icon{width:48px;height:48px;color:var(--event-colour)}.major-facts b{font-size:26px}.major-choices{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.major-choices>button{font-size:16px;padding:12px 20px}.major-choices .patron-starters{width:100%;display:flex;gap:12px}.major-choices .patron-starter{flex:1;min-width:0}.major-choices .patron-starter-art{height:120px;display:block}.major-choices .patron-starter img{height:100%;width:100%;object-fit:contain}.major-event .loot-layout{background:transparent;padding:0;max-height:none}.major-event .loot-layout>header{display:none}
.major-patron{position:fixed;inset:0;z-index:60;background:#100d08bf;display:grid;place-items:center;padding:16px;overflow:auto}.major-patron>.major-event{width:min(850px,94vw);max-height:calc(100dvh - 32px);overflow:auto}.major-event-overlay>.overlay-card{padding:0;background:transparent;width:min(850px,96vw);max-width:850px;border:0}.major-event-overlay .major-event{max-height:calc(100dvh - 36px);overflow:auto}#lootPanel:has(.major-event)>.overlay-card{width:min(1040px,96vw);max-width:1040px;padding:0;background:transparent;border:0}
.objective-npc{position:absolute;z-index:14;left:50%;top:40%;transform:translate(-50%,-20%);width:148px;min-height:125px;padding:10px;background:#dfc794!important;color:#2b2117;border:5px solid #8b6d34!important;border-radius:12px;display:flex;flex-direction:column;gap:7px;align-items:center;box-shadow:0 6px 16px #0008}.objective-npc[hidden]{display:none!important}.objective-npc>.icon{width:24px;height:24px}.objective-npc>span{display:flex;align-items:center;gap:5px}.objective-npc img{height:115px;max-width:110px;object-fit:contain}.objective-npc strong{font-size:20px}.objective-npc.action-available{outline:3px solid #a4d96e;cursor:pointer}.objective-npc .main-target-symbol{inset:0}.objective-npc[data-status="escaped"]{border-color:#698c47!important}.objective-npc[data-status="lost"]{filter:grayscale(.8)}
@media(max-height:600px){.major-event{padding:12px}.major-story img{width:75px;height:75px}.major-story p{font-size:17px}.major-title{font-size:22px;margin:8px 0}.major-facts{margin:8px 0}.major-facts .icon{width:34px;height:34px}.major-choices .patron-starter-art{height:80px}.objective-npc{top:38%;width:125px;min-height:100px;font-size:13px;padding:6px}.objective-npc img{height:70px}}
@media(max-width:650px){.major-story{gap:8px}.major-story img{width:65px;height:75px}.major-story p{font-size:16px}.major-facts .icon{width:30px;height:30px}.major-facts b{font-size:22px}.major-facts{gap:7px}.major-choices .patron-starter-art{height:80px}.objective-npc{top:42%;width:120px;min-height:96px;font-size:12px}.major-event .patron-switcher{flex-wrap:wrap}}
.major-event :is(p,li,em,strong,h2,small,label,summary){color:#30271c}.major-event .major-story p{color:#3c3020}.major-event .major-facts{color:#3c3020}.major-event .major-facts .icon{color:var(--event-colour)}.major-event :is(button,.primary){color:#f6e8c6}.major-event button.primary{color:#342718}.major-event .patron-starter :is(strong,span){color:#f6e8c6}

#lootPanel:has(.major-event)>.loot-card{height:auto;max-height:calc(100dvh - 28px);overflow:auto}
#lootContent:has(>.major-event){height:auto}
#lootContent .major-event .loot-layout{height:auto;display:flex;flex-direction:column;gap:12px;overflow:visible;min-height:0}
#lootContent .major-event .loot-heroes{display:grid;min-height:0;grid-auto-rows:auto;flex-shrink:0}
#lootContent .major-event .loot-heroes article{min-height:96px;background:#dac28e;align-items:center}
#lootContent .major-event .loot-heroes article>img{width:70px;height:80px;max-width:25%;flex:none}
#lootContent .major-event .loot-heroes :is(h3,p,strong,small){color:#30271c}
#lootContent .major-event .loot-rewards{background:#dac28e;color:#30271c;padding:8px}
#lootContent .major-event .loot-rewards :is(strong,span){color:#30271c}
#lootContent .major-event .loot-reward-options{min-height:240px;flex-shrink:0;overflow:visible;align-items:stretch}
#lootContent .major-event .loot-reward-options>.loot-reward-card{min-height:240px;height:240px;max-height:none}
#lootContent .major-event .loot-layout footer{position:static;min-height:48px;overflow:visible}
#lootContent .major-event .loot-reward-card :is(strong,small){color:inherit}
#lootContent .major-event .loot-resource-card .loot-resource-amount{color:#30271c}
#lootContent .major-event .loot-resource-card .loot-resource-note{color:#30271c}
@media(max-width:700px){#lootContent .major-event .loot-reward-options{overflow-x:auto;overflow-y:hidden}}

.major-event:has(.major-story img[src*="steve-event"]) .major-story img{width:128px;height:128px;flex-shrink:0}
.major-event .market-ranks{background:transparent;color:#30271c}.major-event .market-ranks :is(strong,span){color:#30271c}.major-facts .market-icon{width:48px;height:48px;vertical-align:middle;color:var(--event-colour)}
@media(max-height:600px){.major-facts .market-icon{width:34px;height:34px}}

/* Existing native Forage choices in the shared event surface. One scroll owner. */
#majorEventContent:has(.forage-problem){width:min(1040px,96vw);max-width:1040px;overflow:auto;max-height:calc(100dvh - 28px)}
#majorEventContent>#cyclePanel{position:static;inset:auto;width:100%;height:auto;min-height:0;max-height:none;padding:0;overflow:visible;background:transparent;scrollbar-gutter:auto}
#majorEventContent>#cyclePanel>.cycle-shell{min-height:0;padding:0;display:block}
.forage-problem .major-title{font-size:24px;margin:10px 0}
.forage-problem .cycle-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow:visible;min-height:0}
.forage-problem .forage-choice{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:12px;background:#dec796;border:2px solid #9c8150;border-radius:9px;box-shadow:none;color:#30271c}
.forage-problem .forage-choice h3{font-size:19px;line-height:23px;margin:0;min-height:46px;color:#30271c}
.forage-problem .forage-effects{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;min-height:64px}
.forage-problem .forage-effect{display:flex;align-items:center;gap:4px;font-size:14px;color:#30271c}.forage-problem .forage-effect b{font-size:24px}.forage-problem .forage-effect>.cycle-icon{width:42px;height:42px;flex:none}
.forage-problem .cycle-icon{vertical-align:middle}.forage-problem .cycle-forecast{padding:0;border:0;background:transparent;font-size:14px}.forage-problem .cycle-forecast ul{margin:0;gap:4px}.forage-problem .cycle-forecast li{color:#30271c}.forage-problem .cycle-forecast .cycle-icon{width:21px;height:21px}
.forage-problem :is(.forage-condition,.forage-bonus){font-size:14px;line-height:18px;margin:0;color:#403420}.forage-problem .forage-bonus{display:flex;align-items:center;gap:6px}.forage-problem .forage-bonus .cycle-icon{width:24px;height:24px}.forage-problem .cycle-hero-label{font-size:14px;color:#30271c}.forage-problem .cycle-hero-label select{width:100%;min-height:32px;font-size:14px;color:#30271c;background:#f0dfb8}
.forage-problem .cycle-inspect{margin-top:auto;color:#30271c}.forage-problem .cycle-inspect :is(summary,p){color:#30271c}.forage-problem .cycle-commit{margin-top:0;font-size:16px;min-height:38px}.forage-problem .cycle-unavailable{color:#6a2620!important}.forage-problem .major-choices{margin-top:12px}
.forage-resume{margin:auto;padding:24px;text-align:center;background:#dec796;color:#30271c;border:4px solid #705634;border-radius:12px}.forage-resume[hidden]{display:none!important}
@media(max-height:600px){.forage-problem{padding:12px}.forage-problem .major-story p{font-size:16px}.forage-problem .forage-choice{padding:8px;gap:6px}.forage-problem .forage-choice h3{font-size:17px;line-height:20px;min-height:40px}.forage-problem .forage-effect>.cycle-icon{width:34px;height:34px}.forage-problem .forage-effects{min-height:52px}}
@media(max-width:700px){.forage-problem .cycle-choice-grid{grid-template-columns:1fr}.forage-problem .forage-choice h3{min-height:0}.forage-problem .forage-effects{min-height:0}.forage-problem .major-story p{font-size:16px}}

.forage-problem .forage-effect:has(use[href$="#heart"]){color:#953d3b}.major-event .forage-result h3{margin:0;color:#30271c;font-size:20px}.major-event .forage-result{padding:10px;border:1px solid #a38751;border-radius:8px;background:#e4cd9a}.major-event .forage-result .major-facts{margin:8px 0 0}

.objective-npc>.health-track{position:absolute;bottom:3px;left:5px;right:5px;width:auto;height:4px;margin:0;background:#382521;pointer-events:none}.objective-npc>.health-track>i{display:block;height:100%;background:#b7473c}
