/* Original Acorn Exchange artwork on a felt shop table. */
#shopPanel{background:radial-gradient(ellipse at top right,#405f60,#173d3b 65%);color:#f7edd3;padding:20px;border-radius:12px;box-shadow:inset 0 0 0 3px #81907b}
#shopPanel .shop-welcome{background:none;padding:0 0 12px;gap:8px}#shopPanel .shop-welcome h3{color:#fff3c9;font-size:26px}#shopPanel .shop-welcome p{color:#d3ded0;font-size:12px}#shopPanel #shopkeeper{width:55px;height:50px}#shopPanel .shop-bank{color:#ffd66e;font-size:17px;white-space:nowrap}#shopPanel .shop-bank b{font-size:30px}
.exchange-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.75fr);gap:18px;align-items:start}.exchange-shelves{min-width:0}#shopPanel .shelf-heading{margin:12px 0;color:#f6e7b1;gap:8px;flex-wrap:wrap}#shopPanel .shelf-heading small{display:block;padding-top:4px;color:#b2c8be}#shopPanel .reroll{background:#b6523a;color:white;border-color:#edb47b;box-shadow:0 4px #762d26;font-size:12px;min-height:44px}
#shopPanel .shop-deal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px;border:3px solid #82958b;border-radius:12px;background:#18312e;box-shadow:inset 0 3px 5px #0005;align-items:stretch}#shopPanel .shop-card{width:auto;min-width:0;min-height:0;margin:0;display:flex;flex-direction:column;gap:5px;padding:9px 7px;background:linear-gradient(140deg,#fff9e6,#d7d3b0);border:3px solid #adac8e;border-radius:10px;color:#263c36;box-shadow:0 5px 0 #101e1d;cursor:pointer;transition:transform .15s,border-color .15s}#shopPanel .shop-card.selected,#shopPanel .shop-card:focus-visible{transform:translateY(-5px);border-color:#ffd16c;outline:2px solid #fff3bb;outline-offset:2px}#shopPanel .shop-card canvas{width:100%;height:90px;min-height:0;object-fit:contain;background:repeating-linear-gradient(45deg,#b1c8bb44 0 7px,#f8efd833 7px 14px);border:1px solid #819481;border-radius:6px}#shopPanel .shop-card h3{font-size:13px;color:#263c36;line-height:1.2;margin:3px 0;min-height:32px}#shopPanel .slot-tag{font-size:8px;color:#52665a;min-height:20px}#shopPanel .slot-tag span{font-size:7px}#shopPanel .card-price{align-self:center;background:#263d37;color:#ffe398;padding:5px 9px;border-radius:6px;font-size:13px}.inspect-hint{font-size:9px;text-align:center;color:#456452;margin-top:auto}
#shopPanel .special-shelf{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;padding:12px;border:3px solid #82958b;border-radius:12px;background:#18312e}#shopPanel .special-shelf h4{font-size:10px;letter-spacing:1px;margin:0 0 12px;color:#dfd3ad}#shopPanel .special-shelf .shop-card{width:100%;max-width:170px;margin:auto}#shopPanel .special-shelf p{font-size:12px;color:#d8decf}.shop-detail{position:sticky;top:8px;border:3px solid #a1b1a0;border-radius:10px;background:#f5efd9;color:#293e38;padding:15px;box-shadow:0 5px 0 #102f2c}.shop-detail h3{font-size:20px;color:#293e38;margin:8px 0}.shop-detail p{font-size:12px;line-height:1.45;margin:10px 0}.shop-detail small{font-size:10px;line-height:1.4;display:block}.shop-detail table{width:100%;border-collapse:collapse;font-size:10px;margin:12px 0}.shop-detail th,.shop-detail td{padding:6px 3px;border-bottom:1px solid #bbc3ac;text-align:left}.shop-detail th{font-size:9px}.stat-changed td:last-child{background:#d1e4bc;font-weight:bold}.shop-detail .buy{width:100%;margin-top:15px;min-height:46px;background:#c76b42;color:#fff6da;border:2px solid #7b402d;box-shadow:0 4px #713e2e}.shop-detail .buy:disabled{background:#d6d0bb;color:#5a6253;opacity:1;box-shadow:none}.shop-inventory{font-size:11px;color:#d6e0cc;line-height:1.6;border-top:1px solid #6c887b;padding-top:10px}#shopPanel .door-upgrade{background:#294d46;border:2px solid #718d79;margin:12px 0;padding:10px;color:#f5e6bf;display:block}#shopPanel .door-upgrade h3{color:#fff0c0;font-size:14px}#shopPanel .door-upgrade p{font-size:11px;color:#d9e2ce}#shopPanel .door-upgrade .buy{min-height:44px;color:#293e38}#shopPanel .shop-footnote{color:#c6d5c6;line-height:1.5}#shopPanel button:focus-visible{outline:3px solid #ffdc82;outline-offset:3px}#shopPanel button:disabled{cursor:default}#shopPanel [hidden]{display:none!important}
@media(min-width:1100px){.workshop-panel:has(#shopPanel:not([hidden])) .workshop-layout{grid-template-columns:27% 73%}}
@media(max-width:950px){.exchange-layout{grid-template-columns:1fr}.shop-detail{position:static}.shop-detail table{font-size:11px}#shopPanel .special-shelf .shop-card{max-width:180px}#shopPanel .shop-card canvas{height:100px}}
@media(max-width:600px){#shopPanel{padding:12px}#shopPanel .shop-welcome h3{font-size:20px}#shopPanel .shop-bank{font-size:12px}#shopPanel .shop-bank b{font-size:22px}#shopPanel .shop-deal{gap:8px;padding:9px;grid-template-columns:repeat(2,minmax(0,1fr))}#shopPanel .shop-card canvas{height:85px}#shopPanel .shop-card h3{font-size:13px}#shopPanel .shop-detail{scroll-margin-bottom:12px}.shop-detail{padding:12px}#shopPanel .shop-welcome #shopkeeper{display:none}#shopPanel .shop-card{padding:8px}#shopPanel .special-shelf{gap:12px}#shopPanel .shelf-heading{font-size:11px}.exchange-shelves:has(.selected)~.shop-detail{border-color:#ffd16c}}
@media(prefers-reduced-motion:reduce){#shopPanel .shop-card{transition:none}}
#shopPanel .cargo-plan{margin:18px 0;padding:12px;border:2px solid #789486;border-radius:10px;background:#294d46;color:#f5e6bf;font-size:12px}#shopPanel .cargo-plan summary{min-height:28px;cursor:pointer;font-weight:bold}#shopPanel .cargo-plan label{display:block;margin:8px 0}#shopPanel .cargo-plan select{max-width:100%;width:100%;padding:10px;color:#253b35;background:#f5efd9;border:2px solid #93a28e;border-radius:6px}#cargoPlanDetail p{line-height:1.5}#cargoPlanDetail small{display:block;line-height:1.5;margin:10px 0}#cargoPlanDetail button{margin:5px 6px 5px 0;min-height:44px}#cargoPlanDetail button:disabled{color:#cdd5c4;background:#445c50;opacity:1}
@media(min-width:1100px){#shopPanel .shop-card canvas{height:68px}#shopPanel .special-shelf .shop-card canvas{height:60px}#shopPanel .shop-card h3{min-height:28px}#shopPanel .shop-welcome{padding-bottom:4px}#shopPanel .shop-welcome p{margin:4px 0}#shopPanel .shop-inventory{margin:6px 0}#shopPanel .shop-deal{padding:10px}#shopPanel .special-shelf{margin-top:12px}}
#shopPanel .cargo-plan p{color:#eef1dc}#shopPanel .slot-tag span{overflow:hidden;text-overflow:ellipsis;max-width:60%;white-space:nowrap}
.shop-detail .fit-outcome{display:block;padding:9px 10px;border-radius:6px;font-size:12px;line-height:1.4;background:#d8e7be;color:#294333}.shop-detail .fit-stored{background:#f0d9a9;color:#5b402a}.shop-detail .shop-stats{margin:12px 0;font-size:12px;color:#354d42}.shop-detail .shop-stats summary{cursor:pointer;padding:10px 0;min-height:40px;font-weight:bold}.shop-detail .shop-stats table{margin:4px 0 12px}.shop-detail .shop-fit{color:#354d42}
/* Three finds, one invitation, one clear route back to the clearing. */
.workshop-panel.shopping{width:min(1100px,96vw)}
.shopping .rig-preview,.shopping .tabs,.shopping .cargo-plan{display:none}
.shopping .workshop-layout{display:block}.shopping .workshop-tools{padding:24px}
.shopping .close{position:absolute;right:18px;top:14px;width:64px;height:58px;border-radius:16px;font-size:17px;background:#d9b65e;color:#203b32}
.shopping .panel-title{padding-right:78px}.shopping .shop-welcome{grid-template-columns:80px 1fr auto}.shopping #shopkeeper{width:80px;height:60px}
.shopping .exchange-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}
.shopping .exchange-shelves{grid-column:1;grid-row:1}.shopping .shop-detail{grid-column:2;grid-row:1 / span 2}
.shopping .door-upgrade{grid-column:1;grid-row:2;justify-self:start;width:180px;min-height:180px;box-sizing:border-box;padding:14px;display:flex;flex-direction:column;gap:7px;align-items:center;text-align:center;border:3px double #dbb96b;border-radius:18px;background:radial-gradient(ellipse at top,#56764c,#233b35);box-shadow:0 5px 0 #142a23}
.door-art{font-size:46px;line-height:1;color:#e7d6a1;transform:rotate(-5deg)}.shopping .door-upgrade h3,.shopping .door-upgrade p{margin:0}.shopping .door-upgrade small{font-size:11px}
.shopping .shop-deal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shopping .shop-card{min-width:0;min-height:210px;padding:12px;border-radius:18px}.shopping .shop-card canvas{width:100%;height:100px;object-fit:contain}.shopping .shop-card h3{font-size:17px}
.shopping .reroll{width:85px;min-height:60px;border-radius:14px;white-space:normal}.shopping .buy{width:auto;min-width:78px;min-height:52px;border-radius:14px;white-space:normal}
.creature-queue{padding:10px 14px;border-radius:12px;background:#243e33;color:#f2dfaa;font-weight:700}
#openBuild{width:68px;min-height:68px;border-radius:18px}#openBuild span{font-size:27px}
@media(max-width:700px){.shopping .workshop-tools{padding:16px 12px}.shopping .exchange-layout{grid-template-columns:minmax(0,1fr)}.shopping .shop-detail{grid-column:1;grid-row:2;position:static;max-height:none}.shopping .door-upgrade{grid-row:3;width:164px;min-height:164px}.shopping .shop-deal{gap:6px}.shopping .shop-card{padding:8px 5px;min-height:175px}.shopping .shop-card canvas{height:73px}.shopping .shop-card h3{font-size:13px}.shopping .slot-tag{font-size:9px}.shopping .shop-welcome h3{font-size:20px}.shopping .shop-welcome p:not(.eyebrow){font-size:12px}.shopping .shop-welcome{grid-template-columns:1fr auto}.shopping #shopkeeper{display:none}.shopping .shop-inventory{font-size:11px}.shopping .close{width:58px;height:54px}.shopping .panel-title h2{font-size:22px}}
.shopping #shopPanel .reroll{width:84px;min-height:60px;max-width:84px;white-space:normal;padding:7px}
.shopping #shopPanel{padding:16px}.shopping .shop-welcome{padding:12px}.shopping .shop-inventory{margin:8px 0}.shopping .creature-queue{margin:8px 0}.shopping #shopPanel .shop-card canvas{height:80px}.shopping #shopPanel .shop-card{border-radius:16px}.shopping .door-upgrade{margin-top:0;min-height:155px;width:170px;padding:10px;gap:4px}.shopping .door-upgrade .buy{font-size:12px;padding:7px;min-height:44px}
.door-art{display:block;width:34px;height:42px;box-sizing:border-box;border:3px solid #dfc18d;border-radius:20px 20px 2px 2px;background:repeating-linear-gradient(90deg,#9c693f 0 7px,#69452e 7px 9px);box-shadow:0 0 0 4px #182c27;position:relative;transform:rotate(-5deg);margin:4px}.door-art::after{content:'';position:absolute;right:3px;top:23px;border-radius:50%;width:4px;height:4px;background:#f5db86}
.game>#openBuild{position:absolute;left:18px;bottom:22px;z-index:9;background:#eee4c6;color:#324d38;border:2px solid #6b8057;box-shadow:0 4px #344b38;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px;font-size:11px}.game>#openBuild[hidden]{display:none}
#pauseMenu #openMapEditor{width:88px;min-height:76px;border-radius:16px;white-space:normal;font-size:13px;padding:8px}
.visitor-preview{position:absolute;left:98px;bottom:22px;z-index:5;display:flex;gap:6px;pointer-events:none}.visitor-preview[hidden]{display:none}.visitor-preview>div{width:90px;min-height:86px;display:flex;flex-direction:column;align-items:center;border:1px solid #9dac83;border-radius:14px;background:#eee6cbdc;color:#324c38;padding:3px}.visitor-preview canvas{width:70px;height:43px}.visitor-preview span{font-size:10px;text-align:center}.visitor-preview small{font-size:8px;letter-spacing:.08em;margin-top:4px;color:#586c4b}@media(max-width:600px){.visitor-preview{left:88px;bottom:18px}.visitor-preview>div{width:70px;min-height:78px}.visitor-preview canvas{width:60px;height:40px}.visitor-preview span{font-size:9px}}
.shopping .panel-title{min-height:38px;margin:0 0 8px;padding:0 78px 0 0}.shopping .panel-title .eyebrow{display:none}.shopping .panel-title h2{font-size:18px;margin:0}
.shopping #shopPanel .reroll{min-width:84px;flex:0 0 84px}.shopping #shopPanel .door-upgrade{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex-wrap:nowrap;padding:10px;margin:0;width:170px;min-height:155px;border:3px double #dbb96b;border-radius:18px;background:radial-gradient(ellipse at top,#56764c,#233b35)}.shopping #shopPanel .door-upgrade p{flex:none}.shopping #shopPanel .door-upgrade h3{margin:0}.shopping #shopPanel .shop-welcome p{margin:3px 0}
@media(max-width:700px){.shopping #shopPanel .shop-deal{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px}.shopping #shopPanel .shop-card canvas{height:65px}.shopping #shopPanel .shop-card h3{font-size:12px}.shopping .panel-title h2{font-size:16px}.shopping #shopPanel .door-upgrade{width:155px;min-height:155px}}
@media(max-width:700px){.shopping .door-upgrade{grid-row:2}.shopping .shop-detail{grid-row:3}.shopping #shopPanel .shop-deal{margin-bottom:4px}}
