/* Pump Prediction Wallets: blue-and-white prediction-market theme (modeled on Polymarket's light theme, 2026-11-20).
   White page, #1d2026 text, #6d727c secondary, #e6e8ec hairlines, 15px-radius cards with a soft shadow,
   blue #2e5cff primary, green Up / red Down on light tints, Inter. Loaded after styles.css and overrides it. */
:root {
  --night: #ffffff;
  --deck: #ffffff;
  --deck-2: #f5f6f8;
  --deck-3: #eceef2;
  --well: #f7f8fa;
  --seam: #e6e8ec;
  --seam-2: #d8dbe0;
  --ink: #1d2026;
  --ink-2: #3a3e47;
  --ink-3: #6d727c;
  --ink-4: #9aa0a9;
  --signal: #2e5cff;
  --signal-soft: rgba(46, 92, 255, 0.08);
  --on-signal: #ffffff;
  --print: #27a05a;
  --print-soft: #e7f6ec;
  --on-print: #ffffff;
  --rug: #e5432d;
  --rug-soft: #fdebe8;
  --on-rug: #ffffff;
  --clock: #d97706;
  --clock-soft: #fef3e2;
  --blue: #2e5cff;
  --blue-hover: #2449d6;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --r-card: 15px;
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
body { background: #fff; color: var(--ink); font-family: var(--display); font-size: 14px; letter-spacing: -0.005em; }
button:focus-visible, input:focus-visible, a:focus-visible { outline-color: var(--blue); }
h1 { font-weight: 700; letter-spacing: -0.025em; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--seam);
}
.mh-row { max-width: 1280px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.masthead .logo { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); gap: 9px; flex: none; }
.masthead .mark { width: 30px; height: 30px; }
.mh-search {
  flex: 1; max-width: 560px; height: 40px; margin: 0 auto; padding: 0 14px; border-radius: 10px;
  display: flex; align-items: center; gap: 10px; background: #f2f3f5; color: var(--ink-3);
  transition: box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}
.mh-search:focus-within { background: #fff; box-shadow: 0 0 0 1px var(--seam-2), 0 0 0 4px rgba(46, 92, 255, 0.08); }
.mh-search svg { width: 16px; height: 16px; flex: none; }
.mh-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.mh-search input::placeholder { color: var(--ink-3); }
.top-actions { flex: none; }
.x-link { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam); border-radius: 999px; }
.x-link:hover { background: var(--deck-2); }
.wallet-pill { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; }
.wallet-pill:hover { background: var(--blue-hover); }
.wallet-pill:has(.wp-dot) { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam); }

.mh-tabs { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 22px; height: 44px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.mh-tabs::-webkit-scrollbar { display: none; }
.mh-tabs .nav-item {
  position: relative; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important;
  color: var(--ink-3); font-weight: 500; font-size: 14px; gap: 7px; white-space: nowrap;
}
.mh-tabs .nav-item:hover { color: var(--ink); }
.mh-tabs .nav-item[aria-current='page'] { color: var(--ink); font-weight: 600; }
.mh-tabs .nav-item[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--ink); }
.mh-tabs .nav-item .dot-live { order: 0; margin: 0; opacity: 1; background: var(--rug); animation: none; box-shadow: none; }
.mh-tabs .nav-tag { margin-left: 0; color: var(--blue); }
.badge { background: var(--blue); color: #fff; }
.dot-live { background: var(--rug); box-shadow: none; animation: live-blink 1.6s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: 0.35; } }

/* ---------- frame ---------- */
.app { max-width: 1280px; margin: 0 auto; padding: 24px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; justify-content: stretch; }
.rail { display: none; }
.main { padding: 0; }
.overview { position: sticky; top: 132px; height: auto; max-height: calc(100vh - 148px); padding: 0; overflow-y: auto; gap: 14px; }
.topbar { display: none !important; }

.panel, .round-result, .bet-row, #feedEmpty, .round-hero, .stats-strip, .tf-table, .wallet-panel {
  background: #fff; box-shadow: 0 0 0 1px var(--seam), var(--shadow-card);
}
.panel { border-radius: var(--r-card); }
.overview .panel { padding: 0 16px 16px; }
.overview .panel h3 { font-size: 15px; font-weight: 600; border-bottom: 0; padding: 14px 16px 4px; margin-bottom: 10px; }
.label { color: var(--ink-3); font-weight: 500; }
.meta { color: var(--ink-3); }

/* ---------- hero (intro) ---------- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px 26px 22px; margin-bottom: 28px;
  border-radius: var(--r-card); background: linear-gradient(135deg, #f4f7ff 0%, #ffffff 55%); box-shadow: 0 0 0 1px var(--seam), var(--shadow-card);
}
.intro h1 { font-size: 30px; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.03em; }
.intro-lede { color: var(--ink-3); font-size: 15px; max-width: 60ch; }
.intro-lede [data-f='symbol'] { color: var(--ink); }
.steps { margin-top: 20px; }
.steps li { background: #fff; box-shadow: inset 0 0 0 1px var(--seam); border-radius: 12px; }
.step-n { background: var(--blue); color: #fff; }
.step-t { color: var(--ink); }
.step-d { color: var(--ink-3); }
.t-print { color: var(--print); font-weight: 600; }
.t-rug { color: var(--rug); font-weight: 600; }
.ca-inline { background: #fff; box-shadow: inset 0 0 0 1px var(--seam); border-radius: 12px; }

/* ---------- section head + filters ---------- */
.feed-head { margin-bottom: 12px; }
.feed-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.feed-status { font-size: 13px; color: var(--ink-3); }
.feed-status.is-live { color: var(--ink-3); }
.feed-status.is-live::before { background: var(--rug); animation: live-blink 1.6s ease-in-out infinite; }
.chips-row { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.fchip {
  height: 32px; padding: 0 13px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.fchip:hover { color: var(--ink); background: var(--deck-2); }
.fchip[aria-pressed='true'] { background: #eceef1; color: var(--ink); font-weight: 600; }

/* ---------- market grid + cards ---------- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; align-items: start; }
.feed[data-filter='open'] .call:not(.call-open),
.feed[data-filter='locked'] .call:not(.call-locked),
.feed[data-filter='settled'] .call:not(.call-settled):not(.call-void),
.feed[data-filter='mine'] .call:not(.is-mine) { display: none; }

.call.mk {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; min-height: 176px;
  background: #fff; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--seam), var(--shadow-card);
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.call.mk:hover { box-shadow: 0 0 0 1px var(--seam-2), 0 4px 14px rgba(16, 24, 40, 0.08); }
.call.mk.is-mine { box-shadow: 0 0 0 1.5px rgba(46, 92, 255, 0.55), var(--shadow-card); }
.call-settled.mk, .call-void.mk { background: #fff; }
.call-settled .mk-head, .call-settled .mk-sub { opacity: 1; }

.mk-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.mk-av { padding: 0; border-radius: 8px; overflow: hidden; width: 38px; height: 38px; }
.mk-av .av { --s: 38px; width: 38px; height: 38px; border-radius: 8px; box-shadow: none; }
.mk-title { font-size: 14.5px; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); margin: 0; text-transform: none; }
.mk-title button { text-align: left; color: inherit; font: inherit; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-title button:hover { text-decoration: underline; text-underline-offset: 2px; }
.mk-tok { display: inline-flex; align-items: center; gap: 4px; vertical-align: -3px; }
.mk-tok .tok-img { width: 16px; height: 16px; }
.mk-tok .tok-e { font-size: 12px; font-weight: 700; color: var(--ink-3); }

.mk-gauge { position: relative; width: 56px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: none; }
.mk-gauge svg { position: absolute; top: 0; left: 4px; width: 48px; height: 28px; }
.mk-gauge path { fill: none; stroke-width: 4; stroke-linecap: round; }
.g-bg { stroke: #eceef1; }
.g-fg { stroke: var(--print); stroke-dasharray: 62.83; stroke-dashoffset: 31.4; transition: stroke-dashoffset 500ms var(--ease), stroke 300ms; }
.g-fg.is-low { stroke: var(--rug); }
.g-num { position: relative; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1; margin-top: 14px; }
.g-lbl { position: relative; font-size: 11px; color: var(--ink-3); line-height: 1.3; }

.mk-sub { font-size: 12.5px; color: var(--ink-3); margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mk-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.mk-btn {
  height: 40px; border-radius: 8px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), transform 120ms var(--ease);
}
.mk-btn .num { font-size: 13px; font-weight: 600; opacity: 0.85; }
.mk-btn:active { transform: scale(0.97); }
.mk-up { background: var(--print-soft); color: var(--print); }
.mk-up:hover { background: var(--print); color: #fff; }
.mk-down { background: var(--rug-soft); color: var(--rug); }
.mk-down:hover { background: var(--rug); color: #fff; }
.mk-btn:disabled { cursor: wait; opacity: 0.6; }
.mk-btn.is-busy { opacity: 0.75; }
.mk-picked { margin-top: auto; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.mk-picked-tail { background: var(--print-soft); color: var(--print); }
.mk-picked-fade { background: var(--rug-soft); color: var(--rug); }

.mk-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding: 9px 12px; border-radius: 8px; background: var(--deck-2); }
.mk-row-l { color: var(--ink-3); font-size: 13px; }
.mk-row-v { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.mk-row-sub { margin-top: -4px; padding: 0 2px; background: none; font-size: 12.5px; color: var(--ink-3); }
.mk-result { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-radius: 8px; background: var(--deck-2); }
.mk-res-chip { padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700; }
.mk-result-tail .mk-res-chip { background: var(--print-soft); color: var(--print); }
.mk-result-fade .mk-res-chip { background: var(--rug-soft); color: var(--rug); }
.mk-result-void .mk-res-chip { background: #eceef1; color: var(--ink-3); }
.mk-res-pnl { font-size: 16px; font-weight: 700; }
.mk-result-tail .mk-res-pnl { color: var(--print); }
.mk-result-fade .mk-res-pnl { color: var(--rug); }
.mk-res-how { font-size: 12.5px; color: var(--ink-3); }

.mk-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); padding-top: 2px; }
.mk-foot > :last-child { margin-left: auto; white-space: nowrap; }
.mk-foot .mine { margin-left: 0; font-size: 12.5px; color: var(--blue); }
.mk-foot .mine.up { color: var(--print); }
.mk-foot .mine.down { color: var(--rug); }
.mk-live { color: var(--rug); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rug); animation: live-blink 1.2s ease-in-out infinite; }
.mk-wait { color: var(--clock); font-weight: 600; }
.mk-ended { color: var(--ink-4); }
.call.mk.urgent .mk-live { animation: live-blink 0.6s ease-in-out infinite; }

/* ---------- avatars / tokens on light ---------- */
.av { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.av-fomo { background-color: #eceef1; }
img.av { background: #eceef1; }
.tok { background: var(--deck-2); color: var(--ink); }

/* ---------- side panels ---------- */
.ca-panel .label { color: var(--ink-3); }
.ca-full { color: var(--ink); }
.ca-copy { background: var(--blue); color: #fff; border-radius: 8px; }
.ca-copy:hover { background: var(--blue-hover); }
.ca-copy.is-done { background: var(--print); color: #fff; }
.ca-buy { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam); border-radius: 8px; }
.ca-buy:hover { background: var(--deck-2); }
.ladder .rung { background: #fff; box-shadow: inset 0 0 0 1px var(--seam); }
.rung-1 { background: rgba(46, 92, 255, 0.06) !important; box-shadow: inset 0 0 0 1px rgba(46, 92, 255, 0.35) !important; }
.rung-1 .rung-pct { color: var(--blue); }
.rung-pct { color: var(--ink); }
.rung-sol { color: var(--print); }
.pool { border-color: var(--seam); }
.pool-amt, .rh-amt { color: var(--ink); }
.round-clock { color: var(--ink); }
.prelaunch { background: var(--deck-2); box-shadow: none; }
.lb-row:hover { background: var(--deck-2); }
.lb-row.is-me { background: rgba(46, 92, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(46, 92, 255, 0.3); }
.lb-prize { color: var(--print); }
.you-tag { background: var(--blue); color: #fff; }
.link-btn { color: var(--blue); }
.btn-signal { background: var(--blue); color: #fff; border-radius: 10px; }
.btn-signal:hover { background: var(--blue-hover); filter: none; }
.row:hover { background: var(--deck-2); }
.row.slim .num.up { color: var(--print); }
.hot { margin: 0 -8px; }

/* ---------- pages ---------- */
.page-head h1 { font-size: 26px; }
.sub { font-size: 16px; font-weight: 700; color: var(--ink); }
.round-hero { background: linear-gradient(135deg, #f4f7ff 0%, #ffffff 60%); }
.rh-amt.is-pending { color: var(--ink); }
.pill-signal { background: rgba(46, 92, 255, 0.08); color: var(--blue); }
.pill-live { background: var(--print-soft); color: var(--print); }
.pill-clock { background: var(--clock-soft); color: var(--clock); }
.seg { background: var(--deck-2); box-shadow: none; }
.seg button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.search, .addr-input { background: #f2f3f5; box-shadow: none; color: var(--ink); }
.search:focus, .addr-input:focus { background: #fff; box-shadow: 0 0 0 1px var(--seam-2), 0 0 0 4px rgba(46, 92, 255, 0.08); outline: none; }
.board .row { border-radius: 10px; }
.podium .rk { color: var(--blue); }
.stats-strip { background: var(--seam); }
.stats-strip > div, .tf-table > div { background: #fff; }
.chip { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam); }
.chip:hover { background: var(--deck-2); }
.stamp { transform: none; border-width: 1px; border-radius: 6px; letter-spacing: 0.02em; text-transform: none; font-size: 12.5px; }
.stamp-tail { color: var(--print); background: var(--print-soft); }
.stamp-fade { color: var(--rug); background: var(--rug-soft); }
.mini { border-radius: 8px; }
.mini-tail { background: var(--print-soft); color: var(--print); }
.mini-fade { background: var(--rug-soft); color: var(--rug); }
.ext { color: var(--blue); }
.fomo-tag { color: var(--blue); background: rgba(46, 92, 255, 0.08); }
.empty-state { color: var(--ink-3); }

/* ---------- wallet sheet, toasts, CA box ---------- */
.sheet { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--seam), 0 24px 60px rgba(16, 24, 40, 0.18); }
.sheet::backdrop { background: rgba(16, 24, 40, 0.35); backdrop-filter: blur(2px); }
.confirm-signal { background: var(--blue); color: #fff; border-radius: 10px; }
.wallet-result.ok { color: var(--print); }
.wallet-result.no { color: var(--clock); }
.toast { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--seam), 0 10px 30px rgba(16, 24, 40, 0.14); border-left-width: 3px; }
.toast-win { border-left-color: var(--print); }
.toast-loss { border-left-color: var(--rug); }
.toast-info { border-left-color: var(--blue); }
.ca-box { background: #fff; box-shadow: 0 0 0 1px var(--seam), 0 8px 24px rgba(16, 24, 40, 0.12); border-radius: 12px; }
.ca-label { color: var(--blue); }
.ca-addr { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .overview { display: none; }
}
@media (max-width: 760px) {
  .mh-row { height: 56px; padding: 0 16px; gap: 12px; }
  .mh-search { display: none; }
  .masthead .logo span { font-size: 17px; }
  .mh-tabs { display: none; }
  .app { display: block; padding: 16px 16px 120px; }
  .intro { padding: 18px 16px; margin-bottom: 22px; }
  .intro h1 { font-size: 24px; }
  .feed { grid-template-columns: 1fr; gap: 10px; }
  .call.mk { min-height: 0; }
  .tabbar { background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 1px var(--seam), 0 8px 24px rgba(16, 24, 40, 0.12); }
  .tabbar button { color: var(--ink-3); }
  .tabbar button[aria-current='page'] { background: rgba(46, 92, 255, 0.1); color: var(--blue); }
  .ca-box { right: 16px; }
}
@media (prefers-reduced-transparency: reduce) {
  .masthead, .tabbar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.mk-tok .tok-e { display: none; }
.g-fg.is-none { stroke: #c9cdd3; }

/* Wordmark: full name on desktop, PPW on small phones */
.wm-short { display: none; }
@media (max-width: 760px) {
  .masthead .logo .wm-full { display: none; }
  .masthead .logo .wm-short { display: inline; font-size: 18px; }
}

/* live position on open markets */
.mk-now { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: -2px; }
.mk-now .num { font-size: 13px; font-weight: 700; }
.mk-now .up { color: var(--print); }
.mk-now .down { color: var(--rug); }
