/* FLICK · VELVET CASE (DESIGN.md v1, Stage 0184c2fc, 2026-11-11).
   Every coin is a collectible card: ivory pearl stock with a real edge, a holographic foil frame, a sheen that slides with the drag,
   the live chart printed in a plum-black art window, the name plate under it. The cards lie on mulberry velvet.
   Phone first: top bar · the deck with its buttons under it · tab bar. Desktop: just flicked · the deck · your likes.
   Everything that moves is transform / opacity. Colours live only in :root. */

@font-face { font-family: "Encode Sans Expanded"; src: url(/fonts/encode-sans-expanded-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Encode Sans Expanded"; src: url(/fonts/encode-sans-expanded-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Encode Sans Expanded"; src: url(/fonts/encode-sans-expanded-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Encode Sans Expanded"; src: url(/fonts/encode-sans-expanded-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/fonts/atkinson-hyperlegible-next-200-800.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --room: #3f1538; --room-hi: #5c2253; --room-lo: #26091f; --room-2: #4a1a42;
  --glass: rgba(255, 236, 250, .085); --glass-2: rgba(255, 236, 250, .14); --rim: rgba(255, 236, 250, .12);
  --stock: #f7f3ec; --stock-2: #ede6da; --stock-3: #e3dacb; --edge: #d6cab6; --edge-2: #b9ab94;
  --ink: #1c1320; --ink-2: #5d5266; --ink-3: #9a90a2; --line: rgba(28, 19, 32, .1); --line-2: rgba(28, 19, 32, .18);
  --on: #fdf5fb; --on-2: rgba(253, 245, 251, .74); --on-3: rgba(253, 245, 251, .48);
  --art: #1f1022; --art-2: #140914; --art-line: rgba(255, 236, 250, .07);
  --buy: #19d38a; --buy-hi: #4cf3b0; --buy-lo: #0db171; --buy-ink: #04291a;
  --super: #f2b632; --super-hi: #ffe28c; --super-lo: #e0950f; --super-ink: #3a2600;
  --pass: #a79cab; --gold: #f2b632; --match: #c78bff;
  --up: #0f9f6a; --down: #d93a4a; --up-d: #3ee6a0; --down-d: #ff6b7d;
  --foil: conic-gradient(from 215deg, #ff9fd6, #ffd27a 14%, #a4f7cf 30%, #86d6ff 46%, #b9a2ff 62%, #ff9fd6 78%, #ffe08a 90%, #ff9fd6);
  --foil-l: linear-gradient(100deg, #fff3c9 0%, #ffe0f1 30%, #dcefff 62%, #d9ffe9 100%);
  --display: "Encode Sans Expanded", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --feel-font: var(--display);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.35, .5, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --r-card: 20px; --r-art: 13px; --r-sheet: 26px; --r-tile: 16px;
  --plate: 184px;
  --sh-card: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 3px 0 var(--edge), 0 4px 0 rgba(30, 6, 26, .35), 0 34px 60px -26px rgba(12, 0, 10, .75), 0 10px 22px -12px rgba(12, 0, 10, .45);
  --sh-btn: 0 2px 0 var(--edge), 0 3px 0 rgba(30, 6, 26, .3), 0 12px 22px -10px rgba(12, 0, 10, .6);
  --sh-pop: 0 24px 50px -18px rgba(12, 0, 10, .7), 0 2px 0 var(--edge);
  color-scheme: dark;
}

/* ---- base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body {
  color: var(--on); font: 450 15px/1.4 var(--ui); font-variant-numeric: tabular-nums;
  background: radial-gradient(130% 70% at 50% -8%, var(--room-hi) 0%, var(--room) 46%, var(--room-lo) 100%) fixed, var(--room);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow: hidden;
}
/* the velvet's nap: one faint static layer */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .85 0 0 0 0 .95 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--buy); color: var(--buy-ink); }
:focus-visible { outline: 2px solid var(--super-hi); outline-offset: 2px; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--ink-2); }
.is-hidden, .hx.is-hidden { display: none !important; }

/* scrollbars: thin, in the room's colours, no arrows (owner rule) */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255, 220, 245, .22); border-radius: 6px; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.sh-panel::-webkit-scrollbar-thumb, .profile::-webkit-scrollbar-thumb, .c-art *::-webkit-scrollbar-thumb { background: rgba(28, 19, 32, .2); }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 220, 245, .22) transparent; } }

#app {
  position: relative; z-index: 1; height: 100dvh; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "stage" "tabs";
}

/* ---- top bar: filters · deck tabs · PnL pill (phone); mark + nav · tabs · balance + CA + X (desktop) */
.top { grid-area: top; display: flex; align-items: center; gap: 8px; height: calc(54px + var(--sat)); padding: var(--sat) 10px 0; position: relative; z-index: 20; }
.top-l, .top-c { display: contents; }
.top .flt { order: 1; flex: 0 0 auto; } .stabs { order: 2; } .top-r { order: 3; margin-left: auto; display: flex; align-items: center; gap: 8px; } #pnl { order: 4; }
.mark { display: inline-flex; align-items: center; gap: 7px; color: var(--on); padding: 0 4px; }
.mark-g { width: 26px; height: 26px; color: var(--buy); display: block; } .mark-g svg { width: 100%; height: 100%; }
.mark-t { font: 900 21px/1 var(--display); letter-spacing: -.045em; }
.mark-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 2px var(--stock); }
.mark-logo[hidden] { display: none; } .mark:has(.mark-logo:not([hidden])) .mark-g { display: none; }
body[data-page="deck"] .top .mark { display: none; }
.dnav { display: none; }
.ibtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); color: var(--on); }
.ibtn svg { width: 20px; height: 20px; }
.stabs { flex: 1; min-width: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; height: 44px; align-items: center; }
.stabs::-webkit-scrollbar { display: none; }
.stabs > button:first-child { margin-left: auto; } .stabs > button:last-child { margin-right: auto; }
.stabs button { flex: 0 0 auto; position: relative; isolation: isolate; height: 44px; min-width: 0; padding: 0 10px; font: 700 13.5px var(--ui); color: var(--on-3); white-space: nowrap; transition: color .18s var(--ease); }
.stabs button::before { content: ""; position: absolute; inset: 6px 0; border-radius: 999px; z-index: -1; transition: background .18s var(--ease); }
.stabs button.on { color: var(--ink); } .stabs button.on::before { background: var(--stock); box-shadow: 0 2px 0 var(--edge); }
body:not([data-page="deck"]) .stabs, body:not([data-page="deck"]) .top .flt { display: none; }
.pnl { height: 38px; min-width: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px 0 11px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); font: 800 13px var(--display); letter-spacing: -.02em; color: var(--on); }
.pnl.paper { box-shadow: inset 0 0 0 1.4px transparent; outline: 1.4px dashed var(--on-3); outline-offset: -1.4px; }
.pnl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-3); flex: 0 0 auto; }
.pnl.has.is-up .pnl-dot { background: var(--up-d); box-shadow: 0 0 10px var(--up-d); } .pnl.has.is-down .pnl-dot { background: var(--down-d); }
.pnl-o { font: 700 12px var(--ui); color: var(--on-3); } .pnl-v:empty { display: none; }
.pnl.is-up .pnl-v { color: var(--up-d); } .pnl.is-down .pnl-v { color: var(--down-d); }
body[data-page="deck"] .pnl-o { display: none; }
.hca, .hx { height: 38px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); display: flex; align-items: center; gap: 7px; padding: 0 12px; font: 700 13px var(--ui); color: var(--on); }
.hca .k { font: 900 11px var(--display); letter-spacing: .08em; color: var(--buy); } .hca i { width: 15px; height: 15px; color: var(--on-2); } .hca i svg { width: 100%; height: 100%; }
.hca.copied i { color: var(--buy); }
.hca-wrap:not(.is-live) .hca { color: var(--on-3); cursor: default; } .hca-wrap:not(.is-live) .hca .k { color: var(--on-3); }
.hca-wrap:not(.is-live) .hca::after { content: "soon"; font: 700 12px var(--ui); color: var(--on-3); }
.hx { width: 38px; padding: 0; justify-content: center; } .hx svg { width: 15px; height: 15px; }
@media (max-width: 430px) { #t-ca-text { display: none !important; } }
@media (max-width: 959px) { body[data-page="deck"] #t-x { display: none !important; } }
.go-real { display: none; flex: 0 0 auto; height: 38px; padding: 0 15px; border-radius: 999px; align-items: center; position: relative;
  background: linear-gradient(160deg, var(--buy-hi), var(--buy-lo)); color: var(--buy-ink); font: 800 13px var(--display); letter-spacing: -.02em; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(25, 211, 138, .7); }
body.real-ui .go-real { display: inline-flex; }
.go-real.bal-pill { background: var(--stock); color: var(--ink); box-shadow: 0 2px 0 var(--edge); }
@media (max-width: 959px) { body.real-ui #pnl { display: none; } }
.top-r .go-real { order: -1; }

/* ---- the stage: the deck, the buttons under it */
.stage { grid-area: stage; position: relative; min-height: 0; }
.deck { position: absolute; left: 12px; right: 12px; top: 4px; bottom: 100px; touch-action: none; overscroll-behavior: none; }
/* the deck has thickness: two card edges under the top card (static, never animated) */
.deck::before, .deck::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -8px; height: 40px; border-radius: 0 0 var(--r-card) var(--r-card); background: #e9e0d0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--edge-2), 0 12px 24px -12px rgba(12, 0, 10, .7); z-index: 0; }
.deck::after { left: 19px; right: 19px; bottom: -15px; background: #d9cdb9; box-shadow: 0 2px 0 #a99a82, 0 10px 20px -10px rgba(12, 0, 10, .7); }
.deck.is-empty::before, .deck.is-empty::after { opacity: 0; }
.dk-empty { position: absolute; inset: 0; border-radius: var(--r-card); border: 1.5px dashed var(--rim); display: grid; place-content: center; text-align: center; gap: 6px; opacity: 0; transition: opacity .3s; padding: 24px; z-index: 1; }
.dk-empty b { font: 800 22px/1.15 var(--display); letter-spacing: -.03em; color: var(--on); }
.dk-empty span { font-size: 14px; color: var(--on-2); font-weight: 550; max-width: 30ch; }
.dk-empty .pill { pointer-events: auto; justify-self: center; margin-top: 10px; }
.deck.is-empty .dk-empty { opacity: 1; }

/* ---- THE CARD */
.card {
  position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); visibility: hidden; overflow: hidden; isolation: isolate;
  background: linear-gradient(176deg, #fbf8f3 0%, var(--stock) 38%, #f1ebe1 100%); color: var(--ink);
  box-shadow: var(--sh-card); transform-origin: 50% 118%; contain: layout paint; will-change: transform;
  cursor: grab; user-select: none; -webkit-user-select: none; --sx: 0;
}
.card:active { cursor: grabbing; } .card img { -webkit-user-drag: none; }
/* the foil frame: a thin holographic line just inside the edge */
/* the foil: a fine holographic frame just inside the edge (2 px, saturated so it reads as foil at rest, a stock hairline inside it);
   a glint runs along it ONLY while the card is dragged (Stage moves one element's transform from Feel's onDrag; nothing moves on its own) */
.c-foil { position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; pointer-events: none; z-index: 9; overflow: hidden;
  background: var(--foil); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.c-foil i { position: absolute; top: -40%; bottom: -40%; left: -80%; width: 260%; transform: translate3d(-30%, 0, 0); transition: transform .3s cubic-bezier(.2, .7, .3, 1); will-change: transform;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .0) 46%, rgba(255, 255, 255, .95) 49.5%, rgba(255, 255, 255, 0) 53%, transparent 56%); }
.card::after { content: ""; position: absolute; inset: 2.5px; border-radius: calc(var(--r-card) - 2.5px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); pointer-events: none; z-index: 9; }
/* the art window: the live chart printed on the card */
.c-art { position: absolute; left: 8px; right: 8px; top: 8px; bottom: var(--plate); border-radius: var(--r-art); overflow: hidden; z-index: 1;
  background: radial-gradient(120% 60% at 50% 112%, hsl(var(--h, 300) 70% 42% / .38), transparent 62%), linear-gradient(180deg, var(--art) 0%, var(--art-2) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 2px 10px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .9); color: var(--on); }
.c-sheen { position: absolute; top: -30%; bottom: -30%; left: -60%; width: 220%; pointer-events: none; z-index: 8;
  background: linear-gradient(108deg, transparent 40%, rgba(255, 255, 255, .0) 43%, rgba(255, 255, 255, .13) 47.5%, rgba(205, 240, 255, .1) 50%, rgba(255, 214, 248, .08) 52.5%, transparent 57%);
  transform: translate3d(-9%, 0, 0); transition: transform .28s cubic-bezier(.2, .7, .3, 1); will-change: transform; }
.c-pages, .c-page { position: absolute; inset: 0; }
.c-page { opacity: 0; visibility: hidden; } .c-page.on { opacity: 1; visibility: inherit; }
/* page bars (Tinder's photo indicators), 4 px to see, 16 px to hit */
.c-bars { position: absolute; left: 10px; right: 10px; top: 3px; display: flex; gap: 5px; z-index: 6; }
.c-bars i { flex: 1; height: 16px; border-block: 6px solid transparent; background: rgba(255, 236, 250, .22); background-clip: padding-box; border-radius: 8px; cursor: pointer; }
.c-bars i.on { background: rgba(255, 246, 252, .92); background-clip: padding-box; }
.c-bars:has(i:only-child) { display: none; }
/* change since the card was dealt */
.chg { position: absolute; left: 10px; top: 22px; z-index: 6; height: 26px; min-width: 66px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font: 800 12px var(--display); letter-spacing: -.02em; background: rgba(255, 236, 250, .1); color: var(--on-2); box-shadow: inset 0 0 0 1px var(--rim); }
.chg.up { color: var(--up-d); background: rgba(62, 230, 160, .12); box-shadow: inset 0 0 0 1px rgba(62, 230, 160, .25); }
.chg.down { color: var(--down-d); background: rgba(255, 107, 125, .12); box-shadow: inset 0 0 0 1px rgba(255, 107, 125, .25); }
.card:not([data-pg="0"]) .chg { opacity: 0; }
/* the chart itself */
.c-tv { position: absolute; left: 0; right: 0; top: 52px; bottom: 18px; overflow: hidden; -webkit-touch-callout: none; cursor: default; }
.c-tv a[href*="tradingview"] { opacity: .35; transform: scale(.75); transform-origin: 0 100%; filter: invert(1); }
.c-tv table td:last-child, .c-tv tr:last-child td { touch-action: none; }
.c-tv.zoomed { cursor: grab; }
.c-tf { position: absolute; right: 8px; top: 21px; z-index: 6; display: flex; gap: 1px; padding: 2px; border-radius: 999px; background: rgba(255, 236, 250, .08); box-shadow: inset 0 0 0 1px var(--rim); }
.c-tf button { height: 24px; min-width: 34px; padding: 0 8px; border-radius: 999px; font: 700 11.5px var(--ui); color: var(--on-3); position: relative; }
.c-tf button.on { background: var(--stock); color: var(--ink); }
.c-fit { display: none !important; } .card.zoomed .c-fit { display: inline-flex !important; align-items: center; background: var(--buy) !important; color: var(--buy-ink) !important; }
/* the plate: name, cap, CA, the one-liner, three tags */
.c-info { position: absolute; left: 16px; right: 14px; bottom: 32px; height: 134px; z-index: 3; display: flex; flex-direction: column; gap: 9px; color: var(--ink); }
.c-name { display: flex; align-items: center; gap: 10px; min-width: 0; height: 46px; flex: 0 0 auto; }
.c-logo { display: block; position: relative; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--t-top, var(--stock-2));
  box-shadow: 0 0 0 2px var(--stock), 0 0 0 3.2px var(--line-2), 0 6px 14px -6px rgba(28, 19, 32, .5); }
.c-logo::before { content: attr(data-l); position: absolute; inset: 0; display: grid; place-items: center; font: 900 17px var(--display); color: var(--t-deep, var(--ink-2)); }
.c-logo img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.c-logo.sm { width: 34px; height: 34px; } .c-logo.md { width: 46px; height: 46px; }
.c-nm { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-name .sym { display: block; font: 900 26px/1 var(--display); letter-spacing: -.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-bottom: 1px; }
.c-cap { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
.c-cap small { font: 800 9.5px var(--display); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.cap-v { display: block; font: 900 26px/1 var(--display); letter-spacing: -.05em; white-space: nowrap; min-width: 4.4em; text-align: right; }
.c-ca { align-self: flex-start; height: 22px; padding: 0 7px 0 8px; margin-left: -2px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; position: relative;
  background: var(--stock-2); color: var(--ink-2); font: 700 11.5px var(--ui); }
.c-ca svg { width: 12px; height: 12px; opacity: .8; } .c-ca:active { background: var(--stock-3); }
.c-ca::after { content: ""; position: absolute; inset: -10px -4px; }
.c-more { position: absolute; right: 16px; bottom: calc(var(--plate) - 17px); z-index: 5; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--stock); color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--stock), 0 0 0 2.5px var(--line-2), 0 8px 16px -8px rgba(12, 0, 10, .6); }
.c-more svg { width: 18px; height: 18px; } .c-more::after { content: ""; position: absolute; inset: -6px; }
.card.pg-full .c-more { visibility: hidden; }
.c-line { margin: 0; flex: 0 0 auto; font: 550 16px/1.32 var(--ui); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.64em; }
.c-tags { display: flex; gap: 6px; overflow: hidden; height: 28px; flex: 0 0 auto; }
.tg { height: 28px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 12.5px var(--ui); white-space: nowrap; flex: 0 0 auto; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tg.t2 { background: var(--ink); color: var(--stock); box-shadow: none; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.c-held { height: 28px; padding: 0 11px; border-radius: 999px; font: 800 12px var(--ui); display: none; align-items: center; white-space: nowrap; flex: 0 0 auto; background: var(--buy); color: var(--buy-ink); }
.card.is-held .c-held { display: inline-flex; } .card.is-held .c-tags .t2 { display: none !important; }
/* the set line at the card's foot */
.c-set { position: absolute; left: 16px; right: 16px; bottom: 11px; height: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; font: 800 9px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.c-set .cs-mk { color: var(--ink-2); } .c-set .cs-r { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.c-set .cs-bar { width: 46px; height: 4px; border-radius: 4px; background: var(--stock-3); overflow: hidden; } .c-set .cs-bar i { display: block; height: 100%; width: calc(var(--cv, 0) * 100%); background: var(--ink-2); border-radius: 4px; }
.card.is-bonded .c-set .cs-bar i { background: var(--super); }
/* the reason line: straddles the art window's lower edge like a foil badge (similarity first, a favoured wallet next to it) */
.c-why { position: absolute; left: 0; right: 44px; bottom: calc(100% + 4px); z-index: 4; display: flex; gap: 6px; pointer-events: none; height: 28px; }
.c-match { height: 28px; padding: 0 12px 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; white-space: nowrap; color: var(--ink);
  font: 800 12.5px var(--ui); background: var(--foil-l); box-shadow: 0 0 0 1.5px var(--stock), 0 8px 18px -8px rgba(12, 0, 10, .6); }
.c-match svg { width: 15px; height: 15px; flex: 0 0 auto; color: #a24bd6; } .c-match .m-t { overflow: hidden; text-overflow: ellipsis; }
.card:not(.is-match) .c-match { display: none; }
.c-fav { height: 28px; max-width: 100%; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font: 800 12.5px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--super-hi); color: var(--super-ink); box-shadow: 0 0 0 1.5px var(--stock), 0 8px 18px -8px rgba(12, 0, 10, .6); }
.shade { position: absolute; inset: 0; border-radius: inherit; background: rgba(38, 9, 31, .42); opacity: 0; pointer-events: none; z-index: 10; }
.card.glow-lite { box-shadow: 0 0 0 2px #e6ccff, var(--sh-card); }

/* chart layers (tvchart.js): axis pills, bubbles over their candles, TP / SL / order handles, the tip */
.tv-pills, .tv-handles { position: absolute; inset: 0; pointer-events: none; z-index: 6; } .tv-handles { z-index: 7; }
.tv-pill { position: absolute; right: 4px; top: 0; height: 20px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font: 800 10.5px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; color: var(--buy-ink); }
.tv-pill.up { background: var(--up-d); } .tv-pill.down { background: var(--down-d); color: #2a0008; } .tv-pill.ath { background: var(--super-hi); color: var(--super-ink); } .tv-pill.entry { background: var(--stock); color: var(--ink); }
.tv-lane { display: none; }
.tv-bubs { position: absolute; left: 0; top: 0; right: 62px; bottom: 26px; z-index: 5; pointer-events: none; }
.tvb { position: absolute; left: 0; top: 0; width: 20px; height: 20px; pointer-events: auto; cursor: pointer; will-change: transform; transition: opacity .16s; }
.tvb > i { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 800 8px/1 var(--display); font-style: normal; letter-spacing: -.02em;
  background: var(--stock); color: var(--ink); box-shadow: 0 0 0 1.5px var(--art), 0 0 0 3px var(--ring, rgba(255, 236, 250, .5)), 0 3px 8px -3px rgba(0, 0, 0, .6); transition: transform .16s var(--spring); }
.tvb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; } .tvb.pic img { opacity: 1; }
.tvb em { font-style: normal; position: relative; } .tvb img + em { display: inline; } .tvb.pic img + em { display: none; }
.tvb.s-b { --ring: var(--up-d); } .tvb.s-s { --ring: var(--down-d); }
.tvb.k-kol > i { background: #eadcff; color: #5b22b8; font-size: 11px; } .tvb.k-tracked > i { background: #dbe6ff; color: #2443c9; font-size: 11px; }
.tvb.k-dev > i { background: var(--ink); color: var(--stock); font-size: 7px; } .tvb.k-mine > i { background: var(--buy); color: var(--buy-ink); font-size: 7px; }
.tvb.k-mig > i { background: var(--super-hi); color: var(--super-ink); font-size: 11px; } .tvb.k-mig { --ring: var(--super); }
.tvb.more > i { background: var(--art); color: var(--on-2); font-size: 8px; } .tvb.more { --ring: rgba(255, 236, 250, .3); pointer-events: none; }
.tvb:hover, .tvb.hot { z-index: 60 !important; } .tvb:hover > i, .tvb.hot > i { transform: scale(1.6); }
.tvb.under { opacity: .22; } .tvb.under:hover, .tvb.under.hot { opacity: 1; }
.tvb-n { position: absolute; right: -5px; top: -4px; min-width: 13px; height: 13px; padding: 0 2px; border-radius: 7px; display: grid; place-items: center; background: var(--stock); color: var(--ink); font: 800 8px/1 var(--display); font-style: normal; box-shadow: 0 0 0 1.5px var(--art); }
.tv-desk .tvb { width: 24px; height: 24px; } .tv-desk .tvb > i { font-size: 9px; } .tv-desk .tvb.k-dev > i, .tv-desk .tvb.k-mine > i { font-size: 8px; } .tv-desk .tvb.k-mig > i { font-size: 13px; }
.tv-desk .tvb.k-kol > i, .tv-desk .tvb.k-tracked > i { font-size: 9px; } .tv-desk .tvb:hover > i, .tv-desk .tvb.hot > i { transform: scale(1.34); }
.tv-tip { position: absolute; left: 0; top: 0; z-index: 41; max-width: min(280px, calc(100% - 12px)); padding: 7px 11px; border-radius: 12px; background: var(--stock); color: var(--ink); font: 700 12px/1.3 var(--ui);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; transition: opacity .14s; white-space: normal; }
.tv-tip.on { opacity: 1; }
.tv-h { position: absolute; left: 8px; top: 0; height: 28px; padding: 0 11px; border-radius: 999px; pointer-events: auto; touch-action: none; cursor: ns-resize;
  display: inline-flex; align-items: center; gap: 6px; font: 800 11.5px var(--display); letter-spacing: -.02em; color: var(--buy-ink); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.tv-h::before { content: ""; width: 11px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor; opacity: .7; }
.tv-h::after { content: ""; position: absolute; inset: -7px 0; }
.tv-h.tp { background: var(--up-d); } .tv-h.sl { background: var(--down-d); color: #2a0008; } .tv-h.sl.above { background: var(--up-d); color: var(--buy-ink); }
.tv-h.drag { scale: 1.08; }
.tv-o { left: 8px; gap: 6px; padding: 0 4px 0 11px; max-width: calc(100% - 78px); background: var(--super); color: var(--super-ink); cursor: ns-resize; }
.tv-ot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.tv-ox { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(58, 38, 0, .16); font-size: 10px; font-weight: 800; cursor: pointer; position: relative; }
.tv-ox::after { content: ""; position: absolute; inset: -11px; }

/* pages 2-4 (X post · site · holders): the art window turns into a light page the full height of the card */
.c-slim { position: absolute; left: 16px; right: 14px; top: 22px; height: 30px; z-index: 6; display: none; align-items: center; gap: 8px; color: var(--ink); }
.c-slim .c-logo.sm2 { width: 26px; height: 26px; box-shadow: 0 0 0 1.5px var(--stock); }
.c-slim .sl-sym { font: 900 17px/1 var(--display); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.c-slim .sl-cap { margin-left: auto; font: 800 15px var(--display); letter-spacing: -.04em; color: var(--ink-2); }
.card.pg-full .c-art { bottom: 8px; background: var(--stock-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.card.pg-full .c-bars i { background: rgba(28, 19, 32, .14); background-clip: padding-box; } .card.pg-full .c-bars i.on { background: var(--ink); background-clip: padding-box; }
.card.pg-full .c-slim { display: flex; }
.card.pg-full .c-info, .card.pg-full .c-set, .card.pg-full .c-sheen { visibility: hidden; }
.c-xwrap, .c-site, .c-hold { position: absolute; left: 8px; right: 8px; top: 54px; bottom: 8px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.c-xwrap::-webkit-scrollbar, .c-site::-webkit-scrollbar, .c-hold::-webkit-scrollbar { display: none; }
.c-sum { margin: 0; padding: 2px 6px 0; font: 600 15px/1.45 var(--ui); color: var(--ink); }
.c-xpost { display: flex; flex-direction: column; gap: 9px; padding: 14px 15px; border-radius: 16px; background: #fffdf9; box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -14px rgba(28, 19, 32, .5); color: var(--ink); }
.xp-h { display: flex; align-items: center; gap: 10px; } .xp-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--stock-2); flex: 0 0 auto; } .x-av img { width: 100%; height: 100%; object-fit: cover; }
.x-name { font: 800 14.5px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .x-who { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.x-logo { width: 17px; height: 17px; color: var(--ink); }
.x-text { margin: 0; font: 500 15px/1.45 var(--ui); white-space: pre-line; }
.x-pic { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; } .x-pic.multi { grid-template-columns: 1fr 1fr; }
.xm { position: relative; display: block; background: var(--stock-2); } .xm img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block; } .x-pic.multi .xm img { aspect-ratio: 1; }
.xm-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(28, 19, 32, .6); }
.xm-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.x-stats { font: 700 12.5px var(--ui); color: var(--ink-2); }
.c-site { gap: 0; padding: 0; border-radius: 12px; background: #fffdf9; box-shadow: inset 0 0 0 1px var(--line); }
.cs-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; height: 42px; flex: 0 0 auto; padding: 0 6px 0 13px; background: rgba(255, 253, 249, .97); box-shadow: 0 1px 0 var(--line); }
.cs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--buy); flex: 0 0 auto; }
.cs-host { flex: 1; min-width: 0; font: 700 13px var(--ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-open { flex: 0 0 auto; height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: var(--stock); font: 800 12px var(--ui); position: relative; }
.cs-open::after { content: ""; position: absolute; inset: -7px 0; }
.cs-full { display: none; width: 100%; height: auto; flex: 0 0 auto; background: var(--stock-2); }
.c-site.has-shot .cs-full { display: block; } .c-site.has-shot .cs-card { display: none; }
.cs-card { display: flex; flex-direction: column; color: var(--ink); }
.cs-shot { aspect-ratio: 16 / 10; background: var(--stock-2); overflow: hidden; } .cs-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cs-shot.none { display: none; }
.cs-meta { padding: 12px 15px 14px; display: flex; flex-direction: column; gap: 2px; } .cs-t { font: 800 15.5px var(--ui); } .cs-d { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); } .cs-d:empty { display: none; }
.card.pg-full .c-site:not(.has-shot) { bottom: auto; max-height: calc(100% - 64px); }
.c-hold { gap: 5px; }
.ch-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 2px; } .ch-h b { font: 900 17px var(--display); letter-spacing: -.04em; } .ch-n { font: 700 12.5px var(--ui); color: var(--ink-2); }
.ch-list { display: flex; flex-direction: column; gap: 4px; }
.ch-r { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; min-height: 38px; padding: 4px 5px 4px 10px; row-gap: 5px; border-radius: 12px; background: #fffdf9; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; }
.ch-i { font: 700 11px var(--ui); color: var(--ink-3); }
.ch-m { min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; } .ch-m b { font: 800 13px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.ch-m span { display: flex; gap: 4px; flex: 0 0 auto; font-size: 11px; color: var(--ink-3); }
.ch-p { font: 800 12.5px var(--display); letter-spacing: -.03em; } .ch-act { display: inline-flex; justify-content: flex-end; min-width: 0; }
.ch-wait { margin: 10px 6px; font-size: 13px; color: var(--ink-3); font-weight: 600; } .ch-sp { width: 1px; }
.hk { font-style: normal; height: 18px; padding: 0 7px; border-radius: 999px; font: 800 10px var(--ui); display: inline-flex; align-items: center; background: var(--stock-2); color: var(--ink-2); }
.hk.kol { background: #eadcff; color: #5b22b8; } .hk.dev { background: var(--ink); color: var(--stock); } .hk.bundle, .hk.sniper, .hk.rugger { background: #ffe0e3; color: #b8212f; }
.hk.bot { background: #e7ebef; color: #46525e; } .hk.pool, .hk.curve { background: #fff0cc; color: #8c5a00; } .hk.tracked { background: #dbe6ff; color: #2443c9; } .hk.you { background: var(--buy); color: var(--buy-ink); }
.ch-mode { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--stock-2); color: var(--ink-2); position: relative; transition: background .15s, color .15s, transform .18s var(--spring); }
.ch-mode svg { width: 15px; height: 15px; } .ch-mode:active { transform: scale(.88); } .ch-mode::after { content: ""; position: absolute; inset: -7px; }
.ch-mode.m-favour { background: #ffe7a8; color: #8c5a00; } .ch-mode.m-avoid { background: #ffe0e3; color: #b8212f; } .ch-mode.m-watch { background: #dbe6ff; color: #2443c9; }
.ch-r.open { background: #fff; box-shadow: 0 8px 20px -12px rgba(28, 19, 32, .5), inset 0 0 0 1px var(--line); }
.ch-opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; padding: 1px 0 2px; cursor: default; }
.ch-opts button, .tk-sw button { height: 30px; padding: 0 10px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: 800 12px var(--ui); background: var(--stock-2); color: var(--ink-2); position: relative; }
.ch-opts svg, .tk-sw svg { width: 14px; height: 14px; flex: 0 0 auto; } .ch-opts .o-ic { width: 30px; padding: 0; } .ch-opts [data-rn] { margin-left: auto; }
.o-favour.on { background: #ffe7a8 !important; color: #8c5a00 !important; } .o-avoid.on { background: #ffe0e3 !important; color: #b8212f !important; } .o-watch.on { background: #dbe6ff !important; color: #2443c9 !important; }
.ch-tk { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 3px 0 10px; border-radius: 999px; background: #dbe6ff; color: #2443c9; max-width: 150px; }
.ch-tk em { font-style: normal; font: 800 11.5px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; }
.ch-un { width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 800; color: #2443c9; display: grid; place-items: center; }
.ch-in { width: 120px; height: 22px; border: 0; border-radius: 999px; padding: 0 8px; font: 700 12px var(--ui); color: var(--ink); background: #fff; outline: 2px solid var(--super); user-select: text; -webkit-user-select: text; }
.c-arrow, .c-pager { display: none; }
.card.embedded .c-pager { display: inline-flex; position: absolute; left: 10px; top: 22px; z-index: 7; height: 28px; align-items: center; gap: 1px; padding: 0 2px; border-radius: 999px; background: rgba(255, 236, 250, .1); box-shadow: inset 0 0 0 1px var(--rim); color: var(--on); }
.card.embedded.pg-full .c-pager { background: var(--stock); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.pp { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: inherit; position: relative; } .pp svg { width: 15px; height: 15px; } .pp:disabled { opacity: .25; } .pp::after { content: ""; position: absolute; inset: -9px; }
.pp-t { padding: 0 1px; font: 800 11px var(--ui); white-space: nowrap; }
/* the card inside a sheet (position sheet): the art window only */
.card.embedded { position: absolute; inset: 0; visibility: visible; border-radius: 16px; box-shadow: none; background: transparent; contain: layout paint; cursor: default; }
.card.embedded .c-art { inset: 0; bottom: 0; }
.card.embedded .c-info, .card.embedded .c-set, .card.embedded .c-foil, .card.embedded .shade, .card.embedded .c-why, .card.embedded .chg, .card.embedded .c-slim { display: none; }
.card.embedded .c-tv { top: 54px; bottom: 8px; }
.card.embedded .c-xwrap, .card.embedded .c-site, .card.embedded .c-hold { top: 56px; }

/* ---- the five buttons, on the velvet under the card (Tinder's order): rewind · pass · super · buy · setups */
.dk-btns { position: absolute; left: 0; right: 0; bottom: 14px; height: 76px; z-index: 12; display: flex; align-items: center; justify-content: center; gap: 13px; pointer-events: none; }
.dk-btn { pointer-events: auto; position: relative; border-radius: 50%; display: grid; place-items: center; background: var(--stock); color: var(--ink-2); box-shadow: var(--sh-btn); }
.dk-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: calc(var(--feel-p, 0) * .2); pointer-events: none; }
.dk-btn svg { position: relative; }
.dk-btn.sm { width: 46px; height: 46px; } .dk-btn.sm svg { width: 20px; height: 20px; }
.dk-btn.md { width: 54px; height: 54px; } .dk-btn.md svg { width: 24px; height: 24px; }
.dk-btn.lg { width: 62px; height: 62px; } .dk-btn.lg svg { width: 26px; height: 26px; }
.dk-btn.xl { width: 72px; height: 72px; } .dk-btn.xl svg { width: 26px; height: 26px; margin-top: -9px; }
.dk-btn em { position: absolute; left: 0; right: 0; text-align: center; font: 800 10.5px/1 var(--display); font-style: normal; letter-spacing: -.02em; }
.dk-btn.rewind { color: var(--ink-3); } .dk-btn.rewind.armed { color: var(--super-lo); box-shadow: 0 0 0 2.5px var(--super), var(--sh-btn); }
.dk-btn.pass { color: var(--ink); }
.dk-btn.super { color: var(--super-ink); background: linear-gradient(160deg, var(--super-hi), var(--super-lo)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), 0 2px 0 #b8770a, 0 12px 24px -10px rgba(242, 182, 50, .7); }
.dk-btn.super svg { margin-top: -6px; } .dk-btn.super em { bottom: 9px; font-size: 9.5px; } .dk-btn.super em:empty { display: none; } .dk-btn.super em:empty ~ svg, .dk-btn.super:has(em:empty) svg { margin-top: 0; }
.dk-btn.buy { color: var(--buy-ink); background: linear-gradient(160deg, var(--buy-hi), var(--buy-lo)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 2px 0 #078a56, 0 16px 30px -10px rgba(25, 211, 138, .75); }
.dk-btn.buy::before { background: #fff; } .dk-btn.buy em { bottom: 13px; font-size: 12px; }
.dk-btn.bolt { color: var(--room); }
.dk-btn:disabled { opacity: .45; }
body:not([data-page="deck"]) .dk-btns { visibility: hidden; }
.dk-btns::before { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 120px; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, transparent, var(--room-lo) 60%); }
body.pf-open .dk-btns::before { opacity: 1; }

/* ---- "Learning your type" (Tinder's toast), over the top of the card */
.learn { position: absolute; left: 24px; right: 24px; top: 16px; z-index: 13; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--stock); color: var(--ink);
  box-shadow: var(--sh-pop); opacity: 0; transform: translateY(-14px) scale(.97); pointer-events: none; transition: opacity .3s var(--ease), transform .45s var(--spring); }
.learn.show { opacity: 1; transform: none; }
.ln-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--buy-ink); background: linear-gradient(160deg, var(--buy-hi), var(--buy-lo)); flex: 0 0 auto; } .ln-ic svg { width: 22px; height: 22px; }
.learn b { display: block; font: 900 15px/1.2 var(--display); letter-spacing: -.03em; } .learn span { font-size: 13.5px; color: var(--ink-2); font-weight: 550; }
.learn > div { flex: 1; min-width: 0; position: relative; padding-bottom: 9px; }
.learn > div::before, .learn > div::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 4px; }
.learn > div::before { right: 0; background: var(--stock-3); } .learn > div::after { width: calc(var(--lp, .1) * 100%); background: linear-gradient(90deg, var(--buy-lo), var(--buy-hi)); }

/* ---- the profile (Tinder's expanded card): the coin as a scrolling sheet of card stock, the buttons still under it */
.profile { position: absolute; left: 12px; right: 12px; top: 4px; bottom: 100px; z-index: 11; border-radius: var(--r-card); background: var(--stock); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  transform: translateY(104%); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.2, .95, .25, 1), opacity .25s; box-shadow: var(--sh-card); }
.profile::-webkit-scrollbar { display: none; }
body.pf-open .profile { transform: none; opacity: 1; pointer-events: auto; }
.pf-chart { position: relative; height: 46%; min-height: 250px; margin: 8px; border-radius: var(--r-art); overflow: hidden; background: linear-gradient(180deg, var(--art), var(--art-2)); }
.pf-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-close { position: absolute; right: 18px; top: calc(46% - 18px); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; z-index: 2; color: var(--buy-ink);
  background: linear-gradient(160deg, var(--buy-hi), var(--buy-lo)); box-shadow: 0 0 0 3px var(--stock), 0 12px 24px -10px rgba(12, 0, 10, .6); }
.pf-close svg { width: 24px; height: 24px; }
.pf-body { padding: 26px 18px 40px; display: flex; flex-direction: column; gap: 14px; }
.pf-name { display: flex; align-items: center; gap: 10px; }
.pf-name .sym { font: 900 28px/1 var(--display); letter-spacing: -.045em; white-space: nowrap; flex: 0 0 auto; max-width: calc(100% - 150px); overflow: hidden; text-overflow: ellipsis; }
.pf-name .cap { font: 900 22px var(--display); letter-spacing: -.05em; color: var(--ink-2); flex: 0 0 auto; margin-left: auto; }
.pf-line { margin: 0; font: 550 17px/1.4 var(--ui); }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; } .pf-tags span { height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 13px var(--ui); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.pf-sec { font: 800 10px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pf-grid div { border-radius: var(--r-tile); background: var(--stock-2); padding: 10px 13px; display: flex; flex-direction: column; gap: 1px; }
.pf-grid span { font: 700 12px var(--ui); color: var(--ink-2); } .pf-grid b { font: 900 18px var(--display); letter-spacing: -.04em; }
.pf-row { border-radius: var(--r-tile); background: var(--stock-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; } .pf-row b { font: 800 15px var(--ui); } .pf-row span { font-size: 13px; color: var(--ink-2); }
.pf-row p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; }
.pf-why { display: flex; flex-wrap: wrap; gap: 6px; } .pf-why span { height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font: 800 13px var(--ui); background: var(--foil-l); color: var(--ink); }
.pf-ca { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 5px 0 14px; border-radius: 999px; background: var(--stock-2); text-align: left; position: relative; }
.pf-ca span { flex: 1; min-width: 0; font: 650 12.5px var(--ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-ca em { font-style: normal; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--ink); color: var(--stock); display: grid; place-items: center; font: 800 12.5px var(--ui); }
.pf-holders { margin-top: 4px; } .pf-holders .ch-r { background: var(--stock-2); box-shadow: none; } .pf-holders .ch-r.open { background: #fff; }

/* ---- bottom tab bar (icons only) */
.tabs { grid-area: tabs; height: calc(58px + var(--sab)); padding: 0 22px var(--sab); display: flex; align-items: center; justify-content: space-around; position: relative; z-index: 20;
  background: linear-gradient(180deg, transparent, rgba(20, 3, 16, .35)); }
.tabs a { position: relative; width: 56px; height: 46px; display: grid; place-items: center; color: var(--on-3); border-radius: 999px; transition: color .18s var(--ease); }
.tabs a svg { width: 26px; height: 26px; }
.tabs a.on { color: var(--on); } .tabs a.on::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--buy); }
.tab-n { position: absolute; top: 4px; right: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--buy); color: var(--buy-ink); font: 800 10.5px/18px var(--display); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--room-lo); }
.tab-n:empty { display: none; }

/* ---- Likes (Tinder's Matches tab): phone = /likes, desktop = the right column */
.lcol, .trail { display: none; }
body[data-page="likes"] .lcol { display: flex; grid-area: stage; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 28px; z-index: 6; }
body[data-page="likes"] .stage { opacity: 0; pointer-events: none; }
.you-strip { display: none; }
.lk-top { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 2px 2px; }
.lk-title { margin: 0; font: 900 30px/1.05 var(--display); letter-spacing: -.05em; } .lk-sum { font: 800 13.5px var(--display); letter-spacing: -.03em; color: var(--on-2); }
.lk-sec { font: 800 10px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--on-3); margin: 18px 2px 10px; }
.likes { position: relative; flex: 0 0 auto; }
.lk-track { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px 2px 8px; }
.lk-track::-webkit-scrollbar { display: none; }
/* a held coin = a mini collectible card: stock, its live line in a little art window, the PnL plate */
.bub-w { flex: 0 0 auto; width: 92px; display: flex; flex-direction: column; align-items: stretch; gap: 0; cursor: pointer; padding: 5px 5px 7px; border-radius: 12px;
  background: var(--stock); color: var(--ink); box-shadow: 0 2px 0 var(--edge), 0 3px 0 rgba(30, 6, 26, .3), 0 14px 22px -12px rgba(12, 0, 10, .7); position: relative; }
.bub-w::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--foil); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; }
.bub { position: relative; width: 100%; height: 64px; border-radius: 8px; overflow: visible; background: linear-gradient(180deg, var(--art), var(--art-2)); }
.bub canvas { position: absolute; inset: 4px 4px 4px 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.bub .ring { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.bub.paper { outline: 1.4px dashed rgba(255, 236, 250, .45); outline-offset: -4px; }
.b-logo { position: absolute; left: 50%; bottom: -12px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; overflow: hidden; background: var(--t-top, var(--stock-2)); box-shadow: 0 0 0 2px var(--stock); z-index: 2; }
.b-logo::before { content: attr(data-l); position: absolute; inset: 0; display: grid; place-items: center; font: 900 12px var(--display); color: var(--t-deep, var(--ink-2)); }
.b-logo img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.b-setup { position: absolute; right: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: var(--super-ink); background: var(--super); z-index: 2; }
.b-setup:empty { display: none; }
.b-meta { display: flex; flex-direction: column; align-items: center; margin-top: 16px; min-width: 0; } .b-sym { font: 900 12px/1.1 var(--display); letter-spacing: -.04em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .b-val { display: none; }
.b-pnl { margin-top: 3px; text-align: center; font: 900 13px/1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.bub-w.is-up .b-pnl { color: var(--up); } .bub-w.is-down .b-pnl { color: var(--down); }
.bub-w.leaving { opacity: 0; transform: scale(.6); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.bub-w.arriving { opacity: 0; }
.lk-empty { display: flex; align-items: center; gap: 12px; pointer-events: none; }
.likes:not(.is-empty) .lk-empty { display: none; }
.lk-ghost { width: 92px; height: 106px; border-radius: 12px; border: 1.5px dashed var(--rim); flex: 0 0 auto; } .lk-ghost:nth-child(2) { opacity: .55; } .lk-ghost:nth-child(3) { display: none; }
.lk-hint { font-size: 14px; font-weight: 600; color: var(--on-2); max-width: 22ch; }
.lk-list { display: flex; flex-direction: column; gap: 6px; }
.lr { display: flex; align-items: center; gap: 13px; padding: 9px 12px 9px 9px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); text-align: left; width: 100%; color: var(--on); }
.lr .lr-av { position: relative; width: 46px; height: 46px; flex: 0 0 auto; } .lr .lr-av .c-logo { width: 46px; height: 46px; box-shadow: 0 0 0 2px var(--stock); }
.lr-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lr-m b { font: 900 16px/1.1 var(--display); letter-spacing: -.04em; } .lr-m span { font-size: 13px; color: var(--on-2); font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-p { text-align: right; display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; } .lr-p b { font: 900 15px var(--display); letter-spacing: -.04em; } .lr-p span { font-size: 12px; font-weight: 650; color: var(--on-3); }
.lr-p b.up, .lr .up { color: var(--up-d); } .lr-p b.down, .lr .down { color: var(--down-d); }
.lr.closed { opacity: .7; }
.lk-none { color: var(--on-3); font-weight: 600; font-size: 14px; padding: 16px 2px; }
.ord-wrap[hidden] { display: none; }
.ord-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.od-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 28px; align-items: center; gap: 9px; padding: 7px 6px 7px 8px; border-radius: 14px; background: var(--stock); color: var(--ink); box-shadow: 0 2px 0 var(--edge); }
.od-r .c-logo.sm { width: 34px; height: 34px; }
.od-m { min-width: 0; display: flex; flex-direction: column; } .od-m b { font: 800 14px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .od-m span { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-p { text-align: right; display: flex; flex-direction: column; } .od-p b { font: 800 13px var(--display); letter-spacing: -.03em; } .od-p span { font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.od-x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--stock-2); position: relative; } .od-x svg { width: 12px; height: 12px; } .od-x::after { content: ""; position: absolute; inset: -8px; }

/* ---- pages over the stage: /you /ledger /points /how /airdrop (the deck waits underneath) */
.page { display: none; }
body:not([data-page="deck"]):not([data-page="likes"]) .page { display: block; grid-area: stage; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 32px; z-index: 6; }
body:not([data-page="deck"]):not([data-page="likes"]) .stage { opacity: 0; pointer-events: none; }
.pg { max-width: 1080px; margin: 0 auto; }
.pg-back { display: inline-flex; height: 36px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); font: 800 13px var(--ui); margin: 6px 0 12px; position: relative; }
.pg-back::after { content: ""; position: absolute; inset: -4px 0; }
.pg-eye { font: 800 10px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--buy); margin: 10px 0 8px; }
.pg-h { margin: 0 0 8px; font: 900 clamp(30px, 7vw, 46px)/1.02 var(--display); letter-spacing: -.055em; }
.pg-sub, .pg-p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--on-2); font-weight: 500; max-width: 640px; }
.pg-p { margin: 0; } .pg-p a { color: var(--buy); font-weight: 750; }
.pg-sk { height: 300px; border-radius: var(--r-card); background: var(--glass); }
.pg-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.pg-card { position: relative; border-radius: 18px; background: var(--stock); color: var(--ink); box-shadow: var(--sh-btn); padding: 18px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.pg-card .pg-p, .pg-card .pg-sub { color: var(--ink-2); }
.pg-grid .pg-card { margin: 0; }
.pg-card.on { box-shadow: inset 0 0 0 2.5px var(--buy), var(--sh-btn); }
.pg-card.base { background: var(--glass); color: var(--on); box-shadow: inset 0 0 0 1px var(--rim); }
.pg-card.paper { outline: 1.5px dashed var(--line-2); outline-offset: -6px; }
.pg-card .pill { align-self: flex-start; }
.pg-card h3 { margin: 0; font: 900 20px/1.15 var(--display); letter-spacing: -.045em; } .pg-card > p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.pg-tag { font: 800 10px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pg-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.pg-nums div { border-radius: 12px; background: var(--stock-2); color: var(--ink); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page > .pg .you-stats div { background: var(--glass); color: var(--on); box-shadow: inset 0 0 0 1px var(--rim); } .page .you-stats span { color: var(--on-3); }
.pg-nums b { font: 900 20px/1.1 var(--display); letter-spacing: -.05em; } .pg-nums span { font: 700 12px var(--ui); color: var(--ink-2); }
.pg-nums.big { margin-bottom: 14px; } .pg-nums.big div { background: var(--stock); color: var(--ink); box-shadow: var(--sh-btn); padding: 14px 16px; } .pg-nums.big b { font-size: 26px; }
.pg-nums.two { grid-template-columns: 1fr 1fr; } .pg-nums.two b { overflow: hidden; text-overflow: ellipsis; }
.pg-days { display: flex; align-items: center; gap: 5px; height: 48px; }
.pg-days i { flex: 1; max-width: 26px; border-radius: 4px; height: calc(var(--h) / 2); background: var(--up); align-self: flex-end; transform: translateY(-24px); }
.pg-days i.down { background: var(--down); align-self: flex-start; transform: translateY(24px); }
.pg-wins, .pg-tiers { display: flex; flex-wrap: wrap; gap: 6px; } .pg-wins span { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--stock-2); display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--ui); }
.pg-tiers span { flex: 1 1 auto; padding: 10px 14px; border-radius: 12px; background: var(--stock-2); display: flex; flex-direction: column; font: 650 12.5px var(--ui); color: var(--ink-2); } .pg-tiers b { font: 900 19px var(--display); letter-spacing: -.05em; color: var(--ink); }
.pg-foot { margin: 18px 0 6px; text-align: center; font: 600 12px var(--ui); color: var(--on-3); }
.lg-rows { display: flex; flex-direction: column; gap: 4px; }
.lg-row { display: grid; grid-template-columns: 110px 1fr auto auto 18px; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--stock-2); font-size: 13.5px; }
.lg-k { font: 800 13px var(--ui); } .lg-k.k-burn, .lg-k.k-buyburn { color: var(--down); } .lg-t { color: var(--ink-2); font-weight: 550; } .lg-row em { font-style: normal; color: var(--ink-2); font-size: 12.5px; } .lg-row i { font-style: normal; color: var(--ink-3); }
.how-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--stock); font: 900 15px var(--display); }
.how-again { margin: 0 0 16px; }
@media (min-width: 760px) { .pg-grid { grid-template-columns: 1fr 1fr; } .pg-grid.how { grid-template-columns: repeat(4, 1fr); } }

/* You */
.you-bal { text-align: left; align-items: flex-start; position: relative; width: 100%; }
.you-go { position: absolute; right: 18px; top: 18px; font: 800 13px var(--ui); color: var(--up); }
.you-su { display: flex; align-items: center; gap: 12px; } .you-su > div { display: flex; flex-direction: column; min-width: 0; } .you-su b { font: 800 15px var(--ui); } .you-su span { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.su-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--display); font-style: normal; color: var(--buy-ink); background: var(--buy); flex: 0 0 auto; }
.su-dot.b { background: var(--super); color: var(--super-ink); }
.pg .menu { margin: 0 0 12px; } .you-stats { margin-top: 4px; }
.you-goreal { color: var(--ink); font: 900 30px/1.1 var(--display); letter-spacing: -.05em; }
.you-prac { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; margin: -6px 0 12px; padding: 0 16px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); font: 650 13.5px var(--ui); color: var(--on-2); }
#you-pts:empty { display: none; }

/* ---- toast (top, never over the buttons) */
.toast { position: fixed; left: 50%; top: calc(60px + var(--sat)); z-index: 60; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); width: max-content;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--stock); color: var(--ink); font: 650 14px var(--ui); box-shadow: var(--sh-pop);
  transition: transform .3s var(--ease), opacity .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast span { white-space: normal; line-height: 1.25; }
.toast button { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--stock); font: 800 13px var(--ui); flex: 0 0 auto; }
.toast:not(:has(button)) { padding-right: 18px; }
.boot-wait { position: fixed; left: 50%; top: 45%; transform: translateX(-50%); z-index: 90; padding: 10px 18px; border-radius: 999px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--rim); font: 700 14px var(--ui); color: var(--on-2); }

/* ---- sheets (stock panels rising from the bottom; centred windows on desktop) */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20, 3, 16, .5); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.sheet.open { opacity: 1; pointer-events: auto; }
.sh-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; color: var(--ink);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--stock); padding: 0 20px calc(26px + var(--sab)); transform: translateY(104%); transition: transform .5s cubic-bezier(.2, .95, .25, 1);
  box-shadow: 0 -24px 60px -20px rgba(12, 0, 10, .7); }
.sheet.open .sh-panel { transform: translateY(0); }
.sh-grab { height: 24px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sh-grab i { width: 40px; height: 5px; border-radius: 9px; background: var(--stock-3); }
.sh-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--stock-2); color: var(--ink-2); z-index: 2; display: grid; place-items: center; }
.sh-x svg { width: 16px; height: 16px; } .sh-x::after { content: ""; position: absolute; inset: -4px; }
.sh-title { margin: 4px 0 4px; font: 900 26px/1.1 var(--display); letter-spacing: -.05em; }
.sh-sub { margin: 0 0 16px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.sh-empty { color: var(--ink-3); font-weight: 600; padding: 30px 0; text-align: center; }
.pill { height: 46px; padding: 0 20px; border-radius: 999px; font: 800 14.5px var(--ui); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.pill.big { height: 56px; font-size: 16px; flex: 1; }
.pill.solid { background: linear-gradient(160deg, var(--buy-hi), var(--buy-lo)); color: var(--buy-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 0 #078a56, 0 14px 26px -12px rgba(25, 211, 138, .7); }
.pill.ghost { background: var(--stock-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill.wide { width: 100%; margin-top: 14px; }
.pill:disabled { opacity: .5; }
.page .pill.ghost { background: var(--glass); color: var(--on); box-shadow: inset 0 0 0 1px var(--rim); } .page .pg-card .pill.ghost { background: var(--stock-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* position sheet: name + PnL, the card's chart, four numbers, TP / SL, the sell bar always in view */
.sheet[data-kind="pos"] .sh-panel { height: min(94dvh, 860px); max-height: none; overflow: hidden; display: flex; flex-direction: column; padding: 0 14px calc(10px + var(--sab)); }
.sheet[data-kind="pos"] .sh-grab { flex: 0 0 auto; height: 18px; }
.sheet[data-kind="pos"] .sh-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; }
.ps-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; } .ps-main::-webkit-scrollbar { display: none; }
.ps-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 42px 0 0; } .ps-head .c-logo.md { width: 42px; height: 42px; }
.ps-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ps-nm .sym { font: 900 21px/1.05 var(--display); letter-spacing: -.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-nm .name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-pnl { margin: 0 0 0 auto; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.ps-pct { font: 900 24px/1 var(--display); letter-spacing: -.05em; } .ps-sol { font: 700 12px var(--ui); color: var(--ink-2); }
.ps-sub { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ps-ca { margin: 0; height: 28px; padding: 0 9px 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; background: var(--stock-2); font: 650 12px var(--ui); color: var(--ink-2); position: relative; }
.ps-ca svg { width: 13px; height: 13px; } .ps-ca::after { content: ""; position: absolute; inset: -8px 0; }
.ps-mode { height: 24px; padding: 0 10px; border-radius: 999px; font: 800 11px var(--ui); display: inline-flex; align-items: center; background: var(--stock-2); color: var(--ink-2); white-space: nowrap; }
.ps-mode.paper { outline: 1.4px dashed var(--ink-3); outline-offset: -1.4px; background: transparent; }
.ps-card { position: relative; flex: 1 1 auto; min-height: 230px; margin: 0; }
.ps-rows { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0; }
.ps-rows div { padding: 6px 8px 7px; border-radius: 11px; background: var(--stock-2); display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ps-rows span { font: 700 10.5px var(--ui); color: var(--ink-2); } .ps-rows b { font: 900 12.5px var(--display); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-exits { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; margin: 0; }
.ex-row { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 10px; border-radius: 14px; background: var(--stock-2); }
.ex-on { width: 44px; height: 26px; border-radius: 999px; background: rgba(28, 19, 32, .16); position: relative; flex: 0 0 auto; transition: background .2s var(--ease); }
.ex-on i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(28, 19, 32, .3); transition: transform .25s var(--spring); }
.ex-on::after { content: ""; position: absolute; inset: -9px -1px; }
.ex-row.on .ex-on, .fl-row.on .ex-on, .ds-row.on .ex-on { background: var(--buy-lo); } .ex-row.on .ex-on i, .fl-row.on .ex-on i, .ds-row.on .ex-on i { transform: translateX(18px); }
.ex-l { font: 750 14px var(--ui); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-row.above .ex-v, .su-row.above em { color: var(--up); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; background: var(--stock); box-shadow: 0 2px 0 var(--edge), inset 0 0 0 1px var(--line); font: 700 20px var(--ui); color: var(--ink); display: grid; place-items: center; position: relative; }
.stepper button::after { content: ""; position: absolute; inset: -5px; }
.stepper b { min-width: 72px; text-align: center; font: 900 15.5px var(--display); letter-spacing: -.04em; white-space: nowrap; }
.stepper b em { font-style: normal; } .stepper b small { font: 700 11px var(--ui); color: var(--ink-2); }
.ex-row:not(.on) .stepper b { color: var(--ink-3); }
.ps-sell { flex: 0 0 auto; display: flex; gap: 6px; padding-top: 8px; background: var(--stock); }
.ps-sell .pill.big { height: 50px; min-width: 0; padding: 0 6px; font-size: 14px; white-space: nowrap; }
.ps-sell [data-sell] { flex: 1.12 1 0; background: var(--ink); color: var(--stock); box-shadow: 0 2px 0 #000; }
.ps-more { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: linear-gradient(160deg, var(--buy-hi), var(--buy-lo)); color: var(--buy-ink); line-height: 1.1; }
.ps-more small { font-size: 10px; font-weight: 700; opacity: .8; } .ps-more b { font: 900 14px var(--display); letter-spacing: -.03em; white-space: nowrap; }
.ps-lv { position: absolute; right: 10px; top: -10px; height: 20px; padding: 0 8px; border-radius: 999px; font: 800 11px var(--ui); display: inline-flex; align-items: center; background: #fff; color: var(--ink-2); }
.ps-lv.tp { color: var(--buy-ink); background: var(--up-d); } .ps-lv.sl { color: #fff; background: var(--down); } .ps-lv.en { right: auto; left: 10px; }

/* menu rows */
.menu { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.menu > * { min-height: 60px; border-radius: 16px; background: var(--stock-2); display: flex; align-items: center; gap: 14px; padding: 0 18px 0 12px; text-align: left; color: var(--ink); }
.page .menu > * { background: var(--stock); box-shadow: 0 2px 0 var(--edge), 0 10px 20px -14px rgba(12, 0, 10, .6); }
.menu span { font: 750 15.5px var(--ui); flex: 1; } .menu em { font-style: normal; font: 650 13px var(--ui); color: var(--ink-2); }
.mi { width: 36px; height: 36px; border-radius: 50%; background: var(--stock); box-shadow: inset 0 0 0 1px var(--line); flex: 0 0 auto; position: relative; }
.mi::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--buy); }
.mi.s::after, .mi.tk::after { background: var(--super); } .mi.h::after { background: var(--ink-2); } .mi.st::after { background: var(--match); } .mi.hw::after { background: var(--gold); } .mi.lg::after { background: var(--up); } .mi.f::after { background: var(--ink); } .mi.w::after { background: var(--buy); }
.menu-foot { margin-top: 16px; display: flex; justify-content: center; }
.tk-av { display: grid !important; place-items: center; font: 900 16px var(--display); color: var(--ink-2); background: var(--stock-2) !important; }

/* wallet */
.wl-cards { display: flex; flex-direction: column; gap: 12px; } body.real-ui .wl-card.live { order: -1; }
.wl-card { border-radius: 18px; background: var(--stock-2); padding: 18px; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; color: var(--ink); }
.wl-card.paper { outline: 1.5px dashed var(--line-2); outline-offset: -6px; }
.wl-card.dim { opacity: .55; }
.wl-k { font: 800 10px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wl-v { font: 900 44px/1 var(--display); letter-spacing: -.06em; } .wl-v small { font: 800 15px var(--ui); color: var(--ink-2); letter-spacing: 0; }
.wl-pnl { font: 700 13px var(--ui); }
.wl-p { margin: 0; font-size: 14px; color: var(--ink-2); } .wl-p.sm { font-size: 12.5px; }
.wl-mode { margin: 6px 0 4px; width: fit-content; }
.wl-sk { height: 120px; width: 100%; border-radius: 14px; background: var(--stock-3); opacity: .6; }
.wl-dep { display: flex; gap: 14px; align-items: center; width: 100%; }
.wl-qr { width: 112px; height: 112px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: #fff; box-shadow: inset 0 0 0 1px var(--line); } .wl-qr svg { width: 100%; height: 100%; display: block; }
.wl-addr { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .wl-addr > span { font: 650 13px var(--ui); color: var(--ink-2); }
.wl-copy { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 5px 0 14px; border-radius: 999px; background: var(--stock); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
.wl-copy code { font: 700 13.5px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .wl-copy em { font-style: normal; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--stock); display: grid; place-items: center; font: 800 12px var(--ui); flex: 0 0 auto; }
.wl-own { font-size: 12px !important; color: var(--ink-3) !important; }
.wl-toks { display: flex; flex-wrap: wrap; gap: 6px; } .wl-toks span { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--stock); display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--ui); }
.wl-acts { display: flex; gap: 8px; width: 100%; } .wl-acts .pill { flex: 1; }
.wl-form { width: 100%; display: flex; flex-direction: column; gap: 10px; } .wl-form:empty { display: none; }
.wl-form label { display: flex; flex-direction: column; gap: 6px; font: 700 13px var(--ui); color: var(--ink-2); }
.wl-form input { height: 48px; border-radius: 14px; border: 0; background: var(--stock); box-shadow: inset 0 0 0 1.5px var(--line-2); padding: 0 14px; font: 650 15px var(--ui); color: var(--ink); width: 100%; outline: none; }
.wl-form input:focus { box-shadow: inset 0 0 0 2px var(--buy-lo); }
.wd-amt { display: flex; gap: 8px; align-items: center; }
.wl-secret { padding: 14px; border-radius: 14px; background: var(--ink); color: var(--stock); word-break: break-all; } .wl-secret code { font: 600 13px/1.5 ui-monospace, monospace; }
.wl-flash { border-radius: 14px; animation: wlFlash 1.4s ease-out 2; }
@keyframes wlFlash { 0% { box-shadow: 0 0 0 0 rgba(25, 211, 138, .75); } 100% { box-shadow: 0 0 0 14px rgba(25, 211, 138, 0); } }

/* setups */
.su-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.su-card { border-radius: 18px; background: var(--stock-2); padding: 14px 12px 8px 16px; }
.su-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.su-h b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 900 16px var(--display); color: var(--buy-ink); background: var(--buy); }
.su-B .su-h b { background: var(--super); color: var(--super-ink); }
.su-h span { font: 750 14px var(--ui); color: var(--ink-2); }
.su-row { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.su-row > span { font: 650 15px var(--ui); }

/* filters (Discovery settings) */
.fl, .ds { display: flex; flex-direction: column; gap: 6px; }
.fl-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 8px 0 16px; border-radius: 14px; background: var(--stock-2); }
.fl-row > span { font: 650 15px var(--ui); } .fl-row.tog { padding-right: 14px; }
.fl-row:not(.set):not(.tog):not(.seg) .stepper b { color: var(--ink-3); }
.segs { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--stock-3); }
.segs button { height: 34px; padding: 0 13px; border-radius: 999px; font: 750 13px var(--ui); color: var(--ink-2); position: relative; }
.segs button.on { background: var(--stock); color: var(--ink); box-shadow: 0 2px 0 var(--edge); }
.ds-row { border-radius: 16px; background: var(--stock-2); padding: 14px 16px 10px; }
.ds-row.inline { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 10px 0 16px; }
.ds-row.inline > span { font: 650 15px var(--ui); } .ds-row.tog { padding-right: 14px; } .ds-row.tog > span { padding-right: 10px; line-height: 1.3; }
.ds-h { display: flex; justify-content: space-between; align-items: baseline; } .ds-h span { font: 650 15px var(--ui); } .ds-h b { font: 900 15px var(--display); letter-spacing: -.04em; }
.ds-sec { padding: 16px 16px 2px; font: 800 10px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ds-n { font-style: normal; font: 650 12px var(--ui); color: var(--ink-3); white-space: nowrap; }
.ds-link { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 16px; font: 650 15px var(--ui); color: var(--ink); text-align: left; }
.ds-link svg { width: 16px; height: 16px; color: var(--super-lo); flex: 0 0 auto; } .ds-link em { margin-left: auto; font-style: normal; font: 650 13px var(--ui); color: var(--ink-3); }
.rng { position: relative; height: 40px; margin: 0 4px; }
.rng::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 4px; border-radius: 4px; background: rgba(28, 19, 32, .14); }
.rng-fill { position: absolute; top: 18px; height: 4px; border-radius: 4px; background: var(--ink); }
.rng input { position: absolute; left: -12px; right: -12px; width: calc(100% + 24px); top: 6px; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.rng input::-webkit-slider-runnable-track { background: none; border: 0; }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 0 var(--edge), 0 4px 10px rgba(28, 19, 32, .3), inset 0 0 0 1px var(--line); cursor: grab; }
.rng input::-moz-range-thumb { pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 10px rgba(28, 19, 32, .3); }
.rng input::-moz-range-track { background: none; }
.fm-note:empty { display: none; }

/* tracked wallets */
.tk-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tk-r { display: grid; grid-template-columns: 36px minmax(0, 1fr) 30px; align-items: center; gap: 8px 10px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--stock-2); }
.tk-m { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .tk-m b { font: 800 15px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; }
.tk-m span { font: 600 12.5px var(--ui); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); background: rgba(28, 19, 32, .06); position: relative; } .tk-x svg { width: 13px; height: 13px; } .tk-x::after { content: ""; position: absolute; inset: -7px; }
.tk-sw { grid-column: 1 / -1; display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--stock-3); }
.tk-sw button { flex: 1; min-width: 0; height: 34px; background: transparent; font-size: 12.5px; }
.wl-form .tk-sw { margin: 2px 0 4px; }

/* history */
.hist { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.hr { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 14px 0 10px; border-radius: 14px; background: var(--stock-2); }
.hr.dim { opacity: .7; }
.hr-m { flex: 1; min-width: 0; display: flex; flex-direction: column; } .hr-m b { font: 900 15.5px var(--display); letter-spacing: -.04em; } .hr-m span { font: 550 12.5px var(--ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-p { text-align: right; display: flex; flex-direction: column; } .hr-p b { font: 900 15px var(--display); letter-spacing: -.04em; } .hr-p span { font: 650 12px var(--ui); opacity: .8; }

/* points */
.pts-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; gap: 2px; margin-bottom: 14px; }
.pts-v { font: 900 40px/1.05 var(--display); letter-spacing: -.06em; margin-top: 4px; } .pts-rank { font: 650 13.5px var(--ui); color: var(--ink-2); }
.pts-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; margin-top: 12px; }
.pts-parts div { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 8px 8px 7px; border-radius: 11px; background: var(--stock-2); } .pts-parts b { font: 900 14px var(--display); letter-spacing: -.04em; } .pts-parts span { font: 650 11px/1.25 var(--ui); color: var(--ink-2); }
.pts-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.pts-r { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--stock-2); font: 650 14.5px var(--ui); color: var(--ink); }
.page .pts-r { background: var(--glass); color: var(--on); box-shadow: inset 0 0 0 1px var(--rim); }
.pts-r i { width: 28px; font-style: normal; font: 900 13px var(--display); color: var(--ink-3); } .page .pts-r i { color: var(--on-3); }
.pts-r span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pts-r b { font: 900 14.5px var(--display); letter-spacing: -.04em; }
.pts-r.me { background: var(--stock) !important; color: var(--ink) !important; box-shadow: 0 2px 0 var(--edge) !important; } .pts-r.me i { color: var(--buy-lo) !important; }
.pts-r.far { margin-top: 10px; }
.pts-pop { position: fixed; z-index: 44; transform: translateX(-50%); pointer-events: none; font: 900 12.5px var(--display); letter-spacing: -.03em; color: var(--buy); white-space: nowrap; animation: ptsPop 1.5s var(--ease) both; }
@keyframes ptsPop { 0% { opacity: 0; transform: translate(-50%, 6px); } 18% { opacity: 1; transform: translate(-50%, 0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }

/* the first-visit tour: a soft scrim with a hole on the step's target, one small card with Skip */
.tour-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(16, 2, 13, .8); pointer-events: none; transition: opacity .25s; }
.tour-scrim.off, .tour-coach.off, .tour-ring.off { opacity: 0 !important; visibility: hidden; pointer-events: none; }
.tour-coach { position: fixed; z-index: 46; padding: 14px 16px 10px; border-radius: 18px; background: var(--stock); color: var(--ink); box-shadow: var(--sh-pop); }
.tour-coach.in { animation: tourIn .32s var(--ease) both; }
@keyframes tourIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.tour-coach::before { content: ""; position: absolute; width: 16px; height: 16px; background: var(--stock); transform: rotate(45deg); border-radius: 3px; }
.tour-coach.at-bottom::before { top: -7px; left: calc(var(--a) - 8px); } .tour-coach.at-top::before { bottom: -7px; left: calc(var(--a) - 8px); }
.tour-coach.at-right::before { left: -7px; top: calc(var(--a) - 8px); } .tour-coach.at-left::before { right: -7px; top: calc(var(--a) - 8px); }
.tour-coach.no-arrow::before { display: none; }
.tour-coach.thru { pointer-events: none; } .tour-coach.thru button { pointer-events: auto; }
.tour-t { display: block; padding-right: 54px; font: 900 18px/1.15 var(--display); letter-spacing: -.045em; }
.tour-b { margin: 5px 0 0; font: 550 15px/1.38 var(--ui); color: var(--ink-2); }
.tour-skip { position: absolute; right: 6px; top: 4px; min-width: 48px; height: 40px; padding: 0 10px; font: 700 13px var(--ui); color: var(--ink-3); }
.tour-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; margin-top: 6px; }
.tour-f:not(:has(.pill)) { min-height: 14px; margin: 10px 0 4px; }
.tour-dots { display: flex; gap: 5px; } .tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(28, 19, 32, .18); } .tour-dots i.on { background: var(--buy-lo); width: 16px; border-radius: 3px; }
.tour-acts { display: flex; gap: 8px; } .tour-acts .pill { height: 42px; padding: 0 16px; font-size: 14.5px; } .tour-acts .pill.ghost { box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
.tour-f:has(.pill.ghost) .tour-dots { display: none; } .tour-f:has(.pill.ghost) .tour-acts { flex: 1; justify-content: flex-end; }
.tour-thumb { z-index: 47 !important; }
.tour-ring { position: fixed; z-index: 45; pointer-events: none; box-shadow: 0 0 0 2.5px var(--stock), 0 0 0 6px rgba(25, 211, 138, .8); }
.tour-ring::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; box-shadow: 0 0 0 3px rgba(247, 243, 236, .9); animation: tourRing 1.5s ease-out infinite; }
.tour-ring.big::after { animation-name: tourRingBig; }
@keyframes tourRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.32); } }
@keyframes tourRingBig { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.03); } }

/* the airdrop page (only when the owner funds one) */
.air-pill { font: 800 12.5px var(--ui); white-space: nowrap; color: var(--super-ink) !important; }
.tabs a.air-pill { width: auto; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; background: var(--super); border-radius: 999px; }
.dnav a.air-pill { background: var(--super); margin-left: 6px; height: 30px; align-self: center; padding: 0 11px; font-size: 12.5px; }
#air-d { display: inline-flex; align-items: center; order: -2; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--super); font-size: 13px; }
@media (max-width: 959px) { #air-d { display: none !important; } }
@media (min-width: 960px) { #air-t { display: none !important; } }
.air-card { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.air-h { display: flex; align-items: center; justify-content: space-between; min-height: 22px; } .air-go { position: static; }
.air-cd b { display: block; font: 900 36px/1.05 var(--display); letter-spacing: -.055em; } .air-cd span { font: 600 13px var(--ui); color: var(--ink-2); }
.air-state { display: flex; flex-direction: column; gap: 8px; }
.air-st { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--stock-2); } .air-st b { font: 900 16px/1.2 var(--display); letter-spacing: -.04em; } .air-st > span { font: 550 13.5px var(--ui); color: var(--ink-2); }
.air-st.ok { flex-direction: row; align-items: center; gap: 12px; } .air-st.ok i { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--buy); color: var(--buy-ink); font-style: normal; }
.air-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.air-in { grid-column: 1 / -1; width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font: 600 14px var(--ui); color: var(--ink); }
.air-in:focus { outline: none; border-color: var(--buy-lo); } .air-paste { justify-self: start; height: 44px; } .air-save { height: 44px; padding: 0 24px; }
.air-err { margin: 0; font: 600 13px var(--ui); color: var(--down); }
.air-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font: 600 13.5px var(--ui); color: var(--ink-2); } .air-addr b { color: var(--ink); font-weight: 750; }
.air-change { min-height: 44px; padding: 0 2px; font: 700 13.5px var(--ui); color: var(--up); } .air-add { align-self: flex-start; }
.air-pts { display: flex; align-items: baseline; gap: 8px; } .air-pts b { font: 900 22px/1 var(--display); letter-spacing: -.05em; } .air-pts span { font: 600 13.5px var(--ui); color: var(--ink-2); }
.air-card .pts-parts { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); }
.air-rules { display: flex; flex-direction: column; gap: 5px; } .air-rules .wl-k { margin-bottom: 2px; } .air-rules div { display: flex; justify-content: space-between; gap: 10px; font: 550 13.5px var(--ui); color: var(--ink-2); }
.air-of { font: 600 13px var(--ui); color: var(--ink-2); } .air-how .air-rules { margin-top: 12px; } .air-sub { margin-bottom: 4px; } .air-pool { font-weight: 650; color: var(--on); margin-bottom: 14px; }

/* ---- small phones */
@media (max-height: 720px) {
  :root { --plate: 172px; }
  .c-info { height: 126px; gap: 7px; bottom: 28px; } .c-name { height: 42px; }
  .c-name .sym, .cap-v { font-size: 22px; } .c-logo { width: 38px; height: 38px; } .c-line { font-size: 15px; }
  .deck, .profile { bottom: 90px; } .dk-btns { bottom: 10px; height: 70px; gap: 11px; }
  .dk-btn.xl { width: 66px; height: 66px; } .dk-btn.lg { width: 56px; height: 56px; } .dk-btn.md { width: 50px; height: 50px; } .dk-btn.sm { width: 42px; height: 42px; }
}
@media (max-width: 380px) { .dk-btns { gap: 10px; } .c-name .sym, .cap-v { font-size: 23px; } }
/* the deck bar on a phone: filters · all five tabs whole and centred · the PnL pill (dot + open count) */
@media (max-width: 959px) {
  body[data-page="deck"] .top-r { display: none; }
  body[data-page="deck"] .pnl { min-width: 44px; padding: 0 12px; gap: 5px; } body[data-page="deck"] .pnl-v { display: none; }
  .stabs button::before { inset: 7px 0; }
}
@media (max-width: 409px) { .stabs button { padding: 0 7px; font-size: 13px; } }
@media (max-width: 374px) { .stabs button { padding: 0 5px; font-size: 12.5px; } .top { gap: 6px; } }

/* ---- desktop: just flicked left · the deck centred · your likes right */
@media (min-width: 960px) {
  #app { max-width: none; grid-template-columns: minmax(300px, 1fr) minmax(460px, 520px) minmax(300px, 1fr); grid-template-rows: 68px minmax(0, 1fr); grid-template-areas: "top top top" "trail stage likes"; }
  .top { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(460px, 520px) minmax(300px, 1fr); padding: 0; height: 68px; gap: 0; }
  .top-l { display: flex; align-items: center; min-width: 0; padding-left: 28px; gap: 18px; overflow: hidden; }
  .top-c { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 20px; }
  .top-r { display: flex; justify-self: end; padding-right: 28px; margin-left: 0; }
  body[data-page="deck"] .top .mark { display: inline-flex; }
  .dnav { display: flex; gap: 2px; }
  .dnav a { height: 36px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 14px var(--ui); color: var(--on-3); transition: color .18s; }
  .dnav a:hover { color: var(--on); } .dnav a.on { color: var(--ink); background: var(--stock); box-shadow: 0 2px 0 var(--edge); }
  .stabs { mask-image: none; -webkit-mask-image: none; } .stabs button { padding: 0 9px; font-size: 13.5px; }
  body:not([data-page="deck"]) #pnl { visibility: hidden; }
  .tabs { display: none; }
  .trail { display: flex; grid-area: trail; flex-direction: column; align-items: center; min-height: 0; padding: 22px 28px 26px; gap: 14px; }
  .trail > * { width: 100%; max-width: 430px; }
  .lcol > * { width: 100%; max-width: 410px; margin-left: auto; margin-right: auto; }
  .lcol, body[data-page="likes"] .lcol { display: flex; grid-area: likes; flex-direction: column; min-height: 0; overflow-y: auto; padding: 22px 28px 26px; z-index: auto; }
  body[data-page="likes"] .stage { opacity: 1; pointer-events: auto; }
  .you-strip { display: flex; }
  .bal { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); color: var(--on); }
  .bal.paper { box-shadow: none; outline: 1.4px dashed var(--on-3); outline-offset: -1.4px; }
  .bal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--buy); } .bal.paper .bal-dot { background: transparent; box-shadow: inset 0 0 0 1.8px var(--on-3); }
  #bal-v { font: 900 16px var(--display); letter-spacing: -.04em; } .bal-u { font: 700 12px var(--ui); color: var(--on-2); } .bal-mode { font: 700 11px var(--ui); color: var(--on-3); }
  .bal-pnl { font: 800 12px var(--display); letter-spacing: -.03em; } .bal-pnl:empty { display: none; }
  .lk-track { flex-wrap: wrap; overflow: visible; gap: 12px; }
  .stage { display: block; }
  .deck { left: 50%; right: auto; width: min(430px, calc(100% - 40px)); transform: translateX(-50%); top: 10px; bottom: 112px; max-height: 800px; }
  .deck > .card { transform-origin: 50% 118%; }
  .profile { left: 50%; right: auto; width: min(430px, calc(100% - 40px)); margin-left: max(-215px, calc(-50% + 20px)); top: 10px; bottom: 112px; }
  .dk-btns { bottom: 22px; }
  .learn { left: 50%; right: auto; width: 380px; margin-left: -190px; top: 26px; }
  :root { --r-card: 22px; --plate: 190px; }
  .c-info { height: 138px; bottom: 34px; }
  body:not([data-page="deck"]):not([data-page="likes"]) .page { grid-row: 2; grid-column: 1 / 4; padding: 6px 28px 32px; }
  body:not([data-page="deck"]):not([data-page="likes"]) .trail, body:not([data-page="deck"]):not([data-page="likes"]) .lcol { display: none; }
  .toast { top: 78px; }
  .sh-panel { bottom: 50%; transform: translateY(calc(50% + 40px)); opacity: 0; border-radius: 24px; max-width: 520px; transition: transform .45s cubic-bezier(.2, .95, .25, 1), opacity .3s; padding-bottom: 26px; }
  .sheet.open .sh-panel { transform: translateY(50%); opacity: 1; }
  .sheet[data-kind="pos"] .sh-panel { height: min(94dvh, 720px); padding-bottom: 12px; }
  .pg-arrow { display: grid; place-items: center; position: absolute; z-index: 30; top: calc(10px + min(100% - 122px, 800px) * .3); width: 44px; height: 44px; border-radius: 50%;
    background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); color: var(--on); opacity: .5; transition: opacity .18s var(--ease), background .18s, color .18s, transform .18s var(--ease); }
  .pg-arrow svg { width: 22px; height: 22px; }
  .pg-arrow.l { left: max(4px, calc(50% - 215px - 58px)); } .pg-arrow.r { right: max(4px, calc(50% - 215px - 58px)); }
  .stage:has(.deck:hover) .pg-arrow, .stage:has(.pg-arrow:hover) .pg-arrow { opacity: .9; }
  .pg-arrow:hover { opacity: 1 !important; background: var(--stock); color: var(--ink); transform: scale(1.06); }
  .pg-arrow.off { opacity: .15 !important; background: var(--glass); color: var(--on); transform: none; cursor: default; }
  body.pf-open .pg-arrow, body:not([data-page="deck"]):not([data-page="likes"]) .pg-arrow { display: none; }
  /* the left column: the line, what you just flicked, the phone QR + keys */
  .tr-hero h1 { margin: 0; font: 900 clamp(26px, 2.2vw, 36px)/1.04 var(--display); letter-spacing: -.055em; }
  .tr-hero h1 em { font-style: normal; color: var(--buy); display: block; }
  .tr-hero p { margin: 10px 0 0; font: 500 15px/1.5 var(--ui); color: var(--on-2); max-width: 40ch; }
  .tr-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; } .tr-head b { font: 800 10px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--on-3); } .tr-head span { font: 700 12px var(--ui); color: var(--on-3); }
  .tr-list { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .tr-none { margin: 4px 0; font: 600 14px var(--ui); color: var(--on-3); }
  .tr-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 7px 12px 7px 8px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); }
  .tr-r .c-logo { width: 34px; height: 34px; box-shadow: 0 0 0 1.5px var(--stock); }
  .tr-m { min-width: 0; display: flex; flex-direction: column; } .tr-m b { font: 900 14.5px var(--display); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tr-m span { font: 600 12px var(--ui); color: var(--on-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tr-k { height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font: 800 10px var(--display); letter-spacing: .1em; text-transform: uppercase; }
  .tr-k.buy { background: var(--buy); color: var(--buy-ink); } .tr-k.super { background: var(--super); color: var(--super-ink); } .tr-k.pass { color: var(--on-3); box-shadow: inset 0 0 0 1px var(--rim); }
  .tr-r.in { animation: trIn .45s var(--spring) both; }
  @keyframes trIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
  .tr-foot { display: flex; flex-direction: column; gap: 14px; }
  .qr-card { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--stock); color: var(--ink); box-shadow: var(--sh-btn); }
  .qr { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: #fff; } .qr svg { width: 100%; height: 100%; }
  .qr-card b { display: block; font: 900 15px/1.2 var(--display); letter-spacing: -.04em; } .qr-card span { font: 550 13px var(--ui); color: var(--ink-2); }
  .keys { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 650 13px var(--ui); color: var(--on-2); }
  .keys span { display: inline-flex; align-items: center; gap: 8px; }
  kbd { min-width: 32px; height: 28px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font: 800 14px var(--ui); color: var(--ink); background: var(--stock); box-shadow: 0 2px 0 var(--edge); }
}
@media (min-width: 960px) and (max-width: 1240px) {
  #app, .top { grid-template-columns: minmax(0, 1fr) minmax(440px, 480px) minmax(280px, 1fr); }
  #app { grid-template-areas: "top top top" "stage stage likes"; } .trail { display: none !important; }
  .top-l .dnav a { padding: 0 9px; font-size: 13.5px; }
}
@media (min-width: 960px) and (max-height: 800px) { .tr-hero p { display: none; } .qr { width: 76px; height: 76px; } }

/* ---- capture mode (?capture=1): a fixed 9:16 phone frame, no cursor, the end frame */
body.capture, body.capture * { cursor: none !important; }
body.capture #app { max-width: none; width: min(100vw, 56.25vh); height: 100vh; }

.endframe { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(80% 55% at 50% 40%, var(--room-hi), var(--room) 60%, var(--room-lo)); opacity: 0; transition: opacity .6s var(--ease); }
.endframe.on { opacity: 1; }
.endframe b { font: 900 96px/1 var(--display); letter-spacing: -.07em; color: var(--on); transform: scale(.92); transition: transform .9s var(--spring); }
.endframe.on b { transform: none; }
.endframe span { font: 900 30px/1 var(--display); letter-spacing: -.04em; color: var(--buy); }
.endframe em { font-style: normal; font: 600 18px var(--ui); color: var(--on-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (min-width: 960px) { .tr-r.is-up .tr-m span { color: var(--up-d); } .tr-r.is-down .tr-m span { color: var(--down-d); } }

/* ---- shared small pieces */
.sty-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.sty-h b { font: 900 17px var(--display); letter-spacing: -.045em; }
.pill.sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* ---- /how: four live steps, each a picture made of the real deck's top coin */
.hw-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 6px 0 16px; }
@media (min-width: 760px) { .hw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .hw-grid { grid-template-columns: repeat(4, 1fr); } }
.hw { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 18px; border-radius: 18px; background: var(--stock); color: var(--ink); box-shadow: var(--sh-btn); }
.hw h3 { margin: 0; font: 900 19px/1.15 var(--display); letter-spacing: -.045em; } .hw p { margin: 0; font: 500 14.5px/1.5 var(--ui); color: var(--ink-2); }
.hw .how-n { position: absolute; left: 14px; top: 14px; z-index: 3; width: 28px; height: 28px; font-size: 13px; box-shadow: 0 0 0 2px var(--stock); }
.hw .pill { align-self: flex-start; margin-top: 4px; }
.hw-vis { position: relative; height: 236px; margin: 0 -8px 4px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--room-hi), var(--room) 60%, var(--room-lo)); }
/* a mini collectible card */
.mc { position: relative; z-index: 1; width: 128px; height: 172px; margin-bottom: 26px; border-radius: 11px; padding: 5px; background: var(--stock); color: var(--ink);
  box-shadow: 0 2px 0 var(--edge), 0 3px 0 rgba(30, 6, 26, .35), 0 18px 28px -12px rgba(12, 0, 10, .75); display: flex; flex-direction: column; gap: 5px; }
.mc-foil { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--foil); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.mc-art { position: relative; height: 92px; border-radius: 7px; overflow: hidden; background: radial-gradient(120% 60% at 50% 112%, rgba(199, 139, 255, .3), transparent 62%), linear-gradient(180deg, var(--art), var(--art-2)); }
.mc-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc-pl { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 0 2px; }
.mc-pl .c-logo.sm { width: 20px; height: 20px; box-shadow: 0 0 0 1px var(--line-2); } .mc-pl .c-logo::before { font-size: 9px; }
.mc-pl b { font: 900 11.5px var(--display); letter-spacing: -.04em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.mc-pl em { font: 900 11px var(--display); letter-spacing: -.05em; font-style: normal; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 3px; padding: 0 2px; overflow: hidden; height: 34px; }
.mc-tags i { font: 700 8.5px var(--ui); font-style: normal; height: 15px; padding: 0 5px; border-radius: 99px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); white-space: nowrap; }
.mc-tags i.k { background: var(--ink); color: var(--stock); box-shadow: none; }
.mc.flick { animation: hwFlick 3.2s cubic-bezier(.4, .1, .3, 1) infinite; transform-origin: 50% 130%; }
@keyframes hwFlick { 0%, 18% { transform: none; } 46%, 62% { transform: translateX(46px) rotate(9deg); } 80%, 100% { transform: none; } }
.hw-stamp { position: absolute; left: calc(50% - 30px); top: 30px; z-index: 5; padding: 3px 9px; border-radius: 8px; border: 2px solid var(--stock); font: 900 15px var(--display); letter-spacing: -.02em; text-transform: uppercase;
  color: var(--buy-ink); background: linear-gradient(160deg, var(--buy-hi), var(--buy-lo)); rotate: -12deg; opacity: 0; animation: hwStamp 3.2s cubic-bezier(.4, .1, .3, 1) infinite; }
@keyframes hwStamp { 0%, 26% { opacity: 0; transform: translateX(0) scale(.8); } 46%, 62% { opacity: 1; transform: translateX(46px) scale(1); } 76%, 100% { opacity: 0; transform: translateX(0) scale(.8); } }
.hw-keys { position: absolute; left: 8px; right: 8px; bottom: 9px; z-index: 6; display: flex; justify-content: space-between; gap: 4px; }
.hw-keys span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 4px; border-radius: 99px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); color: var(--on-2); font: 700 11px var(--ui); white-space: nowrap; }
.hw-keys span.on { background: var(--buy); color: var(--buy-ink); box-shadow: none; }
.hw-keys i { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 236, 250, .14); font-style: normal; font-size: 10px; } .hw-keys .on i { background: rgba(4, 41, 26, .14); }
.hw-exits { place-items: stretch; background: linear-gradient(180deg, var(--art), var(--art-2)); }
.hw-exits canvas { position: absolute; left: 0; right: 0; top: 70px; height: 84px; width: 100%; }
.hx-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed; }
.hx-line span { position: absolute; right: 8px; top: -11px; height: 22px; padding: 0 9px; border-radius: 99px; display: inline-flex; align-items: center; font: 800 11px var(--display); letter-spacing: -.02em; white-space: nowrap; }
.hx-line.tp { top: 34px; border-color: var(--up-d); } .hx-line.tp span { background: var(--up-d); color: var(--buy-ink); }
.hx-line.en { top: 130px; border-color: rgba(253, 245, 251, .5); } .hx-line.en span { left: 8px; right: auto; background: var(--stock); color: var(--ink); }
.hx-line.sl { top: 192px; border-color: var(--down-d); } .hx-line.sl span { background: var(--down-d); color: #2a0008; }
.hw-wallet { padding: 18px; }
.hw-w { position: relative; width: min(250px, 100%); padding: 14px 60px 14px 16px; border-radius: 14px; background: var(--stock); color: var(--ink); display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 2px 0 var(--edge), 0 18px 28px -12px rgba(12, 0, 10, .75); }
.hw-w b { font: 900 30px/1 var(--display); letter-spacing: -.06em; } .hw-w small { font: 800 13px var(--ui); color: var(--ink-2); letter-spacing: 0; } .hw-w em { font: 700 11.5px var(--ui); color: var(--ink-2); font-style: normal; }
.hw-qr { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.hw-qr i { border: 3px solid var(--ink); border-radius: 3px; } .hw-qr i:nth-child(3) { grid-column: 1; }
.hw-foot { display: flex; justify-content: center; margin: 4px 0 16px; }

/* ---- first paint: the deck rises into place once the first cards are dealt, the buttons pop in after it (once) */
body:not(.settled) .deck { transition: opacity .45s var(--ease), translate .75s var(--spring); }
body:not(.dealt) .deck { opacity: 0; translate: 0 28px; }
body:not(.settled) .dk-btn { transition: opacity .3s var(--ease), scale .55s var(--spring); }
body:not(.dealt) .dk-btn { opacity: 0; scale: .4; }
body:not(.settled) .dk-btn:nth-child(1) { transition-delay: .32s; } body:not(.settled) .dk-btn:nth-child(2) { transition-delay: .22s; }
body:not(.settled) .dk-btn:nth-child(3) { transition-delay: .27s; } body:not(.settled) .dk-btn:nth-child(4) { transition-delay: .17s; }
body:not(.settled) .dk-btn:nth-child(5) { transition-delay: .37s; }
.card.embedded .c-more { display: none; }
.ps-more[data-more="B"] { background: linear-gradient(160deg, var(--super-hi), var(--super-lo)); color: var(--super-ink); }
.endframe .ef-mark { width: 84px; height: 84px; color: var(--buy); margin-bottom: 4px; } .endframe .ef-mark svg { width: 100%; height: 100%; }
.endframe em { max-width: 16ch; text-align: center; line-height: 1.3; }

/* ---- desktop columns, filled on a first visit: Live on Flick (left), your setups under Likes (right) */
.live-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 3px rgba(25, 211, 138, .2); vertical-align: middle; }
.lk-su { display: none; }
@media (min-width: 960px) {
  .lk-su { display: flex; flex-direction: column; gap: 6px; }
  .lks { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px 11px 11px; border-radius: 14px; background: var(--stock); color: var(--ink); text-align: left; box-shadow: 0 2px 0 var(--edge), 0 10px 20px -14px rgba(12, 0, 10, .7); }
  .lks span { display: flex; flex-direction: column; min-width: 0; } .lks b { font: 800 14px var(--ui); } .lks em { font: 600 12.5px var(--ui); font-style: normal; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lks .su-dot { width: 30px; height: 30px; font-size: 13px; }
  .tr-r.you { background: rgba(255, 236, 250, .14); box-shadow: inset 0 0 0 1px rgba(25, 211, 138, .45); }
  .tr-list { gap: 5px; }
}
.c-set { white-space: nowrap; } .c-set .cs-at { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 389px) { .c-set { letter-spacing: .09em; gap: 6px; } .c-set .cs-mk { display: none; } .c-set .cs-bar { width: 34px; } }

/* the wallet button: text in headers; on a phone's deck bar a round wallet icon, so the five tabs keep their room */
.go-real svg { display: none; width: 19px; height: 19px; }
@media (max-width: 959px) { body[data-page="deck"] .go-real { width: 40px; height: 38px; padding: 0; justify-content: center; } body[data-page="deck"] .go-real svg { display: block; } body[data-page="deck"] .go-real .gr-t { display: none; } }
/* ledger */
.lg-tiles { grid-template-columns: 1fr 1fr; } @media (min-width: 760px) { .lg-tiles { grid-template-columns: repeat(4, 1fr); } }
.lg-split { display: flex; gap: 6px; flex-wrap: wrap; } .lg-split span { flex: 1 1 140px; padding: 9px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); font: 600 13px var(--ui); color: var(--ink-2); } .lg-split b { font: 900 15px var(--display); letter-spacing: -.04em; color: var(--ink); margin-right: 4px; }
.lg-none { color: var(--ink-2) !important; }
.pg-card.base .pg-tag { color: var(--on-3); } .pg-card.base .pg-p { color: var(--on-2); }

@media (min-width: 960px) {
  .tr-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border-radius: 18px; background: rgba(20, 3, 16, .22); box-shadow: inset 0 0 0 1px var(--rim); }
  .tr-panel .tr-head { margin-top: 0; padding: 0 2px; }
  .tr-today { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border-radius: 12px; overflow: hidden; background: var(--rim); }
  .tr-today[hidden] { display: none; }
  .tr-today div { background: rgba(38, 9, 31, .78); padding: 9px 10px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .tr-today b { font: 900 17px var(--display); letter-spacing: -.05em; color: var(--on); } .tr-today span { font: 700 11px var(--ui); color: var(--on-3); white-space: nowrap; }
  .tr-today .pr b { color: var(--on-2); }
  .tr-none { padding: 4px 2px; }
}
@media (min-width: 960px) and (max-width: 1500px) { .tr-today { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tr-today div:nth-child(n+4) { display: none; } }
@media (max-width: 959px) { .lk-sec-su { display: none; } }
@media (min-width: 960px) { .tr-panel > .tr-head, .tr-today { flex: 0 0 auto; } .tr-panel > .tr-list { flex: 1 1 auto; } }
/* On the deck now: the live coins, each a tap that brings it to the front of the deck */
@media (min-width: 960px) {
  .tr-list[hidden] { display: none !important; }
  .tr-r.mk { width: 100%; text-align: left; color: var(--on); cursor: pointer; transition: background .15s var(--ease), box-shadow .15s var(--ease); }
  .tr-r.mk:hover { background: rgba(255, 236, 250, .14); box-shadow: inset 0 0 0 1px rgba(255, 236, 250, .26); }
  .tr-r.mk .tr-m span { color: var(--on-2); }
  .mk-n { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
  .mk-n b { font: 900 14px var(--display); letter-spacing: -.045em; white-space: nowrap; } .mk-n em { font: 800 11.5px var(--display); letter-spacing: -.03em; font-style: normal; }
  .mk-n em.up { color: var(--up-d); } .mk-n em.down { color: var(--down-d); } .mk-n em.flat { color: var(--on-3); }
}
.pg-tiers { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); } .pg-tiers span { min-width: 0; }
.pg-err { padding: 24px 2px; color: var(--on-2); }

/* ---- ?capture=og: the 1200x630 link-preview picture, made from the live app (a real card, the mark, the line) */
body.og { cursor: none; }
body.og #app { display: block !important; position: relative; width: 1200px; height: 630px; max-width: none; margin: 0; overflow: hidden; }
body.og .top, body.og .lcol, body.og .tabs, body.og .tr-panel, body.og .tr-foot, body.og .pg-arrow, body.og .learn, body.og .profile, body.og #page, body.og .toast, body.og .boot-wait { display: none !important; }
body.og .trail { display: flex !important; position: absolute; left: 80px; top: 0; bottom: 0; width: 660px; padding: 0; justify-content: center; align-items: flex-start; gap: 0; }
body.og .trail > * { max-width: none; }
body.og .tr-hero::before { content: ""; display: block; width: 74px; height: 74px; margin-bottom: 26px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='6.5' y='7' width='14' height='19' rx='3' fill='%2319d38a' opacity='.38' transform='rotate(-12 13.5 16.5)'/%3E%3Crect x='11' y='5' width='14' height='19' rx='3' fill='%2319d38a' transform='rotate(10 18 14.5)'/%3E%3C/svg%3E"); }
body.og .tr-hero h1 { font: 900 56px/1.04 var(--display); letter-spacing: -.06em; white-space: nowrap; }
body.og .tr-hero h1 em { font-style: normal; color: var(--buy); display: block; }
body.og .tr-hero p { display: block !important; margin: 26px 0 0; font-size: 0; max-width: none; }
body.og .tr-hero p::before { content: "Live pump.fun coins, one at a time."; display: block; font: 600 24px/1.4 var(--ui); color: var(--on-2); }
body.og .tr-hero p::after { content: "flick"; display: inline-block; margin-top: 30px; padding: 8px 18px 10px; border-radius: 999px; font: 900 26px/1 var(--display); letter-spacing: -.045em; color: var(--ink); background: var(--stock); box-shadow: 0 3px 0 var(--edge); }
body.og .stage { position: absolute; right: 96px; top: 34px; width: 360px; height: 600px; }
body.og .deck { left: 0 !important; right: 0 !important; top: 0 !important; bottom: 52px !important; width: auto !important; transform: none !important; rotate: 4deg; max-height: none; }
body.og .dk-btns { display: none; }

/* ---- desktop 960-1240: no room for three columns. Row 1 = mark + nav · CA + X; row 2 = the deck tabs centred over the card;
   the deck takes the left, Likes the right (320). The header's groups become the page grid's own items here. */
@media (min-width: 960px) and (max-width: 1240px) {
  #app { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: 62px 50px minmax(0, 1fr); grid-template-areas: "nl nr" "bar likes" "stage likes"; }
  .top { display: contents; }
  .top-l { grid-area: nl; padding-left: 24px; position: relative; z-index: 20; }
  .top-c { grid-area: bar; justify-content: center; padding: 0 16px; position: relative; z-index: 20; }
  .top-c .stabs { flex: 0 1 auto; }
  .top-r { grid-area: nr; justify-self: end; align-self: center; padding-right: 24px; position: relative; z-index: 20; }
  .lcol, body[data-page="likes"] .lcol { grid-area: likes; padding: 4px 22px 24px 8px; }
  .lcol > * { max-width: none; }
  .stage { grid-area: stage; }
  .deck, .profile { top: 4px; }
  .lk-ghost:nth-child(2) { display: none; } .lk-hint { max-width: none; }
  body:not([data-page="deck"]):not([data-page="likes"]) .page { grid-row: 2 / 4; grid-column: 1 / 3; }
  body:not([data-page="deck"]) .top-c { visibility: hidden; }
}
