/* OlayEx — "Elektrik" identity. Blue is the brand; green/red only ever mean YES/NO, always with a label. */
:root {
  --bg: #090A14;
  --surface: #12142A;
  --surface-2: #191C37;
  --surface-3: #22264A;
  --line: #262A4D;
  --line-strong: #363B68;
  --ink: #F1F2FA;
  --muted: #9095B8;
  --faint: #656A93;
  --brand: #5468FF;
  --brand-ink: #9AA6FF;
  --brand-soft: rgba(84, 104, 255, .16);
  --yes: #2BD49A;
  --yes-ink: #5BE3B4;
  --yes-soft: rgba(43, 212, 154, .13);
  --yes-line: rgba(43, 212, 154, .5);
  --no: #FF5C6C;
  --no-ink: #FF8592;
  --no-soft: rgba(255, 92, 108, .13);
  --no-line: rgba(255, 92, 108, .5);
  --gold: #E2B54F;
  --r: 14px;
  --r-lg: 20px;
  --top: 56px;
  --nav: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 650; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 10px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.up { color: var(--yes-ink); }
.down { color: var(--no-ink); }
.flat { color: var(--muted); }
.fine { font-size: .8rem; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.center { text-align: center; }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--brand-ink); margin: 0 0 6px; }
.display { font-style: italic; font-stretch: 116%; font-weight: 850; letter-spacing: -.02em; line-height: 1.08; margin: 0; font-size: 2rem; }
.display.sm { font-size: 1.45rem; }
.lede { color: var(--muted); font-size: 1.05rem; margin: 8px 0 0; }
.lede.sm { font-size: .95rem; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.3rem; margin: 0; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: calc(var(--top) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0 16px; display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand .mark { height: 21px; width: auto; color: var(--brand); }
.brand .wordmark { height: 17px; width: auto; color: var(--ink); }
.mark { display: block; color: var(--brand); }
.mark.lg { height: 44px; width: auto; }
.mark.xl { height: 64px; width: auto; }
.balance {
  all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 7px; padding: 8px 14px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); font-variant-numeric: tabular-nums;
}
.balance:hover { background: color-mix(in srgb, var(--brand) 26%, transparent); }
.balance:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.bal-k { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.bal-v { font-weight: 750; font-size: .98rem; }
.nav {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav) + var(--safe-b)); padding: 6px 8px var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: .7rem; font-weight: 650; border-radius: 12px; }
.nav-i svg { width: 24px; height: 24px; }
.nav-i[aria-current="page"] { color: var(--ink); }
.nav-i[aria-current="page"] svg { color: var(--brand-ink); }
.side-only { display: none !important; }
main { outline: none; padding-bottom: calc(var(--nav) + var(--safe-b) + 24px); }
body[data-view="feed"] main { padding-bottom: 0; }

/* ---------- buttons, chips, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: .95rem; cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #6577FF; }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn.outline { background: transparent; border-color: color-mix(in srgb, var(--brand) 70%, transparent); color: var(--brand-ink); }
.btn.on { color: var(--brand-ink); }
.btn.lg { min-height: 54px; font-size: 1.02rem; border-radius: 14px; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .86rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.confirm.yes { background: var(--yes); color: #04160F; }
.btn.confirm.no { background: var(--no); color: #1E0508; }
.btn.confirm.sell { background: var(--brand); color: #fff; }
.btn.sell { background: transparent; border: 1.5px solid var(--line-strong); }
.btn.sell:hover { border-color: var(--ink); }
.link { all: unset; color: var(--brand-ink); cursor: pointer; text-decoration: underline; }
.icon-btn { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:focus-visible { outline: 2px solid var(--brand-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amounts .chips { flex-wrap: nowrap; }
.amounts .chip { flex: 1 1 0; min-width: 0; padding: 0 6px; }
.chip {
  min-width: 64px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.label { font-size: .88rem; font-weight: 650; color: var(--muted); padding: 0; margin-bottom: 10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field > span { font-size: .86rem; font-weight: 650; }
.field input, .composer textarea, .custom-amt {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); font: inherit; padding: 12px 14px;
}
.field input:focus, .composer textarea:focus, .custom-amt:focus-within { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hint { color: var(--faint); font-size: .78rem; }
.err { color: var(--no-ink); font-size: .8rem; }
.err:empty { display: none; }
.custom-amt { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 14px; }
.custom-amt[hidden] { display: none; }
.custom-amt input { all: unset; flex: 1; font-size: 1.4rem; font-weight: 750; padding: 8px 0; font-variant-numeric: tabular-nums; min-width: 0; }
.custom-amt .cur { font-size: 1.4rem; font-weight: 750; color: var(--muted); }
.custom-amt .unit { color: var(--muted); font-size: .9rem; }
.alert { margin: 12px 0; padding: 10px 12px; border-radius: 12px; font-size: .88rem; line-height: 1.4; }
.alert.error { background: var(--no-soft); color: var(--no-ink); border: 1px solid var(--no-line); }
.alert.warn { background: rgba(226, 181, 79, .12); color: #F1CF7E; border: 1px solid rgba(226, 181, 79, .4); }
.alert[hidden] { display: none; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 9px; font-weight: 650; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface-3); color: var(--ink); }
.seg.sm { display: inline-flex; margin: 0 0 10px; }
.seg.sm button { min-height: 32px; padding: 0 12px; font-size: .82rem; flex: none; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .86rem; color: var(--muted); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle input + span { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; flex: none; transition: background .15s; }
.toggle input + span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.toggle input:checked + span { background: var(--brand); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.toggle.row { display: flex; justify-content: space-between; width: 100%; color: var(--ink); padding: 6px 0 14px; }
.toggle.row small { display: block; color: var(--muted); font-size: .78rem; }
.toggle.row > span:first-child { order: 0; }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-3); color: var(--muted); }
.badge.practice { background: var(--brand-soft); color: var(--brand-ink); }
.badge.won { background: var(--yes-soft); color: var(--yes-ink); }
.badge.lost { background: var(--no-soft); color: var(--no-ink); }
.side-tag {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; transform: skewX(-8deg); flex: none; text-transform: uppercase;
}
.side-tag.yes { background: var(--yes-soft); color: var(--yes-ink); box-shadow: inset 0 0 0 1px var(--yes-line); }
.side-tag.no { background: var(--no-soft); color: var(--no-ink); box-shadow: inset 0 0 0 1px var(--no-line); }
.side-tag.xs { min-width: 30px; height: 18px; font-size: .62rem; padding: 0 5px; }
.avatar { --h: 230; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 800; font-size: .85rem;
  background: hsl(var(--h) 55% 30%); color: hsl(var(--h) 90% 88%); }
.avatar.sm { width: 26px; height: 26px; font-size: .72rem; }
.avatar.lg { width: 60px; height: 60px; font-size: 1.5rem; }

/* ---------- YES / NO ---------- */
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yn-btn {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; text-align: left;
  min-height: 64px; padding: 10px 16px; border-radius: 14px; cursor: pointer; border: 1.5px solid; transition: background .15s, transform .1s;
}
.yn-btn:active { transform: scale(.98); }
.yn-btn.yes { background: var(--yes-soft); border-color: var(--yes-line); color: var(--yes-ink); }
.yn-btn.no { background: var(--no-soft); border-color: var(--no-line); color: var(--no-ink); }
.yn-btn.yes:hover { background: rgba(43, 212, 154, .22); }
.yn-btn.no:hover { background: rgba(255, 92, 108, .22); }
.yn-l { text-transform: uppercase; grid-row: span 2; font-weight: 850; font-size: 1.05rem; letter-spacing: .04em; font-style: italic; font-stretch: 112%; }
.yn-p { font-weight: 800; font-size: 1.3rem; color: var(--ink); justify-self: end; font-variant-numeric: tabular-nums; line-height: 1.1; }
.yn-m { font-size: .74rem; font-weight: 650; justify-self: end; opacity: .9; }
.yn.lg .yn-btn { min-height: 70px; }
.yn-btn.sm { min-height: 44px; padding: 6px 12px; grid-template-columns: auto auto; grid-template-rows: auto; column-gap: 8px; }
.yn-btn.sm .yn-l { grid-row: auto; font-size: .82rem; }
.yn-btn.sm .yn-p { font-size: .98rem; }

/* probability bar = the OlayEx mark */
.pbar { height: 12px; border: 2px solid var(--brand); border-radius: 4px; transform: skewX(-14deg); overflow: hidden; margin: 10px 4px 0; }
.pbar i { display: block; height: 100%; background: var(--brand); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.pbar.crowd { border-color: var(--faint); }
.pbar.crowd i { background: var(--faint); }
.chg { font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chg.flat { font-weight: 600; }

/* ---------- feed ---------- */
.feed-wrap { position: relative; }
.feed {
  height: calc(100dvh - var(--top) - env(safe-area-inset-top, 0px) - var(--nav) - var(--safe-b)); overflow-y: auto; scroll-snap-type: y mandatory;
  overscroll-behavior: contain; outline: none; scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }
.feed-side { display: none; }
.fcard { --cat-h: 230; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 8px 10px; }
/* the card reads top-down: what's asked → what it costs/thinks → act; social stays quiet at the bottom */
.fc-inner {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: radial-gradient(120% 45% at 100% 0%, hsl(var(--cat-h) 85% 55% / .2), transparent 65%), var(--surface);
}
.cat-art { display: block; width: 100%; height: auto; }
.fc-top { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); min-height: 28px; }
.cat-chip { width: 28px; height: 28px; border-radius: 9px; padding: 5px; display: grid; place-items: center; flex: none;
  background: hsl(var(--cat-h) 70% 50% / .18); color: hsl(var(--cat-h) 90% 76%); }
.cat-chip .cat-art { stroke-width: 7; }
.cat, .mrow-cat { font-weight: 750; font-size: .8rem; color: hsl(var(--cat-h) 90% 78%); }
.fc-when::before { content: "·"; margin-right: 8px; color: var(--faint); }
.fc-more { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .8rem; padding: 6px 0 6px 8px; }
.fc-more:hover { color: var(--ink); }
.fc-q { margin: 2px 0 0; font-size: clamp(1.5rem, 6.6vw, 2rem); line-height: 1.14; font-weight: 760; letter-spacing: -.02em; text-wrap: balance; }
.fc-q a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fc-prob { margin-top: 2px; }
.fc-k { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.fc-pv { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.fc-pv b { font-style: italic; font-stretch: 118%; font-weight: 900; font-size: 2.6rem; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fc-pv span { color: var(--muted); font-weight: 600; }
.fc-side { text-transform: uppercase; color: var(--ink) !important; font-weight: 800 !important; letter-spacing: .04em; }
.fc-pv .chg { color: inherit; font-size: .85rem; }
.fc-pv .chg.up { color: var(--yes-ink); }
.fc-pv .chg.down { color: var(--no-ink); }
.fc-spark { flex: 1; min-height: 40px; max-height: 190px; color: var(--brand); margin: 0 -16px; opacity: .9; }
.fc-spark { position: relative; }
.spark { display: block; width: 100%; height: 100%; }
.fc-spark-k { position: absolute; left: 16px; bottom: 4px; font-size: .74rem; color: var(--faint); }
.fc-soon { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.fc-bottom { display: grid; gap: 10px; margin-top: auto; }
.fc-foot { display: flex; align-items: center; min-height: 40px; margin: -2px -6px 0; }
.fc-foot .rail { width: 100%; justify-content: space-between; }
.fc-meta { margin: 4px 0 0; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.my-pos {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: .86rem;
}
.my-pos b { margin-left: auto; font-variant-numeric: tabular-nums; }
.rail { display: flex; gap: 6px; }
.rail.row { justify-content: space-between; margin: 4px 0 0; }
.rail-btn {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: .84rem; font-weight: 650; color: var(--muted);
}
.rail-btn svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 50%, transparent); border: 1px solid var(--line); color: var(--ink); transition: transform .12s, background .15s; }
.rail-btn:hover svg { background: var(--surface-3); }
.rail-btn:active svg { transform: scale(.92); }
.rail-btn.on svg { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.rail-btn.on:first-child svg { color: var(--no-ink); border-color: var(--no-line); }
.rail-btn.on svg path { fill: currentColor; }
.rail-btn:focus-visible svg { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
/* feed: social is secondary — small, borderless, counts inline */
.rail.compact { gap: 2px; margin: 0; }
.rail.compact .rail-btn { gap: 0; padding-right: 6px; font-size: .78rem; }
.rail.compact .rail-btn svg { width: 36px; height: 36px; padding: 9px; border: 0; background: none; color: var(--muted); }
.rail.compact .rail-btn:hover svg { color: var(--ink); background: none; }
.rail.compact .rail-btn.on svg { border: 0; }
.rail.compact .rail-btn:last-child span { display: none; }
.status-upcoming .fc-inner, .status-candidate .fc-inner { background: radial-gradient(110% 45% at 100% 0%, hsl(var(--cat-h) 50% 45% / .16), transparent 62%), var(--surface); }
.soon { display: grid; gap: 10px; margin-top: 6px; justify-items: start; width: 100%; }
.soon-k { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .92rem; }
.soon-k svg { width: 18px; height: 18px; }
.soon .fine { margin: 0; }
.interest-n { margin: 0; font-size: 1rem; color: var(--muted); }
.interest-n b { font-style: italic; font-stretch: 116%; font-weight: 900; font-size: 2.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.meter { width: 100%; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #8E9BFF); border-radius: inherit; }
.meter.sm { height: 6px; margin: 6px 0 2px; max-width: 260px; }
.fcard.end .fc-inner { justify-content: center; align-items: center; text-align: center; gap: 10px; background: var(--surface); }
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.fcard.skel .fc-inner { justify-content: flex-end; }

/* skeletons */
.skel i, .q-skel i, .c-loading i, .skel-block i {
  display: block; height: 18px; border-radius: 8px; margin: 10px 0;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear;
}
.skel i:nth-child(1), .skel-block i:nth-child(1) { width: 60%; height: 36px; }
.skel i:nth-child(2) { width: 85%; }
.skel i:nth-child(3) { width: 40%; height: 48px; }
.skel i:nth-child(4) { height: 64px; }
.q-skel i:nth-child(1) { height: 22px; }
.c-loading { list-style: none; }
.mdetail.skel, .skel-block { padding: 20px 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- sheet ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 12, .62); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; outline: none;
  background: #141631; border-top: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + var(--safe-b));
  transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .9, .25, 1);
}
.sheet-layer.open { pointer-events: auto; }
.sheet-layer.open .sheet-backdrop { opacity: 1; }
.sheet-layer.open .sheet { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet-x { position: absolute; top: 10px; right: 10px; }
.sheet-body { max-width: 520px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop, .pbar i { transition: none; } }

.ticket-head { padding-right: 36px; margin-bottom: 16px; }
.ticket-side { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.ticket-side .side-tag { height: 26px; font-size: .82rem; }
.ticket-price { font-size: 1.5rem; font-weight: 850; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket-head .ticket-sub { margin-top: 6px; }
.welcome { display: flex; align-items: center; gap: 12px; margin: 0 36px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); }
.welcome .mark { height: 22px; width: auto; flex: none; }
.welcome p { margin: 0; font-size: .88rem; color: var(--muted); }
.welcome b { color: var(--ink); }
.ticket-q { margin: 0; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.ticket-sub { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.quote { min-height: 172px; margin: 16px 0 12px; }
.q-rows { display: grid; gap: 2px; transition: opacity .15s; }
.q-rows.stale { opacity: .55; }
.q-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .94rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-row b { color: var(--ink); font-weight: 650; }
.q-row.strong { color: var(--ink); font-size: 1.04rem; }
.q-row.strong b { font-weight: 800; }
.q-payout { display: grid; grid-template-columns: 1fr auto; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.q-payout span { color: var(--muted); font-size: .9rem; }
.q-payout b { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.q-payout em { font-style: normal; font-size: .82rem; font-weight: 650; }
.intro { text-align: center; padding: 6px 4px 4px; }
.intro-mark { display: flex; justify-content: center; margin: 4px 0 14px; }
.intro .display { font-size: 1.8rem; }
.intro-points { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 10px; text-align: left; }
.intro-points li { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .92rem; }
.intro-points b { color: var(--ink); }
.done { text-align: center; padding: 6px 0 0; }
.done-badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 14px; }
.done-badge svg { width: 30px; height: 30px; stroke-width: 2.6; }
.done-badge.yes { background: var(--yes-soft); color: var(--yes-ink); box-shadow: inset 0 0 0 1.5px var(--yes-line); }
.done-badge.no { background: var(--no-soft); color: var(--no-ink); box-shadow: inset 0 0 0 1.5px var(--no-line); }
.done-badge.sold { background: var(--brand-soft); color: var(--brand-ink); }
.done-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 1.3rem; font-weight: 750; text-wrap: balance; }
.done-line { color: var(--muted); margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.done-payout { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); margin: 8px 0; }
.done-payout span { color: var(--muted); }
.done-payout b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.done-actions { display: grid; gap: 10px; margin-top: 18px; }
.done-actions svg { width: 18px; height: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.save-card { display: grid; gap: 12px; text-align: left; margin: 18px 0 4px; padding: 16px; border-radius: 16px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.save-card p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.save-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.save-card.inline { margin: 0 0 18px; grid-template-columns: 1fr; }
.auth .seg { margin-bottom: 18px; margin-right: 36px; }
.auth .display { margin-bottom: 4px; }
.auth form { margin-top: 18px; }
.comments-sheet { display: flex; flex-direction: column; }
.cs-head { padding-right: 40px; }
.cs-head h2 { margin: 0; font-size: 1.1rem; }
.cs-head .count { color: var(--muted); font-weight: 600; }
.comment-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 16px; }
.comments-sheet .comment-list { max-height: 48dvh; overflow-y: auto; }
.comment { display: flex; gap: 10px; }
.c-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: .84rem; }
.c-meta time { color: var(--faint); }
.c-body { margin: 2px 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.pos-chip { text-transform: uppercase; font-size: .72rem; font-weight: 750; padding: 1px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.pos-chip.yes { background: var(--yes-soft); color: var(--yes-ink); }
.pos-chip.no { background: var(--no-soft); color: var(--no-ink); }
.composer { border-top: 1px solid var(--line); padding-top: 12px; }
.composer textarea { resize: none; min-height: 64px; }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.empty-inline { color: var(--muted); font-size: .9rem; list-style: none; }
.empty-inline svg { width: 16px; height: 16px; vertical-align: -3px; }
.intro .fine, .done .fine { text-align: center; }

/* toast */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(var(--nav) + var(--safe-b) + 14px); transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 650; font-size: .9rem; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--no); color: #1E0508; }

/* ---------- pages ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 18px 16px 0; }
.page-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.page-head .lede { flex-basis: 100%; margin-top: 0; }
.topline { display: flex; align-items: center; gap: 8px; margin: 0 0 8px -8px; font-size: .8rem; color: var(--muted); }
.topline .display { margin-left: 4px; }
.block { padding: 18px 0; border-top: 1px solid var(--line); }
.h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1rem; font-weight: 750; }
.h svg { width: 18px; height: 18px; color: var(--gold); }
.empty { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 10px; }
.empty h2 { margin: 0; font-size: 1.2rem; }
.empty p { margin: 0 0 6px; color: var(--muted); max-width: 34ch; }
.link-row { display: flex; justify-content: space-between; padding: 18px 2px; margin-top: 12px; border-top: 1px solid var(--line); color: var(--brand-ink); font-weight: 650; }

/* markets */
.msec { margin: 0 0 28px; }
.msec header { margin-bottom: 10px; }
.msec h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.msec header p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--no); box-shadow: 0 0 0 4px var(--no-soft); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.mlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mrow { --cat-h: 230; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mrow-main { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.done-row .mrow-main { grid-template-columns: 1fr auto; }
.mrow-art { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; padding: 8px; background: hsl(var(--cat-h) 70% 50% / .16); color: hsl(var(--cat-h) 90% 74%); }
.mrow-art .cat-art { stroke-width: 7; }
.mrow-text { display: grid; gap: 2px; min-width: 0; }
.mrow-cat { font-size: .66rem; }
.mrow-q { font-weight: 650; line-height: 1.3; }
.mrow-meta { font-size: .78rem; color: var(--muted); }
.mrow-meta b { color: var(--brand-ink); font-weight: 650; }
.mrow-prob { display: grid; justify-items: end; }
.mrow-prob b { font-style: italic; font-stretch: 116%; font-weight: 900; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.mrow-prob small { font-size: .72rem; }
.mrow-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-left: 56px; }
.soon-row { grid-template-columns: 1fr auto; align-items: center; }
.soon-row .btn { min-width: 100px; }
.mrow-main:hover .mrow-q { text-decoration: underline; text-underline-offset: 3px; }

/* market detail */
.mdetail { --cat-h: 230; max-width: 720px; margin: 0 auto; padding: 12px 16px calc(110px + var(--safe-b)); }
.md-head { position: relative; padding: 6px 0 6px; }
.md-art { position: absolute; right: -8px; top: -20px; width: 120px; color: hsl(var(--cat-h) 90% 72% / .28); pointer-events: none; }
.md-q { position: relative; margin: 0 0 12px; font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.15; font-weight: 760; letter-spacing: -.02em; text-wrap: balance; padding-right: 40px; }
.md-head .fc-pv .chg.up { color: var(--yes-ink); }
.md-head .fc-pv .chg.down { color: var(--no-ink); }
.chart-block { border-top: 0; padding-top: 10px; }
.chart-wrap { color: var(--brand); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .g { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .gl { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart .ln { stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; }
.chart .dot { fill: var(--brand); stroke: var(--bg); stroke-width: 2; }
.chart-empty { color: var(--muted); padding: 30px 0; text-align: center; font-size: .9rem; }
.md-trade { position: fixed; z-index: 20; left: 0; right: 0; bottom: calc(var(--nav) + var(--safe-b)); padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.md-trade .yn { max-width: 688px; margin: 0 auto; }
.mdetail > .soon { margin: 10px 0 16px; }
.pos-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pos-row .btn { grid-column: 1 / -1; }
.pos-l { display: flex; gap: 10px; align-items: center; }
.pos-r { text-align: right; }
.pos-a { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos-b { margin: 0; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pos-b.up { color: var(--yes-ink); }
.pos-b.down { color: var(--no-ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats .k, .statgrid .k { margin: 0; font-size: .82rem; color: var(--muted); font-weight: 600; }
.stats .v { margin: 2px 0 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vs-k { margin: 0; font-size: .8rem; color: var(--muted); }
.vs-v { margin: 2px 0 0; font-size: 1.5rem; font-weight: 850; font-style: italic; font-stretch: 112%; }
.vs-v small { font-size: .78rem; font-style: normal; color: var(--muted); font-weight: 600; }
.rules dl { display: grid; gap: 12px; margin: 0; }
.rules dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.rules dt { color: var(--muted); font-size: .86rem; display: flex; align-items: flex-start; gap: 6px; }
.rules dd { margin: 0; font-size: .92rem; }
.rules dd a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.desc { margin: 0 0 14px; color: var(--muted); }
.resolved { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 6px 0 14px; }
.resolved.yes { border-color: var(--yes-line); background: var(--yes-soft); }
.resolved.no { border-color: var(--no-line); background: var(--no-soft); }
.resolved .display { font-size: 2rem; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .88rem; }
.activity li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.activity li > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.adv summary { cursor: pointer; color: var(--muted); font-weight: 650; list-style: none; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::after { content: " ▸"; }
.adv[open] summary::after { content: " ▾"; }
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.book table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.book caption { text-align: left; color: var(--muted); font-size: .76rem; padding-bottom: 6px; }
.book th { text-align: left; color: var(--faint); font-weight: 600; padding: 4px 0; }
.book td { padding: 4px 0; }
.book tr.ask td:first-child { color: var(--no-ink); }
.book tr.bid td:first-child { color: var(--yes-ink); }

/* portfolio */
.hero-num { padding: 4px 0 18px; }
.hero-num .k { margin: 0; color: var(--muted); font-size: .84rem; display: flex; align-items: center; gap: 8px; }
.hero-num .v { margin: 2px 0; font-style: italic; font-stretch: 116%; font-weight: 900; font-size: 2.6rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.hero-num .pnl { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.hero-num .pnl span { color: var(--muted); font-weight: 500; margin-left: 6px; }
.kv4, .kv3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 0; }
.kv3 { grid-template-columns: repeat(3, 1fr); }
.kv4 dt, .kv3 dt { color: var(--muted); font-size: .76rem; }
.kv4 dd, .kv3 dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.prow-main { display: grid; gap: 3px; min-width: 0; }
.prow-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prow-q { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-sub { font-size: .82rem; font-variant-numeric: tabular-nums; }
.prow-r { display: grid; justify-items: end; gap: 3px; }
.prow-v { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.prow-pnl { margin: 0; font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.prow-pnl small { font-weight: 600; opacity: .85; }
.prow .btn.sell { margin-top: 4px; min-width: 76px; }
.prow-main:hover .prow-q { text-decoration: underline; text-underline-offset: 3px; }

/* wallet */
.txs { list-style: none; margin: 0; padding: 0; }
.tx { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tx-t { margin: 0; font-weight: 650; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tx-s { margin: 2px 0 0; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.tx b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* profile */
.prof-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.prof-head p { margin: 2px 0 0; }
.founding-line { display: grid; gap: 2px; padding: 4px 0 4px 14px; border-left: 3px solid rgba(226, 181, 79, .6); margin: 16px 0 6px; }
.founding-line b { color: var(--gold); }
.founding-line span { color: var(--muted); font-size: .88rem; }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.statgrid > div { background: var(--surface); padding: 14px; }
.statgrid .wide { grid-column: 1 / -1; }
.statgrid .v { margin: 4px 0 0; font-size: 1.4rem; font-weight: 850; font-style: italic; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.statgrid .v.sm { font-size: 1.1rem; }
.statgrid .fine { margin-top: 2px; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.badges li { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); opacity: .5; }
.badges li.earned { opacity: 1; border-color: rgba(226, 181, 79, .4); }
.badges .b-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.badges li.earned .b-ic { background: rgba(226, 181, 79, .16); color: var(--gold); }
.badges .b-ic svg { width: 18px; height: 18px; }
.badges b { display: block; font-size: .86rem; }
.badges small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.wl { list-style: none; margin: 0; padding: 0; }
.wl a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wl b { font-variant-numeric: tabular-nums; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.lb.me { background: var(--brand-soft); border-radius: 10px; padding: 9px 10px; }
.lb-rank { width: 24px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.lb-name { flex: 1; }
.lb b { font-variant-numeric: tabular-nums; }
.lb-gap { text-align: center; color: var(--faint); }
.settings .btn { margin-top: 4px; }

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .fcard { padding: 12px 0; display: flex; justify-content: center; }
  .fc-inner { width: min(100%, 560px); }
  .statgrid { grid-template-columns: repeat(4, 1fr); }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .kv4 { grid-template-columns: repeat(4, 1fr); }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(460px, calc(100vw - 32px)); border-radius: 22px; border: 1px solid var(--line-strong);
    transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .22s ease, opacity .18s ease; padding: 22px 24px 24px; max-height: 88dvh; }
  .sheet-layer.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grip { display: none; }
  .toast { bottom: 90px; }
}

/* ---------- desktop: sidebar navigation ---------- */
@media (min-width: 1024px) {
  :root { --side: 232px; }
  .topbar { display: none; }
  .side-only { display: flex !important; }
  .nav {
    top: 0; right: auto; width: var(--side); height: 100dvh; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line); background: var(--bg);
  }
  .nav .brand { padding: 4px 12px 24px; }
  .nav-i { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px; font-size: .98rem; color: var(--muted); }
  .nav-i:hover { background: var(--surface); color: var(--ink); }
  .nav-i[aria-current="page"] { background: var(--surface-2); }
  .balance.side { margin-top: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; }
  .balance.side .bal-v { font-size: 1.25rem; }
  body { padding-left: var(--side); }
  main { padding-bottom: 48px; }
  .feed-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; max-width: 1060px; margin: 0 auto; padding: 0 28px; }
  .feed { height: 100dvh; }
  .fcard { padding: 20px 0; }
  .fc-inner { width: min(100%, 540px); padding: 22px 22px 20px; }
  .feed-side { display: block; position: sticky; top: 0; align-self: start; padding-top: 28px; }
  .side-block { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 12px; display: block; }
  .link-block:hover { border-color: var(--line-strong); }
  .how { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); font-size: .9rem; }
  .how b { color: var(--ink); }
  .kbd-hint { padding: 0 4px; }
  .page, .mdetail { padding-top: 32px; }
  .md-trade { left: var(--side); bottom: 0; padding: 12px 28px calc(12px + var(--safe-b)); }
  .toast { bottom: 28px; left: calc(50% + var(--side) / 2); }
  .mrow { grid-template-columns: 1fr 230px; align-items: center; }
  .mrow-yn { padding-left: 0; }
  .soon-row { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .fc-pv b { font-size: 2.5rem; }
}
@media (max-height: 640px) {
  .fc-q { font-size: 1.3rem; }
  .fc-pv b { font-size: 2.1rem; }
  .fc-spark { display: none; }
  .yn-btn { min-height: 54px; }
}

/* ---------- sprint 2 additions ---------- */
.done-title { font-size: 1.35rem; }
.done-q { margin: 4px 0 14px; color: var(--muted); }
.done-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; border-radius: 14px; overflow: hidden; background: var(--line); }
.done-grid > div { background: var(--surface-2); padding: 12px 8px; text-align: center; }
.done-grid dt { font-size: .78rem; color: var(--muted); }
.done-grid dd { margin: 2px 0 0; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.teach { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 0 10px 10px 0; text-align: left; font-size: .92rem; }
.faq summary { cursor: pointer; color: var(--muted); font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " ▸"; }
.faq[open] summary::after { content: " ▾"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.md-head .fc-k { margin-top: 2px; }
.mrow-prob small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.irow { --cat-h: 230; display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.irow-q { display: grid; gap: 2px; font-weight: 650; line-height: 1.3; }
.irow-q:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.irow-bar { display: grid; gap: 6px; }
.irow .interest-n b { font-size: 1.7rem; }
.irow .btn { justify-self: start; }
.hero-num .pnl.today { font-size: 1.05rem; margin-top: 2px; }
.hero-num .pnl.total { font-size: .9rem; font-weight: 600; margin-top: 2px; }
.hero-num .pnl span { margin-left: 2px; }
.wlines { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.wlines li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wlines svg { width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.wlines li.founding svg { color: var(--gold); }
.wlines li.founding b { color: var(--gold); }
.wlines div { display: grid; gap: 2px; }
.wlines span { color: var(--muted); font-size: .88rem; }
.accuracy-line { margin: 0 0 6px; }

/* ---------- sprint 3: visual marks, underlying data ---------- */
.vm { display: inline-flex; align-items: center; flex: none; }
.tbadge {
  position: relative; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--c1) 0 52%, var(--c2) 52% 100%); color: #fff; font-size: .6rem; font-weight: 850; letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px color-mix(in srgb, var(--line-strong) 80%, transparent);
}
.tbadge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.tbadge.sym { background: hsl(var(--cat-h) 70% 50% / .2); color: hsl(var(--cat-h) 90% 78%); font-size: .8rem; text-shadow: none; }
.vm.match .tbadge + .tbadge { margin-left: -7px; }
.mrow-art .vm .tbadge, .mrow-art .cat-chip { width: 36px; height: 36px; font-size: .7rem; }
.mrow-art:has(.vm) { background: none; padding: 0; }
.mrow-cat .vm .tbadge, .mrow-cat .cat-chip { width: 20px; height: 20px; font-size: .5rem; vertical-align: -5px; margin-right: 4px; }
.irow .mrow-cat { display: flex; align-items: center; gap: 2px; }
.und-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.und-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.data-st { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.data-st.live { background: var(--yes-soft); color: var(--yes-ink); }
.data-st.cached, .data-st.unavailable { background: rgba(226, 181, 79, .14); color: #F1CF7E; }
.data-st.demo { background: var(--no-soft); color: var(--no-ink); }
.fc-spark.und { color: var(--gold); }
.spark .th, .chart .th { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .thl { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.und-block .chart-wrap { color: var(--gold); }
.und-block .h, .chart-block .h { margin-bottom: 8px; }
.und-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; }
.und-big b { font-size: 1.7rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.chart.price .ln { stroke: var(--gold); }
.chart.price .dot { fill: var(--gold); }
.topline .vm, .topline .cat-chip { margin-left: 2px; }
.soon .fine + .btn { margin-top: 2px; }
.hero-vis { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 0; }
.tbadge.xl { width: 76px; height: 76px; font-size: 1.15rem; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-strong); }
.hv-vs { font-size: 1.4rem; color: var(--muted); font-weight: 800; }
.hv-l { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .85rem; font-weight: 650; }
.hero-vis.art { color: hsl(var(--cat-h) 90% 72% / .45); }
.hero-vis.art .cat-art { width: 110px; }
.fc-soon .und-line { justify-content: center; }

/* ---------- sprint 5: retention, results, activity ---------- */
.top-r { display: flex; align-items: center; gap: 6px; }
.bell { position: relative; }
.bell-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand);
  color: #fff; font-size: .66rem; font-weight: 800; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.bell-n[hidden], .bell[hidden] { display: none !important; }
.nav-i.bell { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: var(--muted); font-size: .98rem; font-weight: 650; position: relative; }
.nav-i.bell:hover { background: var(--surface); color: var(--ink); }
.nav-i.bell svg { width: 24px; height: 24px; }
.nav-i.bell .bell-n { top: 6px; left: 26px; right: auto; }
.badge.new { background: var(--brand-soft); color: var(--brand-ink); margin-left: 2px; }
.act-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 4px; max-height: 60dvh; overflow-y: auto; }
.act-i { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; width: 100%; padding: 12px; border-radius: 12px; }
.act-i:hover { background: var(--surface-2); }
.act-i:focus-visible { outline: 2px solid var(--brand-ink); }
.act-i.unread { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.act-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; }
.act-ic svg { width: 18px; height: 18px; }
.k-result .act-ic { background: var(--yes-soft); color: var(--yes-ink); }
.k-closing .act-ic, .k-opened .act-ic { background: var(--brand-soft); color: var(--brand-ink); }
.act-t { display: grid; gap: 2px; min-width: 0; }
.act-t b { font-weight: 700; }
.act-t span { color: var(--muted); font-size: .88rem; }
.act-t time { color: var(--faint); font-size: .76rem; }
.act .cs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-right: 40px; }
.res { text-align: center; }
.res-q { margin: 6px 0 8px; font-size: 1.2rem; font-weight: 750; line-height: 1.3; text-wrap: balance; }
.res-out { margin: 0 0 14px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 8px; }
.res-verdict { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); margin: 0 0 14px; }
.res-verdict b { display: block; font-size: 1.1rem; }
.res-verdict span { color: var(--muted); font-size: .9rem; }
.res-verdict .up { color: var(--yes-ink); } .res-verdict .down { color: var(--no-ink); }
.res-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.res-ic svg { width: 22px; height: 22px; stroke-width: 2.4; }
.res-verdict.ok { background: var(--yes-soft); box-shadow: inset 0 0 0 1px var(--yes-line); }
.res-verdict.ok .res-ic { background: var(--yes); color: #04160F; animation: settle-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.res-verdict.no .res-ic { background: var(--surface-3); color: var(--muted); }
.res-verdict.big { padding: 18px; }
.res-verdict.big b { font-size: 1.35rem; }
@keyframes settle-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .res-verdict.ok .res-ic { animation: none; } }
.res-net { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); margin: 12px 0 4px; text-align: left; }
.res-net span { color: var(--muted); }
.res-net b { font-size: 1.4rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.res-note { text-align: left; color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.result-card .fc-soon { justify-content: center; }
.rc-side { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.week { padding: 14px 16px; border-radius: 16px; background: var(--brand-soft); margin: 0 0 18px; }
.week-k { margin: 0 0 8px; font-weight: 700; }
.week-bar { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; }
.week-bar i { flex: 1; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.week-bar i.on { background: var(--brand); }
.week-bar span { margin-left: 8px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.week-v { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.week-v b { font-size: 1.3rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.h3 { margin: 18px 0 6px; font-size: .95rem; }
.h3 small { color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- first-visit brand intro
   One screen over the real feed (blurred underneath), then the layer lifts and the feed sharpens. */
body.intro-open { overflow: hidden; }
.ox-intro {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 60% at 50% -10%, rgba(84, 104, 255, .28), transparent 60%), rgba(9, 10, 20, .8);
  -webkit-backdrop-filter: blur(14px) saturate(.85); backdrop-filter: blur(14px) saturate(.85);
  opacity: 0; transition: opacity .32s ease;
}
.ox-intro.in { opacity: 1; }
.ox-intro.out { opacity: 0; transition: opacity .42s ease; pointer-events: none; }
.ox-intro.out .oxi-panel { transform: translateY(-18px) scale(.985); transition: transform .42s cubic-bezier(.4, 0, .2, 1); }
.oxi-panel {
  width: min(100%, 460px); min-height: 100%; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
}
.oxi-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.oxi-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.oxi-brand .mark { height: 20px; width: auto; color: var(--brand); }
.oxi-brand .wordmark { height: 17px; width: auto; }
.oxi-skip { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .95rem; min-height: 44px; padding: 0 6px 0 16px; cursor: pointer; }
.oxi-skip:hover { color: var(--ink); }
.oxi-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 18px 0 8px; }
.oxi-h { margin: 0; font-style: italic; font-stretch: 116%; font-weight: 850; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(2.35rem, 11vw, 3.4rem); text-wrap: balance; }
.oxi-h span { display: inline-block; }
.oxi-sub { margin: -6px 0 0; color: var(--muted); font-size: 1.04rem; font-weight: 550; }
.oxi-demo { margin: 0; padding: 16px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.oxi-demo-in { display: grid; gap: 12px; min-height: 196px; }
.oxi-skel { display: grid; gap: 10px; align-content: start; }
.oxi-skel i { display: block; height: 16px; border-radius: 8px; background: var(--surface-2); }
.oxi-skel i:nth-child(2) { height: 40px; width: 60%; } .oxi-skel i:nth-child(3) { height: 52px; }
.oxi-q { margin: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.oxi-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 6px; font-size: .72rem; font-weight: 700; vertical-align: 2px; background: var(--surface-3); color: var(--muted); }
.oxi-tag.live { background: var(--brand-soft); color: var(--brand-ink); }
.oxi-meter { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 14px; }
.oxi-pv { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.oxi-pv b { font-size: 2.3rem; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; min-width: 3.1ch; }
.oxi-pv span { color: var(--yes-ink); font-weight: 700; font-size: .9rem; }
.oxi-spark { width: 100%; height: 34px; }
.oxi-spark path { fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 0; }
.oxi-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oxi-b { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1.5px solid; font-weight: 700; }
.oxi-b i { font-style: normal; font-size: .9rem; }
.oxi-b b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.oxi-b.yes { background: var(--yes-soft); border-color: var(--yes-line); color: var(--yes-ink); }
.oxi-b.no { background: var(--no-soft); border-color: var(--no-line); color: var(--no-ink); }
.oxi-cap { margin: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.oxi-cap b { color: var(--ink); }
.oxi-c { padding: 3px 8px; border-radius: 8px; background: var(--yes-soft); color: var(--yes-ink) !important; font-variant-numeric: tabular-nums; }
.oxi-arrow { color: var(--faint); }
.oxi-practice { margin: 0; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); font-size: .92rem; }
.oxi-practice span { color: var(--muted); font-size: .86rem; }
.oxi-cta { position: sticky; bottom: 0; padding-top: 8px; }
.oxi-go { font-size: 1.08rem; box-shadow: 0 10px 30px rgba(84, 104, 255, .35); }

/* the sequence: question → idea → a live price → what the price means → practice money. Başla works from the first frame. */
@keyframes oxi-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes oxi-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes oxi-draw { from { stroke-dashoffset: 400; } }
@keyframes oxi-pick { 0%, 100% { box-shadow: 0 0 0 0 rgba(43, 212, 154, 0); } 40% { box-shadow: 0 0 0 6px rgba(43, 212, 154, .22); transform: translateY(-2px); } }
.oxi-h span { animation: oxi-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.oxi-h span:nth-child(2) { animation-delay: .14s; } .oxi-h span:nth-child(3) { animation-delay: .28s; }
.oxi-sub { animation: oxi-rise .5s .6s cubic-bezier(.2, .7, .2, 1) both; }
.oxi-demo { animation: oxi-rise .55s .85s cubic-bezier(.2, .7, .2, 1) both; }
.oxi-demo.ready .oxi-spark path { animation: oxi-draw 1.2s .3s ease-out both; }
.oxi-demo.ready .oxi-b.yes { animation: oxi-pick .9s 1.7s ease-out both; }
.oxi-demo.ready .oxi-cap { animation: oxi-rise .5s 1.9s cubic-bezier(.2, .7, .2, 1) both; }
.oxi-practice { animation: oxi-rise .5s 2.5s cubic-bezier(.2, .7, .2, 1) both; }
.oxi-cta { animation: oxi-fade .4s .15s both; }
.ox-intro.still *, .ox-intro.still { animation: none !important; transition: opacity .15s !important; }
.ox-intro.still.out .oxi-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .ox-intro *, .ox-intro { animation: none !important; } .ox-intro.out .oxi-panel { transform: none; } }
@media (min-width: 900px) { .oxi-panel { justify-content: center; } .oxi-body { flex: 0 1 auto; } .oxi-top { margin-bottom: 8px; } }
@media (max-height: 700px) { .oxi-body { gap: 12px; justify-content: flex-start; } .oxi-h { font-size: clamp(2rem, 9.5vw, 2.6rem); } .oxi-demo-in { min-height: 0; } }

/* first-action guide: a bubble over the EVET/HAYIR on screen, nothing else changes */
.fc-bottom { position: relative; }
.guide {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 2; max-width: min(300px, 100%);
  padding: 10px 36px 10px 12px; border-radius: 14px; background: var(--surface-3); border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4); animation: oxi-rise .4s cubic-bezier(.2, .7, .2, 1) both;
}
.guide::after { content: ""; position: absolute; left: 28px; bottom: -7px; width: 12px; height: 12px; background: var(--surface-3); border-right: 1px solid color-mix(in srgb, var(--brand) 55%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--brand) 55%, transparent); transform: rotate(45deg); }
.guide p { margin: 0; }
.guide b { font-size: .98rem; }
.guide-sub { color: var(--muted); font-size: .86rem; margin-top: 2px !important; }
.guide-step, .step-k span, .step-n { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); font-size: .74rem; font-weight: 750; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.guide-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--faint); font-size: 1.2rem; cursor: pointer; border-radius: 8px; }
.guide-x:hover { color: var(--ink); }
@keyframes guide-ring { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 4px var(--brand-soft); } }
.fc-bottom.guided .yn-btn { animation: guide-ring 1.6s .4s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) { .guide, .fc-bottom.guided .yn-btn { animation: none; } }

/* first trade: the step, a one-line contract explainer, and the two ideas that make it more than a poll */
.step-k { margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: var(--brand-ink); }
.q-explain { margin: 8px 2px 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.teach.first { display: grid; gap: 6px; }
.teach.first p { margin: 0; color: var(--muted); }
.teach.first b { color: var(--ink); }
.how-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 16px 2px; margin-top: 8px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--brand-ink); font-weight: 650; cursor: pointer; text-align: left; }
.how-link svg { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- flash markets & price alerts */
.badge.flash { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; flex: none; }
.fc-top .fc-when { white-space: nowrap; }
.badge.flash svg { width: 12px; height: 12px; stroke-width: 2.2; }
.fc-when, .mrow-cat { font-variant-numeric: tabular-nums; }
.seg.hz { margin: 0 0 14px; }
.seg.hz .muted { font-size: .8em; }

.alert-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alert-chip svg { width: 13px; height: 13px; color: var(--brand-ink); flex: none; }
.pos-alerts, .alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 8px; }
.alert-row .fine { flex-basis: 100%; margin: 0; }
.pos-alerts .btn svg, .alert-row .btn svg, .alert-cta svg { width: 15px; height: 15px; vertical-align: -2px; }
.alert-cta { justify-self: center; margin-top: 4px; font-size: .9rem; }
.prow-btns { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.alert-btn { width: 36px; height: 36px; color: var(--muted); }
.alert-btn.on { color: var(--brand-ink); }
.alert-btn svg { width: 18px; height: 18px; }

.alert-t .eyebrow svg, .alert-t .fine svg { width: 14px; height: 14px; vertical-align: -2px; }
.alert-t .seg { margin: 12px 0 0; }
.alert-now { margin: 12px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.alert-now b { color: var(--ink); font-size: 1.25rem; font-weight: 800; margin-left: 2px; }
.alert-quick { margin: 16px 0 10px; flex-wrap: wrap; }
.alert-quick .chip { width: auto; padding: 0 14px; }
.alert-custom { margin: 6px 0 12px; display: grid; gap: 10px; }
.alert-custom[hidden] { display: none; }
.alert-custom .custom-amt { max-width: 160px; }
.alert-t > .btn { margin-top: 6px; }
.alert-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.alert-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid var(--line); }
.alert-list .al-q { flex-basis: 100%; font-weight: 600; font-size: .9rem; }
.row-actions { display: flex; gap: 12px; }
.link.danger { color: var(--no-ink); }
.act-cta { display: block; font-style: normal; color: var(--brand-ink); font-weight: 650; font-size: .85rem; margin-top: 2px; }
.flash-ref { display: grid; gap: 4px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2);
  font-variant-numeric: tabular-nums; }
.flash-ref p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.flash-ref b { font-size: 1.05rem; }
.fr-gap { margin-left: auto; font-weight: 700; font-size: .9rem; }
