/* Dense warehouse rows and a centered desktop/tablet window. */
#game-shell #drawer.drawer:is(.trade-drawer,.warehouse-drawer):has(.warehouse-capacity){inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;width:min(1000px,calc(100vw - 32px))!important;max-width:1000px!important;margin:0!important;height:min(800px,calc(100dvh - 96px))!important;max-height:calc(100dvh - 96px)!important;box-sizing:border-box;padding:16px;overflow:auto;border-radius:14px}
#game-shell .drawer:has(.warehouse-capacity) h2{font-size:20px;margin:4px 40px 8px 0}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-keeper-card{padding:6px 10px;gap:8px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-keeper-card img{width:36px;height:46px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-keeper-card p{margin:2px 0;font-size:12px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-capacity{padding:8px 10px;margin-top:8px;font-size:13px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-status{padding:5px 8px;margin:6px 0;font-size:12px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-wallet{padding:5px 0;gap:8px;font-size:13px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-columns{gap:10px;margin:8px 0;grid-template-columns:repeat(2,minmax(0,1fr))}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-columns>section{padding:8px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-columns h3{font-size:14px;margin:0 0 4px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-columns p{min-height:0;margin:4px 0;font-size:12px;line-height:1.4}
#game-shell .drawer:has(.warehouse-capacity) .storage-list-controls{grid-template-columns:minmax(0,1fr) 130px;padding:6px;gap:6px;margin:6px 0}
#game-shell .drawer:has(.warehouse-capacity) .storage-list-controls label{font-size:11px;line-height:1.3}
#game-shell .drawer:has(.warehouse-capacity) .storage-list-controls :is(input,select){min-height:36px;height:36px;margin-top:2px;padding:4px 6px;font-size:13px}
#game-shell .drawer:has(.warehouse-capacity) [data-storage-rows]{max-height:clamp(240px,54dvh,560px)}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:6px;margin:4px 0;border-radius:7px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item>div:first-child{grid-template-columns:32px minmax(0,1fr);column-gap:6px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item .item-image-row{width:32px;height:32px;padding:2px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item strong{font-size:12px;line-height:1.35}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item small{font-size:11px;line-height:1.3;margin-top:1px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item .warehouse-actions{display:flex;flex-wrap:nowrap;gap:5px;align-items:center}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item .quantity-control{display:flex;gap:4px;align-items:center;min-width:0}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item .quantity-field{font-size:0;line-height:0;margin:0;width:48px;min-width:48px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item .quantity-field small{display:none}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item input{box-sizing:border-box;width:48px;min-height:36px;height:36px;margin:0;padding:4px;font-size:13px;line-height:1.3}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-item button{flex:none;min-height:36px;padding:4px 7px;font-size:12px;line-height:1.3;white-space:nowrap}
#game-shell .drawer:has(.warehouse-capacity) [data-deposit-all]{min-height:36px;padding:4px 8px;font-size:12px}
@media(max-width:1000px){#game-shell .drawer:has(.warehouse-capacity) .warehouse-item{grid-template-columns:1fr}#game-shell .drawer:has(.warehouse-capacity) .warehouse-item .warehouse-actions{justify-content:flex-end}}
@media(max-width:600px){#game-shell .drawer.trade-drawer:has(.warehouse-capacity){width:calc(100vw - 16px)!important;max-height:calc(100dvh - 96px)!important;padding:10px}#game-shell .drawer:has(.warehouse-capacity) .warehouse-columns{grid-template-columns:1fr}#game-shell .drawer:has(.warehouse-capacity) .storage-list-controls{grid-template-columns:minmax(0,1fr) 112px}#game-shell .drawer:has(.warehouse-capacity) .warehouse-item :is(button,input){min-height:44px;height:44px}#game-shell .drawer:has(.warehouse-capacity) .storage-list-controls input{font-size:16px}#game-shell .drawer:has(.warehouse-capacity) .warehouse-item input{font-size:16px}}
/* Paired storage: both inventories remain visible, including portrait phones. */
#game-shell .drawer:has(.warehouse-capacity) .warehouse-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;margin:12px 0}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-columns>section{min-width:0;padding:12px;border:1px solid #567365;border-top:3px solid #82bda5;border-radius:12px;background:linear-gradient(155deg,#203c30,#12271f)}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-columns>.warehouse-stored-pane{border-top-color:#d5b97b;background:linear-gradient(155deg,#303b2c,#18291f)}
#game-shell .warehouse-pane-heading{display:flex;flex-direction:column;gap:3px;padding:2px 0 10px;border-bottom:1px solid #b6cfaa25}
#game-shell .warehouse-pane-heading>span{color:#99c7b4;font-size:11px;letter-spacing:.06em}
#game-shell .warehouse-stored-pane .warehouse-pane-heading>span{color:#deca99}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-pane-heading h3{font-size:19px;border:0;padding:0;margin:0;color:#f1e5c6}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-pane-heading p{color:#c6d5bd;font-variant-numeric:tabular-nums}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-pane-hint{min-height:34px;font-size:11px;color:#a6baa9;margin:8px 0}
#game-shell .warehouse-compare-guide{font-size:12px;color:#c4cbb4;margin:12px 0 4px}
#game-shell .drawer:has(.warehouse-capacity) [data-storage-rows].warehouse-grid-workspace{display:flex;flex-direction:column;gap:12px;max-height:none;overflow:visible}
#game-shell .warehouse-slot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:7px;align-content:start;height:clamp(180px,30dvh,280px);overflow-y:auto;padding:5px;overscroll-behavior:contain;border-radius:8px;background:#091b1580;scrollbar-width:thin;scrollbar-color:#668b70 #11251d}
#game-shell .warehouse-slot{box-sizing:border-box;width:100%!important;min-width:0;height:64px;min-height:64px!important;padding:5px!important;position:relative;border:1px solid #6f8c6b70;border-radius:7px;background:linear-gradient(145deg,#304b3b,#1c3027);cursor:pointer}
#game-shell .warehouse-slot .item-image{width:44px;height:44px;max-width:100%;object-fit:contain;image-rendering:pixelated}
#game-shell .warehouse-slot .bag-slot-count{position:absolute;right:3px;bottom:2px;padding:0 3px;border-radius:3px;background:#0b1915e6;color:#fff1ce;font-size:11px;line-height:17px;pointer-events:none}
#game-shell .warehouse-slot:hover{border-color:#b8d0ac;background:#3a5541}
#game-shell .warehouse-slot[aria-pressed=true]{border:2px solid #edcf87;background:#43563b;box-shadow:0 0 0 1px #e7dbb233,inset 0 0 12px #dac17c20}
#game-shell .warehouse-slot:focus-visible{outline:2px solid #fff1c6;outline-offset:2px}
#game-shell .warehouse-slot-detail{box-sizing:border-box;min-width:0;min-height:185px;border:1px solid #71896655;border-radius:9px;background:#0d201b;padding:8px}
#game-shell .drawer:has(.warehouse-capacity) .warehouse-slot-detail .warehouse-item{display:block;margin:0;padding:3px;background:transparent;border:0}
#game-shell .warehouse-slot-detail .warehouse-actions{flex-wrap:wrap!important;margin-top:10px;justify-content:flex-start!important}
#game-shell .warehouse-slot-detail .warehouse-item button{min-height:44px!important;white-space:normal!important}
#game-shell .warehouse-comparison{display:flex;flex-wrap:wrap;gap:4px 8px;margin:8px 0;padding:7px;border:1px solid #75958140;border-radius:6px;background:#6d8e6e12;font-size:12px}
#game-shell .warehouse-comparison>span{flex:1;white-space:nowrap;color:#b9cdbb}
#game-shell .warehouse-comparison b{color:#f0d99f;margin-left:4px}
#game-shell .warehouse-comparison>small{flex-basis:100%;font-size:10px!important}
#game-shell .warehouse-bulk-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
#game-shell .warehouse-bulk-actions button{min-height:44px;padding:8px 14px;border:1px solid #8aa77f;border-radius:8px;background:#2a4937;color:#e3e9cb;cursor:pointer}
#game-shell .warehouse-bulk-actions button:disabled{opacity:.45;cursor:not-allowed}
#game-shell .warehouse-bulk-actions small{color:#a9bba8;font-size:11px}
@media(max-width:700px){
 #game-shell .drawer:has(.warehouse-capacity) .warehouse-columns{gap:6px}
 #game-shell .drawer:has(.warehouse-capacity) .warehouse-columns>section{padding:6px}
 #game-shell .drawer:has(.warehouse-capacity) .storage-list-controls{grid-template-columns:minmax(0,1fr);padding:0;background:transparent;gap:5px}
 #game-shell .drawer:has(.warehouse-capacity) .storage-list-controls :is(input,select){font-size:16px;min-height:44px;height:44px;max-width:100%}
 #game-shell .drawer:has(.warehouse-capacity) .warehouse-pane-heading h3{font-size:16px}
 #game-shell .drawer:has(.warehouse-capacity) .warehouse-pane-hint{min-height:48px;line-height:1.5}
 #game-shell .warehouse-slot-grid{grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:4px;padding:4px;height:210px}
 #game-shell .warehouse-slot{height:54px;min-height:54px!important;padding:3px!important}
 #game-shell .warehouse-slot .item-image{width:38px;height:38px}
 #game-shell .warehouse-slot-detail{padding:5px}
 #game-shell .warehouse-slot-detail .warehouse-actions{align-items:stretch!important;flex-direction:column}
 #game-shell .drawer:has(.warehouse-capacity) .warehouse-slot-detail .quantity-control{flex-wrap:wrap}
 #game-shell .warehouse-slot-detail .quantity-control>button{flex:1;min-width:0}
 #game-shell .warehouse-comparison{padding:5px;gap:4px}
}

/* Changing service never changes the outer drawer geometry. */
#game-shell #drawer:has(.warehouse-capacity) #drawer-content>.eyebrow,#game-shell #drawer:has(.warehouse-capacity) .warehouse-keeper-card :is(p,small),#game-shell #drawer:has(.warehouse-capacity) .warehouse-keeper-card+p{display:none}
@media(max-width:700px){#game-shell #drawer.drawer:is(.trade-drawer,.warehouse-drawer):has(.warehouse-capacity){inset:58px 8px 8px!important;transform:none!important;width:calc(100vw - 16px)!important;max-width:none!important;height:auto!important;max-height:none!important;padding:10px}}
@media(max-height:500px) and (orientation:landscape) and (pointer:coarse){#game-shell #drawer.drawer:is(.trade-drawer,.warehouse-drawer):has(.warehouse-capacity){inset:58px 8px 8px!important;transform:none!important;width:calc(100vw - 16px)!important;max-width:none!important;height:auto!important;max-height:none!important;padding:8px 12px}#game-shell #drawer:has(.warehouse-capacity) .warehouse-keeper-card{display:none}#game-shell #drawer:has(.warehouse-capacity) .warehouse-capacity{padding:4px 8px}#game-shell #drawer:has(.warehouse-capacity) .warehouse-capacity progress{height:4px}#game-shell #drawer:has(.warehouse-capacity) .warehouse-wallet{padding:2px 0}#game-shell #drawer:has(.warehouse-capacity) .warehouse-mode-tabs{margin:6px 0}}

/* Keep comparison and actions across the full selected-item card. */
#game-shell .drawer:has(.warehouse-capacity) .warehouse-slot-detail .warehouse-item>div:first-child{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center}
#game-shell .warehouse-slot-detail .warehouse-comparison,#game-shell .warehouse-slot-detail .item-inspect-button{grid-column:1/-1;width:100%;box-sizing:border-box}
#game-shell .warehouse-slot-detail .warehouse-comparison{display:flex;flex-direction:row}
#game-shell .warehouse-slot-detail .warehouse-comparison>small{width:100%;white-space:normal;line-height:1.5}
#game-shell .warehouse-slot-enhancement{position:absolute;top:2px;left:3px;padding:0 3px;border-radius:3px;background:#101d16df;color:#ffe0a0;font-size:11px;pointer-events:none}

#game-shell .warehouse-pages{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;color:#cbd7bf;font-size:12px;font-variant-numeric:tabular-nums}
#game-shell .warehouse-pages button{flex:none;width:44px;min-height:44px;border:1px solid #779775;border-radius:7px;background:#253e30;color:#f3dfad;font-size:22px;cursor:pointer}
#game-shell .warehouse-pages button:disabled{opacity:.35;cursor:default}
#game-shell .warehouse-pages span{text-align:center;overflow-wrap:anywhere}
@media(max-width:420px){#game-shell .warehouse-pages{flex-wrap:wrap;justify-content:space-between}#game-shell .warehouse-pages span{order:-1;flex-basis:100%;font-size:11px}}

@media(max-width:420px){#game-shell .warehouse-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The full App uses trade-drawer for warehouses; rely on the actual content.
   Place the window above the expanded chat while preserving chat state. */
#game-shell #drawer.drawer:is(.trade-drawer,.warehouse-drawer):has(.warehouse-capacity){z-index:110!important}
#game-shell #drawer:has(.warehouse-capacity) .warehouse-compare-guide{padding-right:44px}
#game-shell:has(#drawer:not(.hidden) .warehouse-capacity) :is(.combat-controls,.touch-stick){visibility:hidden;pointer-events:none}

/* The hunt service shares the warehouse frame and native menu artwork. */
#game-shell .warehouse-service-cards{gap:10px;flex:none}
#game-shell .warehouse-service-cards button{display:flex;align-items:center;gap:10px;min-width:0;min-height:68px;padding:10px 14px;border:1px solid #79937870;border-radius:11px;background:linear-gradient(145deg,#263e31,#152b23);color:#e9e4cb;text-align:left;cursor:pointer}
#game-shell .warehouse-service-cards button img{flex:none;object-fit:contain;image-rendering:pixelated}
#game-shell .warehouse-service-cards button>span{display:grid;gap:3px;min-width:0}
#game-shell .warehouse-service-cards button strong{font-size:15px;line-height:1.4}
#game-shell .warehouse-service-cards button small{font-size:11px;color:#b6c4ad;line-height:1.4}
#game-shell .warehouse-service-cards button[aria-pressed=true]{border-color:#e7c983;box-shadow:inset 0 0 0 1px #e7c98344;background:linear-gradient(135deg,#495437,#253c2c)}
#game-shell #drawer-content.warehouse-preparing{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
#game-shell .warehouse-preparing>:is(.eyebrow,h2,.warehouse-keeper-card,.warehouse-capacity,.warehouse-status,.warehouse-wallet,.warehouse-receipt),#game-shell .warehouse-preparing>.warehouse-keeper-card+p{display:none!important}
#game-shell .warehouse-preparing>.warehouse-service-cards{margin:0 38px 10px 0}
#game-shell .warehouse-preparing>[data-warehouse-hunt]{flex:1;min-height:0}
#game-shell .hunt-polished{display:flex;flex-direction:column;height:100%;min-height:0;color:#eee4c9}
#game-shell .hunt-polished .hunt-flat-heading{flex:none;display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:12px 14px;border:1px solid #bfaa6e6b;border-radius:12px;background:linear-gradient(115deg,#344831,#172c23)}
#game-shell .hunt-polished .hunt-flat-heading>div:first-of-type{flex:1;min-width:0}
#game-shell .hunt-polished .hunt-flat-heading h3{font-size:23px;line-height:1.35;margin:2px 0;color:#f0dbab}
#game-shell .hunt-polished .hunt-flat-heading p{font-size:12px;margin:4px 0 0}
#game-shell .hunt-polished .hunt-eyebrow{font-size:11px;color:#b4c6a8;line-height:1.5}
#game-shell .hunt-emblem{display:grid;place-items:center;width:58px;height:62px;flex:none;border:1px solid #bfa76d6b;border-radius:10px;background:#0b211c80}
#game-shell .hunt-emblem img,#game-shell .hunt-polished img{object-fit:contain;image-rendering:pixelated}
#game-shell .hunt-polished .hunt-pack-weight{font-size:11px;color:#aabea9;max-width:190px;white-space:normal}
#game-shell .hunt-polished .hunt-pack-weight b{display:block;font-size:13px;color:#ead49d;font-variant-numeric:tabular-nums}
#game-shell .hunt-polished .hunt-mode-nav{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
#game-shell .hunt-polished .hunt-mode-nav button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;padding:8px;min-height:62px;border:1px solid #67856880;border-radius:10px;background:linear-gradient(140deg,#2d4836,#1b3027);color:#dbe3ca}
#game-shell .hunt-polished .hunt-mode-nav button>span{display:grid;text-align:left;gap:2px}
#game-shell .hunt-polished .hunt-mode-nav small{font-size:10px;line-height:1.4;color:#afc0a1}
#game-shell .hunt-polished .hunt-mode-nav strong{font-size:14px;line-height:1.4}
#game-shell .hunt-polished .hunt-mode-nav [aria-pressed=true]{background:linear-gradient(135deg,#e5cc8d,#bda366);border-color:#f3dfac;color:#203322;box-shadow:0 2px 8px #0004}
#game-shell .hunt-polished .hunt-mode-nav [aria-pressed=true] small{color:#3d5435}
#game-shell .hunt-polished .hunt-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 244px;gap:12px;align-items:stretch}
#game-shell .hunt-polished .hunt-item-area{overflow:auto;overscroll-behavior:contain;padding:2px 6px 8px 1px;scrollbar-width:thin;scrollbar-color:#728965 #15291f}
#game-shell .hunt-polished .hunt-section-heading h4{font-size:16px;margin:0;color:#eddbb1}
#game-shell .hunt-polished .hunt-section-heading p{font-size:12px;margin:4px 0 12px}
#game-shell .hunt-polished .hunt-grid-toolbar{margin:10px 0;gap:6px}
#game-shell .hunt-polished .hunt-grid-toolbar input{font-size:14px;border-color:#6d876a80;padding:9px}
#game-shell .hunt-polished .hunt-grid-toolbar button{font-size:11px;padding:7px}
#game-shell .hunt-polished .hunt-item-grid{grid-template-columns:repeat(auto-fill,minmax(122px,1fr));max-height:none;overflow:visible;gap:8px;padding:2px}
#game-shell .hunt-polished .hunt-item-tile{border-color:#68856870;border-radius:10px;background:linear-gradient(145deg,#2a4233,#182e25)}
#game-shell .hunt-polished .hunt-item-tile.is-selected{border-color:#ecd08b;background:linear-gradient(135deg,#495736,#293f2d)}
#game-shell .hunt-polished .hunt-item-select{padding:10px 7px!important}
#game-shell .hunt-polished .hunt-item-select strong{font-size:12px;line-height:1.5}
#game-shell .hunt-polished .hunt-item-quantity{padding:0 2px}
#game-shell .hunt-polished .hunt-item-quantity button{flex:none;width:32px;padding:4px;min-height:44px}
#game-shell .hunt-polished .hunt-item-quantity input{flex:1;min-width:0;width:42px;font-size:14px;min-height:44px}
#game-shell .hunt-polished .hunt-item-goal{font-size:10px;color:#e9d39a;line-height:1.5;border-radius:4px;padding:2px 5px;background:#c0a36522}
#game-shell .hunt-polished .hunt-list-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;font-size:11px;color:#aebeaa}
#game-shell .hunt-polished .hunt-list-footer button{padding:6px 9px;font-size:11px}
#game-shell .hunt-polished .hunt-side{position:static;overflow:auto;min-height:0;overscroll-behavior:contain;padding:14px;background:linear-gradient(155deg,#25372a,#0d211b);border-color:#ad9b6473;box-shadow:0 4px 14px #0003}
#game-shell .hunt-polished .hunt-checkout-heading{padding-bottom:10px;margin-bottom:14px;border-bottom:1px solid #b5bb8a33}
#game-shell .hunt-polished .hunt-checkout-heading small{font-size:10px;letter-spacing:.06em;color:#b2c09d}
#game-shell .hunt-polished .hunt-checkout-heading h4{font-size:18px;color:#e9d29a;margin:3px 0 0}
#game-shell .hunt-polished .hunt-total-heading{font-size:13px;margin-bottom:10px}
#game-shell .hunt-polished .hunt-total-value{font-size:27px;color:#f0d394}
#game-shell .hunt-polished .hunt-primary{min-height:48px;font-size:13px;line-height:1.5;background:linear-gradient(110deg,#e4cc91,#bfa56a);color:#1b3020}
#game-shell .hunt-polished .hunt-bank{display:block;margin:14px 0 0;padding:0;border:0;border-top:1px solid #a8ba8e36}
#game-shell .hunt-polished .hunt-bank summary{min-height:44px;box-sizing:border-box;padding:12px 0;font-size:12px;color:#d9d4ac;cursor:pointer}
#game-shell .hunt-polished .hunt-bank input{font-size:15px;min-height:44px}
#game-shell .hunt-polished .hunt-confirm-note{font-size:10px;text-align:center;margin:10px 0 0;color:#9db29d}
#game-shell .hunt-polished .hunt-goal-warning{padding:7px;border:1px solid #c8a26977;border-radius:6px;background:#805c252b;font-size:11px;color:#f5d49b}
#game-shell .hunt-polished .hunt-craft-plan{padding:12px;border:1px solid #b9a87466;border-radius:10px;background:linear-gradient(125deg,#33442d88,#132d2488);margin:0 0 12px}
#game-shell .hunt-polished .hunt-linked-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#game-shell .hunt-polished .hunt-linked-heading>div{flex:1;min-width:100px}
#game-shell .hunt-polished .hunt-linked-heading small{font-size:10px;color:#aabd9c}
#game-shell .hunt-polished .hunt-linked-heading h4{font-size:14px;color:#ead7a1;margin:0}
#game-shell .hunt-polished .hunt-linked-heading button{font-size:11px;padding:6px 9px}
#game-shell .hunt-polished .hunt-craft-plan p{font-size:11px;line-height:1.6}
#game-shell .hunt-polished .hunt-auto-state{padding:5px 0;color:#c2ccaa}
#game-shell .hunt-polished .hunt-goal-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0 12px}
#game-shell .hunt-polished .hunt-goal-cards article{min-width:0;display:flex;align-items:center;gap:6px;padding:7px;background:#0d231b88;border:1px solid #879d6b55;border-radius:7px}
#game-shell .hunt-polished .hunt-goal-art{width:34px;height:34px;flex:none}
#game-shell .hunt-polished .hunt-goal-cards span{min-width:0;display:grid;gap:2px}
#game-shell .hunt-polished .hunt-goal-cards small{font-size:9px;color:#b5c49b}
#game-shell .hunt-polished .hunt-goal-cards strong{font-size:11px;line-height:1.45;overflow-wrap:anywhere}
#game-shell .hunt-polished .hunt-material-progress{margin:8px 0;border:1px solid #88a17533;border-radius:7px;background:#0b211b55;overflow:hidden}
#game-shell .hunt-polished :is(.hunt-material-labels,.hunt-material-row){display:grid;grid-template-columns:minmax(0,1fr) repeat(4,42px);gap:4px;align-items:center;padding:7px 6px;font-size:11px;text-align:center}
#game-shell .hunt-polished .hunt-material-labels{background:#a6b58412;font-size:10px;color:#b9c8a5}
#game-shell .hunt-polished .hunt-material-labels>span:first-child{text-align:left}
#game-shell .hunt-polished .hunt-material-row{border-top:1px solid #a4b48e20;font-variant-numeric:tabular-nums}
#game-shell .hunt-polished .hunt-material-row>span{display:flex;align-items:center;text-align:left;gap:6px;min-width:0}
#game-shell .hunt-polished .hunt-material-art{width:26px;height:26px;flex:none}
#game-shell .hunt-polished .hunt-material-row strong{font-weight:400;overflow-wrap:anywhere;font-size:11px;line-height:1.5}
#game-shell .hunt-polished .hunt-material-row b{font-weight:400;color:#d1dcc0}
#game-shell .hunt-polished .hunt-material-row .is-missing{color:#efc285}
#game-shell .hunt-polished .hunt-material-row .is-ready{color:#9ed3af}
#game-shell .hunt-polished .hunt-goal-select{width:100%;font-size:12px;min-height:44px;border-color:#b9b77d80}
#game-shell .hunt-polished .hunt-supplies-note{display:flex;gap:10px;padding:10px;margin-bottom:12px;border:1px solid #8bad7e55;border-radius:9px;background:#345c3822}
#game-shell .hunt-polished .hunt-supplies-note strong{font-size:13px;color:#d5dbb5}
#game-shell .hunt-polished .hunt-supplies-note p{font-size:11px}
#game-shell .hunt-polished .hunt-supplies-note button{font-size:11px;padding:5px 9px}
#game-shell .hunt-polished .hunt-feedback:not(:empty){margin:0 0 8px;flex:none;padding:7px 10px;font-size:12px}
@media(max-width:700px){
 #game-shell .warehouse-service-cards{gap:6px}
 #game-shell .warehouse-service-cards button{padding:7px;gap:6px;min-height:58px}
 #game-shell .warehouse-service-cards button img{width:26px;height:26px}
 #game-shell .warehouse-service-cards button strong{font-size:12px}
 #game-shell .warehouse-service-cards button small{font-size:9px}
 #game-shell .warehouse-preparing>.warehouse-service-cards{margin-right:28px;margin-bottom:8px}
 #game-shell .hunt-polished .hunt-flat-heading{padding:8px;gap:8px;margin-bottom:8px;flex-wrap:wrap}
 #game-shell .hunt-polished .hunt-flat-heading h3{font-size:20px}
 #game-shell .hunt-polished .hunt-flat-heading p{font-size:11px}
 #game-shell .hunt-polished .hunt-eyebrow{font-size:10px}
 #game-shell .hunt-emblem{width:40px;height:44px}
 #game-shell .hunt-emblem img{width:34px;height:34px}
 #game-shell .hunt-polished .hunt-pack-weight{flex-basis:100%;display:flex;justify-content:space-between;text-align:left;max-width:none;border-top:1px solid #a7be8c33;padding-top:4px;line-height:1.4}
 #game-shell .hunt-polished .hunt-pack-weight b{font-size:11px}
 #game-shell .hunt-polished .hunt-mode-nav{gap:5px;margin-bottom:8px}
 #game-shell .hunt-polished .hunt-mode-nav button{gap:4px;padding:7px 4px;min-height:58px}
 #game-shell .hunt-polished .hunt-mode-nav img{width:24px;height:24px}
 #game-shell .hunt-polished .hunt-mode-nav strong{font-size:11px}
 #game-shell .hunt-polished .hunt-mode-nav small{font-size:9px}
 #game-shell .hunt-polished .hunt-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(80px,1fr) auto;gap:8px}
 #game-shell .hunt-polished .hunt-item-area{padding-right:3px}
 #game-shell .hunt-polished .hunt-item-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 #game-shell .hunt-polished .hunt-item-select{padding:8px 4px!important}
 #game-shell .hunt-polished .hunt-item-select strong{font-size:11px}
 #game-shell .hunt-polished .hunt-item-select small{font-size:10px}
 #game-shell .hunt-polished .hunt-item-quantity button{width:27px}
 #game-shell .hunt-polished .hunt-item-quantity input{width:32px;font-size:16px}
 #game-shell .hunt-polished .hunt-side{padding:8px 10px;max-height:270px}
 #game-shell .hunt-polished .hunt-checkout-heading,#game-shell .hunt-polished .hunt-confirm-note{display:none}
 #game-shell .hunt-polished .hunt-summary-body{display:grid;grid-template-columns:1fr 1fr;gap:3px 8px}
 #game-shell .hunt-polished .hunt-total-heading{font-size:11px;margin:0}
 #game-shell .hunt-polished .hunt-total-value{font-size:20px;margin:0}
 #game-shell .hunt-polished .hunt-total-line{font-size:11px;margin:0}
 #game-shell .hunt-polished .hunt-summary-body>small{font-size:10px}
 #game-shell .hunt-polished .hunt-summary-body>p:not(.hunt-hint){font-size:11px;margin:0}
 #game-shell .hunt-polished .hunt-summary-body>:is(.hunt-primary,.hunt-hint,.hunt-goal-warning){grid-column:1/-1}
 #game-shell .hunt-polished .hunt-hint{font-size:10px;min-height:0;margin:2px 0 0}
 #game-shell .hunt-polished .hunt-bank{margin-top:4px}
 #game-shell .hunt-polished .hunt-bank summary{padding:12px 0 6px;font-size:11px}
 #game-shell .hunt-polished .hunt-grid-toolbar input{font-size:16px}
 #game-shell .hunt-polished .hunt-craft-plan{padding:9px}
 #game-shell .hunt-polished .hunt-goal-cards{grid-template-columns:1fr}
 #game-shell .hunt-polished .hunt-goal-cards article{padding:5px;gap:9px}
 #game-shell .hunt-polished .hunt-goal-cards span{grid-template-columns:64px 1fr;align-items:center;flex:1}
 #game-shell .hunt-polished :is(.hunt-material-labels,.hunt-material-row){grid-template-columns:minmax(0,1fr) repeat(4,32px);padding:6px 4px;gap:2px}
 #game-shell .hunt-polished .hunt-material-art{width:22px;height:22px}
 #game-shell .hunt-polished .hunt-material-row>span{gap:3px}
 #game-shell .hunt-polished .hunt-material-row strong{font-size:10px}
}
@media(max-width:360px){#game-shell .hunt-polished .hunt-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#game-shell .warehouse-service-cards button img{display:none}#game-shell .hunt-polished .hunt-mode-nav img{width:20px;height:20px}}
@media(max-height:500px) and (orientation:landscape){
 #game-shell .warehouse-preparing>.warehouse-service-cards{margin-bottom:5px}
 #game-shell .warehouse-service-cards button{min-height:44px;padding:4px 8px}
 #game-shell .warehouse-service-cards button small{display:none}
 #game-shell .hunt-polished .hunt-flat-heading{display:none}
 #game-shell .hunt-polished .hunt-mode-nav{margin-bottom:6px;gap:5px}
 #game-shell .hunt-polished .hunt-mode-nav button{min-height:44px;padding:3px 7px}
 #game-shell .hunt-polished .hunt-mode-nav img{width:26px;height:26px}
 #game-shell .hunt-polished .hunt-mode-nav small{display:none}
 #game-shell .hunt-polished .hunt-workspace{grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:minmax(0,1fr);gap:8px}
 #game-shell .hunt-polished .hunt-side{max-height:none;padding:9px}
 #game-shell .hunt-polished .hunt-checkout-heading{display:none}
 #game-shell .hunt-polished .hunt-summary-body{display:block}
 #game-shell .hunt-polished .hunt-summary-body>:is(.hunt-total-heading,.hunt-total-value,.hunt-total-line){margin:0 0 5px}
 #game-shell .hunt-polished .hunt-total-value{font-size:20px}
 #game-shell .hunt-polished .hunt-confirm-note{display:none}
 #game-shell .hunt-polished .hunt-goal-cards{grid-template-columns:1fr}
}
/* Reserve the native close button; compact chrome on short portrait screens. */
#game-shell .warehouse-preparing>.warehouse-service-cards{margin-right:50px}
@media(max-width:700px) and (max-height:700px){
 #game-shell .warehouse-service-cards button{min-height:44px;padding:6px}
 #game-shell .warehouse-service-cards button small{display:none}
 #game-shell .hunt-polished .hunt-flat-heading{padding:6px 8px;margin-bottom:6px;gap:6px}
 #game-shell .hunt-polished .hunt-flat-heading h3{font-size:18px;margin:0}
 #game-shell .hunt-polished .hunt-flat-heading p,#game-shell .hunt-polished .hunt-eyebrow{display:none}
 #game-shell .hunt-emblem{width:32px;height:34px}
 #game-shell .hunt-emblem img{width:28px;height:28px}
 #game-shell .hunt-polished .hunt-mode-nav button{min-height:44px;padding:4px}
 #game-shell .hunt-polished .hunt-mode-nav small{display:none}
 #game-shell .hunt-polished .hunt-mode-nav strong{font-size:11px}
 #game-shell .hunt-polished .hunt-mode-nav img{width:20px;height:20px}
 #game-shell .hunt-polished .hunt-summary-body>:is(.hunt-total-heading,.hunt-total-line){display:none}
 #game-shell .hunt-polished .hunt-side{padding:6px 8px}
 #game-shell .hunt-polished .hunt-primary{min-height:44px}
 #game-shell .hunt-polished .hunt-bank{margin-top:2px}
 #game-shell .hunt-polished .hunt-hint{font-size:10px;line-height:1.4}
}
@media(max-height:500px) and (orientation:landscape){#game-shell .hunt-polished .hunt-summary-body .hunt-total-line{display:none}#game-shell .hunt-polished .hunt-side .hunt-bank{margin-top:4px}}
#game-shell .hunt-polished .hunt-list-loading{grid-column:1/-1;padding:18px 10px;text-align:center;color:#cbd4b1}
#game-shell .hunt-polished .hunt-list-loading progress{display:block;width:100%;height:7px;margin:12px 0;accent-color:#d3bb7d}
