body:is([data-screen=world],[data-screen=reward]) #deck-tools{min-width:0;min-height:0}
.deck-context{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px;max-height:68px;overflow:auto}
.deck-context button{padding:4px 7px;min-height:25px;border:1px solid var(--theme-line);border-radius:3px;background:var(--theme-paper);color:var(--theme-ink);font:10px/1.2 system-ui;cursor:pointer}
.deck-context button:disabled{opacity:.4;cursor:default}
.deck-context button:focus-visible,.deck-items button:focus-visible{outline:2px solid #c99f49;outline-offset:1px}
.deck-tool-hint{font:10px/1.2 system-ui;color:var(--theme-ink);padding:4px}
.deck-items{display:flex;gap:6px;justify-content:center;align-items:center}
.deck-items button{position:relative;width:24px;height:36px;padding:0;border:0;border-radius:3px;background:none;cursor:pointer}
.deck-items img{display:block;width:100%;height:100%;object-fit:contain;border-radius:3px}
.deck-items button[aria-pressed=true]{outline:2px solid #c99f49;outline-offset:1px}
.deck-items button>.reward-active-check{position:absolute;right:-3px;top:-4px;border-radius:50%;background:var(--theme-ink);color:#e2bc62;font:9px system-ui;padding:1px}
body:is([data-screen=world],[data-screen=reward]) .deck-card-action[aria-pressed=true]{outline:2px solid #c99f49;outline-offset:-2px}
body:is([data-screen=world],[data-screen=reward]) .deck-grid.equip-targets .deck-slot.pawn{outline:2px solid #c99f49;outline-offset:-2px}

/* Approved artwork; the compact sizing below scales the same two illustrations. */
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-icon{background-image:url('assets/ui/travel-hunt-art-approved.png');background-size:48px 24px;background-repeat:no-repeat}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-boot{background-position:left center}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-paw{background-position:right center}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-icon>*{visibility:hidden}

/* Keep the deck in place; trade a little stamp height for readable reward art. */
body:is([data-screen=world],[data-screen=reward]) #equipped-deck{width:min(100%,max(120px,calc((100cqh - 180px)*4/9)))}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-tabs button{flex-direction:row;min-height:32px;padding:3px 6px;gap:5px;border-width:2px}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-icon{width:20px;height:20px;background-size:40px 20px}
body:is([data-screen=world],[data-screen=reward]) .encounter-mode-tabs button[aria-selected=true]::after{right:3px;top:2px;font-size:8px}
body:is([data-screen=world],[data-screen=reward]) .deck-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%}
body:is([data-screen=world],[data-screen=reward]) .deck-items button{width:100%;height:auto;aspect-ratio:2/3}
@media(max-width:480px){body:is([data-screen=world],[data-screen=reward]) .deck-items{grid-template-columns:repeat(2,minmax(0,1fr));max-width:160px;margin-inline:auto}}

/* Stable readable chest feedback; artwork clicks do not dismiss it. */
.treasury-inspection{max-width:min(92vw,620px)}
.treasury-detail{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px;text-align:center}
.treasury-detail h2,.treasury-detail p{margin:0}
.treasury-detail h2{font:700 24px/1.2 Georgia,serif}
.treasury-detail>.current-playing-card{width:min(220px,calc(42dvh * 2 / 3));max-width:100%;flex-shrink:0}
.treasury-detail .reward-effect{font-size:18px;line-height:1.5}
.battle-art{isolation:isolate}
.villain-presence{position:absolute;inset:0 16% 1%;z-index:-1;pointer-events:none}
.villain-presence img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.35}
.villain-presence[data-region=City] img{object-fit:cover;object-position:center top}
.villain-presence[data-region=Jungle] img{opacity:.55}
.battle-art:has(.villain-presence) .battle-owner-portrait{visibility:hidden}

.reward-card-art{display:block;position:relative;width:100%;aspect-ratio:488/747;margin-inline:auto}
.reward-card-art img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:fill}
.reward-card-art svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.reward-detail-art .reward-card-art{width:min(100%,calc(68dvh * 488 / 747))}
.reward-victory-content>.reward-card-art{width:min(100%,calc(50dvh * 488 / 747))}
@media(max-width:560px){.reward-detail-art .reward-card-art,.reward-victory-content>.reward-card-art{width:124px}}

/* Retired journal/collection chrome must not reappear in encounter menus. */
body:not([data-screen=world]):not([data-screen=reward]) #side-deck-panel{display:none!important}
body:not([data-screen=world]):not([data-screen=reward]) .console{grid-template-columns:minmax(0,1fr)}

.net-attack-control{margin:8px 0}.net-attack-button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;min-height:62px;border:2px solid #93794e;border-radius:9px;background:#f6e8c9;color:#3d3024;padding:7px 10px}.net-attack-button[aria-pressed=true]{border-color:#26665a;background:#dfebd7;box-shadow:0 0 0 2px #26665a33}.net-attack-button:disabled{opacity:.65}.net-attack-button strong,.net-attack-button small{display:block}.net-attack-button small{font-size:12px;margin-top:3px}.net-attack-control p{font-size:11px;line-height:1.35;margin:5px 2px}.net-attack-image{transform:scaleX(-1);width:46px;height:46px;flex-shrink:0;background:url("assets/ui/net-attack.png") center/contain no-repeat}.net-attack-button:disabled .net-attack-image{filter:grayscale(1)}

/* Keep the one-attempt control visible above the phone card rail and typing field. */
.net-attack-slot{position:absolute;left:50%;top:92px;transform:translateX(-50%);z-index:5;width:188px;max-width:calc(100% - 30px)}.net-attack-slot .net-attack-control{margin:0}.net-attack-slot .net-attack-button{font-size:12px;min-height:58px;padding:5px 8px;background:#f6e8c9f2;box-shadow:0 2px 6px #291d2533}.net-attack-slot .net-attack-button[aria-pressed=true]{background:#dfebd7f5}.net-attack-slot .net-attack-control p{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.net-attack-slot .net-attack-button small{font-size:10px}.net-attack-slot .net-attack-image{width:42px;height:42px}
@media(max-width:600px){.net-attack-slot{top:-60px}}
