/*
 * Socratus base (css/base.css): fonts, tokens, reset and the shared pieces every page uses
 * (banner, header, buttons, fields, cards, chips, menus, wallet picker, toasts, footer).
 * Layout and type scale follow orbio.so; the palette is porcelain paper, ink and gold leaf.
 */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(/fonts/dmsans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geistmono-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-latin.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-latin.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans Fallback'; src: local(Arial); ascent-override: 94.9%; descent-override: 29.66%; line-gap-override: 0%; size-adjust: 104.53%; }
@font-face { font-family: 'Geist Mono Fallback'; src: local(Arial); ascent-override: 74.67%; descent-override: 21.92%; line-gap-override: 0%; size-adjust: 134.59%; }

:root {
  --sans: 'DM Sans', 'DM Sans Fallback', Geist, ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', 'Geist Mono Fallback', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Newsreader', 'Times New Roman', serif;

  --ink: #16130e;
  --ink-2: #433d34;
  --ink-3: #7b7366;
  --ink-4: #a49b8c;
  --paper: #faf7f1;
  --paper-2: #f4efe6;
  --paper-3: #ebe4d6;
  --white: #fffdf9;
  --line: rgba(60, 44, 20, .13);
  --line-soft: rgba(60, 44, 20, .08);
  --line-strong: rgba(60, 44, 20, .24);

  --gold: #f2c64c;        /* orbio's neon, as gold leaf */
  --gold-2: #e6b532;
  --gold-3: #c9951c;
  --gold-ink: #6f4c0c;    /* text on gold washes */
  --gold-wash: #fbf0cf;
  --gold-wash-2: #f7e5b0;

  --red: #b4432f;         /* Minoan red: live dots, Bonanza */
  --red-wash: #f6e0d9;
  --blue: #2b5f9e;        /* Aegean blue: links in docs */
  --green: #3d7a4e;
  --green-wash: #e3efdf;

  --bronze-100: #f6ecdd; --bronze-200: #eeddc4; --bronze-300: #e0c5a0; --bronze-400: #d0aa77;
  --bronze-500: #bd9058; --bronze-600: #a87944; --bronze-700: #8a6134; --bronze-800: #6b4a24; --bronze-900: #4a3419;

  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 28px;
  --shadow-sm: 0 1px 2px rgba(74, 52, 25, .06);
  --shadow-md: 0 1px 2px rgba(74, 52, 25, .05), 0 8px 24px -10px rgba(74, 52, 25, .16);
  --shadow-lg: 0 2px 4px rgba(74, 52, 25, .05), 0 24px 60px -24px rgba(74, 52, 25, .28);
  --glass: rgba(255, 253, 249, .72);
  --glass-strong: rgba(255, 253, 249, .88);

  --wrap: 1088px;
  --gutter: 24px;
  --banner-h: 36px;
  --hdr-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  min-height: 100vh; overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-wash-2); color: var(--ink); }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-sm); font-size: 13px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.nil { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; vertical-align: middle; }
.ico { flex: none; }

/* ------------------------------------------------------------------ banner */
.banner {
  position: relative; z-index: 30; height: var(--banner-h); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, #4a3419 0%, #6b4a24 50%, #4a3419 100%); color: #faf8f4; font: 400 13px/1 var(--mono);
  letter-spacing: -.02em; white-space: nowrap; overflow: hidden;
}
.banner a { display: inline-flex; align-items: center; gap: 12px; padding: 0 16px; height: 100%; }
.banner .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bronze-200); box-shadow: 0 0 0 3px rgba(238, 221, 196, .15); }
.banner .dot.is-live { background: var(--gold); animation: pulse 2.4s var(--ease) infinite; }
.banner b { font: 600 13px/1 Geist, var(--sans); color: var(--bronze-200); letter-spacing: 0; }
.banner .sep { width: 1px; height: 14px; background: rgba(238, 221, 196, .28); }
.banner .muted { color: rgba(250, 248, 244, .78); font-family: Geist, var(--sans); letter-spacing: 0; }
.banner .arrow { transition: transform .25s var(--ease); }
.banner a:hover .arrow { transform: translateX(3px); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 198, 76, .55); } 60% { box-shadow: 0 0 0 6px rgba(242, 198, 76, 0); } }

/* ------------------------------------------------------------------ header */
.hdr { position: relative; z-index: 20; height: var(--hdr-h); }
.hdr .wrap { max-width: calc(1152px + 2 * var(--gutter)); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; padding-right: 14px; margin-right: 6px; border-right: 1px solid var(--line); height: 28px; font: 600 16px/1 var(--sans); letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(74, 52, 25, .18)); }
.brand-name { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 8px; font-size: 13px; letter-spacing: -.01em; color: var(--ink-3); border-radius: var(--r-xs); transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--gold-2); }
.hdr-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-2); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: rgba(255, 253, 249, .7); border-color: var(--line); }
.hdr-wallet { display: none; }

/* $SOCRA pill (header): Copy CA and Buy */
.coin-pill { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 3px 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 253, 249, .72); box-shadow: var(--shadow-sm); }
.coin-name { font-size: 12px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-right: 4px; }
.coin-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; font: 500 12px/1 var(--sans); color: var(--ink-2); }
.coin-btn:hover { background: var(--paper-2); color: var(--ink); }
.coin-btn.is-buy { background: var(--gold-wash); color: var(--gold-ink); }
.coin-btn.is-buy:hover { background: var(--gold-wash-2); }
.coin-btn[aria-disabled="true"] { cursor: default; }
.coin-btn .soon { padding: 3px 4px; font-size: 9px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px;
  font: 500 13px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; color: var(--ink);
  background: #fbf9f4; border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
  transition: background .2s, border-color .2s, box-shadow .2s, transform .1s, opacity .2s;
}
.btn:hover:not(:disabled) { background: var(--white); border-color: rgba(60, 44, 20, .36); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; }
.btn-gold, .btn-primary {
  height: 48px; padding: 0 22px; font-size: 15px; font-weight: 500; border: 0; border-radius: var(--r-md);
  background: var(--gold); color: #1b1408; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 10px 24px -12px rgba(201, 149, 28, .7);
}
.btn-gold:hover:not(:disabled), .btn-primary:hover:not(:disabled) { background: #f5cd5c; }
.btn-gold:disabled, .btn-primary:disabled { background: var(--paper-3); color: var(--ink-3); box-shadow: none; opacity: 1; }
.btn-dark { height: 44px; padding: 0 18px; font-size: 14px; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r-md); }
.btn-dark:hover:not(:disabled) { background: #2a251d; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-block { width: 100%; }
.hdr-connect { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; border-radius: var(--r-sm); background: #fbf9f4; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.hdr-connect:hover:not(:disabled) { background: var(--white); }
.btn-account { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.02em; }
.btn-account::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.link-u { text-decoration: underline; text-decoration-color: var(--gold-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link-u:hover { text-decoration-color: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink-3); padding-bottom: 1px; }
.arrow-link:hover { color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------------------ cards and fields */
.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(14px) saturate(1.05); backdrop-filter: blur(14px) saturate(1.05); }
.card-solid { background: var(--white); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-t { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1.5 var(--sans); letter-spacing: -.01em; }
.card-t::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.card-meta { font: 400 11.5px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.field-l { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.field {
  display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 18px; border-radius: var(--r-lg);
  background: rgba(240, 235, 225, .55); border: 1px solid var(--line-strong); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field:focus-within { border-color: rgba(60, 44, 20, .45); background: rgba(250, 247, 241, .9); box-shadow: 0 0 0 4px rgba(242, 198, 76, .18); }
.field .pre { font: 400 26px/1 var(--sans); color: var(--ink-3); align-self: flex-start; padding-top: 18px; }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 30px/1 var(--mono); letter-spacing: -.03em; color: var(--ink); }
.field input::placeholder { color: var(--ink-4); }
.field .post { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.hint { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.hint b { color: var(--ink-2); font-weight: 500; }
.hint.is-error { color: var(--red); }
.hint.is-ok { color: var(--green); }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-xs); font: 500 12px/1 var(--mono); color: var(--ink-2); background: rgba(255, 253, 249, .6); border: 1px solid var(--line); transition: background .2s, border-color .2s, color .2s; }
.chip:hover:not(:disabled) { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--gold-wash); border-color: var(--gold-2); color: var(--gold-ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .02em; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); }
.pill.is-gold { background: var(--gold-wash); color: var(--gold-ink); border-color: rgba(201, 149, 28, .35); }
.pill.is-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse-red 2s var(--ease) infinite; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 67, 47, .5); } 60% { box-shadow: 0 0 0 5px rgba(180, 67, 47, 0); } }
.tag-sample { font: 500 10.5px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); padding: 4px 6px; border: 1px dashed var(--line-strong); border-radius: var(--r-xs); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line-strong); }
.tab { position: relative; padding: 0 0 12px; font: 500 15px/1.5 var(--sans); color: var(--ink-3); letter-spacing: -.01em; }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold-2); }
.switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--paper-3); border: 1px solid var(--line-strong); transition: background .2s; flex: none; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
[aria-checked="true"] > .switch { background: var(--gold-2); border-color: var(--gold-3); }
[aria-checked="true"] > .switch .switch-knob { transform: translateX(14px); }

/* asset logos beside amounts */
.asset { display: inline-flex; align-items: center; gap: 6px; }
.asset img, .asset svg { width: 16px; height: 16px; border-radius: 50%; }
.eth { color: #5a6378; }

/* select (model pickers) */
.sel { appearance: none; -webkit-appearance: none; padding: 4px 26px 4px 8px; border-radius: var(--r-xs); border: 1px solid transparent; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316130e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; font: 500 13px/1.4 var(--sans); color: var(--ink); cursor: pointer; max-width: 60%; text-overflow: ellipsis; }
.sel:hover { border-color: var(--line); background-color: rgba(255, 253, 249, .7); }

/* ------------------------------------------------------------------ popovers and menus */
.popover { position: fixed; z-index: 60; top: var(--pop-top, 64px); right: var(--pop-right, 16px); min-width: 240px; padding: 6px; background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink-2); text-align: left; }
.menu-item:hover:not(:disabled) { background: var(--paper-2); color: var(--ink); }
.menu-ico { width: 18px; display: inline-grid; place-items: center; color: var(--ink-3); }
.menu-label { flex: 1; }
.menu-aside { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.menu-chev { color: var(--ink-4); }
.menu-item.is-soon { opacity: .75; cursor: default; }
.soon { font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--gold-ink); background: var(--gold-wash); border: 1px solid rgba(201, 149, 28, .3); padding: 4px 6px; border-radius: 4px; }
.acct-addr { padding: 8px 10px 10px; font: 500 13px/1 var(--mono); color: var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

.picker { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); }
.picker::backdrop { background: rgba(40, 30, 15, .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 6px 22px; }
.picker-title { font: 600 18px/1.3 var(--sans); letter-spacing: -.02em; }
.picker-sub { padding: 0 22px 14px; font-size: 13px; color: var(--ink-3); }
.picker-list { display: grid; gap: 6px; padding: 0 14px 16px; }
.picker-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); text-align: left; }
.picker-item:hover { border-color: var(--line-strong); background: var(--white); }
.picker-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.picker-ico.is-blank { background: var(--paper-2); color: var(--ink-3); }
.picker-name { flex: 1; font-weight: 500; font-size: 14px; }
.picker-go { color: var(--ink-4); }
.picker-empty { padding: 0 22px 20px; font-size: 13px; color: var(--ink-2); }

.toasts { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: var(--r-md); background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 1.45; box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease); }
.toast.is-error { background: #5b1f15; }
.toast.is-ok { background: #1f2b1d; }
.toast-msg { flex: 1; }
.toast-link { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; }
.toast-x { color: rgba(250, 247, 241, .7); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.toast-x:hover { background: rgba(255, 255, 255, .1); color: var(--paper); }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ section type */
.eyebrow { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.h-section { font: 700 35px/1.1 var(--sans); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.h-sub { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.lead { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
mark.hl { color: var(--ink); background: none; position: relative; z-index: 0; padding: 0 .08em; white-space: nowrap; }
mark.hl::before { content: ''; position: absolute; z-index: -1; left: -.04em; right: -.04em; top: .1em; bottom: -.02em; background: var(--gold); border-radius: 4px 6px 5px 3px; transform: rotate(-1deg) skewX(-3deg); box-shadow: 0 6px 18px -10px rgba(201, 149, 28, .9); }

/* ------------------------------------------------------------------ footer */
.site-ftr { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--paper); }
.ftr-links { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: center; gap: 18px; padding: 34px 0 26px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ftr-links a { display: inline-flex; align-items: center; gap: 8px; }
.ftr-links a:hover { color: var(--ink); }
.ftr-links .mono { font-size: 13px; }
.ftr-base { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 0 40px; }
.ftr-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.ftr-brand img { width: 28px; height: 28px; object-fit: contain; }
.ftr-brand a { text-decoration: underline; text-decoration-color: var(--gold-2); text-underline-offset: 3px; }
.ftr-note { max-width: 470px; text-align: right; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* phone tab bar (app pages and home) */
.tabbar { display: none; }

@media (max-width: 860px) {
  :root { --gutter: 20px; --hdr-h: 64px; }
  .nav { display: none; }
  .coin-pill { display: none; }
  .brand { border-right: 0; padding-right: 0; }
  .ftr-links { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .ftr-base { flex-direction: column; }
  .ftr-note { text-align: left; }
  .tabbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(250, 247, 241, .9); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .tab-link { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; color: var(--ink-3); border-radius: var(--r-sm); }
  .tab-link[aria-current="page"] { color: var(--ink); }
  .tab-link[aria-current="page"] .tab-ico { color: var(--gold-3); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .banner { font-size: 12px; }
  .banner .hide-sm { display: none; }
  .h-section { font-size: 28px; }
}
