/* Compact Prey window. This file loads after legacy HUD styles on purpose. */
.prey-dialog{width:min(1040px,96vw)!important;height:min(590px,91vh)!important;max-width:none!important;max-height:91vh!important;overflow:hidden!important}
.prey-dialog>form{display:grid!important;grid-template-rows:34px 30px minmax(0,1fr) 38px!important;min-height:0!important;height:100%!important;overflow:hidden!important}
.prey-dialog .prey-intro{display:grid;place-items:center;min-height:0;padding:5px 10px!important;font-size:9px!important}
.prey-dialog #prey-content{min-height:0;overflow:hidden!important;background:#0d0f0c}
.prey-dialog .prey-board{display:grid;height:100%;box-sizing:border-box;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px;padding:6px}
.prey-dialog .prey-slot{display:grid;grid-template-rows:30px minmax(0,1fr);min-width:0;min-height:0;overflow:hidden}
.prey-dialog .prey-slot>header{box-sizing:border-box;min-width:0;height:30px;padding:5px 7px}
.prey-dialog .prey-slot-body{display:grid;grid-template-rows:140px 76px minmax(0,1fr)!important;align-content:stretch!important;min-width:0;min-height:0;overflow:hidden}
.prey-dialog .prey-monsters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));box-sizing:border-box;min-width:0;min-height:0;gap:3px;padding:4px;overflow:visible!important}
.prey-dialog .prey-monster{display:grid;grid-template-rows:27px minmax(14px,auto);align-content:center;width:100%;height:auto!important;min-width:0;min-height:0;padding:1px 2px 2px!important;overflow:hidden}
.prey-dialog .prey-monster img{display:block;width:27px!important;height:27px!important;margin:auto;object-fit:contain}
.prey-dialog .prey-monster span{display:-webkit-box;min-width:0;max-height:18px;overflow:hidden;color:#a6a69e;font-size:7.5px!important;line-height:9px;text-align:center;text-overflow:clip;white-space:normal!important;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.prey-dialog .prey-monster.selected span{color:#f0dfaa}
.prey-dialog .prey-monster.selected::after{top:1px;right:1px;bottom:auto;left:auto;padding:0 2px;font-size:5.5px;line-height:8px}
.prey-dialog .prey-monsters.paid-selection{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:stretch;padding:9px}
.prey-dialog .prey-paid-choice{display:grid!important;place-content:center;place-items:center;box-sizing:border-box;width:100%;height:100%;min-width:0;gap:8px;padding:12px!important;overflow:hidden;border:1px solid #a27e2d!important;background:radial-gradient(circle,#493b1d,#171812 72%)!important;color:#ffe28a!important;text-align:center;box-shadow:inset 0 0 0 1px #090a08,inset 0 0 20px #b88a2722}
.prey-dialog button.prey-paid-choice{cursor:pointer}.prey-dialog button.prey-paid-choice:hover{filter:brightness(1.18)}
.prey-dialog .prey-paid-choice>strong{color:#ffe28a;font:15px Georgia,serif;text-shadow:1px 1px #000}.prey-dialog .prey-paid-choice>small{color:#b9ad91;font-size:8px}
.prey-dialog .prey-paid-choice.selected{border-color:#6e674f!important;background:radial-gradient(circle,#33352c,#151712 72%)!important;cursor:default}
.prey-dialog button.prey-paid-choice.preselected{cursor:pointer}.prey-dialog button.prey-paid-choice.preselected:hover{border-color:#b99a4c!important;filter:brightness(1.14)}
.prey-dialog .prey-paid-choice.selected>strong{color:#d5c79c}.prey-dialog .prey-paid-choice.selected>span{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;max-width:100%;gap:9px;color:#eee}.prey-dialog .prey-paid-choice.selected img,.prey-dialog .prey-paid-choice.selected img.creature-native-sprite{display:block;width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;object-fit:contain!important;image-rendering:pixelated}.prey-dialog .prey-paid-choice.selected b{min-width:0;overflow:hidden;color:#f0d795;font:13px Georgia,serif;text-overflow:ellipsis;white-space:nowrap}
.prey-dialog .prey-selected-portrait.empty>span{display:grid;place-items:center;width:100%;height:100%;color:#817b69;font:34px Georgia,serif;text-shadow:1px 1px #000}
.prey-selection-preview-art>img[hidden]{display:none!important}
.prey-selection-preview-art:has(>img[hidden])::before{content:'?';display:grid;place-items:center;width:100%;height:100%;color:#817b69;font:34px Georgia,serif;text-shadow:1px 1px #000}
.prey-dialog .prey-selection{display:grid;grid-template-columns:54px minmax(0,1fr) 58px;box-sizing:border-box;min-width:0;min-height:0;gap:6px;padding:5px 6px}
.prey-dialog .prey-selected-portrait{width:52px;height:62px}.prey-dialog .prey-selected-portrait img{max-width:48px;max-height:56px}
.prey-dialog .prey-selected-copy{gap:2px}.prey-dialog .prey-selected-copy b{font-size:12px}.prey-dialog .prey-selected-copy small{font-size:8px}
.prey-dialog .prey-selected-state{box-sizing:border-box;height:56px;padding:3px}.prey-dialog .prey-selected-state b{font-size:11px}.prey-dialog .prey-selected-state small{font-size:6px;line-height:8px}
.prey-dialog .prey-bonus{display:grid;grid-template-rows:auto 5px minmax(0,1fr)!important;align-content:stretch!important;box-sizing:border-box;min-width:0;min-height:0;padding:5px!important;overflow:hidden}
.prey-dialog .prey-slot.pending .prey-bonus{grid-template-rows:auto minmax(0,1fr)!important}
.prey-dialog .prey-banner{grid-template-columns:32px minmax(0,1fr);gap:5px;padding:4px}.prey-dialog .prey-banner i{width:29px!important;height:32px!important;min-width:29px!important}.prey-dialog .prey-banner i img{max-width:29px!important;max-height:32px!important}.prey-dialog .prey-banner small{margin-top:1px;font-size:7px}.prey-dialog .prey-stars{font-size:9px;line-height:10px;letter-spacing:.5px}
.prey-dialog .prey-mystery{grid-template-columns:31px minmax(0,1fr);gap:6px;padding:5px}.prey-dialog .prey-mystery i{width:28px;height:34px;font-size:18px}.prey-dialog .prey-mystery b{font-size:11px}.prey-dialog .prey-mystery small{margin-top:2px;font-size:7px;line-height:9px}
.prey-dialog .prey-time{height:5px;margin:0}.prey-dialog .prey-actions{align-self:end;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-top:4px}.prey-dialog .prey-actions button{box-sizing:border-box;min-width:0;min-height:31px!important;padding:3px 2px!important;font-size:8px!important;line-height:10px}.prey-dialog .prey-actions button small{margin-top:1px;font-size:6.5px;line-height:8px}.prey-dialog .prey-slot.pending .prey-primary{grid-column:1/-1}
.prey-dialog .prey-auto-options{display:grid;gap:6px;margin-top:7px}.prey-dialog .prey-auto-options label{display:flex;align-items:center;gap:7px;min-height:34px;padding:7px 9px;border:1px solid #4a4030;background:#191713;color:#e3d7b8;font-size:12px;line-height:1.25;cursor:pointer}.prey-dialog .prey-auto-options input{width:15px;height:15px;flex:0 0 15px;margin:0;accent-color:#b78b32}.prey-dialog .prey-auto-options small{margin-left:auto;color:#b9a67b;font-size:10px;line-height:1.2;white-space:nowrap}
@media(max-width:760px){.prey-dialog .prey-auto-options label{font-size:11px}.prey-dialog .prey-auto-options small{font-size:9px}}
.prey-dialog .prey-locked{grid-template-rows:30px minmax(0,1fr) auto}.prey-dialog .prey-lock-art{align-content:center;min-height:0;padding:12px}.prey-dialog .prey-lock-art img{width:auto;height:auto;max-width:56px;max-height:76px}.prey-dialog .prey-lock-art b{font-size:14px}.prey-dialog .prey-lock-art p{max-width:190px;font-size:10px;line-height:1.35}.prey-dialog .prey-unlock{min-height:48px!important;margin:6px!important;font-size:9px!important}.prey-dialog .prey-unlock small{margin-top:2px;font-size:7px}
.prey-dialog #prey-wallet{box-sizing:border-box;height:38px;padding:5px 10px!important}
.store-offer.owned{border-color:#497750}.store-offer.owned .store-offer-art em{background:#397749}.store-offer.owned footer button{border-color:#497750!important;color:#80c989!important}
@media(max-width:900px){.prey-dialog{width:min(680px,96vw)!important;height:min(700px,94vh)!important}.prey-dialog #prey-content{overflow:auto!important}.prey-dialog .prey-board{height:auto;grid-template-columns:1fr}.prey-dialog .prey-slot{min-height:430px}.prey-dialog .prey-locked{min-height:300px}}
/* Readability restoration: keep the three-slot overview without miniaturizing content. */
.prey-dialog{width:min(1180px,97vw)!important;height:min(720px,94vh)!important;max-height:94vh!important}
.prey-dialog>form{grid-template-rows:40px 38px minmax(0,1fr) 44px!important}
.prey-dialog .prey-intro{font-size:11px!important;padding:8px 12px!important}
.prey-dialog .prey-board{gap:9px;padding:9px}
.prey-dialog .prey-slot{grid-template-rows:36px minmax(0,1fr)}
.prey-dialog .prey-slot>header{height:36px;padding:8px 9px;font-size:10px}
.prey-dialog .prey-slot-body{grid-template-rows:174px 94px minmax(0,1fr)!important}
.prey-dialog .prey-monsters{gap:5px;padding:6px}
.prey-dialog .prey-monster{grid-template-rows:38px minmax(18px,auto);padding:3px!important}
.prey-dialog .prey-monster img{width:38px!important;height:38px!important}
.prey-dialog .prey-monster span{max-height:22px;font-size:9px!important;line-height:11px}
.prey-dialog .prey-monster.selected::after{padding:1px 3px;font-size:6.5px;line-height:9px}
.prey-dialog .prey-selection{grid-template-columns:68px minmax(0,1fr) 72px;gap:8px;padding:7px 8px}
.prey-dialog .prey-selected-portrait{width:66px;height:78px}.prey-dialog .prey-selected-portrait img{max-width:60px;max-height:72px}
.prey-dialog .prey-selected-copy b{font-size:13px}.prey-dialog .prey-selected-copy small{font-size:9px;line-height:1.3}
.prey-dialog .prey-selected-state{height:70px;padding:6px}.prey-dialog .prey-selected-state b{font-size:13px}.prey-dialog .prey-selected-state small{font-size:7px;line-height:9px}
.prey-dialog .prey-bonus{padding:7px!important}.prey-dialog .prey-banner{grid-template-columns:40px minmax(0,1fr);gap:7px;padding:6px}.prey-dialog .prey-banner i{width:38px!important;height:42px!important;min-width:38px!important}.prey-dialog .prey-banner i img{max-width:38px!important;max-height:42px!important}.prey-dialog .prey-banner small{font-size:8px}.prey-dialog .prey-stars{font-size:11px;line-height:12px}
.prey-dialog .prey-mystery{grid-template-columns:39px minmax(0,1fr);padding:7px}.prey-dialog .prey-mystery i{width:36px;height:42px}.prey-dialog .prey-mystery b{font-size:12px}.prey-dialog .prey-mystery small{font-size:8px;line-height:10px}
.prey-dialog .prey-actions{gap:5px;margin-top:6px}.prey-dialog .prey-actions button{min-height:38px!important;padding:5px 4px!important;font-size:9px!important;line-height:11px}.prey-dialog .prey-actions button small{font-size:7px;line-height:9px}
.prey-dialog #prey-wallet{height:44px;padding:7px 12px!important;font-size:11px}

/* Creature animation frames use their native 200% size globally. Selected
   Prey portraits are compact UI previews and must stay clipped and fitted
   inside their dedicated portrait frame. */
.prey-dialog .prey-selected-portrait{position:relative;overflow:hidden;contain:paint}
.prey-dialog .prey-selected-portrait img,
.prey-dialog .prey-selected-portrait img.creature-native-sprite{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;object-fit:contain!important;object-position:center bottom!important}

/* Center the visible creature pixels, including asymmetric transparent frames. */
.prey-dialog img.creature-visual-centered{transform:translate(var(--creature-visual-center-x,0),var(--creature-visual-center-y,0)) scale(var(--creature-visual-scale,1))!important;transform-origin:center!important;object-position:center!important}
