/* 거래 게시판 (js/trade.js) */
.tr-bg{position:fixed;inset:0;z-index:150;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:12px}
.tr-pop{position:relative;width:min(420px,100%);max-height:90vh;display:flex;flex-direction:column;background:#141418;border:1px solid #3f3f46;border-radius:16px;color:#fff}
.tr-pop.wide{width:min(560px,100%)}.tr-pop.small{width:min(320px,100%)}
.tr-in{overflow-y:auto;padding:14px 14px 12px}
.tr-x{position:absolute;top:8px;right:10px;font-size:16px;opacity:.7;z-index:2}
.tr-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 28px 10px 0;font-size:15px}
.tr-head.sm{margin:12px 0 6px;font-size:13px}.tr-head span{font-size:12px;opacity:.8;display:flex;gap:4px}
.tr-tabs{display:flex;gap:6px;margin-bottom:10px}.tr-tabs button{flex:1;padding:7px;border-radius:10px;background:rgba(255,255,255,.06);font-weight:700;font-size:13px}.tr-tabs .on{background:#f59e0b;color:#000}
.tr-btn{padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.1);font-weight:800;font-size:12px}.tr-btn.main{background:#f59e0b;color:#000}.tr-btn.danger{background:#dc2626;color:#fff}.tr-btn.on{outline:1px solid #f59e0b}.tr-btn:disabled{opacity:.4}
.tr-acts{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}.tr-acts .tr-btn{flex:1;padding:9px}
.tr-row{display:block;width:100%;text-align:left;padding:8px;margin-bottom:8px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.tr-items{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.tr-items.big .tr-it{width:84px}
.tr-it{width:64px;text-align:center;font-size:10px;line-height:1.2}.tr-it img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px;border:2px solid #52525b;background:#222}
.tr-it.gear img{aspect-ratio:1;object-fit:contain;padding:4px}.tr-it b{display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tr-it small{opacity:.7}
.g-N img{border-color:#9ca3af}.g-R img{border-color:#84cc16}.g-HR img{border-color:#3b82f6}.g-SR img{border-color:#a855f7}.g-UR img{border-color:#eab308}.g-MR img,.g-LR img{border-color:#ef4444}
.t-4 img{border-color:#60a5fa}.t-5 img{border-color:#a78bfa}
.tr-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:6px;font-size:11px;opacity:.9}
.tr-want{font-size:12px;color:#fde68a;margin-top:6px}.tr-tag{padding:1px 7px;border-radius:99px;background:rgba(245,158,11,.25);color:#fde68a;font-weight:700}
.tr-tag.s-done,.tr-tag.s-accepted{background:rgba(34,197,94,.25);color:#86efac}.tr-tag.s-rejected,.tr-tag.s-expired,.tr-tag.s-cancelled,.tr-tag.s-refunded{background:rgba(255,255,255,.1);color:#d4d4d8}
.tr-cur{font-weight:800;font-size:13px;padding:0 6px}
.tr-sec{margin:12px 0 6px;font-size:12px;font-weight:800;opacity:.75}.tr-empty,.tr-load{padding:18px;text-align:center;opacity:.6;font-size:13px}
.tr-note{font-size:11px;opacity:.65;margin:6px 0}
.tr-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:6px;max-height:32vh;overflow-y:auto;padding:2px}
.tr-pk{position:relative;border-radius:10px;padding:2px;cursor:pointer}.tr-pk .tr-it{width:100%}.tr-pk.on{background:#f59e0b55;outline:2px solid #f59e0b}
.tr-pk.no{opacity:.4;cursor:not-allowed}.tr-pk i{position:absolute;top:4px;left:4px;right:4px;font-style:normal;font-size:9px;font-weight:800;background:rgba(0,0,0,.75);border-radius:6px;padding:1px 2px;text-align:center}.tr-pk i.soft{background:rgba(14,165,233,.8)}
.tr-input,.tr-cur-in input,.tr-bulk input[type=number]{background:#27272a;border:1px solid #3f3f46;border-radius:8px;padding:6px 8px;color:#fff;font-size:13px}
.tr-input{width:100%;margin-top:10px}.tr-cur-in{display:flex;gap:8px}.tr-cur-in label{flex:1;display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:700}.tr-cur-in small{font-weight:400;opacity:.6;font-size:10px}
.tr-rule{margin-top:8px;padding:8px;border-radius:10px;background:rgba(255,255,255,.05);font-size:12px;display:flex;flex-direction:column;gap:3px}.tr-rule .no{color:#f87171}.tr-err{color:#f87171;font-weight:800}
.tr-off{display:flex;gap:6px;align-items:center;padding:6px;margin-bottom:6px;border-radius:10px;background:rgba(255,255,255,.05)}.tr-off-b{flex:1;min-width:0}.tr-off-a{display:flex;flex-direction:column;gap:4px}.tr-nick{font-size:11px;opacity:.7;margin-bottom:3px}
.tr-bulk{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:11px;margin-top:8px}.tr-bulk input[type=number]{width:72px;padding:4px 6px}
.tr-ask{text-align:center;font-size:14px;line-height:1.5;padding:8px 0}.tr-ask small{opacity:.7}
.tr-pop *{box-sizing:border-box}.tr-x{background:none;border:0;color:#fff;cursor:pointer}
.tr-cur-in input{width:100%}.tr-cur-in label{min-width:0}
.tr-help{font-size:12px;line-height:1.55}.tr-help p{margin:0 0 8px}.tr-help b{color:#fde68a}
.tr-sec-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:12px 0 6px}.tr-sec-row .tr-sec{margin:0}
.tr-sortbar{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.tr-chip{padding:3px 9px;font-size:11px}
/* 메인 거래소 타일 (조직 옆, 같은 4:3 크기). 그림: img/ui/v2/btn_trade.webp (800×600). 그림 없으면 임시 바탕 */
.main-grid .tile-guild,.main-grid .tile-guild:not(.noimg){grid-column:auto;height:auto;aspect-ratio:4/3}
.main-grid .tile-guild.noimg .main-tile-t,.main-grid .tile-trade.noimg .main-tile-t{left:0;right:0;top:auto;bottom:22px;text-align:center;letter-spacing:.15em}
.main-grid .tile-guild.noimg .tile-guild-emb{left:50%;top:38%;transform:translate(-50%,-50%)}
.main-grid .tile-guild.noimg .tile-guild-sub{left:0;right:0;text-align:center;bottom:7px}
.tile-trade{background:radial-gradient(120% 140% at 50% 30%,#3b2a07 0%,#140d03 60%,#070401 100%);border-color:rgba(245,158,11,.5)}
.tile-trade::after{background:linear-gradient(180deg,transparent 0%,transparent 45%,rgba(0,0,0,.6) 66%,rgba(0,0,0,.92) 100%)}
.tile-trade-emb{display:none}.tile-trade.noimg .tile-trade-emb{display:block;position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);font-size:40px;filter:drop-shadow(0 0 10px rgba(245,158,11,.6));z-index:1}
.tile-trade .main-tile-t{left:0;right:0;bottom:22px;text-align:center;text-shadow:0 2px 6px #000}
.tile-trade-sub{position:absolute;left:0;right:0;bottom:7px;z-index:1;text-align:center;font-size:11px;color:#fde68a;opacity:.85;text-shadow:0 1px 3px #000}
.tr-ic{display:inline-block;width:1.25em;height:1.25em;object-fit:contain;vertical-align:-.28em;margin-right:2px}.tr-head .tr-ic{width:1.4em;height:1.4em}

/* 확인 팝업 썸네일 */
.tr-cf { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; text-align: left; }
.tr-cf-row { display: flex; flex-direction: column; gap: 4px; }
.tr-cf-l { font-size: 12px; opacity: .75; font-weight: 700; }
.tr-cf-items { flex-wrap: wrap; gap: 4px; max-height: 40vh; overflow-y: auto; }
.tr-cf-none { font-size: 12px; opacity: .6; }

/* 내 거래: 진행중/종료 탭 · 끝난 거래는 회색 */
.tr-subtabs{margin:2px 0 4px}.tr-subtabs button{padding:5px;font-size:12px}
.tr-row.tr-ended{opacity:.5;filter:grayscale(1)}
/* 거래소 페이지 (#/exchange · js/pages.js): 팝업 틀을 풀어 페이지 몸통에 꽉 차게. 확인·도움말 같은 작은 창은 페이지 위로 */
.tr-bg:not(.vr-in-page){z-index:9600}
.tr-bg.vr-in-page{position:static;inset:auto;background:none;padding:0;display:block}
.tr-bg.vr-in-page .tr-pop{width:100%;max-width:560px;max-height:none;margin:0 auto;border:0;background:none;border-radius:0}
.tr-bg.vr-in-page .tr-x{display:none}
/* 페이지 안에선 머리말 제목과 겹치는 안쪽 제목 숨김 */
.tr-bg.vr-in-page .tr-head > b:first-child{display:none}
.tr-bg.vr-in-page .tr-head{justify-content:flex-end}
/* 마켓 (PR2): 정렬 · 카드 격자 · 더 보기 */
.tr-market{display:block}
.tr-sort{display:flex;gap:6px;margin:2px 0 10px}
.tr-sort button{flex:1;padding:6px 0;border-radius:999px;border:1px solid #3f3f46;background:#18181b;color:#d4d4d8;font-size:12px;font-weight:700;white-space:nowrap}
.tr-sort button.on{border-color:#f5c96a;color:#f5c96a;background:rgba(245,201,106,.1)}
.tr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:560px){.tr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tr-gc{--gc:#71717a;display:flex;flex-direction:column;gap:4px;padding:6px;border-radius:12px;background:#141418;border:1.5px solid var(--gc);color:#fff;text-align:left;min-width:0;box-shadow:0 0 10px -4px var(--gc)}
.tr-gc.g-R{--gc:#84cc16}.tr-gc.g-HR{--gc:#3b82f6}.tr-gc.g-SR{--gc:#c084fc}.tr-gc.g-UR{--gc:#f5c96a}.tr-gc.g-MR{--gc:#ef4444}.tr-gc.g-LR{--gc:#e879f9}
.tr-gc-img{position:relative;display:block;aspect-ratio:3/4;border-radius:8px;overflow:hidden;background:#0b0b0e}
.tr-gc-img img{width:100%;height:100%;object-fit:cover;object-position:top}
.tr-gc-img img.gear{object-fit:contain;padding:18%}
.tr-gc-img i{position:absolute;font-style:normal;font-size:10px;font-weight:900;padding:2px 6px;border-radius:999px;background:rgba(0,0,0,.75)}
.tr-gc-gr{top:4px;left:4px;color:var(--gc);border:1px solid var(--gc)}
.tr-gc-n{top:4px;right:4px;color:#fff}
.tr-gc-tag{bottom:4px;left:4px;color:#f5c96a}
.tr-gc b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-gc b small{color:#a1a1aa;font-weight:600}
.tr-gc-want{font-size:11px;color:#fde68a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-gc-want.dim{color:#71717a}
.tr-gc-meta{display:flex;justify-content:space-between;font-size:11px;color:#a1a1aa}
.tr-gc-meta span{display:inline-flex;align-items:center;gap:2px}
.tr-gc-meta .soon{color:#f87171}
.tr-gc-meta .tr-ic{width:14px;height:14px}
.tr-gc.ui-skel{min-height:230px;border-color:#27272a}
.tr-grid .tr-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 10px;color:#a1a1aa}
.tr-grid .tr-empty .tr-ic{width:40px;height:40px;opacity:.7}
.tr-grid .tr-empty b{color:#e4e4e7}
.tr-more-w{display:flex;justify-content:center;padding:14px 0}
.tr-more{min-width:60%}
.tr-end{font-size:12px;color:#71717a}
/* 판매 글 올리기 단계 (PR3) */
.tr-steps{display:flex;gap:4px;margin:0 0 10px}
.tr-steps span{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;padding:6px 2px;border-radius:999px;background:#18181b;border:1px solid #3f3f46;color:#71717a;font-size:11.5px;font-weight:700;white-space:nowrap}
.tr-steps i{font-style:normal;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#3f3f46;color:#fff;font-size:10px}
.tr-steps .on{border-color:#f5c96a;color:#f5c96a}.tr-steps .on i{background:#f5c96a;color:#111}
.tr-steps .done{color:#a3e635}.tr-steps .done i{background:#65a30d}
.tr-gate{margin:0 0 10px;padding:8px 10px;border-radius:10px;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.5);font-size:12px;color:#fecaca}
.tr-gate p{margin:2px 0}
.tr-step-acts{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;background:linear-gradient(transparent,#141418 30%)}
.tr-bg.vr-in-page .tr-step-acts{background:linear-gradient(transparent,#12070a 30%)}
.tr-step-acts .tr-btn{min-width:96px}
.tr-want-in{width:100%;resize:vertical;min-height:72px}
.tr-wc{display:block;text-align:right;color:#71717a;font-size:11px}
.tr-sel2{margin:4px 0 8px}
.tr-band{width:100%;border-collapse:collapse;font-size:12px;margin:4px 0 8px}
.tr-band th,.tr-band td{padding:6px 4px;border-bottom:1px solid #27272a;text-align:left;white-space:nowrap}
.tr-band th{color:#a1a1aa;font-weight:700}
.tr-band tfoot td{font-weight:800;color:#f5c96a;border-bottom:0}
.tr-band .tr-ic{width:14px;height:14px;vertical-align:-2px}
.tr-band .dim{color:#71717a}
.tr-fee{font-size:12px;padding:8px 10px;border-radius:10px;background:#18181b;border:1px solid #3f3f46;margin-bottom:8px}
.tr-fee ul{margin:4px 0 0;padding-left:16px;color:#d4d4d8}
.tr-fee .tr-ic{width:13px;height:13px;vertical-align:-2px}
/* 마켓 필터 (PR4) */
.tr-filter{display:flex;flex-direction:column;gap:6px;margin:0 0 8px}
.tr-q{width:100%;padding:8px 12px;border-radius:10px}
.tr-fchips{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}
.tr-fchips::-webkit-scrollbar{display:none}
.tr-fchips button{flex:0 0 auto;padding:5px 11px;border-radius:999px;border:1px solid #3f3f46;background:#18181b;color:#d4d4d8;font-size:12px;font-weight:700;white-space:nowrap}
.tr-fchips button.on{border-color:#f5c96a;color:#f5c96a;background:rgba(245,201,106,.1)}
.tr-fgr button{--gc:#a1a1aa;color:var(--gc)}
.tr-fgr .g-R{--gc:#84cc16}.tr-fgr .g-HR{--gc:#3b82f6}.tr-fgr .g-SR{--gc:#c084fc}.tr-fgr .g-UR{--gc:#f5c96a}.tr-fgr .g-MR{--gc:#ef4444}.tr-fgr .g-LR{--gc:#e879f9}
.tr-fgr button.on{border-color:var(--gc);background:color-mix(in srgb,var(--gc) 18%,#18181b);color:#fff}
.tr-fcount{font-size:11px;color:#a1a1aa;margin:-4px 0 6px;text-align:right}
/* 즉시 구매 (PR5) */
.tr-gc-buy{display:inline-flex;align-items:center;gap:2px;align-self:flex-start;font-size:11px;font-weight:800;color:#111;background:linear-gradient(180deg,#fde68a,#f5c96a);padding:1px 7px;border-radius:999px}
.tr-gc-buy .tr-ic{width:13px;height:13px}
.tr-fbuy.on{border-color:#f5c96a!important;color:#111!important;background:#f5c96a!important}
.tr-buybox{margin:10px 0;padding:10px;border-radius:12px;border:1px solid #f5c96a;background:rgba(245,201,106,.08);display:flex;flex-direction:column;gap:6px}
.tr-buybox>div{display:flex;justify-content:space-between;align-items:center;font-size:14px}
.tr-buybox>div span{display:inline-flex;align-items:center;gap:3px;font-weight:900;color:#f5c96a}
.tr-buybox small{color:#a1a1aa;font-size:11px}
.tr-buy{width:100%}
.tr-buyset{margin:6px 0 10px;padding:8px 10px;border-radius:10px;border:1px dashed #a16207;background:#18181b}
.tr-buy-on{display:flex;align-items:center;gap:6px;font-weight:700;font-size:13px}
.tr-buy-on small{color:#71717a;font-weight:600}
.tr-buy-in{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.tr-buy-hint{font-size:11px;color:#a1a1aa}.tr-buy-hint.bad,.tr-buy-hint .bad{color:#f87171}

/* 📈 시세 (PR6) */
.tr-plist{display:flex;flex-direction:column;gap:6px}
.tr-prow{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:6px 10px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:inherit;text-align:left}
.tr-prow.ui-skel{height:56px}
.tr-pimg{display:inline-flex;width:40px;height:40px;flex:none;border-radius:8px;overflow:hidden;background:rgba(0,0,0,.25);vertical-align:middle;margin-right:6px}
.tr-pimg img{width:100%;height:100%;object-fit:cover}.tr-pimg img.gear{object-fit:contain;padding:4px}
.tr-pmain{flex:1;min-width:0;display:flex;flex-direction:column}.tr-pmain b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tr-pmain small{opacity:.65}
.tr-pval{font-weight:700;white-space:nowrap}
.tr-pgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.tr-pbox{padding:10px;border-radius:12px;background:rgba(255,255,255,.05);display:flex;flex-direction:column;gap:4px}.tr-pbox span{font-size:12px;opacity:.7}.tr-pbox .dim{opacity:.5}
.tr-prng small{opacity:.6;margin-left:4px}
.tr-prec{display:flex;gap:8px;justify-content:space-between;padding:6px 2px;border-bottom:1px solid rgba(255,255,255,.06);font-size:13px}.tr-prec span:first-child{opacity:.6;min-width:64px}
.tr-spark{display:block;width:100%;height:28px;margin:6px 0}.tr-spark polyline{fill:none;stroke:#7fd3ff;stroke-width:1.6;vector-effect:non-scaling-stroke}
.tr-trend{display:flex;align-items:center;gap:6px;flex-wrap:wrap;width:100%;margin:8px 0;padding:8px 10px;border-radius:10px;background:rgba(127,211,255,.08);border:1px solid rgba(127,211,255,.2);color:inherit;font-size:13px;text-align:left}
.tr-trend .tr-spark{width:60px;height:18px;margin:0 0 0 auto}.tr-trend i{font-style:normal;opacity:.6}.tr-trend.dim{opacity:.6;background:none;border-style:dashed}
.tr-phead{display:flex;align-items:center;gap:8px;font-size:17px;margin:4px 0}

/* 글 상세: 물건별 강화·능력치·옵션 */
.tr-dets{display:flex;flex-direction:column;gap:8px;width:100%}
.tr-det{display:flex;gap:10px;align-items:flex-start;padding:8px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);text-align:left}
.tr-det>img{width:64px;flex:none;aspect-ratio:3/4;object-fit:cover;border-radius:8px;border:2px solid #52525b;background:#222}.tr-det.gear>img{aspect-ratio:1;object-fit:contain;padding:4px}
.tr-dinfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;font-size:12px}.tr-dinfo>b{font-size:14px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tr-gr{font-style:normal;font-size:10px;padding:1px 6px;border-radius:6px;background:#3f3f46}.tr-gr.g-UR{background:#b45309}.tr-gr.g-MR{background:#9d174d}.tr-gr.g-LR{background:#7c3aed}.tr-gr.g-SR{background:#1d4ed8}.tr-gr.g-HR{background:#047857}
.tr-gr.t-4{background:#1d4ed8}.tr-gr.t-5{background:#7c3aed}.tr-plus{color:#fbbf24}
.tr-dsub{opacity:.85}.tr-dsub i{font-style:normal;opacity:.6}.tr-ex{color:#fbbf24;letter-spacing:-1px}.tr-ex i{font-style:normal;opacity:.35}
.tr-dstat{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.tr-dstat span{display:flex;flex-direction:column;padding:3px 4px;border-radius:6px;background:rgba(0,0,0,.25);font-weight:700}.tr-dstat i{font-style:normal;font-size:9px;opacity:.6;font-weight:400}
.tr-dmain{color:#7fd3ff}.tr-opts{display:flex;flex-wrap:wrap;gap:4px}.tr-opt{font-size:11px;padding:2px 6px;border-radius:6px;background:rgba(251,191,36,.12);color:#fde68a}
.tr-dnote{opacity:.55;font-size:10px}

/* 원하는 물건 */
.tr-wants{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;margin:6px 0}.tr-wants>span{font-size:12px;opacity:.75}
.tr-wchip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px 3px 3px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);font-size:12px;color:inherit}
.tr-wchip img{width:22px;height:22px;border-radius:50%;object-fit:cover}.tr-wchip i{font-style:normal;font-size:10px;opacity:.6}.tr-wchip.have{border-color:#22c55e;background:rgba(34,197,94,.15)}.tr-wchip.have::after{content:'보유';font-size:10px;color:#4ade80}
.tr-wchip.on{border-color:#f59e0b;cursor:pointer}.tr-wsel{display:flex;flex-wrap:wrap;gap:6px;min-height:30px;margin:6px 0}
.tr-wgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:6px;max-height:46vh;overflow:auto;margin:8px 0}
.tr-wit{display:flex;flex-direction:column;align-items:center;gap:2px;padding:3px;border-radius:10px;background:rgba(255,255,255,.04);border:2px solid transparent;color:inherit;font-size:10px}
.tr-wit img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:6px}.tr-wit img.gear{aspect-ratio:1;object-fit:contain}.tr-wit b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.tr-wit.on{border-color:#f59e0b;background:#f59e0b33}
.tr-wbox{margin:6px 0}.tr-gc-wid{font-size:10px;color:#fde68a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tr-gc-wid.have{color:#4ade80}

/* 지정 거래 */
.tr-gc-tag.dir{background:#16a34a}.tr-dirrow{border-color:#22c55e66!important;background:rgba(34,197,94,.06)}
.tr-dwho{margin:4px 0}.tr-dres{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.tr-dsel{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;background:rgba(34,197,94,.12);border:1px solid #22c55e66}.tr-dsel b{flex:1}
.tr-dgive{margin:6px 0;padding:8px 10px;border-radius:10px;background:rgba(127,211,255,.08)}.tr-dmsg{width:100%;box-sizing:border-box}
/* 📢 전체 소식 (js/notice-global.js) */
#gn-btn{position:fixed;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:60;width:40px;height:40px;border-radius:50%;border:1px solid rgba(251,191,36,.5);background:rgba(24,24,27,.85);font-size:18px;box-shadow:0 4px 12px rgba(0,0,0,.4)}
#gn-btn[data-n]:not([data-n=""])::after{content:attr(data-n);position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 3px;border-radius:8px;background:#ef4444;color:#fff;font-size:10px;line-height:16px;font-weight:700}
body:has(#game:not(.hidden)) #gn-btn,body:has(#story-dlg) #gn-btn{display:none}
#gn-toasts{position:fixed;top:calc(64px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:9500;display:flex;flex-direction:column;gap:6px;width:min(92vw,420px);pointer-events:none}
.gn-toast{pointer-events:auto;display:flex;align-items:center;gap:8px;padding:6px 10px 6px 6px;border-radius:12px;background:linear-gradient(90deg,rgba(120,53,15,.95),rgba(24,24,27,.95));border:1px solid #f59e0b;color:#fff;font-size:13px;box-shadow:0 6px 18px rgba(0,0,0,.5);animation:gnIn .3s ease-out;cursor:pointer}
.gn-toast img{width:34px;height:34px;border-radius:8px;object-fit:cover;flex:none}.gn-toast.out{opacity:0;transform:translateY(-8px);transition:.35s}
@keyframes gnIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.gn-nick{background:none;border:0;padding:0;color:#7fd3ff;font-weight:700;text-decoration:underline;cursor:pointer;font-size:inherit}.gn-nick.me{color:#fde68a;text-decoration:none}
.gn-g{font-style:normal;font-size:10px;font-weight:800;padding:1px 5px;border-radius:5px;background:#b45309}.gn-g.g-MR{background:#9d174d}.gn-g.g-LR{background:#7c3aed}
.gn-log{position:fixed;inset:0;z-index:9400;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center}
.gn-panel{width:min(100vw,480px);max-height:75dvh;display:flex;flex-direction:column;background:#18181b;border:1px solid #3f3f46;border-radius:16px 16px 0 0;padding:12px 12px calc(12px + env(safe-area-inset-bottom));color:#fff}
.gn-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.gn-head small{flex:1;opacity:.6;font-size:11px}.gn-x{background:none;border:0;color:#fff;font-size:18px}
.gn-list{overflow:auto;display:flex;flex-direction:column;gap:6px}.gn-row{display:flex;gap:8px;align-items:center;padding:6px;border-radius:10px;background:rgba(255,255,255,.04);font-size:13px}
.gn-row img{width:36px;height:36px;border-radius:8px;object-fit:cover}.gn-row small{display:block;opacity:.55;font-size:10px}.gn-empty{opacity:.6;text-align:center;padding:24px}
@media (prefers-reduced-motion: reduce){.gn-toast{animation:none}}
/* 긴 거래 화면: 아래 버튼으로 가라는 떠 있는 금색 화살표 (js/trade.js scrollGuide) */
.tr-down{position:fixed;left:50%;bottom:96px;z-index:9060;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 14px 5px;border-radius:999px;border:1px solid rgba(245,201,106,.75);background:linear-gradient(180deg,rgba(60,32,8,.92),rgba(20,8,4,.92));box-shadow:0 0 14px rgba(245,201,106,.45),inset 0 0 8px rgba(245,201,106,.2);color:#fde68a;font-weight:800;font-size:11px;letter-spacing:.5px;animation:tr-bob 1.3s ease-in-out infinite;cursor:pointer}
.tr-down[hidden]{display:none}
.tr-down i{width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:15px solid #f5c96a;filter:drop-shadow(0 0 4px rgba(245,201,106,.8))}
@keyframes tr-bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,6px)}}
@media (prefers-reduced-motion:reduce){.tr-down{animation:none}}

/* 마켓 카드: 올린 사람 닉네임 */
.tr-gc-seller{display:block;margin-top:2px;font-size:10px;font-weight:700;color:#fde68a;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
