:root { --bg: #f5f5ed; --bg-sub: #e9ede3; --row-bg: #fafaf5; --text: #142b22; --muted: #50665b; --dim: #62766a; --line: #d8dfd3; --gold: #6c874b; --gold-deep: #375c33; }
body.theme-dark { --bg: #071710; --bg-sub: #10251a; --row-bg: #0b1d14; --text: #edf1df; --muted: #a4b8a7; --dim: #93a896; --line: #294332; --gold: #bedc8e; --gold-deep: #c8e6a0; background: var(--bg); color: var(--text); }
[hidden] { display: none !important; }
html, body { max-width: 100%; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, .ca-bar a, input { min-height: 44px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.topbar { position: relative; padding: 16px 28px; backdrop-filter: none; background: var(--bg); gap: 14px; }
.brand { gap: 10px; flex-wrap: wrap; }
.logo { background: none; box-shadow: none; border-radius: 9px; object-fit: cover; display: block; }
.brand-text .title { font-size: 25px; }
.brand-text .subtitle { font-size: 11px; }
.live-chip, .watch-chip { letter-spacing: .5px; font-size: 10px; margin: 0; padding: 5px 8px; }
.header-stats { gap: 20px; }
.header-stats .stat-value { font-size: 17px; }
.header-stats .stat-sub { max-width: 250px; font-size: 10px; }
.launch-desk { max-width: 1060px; margin: 18px auto 0; padding: 0 26px; }
.eyebrow { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.desk-top, .hero-bottom, .feed-heading, .holders-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.desk-top { margin-bottom: 8px; color: var(--gold-deep); }
.desk-top button, .hero-bottom button, .feed-heading button, #share-bag, .wallet-form button { border: 1px solid var(--line); background: var(--bg-sub); color: var(--text); border-radius: 7px; padding: 0 12px; font-size: 12px; }
.hero-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 12px; }
.money-hero { background: #123322; color: #eef4df; padding: 24px; border-radius: 12px; position: relative; overflow: hidden; }
.money-hero::after { content: ''; position: absolute; width: 180px; height: 180px; border: 1px solid #527b47; border-radius: 100%; top: -130px; right: 40px; pointer-events: none; }
.money-hero .eyebrow { color: #b9ccab; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.money-hero h1 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-top: 14px; }
.hero-fortune { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(25px, 4.1vw, 50px); font-weight: 700; letter-spacing: -2px; line-height: 1.4; color: #d2ef9c; white-space: nowrap; }
.hero-bottom { margin-top: 8px; }
.hero-bottom small { color: #b9ccab; font-size: 10px; }
.hero-bottom button { background: #234b32; border-color: #527b47; color: #e1ebd7; }
.crypto-hero { border: 1px solid var(--line); padding: 20px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: var(--bg-sub); }
.crypto-hero .eyebrow, .crypto-hero small { color: var(--muted); font-size: 10px; }
.crypto-hero b { font-family: var(--serif); font-size: 21px; }
.crypto-hero strong { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(18px, 2vw, 25px); }
.participation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.own-row { border: 1px dashed var(--gold); background: var(--bg-sub); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.own-row > p { font-family: var(--serif); font-size: 22px; margin: 9px 0; }
.own-row small { color: var(--muted); font-size: 11px; }
.feed-preview { min-width: 0; }
.feed-heading { color: var(--muted); }
.live-feed { list-style: none; max-height: 145px; overflow-y: auto; scrollbar-width: thin; }
.live-feed li { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 0; font-family: var(--mono); font-size: 11px; }
.live-feed li small { grid-column: 2 / 4; color: var(--muted); font-size: 9px; }
.live-feed .buy > span:first-child { color: var(--green); }
.live-feed .sell > span:first-child { color: var(--red); }
.live-feed .empty-state { display: block; font-family: inherit; color: var(--muted); line-height: 1.6; }
.desk-line { min-height: 40px; padding: 10px 0; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted); }
.ca-bar { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--row-bg); border: 1px solid var(--line); border-radius: 10px; }
.ca-bar > div { flex: 1; min-width: 0; }
.ca-bar .eyebrow { font-size: 8px; color: var(--muted); }
.ca-bar code { display: block; overflow-wrap: anywhere; font-size: 11px; margin-top: 3px; }
.ca-bar button, .ca-bar a { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: var(--bg-sub); color: var(--text); text-decoration: none; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.ca-bar a { background: #c6e498; color: #102a1b; border-color: #a7cc75; }
.arrival { position: fixed; bottom: 22px; left: 50%; z-index: 95; transform: translate(-50%, 130px); opacity: 0; padding: 20px; max-width: calc(100% - 32px); width: max-content; border-radius: 12px; background: #c6e498; color: #102a1b; font: 700 14px var(--mono); transition: transform .3s, opacity .3s; pointer-events: none; }
.arrival.show { transform: translate(-50%, 0); opacity: 1; }
.market-strip { padding-top: 14px; }
.market-strip small { font-size: 8px; }
.movers-wrap { display: none; }
.view-toggle { gap: 6px; }
.view-toggle button { border-radius: 6px; padding: 8px 12px; font-size: 12px; }
.row { grid-template-columns: 34px 50px minmax(0, 1fr) 40px 210px; gap: 12px; }
.row .avatar { width: 50px; height: 50px; }
.table-head { grid-template-columns: 34px 50px minmax(0, 1fr) 40px 210px; gap: 12px; }
.row-chips { align-items: center; flex-wrap: wrap; }
.spend-btn { min-height: 44px; padding: 5px 10px; background: #dce9c9; color: #284a25; }
.avatar-badge { animation: none !important; }
.trillion-wrap { padding: 12px 16px; border-color: var(--line); }
.tr-fill { background: #7ca64e; }
.tr-label { letter-spacing: 1px; }
.holders-heading { margin: 22px 0; flex-wrap: wrap; }
.holders-heading h2 { font: 28px var(--serif); }
.holders-heading > span, .scope-note { font-size: 12px; color: var(--muted); }
.wallet-form { margin-bottom: 16px; }
.wallet-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.wallet-form > div { display: flex; gap: 8px; }
.wallet-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font: 12px var(--mono); background: var(--row-bg); color: var(--text); }
.wallet-form small { display: block; font-size: 11px; color: var(--muted); margin-top: 8px; }
.scope-note { margin: 18px 0; line-height: 1.6; }
.holder-card { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-bottom: 1px solid var(--line); padding: 16px 0; font-family: var(--mono); }
.holder-card.own { border-color: var(--gold); }
.holder-id { display: flex; flex-direction: column; gap: 6px; }
.holder-id .eyebrow { color: var(--gold-deep); }
.holder-id b { font-size: 17px; }
.holder-id small, .holder-bag small { font-size: 9px; color: var(--muted); }
.holder-bag { text-align: right; }
.holder-bag b, .holder-bag small { display: block; margin-bottom: 6px; }
.holder-card p { grid-column: 1 / -1; font-family: inherit; font-size: 11px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.own-row .holder-card { border: 0; padding: 0; }
.empty-state { color: var(--muted); padding: 16px 0; }
.announcement { padding: 12px; background: var(--bg-sub); margin-bottom: 10px; border-left: 3px solid var(--gold); }
.pause-page { padding-top: 20vh; line-height: 2; }
.pause-page h1 { font-family: var(--serif); }
.modal-close { width: 44px; height: 44px; }
.modal .modal-head { padding-right: 30px; }
.modal { overflow-wrap: anywhere; }
.spend-top { backdrop-filter: none; }
.stream .topbar, .stream .market-strip, .stream .view-toggle, .stream .ca-bar, .stream .desk-top, .stream .footnote, .stream .table-head, .stream .legend, .stream .trillion-wrap, .stream .hero-bottom button { display: none !important; }
.stream .launch-desk { margin-top: 12px; }
.stream .row .stake-line, .stream .row .spend-btn, .stream .row .age-col { display: none; }
.stream .row { grid-template-columns: 30px 44px 1fr 200px; padding: 9px 12px; }
.stream .row .wealth { grid-column: 4; }
.stream .row .avatar { width: 40px; height: 40px; }
.stream .hero-fortune { font-size: clamp(28px, 5vw, 64px); }
.stream .participation-grid { grid-template-columns: 1fr 1fr; }
.stream main { padding-top: 12px; }
@media (min-width: 1200px) { .topbar { padding-left: max(28px, calc((100% - 1100px)/2)); padding-right: max(28px, calc((100% - 1100px)/2)); } }
@media (max-width: 760px) {
  /* Top of the screen on phones so the toast never covers Copy CA / Buy. */
  .arrival { bottom: auto; top: 12px; padding: 14px 16px; font-size: 13px; transform: translate(-50%, -130px); }
  .arrival.show { transform: translate(-50%, 0); }
  .topbar { padding: 10px 16px; gap: 6px; }
  .brand { width: 100%; gap: 8px; }
  .brand-text { flex: 1; }
  .brand-text .title { font-size: 21px; }
  .brand-text .subtitle { font-size: 9px; }
  .logo { width: 34px; height: 34px; }
  .header-stats { display: none; }
  .live-chip { display: none; }
  .watch-chip { font-size: 9px; letter-spacing: 0; }
  .search { flex-basis: 100%; min-width: 0; }
  .search input { min-height: 44px; font-size: 14px; }
  .launch-desk { padding: 0 16px; margin-top: 4px; }
  .desk-top { margin-bottom: 4px; }
  .eyebrow { font-size: 9px; letter-spacing: .6px; }
  .desk-top button { font-size: 10px; }
  .hero-grid { display: block; }
  .money-hero { padding: 16px; border-radius: 10px; }
  .money-hero .eyebrow { font-size: 8px; gap: 4px; }
  .money-hero h1 { font-size: 22px; margin-top: 8px; }
  .hero-fortune { font-size: clamp(24px, 7vw, 46px); letter-spacing: -1px; }
  .hero-bottom { margin-top: 0; }
  .hero-bottom small { font-size: 9px; max-width: 200px; line-height: 1.5; }
  .crypto-hero { margin-top: 8px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
  .crypto-hero .eyebrow { grid-column: 1 / -1; font-size: 8px; }
  .crypto-hero b { font-size: 15px; }
  .crypto-hero strong { font-size: 14px; }
  .crypto-hero small { grid-column: 1 / -1; font-size: 8px; }
  .participation-grid, .stream .participation-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .own-row { padding: 12px; }
  .own-row > p { font-size: 18px; margin: 5px 0; }
  .own-row small { font-size: 10px; }
  .feed-heading { min-height: 44px; }
  .feed-heading button { font-size: 11px; }
  .live-feed { max-height: 87px; min-height: 40px; }
  .desk-line { min-height: 48px; max-height: 62px; overflow: hidden; padding: 6px 0; font-size: 10px; }
  .ca-bar { padding: 9px; flex-wrap: wrap; }
  .ca-bar > div { flex-basis: 100%; }
  .ca-bar button, .ca-bar a { flex: 1; }
  .ca-bar code { font-size: 10px; }
  .market-strip { padding: 10px 16px 0; gap: 5px; }
  .mkt-pill { padding: 5px 8px; gap: 5px; font-size: 10px; }
  .mkt-chg { font-size: 9px; }
  .view-toggle { flex-wrap: wrap; overflow: visible; margin-top: 10px; }
  .view-toggle button { font-size: 11px; padding: 5px 9px; flex: initial; }
  .view-toggle .theme-btn { margin-left: 0; }
  main { padding: 0 16px 40px; }
  .row, .table-head { grid-template-columns: 22px 36px minmax(0, 1fr) 100px; gap: 6px; padding-left: 0; padding-right: 0; }
  .row .avatar { width: 36px; height: 36px; }
  .row .name { font-size: 13px; }
  .row .source-line { font-size: 10px; }
  .row .cc, .row .stake-line { display: none; }
  .row .nw { font-size: 15px; }
  .row .chip { font-size: 9px; padding: 3px 4px; }
  .row-chips { gap: 2px; }
  .spend-btn { font-size: 10px; padding: 0 8px; }
  .rank-chip { font-size: 14px; }
  .trillion-wrap { padding: 12px; }
  .tr-body { gap: 8px; }
  .tr-who b { font-size: 13px; }
  .tr-sub, .tr-eta { font-size: 10px; }
  .legend { padding-left: 0; gap: 6px; font-size: 10px; }
  .table-head { font-size: 9px; }
  .backdrop { padding: 10px; backdrop-filter: none; }
  .modal { padding: 20px 14px; border-radius: 14px; max-height: 94dvh; }
  .modal .avatar { width: 40px; height: 40px; }
  .modal-name { font-size: 20px; }
  .modal-rank-row { flex-wrap: wrap; }
  .nw-big { font-size: 34px; }
  .modal-chips .chip { font-size: 10px; }
  .modal-bio, .fun-fact { font-size: 13px; }
  .brk-row { grid-template-columns: 48px 1fr 64px; font-size: 10px; }
  .brk-val { grid-column: 2 / -1; }
  .spend-top { padding: 10px; gap: 8px; }
  .spend-person { min-width: 0; flex-basis: 70%; }
  .spend-person .avatar { width: 34px; height: 34px; }
  .spend-name { font-size: 13px; }
  .spend-fortune { font-size: 12px; flex-wrap: wrap; }
  .spend-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 10px; }
  .sp-info, .sp-step { padding: 8px; }
  .sp-name { font-size: 12px; }
  .sp-price, .sp-afford { font-size: 10px; }
  .sp-price em { display: block; margin: 3px 0; font-size: 9px; }
  .sp-step { gap: 4px; }
  .spend-budget { padding: 14px 10px 0; }
  .bar-top { flex-wrap: wrap; }
  .bar-src { display: none; }
  .bar-right { width: 100%; }
  .toasts { top: 12px; right: 12px; }
  .stream .row { grid-template-columns: 22px 36px minmax(0,1fr) 100px; padding: 6px 0; }
  .stream .row .avatar { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
