/* Trade street sheet: one control height, one radius, one parchment palette. */
.trade-sheet{position:relative;--tr-ink:#365f51;--tr-line:#d8cfae;--tr-paper:#fffdf4;--tr-teal:#3c7366;--tr-gold:#b0903f;width:calc(100% - 16px);max-width:520px;height:min(790px,calc(100dvh - 92px));max-height:calc(100dvh - 92px);display:flex;flex-direction:column;overflow:hidden;animation:trade-enter .34s cubic-bezier(.2,.75,.25,1)}
.trade-sheet button,.trade-sheet input,.trade-sheet select{font:600 13px/1.1 Interface,sans-serif;min-height:40px;box-sizing:border-box;border-radius:10px;padding:0 12px;margin:0}
.trade-sheet button{border:1px solid #c9cfae;background:linear-gradient(#fbf6e3,#f3edd6);color:#3c665b;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;cursor:pointer;transition:transform .12s ease,box-shadow .2s ease,background .2s ease}
.trade-sheet button:active:not(:disabled){transform:scale(.97)}
.trade-sheet button:disabled{opacity:.5}
.trade-sheet input,.trade-sheet select{border:1px solid #c6ceb0;background:var(--tr-paper);color:var(--tr-ink);width:100%;min-width:0}
.trade-sheet select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#6c8a7a 50%),linear-gradient(135deg,#6c8a7a 50%,#0000 50%);background-position:calc(100% - 17px) 17px,calc(100% - 12px) 17px;background-size:5px 5px;background-repeat:no-repeat;padding-right:26px;text-overflow:ellipsis}
.trade-sheet .trade-buy{background:linear-gradient(#468a7a,#3a7064);color:#fffbea;border-color:#33655a;box-shadow:0 2px 8px #2f5b5240}
.trade-sheet .modal-header{flex:none;margin-bottom:8px}

.trade-tabs{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:3px;flex:none;margin:2px 0 10px;padding:3px;background:#efe8cf;border:1px solid var(--tr-line);border-radius:13px}
.trade-tabs button{min-height:36px;border:0;background:transparent;border-radius:10px;color:#72806a;font-size:12.5px;padding:0 6px}
.trade-tabs [aria-selected=true]{background:var(--tr-paper);color:var(--tr-ink);box-shadow:0 1px 4px #49584a30,inset 0 0 0 1px #e0d7b4}
.trade-tabs .trade-tab-create{background:linear-gradient(#468a7a,#3a7064);color:#fffbea;box-shadow:0 2px 6px #2f5b5238}
.trade-tools{display:grid;grid-template-columns:minmax(112px,36%) minmax(0,1fr);gap:8px;flex:none;margin:0 0 10px}
.trade-tools:empty{display:none}

.trade-body{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:auto;scrollbar-width:thin;padding:2px;touch-action:pan-y}
.trade-empty{margin:auto;padding:28px 18px;text-align:center;color:#8c8a75;max-width:280px}
.trade-empty strong{display:block;font:700 17px Georgia;color:#4a7667;margin-bottom:6px}
.trade-empty p{line-height:1.55;margin:0;font-size:13px}
.trade-empty-art{display:block;width:84px;height:84px;margin:0 auto 12px;background:url(art/world/trade-20261027/board.webp) center/contain no-repeat;opacity:.5;animation:trade-float 3.4s ease-in-out infinite alternate}

/* Feed: a vertical market list */
.trade-list{display:flex;flex-direction:column;gap:8px;padding:2px 2px 8px}
.trade-lot{--rar:#c9c2a0;position:relative;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px 10px 10px;border:1px solid var(--tr-line);border-radius:16px;background:linear-gradient(#fffdf3,#f8f2de);box-shadow:0 1px 0 #fff inset,0 2px 8px #55583f12;overflow:hidden}
.trade-lot:before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--rar)}
.trade-lot.rarity-uncommon,.trade-mini.rarity-uncommon{--rar:#7fb069}.trade-lot.rarity-rare,.trade-mini.rarity-rare{--rar:#5b9bd5}.trade-lot.rarity-epic,.trade-mini.rarity-epic{--rar:#a678d6}.trade-lot.rarity-legendary,.trade-mini.rarity-legendary{--rar:#e0a23a}
.trade-lot.is-fresh{animation:trade-lot-in .42s cubic-bezier(.2,.75,.25,1) calc(var(--i)*55ms) both}
.trade-lot.is-closed{opacity:.55;filter:saturate(.5)}
.trade-sheet .trade-lot-art{position:relative;width:62px;height:62px;min-height:0;padding:5px;border-radius:14px;border:1px solid #ddd3b0;background:radial-gradient(circle at 50% 38%,#fffbe8,#efe6c8);box-shadow:inset 0 0 0 2px #fffdf4}
.trade-lot-art img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .25s ease}
.trade-lot-art:active img{transform:scale(1.08)}
.trade-lot-qty{position:absolute;right:2px;bottom:1px;padding:0 5px;border-radius:8px;background:#3c7366;color:#fffbea;font:700 10px/15px Interface,sans-serif;font-style:normal}
.trade-sheet .trade-lot-body{display:grid;justify-items:start;align-content:center;gap:3px;min-width:0;min-height:62px;height:auto;padding:0;border:0;background:none;box-shadow:none;text-align:left;white-space:normal;color:inherit}
.trade-lot-kind{font-size:10px;color:#8b8a6e;text-transform:uppercase;letter-spacing:.05em}
.trade-lot h4{margin:0;font:700 15.5px/1.15 Georgia,serif;color:var(--tr-ink);overflow-wrap:anywhere}
.trade-lot-seller{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;font-size:11px;color:#8d8465}
.trade-lot-seller b{font-weight:600;color:#5b7a6b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-lot-likes{margin-left:2px;color:#c4705c}
.trade-lot-side{display:grid;justify-items:end;gap:6px}
.trade-sheet .trade-lot-side button{min-height:34px;padding:0 14px;font-size:12.5px;border-radius:17px}
.trade-price{display:inline-flex;align-items:center;gap:4px;font:700 16px/1 Georgia,serif;color:#7a6224}
.trade-price .icon{font-size:15px;color:#c0962f}
.trade-price.is-swap{font:600 11px/1 Interface,sans-serif;color:#5c8a7a;gap:3px}
.trade-price.is-swap i{font-style:normal;font-size:14px}
.trade-like b{font-weight:700;color:#8c6f5d}
.trade-like .trade-heart{font-size:15px;color:#c98878;line-height:1}
.trade-like.is-on{background:#fbe6df;border-color:#e0b0a3}
.trade-like.is-on .trade-heart{color:#d2604a}
.trade-want{display:flex;gap:6px;flex-wrap:wrap;min-height:0}
.trade-want:empty{display:none}
.trade-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:2px 9px;border:1px solid var(--tr-line);border-radius:12px;background:#fbf6e3;font-size:11px;line-height:17px;color:#7e7257}
.trade-chip b{color:#6c5a2e;font-weight:700}
.trade-chip i{font-style:normal;color:#5c8a7a}
.trade-chip-gold{border-color:#dcc78a;background:linear-gradient(#fff4cf,#f6e6b4);color:#76642f}
.trade-chip .icon{font-size:14px;color:#c0962f}
.trade-chip-swap{color:#58786a}
.trade-avatar{width:20px;height:20px;flex:none;border-radius:50%;overflow:hidden;border:1px solid #cdbf93;background:#eadfbd}
.trade-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 14%}
.trade-own-badge{padding:3px 9px;border-radius:12px;background:#e6e0f3;color:#5d4e8a;font:600 10.5px/16px Interface,sans-serif;text-align:center}
.trade-lot-note{margin:0;font-size:11.5px;color:#7d6aa3;text-align:center}
.trade-more{padding:10px 0 4px;text-align:center;font-size:11.5px;color:#9b936f}
.trade-more.is-end{opacity:.7}
.trade-detail-actions{display:flex;gap:8px;width:100%}
.trade-detail-actions button{flex:1 1 0;min-width:0;padding:0 8px;font-size:12.5px}
.trade-detail-actions .trade-like{flex:0 0 64px}
.trade-detail-actions .trade-buy{flex:1.4 1 0}
.trade-detail .trade-admin{min-height:30px;color:#8a4b3f;border-color:#dfb8ac}
.trade-like.is-pop .trade-heart{animation:trade-pop .45s cubic-bezier(.2,.9,.3,1.4)}

/* Card shown on tap */
.trade-detail{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:14px;background:#2a3a3399;backdrop-filter:blur(3px);animation:trade-fade-in .22s ease-out both}
.trade-detail-card{position:relative;width:100%;max-width:340px;max-height:100%;display:grid;gap:10px;justify-items:center}
.trade-sheet .trade-detail-close{position:absolute;right:-4px;top:-8px;z-index:3;width:36px;min-height:36px;height:36px;padding:0;border-radius:50%;font-size:22px;line-height:1}
.trade-card-stage{position:relative;display:grid;place-items:center;perspective:1100px;padding:4px 0;width:100%}
.trade-card-stage:before{content:'';position:absolute;inset:8% 14%;background:radial-gradient(closest-side,#f3dd9a8c,#f3dd9a00 72%);filter:blur(14px);opacity:.8;animation:trade-glow 3.4s ease-in-out infinite alternate;pointer-events:none}
.trade-card-stage>.relic-card{position:relative;z-index:1;width:min(100%,280px)!important;height:auto!important;max-height:min(440px,calc(100dvh - 240px));min-height:0!important;aspect-ratio:3/4.35;margin:0!important;touch-action:none}
.trade-card-stage .relic-front{display:flex;flex-direction:column;padding:12px;gap:8px}
.trade-item-heading{display:flex;justify-content:space-between;font-size:10px;color:#788570}
.trade-item-art{width:100%;flex:1 1 0;height:auto;object-fit:contain;min-height:80px}
.trade-item-name{font:600 clamp(14px,3.8vw,21px) Georgia;color:#366b61;line-height:1.2}
.trade-item-facts{display:flex;flex-wrap:wrap;gap:5px}
.trade-item-footer{margin-top:auto}
.trade-detail .trade-want{justify-content:center}

/* My deals */
.trade-section{flex:none;margin:0 0 14px}
.trade-section h3{display:flex;align-items:center;gap:8px;margin:6px 2px 9px;font:700 15px Georgia,serif;color:var(--tr-ink)}
.trade-section h3:after{content:'';flex:1;height:1px;background:linear-gradient(90deg,#d8cfae,#d8cfae00);order:2}
.trade-count{order:1;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#e9e3c8;color:#7b7456;font:600 11px/20px Interface,sans-serif;text-align:center}
.trade-none{margin:0;padding:11px 13px;border:1px dashed #d6ceaf;border-radius:12px;color:#8d8667;font-size:12px;line-height:1.5}
.trade-mini{--rar:#c9c2a0;display:flex;align-items:center;gap:12px;margin:0 0 8px;padding:10px;border:1px solid var(--tr-line);border-left:3px solid var(--rar);border-radius:14px;background:linear-gradient(#fffdf3,#f8f3df)}
.trade-mini .trade-lot-art{flex:none;grid-row:auto;pointer-events:none}
.trade-mini-copy{flex:1;min-width:0;display:grid;gap:7px;align-content:start}
.trade-mini-copy b{font:700 15px/1.2 Georgia,serif;color:var(--tr-ink)}
.trade-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.trade-row button{min-height:34px;padding:0 13px;font-size:12px}
.trade-proposal{margin:0 0 8px;padding:11px 12px;border:1px solid var(--tr-line);border-radius:13px;background:#fffdf3;font-size:12px;display:grid;gap:8px}
.trade-proposal p{margin:0;color:#7f7b66;line-height:1.5}
.trade-proposal .trade-message{font-style:italic}
.trade-proposal-head{display:flex;justify-content:space-between;align-items:baseline}
.trade-proposal-head b{display:inline-flex;align-items:center;gap:5px;font:700 15px Georgia,serif;color:#6c5a2e}
.trade-proposal-head small{color:#9a906f}
.trade-proposal .icon{font-size:15px;color:#c0962f}
.trade-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 12px}
.trade-line>b{font-weight:700;color:var(--tr-ink)}
.trade-line .trade-row button{min-height:32px}

/* Form with an inventory picker */
.trade-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;align-content:start;padding:2px}
.trade-form h3{grid-column:1/-1;margin:2px 0 0;font:700 17px Georgia,serif;color:var(--tr-ink)}
.trade-field{display:grid;gap:5px;font:600 12px Interface,sans-serif;color:#5a7a69;min-width:0}
.trade-field-wide{grid-column:1/-1}
.trade-label{font:600 12px Interface,sans-serif;color:#5a7a69}
.trade-picker{display:grid;gap:6px;padding:0}
.trade-sheet .trade-pick{--rar:#c9c2a0;position:relative;display:flex;align-items:center;gap:11px;height:auto;min-height:56px;padding:6px 40px 6px 6px;border:1px solid #ddd3b0;border-left:3px solid var(--rar);border-radius:13px;background:linear-gradient(#fffdf3,#f6f0da);white-space:normal;text-align:left;justify-content:flex-start;transition:transform .15s ease,box-shadow .2s ease,background .2s}
.trade-pick.rarity-uncommon{--rar:#7fb069}.trade-pick.rarity-rare{--rar:#5b9bd5}.trade-pick.rarity-epic{--rar:#a678d6}.trade-pick.rarity-legendary{--rar:#e0a23a}
.trade-pick-art{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:radial-gradient(circle at 50% 35%,#fffbe8,#efe6c8)}
.trade-pick-art img{width:100%;height:100%;object-fit:contain;padding:3px;box-sizing:border-box}
.trade-pick-copy{display:grid;gap:2px;min-width:0}
.trade-pick-copy b{font:700 13.5px/1.15 Georgia,serif;color:var(--tr-ink);overflow-wrap:anywhere}
.trade-pick-copy small{font-size:11px;color:#8b8a6e}
.trade-pick-mark{position:absolute;right:11px;top:50%;width:20px;height:20px;margin-top:-10px;border:2px solid #cfc8a8;border-radius:50%;box-sizing:border-box}
.trade-pick.is-selected{background:linear-gradient(#f5fff0,#e0eed8);border-color:#46806f;box-shadow:0 0 0 2px #46806f40}
.trade-pick.is-selected .trade-pick-mark{border-color:#3c7366;background:#3c7366;animation:trade-pop .3s cubic-bezier(.2,.9,.3,1.4)}
.trade-pick.is-selected .trade-pick-mark:after{content:'';position:absolute;left:5px;top:1px;width:5px;height:9px;border:solid #fffbea;border-width:0 2px 2px 0;transform:rotate(40deg)}
.trade-pick-none{font-size:22px;color:#a9a283}
.trade-form-note{grid-column:1/-1;margin:0;padding:9px 11px;border-radius:10px;background:#f4efd9;font-size:11px;line-height:1.5;color:#85805f}
.trade-form [type=submit]{grid-column:1/-1;min-height:44px;font-size:14px}
.trade-form>button:last-child{grid-column:1/-1}

.trade-confirm{position:absolute;left:10px;right:10px;bottom:10px;z-index:9;background:linear-gradient(#fffbe9,#f8f0d3);border:1px solid #b9c5a6;border-radius:14px;box-shadow:0 8px 24px #304b4238;padding:14px;font-size:14px;text-align:center;animation:trade-rise .28s cubic-bezier(.2,.75,.25,1) both}
.trade-confirm strong{font:700 15px Georgia,serif;color:var(--tr-ink)}
.trade-confirm>div{display:flex;gap:8px;margin-top:11px}
.trade-confirm>div button{flex:1}

/* Wax seal after a completed deal */
.trade-seal{position:absolute;left:50%;top:42%;width:min(78%,280px);display:grid;justify-items:center;gap:6px;padding:22px 16px 18px;border-radius:20px;border:1px solid #c9ad63;background:linear-gradient(#fff7da,#f1dfae);box-shadow:0 16px 44px #2b403870,inset 0 0 0 4px #fff4cb;text-align:center;color:#6d4930;pointer-events:none;z-index:10;translate:-50% -50%}
.trade-seal strong{font:700 19px Georgia,serif}
.trade-seal small{font-size:11px;color:#8b7550}
.trade-seal-disc{position:relative;display:grid;place-items:center;width:74px;height:74px;margin-bottom:4px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#db6453,#a8322a 62%,#7c231e);box-shadow:inset 0 0 0 5px #bd493d,inset 0 0 0 7px #ffffff2e,0 5px 12px #6a1d1855;animation:trade-stamp .5s cubic-bezier(.2,.8,.3,1) .06s both}
.trade-seal-disc:before{content:'';position:absolute;inset:-7px;border:2px solid #e8bf6a;border-radius:50%;animation:trade-ring .9s ease-out .35s both}
.trade-seal-disc i{display:block;width:22px;height:36px;margin:-7px 0 0 -3px;border:solid #ffe9b8;border-width:0 5px 5px 0;transform:rotate(40deg)}

@keyframes trade-enter{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}
@keyframes trade-lot-in{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
@keyframes trade-slide-up{from{opacity:0;transform:translateY(46px) scale(.97)}to{opacity:1;transform:none}}
@keyframes trade-slide-down{from{opacity:0;transform:translateY(-46px) scale(.97)}to{opacity:1;transform:none}}
@keyframes trade-fade-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes trade-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes trade-glow{from{opacity:.45;transform:scale(.94)}to{opacity:.95;transform:scale(1.04)}}
@keyframes trade-pulse{0%,100%{box-shadow:0 2px 8px #2f5b5240}50%{box-shadow:0 2px 14px #4aa08a73}}
@keyframes trade-pop{0%{transform:scale(.5)}60%{transform:scale(1.35)}100%{transform:scale(1)}}
@keyframes trade-float{from{transform:translateY(0)}to{transform:translateY(-7px)}}
@keyframes trade-stamp{0%{opacity:0;transform:scale(1.9) rotate(-14deg)}55%{opacity:1;transform:scale(.93) rotate(2deg)}100%{opacity:1;transform:none}}
@keyframes trade-ring{0%{opacity:.9;transform:scale(.8)}100%{opacity:0;transform:scale(1.7)}}
@media(max-width:350px){.trade-sheet button{font-size:12px;padding:0 8px}.trade-tools{grid-template-columns:minmax(96px,38%) minmax(0,1fr)}.trade-lot{grid-template-columns:52px minmax(0,1fr) auto;gap:9px;padding:8px}.trade-sheet .trade-lot-art{width:52px;height:52px}.trade-lot h4{font-size:14px}}
@media(max-height:700px){.trade-sheet button{min-height:36px}.trade-tabs{margin-bottom:6px}.trade-tools{margin-bottom:6px}.trade-sheet .modal-header{margin-bottom:4px}}
@media(prefers-reduced-motion:reduce){.trade-sheet,.trade-lot,.trade-lot *,.trade-detail,.trade-card-stage:before,.trade-empty-art,.trade-confirm,.trade-seal-disc,.trade-seal-disc:before,.trade-pick:after{animation:none!important}}

.trade-chat-link{display:flex;align-items:center;gap:8px;margin-top:6px;padding:8px 12px;border:1px solid #bdc8ab;background:#f3f2e3;color:#41695c;border-radius:9px;font:600 11px Interface,serif}.trade-chat-link img{width:28px;height:28px;object-fit:contain}

.trade-sheet .trade-card-stage .relic-card{touch-action:none}.trade-heart-burst{position:absolute;left:45%;top:40%;font:56px/1 Icons;color:#d17b68;pointer-events:none;z-index:4;text-shadow:0 2px 9px #8e4f4833;animation:trade-heart .65s ease-out both}@keyframes trade-heart{0%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(-12deg)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}55%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-70%) scale(1.3)}}

/* Trading names can occupy two lines; both tiles reserve the same title row. */
#world .world-choice.choice-trade-board,#world .world-choice.choice-trade-mine{grid-template-rows:minmax(24px,1fr) 40px 28px;gap:5px}
#world .world-choice.choice-trade-board>strong,#world .world-choice.choice-trade-mine>strong{font-size:clamp(14px,3.9vw,17px);line-height:19px;min-height:0;margin:0;max-width:100%;align-self:stretch}
@media(max-height:730px){#world .world-choice.choice-trade-board,#world .world-choice.choice-trade-mine{grid-template-rows:minmax(20px,1fr) 32px 26px;gap:4px}#world .world-choice.choice-trade-board>strong,#world .world-choice.choice-trade-mine>strong{font-size:14px;line-height:16px}}

/* Exchange shortcut next to the close button of an item card */
.item-dossier-surface .modal-header{display:flex;align-items:center;gap:8px}
.item-dossier-surface .modal-header h2{flex:1;min-width:0}
.item-dossier-surface .modal-header .trade-from-item{flex:none;margin-left:auto;font:700 20px/1 Interface,sans-serif;color:#3c7366;background:linear-gradient(#e9f3df,#d6e6cb);border-color:#9fbf93;animation:trade-pop .4s cubic-bezier(.2,.9,.3,1.4) both}
.item-dossier-surface .modal-header .trade-from-item+[data-close]{margin-left:0}

.trade-lot-body .trade-chip{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-lot-seller small{white-space:nowrap}
.trade-lot-seller b{max-width:9ch}
.trade-lot-side{min-width:78px}

/* Selection tray in the real backpack */
#app.trade-selecting #bag .item-grid{padding-bottom:calc(var(--trade-tray,260px) + 14px)}
#app.trade-selecting #bag .relic-card{cursor:pointer}
#bag .relic-card.is-trade-picked{outline:3px solid #46806f;outline-offset:-2px;border-radius:14px;box-shadow:0 0 0 4px #46806f33,0 8px 18px #2f5b5238;position:relative;z-index:1}
#bag .relic-card.is-trade-picked:after{content:'';position:absolute;right:8px;top:8px;z-index:9;width:22px;height:22px;border-radius:50%;background:#3c7366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.4 3.4L16 8' fill='none' stroke='%23fffbea' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:0 2px 6px #0003;animation:trade-pop .3s cubic-bezier(.2,.9,.3,1.4)}
.trade-select{--tr-ink:#365f51;position:absolute;left:6px;right:6px;bottom:calc(var(--nav,64px) + 40px);z-index:40;display:flex;flex-direction:column;gap:8px;padding:10px 10px 12px;border:1px solid #cfc49c;border-radius:20px;background:linear-gradient(#fffdf3,#f3ecd3);box-shadow:0 -8px 26px #2a3a3338,inset 0 1px 0 #fff;animation:trade-sel-in .32s cubic-bezier(.2,.8,.25,1) both}
.trade-select button,.trade-select input,.trade-select textarea{font:600 13px/1.2 Interface,sans-serif;box-sizing:border-box;border-radius:10px;margin:0}
.trade-select button{min-height:40px;padding:0 12px;border:1px solid #c9cfae;background:linear-gradient(#fbf6e3,#f3edd6);color:#3c665b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.trade-select button:disabled{opacity:.45}
.trade-select .trade-buy{background:linear-gradient(#468a7a,#3a7064);color:#fffbea;border-color:#33655a}
.ts-head{display:flex;align-items:center;gap:8px}
.ts-head b{flex:1;font:700 15px Georgia,serif;color:var(--tr-ink)}
.ts-count{padding:2px 10px;border-radius:11px;background:#e9e3c8;color:#7b7456;font:600 12px/18px Interface,sans-serif}.ts-count i{font-style:normal;color:var(--tr-ink);font-weight:700}
.trade-select .ts-close{width:34px;min-height:34px;padding:0;border-radius:50%;font-size:20px;line-height:1}
.ts-hint{margin:0;padding:12px;border:1px dashed #d6ceaf;border-radius:12px;font-size:12.5px;line-height:1.5;color:#8d8667;text-align:center}
.ts-stage{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:4px}
.trade-select .ts-arrow{width:34px;min-height:56px;padding:0;border-radius:17px;font-size:22px;line-height:1}
.ts-strip{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px calc(50% - 52px) 10px;overscroll-behavior-x:contain}
.ts-strip::-webkit-scrollbar{display:none}
.ts-card{position:relative;flex:none;width:104px;height:150px;scroll-snap-align:center;opacity:.72;transition:opacity .25s,transform .3s cubic-bezier(.2,.8,.3,1)}
.ts-card.is-active{opacity:1;transform:translateY(-4px)}
.ts-card.is-active:before{content:'';position:absolute;inset:-6px;border-radius:16px;background:radial-gradient(closest-side,#f3dd9aa8,#f3dd9a00 78%);pointer-events:none}
.ts-card>.relic-card{position:relative;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;aspect-ratio:auto!important;box-shadow:0 6px 14px #2a2f2433}
.ts-card.is-new>.relic-card{animation:trade-card-in .45s cubic-bezier(.2,.9,.3,1.1) both}
.ts-card .relic-front{display:flex;flex-direction:column;padding:8px;gap:4px}
.ts-card .trade-item-facts,.ts-card .trade-item-footer{display:none}
.ts-card .trade-item-name{font-size:11.5px}
.ts-card .trade-item-heading{font-size:9px}
.trade-select .ts-remove{position:absolute;right:-5px;top:-5px;z-index:12;width:24px;min-height:24px;height:24px;padding:0;border-radius:50%;background:#fff;border-color:#d7c3b8;color:#a05a4a;font-size:15px;line-height:1}
.ts-form{display:grid;gap:8px}
.ts-form label{display:grid;gap:4px;font:600 11.5px Interface,sans-serif;color:#5a7a69}
.ts-form label>span:first-child{display:flex;justify-content:space-between}
.ts-form em{font-style:normal;color:#9b936f}
.ts-form textarea{width:100%;min-height:56px;padding:8px 10px;border:1px solid #c6ceb0;background:#fffdf4;color:var(--tr-ink);resize:none;line-height:1.35}
.ts-row{display:flex;gap:10px}
.ts-price{flex:1;min-width:0}.ts-qty{flex:0 0 96px}
.ts-money{display:flex;align-items:center;gap:6px;padding:0 10px;border:1px solid #c6ceb0;border-radius:10px;background:#fffdf4}
.ts-money .icon{font-size:16px;color:#c0962f}
.ts-money input,.ts-qty input{width:100%;min-height:38px;padding:0 8px;border:0;background:transparent;color:var(--tr-ink)}
.ts-qty input{border:1px solid #c6ceb0;background:#fffdf4;border-radius:10px;min-height:40px}
.ts-foot{display:flex;gap:8px}.ts-foot button{flex:1 1 0}.ts-foot .trade-buy{flex:1.6 1 0}
.trade-lot-note-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.35;color:#7a7458;font-style:italic;overflow-wrap:anywhere}
.trade-detail-note{display:block;width:100%;padding:8px 12px;border-radius:12px;background:#fbf7e6;font-size:12px;line-height:1.45;color:#7a7458;font-style:italic;text-align:center}
.trade-approx{font-style:normal;color:#9a906f;margin-right:1px}
@keyframes trade-sel-in{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
@keyframes trade-card-in{from{opacity:0;transform:translateY(60px) scale(.7)}to{opacity:1;transform:none}}
@media(max-height:700px){.ts-card{width:84px;height:121px}.ts-strip{padding-left:calc(50% - 42px);padding-right:calc(50% - 42px)}.ts-form textarea{min-height:44px}}
@media(prefers-reduced-motion:reduce){.trade-select,.ts-card,.ts-card>.relic-card,#bag .relic-card.is-trade-picked:after{animation:none!important;transition:none!important}}

.ts-card>.relic-card>.relic-turn,.ts-card>.relic-card>.relic-turn>.relic-front,.ts-card>.relic-card>.relic-turn>.relic-back{min-height:0!important;height:100%!important}
.ts-card .trade-item-art{flex:1 1 0;min-height:0;height:auto}

/* Tray v3: flush with the tab bar, swipe zone, stepper, quiet remove chip */
.trade-select{left:0!important;right:0!important;border-radius:22px 22px 0 0!important;border-bottom:0!important;box-shadow:0 -10px 26px #2a3a3333,inset 0 1px 0 #fff}
.ts-stage{display:block;position:relative}
.ts-strip{scroll-behavior:smooth;touch-action:pan-x;cursor:grab;padding-top:12px;padding-bottom:22px}
.ts-strip.is-dragging{scroll-snap-type:none;scroll-behavior:auto;cursor:grabbing}
.ts-card:not(.is-active) .relic-card{touch-action:pan-x}
.ts-dots{position:absolute;left:0;right:0;bottom:2px;display:flex;justify-content:center;gap:6px;pointer-events:none}
.ts-dots i{width:6px;height:6px;border-radius:50%;background:#d3cba9;transition:width .25s,background .25s}
.ts-dots i.is-on{width:18px;border-radius:3px;background:#3c7366}
.trade-select .ts-remove{right:auto;left:50%;top:auto;bottom:-11px;margin-left:-11px;width:22px;min-height:22px;height:22px;border-radius:50%;background:#fffdf4;border:1px solid #d9cdb0;box-shadow:0 2px 6px #4a3f2a2e;color:#a05a4a;transition:transform .15s,background .2s,box-shadow .2s}
.trade-select .ts-remove:active{transform:scale(.88)}
.ts-remove i{position:relative;display:block;width:10px;height:10px}
.ts-remove i:before,.ts-remove i:after{content:'';position:absolute;left:50%;top:50%;width:10px;height:1.8px;margin:-.9px 0 0 -5px;border-radius:1px;background:currentColor;transform:rotate(45deg)}
.ts-remove i:after{transform:rotate(-45deg)}
.ts-card:not(.is-active) .ts-remove{opacity:0;pointer-events:none}
.ts-qty{flex:0 0 118px;display:grid;gap:4px;font:600 11.5px Interface,sans-serif;color:#5a7a69}
.ts-step{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;height:42px;border:1px solid #c6ceb0;border-radius:14px;background:#fffdf4;overflow:hidden}
.trade-select .ts-step button{min-height:40px;height:40px;width:34px;padding:0;border:0;border-radius:0;background:#f1ecd6;color:#3c665b;font-size:19px;font-weight:700}
.ts-step input{width:100%;min-width:0;min-height:40px;padding:0;border:0;background:transparent;text-align:center;font-weight:700;color:var(--tr-ink);-moz-appearance:textfield}
.ts-step input::-webkit-outer-spin-button,.ts-step input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ts-money .icon{display:grid;place-items:center;width:22px;height:22px;flex:none}
.ts-money .icon img,.trade-lot .icon img,.trade-chip .icon img,.trade-price .icon img{width:100%;height:100%;object-fit:contain;display:block}
.trade-price .icon,.trade-chip .icon{display:inline-grid;place-items:center;width:16px;height:16px}
.ts-money input{min-height:40px}
.ts-card:not(.is-active) .ts-remove{display:none}

/* Tray v4: slide in/out, calm card states, scrollbar-free note, polished stepper, matching header buttons */
.trade-select{animation:none!important;transform:translateY(105%);transition:transform .38s cubic-bezier(.2,.8,.25,1)}
.trade-select.is-open{transform:none}
.ts-card{transition:opacity .3s ease,transform .38s cubic-bezier(.2,.8,.3,1)}
.ts-strip.is-swiping .ts-card.is-active:not(.is-near){opacity:.72;transform:none}
.ts-card.is-near{opacity:1;transform:translateY(-4px)}
.ts-card.is-near:before{content:'';position:absolute;inset:-6px;border-radius:16px;background:radial-gradient(closest-side,#f3dd9aa8,#f3dd9a00 78%);pointer-events:none}
.ts-card.is-new>.relic-card{animation-duration:.6s}
.ts-form textarea{scrollbar-width:none;-ms-overflow-style:none}
.ts-form textarea::-webkit-scrollbar{display:none}
.ts-qty{flex:0 0 136px}
.ts-qty-label{display:flex;justify-content:space-between;align-items:baseline}
.ts-qty-label em{font-style:normal;font-weight:500;color:#9b936f}
.ts-step{grid-template-columns:40px minmax(0,1fr) 40px;height:46px;padding:0 3px;gap:2px;border-radius:16px;background:linear-gradient(#fffefa,#f6f1dd);box-shadow:inset 0 1px 3px #6a5f3a24;overflow:visible}
.trade-select .ts-step button{width:36px;height:36px;min-height:36px;margin:0 auto;border-radius:50%;background:linear-gradient(#fbf6e3,#ece5c9);border:1px solid #d3caa6;box-shadow:0 1px 2px #5a4f2a2a;font-size:20px;line-height:1;transition:transform .12s,background .2s}
.trade-select .ts-step button:active{transform:scale(.9)}
.ts-step input{font-size:16px}
.item-dossier-surface .modal-header .icon-button,.item-dossier-surface .modal-header .trade-from-item{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border-radius:12px!important;display:inline-grid!important;place-items:center;font-size:20px;line-height:1}
.item-dossier-surface .modal-header .icon-button .icon{font-size:20px}
.v13-item-actions:has(>.item-discard-button:only-child){display:flex;justify-content:center}
.v13-item-actions>.item-discard-button:only-child{width:min(100%,280px);margin-inline:auto}
/* card back inside the tray: everything fits, signature included */
.ts-card .relic-back{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:10px 9px 9px!important;overflow:hidden;text-align:left}
.ts-card .relic-back>small{font-size:9px;color:#788570;text-transform:uppercase;letter-spacing:.05em}
.ts-card .relic-back .mini-back-title{position:static;font:700 12.5px/1.15 Georgia,serif;color:#366b61;margin:0;max-height:none;overflow:visible}
.ts-card .relic-back .mini-back-title span{display:block;white-space:normal;overflow:visible;text-overflow:clip}
.ts-card .relic-back .relic-back-meta{display:flex;flex-wrap:wrap;gap:4px;min-height:0}
.ts-card .relic-back .item-lore{margin:0;font-size:10px;line-height:1.35;color:#6f6c58;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.ts-card .relic-back .item-signature{margin:auto 0 0;padding:4px 6px;border-left:2px solid #c9ad63;background:#faf3d9;font-size:9.5px;line-height:1.3;color:#6d5a2e;overflow:hidden}
.ts-card .relic-back .item-signature span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ts-card .relic-back .item-signature cite{display:none}
@media(prefers-reduced-motion:reduce){.trade-select,.ts-card{transition:none!important}}

/* Tray v5 */
#app.trade-selecting #bag .item-grid{transition:padding-bottom .38s cubic-bezier(.2,.8,.25,1)}
#app.trade-selecting #bag .relic-card{outline:3px solid transparent;outline-offset:-2px;transition:outline-color .3s ease,box-shadow .35s ease,transform .3s ease}
#app.trade-selecting #bag .relic-card:after{content:'';position:absolute;right:8px;top:8px;z-index:9;width:22px;height:22px;border-radius:50%;background:#3c7366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.4 3.4L16 8' fill='none' stroke='%23fffbea' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:0 2px 6px #0003;opacity:0;transform:scale(.4);transition:opacity .25s,transform .3s cubic-bezier(.2,.9,.3,1.3);animation:none;pointer-events:none}
#app.trade-selecting #bag .relic-card.is-trade-picked{outline-color:#46806f}
#app.trade-selecting #bag .relic-card.is-trade-picked:after{opacity:1;transform:none;animation:none}
/* header buttons of the item dossier: one size, one baseline */
.item-dossier-surface .modal-header{align-items:center!important}
.item-dossier-surface .modal-header>button{position:static!important;inset:auto!important;margin:0!important;transform:none!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border-radius:12px!important;box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;line-height:1!important}
.item-dossier-surface .modal-header>.trade-from-item{margin-left:auto!important;margin-right:0!important}
.item-dossier-surface .modal-header>.trade-from-item+button{margin-left:6px!important}
/* price field: calm focus, bigger coin, no spinner */
.ts-money{padding-left:8px;transition:border-color .2s}
.ts-money:focus-within{border-color:#8fb3a2}
.ts-money input,.ts-money input:focus,.ts-money input:focus-visible{outline:none!important;box-shadow:none!important;-moz-appearance:textfield}
.ts-money input::-webkit-outer-spin-button,.ts-money input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ts-money .icon{width:30px;height:30px;font-size:26px;color:#b8892a}
.ts-money .icon img{width:100%;height:100%}
/* quantity badge on tray / detail cards */
.ts-card .trade-item-heading small,.trade-detail .trade-item-heading small{padding:1px 8px;border-radius:9px;background:#3c7366;color:#fffbea;font:700 11.5px/16px Interface,sans-serif}
.ts-card .trade-item-art{display:block;margin:0 auto;object-position:50% 50%}
/* cancel in a crimson shade */
.trade-select .ts-foot button[data-ts=cancel]{background:linear-gradient(#b4574f,#8e3b36);border-color:#7a2f2b;color:#fff1ea;text-shadow:0 1px 0 #5a1f1c66}
/* back of a tray card: compact, readable, no hard ellipsis */
.ts-card .relic-back{gap:4px;padding:9px 8px 8px!important}
.ts-card .relic-back>small{display:none}
.ts-card .relic-back .mini-back-title{font-size:12px;border-bottom:1px solid #e1d8b8;padding-bottom:4px}
.ts-card .relic-back .item-lore{font-size:9.5px;line-height:1.32;-webkit-line-clamp:unset;display:block;max-height:100%;overflow:hidden;-webkit-mask-image:linear-gradient(#000 82%,#0000);mask-image:linear-gradient(#000 82%,#0000)}

/* Round 6: header pair, quiet quantity pill, back-side exchange button */
#modal-root .item-dossier-surface .modal-header{gap:8px!important}
#modal-root .item-dossier-surface .modal-header>button,#modal-root .item-dossier-surface .modal-header>button.icon-button[data-close]{position:static!important;margin:0!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;border-radius:11px!important;box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;line-height:1!important;font-size:19px}
#modal-root .item-dossier-surface .modal-header>.trade-from-item{margin-left:auto!important}
#modal-root .item-dossier-surface .modal-header h2{flex:1 1 auto}
#valgard-effect-note.discard-note{width:min(310px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;box-sizing:border-box}
#valgard-effect-note.discard-note .discard-actions{display:flex;gap:8px}
#valgard-effect-note.discard-note .discard-actions button{flex:1 1 0;min-width:0}
.ts-card .trade-item-heading small,.trade-detail .trade-item-heading small,.inventory-topline .inventory-stock{padding:0 7px;border-radius:8px;background:#f1ecd8;border:1px solid #ddd3b0;color:#5b7a6b;font:700 10.5px/16px Interface,sans-serif;text-shadow:none}
.inventory-topline .inventory-stock{display:inline-block}
.relic-back .item-use{margin:2px 0 0;font-size:12px;line-height:1.4;color:#4f6a5c}
.relic-back .card-trade-button{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:36px;padding:0 10px;border:1px solid #9fbf93;border-radius:11px;background:linear-gradient(#ecf5e3,#d8e8cd);color:#2f5f52;font:700 12.5px Interface,sans-serif;cursor:pointer;box-sizing:border-box;transition:transform .12s}
.relic-back .card-trade-button:active{transform:scale(.97)}
.relic-back .card-trade-button i{font-style:normal;font-size:15px}
.ts-card .relic-back .item-use,.ts-card .relic-back .card-trade-button{display:none}

/* a removed card folds away before the row closes up */
.ts-card.is-leaving{overflow:hidden;opacity:0!important;transform:scale(.72) translateY(16px)!important;width:0!important;margin-right:-12px;pointer-events:none;transition:opacity .22s ease,transform .3s cubic-bezier(.4,0,.6,1),width .32s cubic-bezier(.4,0,.2,1),margin .32s cubic-bezier(.4,0,.2,1)}

/* Round 7 */
#modal-root .item-dossier-surface .modal-header>button.icon-button[data-close]{margin-left:12px!important}
#modal-root .item-dossier-surface .modal-header{gap:0!important}
.item-usage-guide{margin:8px 0 0;padding:10px 12px;border:1px solid #e1d8b8;border-radius:13px;background:#fbf7e6}
.item-usage-guide .item-use-facts{display:flex;flex-wrap:wrap;gap:8px}

.ts-card .trade-item-heading small.is-bump{animation:trade-bump .28s cubic-bezier(.2,.9,.3,1.4)}
@keyframes trade-bump{0%{transform:scale(.75)}60%{transform:scale(1.18)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.ts-card .trade-item-heading small.is-bump{animation:none}}

/* Round 8: header pair closer, centred cross drawn with lines */
#modal-root .item-dossier-surface .modal-header>button.icon-button[data-close]{margin-left:8px!important;position:relative!important;font-size:0!important}
#modal-root .item-dossier-surface .modal-header>button.icon-button[data-close]>.icon{display:none!important}
#modal-root .item-dossier-surface .modal-header>button.icon-button[data-close]:before,#modal-root .item-dossier-surface .modal-header>button.icon-button[data-close]:after{content:'';position:absolute;left:50%;top:50%;width:14px;height:2px;margin:-1px 0 0 -7px;border-radius:1px;background:#4f6f61;transform:rotate(45deg)}
#modal-root .item-dossier-surface .modal-header>button.icon-button[data-close]:after{transform:rotate(-45deg)}

.swap-glyph{display:block;flex:none}
#modal-root .item-dossier-surface .modal-header>.trade-from-item{font-size:0!important}

/* Round 9: bundle lots, detail strip, my lots, discard stepper */
.trade-sheet .trade-lot-art.is-bundle,.trade-mini .trade-lot-art.is-bundle{padding:4px}
.bundle-grid{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:2px;width:100%;height:100%}
.bundle-grid[data-n="3"] img:first-child{grid-column:1/-1;justify-self:center}
.bundle-grid img{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.trade-lot.is-bundle:after{content:'';position:absolute;right:0;top:0;width:38px;height:38px;background:linear-gradient(225deg,#e8d9a6 0 50%,#0000 50%);border-radius:0 16px 0 0;opacity:.7;pointer-events:none}
.trade-detail-strip{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;width:100%;padding:2px calc(50% - min(140px,36vw)) 6px;box-sizing:border-box;overscroll-behavior-x:contain}
.trade-detail-strip::-webkit-scrollbar{display:none}
.trade-detail-strip .trade-card-stage{flex:none;width:min(280px,72vw);scroll-snap-align:center}
.trade-detail-strip[data-count="1"]{justify-content:center;padding-left:0;padding-right:0}
.trade-detail-hint{margin:0;font-size:11.5px;color:#f1ecd8;text-align:center;text-shadow:0 1px 2px #0006}
.trade-mini-lot{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:start;gap:10px 12px;padding:12px;border-radius:16px;box-shadow:0 1px 0 #fff inset,0 2px 8px #55583f12}
.trade-mini-lot .trade-lot-art{position:relative;width:68px;height:68px;padding:6px;border-radius:14px;border:1px solid #ddd3b0;background:radial-gradient(circle at 50% 38%,#fffbe8,#efe6c8);box-shadow:inset 0 0 0 2px #fffdf4;box-sizing:border-box;display:block}
.trade-mini-lot .trade-lot-art img{display:block;width:100%;height:100%;object-fit:contain}
.trade-mini-lot .trade-mini-copy{gap:5px}
.trade-mini-names{font-size:11px;line-height:1.35;color:#8b8a6e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.trade-mini-actions{grid-column:1/-1;padding-top:9px;border-top:1px dashed #ddd3b3}
.trade-mini-actions button{flex:1 1 0;min-height:38px}
.trade-sheet .trade-mini-actions .trade-cancel{color:#8e3b36;border-color:#dcb7b1;background:linear-gradient(#fdf3f0,#f6e3de)}
.discard-count{display:grid;gap:5px;margin:8px 0 2px;font:600 11.5px Interface,sans-serif;color:#5a7a69}
.discard-count>span{display:flex;justify-content:space-between}.discard-count em{font-style:normal;font-weight:500;color:#9b936f}
.num-step{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;height:44px;padding:0 3px;border:1px solid #c6ceb0;border-radius:15px;background:linear-gradient(#fffefa,#f6f1dd);box-shadow:inset 0 1px 3px #6a5f3a24}
.num-step button{width:34px;height:34px;min-height:34px;margin:0 auto;padding:0;border-radius:50%;border:1px solid #d3caa6;background:linear-gradient(#fbf6e3,#ece5c9);color:#3c665b;font:700 19px/1 Interface,sans-serif;box-shadow:0 1px 2px #5a4f2a2a}
.num-step input{width:100%;min-width:0;min-height:36px;padding:0;border:0;background:transparent;text-align:center;font:700 16px Interface,sans-serif;color:#365f51;-moz-appearance:textfield;outline:none}
.num-step input::-webkit-outer-spin-button,.num-step input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
#valgard-effect-note.discard-note{width:min(280px,calc(100vw - 56px))!important;max-width:calc(100vw - 56px)!important}
.ts-tip:before{display:none}

/* Round 10: help bubble, meta pills, discard dialog */
.ts-head{position:relative}
.trade-select .ts-help{width:26px;min-height:26px;height:26px;padding:0;border-radius:50%;font:700 14px/1 Georgia,serif;color:#5b7a6b;background:#f4efdb;border-color:#d3caa6}
.ts-tip{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:6;padding:11px 13px;border:1px solid #cfc49c;border-radius:14px;background:#fffdf3;box-shadow:0 10px 24px #2a3a3338;font-size:12px;line-height:1.45;color:#6f6c58;animation:trade-rise .25s cubic-bezier(.2,.8,.25,1) both}
.ts-tip b{display:block;margin-bottom:3px;font:700 13.5px Georgia,serif;color:var(--tr-ink)}
.ts-tip p{margin:0}
.ts-tip:before{content:'';position:absolute;right:calc(34px + 4.5em);top:-6px;width:10px;height:10px;background:#fffdf3;border-left:1px solid #cfc49c;border-top:1px solid #cfc49c;transform:rotate(45deg)}
.trade-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.trade-meta.is-solo{grid-template-columns:minmax(0,150px)}
.trade-meta-item{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:6px 10px;border:1px solid #ddd3b0;border-radius:13px;background:#faf6e6;color:#6f7f6c}
.trade-meta-item>svg,.trade-meta-item>.icon{grid-row:1/3;align-self:center}
.trade-meta-item b{font:700 15px/1.1 Georgia,serif;color:#4e6b5c}
.trade-meta-item small{font-size:10px;line-height:1.2;color:#9b936f;white-space:nowrap}
.trade-meta-item.is-price{background:linear-gradient(#fff6d6,#f7e8b8);border-color:#e0c982}
.trade-meta-item.is-price b{color:#7a5f1c}
.trade-meta-item.is-price .icon{display:grid;place-items:center;width:24px;height:24px;font-size:24px;color:#b8892a}
.trade-meta-item.is-price .icon img{width:100%;height:100%}
.discard-count-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.discard-count-head span{font:600 12px Interface,sans-serif;color:#5a7a69}
.discard-count-head em{font-style:normal;font:500 11.5px Interface,sans-serif;color:#9b936f}
.discard-count>span{display:none}
.ts-tip:before{display:none}

/* Round 11: fan tile in My lots, compact pills, smaller tray title, tip arrow */
.ts-head b{font-size:13.5px;white-space:nowrap}
.ts-tip:before{display:block!important;left:var(--tip-x,50%);right:auto;margin-left:-5px}
.trade-mini-lot{grid-template-columns:96px minmax(0,1fr);align-items:center}
.trade-mini-lot .trade-lot-art.is-fan{width:96px;height:76px;padding:0;overflow:hidden;border-radius:14px}
.lot-fan{position:relative;display:block;width:100%;height:100%}
.lot-fan-card{position:absolute;left:50%;top:54%;width:40px;height:56px;display:grid;place-items:center;border:1px solid #d9cfae;border-radius:7px;background:linear-gradient(#fffefa,#f4eed8);box-shadow:0 2px 5px #4a3f2a33;transform-origin:50% 130%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 17px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 9deg));z-index:calc(var(--i) + 1)}
.lot-fan-card img{width:86%;height:86%;object-fit:contain}
.trade-mini-lot .trade-mini-copy>b{font:700 14px/1.15 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-meta-item{grid-template-rows:auto;min-height:30px;padding:3px 10px;column-gap:7px;border-radius:11px}
.trade-meta-item small{display:none}
.trade-meta-item>svg,.trade-meta-item>.icon{grid-row:auto}
.trade-meta-item b{font-size:14px}
.trade-meta-item.is-price .icon{width:20px;height:20px;font-size:20px}
.trade-meta{display:flex;flex-wrap:wrap;gap:6px}
.trade-meta.is-solo{display:flex}
.trade-mini-actions .trade-cancel{flex:1 1 100%}

/* Round 12: tall My-lots card with a hopping fan and twinkling stars */
.trade-mini-lot{display:flex!important;flex-direction:column;align-items:stretch;gap:9px;padding:12px}
.trade-mini-lot .trade-lot-art.is-fan{width:100%;height:116px;border-radius:14px;background:radial-gradient(ellipse at 50% 100%,#fff3c9,#f1e6c2 60%,#e9dcb4);overflow:hidden}
.lot-fan{position:relative;display:block;width:100%;height:100%}
.lot-fan-card{position:absolute;left:50%;top:56%;width:56px;height:78px;border-radius:8px;transform-origin:50% 135%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 44px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 8deg));animation:lot-fan-in .6s cubic-bezier(.2,.9,.3,1.2) both,lot-fan-hop 2.8s ease-in-out infinite;animation-delay:calc(var(--i) * .09s),calc(.7s + var(--i) * .22s)}
.lot-fan-card img{width:88%;height:88%}
.lot-star{position:absolute;left:var(--x);top:var(--y);width:9px;height:9px;margin:-4.5px 0 0 -4.5px;background:#e9b93f;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:0;animation:lot-twinkle 2.4s ease-in-out infinite;animation-delay:var(--d);pointer-events:none}
.lot-star:nth-of-type(odd){width:7px;height:7px;background:#f3d27a}
.trade-mini-lot .trade-mini-copy{gap:6px}
.trade-mini-lot .trade-mini-copy>b{font-size:15px}
.trade-mini-lot .trade-meta{margin-top:2px}
@keyframes lot-fan-in{from{opacity:0;scale:.4;translate:0 28px}to{opacity:1;scale:1;translate:0 0}}
@keyframes lot-fan-hop{0%,100%{translate:0 0}18%{translate:0 -7px}34%{translate:0 0}}
@keyframes lot-twinkle{0%,100%{opacity:0;transform:scale(.3) rotate(0)}45%{opacity:1;transform:scale(1.1) rotate(25deg)}70%{opacity:.4;transform:scale(.7) rotate(45deg)}}
@media(prefers-reduced-motion:reduce){.lot-fan-card{animation:none}.lot-star{animation:none;opacity:.7}}
/* card heading never wraps: category on the left, level or count pill on the right */
.trade-item-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;white-space:nowrap;min-width:0}
.trade-item-heading>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.trade-item-heading>small{flex:none;white-space:nowrap}

/* Round 13: the fan is made of real collectible cards that turn over */
.trade-mini-lot .trade-lot-art.is-fan{height:150px;padding:0;background:radial-gradient(ellipse at 50% 100%,#fff3c9,#f1e6c2 62%,#e9dcb4)}
.lot-fan-card{width:84px;height:118px;top:55%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 58px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg));perspective:700px}
.lot-fan-card>.relic-card{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;aspect-ratio:auto!important;box-shadow:0 6px 14px #2a2f2438;touch-action:manipulation}
.lot-fan-card>.relic-card>.relic-turn,.lot-fan-card>.relic-card>.relic-turn>.relic-front,.lot-fan-card>.relic-card>.relic-turn>.relic-back{min-height:0!important;height:100%!important}
.lot-fan-card .relic-front{display:flex;flex-direction:column;padding:6px;gap:3px}
.lot-fan-card .trade-item-heading,.lot-fan-card .trade-item-facts,.lot-fan-card .trade-item-footer{display:none}
.lot-fan-card .trade-item-art{flex:1 1 0;min-height:0;height:auto}
.lot-fan-card .trade-item-name{font-size:9.5px;line-height:1.15;text-align:center;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lot-fan-card .relic-back{display:flex;flex-direction:column;gap:3px;padding:7px 6px 6px!important;overflow:hidden;text-align:left}
.lot-fan-card .relic-back>small{display:none}
.lot-fan-card .relic-back .mini-back-title{position:static;font:700 9.5px/1.15 Georgia,serif;color:#366b61;margin:0;padding-bottom:3px;border-bottom:1px solid #e1d8b8;max-height:none;overflow:visible}
.lot-fan-card .relic-back .mini-back-title span{display:block;white-space:normal;overflow:visible}
.lot-fan-card .relic-back .relic-back-meta{display:flex;flex-wrap:wrap;gap:3px;min-height:0;transform:scale(.8);transform-origin:left top}
.lot-fan-card .relic-back .item-lore{margin:0;font-size:8px;line-height:1.3;color:#6f6c58;overflow:hidden;-webkit-mask-image:linear-gradient(#000 80%,#0000);mask-image:linear-gradient(#000 80%,#0000)}
.lot-fan-card .relic-back .item-signature,.lot-fan-card .relic-back .card-trade-button{display:none}
/* tidy text block under the fan */
.trade-mini-lot .trade-mini-copy{gap:7px}
.trade-mini-lot .trade-mini-copy>b{font:700 16px/1.15 Georgia,serif;color:#365f51}
.trade-mini-lot .trade-lot-note-text{font:500 12.5px/1.4 Interface,sans-serif;font-style:normal;color:#6f6c58;-webkit-line-clamp:2}
.trade-mini-lot .trade-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:3px}
.trade-mini-lot .trade-meta.is-solo{grid-template-columns:1fr}
.trade-mini-lot .trade-meta-item{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 12px;border-radius:12px}
.trade-mini-lot .trade-meta-item b{font:700 15px/1 Interface,sans-serif}
.trade-mini-lot .trade-meta-item.is-price{border-color:#e0c982}
.trade-mini-lot .trade-mini-actions{padding-top:10px}
.trade-mini-lot .trade-mini-actions button{min-height:40px;font:700 13px Interface,sans-serif}

.lot-fan-card .relic-front{padding:7px 6px 8px}
.lot-fan-card .trade-item-name{font-size:9px;padding-bottom:2px}

/* Round 14: smaller fan, no rim lines, always painted */
.trade-mini-lot .trade-lot-art.is-fan{height:132px}
.lot-fan-card{width:66px;height:93px;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 47px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.lot-fan-card .card-rim,.lot-fan-card .item-contour{display:none!important}
.lot-fan-card>.relic-card,.lot-fan-card .relic-turn,.lot-fan-card .relic-face{content-visibility:visible!important;contain:none!important;background-color:#fffdf4}
.lot-fan-card .trade-item-name{font-size:8px}
.lot-fan-card .relic-front{padding:6px 5px 7px}
.lot-fan-card .relic-back .mini-back-title{font-size:8.5px}
.lot-fan-card .relic-back .item-lore{font-size:7px}

.lot-fan-card>.relic-card,.lot-fan-card .relic-face{border-radius:9px}
.lot-fan-card>.relic-card{border:1px solid #d9cfae}
.lot-fan-card .relic-face{overflow:hidden}

/* Round 15: one rounded body, faces transparent */
.lot-fan-card>.relic-card{background:linear-gradient(#fffefa,#f4eed8)!important;border:1px solid #d9cfae!important;border-radius:10px!important;box-shadow:0 6px 14px #2a2f2438!important}
.lot-fan-card .relic-turn{border-radius:10px;background:none!important}
.lot-fan-card .relic-face,.lot-fan-card .relic-front,.lot-fan-card .relic-back{background:none!important;box-shadow:none!important;border:0!important;border-radius:10px!important;outline:0!important}
.lot-fan-card .relic-card:before,.lot-fan-card .relic-card:after,.lot-fan-card .relic-face:before,.lot-fan-card .relic-face:after,.lot-fan-card .item-sparks{display:none!important}

/* Round 16: the back of a fan card is a quiet collectible back: category, emblem, name */
.lot-fan-card .relic-back{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:9px 5px!important;text-align:center!important;background:linear-gradient(160deg,#f8f1d8,#eadfb4)!important;box-shadow:inset 0 0 0 3px #fffaf0,inset 0 0 0 4px #dccb94!important}
.lot-fan-card .relic-back>small{display:block!important;font:600 6.5px/1 Interface,sans-serif!important;letter-spacing:.08em;text-transform:uppercase;color:#8a7a4a}
.lot-fan-card .relic-back .relic-back-meta,.lot-fan-card .relic-back .item-lore,.lot-fan-card .relic-back .item-signature,.lot-fan-card .relic-back .item-use,.lot-fan-card .relic-back .card-trade-button{display:none!important}
.lot-fan-card .relic-back .mini-back-title{border:0!important;padding:0!important;font:700 8px/1.2 Georgia,serif!important;text-align:center!important;color:#4d6a5c!important}
.lot-fan-card .relic-back .mini-back-title:before{content:'✦';display:block;margin-bottom:4px;font:400 20px/1 Georgia,serif;color:#d4a93a;text-shadow:0 1px 0 #fff8}

/* Round 17: the back is a card too: category, the same picture, the name */
.lot-fan-card .relic-back{justify-content:flex-start!important;gap:3px!important;padding:7px 5px 7px!important}
.lot-fan-card .relic-back>small{order:0}
.lot-fan-card .relic-back:before{display:block!important;content:''!important;order:1;flex:1 1 0;width:100%;min-height:0;background:var(--art) center/contain no-repeat;filter:saturate(.85) brightness(1.02)}
.lot-fan-card .relic-back .mini-back-title{order:2}
.lot-fan-card .relic-back .mini-back-title:before{display:none!important}
.lot-fan-card .relic-back .mini-back-title{font:700 8.5px/1.15 Georgia,serif!important;color:#366b61!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Deals live in the location panel now */
.trade-tabs{grid-template-columns:1fr 1fr!important}
.trade-inline{display:flex;flex-direction:column;gap:10px;height:100%;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain;padding:2px 2px 8px;box-sizing:border-box}
.trade-inline::-webkit-scrollbar{display:none}
.trade-inline-block{display:grid;gap:7px;flex:none}
.trade-inline-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.trade-inline-head h4{display:flex;align-items:center;gap:7px;margin:0;font:700 14px Georgia,serif;color:#365f51}
.trade-inline .trade-count{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#e9e3c8;color:#7b7456;font:600 10.5px/18px Interface,sans-serif;text-align:center}
.trade-inline button{font:600 12px/1 Interface,sans-serif;min-height:32px;padding:0 12px;border-radius:10px;border:1px solid #c9cfae;background:linear-gradient(#fbf6e3,#f3edd6);color:#3c665b;cursor:pointer;margin:0}
.trade-inline .trade-inline-create{min-height:30px;background:linear-gradient(#468a7a,#3a7064);color:#fffbea;border-color:#33655a}
.trade-inline .trade-buy{background:linear-gradient(#468a7a,#3a7064);color:#fffbea;border-color:#33655a}
.trade-inline .trade-mini-lot{gap:7px;padding:9px;margin:0}
.trade-inline .trade-mini-lot .trade-lot-art.is-fan{height:100px}
.trade-inline .lot-fan-card{width:54px;height:76px;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 40px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.trade-inline .lot-fan-card .trade-item-name{font-size:7.5px}
.trade-inline .lot-fan-card .relic-back .mini-back-title{font-size:7.5px!important}
.trade-inline .lot-fan-card .relic-back>small{font-size:5.5px!important}
.trade-inline .trade-mini-lot .trade-mini-copy{gap:5px}
.trade-inline .trade-mini-lot .trade-lot-note-text{font-size:11.5px;line-height:1.3;-webkit-line-clamp:1}
.trade-inline .trade-mini-lot .trade-meta{gap:6px;margin:0}
.trade-inline .trade-mini-lot .trade-meta-item{min-height:28px;padding:0 10px;gap:6px;border-radius:10px}
.trade-inline .trade-mini-lot .trade-meta-item b{font-size:13px}
.trade-inline .trade-mini-lot .trade-meta-item.is-price .icon{width:18px;height:18px;font-size:18px}
.trade-inline .trade-mini-lot .trade-meta-item.is-props{font:600 11px Interface,sans-serif;color:#7b6a3b}
.trade-inline .trade-mini-lot .trade-mini-actions{padding-top:7px}
.trade-inline .trade-mini-lot .trade-mini-actions button{min-height:30px;font-size:12px}
.trade-inline .trade-proposal{padding:9px 10px;margin:0;border:1px solid #d8cfae;border-radius:12px;background:#fffdf3;display:grid;gap:6px;font-size:12px}
.trade-inline .trade-proposal p{margin:0;color:#7f7b66}
.trade-inline .trade-proposal-head{display:flex;justify-content:space-between;align-items:baseline}
.trade-inline .trade-proposal-head b{display:inline-flex;align-items:center;gap:5px;font:700 14px Georgia,serif;color:#6c5a2e}
.trade-inline .trade-row{display:flex;gap:7px}.trade-inline .trade-row button{flex:1}
.trade-inline .trade-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.trade-inline .trade-none{margin:0;padding:10px 12px;border:1px dashed #d6ceaf;border-radius:11px;color:#8d8667;font-size:12px;line-height:1.45}

.trade-inline .trade-mini-lot .trade-mini-actions{display:flex}
.trade-inline .trade-mini-lot .trade-mini-actions button{flex:1 1 100%}
.trade-inline .trade-sheet-hint{display:none}

/* Deals panel on short and tall phones */
@media(max-height:720px){.trade-inline .trade-mini-lot .trade-lot-art.is-fan{height:84px}.trade-inline .lot-fan-card{width:46px;height:65px;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 34px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}.trade-inline .trade-mini-lot{padding:7px;gap:5px}.trade-inline .trade-mini-lot .trade-meta-item{min-height:26px}.trade-inline .trade-mini-lot .trade-mini-actions button{min-height:28px}}
@media(min-height:860px){.trade-inline .trade-mini-lot .trade-lot-art.is-fan{height:124px}.trade-inline .lot-fan-card{width:62px;height:87px;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 46px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}}

.trade-inline .trade-mini-actions .trade-cancel,.trade-sheet .trade-mini-actions .trade-cancel{background:linear-gradient(#b4574f,#8e3b36)!important;border-color:#7a2f2b!important;color:#fff1ea!important;text-shadow:0 1px 0 #5a1f1c66}
.trade-inline .trade-mini-actions .trade-cancel:active{filter:brightness(.92)}

.ts-card .trade-item-name,.lot-fan-card .trade-item-name{overflow-wrap:anywhere;hyphens:auto;max-width:100%;line-height:1.15}
.ts-card .trade-item-name{font-size:10.5px}
.ts-card .trade-item-name.is-long{font-size:9px}
.lot-fan-card .trade-item-name.is-long{font-size:6.5px}
.trade-detail .trade-item-name.is-long{font-size:clamp(12px,3.2vw,17px)}

/* ===== Board: one offer per page ===== */
.trade-page{flex:1;min-height:0;display:flex;flex-direction:column;gap:9px;touch-action:none;animation:trade-fade-in .35s ease-out both}
.trade-page[data-dir=up]{animation:trade-slide-up .4s cubic-bezier(.2,.75,.25,1) both}
.trade-page[data-dir=down]{animation:trade-slide-down .4s cubic-bezier(.2,.75,.25,1) both}
.trade-page-seller{display:flex;align-items:center;gap:9px;flex:none;padding:7px 8px 7px 8px;border:1px solid var(--tr-line);border-radius:15px;background:linear-gradient(#fcf8e8,#f4eed8)}
.trade-page-seller .trade-avatar{width:36px;height:36px}
.trade-page-nav{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:11.5px;color:#8d8465}
.trade-page-nav b{color:#365f51}
.trade-sheet .trade-page-nav button{width:30px;min-height:30px;height:30px;padding:0;border-radius:50%;font-size:10px}
.trade-page-stage{position:relative;flex:1 1 auto;min-height:150px;border-radius:18px;background:radial-gradient(ellipse at 50% 100%,#fff3c9,#f1e6c2 62%,#e9dcb4);border:1px solid #e0d4a8;overflow:hidden;touch-action:none}
.trade-page-stage .lot-fan{position:absolute;inset:0}
.trade-page-stage .lot-fan-card{width:min(24%,86px);aspect-ratio:3/4.2;height:auto;top:53%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * min(21vw,74px))) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.trade-page-stage[data-n="1"] .lot-fan-card{width:min(34%,118px)}
.trade-page-stage[data-n="2"] .lot-fan-card{width:min(30%,104px)}
.trade-page-stage[data-n="2"] .lot-fan-card{transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * min(30vw,104px))) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.trade-page-stage .lot-fan-card .trade-item-name{font-size:9px}
.trade-page-title{flex:none;margin:0;font:700 19px/1.15 Georgia,serif;color:#365f51}
.trade-page-note{flex:none;max-height:4.2em;overflow-y:auto;scrollbar-width:none;touch-action:pan-y;padding:8px 11px;border:1px solid var(--tr-line);border-radius:12px;background:#fbf7e6;font:500 13px/1.4 Interface,sans-serif;color:#6f6c58;overflow-wrap:anywhere}
.trade-page-note::-webkit-scrollbar{display:none}
.trade-page-note.is-empty{color:#a79e7c;font-style:italic}
.trade-page .trade-meta{display:flex;flex-wrap:wrap;gap:7px;flex:none}
.trade-page .trade-meta-item{display:flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid #ddd3b0;border-radius:12px;background:#faf6e6;color:#6f7f6c}
.trade-page .trade-meta-item b{font:700 14px/1 Interface,sans-serif;color:#4e6b5c}
.trade-page .trade-meta-item.is-price{background:linear-gradient(#fff6d6,#f7e8b8);border-color:#e0c982}
.trade-page .trade-meta-item.is-price b{color:#7a5f1c}
.trade-page .trade-meta-item.is-price .icon{display:grid;place-items:center;width:20px;height:20px;font-size:20px;color:#b8892a}
.trade-page .trade-meta-item.is-want i{font-style:normal;color:#5c8a7a}
.trade-sheet .trade-page-ask{flex:none;min-height:48px;font-size:15px;border-radius:14px}
.trade-sheet .trade-page-ask:disabled{background:#d9d6c6;border-color:#c5c1ac;color:#8d8a77;box-shadow:none;animation:none}
.trade-page-hint{flex:none;margin:0;text-align:center;font-size:10.5px;color:#a49c7c}
@media(max-height:700px){.trade-page{gap:6px}.trade-page-stage{min-height:110px}.trade-page-title{font-size:16px}.trade-page-hint{display:none}.trade-sheet .trade-page-ask{min-height:40px}}

/* ===== Requests desk in the friends panel ===== */
.xc-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 10px;align-items:center;margin:0 0 8px;padding:9px 10px;border:1px solid #ddd3b0;border-radius:14px;background:linear-gradient(#fffdf3,#f7f1dc)}
.xc-row .trade-avatar{width:34px;height:34px;grid-row:span 1}
.xc-who{display:grid;gap:1px;min-width:0}.xc-who b{font:700 13.5px Interface,sans-serif;color:#365f51;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.xc-who small{font-size:11px;color:#8d8465;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xc-lot{grid-column:1/-1;display:flex;align-items:center;gap:9px;min-width:0}
.xc-lot>span:last-child{display:grid;min-width:0}.xc-lot b{font:700 12.5px Georgia,serif;color:#365f51}.xc-lot small{font-size:11px;color:#8d8465;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xc-lot .bundle-grid{width:38px;height:38px;flex:none}.xc-lot>img{width:38px;height:38px;object-fit:contain;flex:none}
.xc-lot .bundle-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;padding:2px;border:1px solid #ddd3b0;border-radius:9px;background:#fffbe8}
.xc-actions{grid-column:1/-1;display:flex;gap:8px}
.xc-row button,.xc-actions button{flex:1;min-height:34px;padding:0 12px;border-radius:10px;border:1px solid #c9cfae;background:linear-gradient(#fbf6e3,#f3edd6);color:#3c665b;font:600 12px Interface,sans-serif;cursor:pointer}
.xc-row .trade-buy{background:linear-gradient(#468a7a,#3a7064);color:#fffbea;border-color:#33655a}
.xc-row .trade-cancel{background:linear-gradient(#b4574f,#8e3b36);color:#fff1ea;border-color:#7a2f2b}
.xc-row button:disabled{opacity:.5}
.xc-row.is-session{grid-template-columns:auto minmax(0,1fr) auto}

/* ===== Exchange window ===== */
.trade-exchange-sheet{width:calc(100% - 16px);max-width:520px;height:min(790px,calc(100dvh - 92px));max-height:calc(100dvh - 92px);display:flex;flex-direction:column;overflow:hidden}
.trade-exchange-sheet .xc-body{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding:2px}
.trade-exchange-sheet .xc-body::-webkit-scrollbar{display:none}
.xc{display:flex;flex-direction:column;gap:10px}
.xc-head{display:flex;align-items:center;gap:10px}
.xc-head .trade-avatar{width:36px;height:36px}
.xc-side{padding:10px 12px;border:1px solid #ddd3b0;border-radius:16px;background:linear-gradient(#fffdf3,#f6f0da);transition:border-color .25s,box-shadow .25s}
.xc-side.is-ok{border-color:#7fb08a;box-shadow:0 0 0 2px #7fb08a40}
.xc-side header{display:flex;justify-content:space-between;align-items:center}
.xc-side h4{margin:0;font:700 14px Georgia,serif;color:#365f51}
.xc-ok{font:600 11px Interface,sans-serif;color:#8d8465}.xc-side.is-ok .xc-ok{color:#3c7366}
.xc-fan{position:relative;height:104px;margin:6px 0 4px;border-radius:12px;background:radial-gradient(ellipse at 50% 100%,#fff3c9,#f1e6c2 62%,#e9dcb4);overflow:hidden}
.xc-fan .lot-fan{position:absolute;inset:0}
.xc-fan .lot-fan-card{width:50px;height:70px;top:56%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 38px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.xc-fan .lot-fan-card .trade-item-name{font-size:7px}
.xc-empty{position:absolute;inset:0;display:grid;place-items:center;margin:0;font-size:12px;color:#a79e7c}
.xc-gold{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#7a5f1c}.xc-gold .icon{font-size:18px;color:#b8892a}.xc-gold small{color:#a79e7c}
.xc-interest{display:grid;gap:5px;text-align:left;padding:10px 12px;border:1px dashed #c9ad63;border-radius:16px;background:linear-gradient(#fff8e0,#f8ebc2);color:#6d5a2e;font:500 12px Interface,sans-serif;cursor:default}
.xc-interest.is-tappable{cursor:pointer;border-style:solid;animation:trade-pulse 2.6s ease-in-out infinite}
.xc-interest>small{font:600 11px Interface,sans-serif;color:#8a7a4a}.xc-interest em{font-style:normal;font-size:11px;color:#3c7366;font-weight:600}
.xc-interest:disabled{opacity:1}
.xc-edit{padding:10px 12px;border:1px solid #ddd3b0;border-radius:16px;background:#fbf7e6;display:grid;gap:9px}
.xc-edit-title{font:600 11.5px Interface,sans-serif;color:#7a7458}
.xc-chips{display:grid;gap:7px}
.xc-chip{display:flex;align-items:center;gap:9px;padding:6px 10px;border:1px solid #d3caa6;border-radius:12px;background:linear-gradient(#fffdf3,#f3edd6);text-align:left;cursor:pointer;font:500 12px Interface,sans-serif;color:#365f51}
.xc-chip.is-on{border-color:#46806f;background:linear-gradient(#f5fff0,#e0eed8);box-shadow:0 0 0 2px #46806f33}
.xc-chip .bundle-grid,.xc-chip>img{width:38px;height:38px;flex:none}
.xc-chip>span:last-child{display:grid;gap:2px}.xc-chip b{font:700 12.5px Georgia,serif}.xc-chip small{font-size:10.5px;color:#8d8465}
.xc-items{display:grid;gap:6px}
.xc-item{display:flex;align-items:center;gap:9px;padding:5px 8px;border:1px solid #ddd3b0;border-radius:12px;background:#fffdf3}
.xc-item b{flex:1;min-width:0;font:700 12.5px Georgia,serif;color:#365f51}
.xc-item .num-step{width:112px;grid-template-columns:30px minmax(0,1fr) 30px;height:36px}.xc-item .num-step button{width:28px;height:28px;min-height:28px;font-size:16px}
.xc-x{width:28px;height:28px;min-height:28px;padding:0;border-radius:50%;border:1px solid #d9cdb0;background:#fff;color:#a05a4a;font-size:16px;line-height:1;cursor:pointer}
.xc-edit-row{display:flex;gap:8px;align-items:center}
.xc-edit-row>button{flex:1;min-height:40px;padding:0 12px;border-radius:12px;border:1px solid #c9cfae;background:linear-gradient(#fbf6e3,#f3edd6);color:#3c665b;font:600 12.5px Interface,sans-serif;cursor:pointer}
.xc-gold-edit{display:flex;align-items:center;gap:6px;flex:0 0 130px;padding:0 10px;border:1px solid #c6ceb0;border-radius:12px;background:#fffdf4}
.xc-gold-edit .icon{font-size:20px;color:#b8892a}.xc-gold-edit input{width:100%;min-height:38px;border:0;background:transparent;font:700 15px Interface,sans-serif;color:#365f51;outline:none;-moz-appearance:textfield}
.xc-gold-edit input::-webkit-outer-spin-button,.xc-gold-edit input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.xc-picker{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 6px}
.xc-tile{--rar:#c9c2a0;flex:none;display:grid;grid-template-rows:42px auto;justify-items:center;gap:2px;width:76px;padding:6px 4px;border:1px solid #ddd3b0;border-bottom:3px solid var(--rar);border-radius:12px;background:radial-gradient(circle at 50% 28%,#fffbe8,#f0e8cd);cursor:pointer}
.xc-tile.rarity-uncommon{--rar:#7fb069}.xc-tile.rarity-rare{--rar:#5b9bd5}.xc-tile.rarity-epic{--rar:#a678d6}.xc-tile.rarity-legendary{--rar:#e0a23a}
.xc-tile img{width:100%;height:42px;object-fit:contain}.xc-tile b{font:600 9.5px/1.15 Interface,sans-serif;color:#365f51;text-align:center;overflow-wrap:anywhere}.xc-tile small{font-size:9.5px;color:#8d8465}
.xc-status{margin:0;text-align:center;font-size:12px;color:#7a7458}
.xc-foot{display:flex;gap:8px}.xc-foot button{flex:1;min-height:46px;border-radius:13px;font:700 14px Interface,sans-serif;cursor:pointer;border:1px solid #c9cfae;background:linear-gradient(#fbf6e3,#f3edd6)}
.xc-foot .trade-buy{flex:1.5;background:linear-gradient(#468a7a,#3a7064);color:#fffbea;border-color:#33655a}
.xc-foot .trade-cancel{background:linear-gradient(#b4574f,#8e3b36);color:#fff1ea;border-color:#7a2f2b}
.xc-foot button:disabled{opacity:.6;cursor:default}
.xc-item.is-unavailable{grid-template-columns:minmax(0,1fr) auto;color:#97584a}

/* Round 18: board polish, three friend tabs */
.trade-page-seller .trade-seller-copy{display:grid;gap:1px;min-width:0}
.trade-page-seller .trade-seller-copy b{font:700 15px/1.15 Georgia,serif;color:#365f51;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-page-seller .trade-seller-copy small{font-size:11px;color:#8d8465;white-space:nowrap}
.trade-page-stage .lot-fan-card{height:66%;width:auto;aspect-ratio:3/4.2;top:52%}
.trade-page-stage[data-n="1"] .lot-fan-card,.trade-page-stage[data-n="2"] .lot-fan-card{width:auto}
.trade-page-stage[data-n="1"] .lot-fan-card{height:76%}
.trade-page-stage[data-n="2"] .lot-fan-card{height:70%}
.trade-page-stage .lot-fan-card .trade-item-name{font-size:10px}
.friends-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px}
.friends-tabs button{font-size:12px;padding:0 6px;white-space:nowrap}

/* ===== Round 19: the board is a panel, the exchange is two columns ===== */
.trade-inline.is-board{overflow:hidden;padding:0}
.trade-inline .trade-page{height:100%;min-height:0;gap:7px;touch-action:pan-x;animation:trade-fade-in .3s ease-out both}
.trade-inline .trade-page[data-dir=up]{animation:trade-slide-up .35s cubic-bezier(.2,.75,.25,1) both}
.trade-inline .trade-page[data-dir=down]{animation:trade-slide-down .35s cubic-bezier(.2,.75,.25,1) both}
.trade-page-head{display:flex;align-items:center;gap:8px;flex:none;min-width:0}
.trade-page-who{display:flex;align-items:baseline;gap:6px;min-width:0;flex:1}
.trade-page-who b{font:700 14px/1.1 Georgia,serif;color:#365f51;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-page-who i{font:600 11.5px Interface,sans-serif;font-style:normal;color:#8d8465;white-space:nowrap}
.trade-page-count{font:500 11px Interface,sans-serif;color:#9b936f;white-space:nowrap}.trade-page-count b{color:#365f51}
.trade-inline .trade-page-stage{flex:1 1 0;min-height:84px;border-radius:14px}
.trade-page-text{flex:none;display:grid;gap:2px}
.trade-page-text h3{margin:0;font:700 15px/1.15 Georgia,serif;color:#365f51;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-inline .trade-page-note{padding:0;border:0;background:none;max-height:2.7em;font:500 12px/1.35 Interface,sans-serif;touch-action:pan-y}
.trade-inline .trade-page .trade-meta{gap:6px}
.trade-inline .trade-page .trade-meta-item{min-height:28px;padding:0 10px;border-radius:10px;gap:5px}
.trade-inline .trade-page .trade-meta-item b{font-size:12.5px}
.trade-inline .trade-page .trade-meta-item.is-price .icon{width:17px;height:17px;font-size:17px}
.trade-inline .trade-page-ask{flex:none;min-height:38px;margin:0;border-radius:12px;font:700 14px Interface,sans-serif;background:linear-gradient(#468a7a,#3a7064);color:#fffbea;border:1px solid #33655a;cursor:pointer}
.trade-inline .trade-page-ask:disabled{background:#d9d6c6;border-color:#c5c1ac;color:#8d8a77;cursor:default}
.trade-board-empty{display:grid;gap:8px;justify-items:center;text-align:center;padding:18px 10px;color:#8d8667}.trade-board-empty b{font:700 16px Georgia,serif;color:#4a7667}.trade-board-empty p{margin:0;font-size:12.5px}
.trade-inline .trade-page-stage .lot-fan-card{height:70%;width:auto;aspect-ratio:3/4.2}
.trade-inline .trade-page-stage[data-n="1"] .lot-fan-card{height:78%}
.trade-detail button{font:600 13px/1.1 Interface,sans-serif;min-height:40px;padding:0 12px;border-radius:10px;border:1px solid #c9cfae;background:linear-gradient(#fbf6e3,#f3edd6);color:#3c665b;cursor:pointer;margin:0}
.trade-detail .trade-buy{background:linear-gradient(#468a7a,#3a7064);color:#fffbea;border-color:#33655a}
.trade-detail button:disabled{opacity:.5}
.trade-detail{z-index:60}
/* exchange */
.xc{gap:8px}
.xc-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.xc-pair .xc-side{padding:8px 9px;min-width:0}
.xc-pair .xc-side h4{font:700 12.5px Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.xc-pair .xc-side header{gap:6px}
.xc-pair .xc-fan{height:96px;margin:5px 0 3px}
.xc-pair .xc-fan .lot-fan-card{width:44px;height:62px;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 30px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.xc-pair .xc-ok{font-size:10.5px}
.xc-interest{padding:7px 10px;gap:3px;border-radius:13px}
.xc-interest .xc-lot b{font-size:12px}
.xc-edit{padding:9px 10px;gap:7px;border-radius:14px}
.xc-edit-row>button{min-height:38px;font-size:12px}
.xc-gold-edit{flex:0 0 118px}
.xc-foot button{min-height:42px;font-size:13px}
.xc-status{font-size:11.5px}
.trade-exchange-sheet .modal-header{margin-bottom:6px}
.friends-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px}
.friends-tabs button{font-size:12px;padding:0 6px;white-space:nowrap}

/* ===== Round 21 ===== */
.trade-inline.is-board{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}
.trade-inline .trade-page{touch-action:none;transition:transform .28s cubic-bezier(.2,.75,.25,1),opacity .28s}
.trade-inline .trade-page.is-dragging{transition:none}
.trade-page-head .trade-like{margin-left:0;min-height:30px;padding:0 10px;border-radius:15px;display:inline-flex;align-items:center;gap:5px;font:600 12px Interface,sans-serif;border:1px solid #d9c9b8;background:linear-gradient(#fdf5ef,#f6e8dd);color:#8c6f5d;cursor:pointer}
.trade-page-head .trade-like.is-on{background:#fbe0d8;border-color:#e0a99b}
.trade-page-head .trade-like .trade-heart{font-size:15px;line-height:1;color:#d0705e}
.trade-page-row{flex:none;display:flex;align-items:center;gap:8px;min-width:0}
.trade-page-titlebox{flex:1;min-width:0;margin:0;padding:6px 11px;border:1px solid #ddd3b0;border-radius:12px;background:linear-gradient(#fffdf3,#f6f0da);font:700 14px/1.15 Georgia,serif;color:#365f51;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-page-row .trade-meta{flex:none;flex-wrap:nowrap;gap:5px}
.trade-inline .trade-page-note{flex:1 1 auto;min-height:2.7em;max-height:none;overflow-y:auto;font:500 12.5px/1.4 Interface,sans-serif;color:#6f6c58;padding:0 2px}
.trade-page-actions{flex:none;display:flex;gap:8px}
.trade-page-actions .trade-page-ask{flex:1}
.trade-page-actions .trade-inline-create{flex:none;padding:0 14px;min-height:38px;border-radius:12px}
.trade-inline .trade-page-stage{flex:1 1 0;min-height:80px}
.trade-heart-fly{position:absolute;z-index:9;font-style:normal;font-size:34px;line-height:1;color:#e0584a;text-shadow:0 2px 8px #7a2a2255;transform:translate(-50%,-50%);animation:heart-fly .9s ease-out forwards;pointer-events:none}
@keyframes heart-fly{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}18%{opacity:1;transform:translate(-50%,-60%) scale(1.15)}100%{opacity:0;transform:translate(calc(-50% + var(--dx,0px)),-210%) scale(1.25)}}
/* card view */
.trade-detail-strip{padding:20px calc(50% - min(105px,29vw)) 20px!important;gap:12px!important}
.trade-detail-strip .trade-card-stage{width:min(210px,58vw)!important}
.trade-detail-strip .trade-card-stage>.relic-card{width:100%!important}
.trade-detail-actions{align-items:stretch}
.trade-detail-actions button{min-height:44px!important}
.trade-detail-actions .trade-like{flex:0 0 66px!important;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.trade-detail-actions .trade-share{flex:0 0 76px!important}
.trade-detail-actions .trade-buy{flex:1 1 0!important;font-size:13px}
/* card names: readable, no clipping */
.lot-fan-card .trade-item-name{font-size:9px;line-height:1.15;-webkit-line-clamp:3}
.lot-fan-card .trade-item-name.is-long{font-size:8px}
.ts-card .trade-item-name{font-size:11px}
.ts-card .trade-item-name.is-long{font-size:9.5px}
/* chat card */
.trade-chat-link{display:flex;align-items:center;gap:9px;width:100%;margin-top:6px;padding:6px 10px;border:1px solid #cfd6b8;border-radius:12px;background:linear-gradient(#f8f6e6,#eeecd7);color:#41695c;text-align:left;cursor:pointer}
.trade-chat-link img{width:26px;height:26px;flex:none;object-fit:contain;opacity:.85}
.trade-chat-link>span{display:grid;min-width:0}.trade-chat-link b{font:700 12.5px Georgia,serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trade-chat-link small{font:500 10.5px Interface,sans-serif;color:#8d8465}
/* requests desk */
.xc-row.is-ask{grid-template-columns:auto minmax(0,1fr)}
.xc-offer{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:64px;padding:6px 8px;border-radius:12px;background:radial-gradient(ellipse at 50% 100%,#fff3c9,#f1e6c2 70%);}
.xc-mini-fan{position:relative;flex:1;height:68px;min-width:0}
.xc-mini-fan .lot-fan{position:absolute;inset:0}
.xc-mini-fan .lot-fan-card{width:38px;height:53px;top:54%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 30px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.xc-mini-fan .lot-fan-card .trade-item-name{font-size:6px}
.xc-offer-side{flex:none;display:grid;gap:4px;justify-items:end;max-width:46%}
.xc-offer-side small{font-size:11px;color:#7a7458;text-align:right}
.xc-offer-side .trade-meta-item{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:10px;background:linear-gradient(#fff6d6,#f7e8b8);border:1px solid #e0c982;font:700 13px Interface,sans-serif;color:#7a5f1c}
.xc-offer-side .trade-meta-item .icon{font-size:16px;color:#b8892a}
.xc-lotline{display:grid;text-align:right}.xc-lotline b{font:700 12px Georgia,serif;color:#365f51}.xc-lotline small{font-size:10.5px}
.xc-msg{grid-column:1/-1;margin:0;padding:6px 10px;border-radius:10px;background:#fbf7e6;font:500 12px/1.4 Interface,sans-serif;color:#6f6c58;overflow-wrap:anywhere}
/* exchange */
.xc-side.is-mine .xc-fan,.xc-side.is-theirs .xc-fan{height:100px}
.xc-side .xc-fan .lot-fan-card{width:50px;height:70px;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 38px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.xc-drawer{padding:8px 4px 6px;border:1px solid #d3c9a4;border-radius:16px;background:linear-gradient(#fffdf3,#f2ebd2);animation:xc-drawer-in .32s cubic-bezier(.2,.8,.25,1) both}
.xc-drawer header{display:flex;justify-content:space-between;align-items:center;padding:0 8px 4px}.xc-drawer header b{font:700 13px Georgia,serif;color:#365f51}
.xc-drawer header button{min-height:28px;padding:0 10px;border-radius:14px;border:1px solid #c9cfae;background:#f4efdb;color:#5b7a6b;font:600 11.5px Interface,sans-serif;cursor:pointer}
.xc-drawer-strip{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:6px 8px 8px;scroll-snap-type:x proximity}
.xc-drawer-strip::-webkit-scrollbar{display:none}
.xc-pick-card{flex:none;width:84px;height:118px;scroll-snap-align:start;cursor:pointer}
.xc-pick-card>.relic-card{width:100%!important;height:100%!important;min-height:0!important;margin:0!important;aspect-ratio:auto!important}
.xc-pick-card>.relic-card>.relic-turn,.xc-pick-card>.relic-card>.relic-turn>.relic-front,.xc-pick-card>.relic-card>.relic-turn>.relic-back{min-height:0!important;height:100%!important}
.xc-pick-card .relic-front{display:flex;flex-direction:column;padding:6px;gap:3px}
.xc-pick-card .trade-item-facts,.xc-pick-card .trade-item-footer{display:none}
.xc-pick-card .trade-item-art{flex:1 1 0;min-height:0;height:auto}
.xc-pick-card .trade-item-name{font-size:9.5px;text-align:center;line-height:1.15}
.xc-pick-card .trade-item-heading{font-size:8px}
.xc-pick-card .trade-item-heading small{padding:0 5px;font-size:9px}
@keyframes xc-drawer-in{from{opacity:0;transform:translateY(24px) scale(.98)}to{opacity:1;transform:none}}
.xc-edit-row>button{min-height:38px}

/* ===== Round 22 ===== */
.friends-list{scrollbar-width:none;-ms-overflow-style:none}.friends-list::-webkit-scrollbar{display:none}
.friends-search{display:none!important}
.friends-tabs{padding:4px;border-radius:15px;background:#efe8cf;border:1px solid #d8cfae}
.friends-tabs button{min-height:34px;border:0;border-radius:11px;background:transparent;color:#72806a;font:600 12.5px Interface,sans-serif}
.friends-tabs button[aria-selected=true]{background:#fffdf4;color:#365f51;box-shadow:0 1px 4px #49584a30,inset 0 0 0 1px #e0d7b4}
.ts-title{display:grid;gap:4px;font:600 11.5px Interface,sans-serif;color:#5a7a69}
.ts-title>span{display:flex;justify-content:space-between}.ts-title em{font-style:normal;color:#9b936f}
.ts-title input{min-height:38px;padding:0 10px;border:1px solid #c6ceb0;border-radius:10px;background:#fffdf4;color:#365f51;font:600 14px Interface,sans-serif}
.trade-chat-text{display:inline;padding:0;border:0;background:none;color:#2f6f60;font:inherit;font-weight:700;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;cursor:pointer}
.trade-detail-strip .trade-card-stage{width:min(168px,46vw)!important}
.trade-detail-strip{padding:18px calc(50% - min(84px,23vw)) 18px!important}
.trade-detail-strip .relic-card{touch-action:pan-x!important}
/* requests desk: two animation boxes with coins and an arrow */
.xc-row.is-ask{display:grid;grid-template-columns:1fr;gap:8px;padding:10px 11px}
.xc-ask-head{display:grid;gap:1px}.xc-ask-head b{font:700 14px Georgia,serif;color:#365f51}.xc-ask-head small{font-size:11px;color:#8d8465;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xc-pair-box{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px}
.xc-box{display:grid;gap:4px;min-width:0}
.xc-anim{position:relative;height:74px;border-radius:12px;background:radial-gradient(ellipse at 50% 100%,#fff3c9,#f1e6c2 70%);overflow:hidden;display:grid;place-items:center}
.xc-anim small{font-size:10.5px;color:#a79e7c}
.xc-anim .lot-fan{position:absolute;inset:0}
.xc-anim .lot-fan-card{width:38px;height:53px;top:54%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 27px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.xc-anim .lot-fan-card .trade-item-name{font-size:6px}
.xc-coins{display:flex;align-items:center;justify-content:center;gap:5px;min-height:20px;font:700 13px Interface,sans-serif;color:#7a5f1c}.xc-coins .icon{font-size:16px;color:#b8892a}.xc-coins small{font:500 10.5px Interface,sans-serif;color:#a79e7c}
.xc-arrow{font-size:18px;color:#5c8a7a}
/* exchange: quick icons, bottom sheets */
.trade-exchange-sheet{position:relative}
.xc-quick{display:flex;gap:8px;align-items:center}
.xc-quick .xc-gold-edit{flex:1;min-width:0}
.xc-icon-btn{flex:none;display:grid;place-items:center;width:46px;height:42px;padding:0;border:1px solid #c9cfae;border-radius:13px;background:linear-gradient(#fbf6e3,#f3edd6);color:#3c665b;cursor:pointer;transition:transform .12s,background .2s}
.xc-icon-btn .icon{font-size:22px}.xc-icon-btn img{width:28px;height:28px;object-fit:contain}
.xc-icon-btn:active{transform:scale(.94)}
.xc-icon-btn.is-open{background:linear-gradient(#e9f3df,#d6e6cb);border-color:#7fb08a;box-shadow:0 0 0 2px #7fb08a40}
.xc-sheet{position:absolute;left:0;right:0;bottom:0;z-index:6;padding:6px 8px 12px;border:1px solid #d3c9a4;border-bottom:0;border-radius:22px 22px 0 0;background:linear-gradient(#fffdf3,#f2ebd2);box-shadow:0 -12px 30px #2a3a3340;transform:translateY(105%);transition:transform .38s cubic-bezier(.2,.8,.25,1)}
.xc-sheet.is-open{transform:none}
.xc-sheet-grip{display:block;width:46px;height:5px;margin:2px auto 8px;border-radius:3px;background:#c9be98;touch-action:none;cursor:grab}
.xc-sheet-title{margin:0 4px 6px;font:700 13px Georgia,serif;color:#365f51}
.xc-sheet-strip{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:4px 4px 6px}.xc-sheet-strip::-webkit-scrollbar{display:none}
.xc-lot-card{flex:none;display:grid;gap:3px;justify-items:center;width:118px;padding:6px 6px 7px;border:1px solid #d3caa6;border-radius:14px;background:linear-gradient(#fffdf3,#f3edd6);cursor:pointer;color:#365f51}
.xc-lot-card.is-on{border-color:#46806f;background:linear-gradient(#f5fff0,#e0eed8);box-shadow:0 0 0 2px #46806f33}
.xc-lot-card .xc-mini-fan{width:100%;height:68px}.xc-lot-card b{font:700 12px Georgia,serif;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xc-lot-card small{font-size:10.5px;color:#8d8465}
.xc-mini-fan{position:relative}.xc-mini-fan .lot-fan{position:absolute;inset:0}
.xc-mini-fan .lot-fan-card{width:38px;height:53px;top:54%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 26px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.xc-item-art{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid #ddd3b0;border-radius:9px;background:#fffbe8}
.xc-item-art .bundle-grid{width:100%;height:100%}.xc-item-art img{width:100%;height:100%;object-fit:contain}
.xc-item small{font-size:10.5px;color:#8d8465}
.xc-gold-edit{height:42px}

/* ===== Round 23 ===== */
.friends-request-badge.is-trade{background:#e8923a!important;box-shadow:0 0 0 0 #e8923a99;animation:trade-badge-glow 1.8s ease-out infinite}
@keyframes trade-badge-glow{0%{box-shadow:0 0 0 0 #e8923ab0}70%{box-shadow:0 0 0 9px #e8923a00}100%{box-shadow:0 0 0 0 #e8923a00}}
.xc-row.is-session.is-waiting{background:linear-gradient(#fff1dc,#ffe2b8);border-color:#e8a15a;animation:trade-wait 2s ease-in-out infinite}
@keyframes trade-wait{0%,100%{box-shadow:0 0 0 0 #e8923a55}50%{box-shadow:0 0 0 4px #e8923a33}}
.chat-trade-chip{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:6px 10px;border:1.5px dashed #6fa18f;border-radius:12px;background:#f1f6ea;color:#2f6f60}
.chat-trade-chip .chat-trade-name{font:700 13px Georgia,serif;border-bottom:1.5px dashed #2f6f60}
.chat-trade-chip small{flex:1;font:500 10.5px Interface,sans-serif;color:#8d8465}
.chat-trade-chip button{width:24px;height:24px;border-radius:50%;border:1px solid #cdbda0;background:#fff;color:#a05a4a;cursor:pointer;padding:0;line-height:1}
.trade-chat-text{text-decoration:none!important;border-bottom:1.5px dashed #2f6f60;padding-bottom:1px}
/* exchange cards with crosses */
.xc-card-x{position:absolute;right:-4px;top:-5px;z-index:12;width:20px;height:20px;padding:0;border-radius:50%;border:1px solid #d9cdb0;background:#fffdf4;box-shadow:0 2px 5px #4a3f2a33;cursor:pointer}
.xc-card-x i{position:relative;display:block;width:9px;height:9px;margin:auto}
.xc-card-x i:before,.xc-card-x i:after{content:'';position:absolute;left:50%;top:50%;width:9px;height:1.7px;margin:-.85px 0 0 -4.5px;border-radius:1px;background:#a05a4a;transform:rotate(45deg)}.xc-card-x i:after{transform:rotate(-45deg)}
.xc-fan .lot-fan-card{overflow:visible}
/* interest block */
.xc-interest{display:grid;grid-template-columns:116px minmax(0,1fr);gap:10px;align-items:center;text-align:left;padding:9px 10px;border:1px dashed #c9ad63;border-radius:16px;background:linear-gradient(#fff8e0,#f8ebc2);cursor:default}
.xc-interest.is-tappable{border-style:solid;cursor:pointer;animation:trade-pulse 2.6s ease-in-out infinite}
.xc-interest-anim{position:relative;display:block;height:74px;border-radius:12px;background:radial-gradient(ellipse at 50% 100%,#fff3c9,#f1e6c2 70%);overflow:hidden}
.xc-interest-anim .lot-fan{position:absolute;inset:0}
.xc-interest-anim .lot-fan-card{width:38px;height:53px;top:54%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 27px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.xc-interest-copy{display:grid;gap:3px;min-width:0}
.xc-interest-copy>small{font:600 11px Interface,sans-serif;color:#8a7a4a}
.xc-interest-copy>b{font:700 15px/1.15 Georgia,serif;color:#365f51;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xc-interest-meta{display:flex;align-items:center;gap:8px}
.xc-interest-meta .xc-coins{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:10px;background:linear-gradient(#fff6d6,#f7e8b8);border:1px solid #e0c982;font:700 13px Interface,sans-serif;color:#7a5f1c}
.xc-interest-meta small{font:500 11px Interface,sans-serif;color:#8d8465}
.xc-interest-copy em{font-style:normal;font-size:11px;font-weight:600;color:#3c7366}
.xc-interest:disabled{opacity:1}
/* sheets: vertical lists */
.xc-sheet{max-height:62%;display:flex;flex-direction:column}
.xc-sheet-grid{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y;padding:4px 4px 8px}
.xc-sheet-grid::-webkit-scrollbar{display:none}
.xc-sheet-grid.is-bag{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:start}
.xc-sheet-grid.is-bag .xc-pick-card{width:100%;height:auto;aspect-ratio:3/4.2;max-height:210px;cursor:pointer}
.xc-sheet-grid.is-bag .xc-pick-card .trade-item-name{font-size:11px}
.xc-sheet-grid.is-lots{display:grid;gap:9px;align-content:start}
.xc-lot-row{display:grid;grid-template-columns:116px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:8px 10px;border:1px solid #d3caa6;border-radius:14px;background:linear-gradient(#fffdf3,#f3edd6);text-align:left;cursor:pointer;color:#365f51}
.xc-lot-row.is-on{border-color:#46806f;background:linear-gradient(#f5fff0,#e0eed8);box-shadow:0 0 0 2px #46806f33}
.xc-lot-anim{position:relative;display:block;height:70px;border-radius:11px;background:radial-gradient(ellipse at 50% 100%,#fff3c9,#f1e6c2 70%);overflow:hidden}
.xc-lot-anim .lot-fan{position:absolute;inset:0}
.xc-lot-anim .lot-fan-card{width:36px;height:50px;top:54%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 26px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 7deg))}
.xc-lot-copy{display:grid;gap:3px;min-width:0}
.xc-lot-copy b{font:700 14px/1.15 Georgia,serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xc-lot-meta{display:flex;align-items:center;gap:8px}
.xc-lot-meta .xc-coins{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:9px;background:linear-gradient(#fff6d6,#f7e8b8);border:1px solid #e0c982;font:700 12px Interface,sans-serif;color:#7a5f1c}
.xc-lot-meta small,.xc-lot-note{font:500 10.5px Interface,sans-serif;color:#8d8465}
.xc-lot-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xc-lot-state{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#efe8cf;color:#5b7a6b;font:700 16px/1 Interface,sans-serif}
.xc-lot-row.is-on .xc-lot-state{background:#3c7366;color:#fffbea}
.xc-sheet-strip{display:none}
.xc-icon-btn svg{display:block}

/* board paging: the old page leaves while the new one arrives */
.trade-inline.is-board{position:relative;overscroll-behavior:contain}
.trade-inline .trade-page.is-ghost{position:absolute;inset:0;z-index:0;pointer-events:none}
.trade-inline .trade-page.is-ghost.is-leaving-up{animation:board-leave-up .4s cubic-bezier(.5,0,.8,.4) both}
.trade-inline .trade-page.is-ghost.is-leaving-down{animation:board-leave-down .4s cubic-bezier(.5,0,.8,.4) both}
.trade-inline .trade-page[data-dir=up]:not(.is-ghost){animation:board-in-up .42s cubic-bezier(.2,.75,.25,1) both;z-index:1}
.trade-inline .trade-page[data-dir=down]:not(.is-ghost){animation:board-in-down .42s cubic-bezier(.2,.75,.25,1) both;z-index:1}
@keyframes board-leave-up{to{transform:translateY(-38%) scale(.94);opacity:0}}
@keyframes board-leave-down{to{transform:translateY(38%) scale(.94);opacity:0}}
@keyframes board-in-up{from{transform:translateY(55%) scale(.96);opacity:0}to{transform:none;opacity:1}}
@keyframes board-in-down{from{transform:translateY(-55%) scale(.96);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.trade-inline .trade-page{animation:none!important}}

/* ===== Round 24: a track of pages that follows the finger ===== */
.trade-inline.is-board{position:relative;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.trade-inline.is-board *{touch-action:none;-webkit-user-drag:none}
.trade-inline.is-board .trade-page-note{touch-action:pan-y}
.board-track{position:absolute;left:0;right:0;top:-100%;height:300%;display:flex;flex-direction:column;will-change:transform}
.board-track.is-settling{transition:transform .32s cubic-bezier(.2,.75,.25,1)}
.board-track .trade-page{flex:1 1 0;height:33.3333%;min-height:0;animation:none!important;transition:none;box-sizing:border-box;padding:0}
.board-track .trade-page.is-empty{visibility:hidden}
/* the card view: the cards only look, the strip handles drag and tap */
.trade-detail-strip .relic-card{pointer-events:none!important}
.trade-detail-strip{touch-action:pan-x!important;cursor:grab}
.trade-detail-strip .trade-card-stage{cursor:pointer}

/* ===== Round 25 ===== */
.mini-face{--rar:#c9c2a0;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 3px 3px;border:1px solid #d9cfae;border-bottom:3px solid var(--rar);border-radius:8px;background:linear-gradient(#fffefa,#f4eed8);box-shadow:0 3px 8px #2a2f2433;overflow:hidden;cursor:pointer}
.mini-face.rarity-uncommon{--rar:#7fb069}.mini-face.rarity-rare{--rar:#5b9bd5}.mini-face.rarity-epic{--rar:#a678d6}.mini-face.rarity-legendary{--rar:#e0a23a}
.mini-face img{flex:1 1 0;min-height:0;width:100%;object-fit:contain;pointer-events:none}
.mini-face b{font:700 7px/1.1 Georgia,serif;color:#366b61;text-align:center;max-height:2.3em;overflow:hidden;overflow-wrap:anywhere}
.mini-face em{position:absolute;right:2px;top:2px;padding:0 3px;border-radius:5px;background:#f1ecd8;border:1px solid #ddd3b0;font:700 7px/10px Interface,sans-serif;font-style:normal;color:#5b7a6b}
.lot-fan.is-mini .lot-fan-card{cursor:pointer}
/* card viewer = the strip of the selection tray */
.trade-detail.is-viewer,.trade-detail{z-index:90}
.vw-strip{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;width:100%;padding:20px calc(50% - 84px) 14px;box-sizing:border-box;overscroll-behavior-x:contain}
.vw-strip::-webkit-scrollbar{display:none}
.vw-strip.is-dragging{scroll-snap-type:none;cursor:grabbing}
.vw-card{position:relative;flex:none;width:168px;aspect-ratio:3/4.35;scroll-snap-align:center;opacity:.72;transition:opacity .3s,transform .38s cubic-bezier(.2,.8,.3,1)}
.vw-card.is-active,.vw-card.is-near{opacity:1;transform:translateY(-4px)}
.vw-strip.is-swiping .vw-card.is-active:not(.is-near){opacity:.72;transform:none}
.vw-card:not(.is-active) .relic-card{touch-action:pan-x}
.vw-card>.relic-card{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;aspect-ratio:auto!important;box-shadow:0 8px 20px #2a2f2440}
.vw-card>.relic-card>.relic-turn,.vw-card>.relic-card>.relic-turn>.relic-front,.vw-card>.relic-card>.relic-turn>.relic-back{min-height:0!important;height:100%!important}
.vw-card .relic-front{display:flex;flex-direction:column;padding:10px;gap:6px}
.vw-card .trade-item-art{flex:1 1 0;min-height:0;height:auto}
.vw-card .trade-item-name{font-size:13px}
.vw-dots{display:flex;justify-content:center;gap:6px;margin-bottom:6px}
.vw-dots i{width:6px;height:6px;border-radius:50%;background:#e9e2c8;transition:width .25s,background .25s}.vw-dots i.is-on{width:18px;border-radius:3px;background:#3c7366}
.trade-detail-strip{display:none}
/* sheets */
.xc-sheet-backdrop{position:absolute;inset:0;z-index:5;background:#2a3a3322;animation:trade-fade-in .25s ease-out both}
.xc-sheet-grip{height:6px;margin:6px auto 4px;width:56px;box-sizing:content-box;padding:8px 20px;background-clip:content-box}
.xc-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 4px 6px;touch-action:none}
.xc-sheet-head .xc-sheet-title{margin:0}
.xc-sheet-close{flex:none;min-height:30px;padding:0 12px;border-radius:15px;border:1px solid #c9cfae;background:#f4efdb;color:#5b7a6b;font:600 12px Interface,sans-serif;cursor:pointer}
.xc-sheet-grid.is-bag{grid-template-columns:repeat(2,minmax(0,1fr))}
.xc-sheet-grid.is-bag .xc-pick-card{min-width:0}
.xc-lot-anim,.xc-interest-anim{position:relative}

/* ===== Round 26: collectible mini cards, tidy rows, visible grip, boxed attributes ===== */
.mini-face{border:1.5px solid var(--rar);border-bottom-width:3px;background:linear-gradient(165deg,#fffefa 0%,var(--tint,#f4eed8) 100%)}
.mini-face.rarity-uncommon{--tint:#e6f2dc}.mini-face.rarity-rare{--tint:#dfecf9}.mini-face.rarity-epic{--tint:#eee3fa}.mini-face.rarity-legendary{--tint:#fbeccb}
.mini-face:not(.rarity-common):after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 38%,#ffffffa8 50%,transparent 62%);background-size:260% 100%;animation:mini-sheen 4.2s ease-in-out infinite;pointer-events:none}
@keyframes mini-sheen{0%{background-position:130% 0}55%,100%{background-position:-60% 0}}
.mini-face b{color:var(--rar-text,#366b61)}
.mini-face.rarity-rare b{--rar-text:#2c5f8f}.mini-face.rarity-epic b{--rar-text:#6b3f9e}.mini-face.rarity-legendary b{--rar-text:#8a5d12}.mini-face.rarity-uncommon b{--rar-text:#3f7a30}
@media(prefers-reduced-motion:reduce){.mini-face:after{animation:none}}
/* sheet: a visible grip, no close button */
.xc-sheet-close{display:none!important}
.xc-sheet-grip{height:auto;width:auto;margin:0;padding:8px 0 6px;background:none!important;display:block;text-align:center;touch-action:none;cursor:grab}
.xc-sheet-grip:before{content:'';display:block;width:58px;height:6px;margin:0 auto;border-radius:3px;background:#b3a67c;box-shadow:0 1px 0 #fff8}
.xc-sheet-head{margin-top:2px}
/* lot rows */
.xc-lot-row{grid-template-columns:104px minmax(0,1fr) 30px;gap:10px;padding:8px 10px;min-height:86px}
.xc-lot-anim{height:68px}
.xc-lot-copy{align-content:center;gap:4px}
.xc-lot-copy b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px;line-height:1.18}
.xc-lot-meta{flex-wrap:wrap;gap:4px 8px}
.xc-lot-meta .xc-coins{font-size:12px}
/* exchange blocks: compact and inside the frame */
.xc{min-width:0}
.xc-side{padding:8px 10px;overflow:hidden}
.xc-items{display:grid;gap:5px;min-width:0}
.xc-item{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;box-sizing:border-box;padding:4px 6px}
.xc-item b{flex:1 1 0;min-width:0;font-size:12px;line-height:1.15;overflow:hidden;text-overflow:ellipsis}
.xc-item .trade-pick-art{width:32px;height:32px;flex:none}
.xc-item .num-step{flex:none;width:98px;height:32px;grid-template-columns:26px minmax(0,1fr) 26px}.xc-item .num-step button{width:24px;height:24px;min-height:24px;font-size:14px}.xc-item .num-step input{font-size:13px;min-height:28px}
.xc-item small{flex:none}
.xc-x{flex:none;width:24px;height:24px;min-height:24px}
.xc-side.is-mine .xc-fan,.xc-side.is-theirs .xc-fan{height:88px;margin:4px 0 3px}
.xc-quick{gap:6px}.xc-icon-btn{width:42px;height:40px}.xc-gold-edit{height:40px}
/* card viewer: smaller picture, attributes in their own boxes */
.vw-card .trade-item-art{flex:0 0 40%;height:40%;min-height:0;object-fit:contain;margin:2px auto 0}
.vw-card .trade-item-name{font-size:13px;line-height:1.15}
.vw-card .trade-item-facts{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto;padding-top:7px;border-top:1px solid #e6e1c8}
.vw-card .item-stat-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border:1px solid #dde1cd;border-radius:7px;background:linear-gradient(100deg,#eff3e6,#fbfcf4);color:#536f61}
.vw-card .item-stat-chip b{font:700 11.5px/1.2 Interface,sans-serif;color:#4a6859}
.vw-card .item-stat-chip img{width:14px;height:14px;object-fit:contain}
.vw-card .item-stat-chip .icon{font-size:13px}
.vw-card .trade-item-footer{margin-top:6px}

/* ===== Round 27 ===== */
.trade-inline .trade-inline-create.is-amber{background:linear-gradient(#ebb94f,#c98f24);border:1px solid #a8741a;color:#fffaf0;text-shadow:0 1px 0 #7a520e66;box-shadow:0 2px 8px #a8741a40}
.trade-inline .trade-chat-btn{flex:none;display:grid;place-items:center;width:44px;min-height:38px;padding:0;border-radius:12px;border:1px solid #c9cfae;background:linear-gradient(#fbf6e3,#f3edd6);color:#3c665b;cursor:pointer}
.trade-inline .trade-chat-btn .icon{font-size:20px}
.trade-inline .trade-chat-btn:active{transform:scale(.94)}
.chat-compose .join-row{position:relative}
.chat-mirror{position:absolute;z-index:0;pointer-events:none;box-sizing:border-box;white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere;color:#365f51}
.chat-mirror u{color:#2f6f60;font-weight:700;text-decoration:underline dashed;text-decoration-thickness:1.5px;text-underline-offset:3px}
#shore-message.has-mirror{position:relative;z-index:1;background:transparent!important;color:transparent!important;-webkit-text-fill-color:transparent;caret-color:#365f51}

/* ===== Round 29: the tray can rest half-way ===== */
.ts-grip{display:block;padding:2px 0 8px;text-align:center;touch-action:none;cursor:grab}
.ts-grip:before{content:'';display:block;width:58px;height:6px;margin:0 auto;border-radius:3px;background:#b3a67c;box-shadow:0 1px 0 #fff8}
.ts-head{touch-action:none}
.ts-form-wrap{overflow:hidden;max-height:420px;transition:max-height .38s cubic-bezier(.2,.8,.25,1),opacity .25s;opacity:1}
.trade-select.is-peek .ts-form-wrap{max-height:0;opacity:0}
.trade-select.is-peek .ts-card{width:86px;height:124px}
.trade-select{transition:transform .38s cubic-bezier(.2,.8,.25,1)}

/* no focus rings on the inputs of the trade screens; a quiet border instead */
.trade-select input:focus,.trade-select textarea:focus,.trade-select input:focus-visible,.trade-select textarea:focus-visible,.trade-exchange-sheet input:focus,.trade-exchange-sheet input:focus-visible,.trade-sheet input:focus,.trade-sheet select:focus,.trade-inline input:focus{outline:none!important;box-shadow:none!important}
.trade-select input:focus,.trade-select textarea:focus{border-color:#9bbba9!important}
.trade-select .ts-money:focus-within,.trade-exchange-sheet .xc-gold-edit:focus-within{border-color:#9bbba9}

/* ===== Round 30: My deals — compact lot card, animation left, details right ===== */
.trade-inline .trade-mini-lot{display:grid!important;grid-template-columns:124px minmax(0,1fr);grid-template-areas:"art copy" "act act";gap:8px 10px;align-items:center;padding:9px 10px}
.trade-inline .trade-mini-lot .trade-lot-art.is-fan{grid-area:art;height:90px;width:124px}
.trade-inline .trade-mini-lot .trade-mini-copy{grid-area:copy;align-content:center;gap:6px;min-width:0}
.trade-inline .trade-mini-lot .trade-mini-actions{grid-area:act;padding-top:7px}
.trade-inline .trade-mini-lot .trade-meta{display:flex;flex-wrap:wrap;gap:5px}
.trade-inline .trade-mini-lot .trade-lot-note-text{font-size:11.5px;line-height:1.3;-webkit-line-clamp:2}
.trade-inline .trade-mini-lot .lot-fan-card{width:40px;height:56px;top:55%;transform:translate(-50%,-50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 27px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 6deg))}
.trade-inline .trade-mini-lot .lot-fan-card .trade-item-name{font-size:6.5px}
.trade-inline .trade-mini-lot .trade-mini-actions button{min-height:30px;font-size:12px}

/* ===== Round 31: taller viewer card, compact desk and exchange ===== */
.vw-card{aspect-ratio:3/4.5}
.vw-card .trade-item-art{flex:1 1 0;min-height:60px;max-height:38%}
.vw-card .trade-item-footer{margin-top:auto;padding-top:6px;min-height:0}
.vw-card .relic-front{padding:10px 10px 12px}
.xc-arrow{display:grid;place-items:center;color:#5c8a7a}.xc-arrow svg{display:block}
.xc-row.is-ask{gap:6px;padding:8px 10px}
.xc-anim{height:62px}
.xc-pair-box .xc-coins{min-height:16px}
.xc-msg{padding:5px 9px;font-size:11.5px;line-height:1.35}
.xc-side.is-mine .xc-fan,.xc-side.is-theirs .xc-fan{height:78px;margin:3px 0 2px}
.xc-side{padding:7px 10px}
.xc{gap:7px}
.xc-interest{padding:7px 9px;grid-template-columns:104px minmax(0,1fr);gap:8px}
.xc-interest-anim{height:64px}
.xc-interest-copy{gap:2px}
.xc-interest-copy>b{font-size:14px}
.xc-interest-copy em{font-size:10px;line-height:1.2}
.xc-status{margin:0;font-size:11px;line-height:1.3}

.chat-mirror u{color:inherit!important;font-weight:inherit!important;font-style:inherit;text-decoration:underline dashed;text-decoration-thickness:1.5px;text-underline-offset:3px}
.chat-mirror{font-weight:inherit}

/* finish badge on viewer cards: full width, low, readable */
.vw-card .trade-item-footer{display:block;width:100%;margin-top:auto;padding-top:6px}
.vw-card .trade-item-footer>*{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-width:0;height:auto!important;min-height:0!important;max-height:26px;margin:0!important;padding:3px 8px!important;box-sizing:border-box;border-radius:8px;font:700 11.5px/1.2 Interface,sans-serif!important;letter-spacing:.02em;white-space:nowrap}
.vw-card .trade-item-footer .item-finish-badge,.vw-card .trade-item-footer [class*=badge]{width:100%}

/* viewer card finish tag: one slim full-width strip */
.vw-card .trade-item-footer{display:block!important;width:100%!important;padding-top:6px!important;margin-top:auto!important}
.vw-card .item-grade-tags{display:block!important;width:100%!important;margin:0!important;padding:0!important}
.vw-card .item-refined-label{display:block!important;width:100%!important;height:24px!important;min-height:0!important;max-height:24px!important;margin:0!important;padding:0 8px!important;box-sizing:border-box!important;border-radius:8px!important;font:700 11.5px/22px Interface,sans-serif!important;letter-spacing:.02em;text-align:center;white-space:nowrap;position:static!important;transform:none!important}

.xc-interest-copy>small{font:700 12px/1.25 Interface,sans-serif;color:#7a6a3a}
.xc-interest-copy{align-content:center;gap:6px}
.xc-interest-meta .xc-coins{font-size:15px;padding:3px 12px}

.trade-deals-empty{display:grid;justify-items:center;gap:6px;padding:26px 16px;text-align:center;color:#8d8667}
.trade-deals-empty img{width:84px;height:84px;object-fit:contain;opacity:.55;animation:trade-float 3.4s ease-in-out infinite alternate}
.trade-deals-empty b{font:700 16px Georgia,serif;color:#4a7667}
.trade-deals-empty p{margin:0;max-width:240px;font:500 12.5px/1.45 Interface,sans-serif}

.trade-inline .mini-face b{display:none}
.trade-inline .mini-face img{padding:3px;box-sizing:border-box}

.trade-detail .trade-buy:disabled,.trade-detail .is-far{background:#d9d6c6!important;border-color:#c5c1ac!important;color:#8d8a77!important;box-shadow:none!important;animation:none!important}
.trade-inline .trade-page-ask:disabled{font-size:13px}

/* mini cards follow the finish of the real card */
.mini-face.fin-admin{border-color:#e0673a;background:linear-gradient(150deg,#fff0d8,#ffc98a 55%,#f3a28a);box-shadow:0 0 0 1px #ffd9a8 inset,0 3px 10px #e0673a55}
.mini-face.fin-unique{border-color:#b6d95a;background:linear-gradient(140deg,#e9f7a8,#fdf3ee 55%,#f6c3d8);box-shadow:0 3px 10px #b6d95a55}
.mini-face.fin-premium{border-color:#d9a935;background:linear-gradient(150deg,#fff3c4,#f3d47a);box-shadow:0 3px 10px #d9a93566}
.mini-face.fin-boss{border-color:#9a6bd1;background:linear-gradient(150deg,#efe2ff,#cdb4ee);box-shadow:0 3px 10px #9a6bd155}
.mini-face.fin-bloom{border-color:#e08aa8;background:linear-gradient(150deg,#ffe7f0,#f6c4d6);box-shadow:0 3px 10px #e08aa855}

/* performance: fewer endless animations and no blur on phones */
.mini-face:not(.rarity-common):after{animation:none!important}
.lot-star{animation-duration:3.6s}
.lot-star:nth-of-type(n+4){display:none}
.trade-detail{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#2a3a33c4!important}
.lot-fan-card{will-change:auto}
.trade-card-stage:before,.trade-fan:before{animation:none!important;filter:none!important}

/* ===== 0.18.28: picture-only fan cards on both faces, pages that never overlap ===== */
.lot-fan-card .trade-item-heading,.lot-fan-card .trade-item-name,.lot-fan-card .trade-item-facts,.lot-fan-card .trade-item-footer{display:none!important}
.lot-fan-card .relic-front{padding:6px!important;justify-content:center}
.lot-fan-card .trade-item-art{flex:1 1 0;width:100%;height:100%;min-height:0;object-fit:contain}
.lot-fan-card .relic-back>*{display:none!important}
.lot-fan-card .relic-back:before{display:block!important;content:''!important;position:absolute;inset:8px;flex:none;width:auto;height:auto;background:var(--art) center/contain no-repeat;filter:saturate(.8) brightness(1.04)}
.board-track .trade-page{overflow:hidden}
.board-track .trade-page-stage{flex:1 1 0;min-height:56px}
.board-track .trade-page-note{min-height:0;max-height:2.8em}
.trade-inline .trade-page-actions .trade-page-ask{white-space:nowrap;font-size:14px;padding:0 10px}
/* phones keep the hop of the fan; only the stars and sheens stay off */
.perf-lite .lot-fan-card{animation:lot-fan-in .5s cubic-bezier(.2,.9,.3,1.2) both,lot-fan-hop 2.8s ease-in-out infinite!important;animation-delay:calc(var(--i) * .08s),calc(.7s + var(--i) * .22s)!important}
button,[data-trade],[data-xc],[data-ts],.lot-fan-card,.xc-pick-card{touch-action:manipulation}

.trade-page-actions{gap:6px;min-width:0}
.trade-inline .trade-page-actions .trade-page-ask{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;padding:0 8px;font-size:13.5px}
.trade-inline .trade-page-actions .trade-inline-create{flex:none;padding:0 10px;font-size:12.5px}
.trade-inline .trade-page-actions .trade-chat-btn{flex:none;width:40px}

/* ===== 0.18.29: picture-only mini cards; the turned board card is just the picture on white ===== */
.mini-face b{display:none!important}
.mini-face img{padding:2px;box-sizing:border-box}
.trade-inline .lot-fan-card .relic-back,.lot-fan-card .relic-back{background:linear-gradient(#fffefa,#f4eed8)!important;box-shadow:none!important;padding:0!important}
.lot-fan-card .relic-back>small,.lot-fan-card .relic-back>*{display:none!important}
.trade-page-stage .lot-fan-card .relic-card{pointer-events:none}

/* Compact consumables keep their contents together in the lot viewer. */
.vw-card.is-stack{aspect-ratio:3/3.85}
.vw-card.is-material{aspect-ratio:3/3.4}
.vw-card.is-stack .trade-item-art{flex:0 0 auto;height:90px;min-height:0;max-height:none}
.vw-card.is-stack .trade-item-facts{margin-top:4px;padding-top:6px}
.vw-card.is-stack .trade-item-facts:empty,.vw-card.is-stack .trade-item-footer:empty{display:none!important}
.vw-card.is-stack .trade-item-footer{margin-top:4px!important}
.trade-select .ts-form-wrap{transition:opacity .16s ease}

/* 04.11.2026 trade tray head: title, help, a compact 1 / 4 pill and close on one even line; tidier picked cards */
.trade-select .ts-head{display:flex!important;align-items:center;gap:8px;padding-right:0}
.trade-select .ts-head b{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.trade-select .ts-help{flex:none;width:28px!important;height:28px!important;min-height:28px!important}
.trade-select .ts-count{flex:none;display:inline-flex!important;align-items:center;justify-content:center;gap:2px;height:28px;min-width:0;padding:0 10px!important;border:1px solid #ddd3b4;border-radius:999px!important;background:#fffdf4!important;white-space:nowrap!important;font:600 12px/1 Interface,sans-serif!important;color:#6d6a52;box-sizing:border-box;position:static!important}
.trade-select .ts-count i{font-style:normal;font-weight:700;color:#35574a}
.trade-select .ts-close{flex:none;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:10px!important;position:static!important}
.trade-select.is-peek .ts-card{width:96px;height:132px}
.ts-card .trade-item-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center;font-size:11px!important;line-height:1.2!important}
