/* W024: drag a worn piece out of the character window, throw items onto the map (src/item-throw.js + src/adventure-hud.js). */
.item-throw-ghost{position:fixed;left:0;top:0;z-index:30;width:64px;height:64px;margin:-32px 0 0 -32px;pointer-events:none;border-radius:12px;background:rgba(24,18,30,.82);border:2px solid #d8b465;box-shadow:0 6px 18px rgba(0,0,0,.45);display:grid;place-items:center}
.item-throw-ghost[hidden]{display:none}
.item-throw-ghost img,.item-throw-ghost svg{width:52px;height:52px;object-fit:contain}
.item-throw-ghost[data-over="bag"]{border-color:#7fd17a}
.item-throw-ghost[data-over="map"],.adventure-drag-ghost.adventure-drag-throw{border-color:#f0a24a;box-shadow:0 0 0 3px rgba(240,162,74,.35),0 6px 18px rgba(0,0,0,.45)}
.item-throw-ghost[data-over="map"]::after,.adventure-drag-ghost.adventure-drag-throw::after{content:'โยนลงพื้น';position:absolute;left:50%;top:100%;transform:translate(-50%,6px);white-space:nowrap;padding:3px 9px;border-radius:999px;background:#2a1d12;border:1px solid #f0a24a;color:#ffe2b8;font:600 13px/1.3 'Noto Sans Thai',sans-serif}
.item-throw-ghost[data-over="bag"]::after{content:'ถอดเก็บกระเป๋า';position:absolute;left:50%;top:100%;transform:translate(-50%,6px);white-space:nowrap;padding:3px 9px;border-radius:999px;background:#14251a;border:1px solid #7fd17a;color:#d9f7d3;font:600 13px/1.3 'Noto Sans Thai',sans-serif}
body.item-throw-dragging,body.item-throw-dragging *{cursor:grabbing!important}
.cf-slot.item-throw-source{opacity:.45}
#equipment-dialog.item-throw-bag-hover{outline:3px solid #7fd17a;outline-offset:-3px}
.item-throw-dialog{width:min(360px,calc(100vw - 32px));padding:18px 20px 16px;border:2px solid #b8924a;border-radius:14px;background:linear-gradient(#2b2131,#1b1520);color:#f4e7cf;font:15px/1.5 'Noto Sans Thai',sans-serif;box-shadow:0 18px 50px rgba(0,0,0,.6)}
.item-throw-dialog::backdrop{background:rgba(8,6,12,.45)}
.item-throw-dialog h2{margin:0 0 10px;font-size:18px;color:#f3d27a}
.item-throw-item{display:flex;gap:12px;align-items:center}
.item-throw-art{flex:0 0 56px;height:56px;border-radius:10px;background:rgba(0,0,0,.35);border:1px solid #6d5634;display:grid;place-items:center;overflow:hidden}
.item-throw-art img,.item-throw-art svg{width:48px;height:48px;object-fit:contain}
.item-throw-text{margin:0;font-weight:600}
.item-throw-amount{display:flex;gap:8px;align-items:center;margin:12px 0 0}
.item-throw-amount[hidden]{display:none}
.item-throw-amount input{width:90px;padding:6px 8px;border-radius:8px;border:1px solid #8a6d3f;background:#120e16;color:#fff;font:inherit}
.item-throw-note{margin:10px 0 0;font-size:13px;color:#cbb79a}
.item-throw-status{min-height:1.4em;margin:6px 0 0;font-size:13px;color:#ffb3a1}
.item-throw-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.item-throw-dialog button{min-height:40px;padding:6px 14px;border-radius:9px;border:1px solid #8a6d3f;background:#3a2c22;color:#f4e7cf;font:inherit;cursor:pointer}
.item-throw-dialog .item-throw-ok{background:#8a4a1f;border-color:#f0a24a;color:#fff3df;font-weight:700}
.item-throw-dialog button:disabled{opacity:.55;cursor:default}
