/* A weapon illustration fills the equipment slot, beneath its readable labels. */
body.workspace91 .overview91 .weapon-slot.has-weapon290.weapon-bg291{display:flex!important;flex-wrap:wrap!important;gap:4px 10px!important;align-items:center!important;padding:12px!important;min-height:78px!important;isolation:isolate;overflow:hidden!important;background:var(--deep263)!important}
body.workspace91 .overview91 .weapon-slot.weapon-bg291:before,.dual-weapon-slot.weapon-bg291:before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--weapon-bg291);background-size:cover;background-position:center 43%;opacity:.85;pointer-events:none}
body.workspace91 .overview91 .weapon-slot.weapon-bg291:after,.dual-weapon-slot.weapon-bg291:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#10170fda,#10170f82 65%,#10170fa6);pointer-events:none}
body.workspace91 .overview91 .weapon-slot.weapon-bg291>.weapon-illustration290,.weapon-bg291 .dual-art290{display:none!important}
body.workspace91 .overview91 .weapon-slot.weapon-bg291>strong{flex:1 1 60%;color:#fff2d3!important;text-shadow:0 1px 3px #000}
body.workspace91 .overview91 .weapon-slot.weapon-bg291>small{flex:1 1 70%;color:#f5eedc!important;line-height:1.4;text-shadow:0 1px 3px #000}
body.workspace91 .overview91 .weapon-slot.weapon-bg291>.weapon-action{margin-left:auto!important;flex:0 0 auto!important;max-width:100%!important}
.dual-weapon-slot.weapon-bg291{position:relative;isolation:isolate;overflow:hidden;padding:10px}
/* Use the PC's full width, then overlap only when all cards cannot fit at readable size. */
@media(min-width:1001px){
 body.workspace91.battle-active66 .game-shell{max-width:none!important;width:100%!important;padding:0 12px!important}
 body.workspace91 #player-hand.fit-hand291:not(:has(.scope-placement-bar)){display:flex!important;flex-wrap:nowrap!important;gap:5px!important;overflow-x:hidden!important;overflow-y:hidden!important;justify-content:flex-start!important;padding:8px!important;width:100%!important;max-width:none!important}
 body.workspace91 #player-hand.fit-hand291:not(:has(.scope-placement-bar))>:is(.game-card,.contract-hand84,.contract-card-wrap84){flex:0 0 var(--hand-width291)!important;width:var(--hand-width291)!important;min-width:var(--hand-width291)!important;max-width:var(--hand-width291)!important;margin-left:var(--hand-overlap291)!important;margin-right:0!important;min-height:0!important;transform:none!important}
 body.workspace91 #player-hand.fit-hand291:not(:has(.scope-placement-bar))>:is(.game-card,.contract-hand84,.contract-card-wrap84):first-child{margin-left:0!important}
 body.workspace91 #player-hand.fit-hand291:not(:has(.scope-placement-bar))>.game-card[data-magnet-left]{margin-left:var(--hand-overlap291)!important}
 body.workspace91 #player-hand.fit-hand291:not(:has(.scope-placement-bar))>.game-card[data-magnet-left]:first-child{margin-left:0!important}
 body.workspace91 #player-hand.fit-hand291>.game-card:hover,body.workspace91 #player-hand.fit-hand291>.game-card:focus-visible{z-index:100!important;box-shadow:0 0 0 2px #e9ce8e!important}
}
.random291{border:1px solid #b59c65;border-radius:4px;background:linear-gradient(135deg,#62543c,#252a23);color:#f3dfb3;display:flex;flex-direction:column;align-items:center;justify-content:center;height:108px;min-width:0;width:100%;padding:4px;cursor:pointer}.random291>span{font-size:40px;line-height:1.3}.random291>strong{font-size:12px}.random291:focus-visible,.random291:hover{outline:2px solid #e7cc86;outline-offset:-3px}
.archetypes291{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:0 0 8px}.archetypes291 button{min-height:32px;padding:5px 14px!important;font-weight:700}.archetypes291 button[aria-pressed="true"]{border-color:#f3d38a!important;box-shadow:inset 0 0 0 1px #f3d38a,0 0 6px #e7c47b55!important;background:linear-gradient(#9b7f4b,#685434)!important;color:#fff5da!important}
#setup-dialog .setup-card>div:empty{display:none!important}
@media(min-height:650px){
 body.tavern263 #setup-dialog{height:96dvh!important;max-height:96dvh!important;box-sizing:border-box}
 body.tavern263 #setup-dialog .setup-card{height:100%!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column!important;box-sizing:border-box;overflow:hidden!important}
 body.tavern263 #setup-dialog .setup-card>*{flex-shrink:0}
 body.tavern263 #setup-dialog .setup-deck-grid{display:flex!important;flex:1 1 auto!important;min-height:120px!important;overflow:hidden;flex-direction:column}
 body.tavern263 #setup-dialog .setup-deck-grid>fieldset:not(.roster-inactive290){display:flex!important;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}
 body.tavern263 #setup-dialog .deck-options{flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:auto!important}
 body.tavern263 #setup-dialog .setup-card>details{max-height:70px;overflow:auto}
}
.fx290.cannon291{filter:drop-shadow(0 0 10px #fc5959) drop-shadow(0 0 20px #ffb39f);background:radial-gradient(circle,#fff 0 17%,#fff0e5 24%,#ffb7a5 34%,#f75150 48%,#e63c3c77 63%,transparent 72%)}
@media(max-width:720px){body.workspace91 .overview91 .weapon-slot.has-weapon290.weapon-bg291{padding:8px!important;min-height:86px!important}body.workspace91 .overview91 .weapon-slot.weapon-bg291>.weapon-action{width:100%!important}}
@media(max-width:720px) and (max-height:900px){
 #setup-dialog .large-portrait290{height:88px}
 #setup-dialog .selection-stage290{margin:6px 0 8px}
 #setup-dialog .selected290{gap:4px;padding:6px}
 #setup-dialog .selected-copy290 p{margin:3px 0}
 #setup-dialog .complexity290{margin:5px auto}
 #setup-dialog .archetypes291{margin-bottom:4px}
 #setup-dialog .setup-heading h2{font-size:20px}
 #setup-dialog .selected-deck290,#setup-dialog .select-side290{min-height:30px;padding:4px 6px!important}
}
@media(max-width:720px) and (max-height:740px){
 body.tavern263 #setup-dialog .setup-card{gap:4px!important;overflow-y:auto!important}
 #setup-dialog .large-portrait290{height:64px}
 #setup-dialog .selected-copy290 p{max-height:45px;overflow:auto;font-size:10.5px;line-height:1.35}
 #setup-dialog .complexity290 button{min-height:30px;padding:4px 5px!important}
 #setup-dialog .archetypes291 button{min-height:30px;padding:4px 10px!important}
}
