:root {
  /* Milli On Air. Banknote ink on vault green. Every text color passes WCAG AA on every surface. */
  --ink: #07110D; --surface: #0D1A14; --elevated: #15231C; --line: #1E3128; --line-2: #2C4337; --control: #5E7768;
  --paper: #EEF2E8; --muted: #A6B7AB; --dim: #8FA396;
  --money: #3BE38B; --money-deep: #0F6B3F; --ribbon: #2F6BFF; --ribbon-btn: #2A5FE8; --ribbon-2: #8FB1FF;
  --royal: var(--ribbon); --royal-2: var(--ribbon-2); --up: var(--money); --down: #FF7A80; --gold: #E8C26A;
  --serif: 'Manrope', system-ui, -apple-system, sans-serif; --sans: 'Manrope', system-ui, -apple-system, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r: 10px; --r-lg: 14px; --gutter: 16px; --tabs-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ribbon-2); outline-offset: 2px; border-radius: 6px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-synthesis: none; min-height: 100vh; padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); font-feature-settings: "ss01", "cv11"; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: 34px; line-height: 1.08; } h2 { font-size: 24px; line-height: 1.15; font-weight: 750; } h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em, .em { font-style: normal; color: inherit; }
.num, .mono, td.num, .big { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.up { color: var(--up); } .down { color: var(--down); } .gold { color: var(--gold); }
.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) calc(var(--gutter) + env(safe-area-inset-right)) 12px calc(var(--gutter) + env(safe-area-inset-left)); background: color-mix(in srgb, var(--ink) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-family: var(--serif); font-size: 18px; width: 32px; height: 32px; border-radius: 8px; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.brand-name { font-family: var(--serif); font-size: 22px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--elevated); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; }
.streak { font-size: 12px; color: var(--muted); }
.market-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; margin-right: 6px; }
.market-dot.open { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent); }

.app { max-width: 960px; margin: 0 auto; padding: 18px var(--gutter) 24px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: stretch; z-index: 20; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); }
.tabs a .ico { font-size: 20px; line-height: 1; }
.tabs a.active { color: var(--paper); }
.tabs a.active .ico { transform: translateY(-1px); }
@media (min-width: 760px) { .tabs { position: sticky; top: 57px; bottom: auto; height: 44px; border-top: 0; border-bottom: 1px solid var(--line); justify-content: center; gap: 8px; } .tabs a { flex: 0 0 auto; flex-direction: row; padding: 0 14px; font-size: 13px; gap: 8px; } .tabs a .ico { font-size: 16px; } body { padding-bottom: 24px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.card + .card, .stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.row { display: flex; align-items: center; gap: 10px; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.spacer { flex: 1; }

.hero { padding: 8px 0 4px; }
.hero .big { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
@media (min-width: 700px) { .hero .big { font-size: 68px; } }
.hero .delta { font-size: 16px; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.pill.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 35%, var(--line-2)); } .pill.down { color: var(--down); border-color: color-mix(in srgb, var(--down) 35%, var(--line-2)); }
.pill.royal { color: var(--royal-2); border-color: color-mix(in srgb, var(--royal) 50%, var(--line-2)); }
.pill.bot { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, var(--line-2)); }

.btn { appearance: none; border: 1px solid var(--line-2); background: var(--elevated); color: var(--paper); border-radius: var(--r); padding: 10px 16px; font-weight: 500; cursor: pointer; transition: transform .08s ease, background .15s ease; white-space: nowrap; }
.btn:hover { background: #1d1d21; } .btn:active { transform: scale(.98); } .btn[disabled] { opacity: .5; cursor: default; }
.btn.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); } .btn.primary:hover { background: #fff; }
.btn.buy { background: var(--up); color: #04120b; border-color: var(--up); } .btn.sell { background: var(--down); color: #1a0505; border-color: var(--down); }
.btn.ghost { background: transparent; } .btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; } .btn.block { width: 100%; }
.btn.royal { background: var(--royal); border-color: var(--royal); color: #fff; }
.seg { display: inline-flex; background: var(--elevated); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.seg button.active { background: var(--paper); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 12px; color: var(--muted); }
.input, input[type=text], input[type=password], input[type=number], input[type=date], select, textarea { width: 100%; background: var(--elevated); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; color: var(--paper); outline: none; font-size: 16px; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--royal); }
textarea { min-height: 110px; resize: vertical; font-family: var(--sans); }
.input-row { display: flex; gap: 8px; } .input-row > * { flex: 1; }
.err { color: var(--down); font-size: 13px; } .ok { color: var(--up); font-size: 13px; }

table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; } th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
td.num, th.num { text-align: right; } tr.me td { background: color-mix(in srgb, var(--royal) 12%, transparent); } tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--elevated); }
.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }

.stat { padding: 12px; background: var(--elevated); border-radius: var(--r); border: 1px solid var(--line); }
.stat .v { font-family: var(--serif); font-size: 26px; line-height: 1.1; } .stat .k { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chart { position: relative; width: 100%; height: 220px; } .chart canvas { width: 100%; height: 100%; display: block; }
.chart.tall { height: 300px; } .chart.short { height: 150px; }
.chart .tip { position: absolute; top: 6px; left: 8px; font-size: 12px; color: var(--muted); pointer-events: none; }
.chart .tip b { color: var(--paper); font-weight: 500; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--royal); } .legend i.bench { background: var(--muted); height: 0; border-top: 2px dashed var(--muted); }

.pos { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .pos:last-child { border-bottom: 0; }
.pos .sym { font-weight: 600; } .pos .name { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.pos .val, .pos .chg { text-align: right; } .pos .chg { font-size: 12px; }
.bar { height: 6px; background: var(--elevated); border-radius: 3px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--royal); }

.roast { background: linear-gradient(160deg, #15151a, #0e0e10); border: 1px solid var(--line-2); }
.roast h3 { font-size: 24px; } .roast p { margin: 8px 0 0; } .roast .verdict { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.roast .verdict b { font-family: var(--serif); font-size: 22px; font-weight: 400; display: block; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; } .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--line-2); font-size: 13px; } .badge.locked { opacity: .35; filter: grayscale(1); }
.quip { font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--paper); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 92vw; width: max-content; background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 12px; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-family: var(--serif); font-size: 18px; line-height: 1.3; animation: pop .25s ease-out; }
.toast.err { background: var(--down); color: #fff; font-family: var(--sans); font-size: 14px; }
@media (min-width: 760px) { .toast { bottom: 24px; } }
@keyframes pop { from { transform: translate(-50%, 10px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; display: grid; place-items: end center; } .modal .sheet { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 90vh; max-height: 90dvh; overflow: auto; overscroll-behavior: contain; position: relative; }
@media (min-width: 760px) { .modal { place-items: center; } .modal .sheet { border-radius: 18px; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chip { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--elevated); font-size: 13px; cursor: pointer; } .chip.active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.search { position: relative; } .results { position: absolute; top: 100%; left: 0; right: 0; background: var(--elevated); border: 1px solid var(--line-2); border-radius: var(--r); z-index: 10; overflow: hidden; } .results div { padding: 10px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; } .results div:hover { background: #202026; } .results .name { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diary { border-left: 2px solid var(--line-2); padding-left: 14px; margin-top: 12px; } .diary .day { font-size: 12px; color: var(--muted); } .diary p { margin: 4px 0 6px; } .diary .orders { font-size: 13px; color: var(--muted); }
.landing h1 { font-size: 44px; } @media (min-width: 700px) { .landing h1 { font-size: 72px; } }
.landing .lede { font-size: 18px; color: var(--muted); max-width: 560px; }
.ticker { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .ticker::-webkit-scrollbar { display: none; } .ticker .pill { flex: 0 0 auto; cursor: pointer; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; } .kv .k { color: var(--muted); } .kv .v { text-align: right; }
.fade { animation: fade .3s ease-out both; } @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
code, pre { font-family: ui-monospace, Menlo, monospace; font-size: 12px; } pre { background: var(--elevated); padding: 12px; border-radius: var(--r); overflow: auto; white-space: pre-wrap; }
.flash-up { animation: flashUp .8s ease-out; } .flash-down { animation: flashDown .8s ease-out; }
@keyframes flashUp { from { background: color-mix(in srgb, var(--up) 30%, transparent); } to { background: transparent; } }
@keyframes flashDown { from { background: color-mix(in srgb, var(--down) 30%, transparent); } to { background: transparent; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Party mode */
.party-body .tabs, .party-body .topbar { display: none; }
.party-body .app { max-width: none; padding: 28px 40px; }
.party { display: grid; grid-template-columns: 1fr 360px; gap: 32px; min-height: 90vh; }
@media (max-width: 900px) { .party { grid-template-columns: 1fr; } }
.party-title { font-size: 64px; }
.party-table { margin-top: 18px; font-size: 22px; } .party-table th { font-size: 13px; } .party-table td { padding: 14px 10px; } .party-table .rank { color: var(--muted); width: 40px; }
.party-table tr.bot td { color: var(--gold); } .party-table tr.bot td.num { color: inherit; }
.party-join { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.qr { background: #fff; border-radius: 10px; padding: 6px; width: 150px; height: 150px; } .qr svg { width: 100%; height: 100%; display: block; }
.party-url { font-family: var(--serif); font-size: 26px; }
.party-feed { margin-top: 18px; display: grid; gap: 10px; } .tape-item { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tape-bot { margin-top: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(160deg, #15151a, #0e0e10); }

/* ---------- Social ---------- */
.feed-card { cursor: pointer; transition: border-color .15s ease; }
.feed-card:hover { border-color: var(--line-2); }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.who b { font-weight: 600; }
.who-emoji { font-size: 18px; }
.tiny-pill { padding: 1px 6px; font-size: 10px; }
.feed-line { margin-top: 10px; font-size: 16px; line-height: 1.4; }
.thesis { margin: 10px 0 2px; padding: 8px 12px; border-left: 2px solid var(--royal); background: color-mix(in srgb, var(--royal) 7%, transparent); border-radius: 0 8px 8px 0; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.rich a.mention { color: var(--royal-2); }
.rich a.cashtag, a.cashtag { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.card-foot { margin-top: 10px; gap: 8px; }
.rx-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rx { appearance: none; border: 1px solid var(--line-2); background: var(--elevated); color: var(--paper); border-radius: 999px; padding: 3px 9px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; line-height: 1.3; min-height: 28px; }
.rx .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.rx.mine { border-color: var(--royal); background: color-mix(in srgb, var(--royal) 18%, var(--elevated)); }
.rx.add { color: var(--muted); }
.rx-add-wrap { position: relative; }
.rx-picker { position: absolute; bottom: 120%; left: 0; z-index: 15; display: flex; gap: 4px; padding: 6px; background: var(--elevated); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.take-card { border-color: color-mix(in srgb, var(--gold) 25%, var(--line)); }
.take-card.resolved.hit { border-color: color-mix(in srgb, var(--up) 45%, var(--line)); }
.take-card.resolved.miss { border-color: color-mix(in srgb, var(--down) 35%, var(--line)); opacity: .92; }
.take-call { margin-top: 10px; font-family: var(--serif); font-size: 26px; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.take-call .take-dir { font-size: 22px; }
.take-call .conf { font-family: var(--sans); font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
.composer h3 em { color: var(--royal-2); }
.composer input[type=range] { width: 100%; accent-color: var(--royal); }
.thread-list { display: flex; flex-direction: column; gap: 10px; }
.cmt { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--elevated); }
.cmt.bot { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); background: linear-gradient(160deg, #1a1810, var(--elevated)); }
.cmt.reply { margin-left: 18px; }
.cmt-body { margin: 6px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.link-btn { appearance: none; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.link-btn:hover { color: var(--paper); }
.bell { position: relative; font-size: 20px; line-height: 1; padding: 4px; }
.bell-badge { position: absolute; top: -4px; right: -6px; background: var(--down); color: #fff; font-size: 10px; font-weight: 600; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; font-family: var(--sans); }
.notif { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: linear-gradient(90deg, color-mix(in srgb, var(--royal) 12%, transparent), transparent); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.notif-emoji { width: 36px; height: 36px; border-radius: 50%; background: var(--elevated); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; }
.person { padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.crowd { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--elevated); }
.crowd i { display: block; height: 100%; } .crowd .long { background: var(--up); } .crowd .short { background: var(--down); }
.calib { position: relative; height: 8px; background: var(--elevated); border-radius: 4px; margin-top: 4px; }
.calib .right { position: absolute; left: 0; top: 0; bottom: 0; background: var(--royal); border-radius: 4px; opacity: .8; }
.calib .said { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--paper); }
.ticket-exit { display: grid; gap: 4px; }
@media (max-width: 520px) { .take-call { font-size: 22px; } .thesis { font-size: 17px; } .feed-line { font-size: 15px; } }

/* Account menu, sign-in sheet, search */
.menu-item { appearance: none; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--paper); cursor: pointer; border-radius: 10px; min-height: 52px; }
.menu-item:hover { background: var(--elevated); }
.menu-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--elevated); display: grid; place-items: center; font-size: 18px; }
button.avatar { appearance: none; cursor: pointer; color: inherit; padding: 0; }
.pass-field { position: relative; }
.pass-field .link-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.pass-field input { padding-right: 56px; }
input[type=search] { width: 100%; background: var(--elevated); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px; color: var(--paper); font-size: 16px; outline: none; -webkit-appearance: none; }
.signin-gate { margin-top: 24px; }
@media (max-width: 420px) { .market-state { display: none; } .topbar .streak { display: none; } }

/* Real-app pass: back chevron, info buttons, sheets, tap targets */
.back-btn { appearance: none; background: none; border: 0; color: var(--paper); font-size: 30px; line-height: 1; padding: 0 10px 4px 0; cursor: pointer; min-width: 36px; min-height: 40px; }
.topbar { gap: 4px; } .topbar .brand { margin-right: auto; }
.info-btn { appearance: none; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px 6px; min-height: 32px; vertical-align: middle; }
.info-btn:hover { color: var(--royal-2); }
.sheet-close { position: absolute; top: 10px; right: 10px; appearance: none; background: var(--elevated); border: 1px solid var(--line-2); color: var(--muted); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; z-index: 2; }
body.sheet-open { overflow: hidden; }
.party-exit { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 14px; z-index: 30; }
.lab-links { margin-top: 12px; } .lab-link { text-align: center; padding: 12px 8px; display: block; }
.app { padding-left: calc(var(--gutter) + env(safe-area-inset-left)); padding-right: calc(var(--gutter) + env(safe-area-inset-right)); }
.tabs { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
@media (pointer: coarse) {
  .btn.sm, .seg button, .chip, .rx, .bell, .avatar { min-height: 40px; }
  .btn.sm { padding: 8px 12px; } .seg button { padding: 8px 14px; } .chip { padding: 8px 12px; display: inline-flex; align-items: center; }
  .link-btn { min-height: 36px; padding: 6px 8px; }
  .bell { min-width: 40px; display: inline-grid; place-items: center; }
}

/* =================================================================================================
   MILLI ON AIR layer. Fewer boxes, real hierarchy, banknote details used sparingly.
   ================================================================================================= */
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(47,107,255,.10), transparent 60%), radial-gradient(900px 500px at -10% 0%, rgba(59,227,139,.07), transparent 55%), var(--ink); background-attachment: fixed; }
[style*="var(--serif)"] { font-weight: 750; letter-spacing: -0.025em; }
.num, td.num { font-family: var(--sans); }
.mono { font-family: var(--mono); }

/* Top bar: wordmark + ON AIR light */
.brand { gap: 8px; color: var(--paper); }
.brand .wordmark { height: 22px; width: auto; display: block; }
.brand-mark, .brand-name { display: none; }
.on-air { font: 700 10.5px/1 var(--mono); letter-spacing: .14em; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); background: transparent; white-space: nowrap; }
.on-air.live { color: #062814; background: var(--money); border-color: var(--money); box-shadow: 0 0 0 3px rgba(59,227,139,.18), 0 0 18px rgba(59,227,139,.45); }
.topbar .bell { color: var(--muted); } .topbar .bell:hover { color: var(--paper); }
.topbar .bell .ico, .back-btn .ico { display: block; }
.back-btn { display: inline-grid; place-items: center; padding: 0; margin-right: 2px; color: var(--paper); }

/* Bottom tabs with drawn icons */
.tabs a .ico { width: 22px; height: 22px; }
.tabs a { font-weight: 600; letter-spacing: .01em; font-size: 11px; }
.tabs a.active { color: var(--money); }
.tabs a .tab-emoji { font-size: 20px; line-height: 22px; }

/* Cards: quieter, and fewer of them */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.card + .card, .stack > * + * { margin-top: 14px; }
.eyebrow { font: 600 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* Hero number: the account balance is the headline */
.hero { padding: 6px 0 2px; }
.hero .big { font-family: var(--sans); font-weight: 800; font-size: 48px; letter-spacing: -0.035em; }
@media (min-width: 700px) { .hero .big { font-size: 64px; } }
.big .cents { font-size: .45em; color: var(--muted); letter-spacing: 0; vertical-align: .9em; margin-left: 2px; }

/* Stats: figures on a rule, not tiles */
.stat { background: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 10px 0 4px; }
.stat .v { font-family: var(--sans); font-weight: 750; font-size: 22px; letter-spacing: -0.02em; }
.stat .k { font-size: 12px; color: var(--dim); margin-top: 4px; }

/* Buttons */
.btn { font-weight: 650; border-radius: 10px; transition: transform .12s var(--ease), background .15s, border-color .15s; border-color: var(--line-2); background: var(--elevated); }
.btn:hover { background: #1B2C23; }
.btn.primary { background: var(--money); color: #062814; border-color: var(--money); }
.btn.primary:hover { background: #5AEDA0; }
.btn.buy { background: var(--money); color: #062814; border-color: var(--money); }
.btn.sell { background: var(--down); color: #2A0709; border-color: var(--down); }
.btn.royal { background: var(--ribbon-btn); border-color: var(--ribbon-btn); color: #fff; }
.btn.ghost { background: transparent; }
.seg { background: var(--surface); border-color: var(--line-2); }
.seg button.active { background: var(--paper); color: var(--ink); font-weight: 650; }
.pill { background: transparent; border-color: var(--line-2); color: var(--muted); font-weight: 550; }
.pill.up { color: var(--money); } .pill.down { color: var(--down); } .pill.royal { color: var(--ribbon-2); border-color: color-mix(in srgb, var(--ribbon) 55%, var(--line-2)); }
.pill.bot, .tiny-pill { color: var(--ribbon-2); border-color: color-mix(in srgb, var(--ribbon) 45%, var(--line-2)); font: 600 10px/1 var(--mono); letter-spacing: .08em; padding: 3px 6px; }
.chip { border-color: var(--line-2); background: var(--surface); font-weight: 550; }
.chip.active { background: var(--money); color: #062814; border-color: var(--money); }
.input, input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea { background: var(--surface); border-color: var(--control); }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--ribbon-2); box-shadow: 0 0 0 3px rgba(47,107,255,.25); }
.field label { color: var(--muted); font-weight: 600; font-size: 13px; }

/* Feed: an editorial list. Trades are rows; takes are the only cards (they carry the ribbon). */
.feed-card { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 2px; margin: 0 !important; }
.feed-card:hover { border-color: var(--line-2); background: linear-gradient(90deg, rgba(255,255,255,.015), transparent); }
.feed-line { font-size: 16px; font-weight: 500; }
.thesis { font-family: var(--mono); font-size: 14px; line-height: 1.5; font-weight: 400; letter-spacing: 0; color: var(--paper); border-left: 2px solid var(--ribbon); background: none; padding: 2px 0 2px 12px; margin: 10px 0 4px; border-radius: 0; }
.take-card { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 20px 16px 16px; margin: 14px 0 !important; overflow: hidden; }
.take-card::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(180deg, var(--ribbon) 0 6px, #234fd0 6px 8px, var(--ribbon) 8px 14px, #5f8dff 14px 15px); opacity: .9; }
.take-card.resolved.hit::after { background: repeating-linear-gradient(180deg, var(--money) 0 6px, var(--money-deep) 6px 8px); }
.take-card.resolved.miss::after { background: repeating-linear-gradient(180deg, #4b5a52 0 6px, #2c3a33 6px 8px); }
.take-call { font-family: var(--sans); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.take-call .conf { font: 600 11px/1 var(--mono); letter-spacing: .06em; }
a.cashtag, .rich a.cashtag { color: var(--ribbon-2); font-weight: 700; }
.rich a.mention { color: var(--money); font-weight: 600; }
.who b { font-weight: 700; }
.rx { background: transparent; border-color: var(--line-2); font-weight: 600; }
.rx.mine { background: rgba(59,227,139,.12); border-color: var(--money); color: var(--money); }

/* Quips and roasts: confident sans, not ornamental serif */
.quip { font-family: var(--sans); font-weight: 650; font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; }
.roast { background: var(--surface); border-color: var(--line-2); }
.roast h3 { font-size: 19px; line-height: 1.35; }
.roast .verdict b { font-family: var(--sans); font-weight: 800; font-size: 20px; }

/* Toasts: readable, and errors pass contrast */
.toast { font-family: var(--sans); font-weight: 600; font-size: 15px; background: var(--paper); color: var(--ink); border-radius: 12px; }
.toast.err { background: var(--down); color: #2A0709; font-weight: 650; }

/* Sheets */
.modal { background: rgba(3,8,6,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal .sheet { background: var(--surface); border-color: var(--line-2); box-shadow: 0 -16px 48px rgba(0,0,0,.45); }

/* Banknote details, used sparingly */
.microprint { font: 500 7px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: rgba(143,163,150,.55); white-space: nowrap; overflow: hidden; user-select: none; }
.ribbon-stripe { height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--ribbon) 0 10px, #234fd0 10px 12px, var(--ribbon) 12px 22px, #6c97ff 22px 23px); }
.guilloche-bg { background-image: url('/img/texture-guilloche.jpg'); background-size: cover; background-position: center; }

/* Landing hero with the engraved studio */
.hero-art { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #07110D url('/img/hero-onair.jpg') right center / cover no-repeat; min-height: 420px; display: flex; align-items: flex-end; padding: 28px; margin-top: 8px; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #07110D 0%, rgba(7,17,13,.92) 38%, rgba(7,17,13,.25) 70%, transparent); }
.hero-art > * { position: relative; }
@media (max-width: 640px) { .hero-art { background-image: url('/img/hero-onair-sm.jpg'); min-height: 520px; background-position: 72% top; background-size: auto 62%; align-items: flex-end; } .hero-art::before { background: linear-gradient(180deg, transparent 0%, rgba(7,17,13,.6) 40%, #07110D 62%); } }
.landing h1 { font-size: 40px; letter-spacing: -0.04em; } @media (min-width: 700px) { .landing h1 { font-size: 64px; } }
.landing .lede { color: var(--muted); font-size: 17px; max-width: 520px; }

/* Portraits (engraved, from the banknote set) */
.portrait { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); background: #07110D; flex: 0 0 auto; }
.portrait.lg { width: 88px; height: 88px; }
.lab-link img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
.illus { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); display: block; margin: 0 auto 12px; }

/* Milly, the guide */
.milly-fab { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--paper); font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); cursor: pointer; }
.milly-fab img { width: 34px; height: 34px; border-radius: 50%; }
@media (min-width: 760px) { .milly-fab { bottom: 24px; } }
.milly-log { display: flex; flex-direction: column; gap: 10px; max-height: 52dvh; overflow: auto; padding: 4px 0; }
.milly-msg { padding: 10px 12px; border-radius: 14px; max-width: 88%; line-height: 1.45; font-size: 15px; white-space: pre-wrap; }
.milly-msg.her { background: var(--elevated); border: 1px solid var(--line); align-self: flex-start; }
.milly-msg.me { background: rgba(47,107,255,.18); border: 1px solid rgba(47,107,255,.45); align-self: flex-end; }
.milly-suggest { display: flex; gap: 6px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: calc(8px + env(safe-area-inset-top)); }
.av-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.who .who-emoji { font-size: 18px; width: 24px; text-align: center; }
.landing-sample { margin-top: 22px; display: grid; gap: 18px; }
.sample-trade { padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sample-trade .mention { color: var(--money); }
.landing-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; } .landing-points p { margin: 4px 0 0; }
@media (max-width: 520px) { .landing-points { grid-template-columns: 1fr; } }
.landing .grid.grid-3 { display: none; }
.av-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2, #2a3b31); flex: none; vertical-align: middle; }
.who .who-emoji { width: 24px; text-align: center; }
.landing-points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 28px 0 8px; }
.landing-points .eyebrow { color: var(--ribbon-2); margin-bottom: 4px; }
.landing-points p { margin: 4px 0 0; }
@media (max-width: 560px) { .landing-points { grid-template-columns: 1fr; gap: 18px; } }
a.pos { color: inherit; text-decoration: none; }
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }
.party-title em { color: var(--money); }
.range-row .seg { display: grid; grid-template-columns: repeat(7, 1fr); width: 100%; }
.range-row .seg button { min-height: 36px; padding: 0; }
.lab-links { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lab-link { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 12px 6px; }
.lab-link img { width: 64px; height: 64px; margin: 0; }
@media (max-width: 560px) { .lab-links { grid-template-columns: repeat(2, 1fr); } }
.take-dir .ico.up { color: var(--money); } .take-dir .ico.down { color: var(--loss, #FF7A80); }
.take-dir { display: inline-flex; align-items: center; margin-right: 4px; }
.chip.done { opacity: 1; color: var(--muted); background: transparent; border-style: dashed; }
.chip.next { background: var(--money); color: #062814; border-color: var(--money); font-weight: 700; }
.badge.locked { opacity: 1; filter: none; color: var(--muted); background: transparent; border-style: dashed; }
.search-hit { display: flex; width: 100%; gap: 8px; align-items: baseline; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 10px 12px; cursor: pointer; }
.search-hit:hover, .search-hit:focus-visible { background: var(--raised, #15231C); }
.app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.legend { flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 560px) { .card > .row.between:has(> .legend) { flex-direction: column; align-items: stretch; gap: 10px; } .card > .row.between:has(> .legend) .seg { align-self: flex-start; } }
.legend i { background: var(--money); }
/* Leaderboard on phones: rank, trader, return; equity and top holdings fold under the name */
.mobile-only { display: none; }
td.trader a:hover span { text-decoration: underline; }
@media (max-width: 560px) { .col-eq, .col-top { display: none; } .mobile-only { display: block; margin-top: 2px; } td.trader { min-width: 0; } }
/* The Lab tiles: equal height, no stray stack margins */
.lab-links { align-items: stretch; } .lab-links > .card { margin: 0; height: 100%; }
/* New-account chart: a quiet placeholder instead of a lonely dot */
.chart-empty { display: grid; place-items: center; min-height: 160px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; padding: 20px; }
.chart-empty b { display: block; color: var(--paper); font-weight: 650; margin-bottom: 4px; }

/* Round 3: hero as a banknote, flat sections, tally lamp, tabular numbers */
.num, .big, .stat .v, td.num { font-variant-numeric: tabular-nums; }
.hero .big { font-size: 52px; letter-spacing: -0.04em; line-height: 1.02; }
.hero .big .cents { font-size: .42em; letter-spacing: -0.01em; color: var(--muted); vertical-align: .95em; margin-left: 2px; }
.hero-line { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.hero-line b { font-weight: 700; } .hero-line a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.serial-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; overflow: hidden; }
.serial { font: 600 12.5px/1 var(--mono); letter-spacing: .22em; color: var(--ribbon-2); white-space: nowrap; }
.serial-row .microprint { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; font: 500 7.5px/1 var(--mono); letter-spacing: .16em; color: var(--dim); opacity: .7; }
section.flat { border-top: 1px solid var(--line); padding: 18px 0 6px; margin: 8px 0; }
section.flat > .row > h3, section.flat > h3 { font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.on-air { border-radius: 4px; }
.on-air.live { color: #fff; background: #E5322D; border-color: #E5322D; box-shadow: 0 0 0 3px rgba(229,50,45,.22), 0 0 20px rgba(229,50,45,.5); }
td.trader a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.profile-tabs .seg { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.profile-tabs .seg button { padding-left: 4px; padding-right: 4px; }
.chips:has(> .chip) { gap: 6px; }
.floor { display: grid; gap: 10px; margin: 24px 0 8px; }
@media (max-width: 560px) { .hero .big { font-size: 44px; } }
.chart-fresh .chart { height: auto; min-height: 0; } .chart-fresh .chart-empty { min-height: 110px; }
.chart:has(> .chart-empty) { height: auto; min-height: 0; }
td.trader a { max-width: 40vw; }
td.trader .pill.bot { vertical-align: middle; }
@media (max-width: 560px) { td.trader a { max-width: 44vw; } td.trader .pill.bot { margin-left: 4px; } }
td.trader { white-space: nowrap; } td.trader a > span { overflow: hidden; text-overflow: ellipsis; }
.badge.locked { font-size: 12.5px; }
.badge.more { cursor: pointer; color: var(--ribbon-2); background: transparent; border: 1px dashed var(--line-2); font: inherit; font-size: 13px; }
.milly-fab.mini { padding: 5px; } .milly-fab.mini .milly-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero > .row.between.top { flex-wrap: nowrap; align-items: flex-start; gap: 12px; } .hero > .row.between.top > .row { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- badge goals */
.goal-bar.chasing i { background: var(--money); }
.goal-row { padding: 12px 0; border-top: 1px solid var(--line); } .goal-row:first-of-type { border-top: 0; }
.goal-head { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 0 0 8px; cursor: pointer; }
.goal-emoji { font-size: 26px; line-height: 1; }
.goal-invite { border-style: dashed; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.badge-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.badge-tile .bt-emoji { font-size: 24px; } .badge-tile .bar { width: 100%; margin-top: 4px; }
.badge-tile.own { border-color: color-mix(in srgb, var(--money) 45%, var(--line-2)); }
.badge-tile.chase { border-color: var(--money); box-shadow: 0 0 0 1px var(--money) inset; }
.badge-tile.gone { opacity: .5; }
.badge-hero { font-size: 56px; text-align: center; line-height: 1.1; }
.coach { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--elevated); font-size: 14px; }
.coach .av-img { width: 32px; height: 32px; }
a.badge.more { text-decoration: none; }
/* ---- trade ticket hints */
.order-hints { display: grid; gap: 6px; } .order-hints:empty { display: none; }
.hint { font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); }
.hint.unlock { border-color: color-mix(in srgb, var(--money) 55%, var(--line-2)); color: var(--money); }
.hint.good { color: var(--money); } .hint.warn { border-color: color-mix(in srgb, var(--gold) 50%, var(--line-2)); color: var(--gold); }
.hint.goal { color: var(--ribbon-2); }
/* ---- leagues */
.bot-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.bot-pick { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.bot-pick b { color: var(--paper); font-weight: 600; } .bot-pick .av-img, .bot-pick .who-emoji { width: 36px; height: 36px; font-size: 22px; display: grid; place-items: center; }
.bot-pick.on { border-color: var(--money); background: color-mix(in srgb, var(--money) 9%, var(--surface)); }
.final-banner { border-color: var(--gold); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, var(--surface)), var(--surface)); }
.final-banner .trophy { font-size: 40px; }
.seg-scroll { overflow-x: auto; max-width: 100%; scrollbar-width: none; } .seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll .seg { white-space: nowrap; }
/* ---- eggs */
.egg-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; border-color: var(--money); cursor: pointer; margin-bottom: 12px; }
div.egg-card { cursor: default; }
@keyframes egg-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-.4deg); } 40% { transform: translateX(6px) rotate(.4deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.egg-shake #app { animation: egg-shake .6s ease; }
@media (prefers-reduced-motion: reduce) { .egg-shake #app { animation: none; } }
.badge-tile .bt-emoji.faded { filter: grayscale(1); opacity: .45; }
.bot-pick { position: relative; padding-right: 36px; }
.bot-pick::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.bot-pick.on::after { content: '✓'; color: var(--money); font-weight: 700; font-size: 16px; }

/* Pick your five */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; min-height: 92px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--paper); font: inherit; text-align: left; cursor: pointer; }
.pick b { font-weight: 650; font-size: 15px; }
.pick .pick-emoji { font-size: 26px; line-height: 1.1; margin-bottom: 4px; }
.pick.on { border-color: var(--money); background: color-mix(in srgb, var(--money) 12%, var(--surface)); box-shadow: 0 0 0 1px var(--money) inset; }
.pick.on::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: var(--money); font-weight: 800; }
.pick-bar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 3; box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
.pick-sum { margin: 0; }

/* Home: the three cards and the way to everything else */
.contest, .move { border-color: var(--line-2); }
.move .btn { margin-top: 10px; }
.more-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); color: inherit; text-decoration: none; }
.more-link:hover, .more-link:focus-visible { border-color: var(--money); }
.chips-label { flex-basis: 100%; }

/* Invitations */
.invite-card { align-items: stretch; padding: 24px 18px; }
.invite-emoji { font-size: 56px; text-align: center; line-height: 1; }

/* Landing: one week, told as it happens */
.week-story .story-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.week-story .story-row:last-of-type { border-bottom: 0; }
.story-day { font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--money); }
