/* BlackVeil v0.2.68.2 — synchronized icon-slot trading and top request banner. */
.bv-trade-panel[hidden],.bv-trade-detail[hidden],.bv-trade-invite[hidden]{display:none!important}
.bv-trade-panel{box-sizing:border-box;color:#eadac0;font-family:'Hahmlet',Pretendard,Arial,sans-serif}
.bv-trade-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:35;width:min(890px,96vw);height:min(525px,91dvh);display:flex;flex-direction:column;background:linear-gradient(153deg,#211e1bfa,#101411fc);border:2px solid #877050;border-radius:5px;box-shadow:0 14px 45px #000d;pointer-events:auto}
.bv-trade-panel *{box-sizing:border-box}
.bv-trade-head{display:flex;align-items:center;gap:10px;background:linear-gradient(#392d20,#292219);padding:9px 12px;border-bottom:1px solid #876c46;flex:0 0 auto}
.bv-trade-head strong{color:#e8ca93;letter-spacing:.08em}
.bv-trade-head small{color:#c9b591;margin-left:auto;font-size:11px}
.bv-trade-head button{border:0;background:none;color:#f2dcb6;font-size:21px;cursor:pointer}
.bv-trade-body{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:11px 12px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6d593d #121511}
.bv-trade-body h4{color:#e9cfa4;margin:5px 0 10px;font-size:13px}
.bv-trade-hint,.bv-trade-empty{font-size:10px;line-height:1.5;color:#bfb09a;margin:7px 0}
.bv-trade-layout{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);gap:12px;min-width:0;align-items:start}
.bv-trade-trading,.bv-trade-bag{border:1px solid #796345;background:linear-gradient(145deg,#1c1d19,#111510);padding:9px;min-width:0}
.bv-trade-session-title,.bv-trade-section-title{display:flex;justify-content:space-between;align-items:center;gap:6px;padding-bottom:6px;margin-bottom:8px;border-bottom:1px solid #735b3e85;min-width:0}
.bv-trade-session-title strong,.bv-trade-section-title strong{font-size:12px;color:#ead0a1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bv-trade-session-title span,.bv-trade-section-title small{font-size:9px;color:#b6a17c;white-space:nowrap}
.bv-trade-proposals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bv-trade-proposal{min-width:0;background:#0c100c9c;border:1px solid #5b4d36;padding:6px 5px}
.bv-trade-proposal-label{color:#bcac8a;font-size:10px;text-align:center;min-height:21px;white-space:nowrap}
.bv-trade-proposal-label.is-ready{color:#8cd4b7}
.bv-trade-offer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;align-content:start;min-height:99px;padding:3px;background:#11140f;border:1px solid #473b2a;transition:border-color .12s,box-shadow .12s}
.bv-trade-offer-grid.bv-trade-drop-active{border:1px solid #92d9b5;box-shadow:inset 0 0 0 1px #92d9b5,0 0 12px #78bb8b70}
.bv-trade-offer-slot,.bv-trade-bag-slot{min-width:0;aspect-ratio:1;display:flex;justify-content:center;align-items:center;position:relative;padding:1px;background:linear-gradient(130deg,#262923,#141916);border:1px solid #5f523c;border-radius:2px;color:#d9c4a0;cursor:pointer;touch-action:none}
.bv-trade-offer-slot:hover:not(:disabled),.bv-trade-bag-slot:hover:not(:disabled){border-color:#ceaa6c;background:#303023}
.bv-trade-bag-slot:disabled{cursor:default;opacity:.78}
.bv-trade-bag-slot.is-offered{background:#42321c;border-color:#bd9048}
.bv-trade-bag-slot.is-locked{filter:grayscale(.75)}
.bv-trade-bag-slot.is-dragging{opacity:.38}
.bv-trade-icon-frame{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center}
.bv-trade-icon-frame img{display:block;width:91%;height:91%;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(0 1px 2px #000a)}
.bv-trade-fallback{color:#d2ad72;font-size:20px}
.bv-trade-slot-count{position:absolute;bottom:0;right:0;background:#080b09ac;color:#f2deb5;font-size:9px;line-height:1.2;padding:1px 2px;pointer-events:none}
.bv-trade-slot-tag{position:absolute;top:0;left:0;right:0;background:#84602ed6;color:#fff0cc;font-size:8px;line-height:1.3;pointer-events:none}
.bv-trade-slot-index{color:#494739;font-size:10px}
.bv-trade-proposal-money{display:flex;justify-content:space-between;margin:7px 2px 1px;color:#b9ac91;font-size:10px}
.bv-trade-proposal-money strong{color:#e1c181;font-size:10px;font-weight:600}
.bv-trade-gold-row{display:flex;align-items:center;gap:8px;margin:14px 0 7px;color:#d6c099;font-size:11px}
.bv-trade-gold-row span{flex:0 0 auto}
.bv-trade-gold-row input{max-width:180px;min-width:0;flex:1;background:#10140f;border:1px solid #796749;border-radius:3px;color:#f1dfb6;padding:7px;font-size:12px}
.bv-trade-gold-row small{color:#d7bd86}
.bv-trade-actions{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}
.bv-trade-actions button,.bv-trade-pages button{border:1px solid #91764e;background:linear-gradient(#58442e,#35281b);color:#f4dfbc;border-radius:3px;padding:7px 9px;cursor:pointer;font-size:11px;font-weight:600}
.bv-trade-actions button:hover:not(:disabled),.bv-trade-pages button:hover:not(:disabled){border-color:#c9a66b}
.bv-trade-actions button:disabled,.bv-trade-pages button:disabled{opacity:.44;cursor:default}
.bv-trade-offer-tools{flex-wrap:wrap}.bv-trade-dirty{font-size:9px;color:#e5ad81}
.bv-trade-bag .bv-trade-hint{margin:5px 0 9px;min-height:28px}
.bv-trade-bag-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;padding:5px;background:linear-gradient(140deg,#0c110e,#1c211a);border:1px solid #564835}
.bv-trade-pages{display:flex;justify-content:center;gap:7px;margin-top:12px}
.bv-trade-pages button{min-width:29px;padding:6px}
.bv-trade-pages button.is-current{background:#8b673b;color:#10100d;border-color:#d1aa72}
.bv-trade-final-actions{border-top:1px solid #79603d79;padding-top:10px;margin:11px 0 0}
.bv-trade-final-actions button{min-width:110px}
.bv-trade-final-actions button:nth-child(2){background:linear-gradient(#6b5a32,#473e1f)}
.bv-trade-final-actions button:last-child{background:linear-gradient(#55333b,#352026)}
.bv-trade-footer-hint{text-align:center;margin-top:7px}
.bv-trade-drag-ghost{position:fixed;z-index:120;transform:translate(-50%,-50%);pointer-events:none;display:flex;align-items:center;flex-direction:column;gap:2px;width:54px;padding:4px;background:#302b20ea;border:1px solid #cbaa74;box-shadow:0 3px 18px #000b;border-radius:4px;color:#eed9b4;font-size:9px}
.bv-trade-drag-ghost .bv-trade-icon-frame{width:42px;height:42px}
.bv-trade-drag-ghost>small{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bv-trade-detail[hidden]{display:none!important}
.bv-trade-detail{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;background:#030604b8;padding:16px;pointer-events:auto}
.bv-trade-detail-card{background:linear-gradient(#302c20,#141a14);border:1px solid #9f8050;padding:14px;width:min(335px,100%);max-height:85%;overflow:auto;box-shadow:0 15px 35px #000b;color:#ead4a8}
.bv-trade-detail-top{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #67543a;padding-bottom:9px;font-size:13px}
.bv-trade-detail-close{border:0;background:transparent;color:#d6c09d;font-size:21px;cursor:pointer}
.bv-trade-detail-hero{display:flex;align-items:center;gap:12px;margin:12px 0}
.bv-trade-detail-hero>.bv-trade-icon-frame{width:74px;height:74px;flex:0 0 74px;border:1px solid #66563e;background:#1b1b16}
.bv-trade-detail-meta{font-size:11px;line-height:1.8;color:#c7b69a}
.bv-trade-panel :focus-visible{outline:2px solid #91dcec;outline-offset:2px}
@media(max-width:730px){.bv-trade-panel{width:98vw;height:95dvh}.bv-trade-body{padding:6px}.bv-trade-layout{gap:6px}.bv-trade-trading,.bv-trade-bag{padding:5px}.bv-trade-proposals{gap:4px}.bv-trade-proposal{padding:4px 2px}.bv-trade-offer-grid{gap:2px;padding:1px;min-height:70px}.bv-trade-bag-grid{gap:2px;padding:2px}.bv-trade-session-title span{display:none}}
@media(max-width:540px) and (orientation:portrait){.bv-trade-panel{width:96vw;height:93dvh}.bv-trade-layout{grid-template-columns:1fr}.bv-trade-bag-grid{max-width:420px;margin:auto}.bv-trade-trading,.bv-trade-bag{padding:7px}.bv-trade-offer-grid{min-height:0}.bv-trade-final-actions{position:sticky;bottom:0;background:#141711e8;padding:8px 4px}.bv-trade-bag .bv-trade-hint{min-height:0}}
@media(max-height:470px) and (orientation:landscape){.bv-trade-panel{height:98dvh}.bv-trade-head{padding:4px 9px}.bv-trade-body{padding:4px 7px}.bv-trade-session-title,.bv-trade-section-title{margin-bottom:3px;padding-bottom:3px}.bv-trade-bag .bv-trade-hint{margin:3px 0;min-height:0;font-size:9px}.bv-trade-final-actions{margin:4px 0 0;padding-top:4px}.bv-trade-actions button{padding:4px 7px}.bv-trade-pages{margin-top:5px}.bv-trade-footer-hint{margin:4px 0}}

.bv-trade-count-row{display:flex;align-items:center;gap:8px;font-size:11px;color:#d6c099;padding:8px 0;border-top:1px solid #645039}
.bv-trade-count-row input{width:85px;flex:1;min-width:0;max-width:125px;background:#11170f;color:#f3dcac;border:1px solid #92734a;border-radius:3px;padding:7px;font-size:14px}
.bv-trade-count-row button{border:1px solid #92734a;background:#51402c;color:#edddb9;padding:7px 10px;border-radius:3px;cursor:pointer}

/* Top-of-screen invitation: no permanent HUD button or periodic animation loop. */
.bv-trade-invite{position:absolute;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:75;
 width:min(460px,calc(100vw - 20px));box-sizing:border-box;display:flex;align-items:center;gap:12px;
 padding:12px 15px;color:#f2dfc1;border:1px solid #a58959;border-radius:4px;
 background:linear-gradient(145deg,rgba(46,38,28,.97),rgba(19,24,20,.97));box-shadow:0 8px 28px #000b;
 font-family:'Hahmlet',Pretendard,Arial,sans-serif;pointer-events:auto;
 animation:bv-trade-banner-enter .38s cubic-bezier(.18,.85,.23,1.02) both}
.bv-trade-invite-content{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.bv-trade-invite-content strong{color:#e9cf96;font-size:13px}
.bv-trade-invite-content span{font-size:12px;overflow-wrap:anywhere}
.bv-trade-invite-actions{display:flex;gap:6px;flex-shrink:0}
.bv-trade-invite-actions button{border:1px solid #b29563;background:linear-gradient(#624c32,#3d2c1b);color:#f9e6bd;
 font-size:12px;font-weight:700;border-radius:4px;cursor:pointer;min-height:37px;padding:8px 12px}
.bv-trade-invite-actions button:last-child{border-color:#8c6a65;background:linear-gradient(#4e3939,#2f2225)}
.bv-trade-invite-actions button:disabled{opacity:.5;cursor:default}
@keyframes bv-trade-banner-enter{from{opacity:0;transform:translate(-50%,-125%)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:480px){.bv-trade-invite{padding:9px 10px;gap:7px}.bv-trade-invite-content strong{font-size:12px}
 .bv-trade-invite-content span{font-size:11px}.bv-trade-invite-actions{gap:4px}.bv-trade-invite-actions button{padding:7px 9px}}
@media(prefers-reduced-motion:reduce){.bv-trade-invite{animation:none}}
.bv-trade-synced{font-size:10px;color:#8bd0b4}
