/* rip/trade-sheet.css — the "Trade or gift" button on each collector and the sheet it opens (Trade UX, 14 Nov 2026).
   One button per card (Aaron, on the first mock-ups: "it all looks very overloaded and complicated"), one decision per
   sheet. The friend control (friend-add.js) still runs underneath: the sheet reads its state and presses its buttons. */
.ts-on .af-slot{display:none}
.ts-btn{position:relative;z-index:3;display:inline-flex;align-items:center;gap:7px;padding:8px 16px;border:0;border-radius:999px;
  color:var(--rip-act-ink);background:linear-gradient(180deg,#3df0de,#1fc9b8);font:800 13.5px var(--rip-body);cursor:pointer;
  box-shadow:0 4px 14px rgba(46,230,214,.25);transition:transform .12s ease,box-shadow .12s ease}
.ts-btn:active{transform:scale(.94)}
.ts-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
/* Not on your own card: friend-add.js paints "You" into the slot, and there is nobody to trade with. */
.ts-on .af-slot:has(.is-me) + .ts-btn{display:none}
.cd-fig--spares b{color:var(--rip-act)}
/* Phase 2: the same button on a public binder (/u/<name>), beside the name. */
.u-id__ts{flex:0 0 auto;align-self:flex-start;display:flex}

.ts-dim{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.55);opacity:0;transition:opacity .2s ease}
.ts-sheet{position:fixed;left:0;right:0;bottom:0;z-index:10001;max-width:520px;margin:0 auto;background:#121a28;
  border-radius:22px 22px 0 0;padding:12px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.6);
  transform:translateY(105%);transition:transform .26s cubic-bezier(.2,.9,.25,1.15)}
.ts-open .ts-dim{opacity:1}
.ts-open .ts-sheet{transform:none}
.ts-gr{width:44px;height:5px;border-radius:3px;background:rgba(255,255,255,.2);margin:0 auto 14px}
.ts-x{position:absolute;right:10px;top:8px;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#93a3b8;font-size:22px;cursor:pointer}
.ts-h{margin:0 0 4px;font:900 18px var(--rip-body);color:#fff;padding-right:40px;overflow-wrap:anywhere}
.ts-p{margin:0 0 16px;font:600 14px/1.45 var(--rip-body);color:#93a3b8}
.ts-p b{color:var(--rip-act)}
.ts-row{display:flex;gap:10px}
.ts-big{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:14px;border:0;border-radius:14px;
  font:900 16px var(--rip-body);text-decoration:none;cursor:pointer;transition:transform .12s ease}
.ts-big:active{transform:scale(.95)}
.ts-big svg{width:20px;height:20px}
/* ⚠ THREE CLASSES DEEP ON PURPOSE: `.rip-ui a` (0,1,1) paints every link the accent colour, which put teal text on the
   teal Trade button. The buttons are links (they go straight to the picker), so they have to out-rank it. */
.ts-root .ts-big.ts-trade{background:linear-gradient(180deg,#3df0de,#1fc9b8);color:#04201d}
.ts-root .ts-big.ts-gift{background:linear-gradient(180deg,#ffdb73,#f5b93a);color:#2a1c00}
.ts-root .ts-big.ts-plain{background:rgba(255,255,255,.08);color:#fff}
.ts-done{display:flex;align-items:center;gap:10px;font:800 15px var(--rip-body);color:#fff}
.ts-done svg{width:26px;height:26px;color:var(--rip-up);animation:tsPop .35s cubic-bezier(.2,.9,.25,1.4)}
@keyframes tsPop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.ts-sheet,.ts-dim,.ts-btn,.ts-big{transition:none}.ts-done svg{animation:none}}
