/* Predict in pump.fun's current look (checked 2026-11-20): #0a0a0b page, hairline #202022 panels, #ebebeb text,
   #999 secondary, pump green #86efac for gains and primary buttons, Geist 14px, 8px corners. */
:root {
  --night: #0a0a0b;
  --deck: #0f0f11;
  --deck-2: #151517;
  --deck-3: #1d1d20;
  --well: #0a0a0b;
  --seam: #202022;
  --seam-2: #2c2c30;
  --ink: #ebebeb;
  --ink-2: #c9c9cd;
  --ink-3: #999999;
  --ink-4: #666669;
  --signal: #86efac;
  --signal-soft: rgba(134, 239, 172, 0.1);
  --on-signal: #052e16;
  --print: #86efac;
  --print-soft: rgba(134, 239, 172, 0.1);
  --on-print: #052e16;
  --rug: #ff5c7c;
  --rug-soft: rgba(255, 92, 124, 0.1);
  --hot: #ff3d6e;
  --on-rug: #450a0a;
  --clock: #facc15;
  --clock-soft: rgba(250, 204, 21, 0.12);

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --display: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; }
.meta { color: var(--ink-3); font-size: 13px; }
.label { display: block; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.up, .t-print { color: var(--print); }
.down, .t-rug { color: var(--rug); }
[hidden] { display: none !important; }

/* ---------- app frame ---------- */
.app {
  display: grid;
  grid-template-columns: 228px minmax(0, 620px) 300px;
  justify-content: center;
  gap: 28px;
  padding: 0 24px;
}
.rail, .overview { position: sticky; top: 0; height: 100vh; padding: 24px 0; overflow-y: auto; }
.main { padding: 24px 0 120px; min-width: 0; }
.topbar, .tabbar { display: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.mark { width: 32px; height: 32px; display: block; flex: none; }

.rail { display: flex; flex-direction: column; gap: 28px; }
.rail .logo { padding: 4px 10px; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--r-md);
  color: var(--ink-2); font-weight: 500; text-align: left;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav-item:hover { background: var(--deck); color: var(--ink); }
.nav-item[aria-current='page'] { background: var(--deck-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam); }
.nav-item .dot-live { order: 2; margin-left: auto; opacity: 0; }
.nav-item[aria-current='page'] .dot-live { opacity: 1; }
.badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--signal); color: var(--on-signal); font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center;
}

.wallet-card {
  margin-top: auto; padding: 16px; border-radius: var(--r-lg);
  background: var(--deck); box-shadow: 0 0 0 1px var(--seam);
  display: flex; flex-direction: column; gap: 4px;
}
.wallet-amt { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.wallet-amt small { font-size: 14px; color: var(--ink-3); font-weight: 500; }

.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--print); display: inline-block; flex: none;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

/* ---------- intro + headers ---------- */
.intro {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; margin-bottom: 24px; border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 0% 0%, rgba(134, 239, 172, 0.09), transparent 55%), var(--deck);
  box-shadow: 0 0 0 1px var(--seam);
}
.intro h1 { font-size: 30px; margin-bottom: 8px; }
.intro p { color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.intro strong { color: var(--ink); }
.icon-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; color: var(--ink-3); margin-left: auto;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.icon-btn:hover { background: var(--deck-3); color: var(--ink); }

.feed-head, .page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.feed-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.sub { margin: 28px 0 10px; font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- call card (the core unit) ---------- */
.feed { display: flex; flex-direction: column; gap: 12px; }
.call {
  padding: 16px; border-radius: var(--r-lg);
  background: var(--deck); box-shadow: 0 0 0 1px var(--seam);
  transition: box-shadow 160ms var(--ease);
  display: flex; flex-direction: column; gap: 12px;
}
.call:hover { box-shadow: 0 0 0 1px var(--seam-2); }
.call.is-mine { box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.45); }
.call-settled { background: var(--well); }
.call-settled .buy-line, .call-settled .call-head { opacity: 0.72; }
@keyframes card-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

.call-head { display: flex; align-items: center; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; border-radius: var(--r-md); padding: 2px; margin: -2px; }
.who:hover .handle { color: var(--signal); }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.handle { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 160ms var(--ease); }
.who .meta { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rank { color: var(--ink-2); font-weight: 600; }
.call-head > :last-child { margin-left: auto; flex: none; }

.av {
  --h: 240;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.02em;
  background: linear-gradient(135deg, hsl(var(--h) 72% 58%), hsl(calc(var(--h) + 50) 70% 36%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.av-sm { width: 28px; height: 28px; font-size: 11px; }
.av-lg { width: 64px; height: 64px; font-size: 22px; }

/* Form guide: last N results, newest first */
.form { display: inline-flex; gap: 3px; margin-left: 4px; }
.form i { width: 6px; height: 6px; border-radius: 50%; }
.form i.w { background: var(--print); }
.form i.l { background: var(--rug); opacity: 0.85; }

.buy-line { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.buy-line strong { color: var(--ink); font-weight: 600; }
.tok {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 9px 1px 6px; border-radius: 999px;
  background: var(--deck-3); color: var(--ink); font-weight: 600;
}
.tok-e { font-size: 14px; }
.big-e { font-size: 24px; width: 38px; text-align: center; }
.ago { color: var(--ink-4); font-size: 13px; margin-left: 4px; white-space: nowrap; }

/* Countdown ring */
.ring { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring-bg { stroke: var(--deck-3); }
.ring-fg { stroke: var(--signal); stroke-linecap: round; stroke-dasharray: 94.25; transition: stroke-dashoffset 1s linear, stroke 300ms; }
.ring-time { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.urgent .ring-fg { stroke: var(--clock); }
.urgent .ring-time { color: var(--clock); }

/* Tug of war */
.split { display: flex; gap: 3px; height: 6px; }
.split span { height: 100%; border-radius: 999px; transition: width 600ms var(--ease); min-width: 4px; }
.split-tail { background: var(--print); }
.split-fade { background: var(--rug); }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center;
  column-gap: 8px; padding: 10px 14px; min-height: 56px; border-radius: var(--r-md); text-align: left;
  transition: transform 140ms var(--ease), background-color 160ms var(--ease);
}
.side:active { transform: scale(0.97); }
.side-name { font-weight: 700; font-size: 16px; }
.side-sub { grid-row: 2; font-size: 12px; opacity: 0.75; }
.side-price { grid-row: 1 / span 2; grid-column: 2; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.side-tail { background: var(--print-soft); color: var(--print); }
.side-tail:hover { background: rgba(74, 222, 128, 0.2); }
.side-fade { background: var(--rug-soft); color: var(--rug); }
.side-fade:hover { background: rgba(248, 113, 113, 0.2); }

.live-pos {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  padding: 12px 14px; border-radius: var(--r-md); background: var(--well); box-shadow: inset 0 0 0 1px var(--seam);
}
.lp-label { color: var(--ink-3); }
.lp-val { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.lp-note { width: 100%; color: var(--ink-3); font-size: 12px; }
.odds-line { display: flex; gap: 14px; font-size: 13px; font-weight: 500; }

.result { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.res-pnl { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.result-tail .res-pnl { color: var(--print); }
.result-fade .res-pnl { color: var(--rug); }
.res-text { color: var(--ink-2); }

/* Settlement stamp */
.stamp {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1.5px solid currentColor; transform: rotate(-4deg);
}
.stamp-tail { color: var(--print); background: var(--print-soft); }
.stamp-fade { color: var(--rug); background: var(--rug-soft); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill-clock { background: var(--clock-soft); color: var(--clock); }
.pill-clock .dot-live { background: var(--clock); animation: none; }
.pill-signal { background: var(--signal-soft); color: var(--signal); }
.pill-live { background: var(--print-soft); color: var(--print); }
.pill-ghost { visibility: hidden; padding: 0; width: 54px; }

.call-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-3); font-size: 13px; }
.mine { margin-left: auto; color: var(--signal); font-weight: 600; }
.mine.up { color: var(--print); }
.mine.down { color: var(--rug); }

/* ---------- leaderboard ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--deck); box-shadow: 0 0 0 1px var(--seam); }
.seg button { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg button[aria-pressed='true'] { background: var(--deck-3); color: var(--ink); }

.search {
  width: 100%; height: 44px; padding: 0 16px; margin-bottom: 14px;
  border-radius: var(--r-md); border: 0; background: var(--well); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--seam); font: inherit;
}
.search::placeholder { color: var(--ink-4); }

.board { display: flex; flex-direction: column; gap: 2px; }
.row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-md); text-align: left;
  transition: background-color 160ms var(--ease);
}
.row:hover { background: var(--deck); }
.rk { width: 28px; text-align: right; color: var(--ink-3); font-weight: 600; flex: none; }
.podium .rk { color: var(--signal); }
.row-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-who .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-form .form { margin: 0; }
.row-stats { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pnl { font-weight: 600; font-size: 15px; }
.empty { padding: 32px; text-align: center; color: var(--ink-3); }

/* ---------- bets + profile ---------- */
.stats-strip, .tf-table {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border-radius: var(--r-lg); overflow: hidden; background: var(--seam); box-shadow: 0 0 0 1px var(--seam);
}
.tf-table { grid-template-columns: repeat(3, 1fr); margin: 20px 0 12px; }
.stats-strip > div, .tf-table > div { background: var(--deck); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.big { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

.bet-list { display: flex; flex-direction: column; gap: 6px; }
.bet-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--deck); box-shadow: 0 0 0 1px var(--seam);
}
.bet-row > :last-child { flex: none; font-weight: 600; }
.bet-list.compact .bet-row { padding: 10px; gap: 10px; background: var(--deck-2); }
.bet-list.compact .av { width: 28px; height: 28px; font-size: 11px; }
.bet-list.compact .handle { font-size: 13px; }

.empty-state { padding: 40px 20px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn-signal { padding: 10px 18px; border-radius: var(--r-md); background: var(--signal); color: var(--on-signal); font-weight: 600; transition: transform 140ms var(--ease), filter 160ms var(--ease); }
.btn-signal:hover { filter: brightness(1.06); }
.btn-signal:active { transform: scale(0.97); }

.back { color: var(--ink-3); font-weight: 500; padding: 6px 0; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.profile { display: flex; align-items: center; gap: 16px; }
.panel { padding: 16px; border-radius: var(--r-lg); background: var(--deck); box-shadow: 0 0 0 1px var(--seam); }
.panel.inset { display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.panel .kv:first-child { margin-top: 0; }
.pad { padding: 12px 0; }
.mini-sides { display: flex; gap: 6px; }
.mini { padding: 7px 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; transition: transform 140ms var(--ease); }
.mini:active { transform: scale(0.97); }
.mini-tail { background: var(--print-soft); color: var(--print); }
.mini-fade { background: var(--rug-soft); color: var(--rug); }

/* ---------- side rail ---------- */
.overview { display: flex; flex-direction: column; gap: 14px; }
.hot { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.row.slim { padding: 8px; gap: 10px; }
.row.slim .handle { flex: 1; font-size: 14px; }
.row.slim .num { font-size: 13px; font-weight: 600; }

/* ---------- bet sheet ---------- */
.sheet {
  margin: auto; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  border: 0; border-radius: var(--r-xl); padding: 0;
  background: var(--deck-2); color: var(--ink);
  box-shadow: 0 0 0 1px var(--seam-2), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.sheet[open] { animation: sheet-in 260ms var(--ease); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.sheet-inner { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.grab { display: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head .who-text { flex: 1; min-width: 0; }
.sheet-head .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--deck); text-align: left;
  box-shadow: inset 0 0 0 1px var(--seam);
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.pick-name { font-weight: 700; font-size: 17px; }
.pick-price { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pick-tail[aria-checked='true'] { background: var(--print-soft); box-shadow: inset 0 0 0 1.5px var(--print); }
.pick-tail[aria-checked='true'] .pick-name { color: var(--print); }
.pick-fade[aria-checked='true'] { background: var(--rug-soft); box-shadow: inset 0 0 0 1.5px var(--rug); }
.pick-fade[aria-checked='true'] .pick-name { color: var(--rug); }

.amt-field { display: flex; flex-direction: column; gap: 6px; }
.amt-wrap { position: relative; }
.amt-wrap input {
  width: 100%; height: 56px; padding: 0 48px 0 16px; border: 0; border-radius: var(--r-md);
  background: var(--well); color: var(--ink); font: 600 24px var(--display); letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px var(--seam);
}
.amt-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.amt-wrap input { -moz-appearance: textfield; appearance: textfield; }
.unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 500; }
.chips { display: flex; gap: 6px; }
.chip {
  flex: 1; height: 36px; border-radius: 999px; background: var(--deck); font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--seam); transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.chip:hover { background: var(--deck-3); color: var(--ink); }

.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quote div { padding: 10px 14px; border-radius: var(--r-md); background: var(--deck); }
.quote dt { color: var(--ink-3); font-size: 12px; }
.quote dd { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.fine { color: var(--ink-3); font-size: 12px; text-wrap: pretty; }
.fine.is-error { color: var(--clock); }

.confirm {
  height: 54px; border-radius: var(--r-md); font-weight: 700; font-size: 16px; color: var(--on-print); background: var(--print);
  transition: transform 140ms var(--ease), opacity 160ms var(--ease), background-color 160ms var(--ease);
}
.sheet-inner[data-call='fade'] .confirm { background: var(--rug); color: var(--on-rug); }
.confirm:active { transform: scale(0.97); }
.confirm:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  padding: 12px 16px; border-radius: var(--r-md); background: var(--deck-3); color: var(--ink); font-weight: 500; font-size: 14px;
  box-shadow: 0 0 0 1px var(--seam-2), 0 12px 32px rgba(0, 0, 0, 0.5);
  border-left: 3px solid var(--signal);
  animation: toast-in 240ms var(--ease);
}
.toast-win { border-left-color: var(--print); }
.toast-loss { border-left-color: var(--rug); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity 200ms, transform 200ms; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .app { grid-template-columns: 210px minmax(0, 640px); }
  .overview { display: none; }
}

@media (max-width: 760px) {
  .app { display: block; padding: 0; }
  .rail { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 20; padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: rgba(10, 10, 11, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--seam);
  }
  .topbar .logo { font-size: 19px; }

  .main { padding: 16px 16px 120px; }

  /* Liquid-glass tab bar */
  .tabbar {
    display: flex; position: fixed; z-index: 30; left: 16px; right: 16px;
    bottom: max(14px, env(safe-area-inset-bottom)); padding: 6px; gap: 4px; border-radius: 999px;
    background: rgba(20, 20, 22, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .tabbar button {
    flex: 1; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    font-weight: 600; font-size: 13px; color: var(--ink-3); white-space: nowrap; min-width: 0;
    transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 140ms var(--ease);
  }
  .tabbar button:active { transform: scale(0.97); }
  .tabbar button[aria-current='page'] { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
  .tabbar .dot-live { display: none; }
  .tabbar [aria-current='page'] .dot-live { display: inline-block; }
  .tabbar .badge { margin-left: 2px; }

  .toasts { bottom: 90px; }
  .intro { padding: 18px; }
  .intro h1 { font-size: 24px; }
  .row-form, .pill-ghost { display: none; }
  .row .pill-live { padding: 7px; }
  .row .pill-live .pill-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .tf-table .big { font-size: 17px; }

  /* Bottom sheet on phones */
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet[open] { animation: sheet-up 300ms var(--ease); }
  .grab { display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--seam-2); margin: -6px auto 0; }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
}

@media (max-width: 380px) {
  .side-price { font-size: 17px; }
  .who .meta .form { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar, .topbar { background: var(--deck-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- live data additions ---------- */
img.av { object-fit: cover; background: var(--deck-3); }
.tok-img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; }
.big-e .tok-img { width: 28px; height: 28px; }
.big-e .tok-e { font-size: 22px; }
.muted { color: var(--ink-4); }
.form-empty { color: var(--ink-4); font-size: 12px; margin-left: 4px; }
.stamp-void { color: var(--ink-3); background: rgba(255, 255, 255, 0.05); }
.feed-status { display: inline-flex; align-items: center; gap: 6px; }
.feed-status.is-live { color: var(--print); }
.feed-status.is-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--print); }
.board-note { margin: -4px 0 12px; font-size: 12px; }
.ext { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--signal); }
.ext:hover { text-decoration: underline; }
.toast-info { border-left-color: var(--clock); }
#feedEmpty { background: var(--deck); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--seam); margin-bottom: 12px; gap: 4px; }

/* ---------- fomo identity ---------- */
/* fomo's 1200×630 share card has the profile picture in a 168px circle at (516, 99). Scale the card so that circle fills the avatar. */
.av { --s: 38px; }
.av-sm, .bet-list.compact .av { --s: 28px; }
.av-lg { --s: 64px; }
.av-fomo {
  background-color: var(--deck-3);
  background-repeat: no-repeat;
  background-size: calc(var(--s) * 7.1429) auto;
  background-position: calc(var(--s) * -3.0714) calc(var(--s) * -0.5893);
}
.fomo-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; vertical-align: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--signal); background: var(--signal-soft);
}
h1 .fomo-tag { font-size: 12px; vertical-align: 5px; }
.ext-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- wallet + calls ---------- */
.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--signal); color: var(--on-signal); font-weight: 600; font-size: 14px;
  transition: transform 140ms var(--ease), background-color 160ms var(--ease);
}
.wallet-pill:active { transform: scale(0.97); }
.wallet-pill:has(.wp-dot) { background: var(--deck-2); color: var(--ink); box-shadow: 0 0 0 1px var(--seam); font-weight: 600; }
.wallet-pill .mono { font-size: 13px; }
.wp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.wp-dot.ok { background: var(--print); }
.wp-dot.no { background: var(--clock); }

.wallet-card .chip, .wallet-card .btn-signal { margin-top: 8px; align-self: flex-start; padding: 0 14px; flex: none; }
.wallet-short { font-size: 15px; color: var(--ink); }
.btn-signal.full { width: 100%; margin-top: 12px; }

.my-call {
  padding: 14px; border-radius: var(--r-md); font-weight: 500; text-align: center;
  box-shadow: inset 0 0 0 1px var(--seam);
}
.my-call-tail { background: var(--print-soft); color: var(--print); }
.my-call-fade { background: var(--rug-soft); color: var(--rug); }
.side-price { font-size: 18px; }

.wallet-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.wallet-panel > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wallet-addr { font-size: 13px; color: var(--ink); word-break: break-all; }
.wallet-actions { display: flex; gap: 6px; }
.wallet-actions .chip { padding: 0 14px; flex: none; }

.addr-input {
  width: 100%; height: 52px; padding: 0 14px; border: 0; border-radius: var(--r-md);
  background: var(--well); color: var(--ink); font-size: 13px; box-shadow: inset 0 0 0 1px var(--seam);
}
.addr-input::placeholder { color: var(--ink-4); }
.wallet-result { min-height: 20px; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.wallet-result.ok { color: var(--print); }
.wallet-result.no { color: var(--clock); }
.confirm-signal { background: var(--signal); color: var(--on-signal); }
.meta.wrap { white-space: normal; }
dd.small { font-size: 15px; }
.stats-strip .big { font-size: 18px; }

/* ---------- countdowns ---------- */
.ring-result .ring-fg { stroke: var(--ink-3); }
.ring-result .ring-time { color: var(--ink); }
.side:disabled { cursor: wait; }
.side.is-busy { opacity: 0.7; }
.call-open .sides .side:not(.is-busy):disabled { opacity: 0.4; }

/* ---------- contract address (bottom right) ---------- */
.ca-box {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: var(--r-lg);
  background: var(--deck-2); box-shadow: 0 0 0 1px var(--seam-2), 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: calc(100vw - 40px);
}
.ca-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--signal); }
.ca-addr { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-soon { font-family: var(--display); color: var(--ink-3); padding-right: 6px; }
.ca-copy, .ca-buy {
  height: 30px; padding: 0 12px; border-radius: var(--r-md); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; flex: none;
  transition: transform 140ms var(--ease), background-color 160ms var(--ease);
}
.ca-copy { background: var(--signal); color: var(--on-signal); }
.ca-copy.is-done { background: var(--print); }
.ca-buy { background: var(--deck-3); color: var(--ink); }
.ca-copy:active, .ca-buy:active { transform: scale(0.97); }

@media (max-width: 760px) {
  /* Sit just above the floating tab bar. */
  .ca-box { right: 16px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 70px); padding: 6px 6px 6px 12px; }
  .toasts { bottom: 140px; }
}

/* ---------- rounds, leaderboard, X (2026-11-20) ---------- */
.nav-tag { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--signal); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.x-link {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--r-md);
  background: var(--deck-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam);
  transition: background-color 160ms var(--ease);
}
.x-link:hover { background: var(--deck-3); }
.x-link svg { width: 15px; height: 15px; }
.x-link-wide { display: inline-flex; width: auto; gap: 8px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.side-top { display: flex; justify-content: flex-end; }

.overview .panel { padding: 0 16px 16px; }
.overview .panel h3 { margin: 0 -16px 14px; padding: 12px 16px; border-bottom: 1px solid var(--seam); }

.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.rung {
  display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border-radius: var(--r-md);
  background: var(--deck-2); box-shadow: inset 0 0 0 1px var(--seam);
}
.rung-place { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.rung-pct { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.rung-sol { font-size: 12px; font-weight: 600; color: var(--print); }
.rung-1 { background: var(--signal-soft); box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.35); }
.rung-1 .rung-pct { color: var(--signal); }

.round-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.round-clock { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.pool { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0; margin-bottom: 8px; border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam); }
.pool-amt { font-size: 18px; font-weight: 700; color: var(--print); }

.lb { display: flex; flex-direction: column; gap: 2px; }
.lb-row { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) auto 72px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); transition: background-color 160ms var(--ease); }
.lb-row:hover { background: var(--deck-2); }
.lb-rank { text-align: right; color: var(--ink-3); font-weight: 500; }
.lb-top .lb-rank { color: var(--ink); font-weight: 700; }
.lb-av { --h: 200; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 72% 58%), hsl(calc(var(--h) + 50) 70% 36%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.lb-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lb-who .mono { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pts { font-size: 13px; font-weight: 600; text-align: right; }
.lb-prize { font-size: 13px; font-weight: 700; color: var(--print); text-align: right; }
.lb-row.is-me { background: var(--signal-soft); box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.3); }
.you-tag { flex: none; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--on-signal); background: var(--signal); }
.lb-compact { margin: 0 -8px; }
.lb-compact .lb-row { grid-template-columns: 16px 22px minmax(0, 1fr) auto; gap: 8px; padding: 7px 8px; }
.lb-compact .lb-av { width: 22px; height: 22px; }
.lb-compact .lb-pts { display: none; }

.prelaunch { padding: 12px; border-radius: var(--r-md); background: var(--deck-2); box-shadow: inset 0 0 0 1px var(--seam); }
.pl-title { font-weight: 600; margin-bottom: 4px; }
.link-btn { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--signal); }
.link-btn:hover { text-decoration: underline; }
.side-share { margin-top: 12px; }

.round-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; align-items: center;
  padding: 20px; margin-bottom: 4px; border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 0% 0%, rgba(134, 239, 172, 0.09), transparent 55%), var(--deck);
  box-shadow: 0 0 0 1px var(--seam);
}
.rh-pool { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rh-amt { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--print); }
.round-hero .ladder { margin: 0; }
.round-hero .rung { padding: 12px; }
.round-hero .rung-pct { font-size: 22px; }

.results { display: flex; flex-direction: column; gap: 8px; }
.round-result { padding: 12px 14px; border-radius: var(--r-lg); background: var(--deck); box-shadow: 0 0 0 1px var(--seam); }
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.result-winners li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 0; }
.result-winners .num { font-weight: 600; font-size: 13px; }

@media (max-width: 760px) {
  .round-hero { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .rh-amt { font-size: 28px; }
  .lb-row { grid-template-columns: 20px 26px minmax(0, 1fr) auto 64px; gap: 8px; padding: 9px 6px; }
}
.rh-amt.is-pending { font-size: 22px; color: var(--ink); }

/* ---------- full contract address (intro + sidebar) ---------- */
.ca-inline, .ca-panel { display: flex; flex-direction: column; gap: 6px; }
.ca-inline { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(10, 10, 11, 0.6); box-shadow: inset 0 0 0 1px var(--seam); }
.overview .panel.ca-panel { padding: 14px 16px; }
.ca-full { font-size: 13px; color: var(--ink); word-break: break-all; line-height: 1.4; }
.ca-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ca-inline .ca-copy, .ca-inline .ca-buy, .ca-panel .ca-copy, .ca-panel .ca-buy { height: 32px; }

/* ---------- intro, v2: headline + three steps, always shown ---------- */
.intro { display: block; padding: 28px 28px 24px; }
.intro h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 10px; }
.intro-lede { font-size: 15px; line-height: 1.55; color: var(--ink-3); max-width: 50ch; text-wrap: pretty; }
.intro-lede [data-f='symbol'] { color: var(--ink); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.steps li {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 15px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--seam);
}
.step-n {
  width: 22px; height: 22px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--on-signal); background: var(--signal);
}
.step-t { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.step-d { font-size: 13px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.intro .ca-inline { margin-top: 12px; }

@media (max-width: 760px) {
  .intro { padding: 20px 18px 18px; }
  .intro h1 { font-size: 28px; }
  .intro-lede { font-size: 14px; }
  .steps { grid-template-columns: 1fr; gap: 6px; margin-top: 16px; }
  .steps li { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; row-gap: 2px; padding: 12px; }
  .step-n { grid-row: span 2; margin: 1px 0 0; }
}
