.market{position:absolute;inset:0;z-index:6;overflow:auto;overscroll-behavior:contain;background:#fff2d5;color:#264638;font:700 16px system-ui}
.market-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 12px 8px}
.market-head p{margin:0;color:#516c4e;font-size:11px;letter-spacing:.13em}
.market-head h1{margin:.12em 0;white-space:nowrap;font-size:clamp(20px,6.1vw,36px)}
.market-head b{font-size:13px;border-radius:20px;padding:5px 8px;background:#ffe0a6;color:#644b33;text-align:right}
.market-shelf,.market-detail{padding:0 12px 14px}
.market button{width:auto;min-height:44px;background:#e6ead1;color:#294a3d;border:1px solid #c0c39d;box-shadow:none;border-radius:9px;padding:6px 9px;font:800 14px system-ui;text-align:center}
.market button:active{transform:none;box-shadow:none}
.market button[aria-pressed=true]{background:#315c48;color:#fff4d4;border-color:#264c3c}
.market button:disabled{opacity:.55;color:#6b6251;cursor:default}
.market-areas,.market-toggles,.market-detail-top,.market-actions,.market-confirm{display:flex;gap:5px;flex-wrap:wrap}
.market-areas button{flex:1}
.market-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0}
.market-controls label{font-size:13px;min-width:0}
.market-controls input,.market-controls select{width:100%;height:44px;background:#fffaed;color:#294a3d;border:1px solid #baa984;font:700 16px system-ui;border-radius:8px;padding:4px 6px}
.market-controls option{font-size:15px}
.market-toggles button:last-child{margin-left:auto}
.market-meta{font-size:13px;color:#51624a;margin:6px 0}
.market-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.market button.market-tile{background:#fffae9;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;gap:1px 5px;text-align:left;padding:6px;min-height:57px}
.market-item-name{font-size:13px;line-height:1.04}.market-icon{grid-row:span 2;font-size:19px;align-self:center}
.market-tile small{font-size:11px;color:#607054;text-align:left;white-space:nowrap}
.market-detail-top{justify-content:space-between;margin-bottom:8px}
.market-shot{aspect-ratio:8/5;border-radius:12px;border:1px solid #a7986e;max-height:38dvh;background:#becd91}
.market-shot>svg{height:100%;width:100%;object-fit:contain}
.market-detail h2{margin:0;font-size:clamp(19px,5vw,25px)}
.market-note{font-size:14px;min-height:2em;margin:4px 0 8px;color:#4b5c43}
.market-actions [data-market=buy],.market-confirm [data-market=yes]{background:#ffcf80;color:#594031;border-color:#bd9865}
.market-confirm{margin-top:8px;background:#ffe7b6;padding:6px;border-radius:10px}
.market-confirm p{font-size:14px;margin:0;width:100%}
.prop-spin{animation:market-spin 5s linear infinite;transform-box:view-box}
.prop-pio{animation:market-hop 3.4s ease-in-out infinite}
@keyframes market-spin{to{transform:rotate(360deg)}}
@keyframes market-hop{0%,30%,100%{transform:translateY(0)}12%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.prop-spin,.prop-pio{animation:none}}

.market-icon svg{display:block;width:32px;height:34px}
