/* ==========================================================================
   No2Brokers design system v3: editorial & data-first.
   Learned from the category leaders (Polymarket, Kalshi) and local habits
   (SportyBet): content before decoration, real imagery per market, one brand
   colour, flat surfaces with hairline borders, dense information, a condensed
   display face for headlines and numbers. No glows, no gradient text, no emoji UI.
   Light by default, dark follows the device (or the toggle).
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e9ecf1;
  --border: #e5e8ed;
  --border-strong: #d3d8e0;
  --text: #0d1117;
  --text-2: #344054;
  --muted: #667085;
  --faint: #98a2b3;

  --brand: #1f4dff;
  --brand-hover: #1638c9;
  --brand-soft: #eef2ff;
  --yes: #009a57;
  --yes-solid: #00b26a;
  --yes-bg: #e8f7ef;
  --yes-bg-hover: #d3f0e1;
  --no: #d92d3a;
  --no-solid: #ea3943;
  --no-bg: #fdeced;
  --no-bg-hover: #fbd8db;
  --gold: #b7791f;
  --gold-bg: #fdf5e6;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 32px -12px rgba(16, 24, 40, 0.18);

  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --space: 16px;
  --tap: 46px;
  --nav-h: 62px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 120ms;
  --medium: 200ms;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --bg-subtle: #0f1218; --surface: #12151c; --surface-2: #1a1e27; --surface-3: #232835;
    --border: #232836; --border-strong: #2f3646; --text: #eceef3; --text-2: #c5cad6; --muted: #8d96a8; --faint: #5f687b;
    --brand: #5b7cff; --brand-hover: #7891ff; --brand-soft: rgba(91, 124, 255, 0.14);
    --yes: #2fd27f; --yes-solid: #22c06f; --yes-bg: rgba(47, 210, 127, 0.12); --yes-bg-hover: rgba(47, 210, 127, 0.2);
    --no: #ff5c66; --no-solid: #f0434e; --no-bg: rgba(255, 92, 102, 0.12); --no-bg-hover: rgba(255, 92, 102, 0.2);
    --gold: #f2b84b; --gold-bg: rgba(242, 184, 75, 0.12);
    --shadow-sm: none; --shadow: none; --shadow-lg: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --bg-subtle: #0f1218; --surface: #12151c; --surface-2: #1a1e27; --surface-3: #232835;
  --border: #232836; --border-strong: #2f3646; --text: #eceef3; --text-2: #c5cad6; --muted: #8d96a8; --faint: #5f687b;
  --brand: #5b7cff; --brand-hover: #7891ff; --brand-soft: rgba(91, 124, 255, 0.14);
  --yes: #2fd27f; --yes-solid: #22c06f; --yes-bg: rgba(47, 210, 127, 0.12); --yes-bg-hover: rgba(47, 210, 127, 0.2);
  --no: #ff5c66; --no-solid: #f0434e; --no-bg: rgba(255, 92, 102, 0.12); --no-bg-hover: rgba(255, 92, 102, 0.2);
  --gold: #f2b84b; --gold-bg: rgba(242, 184, 75, 0.12);
  --shadow-sm: none; --shadow: none; --shadow-lg: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }
.muted { color: var(--muted); }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; }
.center { text-align: center; }
.num, .display { font-family: var(--display); font-weight: 700; letter-spacing: 0.005em; }
/* Line icons: stroke settings must live on the <svg> that uses the sprite
   (attributes on the sprite file itself don't carry across <use>). */
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px;
     fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; vertical-align: -2px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.home-grid > *, .grid > *, .market-layout > *, .card-top > div, .stat-row > *, .portfolio-summary > * { min-width: 0; }
svg { max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 20px var(--space) 8px; }
.container.narrow { max-width: 620px; }
.page-title { font-family: var(--display); font-size: 2.2rem; font-weight: 700; margin: 4px 0 16px; letter-spacing: 0.005em; }
.section-title { font-family: var(--display); font-size: 1.65rem; font-weight: 700; letter-spacing: 0.005em; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 12px var(--space); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: 0.01em; flex: none; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.search { flex: 1; max-width: 560px; position: relative; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 0.92rem; }
.search input:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-button, .bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-button:hover, .bell:hover { background: var(--surface-2); text-decoration: none; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--no-solid); color: #fff; font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); }
.balance { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding: 0 6px; color: var(--text); }
.balance:hover { text-decoration: none; }
.balance small { font-size: 0.68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.balance strong { font-family: var(--display); font-size: 1.2rem; color: var(--yes); }
.btn-small { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap; transition: background var(--fast); }
.btn-small:hover { background: var(--brand-hover); text-decoration: none; }
.btn-small.ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-small.ghost:hover { background: var(--brand-soft); }
.nav-link { color: var(--text-2); }

.tabbar { border-bottom: 1px solid var(--border); background: var(--bg); }
.tabbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--space); display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.tabbar-inner::-webkit-scrollbar { display: none; }
.tabbar a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0 11px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid transparent; }
.tabbar a:hover { color: var(--text); text-decoration: none; }
.tabbar a[aria-current] { color: var(--text); border-bottom-color: var(--text); }
.tabbar .sep { width: 1px; background: var(--border); margin: 12px 0; flex: none; }

/* ---------- Bottom nav (phones) ---------- */
.bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--surface); border-top: 1px solid var(--border); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 0.7rem; font-weight: 600; }
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav a .i { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--text); }
/* Swipe sits in the middle as a raised button. */
.bottom-nav a.nav-swipe .i { width: 40px; height: 40px; padding: 9px; margin-top: -14px; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 77, 255, 0.7); }
.bottom-nav a.nav-swipe { color: var(--brand); }
.bottom-nav a.nav-swipe[aria-current="page"] .i { background: var(--text); }
@media (min-width: 900px) { body { padding-bottom: 0; } .bottom-nav { display: none; } }
@media (max-width: 899px) {
  .desktop-only { display: none !important; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  body:not(.page-browse) .topbar .search { display: none; }    /* phones: full search bar only where people browse */
}
.mobile-search { display: none; }
@media (max-width: 899px) { body:not(.page-browse) .mobile-search { display: inline-flex; } }

/* ---------- Cards & thumbnails ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 14px; }
.card h1 { font-family: var(--display); font-size: 1.9rem; margin: 0 0 8px; }
.card h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.card h3 { font-size: 0.95rem; margin: 18px 0 8px; }
.card.auth { max-width: 440px; margin: 5vh auto 0; padding: 30px; box-shadow: var(--shadow-lg); }
.card.empty { text-align: center; padding: 42px 22px; }
.notice { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); background: var(--brand-soft); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 0.8rem; }
.card-meta a { color: var(--muted); }
.card-meta .dot::before { content: "·"; margin-right: 10px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 0.7rem; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.pill.live { background: var(--no-bg); color: var(--no); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #475467; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .i { width: 55%; height: 55%; }
.thumb.lg { width: 64px; height: 64px; border-radius: 14px; }
.thumb.sm { width: 34px; height: 34px; border-radius: 8px; }
.thumb.cat-football { background: #0f9d58; }
.thumb.cat-economy { background: #1f4dff; }
.thumb.cat-crypto { background: #f39c12; }
.thumb.cat-entertainment { background: #8e44ad; }
.thumb.cat-politics { background: #34495e; }
.thumb.cat-naija { background: linear-gradient(90deg, #008751 0 33.3%, #ffffff 33.3% 66.6%, #008751 66.6%); color: #008751; }

/* ---------- Home ---------- */
.welcome-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); background: var(--brand-soft); color: var(--text-2); font-size: 0.92rem; }
.welcome-strip strong { color: var(--text); }
.home-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 1000px) { .home-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.featured-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.featured-head { display: flex; gap: 14px; align-items: center; }
.featured-head h2 { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.05; letter-spacing: 0.005em; }
.featured-head h2 a { color: var(--text); }
.featured-body { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 700px) { .featured-body { grid-template-columns: 220px minmax(0, 1fr); } }
.outcome-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.outcome-row:last-child { border-bottom: 0; }
.outcome-row .num { font-size: 1.6rem; }
.featured-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--border); padding-top: 12px; }

.side-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px 18px; box-shadow: var(--shadow-sm); }
.side-list h2 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; padding: 10px 0 6px; }
.side-list h2 .i { color: var(--no); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); color: var(--text); }
.list-row:hover { text-decoration: none; }
.list-row:hover .list-title { color: var(--brand); }
.list-title { flex: 1; font-weight: 600; font-size: 0.88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-value { text-align: right; flex: none; }
.list-value .num { font-size: 1.3rem; display: block; line-height: 1; }

.movers { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.movers::-webkit-scrollbar { display: none; }
.movers-label { flex: none; font-weight: 700; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 4px; }
.mover { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
.mover:hover { text-decoration: none; border-color: var(--border-strong); }

.section { margin: 30px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head a { color: var(--muted); font-weight: 600; font-size: 0.88rem; }

/* ---------- Photography-led cards (v3.1) ---------- */
.thumb.xs { width: 24px; height: 24px; border-radius: 6px; }
.kicker { font-weight: 700; font-size: 0.75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.featured-card { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 0; }
.featured-card.has-media { grid-template-columns: 1fr; }
@media (min-width: 760px) { .featured-card.has-media { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.featured-media { display: block; position: relative; min-height: 220px; background: var(--surface-2); }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-content { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.featured-content h2 { font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1.02; }
.featured-content h2 a { color: var(--text); }
.featured-odds .chance-number.big { font-size: 3.4rem; }
.featured-odds .muted { font-weight: 600; }
.side-cta { margin: 6px -18px -8px; padding: 18px; border-top: 1px solid var(--border); background: var(--bg-subtle); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.side-cta p { margin: 0; font-size: 0.9rem; color: var(--text-2); }

article.market-card { padding: 0; gap: 0; overflow: hidden; }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--ease); }
.market-card:hover .card-media img { transform: scale(1.03); }
.card-cat { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(13, 17, 23, 0.72); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.card-cat.plain { position: static; align-self: flex-start; background: var(--surface-2); color: var(--muted); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; flex: 1; }
.card-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h3 a { color: var(--text); }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.market-card .card-foot { margin-top: auto; }

/* ---------- Market grid & cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1220px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.market-card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); transition: border-color var(--medium), box-shadow var(--medium); }
.market-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.card-top > div { flex: 1; }
.card-top h3 { font-size: 0.95rem; font-weight: 600; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-top h3 a { color: var(--text); }
.card-top h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-chance { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1; }
.card-chance .num { font-size: 1.75rem; transition: color var(--medium); }
.card-chance small { font-size: 0.7rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.market-card { gap: 12px; }
.card-top h3 { -webkit-line-clamp: 2; min-height: 2.7em; }
.card-odds { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.card-odds .num { font-size: 2rem; line-height: 1; }
.card-odds .muted { font-size: 0.82rem; font-weight: 600; }
.card-odds .change { margin-left: auto; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 0.78rem; }
.card-foot span { display: inline-flex; align-items: center; gap: 5px; }
.chance-number { font-family: var(--display); font-weight: 700; transition: color var(--medium); }
.chance-number.big { font-size: clamp(3rem, 7vw, 4.2rem); line-height: 0.95; }
.change { display: inline-flex; align-items: center; gap: 2px; font-size: 0.78rem; font-weight: 700; }
.change.up { color: var(--yes); }
.change.down { color: var(--no); }
.chance-bar { display: block; width: 100%; height: 4px; }
.chance-bar-track { fill: var(--surface-3); }
.chance-bar-fill { fill: var(--yes-solid); }
.tick-up { color: var(--yes) !important; }
.tick-down { color: var(--no) !important; }

/* YES / NO */
.sides { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; transition: background var(--fast), color var(--fast); }
.side:hover { text-decoration: none; }
.side strong { font-weight: 700; }
.side-yes { background: var(--yes-bg); color: var(--yes); }
.side-no { background: var(--no-bg); color: var(--no); }
.side-yes:hover { background: var(--yes-solid); color: #fff; }
.side-no:hover { background: var(--no-solid); color: #fff; }
.sides.big .side { height: 50px; font-size: 1rem; }

/* ---------- Chips & tabs ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; white-space: nowrap; background: var(--surface-2); border: 1px solid transparent; color: var(--text-2); font-weight: 600; font-size: 0.86rem; }
.chip:hover { text-decoration: none; background: var(--surface-3); }
.chip[aria-current] { background: var(--text); color: var(--bg); }
.tabs { display: inline-flex; gap: 2px; }
.tabs a { padding: 5px 10px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current] { background: var(--surface-2); color: var(--text); }

/* ---------- Market page ---------- */
.market-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .market-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; } }
.breadcrumb { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 0.84rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.market-head { display: flex; gap: 16px; align-items: center; }
.market-detail h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.02; letter-spacing: 0.005em; }
.market-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; color: var(--muted); font-size: 0.85rem; }
.market-stats span { display: inline-flex; align-items: center; gap: 6px; }
.chance-row { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 6px; flex-wrap: wrap; }
.chance-row .label-sm { color: var(--muted); font-weight: 600; }
.chart-card { position: relative; margin: 8px 0 18px; }
.chart { display: block; width: 100%; height: 300px; overflow: visible; }
.chart-grid line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-grid text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 2.25; }
.chart.trend-up .chart-line, .featured-chart.trend-up .chart-line { stroke: var(--yes-solid); }
.chart.trend-down .chart-line, .featured-chart.trend-down .chart-line { stroke: var(--no-solid); }
.chart-area { fill: url(#chart-fill); stroke: none; }
.trend-up .chart-area { fill: url(#chart-fill-up); }
.trend-down .chart-area { fill: url(#chart-fill-down); }
.chart-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 3; }
.trend-up .chart-dot { fill: var(--yes-solid); }
.trend-down .chart-dot { fill: var(--no-solid); }
.featured-chart { display: block; width: 100%; height: 180px; overflow: visible; }
.featured-chart .chart-line { fill: none; stroke-width: 2.25; stroke: var(--brand); }
.chart-empty { padding: 70px 0; text-align: center; }
.chart-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.facts p { margin: 0 0 10px; }
.facts details { margin-top: 6px; }
.facts summary { cursor: pointer; font-weight: 700; color: var(--text); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.stat-row div { padding: 12px 14px; border-radius: var(--radius); background: var(--bg-subtle); border: 1px solid var(--border); }
.stat-row span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.stat-row strong { font-family: var(--display); font-size: 1.25rem; }
@media (min-width: 620px) { .market-detail .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1220px) { .market-detail .grid { grid-template-columns: repeat(2, 1fr); } }

/* Trade panel: sticky on desktop, bottom sheet on phones */
.trade-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg); }
.trade-panel h2 { font-size: 1rem; margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
@media (min-width: 1000px) { .trade-panel { position: sticky; top: 130px; } .sheet-dismiss, .trade-panel .sheet-close { display: none; } }
@media (max-width: 999px) {
  .trade-panel { display: none; }
  .trade-panel.is-open { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; border-radius: 20px 20px 0 0; padding: 46px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: slide-up var(--medium) var(--ease); }
  .trade-panel.is-open .sheet-close { display: block; }
  .sheet-dismiss.is-open { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(13, 17, 23, 0.5); }
}
.sheet-dismiss { display: none; }
.side-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.side-switch a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--radius-sm); font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.side-switch a:hover { text-decoration: none; background: var(--surface-3); }
.side-switch a.on-yes { background: var(--yes-solid); color: #fff; }
.side-switch a.on-no { background: var(--no-solid); color: #fff; }
.payout-box { margin: 16px 0 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-subtle); border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.payout-box .label { margin: 0 !important; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.payout-box .hint { flex-basis: 100%; margin: 0; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(13, 17, 23, 0.5); }
.sheet-backdrop .sheet-dismiss { display: block; position: absolute; inset: 0; }
.sheet { position: relative; width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px 20px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: slide-up var(--medium) var(--ease); }
@media (min-width: 760px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 20px; } }
.sheet p, .trade-panel p { margin: 0; }
.sheet-close { position: absolute; top: 12px; right: 14px; color: var(--muted); padding: 6px; display: inline-flex; }
.sheet-close:hover { color: var(--text); text-decoration: none; }
.sheet-side { margin: 2px 0 4px; font-family: var(--display); font-size: 1.7rem; }
.sheet-side.side-yes { color: var(--yes); background: none; height: auto; display: block; }
.sheet-side.side-no { color: var(--no); background: none; height: auto; display: block; }
.sheet-question { color: var(--muted); margin-bottom: 16px !important; }
.label { font-weight: 600; font-size: 0.88rem; margin: 16px 0 8px !important; }
.stake-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.payout { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--yes); line-height: 1; }
@keyframes slide-up { from { transform: translateY(40px); } to { transform: none; } }

@media (max-width: 999px) {
  .sticky-sides { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 20; padding: 8px; margin: 0 0 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
}
@media (min-width: 1000px) { .sticky-sides { display: none; } }

/* ---------- Forms & buttons ---------- */
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 0.88rem; }
input[type="email"], input[type="text"], input[type="password"], select { width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; height: var(--tap); padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-weight: 700; font-size: 0.95rem; text-align: center; cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger { background: var(--no-solid); color: #fff; }
.btn-yes { background: var(--yes-solid); color: #fff; }
.btn-yes:hover { filter: brightness(0.95); }
.btn-no { background: var(--no-solid); color: #fff; }
.btn-no:hover { filter: brightness(0.95); }
.btn.inline { display: inline-flex; width: auto; margin-top: 0; }
.button-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.button-row .btn { margin-top: 8px; }
.button-row.two { grid-template-columns: 1fr 1fr; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); margin: 16px 0 0; font-size: 0.84rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pending { list-style: none; padding: 0; margin: 0; }
.pending li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.flash { padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; border: 1px solid transparent; font-weight: 500; font-size: 0.92rem; }
.flash-error { background: var(--no-bg); color: var(--text); border-color: color-mix(in srgb, var(--no) 30%, transparent); }
.flash-success { background: var(--yes-bg); color: var(--text); border-color: color-mix(in srgb, var(--yes) 30%, transparent); }
.flash-info { background: var(--brand-soft); color: var(--text); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.sheet-error { margin-top: 14px !important; }

/* ---------- Auth ---------- */
.auth-logo { width: 44px; height: 44px; margin-bottom: 16px; }
.trust-list { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; color: var(--text-2); font-size: 0.9rem; }
.trust-list li { display: flex; gap: 10px; align-items: center; }
.trust-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yes-solid); flex: none; }
.trust-list .i { color: var(--yes); }

/* ---------- Portfolio, results ---------- */
.side-tag { display: inline-flex; align-items: center; font-weight: 700; font-size: 0.75rem; padding: 3px 9px; border-radius: 6px; }
.side-tag.side-yes { background: var(--yes-bg); color: var(--yes); height: auto; }
.side-tag.side-no { background: var(--no-bg); color: var(--no); height: auto; }
.mine { margin: 0 0 14px; }
.mine-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.mine-row .link { margin-left: auto; font-weight: 600; }
.big-tabs { margin: 0 0 16px; border-bottom: 1px solid var(--border); display: flex; gap: 20px; }
.big-tabs a { padding: 10px 0; border-radius: 0; border-bottom: 2px solid transparent; font-size: 0.92rem; }
.big-tabs a[aria-current] { background: none; border-bottom-color: var(--text); }
.position { border-left: 3px solid var(--border-strong); }
.position:has(.change.up) { border-left-color: var(--yes-solid); }
.position:has(.change.down) { border-left-color: var(--no-solid); }
.position-title { color: var(--text); font-weight: 600; }
.position-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.position-value { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.position-value strong { font-family: var(--display); font-size: 1.35rem; }
.position-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.position-actions .btn { margin-top: 12px; }
.portfolio-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.portfolio-summary div { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.portfolio-summary span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.portfolio-summary strong { font-family: var(--display); font-size: 1.6rem; }
.portfolio-summary .up { color: var(--yes); }
.portfolio-summary .down { color: var(--no); }
.reality-check, .result-news { margin-bottom: 14px; }
.reality-check p, .result-news p { margin: 0 0 8px; }
.result-banner { margin: 16px 0; }
.result-banner h2 { font-family: var(--display); font-size: 1.8rem; }
.result-banner.result-yes { border-color: var(--yes-solid); background: var(--yes-bg); }
.result-banner.result-no { border-color: var(--no-solid); background: var(--no-bg); }
.result-row .position-line { margin-bottom: 0; }

/* ---------- Wallet ---------- */
.wallet-hero { text-align: center; padding: 28px 20px; }
.wallet-hero p { margin: 0; }
.wallet-balance { font-family: var(--display); font-size: 3.2rem; font-weight: 700; margin: 4px 0 10px !important; }
.qr { display: flex; justify-content: center; margin: 16px 0; }
.qr svg { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--border); }
.address-box { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px; padding: 8px 8px 8px 12px; margin-bottom: 12px; }
.address-box code { background: none; padding: 0; word-break: break-all; font-size: 0.85rem; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 11px 0; border-top: 1px solid var(--border); }
.history li > span:first-child { font-weight: 700; }
.status { margin-left: auto; font-size: 0.76rem; font-weight: 700; color: var(--muted); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); }
.status.ok { color: var(--yes); background: var(--yes-bg); }
.status.warn { color: var(--no); background: var(--no-bg); }
details summary { cursor: pointer; font-weight: 600; color: var(--brand); margin-top: 14px; }

/* ---------- Sharing, free bets, notifications ---------- */
.share-form { margin-top: 10px; text-align: right; }
.shared-card { text-align: center; padding: 32px 22px; }
.shared-card h1 { font-family: var(--display); font-size: 1.8rem; margin: 10px 0 14px; }
.shared-card h1 a { color: var(--text); }
.shared-call { font-family: var(--display); font-size: 3.6rem; font-weight: 700; margin: 0; line-height: 1; }
.shared-call span { font-size: 1.6rem; color: var(--muted); }
.shared-call.side-yes { color: var(--yes); }
.shared-call.side-no { color: var(--no); }
.shared-result { font-weight: 700; }
.share-tools { text-align: left; margin-top: 16px; }
.free-bet-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip.free { background: var(--gold-bg); color: var(--gold); }
.chip.free[aria-current] { background: var(--gold); color: #fff; }
.free-bets { list-style: none; padding: 0; margin: 8px 0; }
.free-bets li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); }
.notification p { margin: 4px 0 0; }
.notification.unread { border-left: 3px solid var(--brand); }

.share-preview { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); margin: 4px 0 6px; }

/* ---------- Growth: invites & leaderboard ---------- */
.invite-banner { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; margin-bottom: 16px; transition: border-color var(--fast) var(--ease); }
.invite-banner:hover { border-color: var(--brand); text-decoration: none; }
.invite-banner > span:first-child, .invite-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-bg); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.invite-banner > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.invite-banner small { color: var(--muted); font-size: 0.84rem; }
.invite-banner > .i:last-child { color: var(--faint); }
.invite-hero { text-align: center; padding: 30px 22px; }
.invite-hero .invite-icon { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 6px; }
.invite-hero h1 { font-family: var(--display); font-size: 2.3rem; line-height: 1.05; margin: 6px 0 8px; }
.invite-hero .label, .invite-hero .address-box, .invite-hero .button-row { text-align: left; }
.code-pill { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }
.steps { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 10px; }
.invite-welcome { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; border-color: var(--gold); background: var(--gold-bg); }
.invite-welcome > div { flex: 1; min-width: 0; }
.invite-welcome .invite-icon { background: var(--surface); }

.lb-head { margin: 8px 0 16px; }
.lb-head h1 { font-family: var(--display); font-size: 2.4rem; margin: 0; }
.lb-head p { margin: 2px 0 12px; }
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg-tabs a { padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.seg-tabs a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.my-form { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.my-form > div { display: flex; flex-direction: column; min-width: 0; }
.my-form .label { margin: 0 !important; color: var(--muted); font-size: 0.75rem; }
.my-form strong { font-family: var(--display); font-size: 1.5rem; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-form strong .i { color: #f97316; width: 20px; height: 20px; }
.my-form small, .my-form a { font-size: 0.78rem; color: var(--muted); }
.lb-card { padding: 6px 0; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-row { display: grid; grid-template-columns: 40px 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); }
.lb-list:first-child .lb-row:first-child { border-top: 0; }
.lb-row.is-me { background: var(--brand-soft); }
.lb-rank { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--muted); text-align: center; }
.lb-rank .i { width: 22px; height: 22px; }
.lb-row.top1 .lb-rank { color: #d4a017; }
.lb-row.top2 .lb-rank { color: #9aa4b2; }
.lb-row.top3 .lb-rank { color: #c27c46; }
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.lb-row.top1 .lb-avatar { background: #fdf3d7; color: #a67c00; }
.lb-name { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name em { font-style: normal; font-size: 0.7rem; font-weight: 700; color: var(--brand); background: var(--surface); border-radius: 5px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.lb-name small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.streak { display: inline-flex; align-items: center; gap: 2px; color: #ea580c; font-weight: 700; }
.streak .i { width: 14px; height: 14px; }
.lb-profit { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.lb-profit.up { color: var(--yes); }
.lb-profit.down { color: var(--no); }
.lb-gap { text-align: center; color: var(--faint); letter-spacing: 0.3em; border-top: 1px solid var(--border); padding: 4px 0; }
.empty-state { text-align: center; padding: 36px 20px; }
.empty-state > .i { width: 40px; height: 40px; color: var(--gold); }
.empty-state h2 { margin: 10px 0 4px; }
.cta-card { text-align: center; }
@media (max-width: 560px) {
  .my-form { grid-template-columns: 1fr 1fr; }
  .lb-row { grid-template-columns: 28px 34px 1fr auto; gap: 10px; padding: 12px 14px; }
  .lb-avatar { width: 34px; height: 34px; }
  .invite-welcome { flex-wrap: wrap; }
}

/* ---------- Watchlist, alerts, discussion, portfolio chart, guide ---------- */
.market-head h1 { flex: 1; min-width: 0; }
.watch-form { margin: 0; flex: none; }
.watch-btn { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.watch-btn:hover { color: var(--gold); border-color: var(--gold); }
.watch-btn.on { color: var(--gold); border-color: var(--gold); background: var(--gold-bg); }
.watch-btn.on .i { fill: currentColor; }
.alerts h2, .comments h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.alerts h2 .i { color: var(--brand); width: 18px; height: 18px; }
.alert-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.alert-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--text-2); margin: 0; }
.pct-input { display: inline-flex; align-items: center; gap: 4px; }
.pct-input input { width: 72px; margin: 0; text-align: center; }
.comments h2 .muted { font-weight: 600; font-size: 0.9rem; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 6px; }
.comment-form { display: block; margin-bottom: 8px; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 6px 6px 6px 8px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 16px; transition: border-color var(--fast), box-shadow var(--fast), background var(--fast); }
.composer:focus-within { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.composer-avatar { width: 32px !important; height: 32px !important; font-size: 0.8rem; flex: none; margin-bottom: 3px; }
.composer textarea { flex: 1; min-width: 0; margin: 0; padding: 9px 2px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1.4; resize: none; outline: none; max-height: 140px; overflow-y: auto; }
.composer textarea::placeholder { color: var(--faint); }
.composer-send { flex: none; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--fast), transform var(--fast); }
.composer-send:hover { background: var(--brand-hover); }
.composer-send:active { transform: scale(0.94); }
.composer-send:disabled { background: var(--surface-3); color: var(--faint); cursor: default; }
.composer-send .i { width: 17px; height: 17px; }
.composer-hint { display: flex; justify-content: space-between; gap: 10px; margin: 6px 4px 0; font-size: 0.72rem; color: var(--faint); }
@media (hover: none) { .composer-hint span:first-child { visibility: hidden; } }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.comment:first-child { border-top: 0; }
.comment .lb-avatar { width: 34px; height: 34px; font-size: 0.85rem; flex: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-body p { margin: 0; overflow-wrap: anywhere; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px !important; font-size: 0.86rem; }
.comment-meta .side-tag { font-size: 0.68rem; padding: 1px 6px; }
.comment-action { margin-top: 4px; }
.comment-action .link-button { color: var(--faint); font-size: 0.78rem; font-weight: 500; }
.comment-empty { display: flex; align-items: center; gap: 12px; padding: 18px 4px; color: var(--muted); }
.comment-empty .i { width: 22px; height: 22px; color: var(--faint); flex: none; }
.comment-empty span { display: flex; flex-direction: column; }
.comment-empty strong { color: var(--text-2); font-size: 0.9rem; }
.comment-empty small { font-size: 0.82rem; }
.watch-row { padding: 12px 14px; margin-bottom: 10px; }
.watch-link { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.watch-link:hover { text-decoration: none; }
.watch-title { flex: 1; min-width: 0; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.watch-title small { font-weight: 500; font-size: 0.8rem; }
.watch-chance { display: flex; flex-direction: column; align-items: flex-end; }
.watch-chance strong { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.watch-chance small { color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.pnl-card { margin-bottom: 14px; }
.pnl-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pnl-head > div { display: flex; flex-direction: column; min-width: 0; }
.pnl-head .label { margin: 0 !important; color: var(--muted); font-size: 0.75rem; }
.pnl-head strong { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.pnl-head small { color: var(--muted); font-size: 0.78rem; }
.pnl-chart { display: block; width: 100%; height: 150px; }
.pnl-chart .grid { stroke: var(--border-strong); stroke-dasharray: 2 4; }
.pnl-chart .grid.zero { stroke: var(--faint); stroke-dasharray: none; }
.how-it-works { border: 1px solid var(--border); background: linear-gradient(180deg, var(--brand-soft), var(--surface)); border-radius: var(--radius-lg); padding: 18px 20px; margin: 4px 0 20px; }
.how-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.how-head h2 { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.how-head form { margin: 0; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { display: flex; gap: 12px; min-width: 0; }
.how-steps p { margin: 2px 0 0; color: var(--text-2); font-size: 0.88rem; }
.how-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .how-steps { grid-template-columns: 1fr; gap: 12px; }

  .pnl-head strong { font-size: 1.35rem; }
}

/* ---------- Duels ---------- */
.duel-kicker { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; color: var(--brand); }
.duel-kicker .i { width: 16px; height: 16px; }
.duel-new h1, .duel-card h1 { font-family: var(--display); font-size: 2.2rem; margin: 4px 0 4px; }
.duel-market { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); margin: 14px 0; color: var(--text); text-decoration: none; }
.duel-market:hover { text-decoration: none; border-color: var(--border-strong); }
.duel-market > span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; min-width: 0; }
.duel-market small { font-weight: 500; font-size: 0.8rem; }
.stake-chips.five { grid-template-columns: repeat(5, 1fr); }
.duel-custom { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.duel-custom input { margin: 0; }
.duel-form .label[for] { display: block; }
.duel-cta { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; background: linear-gradient(90deg, var(--brand-soft), var(--surface)); transition: border-color var(--fast) var(--ease); }
.duel-cta:hover { text-decoration: none; border-color: var(--brand); }
.duel-cta > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.duel-cta small { color: var(--muted); font-size: 0.82rem; }
.duel-cta-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.duel-cta > .i:last-child { color: var(--faint); }
.open-duels h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.open-duels h2 .i { color: var(--brand); width: 18px; height: 18px; }
.open-duels h2 .muted { font-size: 0.9rem; }
.duel-list { list-style: none; margin: 0; padding: 0; }
.duel-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.duel-list li:first-child { border-top: 0; }
.duel-list .lb-avatar { width: 34px; height: 34px; font-size: 0.85rem; flex: none; }
.duel-list-text { flex: 1; min-width: 0; display: block; line-height: 1.5; }
.duel-list-text small { display: block; }
.duel-list-text .side-tag { display: inline-block; font-size: 0.7rem; padding: 1px 6px; vertical-align: 1px; }
.duel-list .btn-small { flex: none; }
.duel-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 16px 0 6px; }
.duel-player { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-subtle); min-width: 0; }
.duel-player.side-yes { border-color: var(--yes-bg-hover); background: var(--yes-bg); }
.duel-player.side-no { border-color: var(--no-bg-hover); background: var(--no-bg); }
.duel-player.empty { background: var(--surface); border-style: dashed; }
.duel-player.empty .lb-avatar { background: var(--surface-2); color: var(--faint); }
.duel-player.winner { box-shadow: 0 0 0 3px var(--gold); }
.duel-player .lb-avatar { width: 48px; height: 48px; font-size: 1.1rem; }
.duel-player strong { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.duel-player em { font-style: normal; font-size: 0.68rem; color: var(--brand); background: var(--surface); border-radius: 5px; padding: 1px 6px; vertical-align: 2px; }
.duel-side { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.side-yes .duel-side { color: var(--yes); }
.side-no .duel-side { color: var(--no); }
.duel-won { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.duel-won .i { width: 16px; height: 16px; }
.duel-pot { display: flex; flex-direction: column; align-items: center; }
.duel-pot small { color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.duel-pot strong { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.duel-message { margin: 10px 0 0; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--bg-subtle); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.duel-message cite { display: block; margin-top: 4px; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.duel-accept { margin-top: 6px; }
.duel-edge { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--text-2); }
.duel-edge.good { color: var(--yes); }
.duel-edge .i { width: 18px; height: 18px; flex: none; }
.duel-status { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 600; }
.duel-status .i { color: var(--gold); width: 20px; height: 20px; }
.duel-row.status-active { border-left: 3px solid var(--brand); }
.duel-row .position-actions form { margin: 0; }
.duel-row .position-actions .btn { width: 100%; }
.duel-spotlight .section-title { display: inline-flex; align-items: center; gap: 8px; }
.duel-spotlight .section-title .i { color: var(--brand); width: 20px; height: 20px; }
.duel-tile { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.duel-tile:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.duel-tile-head { display: flex; align-items: center; gap: 10px; }
.duel-tile-head .lb-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
.duel-tile-head .side-tag { display: inline-block; font-size: 0.7rem; padding: 1px 6px; vertical-align: 1px; }
.duel-tile-title { font-weight: 600; line-height: 1.35; }
.duel-tile-msg { color: var(--muted); font-style: italic; font-size: 0.86rem; }
.duel-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.duel-list.board li { align-items: flex-start; }
.duel-list.board .lb-avatar { margin-top: 2px; }
.duel-list .lb-avatar .i { width: 16px; height: 16px; color: var(--gold); }
.steps.left { text-align: left; }
@media (max-width: 560px) {
  .duel-versus { gap: 8px; }
  .duel-player { padding: 12px 6px; }
  .duel-side { font-size: 1.3rem; }
  .duel-pot strong { font-size: 1.5rem; }
  .stake-chips.five { grid-template-columns: repeat(3, 1fr); }
}

/* Trade panel updates in place */
.trade-panel.is-loading .payout-box, .trade-panel.is-loading form { filter: saturate(0.4); pointer-events: none; }
.panel-msg { margin: -4px 0 12px !important; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; background: var(--surface-2); }
.panel-msg.success { background: var(--yes-bg); color: var(--yes); }
.panel-msg.error { background: var(--no-bg); color: var(--no); }
.panel-msg.info { background: var(--brand-soft); color: var(--brand); }
.panel-msg a { color: inherit; text-decoration: underline; }

/* ---------- Swipe mode ---------- */
.swipe-page { max-width: 520px; }
.swipe-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 0 12px; }
.swipe-head h1 { font-family: var(--display); font-size: 2rem; margin: 2px 0 0; line-height: 1.05; }
.swipe-coach { background: var(--brand-soft); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.swipe-coach strong { display: block; font-size: 1.05rem; margin: 6px 0 2px; }
.swipe-coach p { margin: 0; }
.swipe-coach .hint { margin-top: 6px; }
.swipe-progress { display: flex; gap: 6px; }
.swipe-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--border-strong); }
.swipe-progress span.done { background: var(--brand); }
.swipe-progress span.now { background: var(--text); }
.swipe-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; }
.swipe-stakes { display: flex; gap: 6px; }
.swipe-meter { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.swipe-meter progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.swipe-meter progress::-webkit-progress-bar { background: var(--surface-3); }
.swipe-meter progress::-webkit-progress-value { background: var(--brand); border-radius: 6px; }
.swipe-meter progress::-moz-progress-bar { background: var(--brand); }
.swipe-balance { font-size: 0.82rem; }
.swipe-stack { position: relative; height: min(68vh, 600px); min-height: 460px; margin-bottom: 8px; touch-action: none; user-select: none; }
.swipe-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  cursor: grab; contain: layout paint;
}
.swipe-card.is-next { transform: translateY(10px) scale(0.96); z-index: 1; }
/* The third card is drawn (hidden behind the second) so it's ready the moment it moves up. */
.swipe-card.is-third { transform: translateY(10px) scale(0.96); z-index: 0; }
.swipe-card.is-back { transform: translateY(18px) scale(0.92); z-index: 0; visibility: hidden; }
.swipe-card.is-top { z-index: 2; }
/* A card being dragged follows the finger exactly; the top two cards live on
   their own GPU layers, so moving them is just sliding pixels (no repaint).
   Deliberately NO transition on cards changing place in the stack: measured,
   it made the whole page repaint every frame during fast swipes (458 paints
   -> 90 without it). Only snap-back and fly-off animate (.snap). */
.swipe-card.is-top, .swipe-card.is-next, .swipe-card.is-third, .swipe-card.gone { will-change: transform; }
.swipe-card.dragging { cursor: grabbing; }
.swipe-pending { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--brand); vertical-align: 1px; animation: swipe-pulse 0.9s ease-in-out infinite; }
.swipe-card.gone { pointer-events: none; z-index: 3; }
.swipe-card.shake { animation: swipe-shake 360ms var(--ease); }
@keyframes swipe-shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
/* The photo takes whatever space is left, so the question and buttons always fit. */
.swipe-media { position: relative; flex: 1 1 0; min-height: 110px; background: linear-gradient(135deg, var(--brand), #6b8bff); }
.swipe-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.stamp { position: absolute; top: 22px; padding: 6px 14px; border: 4px solid; border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 2.2rem; letter-spacing: 0.06em; background: rgba(255, 255, 255, 0.9); }
/* Stamps fade in while dragging; their own layer means fading never repaints the card. */
.stamp-yes { left: 20px; color: var(--yes-solid); border-color: var(--yes-solid); transform: rotate(-12deg); opacity: 0; will-change: opacity; }
.stamp-no { right: 20px; color: var(--no-solid); border-color: var(--no-solid); transform: rotate(12deg); opacity: 0; will-change: opacity; }
.swipe-body { padding: 16px 18px 8px; }
.swipe-body h2 { font-family: var(--display); font-size: 1.6rem; line-height: 1.12; margin: 4px 0 8px; }
.swipe-chance { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.swipe-chance strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.swipe-chance span { color: var(--muted); font-size: 0.86rem; }
.swipe-pays { display: flex; gap: 16px; margin: 6px 0 0; font-size: 0.86rem; font-weight: 600; }
.swipe-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 8px 18px 16px; margin: 0; }
.swipe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; border-radius: 14px; border: 0; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.swipe-btn.yes { background: var(--yes-solid); color: #fff; }
.swipe-btn.no { background: var(--no-solid); color: #fff; }
.swipe-btn.skip { padding: 0 14px; background: var(--surface-2); color: var(--text-2); font-size: 0.86rem; }
.swipe-card.teach-skip .swipe-btn.skip { background: var(--brand); color: #fff; animation: swipe-pulse 1.2s ease-in-out infinite; }
@keyframes swipe-pulse { 50% { transform: scale(1.08); } }
.swipe-btn:active { transform: scale(0.97); }
.swipe-legend { display: flex; justify-content: center; gap: 22px; font-weight: 700; margin: 8px 0; }
.swipe-legend.small { font-size: 0.82rem; }
.swipe-intro .swipe-legend { font-size: 1.1rem; }
.swipe-unlocked { display: flex; gap: 12px; align-items: center; border-color: var(--gold); background: var(--gold-bg); margin-bottom: 12px; }
.swipe-unlocked > .i { color: var(--gold); width: 24px; height: 24px; flex: none; }
.swipe-done { text-align: center; }
.swipe-done > .i { width: 40px; height: 40px; color: var(--yes-solid); }
.swipe-breather { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 17, 23, 0.55); }
.swipe-breather .sheet { border-radius: 20px; }
.swipe-breather h2 { font-family: var(--display); font-size: 1.8rem; margin: 0 0 6px; }
.swipe-toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); transform: translateX(-50%); z-index: 80; max-width: min(92vw, 440px); padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-lg); }
.swipe-toast.err { background: var(--no-solid); color: #fff; }
.swipe-toast.ok { background: var(--yes-solid); color: #fff; }
.swipe-toast a { color: inherit; text-decoration: underline; }
.swipe-cta { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; background: linear-gradient(110deg, #101935, #1f4dff); color: #fff; border: 0; }
.swipe-cta:hover { text-decoration: none; filter: brightness(1.05); }
.swipe-cta .i { width: 26px; height: 26px; }
.swipe-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.swipe-cta small { opacity: 0.85; font-size: 0.84rem; }
.swipe-cta .lock { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255, 255, 255, 0.16); padding: 3px 8px; border-radius: 6px; }
/* Full-screen swipe on phones: no pull-to-refresh, no category bar, no footer,
   the stack takes all the height that's left (swipe.js measures it). */
html:has(body.swipe-screen), body.swipe-screen { overscroll-behavior: none; }
/* No frosted-glass blur while swiping: re-blurring behind a moving card is the
   most expensive thing a phone can be asked to draw. */
body.swipe-screen .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.swipe-stack { touch-action: none; }
.swipe-stack .swipe-coach {
  position: absolute; z-index: 10; left: 10px; right: 10px; top: 10px; margin: 0;
  background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow); pointer-events: none;
}
[data-theme="dark"] .swipe-stack .swipe-coach { background: rgba(20, 24, 33, 0.94); }
.swipe-practice-tag { display: inline-block; margin-top: 6px !important; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.swipe-stack[data-mode="tutorial"] .swipe-media { min-height: 150px; }
.swipe-intro h1 { font-family: var(--display); font-size: 2rem; margin: 0 0 8px; }
.swipe-stack .swipe-done { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.swipe-stack .swipe-done[hidden] { display: none; }
@media (max-width: 760px) {
  body.swipe-screen .tabbar, body.swipe-screen .site-footer, body.swipe-screen .topbar .search,
  body.swipe-screen .install-banner { display: none !important; }
  body.swipe-screen .demo-bar { padding: 3px 12px; font-size: 0.74rem; }
  body.swipe-screen main.swipe-page { padding-top: 6px; padding-bottom: 0; }
  .swipe-head { margin: 0 0 8px; }
  .swipe-bar { margin-bottom: 8px; flex-wrap: nowrap; gap: 10px; }
  .swipe-stakes .chip { height: 34px; padding: 0 12px; }
  .swipe-meter { min-width: 0; font-size: 0.74rem; }
  .swipe-stack { height: calc(100svh - 190px - var(--nav-h)); min-height: 380px; margin-bottom: 0; }
  .swipe-card { border-radius: 18px; }
  .swipe-body { padding: 10px 14px 2px; }
  .swipe-body h2 { font-size: 1.3rem; margin: 2px 0 6px; }
  .swipe-chance strong { font-size: 1.9rem; }
  .swipe-actions { padding: 6px 14px 12px; }
  .swipe-stack .swipe-coach { padding: 10px 12px; }
  .swipe-stack .swipe-coach p { font-size: 0.86rem; }
  .stamp { font-size: 1.7rem; top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-card.fly-right, .swipe-card.fly-left, .swipe-card.fly-up { transition: none; }
}

/* ---------- App install & push ---------- */
[hidden] { display: none !important; }
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.install-logo .logo-mark { width: 40px; height: 40px; display: block; }
.install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-text small { color: var(--muted); font-size: 0.8rem; }
.install-close { background: none; border: 0; color: var(--faint); padding: 6px; cursor: pointer; display: inline-flex; }
.install-close:hover { color: var(--text); }
.push-panel { margin-bottom: 14px; }
.install-card .install-logo .logo-mark { width: 42px; height: 42px; }
.install-card .btn { margin-top: 14px; }
.install-steps { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; font-size: 0.9rem; }
.install-steps li { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-subtle); border: 1px solid var(--border); }
.install-installed { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 600; color: var(--yes); }
.install-installed .i { width: 20px; height: 20px; }
.push-head { display: flex; gap: 14px; align-items: flex-start; }
.push-head h2 { margin: 0 0 4px; font-size: 1.05rem; }
.push-head p { margin: 0; }
.push-status { margin-top: 6px !important; font-weight: 600; font-size: 0.88rem; }
.push-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.push-icon.sm { width: 32px; height: 32px; border-radius: 9px; }
.push-icon.sm .i { width: 16px; height: 16px; }
.push-panel .button-row .btn { margin-top: 14px; }
.push-nudge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 14px; border-radius: var(--radius); background: var(--brand-soft); font-size: 0.9rem; font-weight: 500; }
.push-nudge > span:nth-child(2) { flex: 1; min-width: 180px; }
.push-nudge .link-button { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.duel-card .push-nudge { margin: 14px 0 0; }

/* ---------- Demo mode ---------- */
.demo-bar { background: var(--gold); color: #1a1200; text-align: center; font-size: 0.82rem; font-weight: 600; padding: 6px 16px; }
.demo-bar a { color: inherit; text-decoration: underline; margin-left: 6px; }
.demo-link { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.demo-funds { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }

/* ---------- Footer & legal ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; background: var(--bg-subtle); }
.site-footer-inner { max-width: 1280px; margin: 0 auto; padding: 28px var(--space) 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--muted); font-size: 0.82rem; }
.site-footer a { color: var(--text-2); }
.site-footer .spacer { flex: 1; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--no); color: var(--no); font-weight: 800; font-size: 0.68rem; }
.legal h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= Live rounds (Up/Down), live chat, rolling numbers ================= */
/* Rolling digits: each digit is a 0-9 strip moved with transform (GPU only). */
[data-roll], [data-roll-number], .hub-price { display: inline-flex; font-variant-numeric: tabular-nums; }
.rd { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.rd-strip { display: flex; flex-direction: column; transition: transform 420ms var(--ease); will-change: transform; }
.rd-strip span { height: 1em; line-height: 1; display: block; text-align: center; }
.rc { display: inline-block; line-height: 1; height: 1em; }
@media (prefers-reduced-motion: reduce) { .rd-strip { transition: none; } }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--no-solid); display: inline-block; animation: live-beat 1.6s ease-in-out infinite; }
@keyframes live-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.6); } }
.watching { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.watching[hidden] { display: none; }
.tabbar a.tab-live { display: inline-flex; align-items: center; gap: 6px; }

.live-switch { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.82rem; color: var(--muted); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.coin-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; flex: none; }
.coin-btc { --coin: #f7931a; } .coin-eth { --coin: #627eea; } .coin-sol { --coin: #14b88a; }

.coin-badge { flex: none; width: 46px; height: 46px; border-radius: 50%; display: block; }

.live-head { display: flex; align-items: center; gap: 14px; }
.live-head > div { flex: 1; min-width: 0; }
.live-head h1 { margin: 0; }
.live-sub { margin: 2px 0 0; font-size: 0.86rem; }

.price-board { display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 0; margin: 20px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.pb-cell { padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb-cell + .pb-cell { border-left: 1px solid var(--border); }
.pb-cell .label-sm { font-size: 0.74rem; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.pb-target, .pb-price, .pb-countdown { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.pb-target { color: var(--text-2); }
.pb-delta { font-family: var(--font); font-size: 0.74rem; font-weight: 700; }
.pb-delta.up { color: var(--yes); } .pb-delta.down { color: var(--no); }
.pb-countdown { color: var(--no); display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.pb-countdown small { font-family: var(--font); font-size: 0.62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; margin: 0 4px 0 2px; }
@media (max-width: 640px) {
  .price-board { grid-template-columns: 1fr 1fr; }
  .pb-clock { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--border); flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 16px; }
  .pb-target, .pb-price { font-size: 1.5rem; }
  .pb-countdown { font-size: 1.5rem; }
}

.live-chart-card { margin-top: 6px; }
.live-chart { position: relative; height: 320px; }
.live-chart canvas { display: block; }
@media (max-width: 640px) { .live-chart { height: 240px; } }
.chart-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; }
.chart-wait[hidden] { display: none; }
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bet-bubble { position: absolute; padding: 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; color: #fff; white-space: nowrap; will-change: transform; transform: scale(0); }
.bet-bubble.up { background: var(--yes-solid); } .bet-bubble.down { background: var(--no-solid); }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; }
.legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--yes-solid); margin-left: 8px; }
.legend i.lg-target { border-top: 2px dashed var(--text-2); }

.side .i { width: 16px; height: 16px; }
.side.is-disabled { pointer-events: none; filter: grayscale(1); }
.trade-panel.is-closed form, .trade-panel.is-closed .payout-box { pointer-events: none; filter: grayscale(1); }
.next-round-panel { display: block; }
@media (max-width: 999px) { .next-round-panel { display: block; position: static; box-shadow: none; } }
.next-round-panel .btn { margin-top: 14px; }

.past-card { padding: 14px 18px; }
.past-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.past-head h2 { font-size: 1rem; margin: 0 0 10px; }
.past-row { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.past-dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.past-dot .i { width: 15px; height: 15px; stroke-width: 2.6; }
.past-dot.up { background: var(--yes-solid); } .past-dot.down { background: var(--no-solid); }
.past-row.mini .past-dot { width: 18px; height: 18px; } .past-row.mini .past-dot .i { width: 11px; height: 11px; }

/* live chat */
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.chat-head h2 { margin: 0; }
.typing { color: var(--muted); font-size: 0.8rem; font-style: italic; margin: 4px 0 0; min-height: 1.2em; }
.typing[hidden] { display: block; visibility: hidden; }
.chat-error { color: var(--no); font-size: 0.84rem; margin: 4px 0 0; }
.chat-error[hidden] { display: none; }
.pos-badge { display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.pos-badge.side-yes { background: var(--yes-bg); color: var(--yes); } .pos-badge.side-no { background: var(--no-bg); color: var(--no); }
.comment-new { background: linear-gradient(var(--brand-soft), var(--brand-soft)) no-repeat; background-size: 100% 100%; animation: comment-in 2.4s var(--ease) forwards; }
@keyframes comment-in { to { background-size: 0 100%; } }

/* hub */
.live-hub-head { display: block; margin-bottom: 18px; }
.live-hub-head .page-title { margin-bottom: 4px; }
.hub-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-grid > .card { margin: 0; }
.hub-coin { padding: 0; overflow: hidden; }
.hub-coin-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; flex-wrap: wrap; }
.hub-coin-head h2 { margin: 0; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.hub-coin-head > div { flex: 1; min-width: 120px; }
.hub-price { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.hub-rounds { list-style: none; margin: 0; padding: 0; }
.hub-round { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text); }
.hub-round:hover { text-decoration: none; background: var(--bg-subtle); }
.hub-len { font-weight: 700; }
.hub-ends { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.hub-sides { display: inline-flex; gap: 6px; }
.hub-sides b { font-size: 0.78rem; padding: 4px 8px; border-radius: 7px; }
.hub-sides b.up { background: var(--yes-bg); color: var(--yes); } .hub-sides b.down { background: var(--no-bg); color: var(--no); }
.hub-note { font-size: 0.8rem; margin-top: 16px; }
.live-waiting { text-align: center; padding: 40px 20px; }
.live-strip .section-title { display: inline-flex; align-items: center; gap: 10px; }
.live-tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .live-tiles { grid-template-columns: repeat(3, 1fr); } }
.live-tiles > .card { margin: 0; }
.live-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); }
.live-tile:hover { text-decoration: none; border-color: var(--border-strong); }
.live-tile .coin-badge { width: 38px; height: 38px; }
.live-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.live-tile-text small { font-variant-numeric: tabular-nums; }
.live-main > .card, .live-main > [data-mine] > .card { margin: 0 0 16px; }
.next-banner { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--text); border: 1px solid var(--brand); }
.next-banner[hidden] { display: none; }
.next-banner:hover { text-decoration: none; }
.next-banner > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.next-banner small { color: var(--muted); }
.round-result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, 90%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; z-index: 2; }
.round-result[hidden] { display: none; }
.round-result strong { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.round-result .btn { margin-top: 10px; width: 100%; }
.rr-badge { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; font-weight: 800; }
.rr-badge.up { background: var(--yes-solid); } .rr-badge.down { background: var(--no-solid); } .rr-badge.void { background: var(--faint); }
.rr-mine { font-weight: 700; font-size: 1.05rem; padding: 6px 12px; border-radius: 10px; }
.rr-mine.won { background: var(--yes-bg); color: var(--yes); } .rr-mine.lost { background: var(--surface-2); color: var(--text-2); }

/* ================= Missions, streak, levels ================= */
.missions .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mission-reset { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.mission-top { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 760px) { .mission-top { grid-template-columns: 1fr 1fr; } }
.mission-top > .card { margin: 0; display: flex; align-items: center; gap: 16px; }
.missions > .card { margin: 0 0 14px; }
.level-badge, .streak-flame { flex: none; width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: #fff; background: var(--brand); }
.lv-rookie { background: #8d96a8; } .lv-caller { background: #1f9d6b; } .lv-sharp { background: var(--brand); }
.lv-pro { background: #7c3aed; } .lv-oracle { background: #c2410c; } .lv-legend { background: #b7791f; }
.streak-flame { background: var(--surface-2); color: var(--faint); }
.streak-card.is-hot .streak-flame { background: #fff1e6; color: #ea580c; }
:root[data-theme="dark"] .streak-card.is-hot .streak-flame { background: rgba(234, 88, 12, 0.16); }
.streak-flame .i { width: 28px; height: 28px; }
.level-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.level-body strong { font-family: var(--display); font-size: 1.7rem; line-height: 1.05; }
.meter { width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; appearance: none; -webkit-appearance: none; margin: 4px 0 2px; }
.meter::-webkit-progress-bar { background: var(--surface-2); border-radius: 99px; }
.meter::-webkit-progress-value { background: var(--brand); border-radius: 99px; transition: width 400ms var(--ease); }
.meter::-moz-progress-bar { background: var(--brand); border-radius: 99px; }
.mission.is-done .meter::-webkit-progress-value { background: var(--yes-solid); }
.mission.is-done .meter::-moz-progress-bar { background: var(--yes-solid); }
.mission-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin: 0 0 6px; }
.mission-h .muted { font-size: 0.85rem; font-weight: 600; }
.mission-list { list-style: none; margin: 0; padding: 0; }
.mission { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.mission:first-child { border-top: 0; }
.mission-check { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.mission.is-done .mission-check { background: var(--yes-bg); color: var(--yes); }
.mission-bonus .mission-check { background: var(--gold-bg); color: var(--gold); }
.mission-check .i { width: 18px; height: 18px; }
.mission-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mission-act { flex: none; display: flex; align-items: center; gap: 10px; }
.mission-count { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.badge-claimed { display: inline-flex; align-items: center; gap: 4px; color: var(--yes); font-weight: 700; font-size: 0.85rem; }
.badge-claimed .i { width: 16px; height: 16px; }
.streak-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .streak-steps { grid-template-columns: repeat(4, 1fr); } }
.streak-steps li { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.streak-steps li.reached { border-color: var(--yes-solid); background: var(--yes-bg); }
.step-days { font-weight: 700; }
.step-amt { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.home-missions { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); }
.home-missions:hover { text-decoration: none; border-color: var(--border-strong); }
.home-missions > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.home-missions .streak-flame { width: 42px; height: 42px; border-radius: 12px; }
.home-missions .streak-flame .i { width: 22px; height: 22px; }
.claim-dot { background: var(--no-solid); color: #fff; font-size: 0.72rem; font-weight: 800; border-radius: 99px; padding: 2px 8px; }

/* ================= Profiles, following ================= */
.profile > .card, .profile > .stat-row { margin: 0 0 14px; }
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 2.2rem; font-weight: 700; }
.profile-id { flex: 1; min-width: 180px; }
.profile-id h1 { font-family: var(--display); font-size: 2.2rem; margin: 0; line-height: 1; }
.profile-id p { margin: 6px 0 0; }
.profile-follows { font-size: 0.9rem; color: var(--muted); }
.profile-follows strong { color: var(--text); }
.profile-actions { display: flex; gap: 8px; }
.profile-actions .btn-small { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; justify-content: center; }
.level-chip { display: inline-block; font-size: 0.72rem; font-weight: 800; color: #fff; padding: 2px 8px; border-radius: 6px; background: var(--brand); margin-right: 4px; }
.profile-stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .profile-stats { grid-template-columns: repeat(4, 1fr); } }
.profile-stats .up, .call-meta .up { color: var(--yes); } .profile-stats .down, .call-meta .down { color: var(--no); }
.call-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.call-row:first-of-type { border-top: 0; }
.call-title { color: var(--text); font-weight: 600; grid-column: 1; }
.call-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.86rem; margin: 0; }
.call-copy { grid-column: 2; grid-row: 1 / span 2; }
.feed-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.feed-row:first-of-type { border-top: 0; }
.feed-row .lb-avatar { width: 38px; height: 38px; flex: none; }
.feed-row .lb-avatar:hover { text-decoration: none; }
.feed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.feed-who { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.88rem; }
.feed-row .call-copy { align-self: center; }
.comment-name { color: inherit; }
.lb-name a { color: inherit; }
html.is-navigating::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: var(--brand); transform-origin: left; animation: nav-progress 1.2s var(--ease) infinite; }
@keyframes nav-progress { 0% { transform: scaleX(0); } 60% { transform: scaleX(0.8); } 100% { transform: scaleX(0.95); } }

/* ================= Accumulators ================= */
.slip-add { margin-top: 10px; }
.slip-add-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.slip-add-btn .i { width: 16px; height: 16px; }
.slip-pill { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow-lg); }
.slip-pill:hover { text-decoration: none; }
.slip-pill[hidden] { display: none; }
.slip-pill .i { width: 17px; height: 17px; }
.slip-pill b { background: var(--brand); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; padding: 0 6px; }
@media (min-width: 1000px) { .slip-pill { bottom: 24px; right: 24px; } }
.slip-card { padding: 6px 18px 14px; }
.slip-legs { list-style: none; margin: 0; padding: 0; }
.slip-legs li { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.slip-legs li.has-problem .slip-leg-title { color: var(--muted); text-decoration: line-through; }
.slip-leg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.slip-leg-title { color: var(--text); font-weight: 600; }
.slip-leg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; }
.slip-problem { color: var(--no); font-weight: 600; }
.slip-stakes { grid-template-columns: repeat(5, 1fr); }
.slip-stakes .chip { cursor: pointer; }
.slip-stakes .chip input { position: absolute; opacity: 0; pointer-events: none; }
.slip-stakes .chip:has(input:checked) { background: var(--text); color: var(--bg); }
.slip-stakes .chip:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.slip-form .btn { width: 100%; margin-top: 14px; }
.slip-odds { font-family: var(--display); font-size: 1.2rem; color: var(--text); }
.slip-clear { text-align: center; margin-top: 10px; }
.slip-done { text-align: center; padding: 30px 20px; }
.slip-done .btn { margin-top: 12px; }
.acca-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acca-odds { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.acca-head .status { margin-left: auto; }
.acca-legs { list-style: none; margin: 10px 0 0; padding: 0; }
.acca-legs li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.9rem; }
.acca-legs li a { flex: 1; min-width: 0; color: var(--text); }
.leg-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--border-strong); }
.leg-won .leg-dot { background: var(--yes-solid); border-color: var(--yes-solid); }
.leg-lost .leg-dot { background: var(--no-solid); border-color: var(--no-solid); }
.leg-void .leg-dot { background: var(--faint); border-color: var(--faint); }
.leg-lost a { color: var(--muted) !important; text-decoration: line-through; }
.acca-foot { margin: 8px 0 0; font-size: 0.85rem; }

/* ================= Market ideas ================= */
.ideas-layout { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .ideas-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .ideas-layout aside { position: sticky; top: 130px; } }
.ideas-layout aside .card { margin: 0 0 14px; }
.idea { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 10px; }
.vote-btn { flex: none; width: 52px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 800; cursor: pointer; }
.vote-btn:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.vote-btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.vote-btn .i { width: 18px; height: 18px; }
.idea-body { flex: 1; min-width: 0; }
.idea-q { font-size: 1.02rem; display: block; }
.idea-how { margin: 4px 0 0; color: var(--text-2); font-size: 0.9rem; overflow-wrap: anywhere; }
.idea-meta { margin: 6px 0 0; font-size: 0.8rem; }
.idea-status { margin: 8px 0 0; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.idea-status.ok { color: var(--yes); }
.idea-status .i { width: 16px; height: 16px; }
.idea-form label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 0.88rem; }
.idea-form input, .idea-form textarea, .idea-form select { margin-top: 6px; }
.idea-form textarea { width: 100%; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; resize: vertical; }
.idea-form input[type="date"] { width: 100%; height: 46px; padding: 0 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; }
.idea-form textarea:focus, .idea-form input[type="date"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.idea-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.idea-form .btn { width: 100%; }
.idea-live { list-style: none; margin: 0; padding: 0; }
.idea-live li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.idea-live li:first-child { border-top: 0; }

/* booking codes */
.slip-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.slip-foot .btn-small { display: inline-flex; align-items: center; gap: 6px; }
.slip-foot .i { width: 15px; height: 15px; }
.load-code { margin-top: 14px; }
.load-code-row { display: flex; gap: 8px; margin-top: 8px; }
.load-code-row input { flex: 1; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.load-code-row .btn-small { height: 46px; padding: 0 18px; }
.code-card { padding: 22px; }
.code-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.code-big { display: block; font-family: var(--display); font-size: 3rem; line-height: 1; letter-spacing: 0.06em; margin-top: 4px; }
.code-by { margin: 6px 0 0; }
.code-played { display: inline-flex; align-items: center; gap: 6px; background: var(--yes-bg); color: var(--yes); font-weight: 700; font-size: 0.85rem; padding: 5px 10px; border-radius: 999px; }
.code-played .i { width: 15px; height: 15px; }
.code-load { width: 100%; margin-top: 16px; }
.code-share { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.code-share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.acca-foot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ================= Navigation: avatar menu, shortcuts, quick actions ================= */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu[open] > summary { background: var(--surface-2); }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.user-menu-panel a, .user-menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 500; text-align: left; cursor: pointer; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--surface-2); text-decoration: none; }
.user-menu-panel .i { width: 17px; height: 17px; color: var(--muted); }
.user-menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
@media (min-width: 620px) { .shortcut-grid { grid-template-columns: repeat(5, 1fr); } }
.shortcut-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--radius-sm); background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text); font-size: 0.8rem; font-weight: 600; text-align: center; }
.shortcut-grid a:hover { text-decoration: none; border-color: var(--border-strong); }
.shortcut-grid .i { width: 20px; height: 20px; color: var(--brand); }
.logout-row { margin: 8px 0 24px; }
.logout-row .btn { width: 100%; }
.quick-actions { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.quick-actions::-webkit-scrollbar { display: none; }
.quick-actions a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.quick-actions a:hover { text-decoration: none; border-color: var(--border-strong); background: var(--bg-subtle); }
.qa-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.qa-ic .i { width: 16px; height: 16px; }
.qa-live { background: var(--no-bg); }
.qa-tag { font-size: 0.68rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 99px; }
.sides.with-payout .side { flex-direction: column; gap: 1px; height: 58px; line-height: 1.15; }
.sides.with-payout .side small { font-size: 0.74rem; font-weight: 600; opacity: 0.9; }
.sides.with-payout .side small b { font-weight: 800; }
.show-more { display: block; width: 100%; max-width: 360px; margin: 18px auto 0; }
.usdt-guide { margin: 12px 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--bg-subtle); }
.usdt-guide summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.usdt-guide ol { margin: 10px 0 4px; padding-left: 20px; }
.usdt-guide li { margin: 6px 0; }
.demo-funds { margin-bottom: 14px; }
.demo-funds .btn { width: 100%; }
.starter-picks { text-align: left; margin: 16px 0 6px; }
.starter-row { padding: 12px 0; border-top: 1px solid var(--border); }
.starter-title { display: block; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.confetti i { position: absolute; top: 0; width: 8px; height: 12px; border-radius: 2px; transform: translate(0, -20px); }

/* ================= Multi-choice events ================= */
.outcomes { list-style: none; margin: 4px 0 8px; padding: 0; }
.outcomes li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--border); }
.outcomes li:first-child { border-top: 0; }
.outcome-name { color: var(--text); font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outcome-chance { font-weight: 800; font-size: 0.92rem; min-width: 42px; text-align: right; }
.mini-side { font-size: 0.76rem; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.mini-side:hover { text-decoration: none; }
.mini-side.yes { background: var(--yes-bg); color: var(--yes); } .mini-side.no { background: var(--no-bg); color: var(--no); }
.mini-side.yes:hover { background: var(--yes-solid); color: #fff; } .mini-side.no:hover { background: var(--no-solid); color: #fff; }
.event-card .card-foot a { font-weight: 600; }
.event-page .market-head h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.02; }
.event-options { margin-top: 18px; padding: 6px 18px; }
.event-options-head { display: grid; grid-template-columns: minmax(0, 1fr) 90px 220px; gap: 12px; padding: 10px 0; color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.event-option { display: grid; grid-template-columns: minmax(0, 1fr) 90px 220px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.event-option-name { color: var(--text); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-option-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-option-name .meter { max-width: 240px; height: 6px; }
.event-option-chance { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.15rem; }
.event-option-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.event-option-sides .side { height: 38px; font-size: 0.82rem; }
@media (max-width: 640px) {
  .event-options-head { display: none; }
  .event-option { grid-template-columns: minmax(0, 1fr) auto; }
  .event-option-sides { grid-column: 1 / -1; }
}
.event-link { display: block; margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--text); font-size: 0.9rem; }
.event-link:hover { text-decoration: none; }

/* instant search */
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow-y: auto; }
.search-suggest[hidden] { display: none; }
.ss-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--text); }
.ss-item:hover, .ss-item.on { background: var(--surface-2); text-decoration: none; }
.ss-item img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.ss-item:not(:has(img)) { grid-template-columns: minmax(0, 1fr) auto; }
.ss-title { font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-meta { font-weight: 800; font-size: 0.85rem; color: var(--text-2); }
.ss-all { display: block; padding: 10px 8px 6px; border-top: 1px solid var(--border); margin-top: 4px; font-size: 0.85rem; font-weight: 600; }
.ss-empty { margin: 8px; color: var(--muted); font-size: 0.9rem; }
.event-page > .hint { margin: 8px 2px 16px; }

/* ================= Help center, contact, your data ================= */
.help-search { position: relative; margin: 4px 0 14px; }
.help-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.help-search input { width: 100%; height: 50px; padding: 0 16px 0 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.help-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.help-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.help-topics a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 0.85rem; }
.help-topics a:hover { text-decoration: none; background: var(--surface-3); }
.help-section { margin-bottom: 22px; scroll-margin-top: 140px; }
.help-section h2 { font-size: 1.1rem; margin: 0 0 8px; }
.help-section[hidden] { display: none; }
.qa { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 8px; }
.qa[hidden] { display: none; }
.qa summary { cursor: pointer; padding: 13px 16px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.qa summary:hover { color: var(--brand); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.qa[open] summary::after { content: "–"; }
.qa-a { padding: 0 16px 14px; color: var(--text-2); }
.qa-a p { margin: 0; }
.help-none[hidden] { display: none; }
.help-contact { text-align: center; }
.contact-form label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 0.9rem; }
.contact-form select, .contact-form textarea, .contact-form input[type="email"] { display: block; width: 100%; margin-top: 6px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; }
.contact-form select { height: 46px; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ticket { padding: 12px 0; border-top: 1px solid var(--border); }
.ticket:first-of-type { border-top: 0; }
.ticket-meta, .ticket-body { margin: 0 0 6px; }
.ticket-body { white-space: pre-wrap; color: var(--text-2); }
.ticket-reply { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.ticket-reply p { margin: 4px 0 0; white-space: pre-wrap; }
.danger-zone { border-color: var(--no-bg-hover); }
.close-list { margin: 6px 0 0; padding-left: 20px; }
.close-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.close-form input { margin-top: 6px; }
.prices-page h2 { margin-top: 22px; }
.prices-page .lead { font-size: 1.05rem; color: var(--text-2); }
.code-input { letter-spacing: 0.2em; font-size: 1.3rem !important; font-weight: 700; text-align: center; max-width: 220px; }
.twofa-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.twofa-form label { font-weight: 600; font-size: 0.9rem; width: 100%; }
.twofa-qr { margin: 10px 0; max-width: 220px; }
.secret-key { word-break: break-all; font-size: 0.9rem; }
.setup-steps { padding-left: 20px; }
.setup-steps li { margin: 8px 0; }
.code-list { columns: 2; padding-left: 22px; font-size: 1.05rem; }
.code-list li { margin: 4px 0; }
.backup-codes { border-color: var(--gold); }
