:root {
  --brine: #0E2A3A;
  --brine-2: #143A4F;
  --brine-3: #0A2130;
  --salt: #FBFDFF;
  --pink: #F4A3B5;
  --pink-deep: #E0718C;
  --pink-ink: #B03F62;
  --blush: #FBE1E8;
  --tear: #4CC3F0;
  --tear-ink: #12779F;
  --lilac: #C9D6FF;
  --ink-soft: #3C5869;
  --line: rgba(14, 42, 58, 0.14);
  --line-dark: rgba(251, 253, 255, 0.12);
  --display: "Shrikhand", "Georgia", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --bar-h: 60px;
  --tabs-h: 0px;
  --max: 1240px;
}

/* base, sized for phones first */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--brine); }
body {
  margin: 0; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--brine);
  color: var(--salt);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--tabs-h);
}
main { flex: 1 0 auto; display: flex; flex-direction: column; outline: 0; }
.page { flex: 1 0 auto; }
.page-about { display: flex; flex-direction: column; }
.page-about .token { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--tear); outline-offset: 3px; border-radius: 6px; }
.page-title:focus { outline: 0; }
.page-title:focus-visible { outline: 3px solid var(--tear); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--salt); color: var(--brine); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.muted { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
/* line icons drawn in the sprite take their colour from the text */
svg use { pointer-events: none; }
.toptabs svg, .bottabs svg, .more svg, .ext svg, .btn svg, .ca-ico {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.nf { fill: var(--nf, none); }
.nx { fill: currentColor; stroke: none; }

/* bar */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--bar-h);
  padding: 8px var(--gutter);
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(14, 42, 58, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--salt);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--display); font-size: 23px; line-height: 1; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.toptabs { display: none; }
.wallet {
  margin-left: auto; min-height: 44px;
  font: 700 15px var(--body); color: var(--brine); background: var(--salt);
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wallet:hover { background: #fff; }
.wallet.connected { background: var(--lilac); }

/* bottom tabs on phones */
.bottabs {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 4px 4px max(4px, env(safe-area-inset-bottom));
  background: rgba(10, 33, 48, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-dark);
}
.bottabs a {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 3px;
  min-height: 52px; padding: 4px 0; border-radius: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .01em; text-decoration: none;
  color: rgba(251,253,255,.62);
}
.bottabs svg { width: 24px; height: 24px; }
.bottabs a[aria-current="page"] { color: var(--salt); --nf: var(--pink); }
.bottabs a[aria-current="page"]::before { content: ""; position: absolute; top: -4px; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--pink); }
.bottabs a:focus-visible { outline-offset: -3px; }

/* page heads */
.page-dark { padding: 18px 0 28px; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 9vw, 54px); line-height: 1.05; }
.page-sub { margin: 0; font-size: 15px; opacity: .78; }
.quote-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ql-price { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ql-sub { width: 100%; font-size: 13px; opacity: .7; }

/* change badges */
.chg { display: inline-block; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 999px; background: rgba(251,253,255,.1); vertical-align: 1px; white-space: nowrap; }
.chg:empty { display: none; }
.chg.up { background: rgba(76,195,240,.18); color: var(--tear); }
.chg.down { background: rgba(224,113,140,.2); color: var(--pink); }

/* hero */
.hero { position: relative; display: grid; align-items: end; color: var(--salt); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,42,58,.15) 0%, rgba(14,42,58,.1) 30%, rgba(14,42,58,.92) 100%);
}
.grains { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  padding: 16px var(--gutter) 22px;
}
.wordmark {
  font-family: var(--display); font-weight: 400; margin: 0;
  font-size: clamp(72px, 22vw, 108px); line-height: .82; letter-spacing: -0.01em;
  color: var(--salt);
  text-shadow: 0 5px 0 var(--pink-deep), 0 14px 40px rgba(14,42,58,.55);
  transform: rotate(-4deg); transform-origin: left bottom;
}
.lede { max-width: 36ch; font-size: 16px; font-weight: 500; margin: 16px 0 14px; text-shadow: 0 1px 12px rgba(14,42,58,.6); }
.hero-actions { display: grid; gap: 10px; }
.hero-actions .btn { width: 100%; }
.mascot { order: -1; justify-self: center; width: auto; height: clamp(130px, 26svh, 210px); max-width: 64vw; filter: drop-shadow(0 30px 40px rgba(14,42,58,.45)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(1.5deg); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  font: 800 16px var(--body); text-decoration: none; cursor: pointer;
  border: 0; border-radius: 14px; padding: 12px 20px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-salt { background: var(--pink); color: var(--brine); box-shadow: 0 5px 0 var(--pink-deep); }
.btn-salt:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-deep); }
.btn-big { min-height: 56px; font-size: 18px; padding: 14px 28px; }
.btn-ghost { background: transparent; color: var(--brine); border: 2px solid var(--brine); }
.btn-ghost:hover { background: rgba(14,42,58,.06); }
.btn-line { background: transparent; color: var(--salt); border: 1.5px solid rgba(251,253,255,.35); }
.btn-line:hover { background: rgba(251,253,255,.08); }
.btn-dark { background: var(--brine); color: var(--salt); width: 100%; }
.btn-sm { min-height: 44px; font-size: 15px; padding: 10px 16px; }
.btn-quiet { background: rgba(251,253,255,.1); color: var(--salt); }
.btn-danger { background: transparent; color: var(--pink); border: 2px solid var(--pink); }

/* contract copy */
.ca {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 46px;
  font: 600 14px var(--body); color: var(--salt); cursor: pointer; text-align: left;
  background: rgba(14,42,58,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(251,253,255,.35); border-radius: 14px; padding: 10px 14px;
}
.ca:hover { border-color: rgba(251,253,255,.6); }
.ca-label { opacity: .75; flex: none; }
.ca-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-ico { width: 16px; height: 16px; flex: none; opacity: .7; }
.ca-done { color: var(--tear); font-weight: 700; flex: none; }
.ca-done:empty { display: none; }
.ca-plain { background: #fff; color: var(--brine); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ca-plain:hover { border-color: var(--brine); }
.ca-plain .ca-done { color: var(--tear-ink); }

/* ticker */
.ticker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--brine); border-bottom: 1px solid var(--line-dark); }
.stat { padding: 12px var(--gutter); display: grid; align-content: start; gap: 1px; border-bottom: 1px solid var(--line-dark); min-width: 0; }
.stat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat-k { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: rgba(251,253,255,.7); }
.stat-v { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-sub { font-size: 12px; opacity: .6; overflow-wrap: anywhere; }
.stat-sub:empty { display: none; }

/* cards */
.card, .mk-card {
  min-width: 0; background: var(--brine-2); border: 1px solid var(--line-dark); border-radius: 20px; padding: 14px;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(251,253,255,.06);
}
.card-light { background: #fff; color: var(--brine); border-color: var(--line); box-shadow: 0 20px 40px -28px rgba(14,42,58,.45); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.card-title, .mk-title { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.sub-title { font-size: 14px; font-weight: 800; margin: 14px 0 0; }
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--tear); }
.more svg { width: 16px; height: 16px; }
.more:hover { text-decoration: underline; }
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.mini > div { background: rgba(251,253,255,.06); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.mini dt { font-size: 12px; opacity: .7; }
.mini dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mini-light > div { background: rgba(14,42,58,.05); }

/* home */
.home-grid { display: grid; gap: 12px; padding-top: 16px; padding-bottom: 24px; }
.spark-top { display: flex; align-items: baseline; gap: 10px; }
.spark-price { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.spark-card { display: flex; flex-direction: column; }
.spark { width: 100%; height: 92px; flex: 1 0 92px; max-height: 260px; margin-top: 8px; color: var(--tear); overflow: visible; }
.spark.down { color: var(--pink); }
.cta {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 14px; align-items: center;
  padding: 16px; border-radius: 22px; color: var(--brine);
  background:
    radial-gradient(circle at 10% 15%, rgba(244,163,181,.55), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(76,195,240,.35), transparent 55%),
    var(--salt);
}
.cta img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(14,42,58,.3)); }
.cta h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.cta p { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }
.cta-actions { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 10px; }
.cta .btn-line { color: var(--brine); border-color: rgba(14,42,58,.35); }
.cta .btn-line:hover { background: rgba(14,42,58,.06); }

/* market: chart, trades, holders */
.market { display: grid; gap: 12px; }
.mk-head { margin-bottom: 8px; }
.mk-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; background: rgba(251,253,255,.07); border-radius: 12px; padding: 3px; }
.seg button { min-height: 40px; min-width: 44px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--salt); opacity: .72; font: 700 14px var(--body); cursor: pointer; }
.seg button:hover { opacity: 1; }
.seg button[aria-pressed="true"] { background: var(--salt); color: var(--brine); opacity: 1; }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; min-height: 44px; }
.mk-chart { height: 320px; width: 100%; }
.mk-note { margin: 6px 0 0; font-size: 13px; color: var(--pink); }
.mk-note:empty { display: none; }
.mk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 6px; }
.mk-src { margin: 0; font-size: 12.5px; opacity: .65; }
.ext { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--tear); text-decoration: none; }
.ext svg { width: 16px; height: 16px; }
.ext:hover { text-decoration: underline; }
.mk-side-cols { display: grid; gap: 12px; min-width: 0; align-content: start; }
.mk-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.mk-scroll { max-height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.mk-empty { padding: 12px 2px; font-size: 14px; opacity: .7; }
.mk-trade { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px; grid-template-areas: "side amt usd when" "side who who when"; column-gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-dark); font-variant-numeric: tabular-nums; }
.mk-trade:last-child { border-bottom: 0; }
.mk-side { grid-area: side; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 5px 0; border-radius: 8px; }
.is-buy .mk-side { background: rgba(76,195,240,.16); color: var(--tear); }
.is-sell .mk-side { background: rgba(224,113,140,.18); color: var(--pink); }
.mk-amt { grid-area: amt; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-usd { grid-area: usd; font-weight: 700; font-size: 14px; }
.mk-trade .mk-who { grid-area: who; font-size: 12.5px; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-when { grid-area: when; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; min-height: 44px; font-size: 13px; opacity: .75; text-decoration: none; }
.mk-when:hover { opacity: 1; text-decoration: underline; }
.mk-list-light .mk-trade { border-bottom-color: var(--line); }
.mk-list-light .is-buy .mk-side { background: rgba(76,195,240,.18); color: var(--tear-ink); }
.mk-list-light .is-sell .mk-side { background: rgba(224,113,140,.16); color: var(--pink-ink); }
.mk-list-light .mk-empty { color: var(--ink-soft); opacity: 1; }

/* activity windows */
.wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.win { display: grid; gap: 1px; align-content: start; background: rgba(251,253,255,.05); border: 1px solid var(--line-dark); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.win-k { font-size: 13px; font-weight: 800; letter-spacing: .03em; opacity: .75; }
.win-v { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.win-s { font-size: 12.5px; opacity: .72; }
.win-dim { opacity: .5; }

/* activity page */
.act-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 10px; }
.act-foot .mk-src:empty { display: none; }
#act-list { margin-top: 8px; }

/* holders */
.mk-holder { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; min-height: 48px; padding: 6px 0 12px; border-bottom: 1px solid var(--line-dark); font-size: 14px; font-variant-numeric: tabular-nums; }
.mk-holder:last-child { border-bottom: 0; }
.mk-holder.is-me { background: rgba(244,163,181,.08); border-radius: 10px; }
.mk-rank { font-weight: 800; opacity: .55; text-align: right; }
.mk-holder .mk-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; display: block; line-height: 32px; min-width: 0; }
.mk-holder .mk-who:hover { text-decoration: underline; }
.mk-hamt { opacity: .7; font-size: 13px; }
.mk-pct { font-weight: 800; text-align: right; }
.mk-bar { position: absolute; left: 32px; right: 0; bottom: 5px; height: 4px; border-radius: 99px; background: rgba(251,253,255,.07); }
.mk-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--tear), var(--pink)); }
.page-dark .mk-card + .mk-card { margin-top: 12px; }
.dist { display: flex; height: 16px; margin: 14px 0 12px; border-radius: 999px; overflow: hidden; background: rgba(251,253,255,.08); }
.dist i { display: block; height: 100%; transition: width .4s ease; }
.d-pool { width: var(--pool, 0%); background: var(--lilac); }
.d-top { width: var(--top, 0%); background: var(--pink); }
.d-rest { width: var(--rest, 0%); background: var(--tear); }
.dist-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.dist-keys > div { min-width: 0; }
.dist-keys dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .75; }
.dist-keys dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.k { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.k-pool { background: var(--lilac); }
.k-top { background: var(--pink); }
.k-rest { background: var(--tear); }

/* trade page */
.page-trade {
  color: var(--brine); padding: 18px 0 28px;
  background:
    radial-gradient(circle at 8% 4%, rgba(244,163,181,.4), transparent 40%),
    radial-gradient(circle at 92% 96%, rgba(76,195,240,.28), transparent 45%),
    var(--salt);
}
.page-trade .page-sub { color: var(--ink-soft); opacity: 1; }
.trade-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.quote-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qp { display: grid; gap: 1px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.qp-k { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.qp-v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.page-trade .chg { background: rgba(14,42,58,.07); }
.page-trade .chg.up { background: rgba(76,195,240,.2); color: var(--tear-ink); }
.page-trade .chg.down { background: rgba(224,113,140,.18); color: var(--pink-ink); }
.trade-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.me-id { font-size: 13px; font-weight: 700; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.me-bal { margin: 4px 0 0; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.trade-note { display: grid; gap: 10px; }
.trade-note p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.swap {
  background: var(--brine); color: var(--salt);
  border-radius: 24px; padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(14,42,58,.5), inset 0 1px 0 rgba(251,253,255,.15);
  display: grid; gap: 12px; min-width: 0;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(251,253,255,.08); border-radius: 14px; padding: 4px; }
.tab { min-height: 44px; font: 800 16px var(--body); color: var(--salt); background: transparent; border: 0; border-radius: 10px; padding: 10px; cursor: pointer; opacity: .7; }
.tab[aria-selected="true"] { background: var(--salt); color: var(--brine); opacity: 1; }
.field { display: grid; gap: 6px; background: rgba(251,253,255,.07); border: 1px solid var(--line-dark); border-radius: 18px; padding: 12px 14px; }
.field:focus-within { border-color: var(--tear); }
.field-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; opacity: .8; }
.field-row { display: flex; align-items: center; gap: 10px; }
.field input, .out {
  flex: 1; min-width: 0; width: 100%;
  font: 800 26px var(--body); color: var(--salt); background: transparent; border: 0; outline: 0; padding: 0;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis;
}
.unit { flex: none; font-weight: 800; background: rgba(251,253,255,.12); border-radius: 999px; padding: 6px 12px; font-size: 15px; }
.field-foot { font-size: 13px; opacity: .7; min-height: 1.2em; }
.field-foot:empty { display: none; }
.field-out { background: rgba(76,195,240,.1); }
.link-btn { font: 700 14px var(--body); color: var(--tear); background: none; border: 0; cursor: pointer; padding: 4px 0; min-height: 32px; }
.slip { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.slip legend { float: left; margin-right: 4px; opacity: .8; padding: 0; }
.slip label span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(251,253,255,.25); cursor: pointer; font-weight: 700; }
.slip input { position: absolute; opacity: 0; pointer-events: none; }
.slip input:checked + span { background: var(--tear); color: var(--brine); border-color: var(--tear); }
.slip input:focus-visible + span { outline: 3px solid var(--tear); outline-offset: 2px; }
.btn-go { width: 100%; min-height: 54px; background: var(--pink); color: var(--brine); box-shadow: 0 5px 0 var(--pink-deep); font-size: 18px; }
.btn-go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-deep); }
.btn-go:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.status { margin: 0; font-size: 14px; min-height: 1.4em; overflow-wrap: anywhere; }
.status:empty { min-height: 0; margin-top: -12px; }
.status.err { color: var(--pink); }
.status.ok { color: var(--tear); }

/* about */
.page-about { color: var(--brine); }
.how { padding: 22px 0 26px; background: var(--lilac); }
.how .page-title { margin-bottom: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.steps .ill { width: 84px; height: 84px; justify-self: center; }
.steps .ill-wide { width: 96px; height: 62px; }
.steps h3 { font-size: 18px; margin-bottom: 2px; }
.steps h3::before { content: counter(step) "."; font-family: var(--display); font-weight: 400; color: var(--pink-deep); margin-right: 8px; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 34ch; font-size: 15px; }
.steps a { font-weight: 700; color: var(--brine); }
.token { padding: 22px 0 28px; background: var(--salt); }
.token h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 7vw, 44px); line-height: 1.05; margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 18px; border-top: 2px solid var(--brine); }
.facts > div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: 13px; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.fact-sub { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.fact-sub:empty { display: none; }
.acct-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.facts .ca { margin-top: 4px; }
.elsewhere { display: grid; gap: 10px; }

/* foot */
.foot { display: grid; justify-items: start; gap: 12px; padding: 20px var(--gutter) 22px; background: var(--brine-3); color: var(--salt); border-top: 1px solid var(--line-dark); }
.foot p { margin: 0; max-width: 64ch; font-size: 13.5px; opacity: .78; }
.ca-foot { background: transparent; font-size: 13px; min-height: 44px; }

/* live trade toast */
.toast {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--tabs-h) + 12px);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--salt); color: var(--brine);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
  transform: translate(-50%, 16px); opacity: 0;
  transition: transform .26s cubic-bezier(.2,.9,.3,1.1), opacity .2s ease;
  pointer-events: none;
}
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast-side { flex: none; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: rgba(76,195,240,.25); color: var(--tear-ink); }
.toast.is-sell .toast-side { background: rgba(224,113,140,.22); color: var(--pink-ink); }
.toast-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* sheet: a bottom sheet on phones, a card on wider screens */
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0;
  width: 100%; max-width: none; max-height: 92svh;
  border: 0; padding: 0; overflow: auto; overscroll-behavior: contain;
  border-radius: 28px 28px 0 0;
  background: var(--brine); color: var(--salt);
  box-shadow: 0 -20px 60px rgba(14,42,58,.35);
}
.sheet::backdrop { background: rgba(14,42,58,.6); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-up .34s cubic-bezier(.2,.9,.3,1.05); }
.sheet[open]::backdrop { animation: fade .25s ease; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet.bright { background: var(--salt); color: var(--brine); }
.sheet-body { position: relative; display: grid; gap: 16px; padding: 12px 20px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.sheet-body::before { content: ""; justify-self: center; width: 44px; height: 5px; border-radius: 999px; background: currentColor; opacity: .25; }
.sheet .x {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(251,253,255,.1); color: inherit; font: 700 22px/1 var(--body);
}
.sheet.bright .x { background: rgba(14,42,58,.08); }
.view { display: grid; gap: 16px; }
.view[hidden] { display: none; }
.view-art { justify-self: center; width: 220px; height: 150px; }
/* A white sticker edge keeps the dark outlines readable on the dark sheet. */
.sheet:not(.bright) .view-art { filter: drop-shadow(0 0 1.2px #FBFDFF) drop-shadow(0 0 1.2px #FBFDFF) drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.view h2 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.05; text-align: center; }
.view-lede { margin: -6px 0 0; text-align: center; opacity: .8; }
.rows { margin: 0; display: grid; background: rgba(251,253,255,.06); border: 1px solid var(--line-dark); border-radius: 18px; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-dark); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { font-size: 14px; opacity: .75; flex: none; }
.rows dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rows .big dd { font-size: 20px; color: var(--tear); }
.actions { display: grid; gap: 10px; }
.actions .btn { width: 100%; }
.fine { margin: 0; font-size: 13px; text-align: center; opacity: .7; }

.view-pending .view-art .shaker { transform-origin: 60px 100px; animation: shake .9s ease-in-out infinite; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.view-pending .view-art .fall { animation: drop 1.2s ease-in infinite; }
.view-pending .view-art .fall:nth-child(2) { animation-delay: .3s; }
.view-pending .view-art .fall:nth-child(3) { animation-delay: .6s; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(16px); opacity: 0; } }

.done-art { position: relative; justify-self: center; width: 200px; height: 200px; }
.done-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(14,42,58,.25)); }
.done-amount {
  margin: 0; text-align: center; font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 11vw, 52px); line-height: 1; overflow-wrap: anywhere;
  color: var(--brine); text-shadow: 0 4px 0 var(--pink);
}
.sheet.bright .view-lede { color: var(--ink-soft); opacity: 1; }
.sheet.bright .btn-ghost { color: var(--brine); border-color: var(--brine); }
.burst { position: absolute; inset: -40px -60px; pointer-events: none; overflow: visible; }
.burst i {
  position: absolute; left: 50%; top: 45%; width: var(--s); height: var(--s);
  background: var(--c); border: 2px solid var(--brine); border-radius: 3px;
  animation: pop 1.4s cubic-bezier(.15,.7,.3,1) forwards;
}
@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); opacity: 0; }
}
.acct-id { margin: 0; text-align: center; font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }

/* phones: the bottom tab bar holds the pages */
@media (max-width: 959px) {
  :root { --tabs-h: calc(61px + env(safe-area-inset-bottom)); }
}

/* wider phones and small tablets */
@media (min-width: 640px) {
  body { font-size: 17px; }
  .wallet { max-width: 240px; padding: 10px 18px; }
  .hero-inner { padding-top: 24px; padding-bottom: 28px; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .hero-actions .btn { width: auto; }
  .lede { font-size: 19px; }
  .card, .mk-card { padding: 18px; }
  .swap { padding: 20px; border-radius: 28px; }
  .field input, .out { font-size: 30px; }
  .mk-chart { height: 380px; }
  .wins { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat, .stat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-last-child(-n+3) { border-bottom: 0; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-column: 1 / -1; grid-template-columns: 96px minmax(0, 1fr) auto; padding: 18px 22px; }
  .cta img { width: 96px; height: 96px; }
  .cta-actions { grid-column: auto; display: flex; margin-top: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
  .steps li { grid-template-columns: 1fr; grid-template-rows: 118px auto; align-items: end; }
  .steps li > div { align-self: start; }
  .steps .ill { width: 110px; height: 110px; justify-self: start; }
  .steps .ill-wide { width: 180px; height: 110px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts .wide { grid-column: span 2; }
  .elsewhere { display: flex; flex-wrap: wrap; }
  .foot { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }

  .sheet { inset: 0; margin: auto; width: min(440px, calc(100% - 32px)); max-height: 88svh; border-radius: 28px; box-shadow: 0 40px 80px -20px rgba(14,42,58,.6); }
  .sheet[open] { animation: card-in .26s cubic-bezier(.2,.9,.3,1.1); }
  @keyframes card-in { from { transform: translateY(16px) scale(.97); opacity: 0; } }
  .sheet-body { padding: 26px; }
  .sheet-body::before { display: none; }
}

/* laptops and up: tabs live in the header */
@media (min-width: 960px) {
  :root { --bar-h: 68px; }
  .bottabs { display: none; }
  .bar { gap: 20px; }
  .toptabs { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 14px; background: rgba(251,253,255,.06); }
  .toptabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; color: rgba(251,253,255,.75); }
  .toptabs a:hover { color: var(--salt); background: rgba(251,253,255,.06); }
  .toptabs a[aria-current="page"] { background: var(--salt); color: var(--brine); }
  .wallet { margin-left: 0; }
  .hero { min-height: min(62svh, 560px); }
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 24px; padding-top: 32px; padding-bottom: 36px; }
  .wordmark { font-size: clamp(120px, 13vw, 200px); text-shadow: 0 6px 0 var(--pink-deep), 0 14px 40px rgba(14,42,58,.55); }
  .lede { font-size: 20px; margin: 24px 0 18px; }
  .mascot { order: 0; height: auto; width: min(100%, 420px); max-width: none; max-height: min(52svh, 440px); object-fit: contain; justify-self: end; }
  .btn-salt:hover { transform: translateY(-1px); }
  .ticker { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; }
  .stat, .stat:nth-child(odd), .stat:nth-child(3n) { padding: 16px clamp(14px, 1.6vw, 28px); border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .stat:last-child { border-right: 0; }
  .stat-v { font-size: clamp(17px, 1.6vw, 22px); }
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 22px; padding-bottom: 32px; gap: 16px; }
  .page-dark, .page-trade { padding: 26px 0 40px; }
  .ql-sub { width: auto; }
  .market { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 16px; }
  .mk-chart { height: clamp(420px, calc(100svh - 330px), 600px); }
  .mk-scroll { max-height: 380px; }
  .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); grid-template-areas: "quote side" "swap side"; gap: 16px 28px; align-items: start; }
  .quote-pair { grid-area: quote; }
  .swap { grid-area: swap; }
  .trade-side { grid-area: side; }
  .how { padding: 32px 0 36px; }
  .token { padding: 32px 0 40px; }
  .facts dd { font-size: 19px; }
  .toast { left: auto; right: 24px; bottom: 24px; transform: translateY(16px); }
  .toast.in { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot, .view-pending .view-art .shaker, .view-pending .view-art .fall { animation: none; }
  .sheet[open], .sheet[open]::backdrop { animation: none; }
  .burst { display: none; }
  .toast, .dist i, .btn { transition: none; }
}

/* pay with / receive: NEAR or TEAR */
.coin-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.coin-pick #coin-label { opacity: .8; }
.coin-seg { display: inline-flex; background: rgba(251,253,255,.08); border-radius: 12px; padding: 3px; }
.coin-seg button { min-height: 40px; min-width: 64px; padding: 6px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--salt); opacity: .7; font: 800 14px var(--body); cursor: pointer; }
.coin-seg button[aria-pressed="true"] { background: var(--tear); color: var(--brine); opacity: 1; }
.coin-seg button:focus-visible { outline: 3px solid var(--tear); outline-offset: 2px; }

/* lore */
.lore { padding: 22px 0 26px; background: var(--blush); color: var(--brine); }
.lore-grid { display: grid; gap: 8px; align-items: center; }
.lore-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-ink); }
.lore .page-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 7vw, 48px); line-height: 1.05; margin: 0 0 12px; }
.lore-copy p:not(.lore-kicker) { margin: 0 0 12px; font-size: 16px; line-height: 1.55; max-width: 60ch; }
.lore-art { width: min(220px, 56vw); height: auto; justify-self: center; filter: drop-shadow(0 12px 18px rgba(14,42,58,.25)); }
.lore-h { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 14px 0 10px; }
.salt-dict { display: grid; gap: 10px; margin: 0; }
.salt-dict > div { background: var(--salt); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.salt-dict dt { font-weight: 800; font-size: 17px; color: var(--pink-ink); }
.salt-dict dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft); }
.salt-quote { margin: 16px 0 0; padding: 14px 16px; border-left: 4px solid var(--tear); background: rgba(76,195,240,.12); border-radius: 0 12px 12px 0; font-family: var(--display); font-size: clamp(20px, 4.6vw, 26px); line-height: 1.2; }
.lore-card { background: var(--blush); color: var(--brine); }
.lore-card .lore-line { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.lore-card .more { color: var(--pink-ink); }
@media (min-width: 640px) {
  .salt-dict { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lore-card { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .lore { padding: 36px 0 40px; }
  .lore-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .lore-art { width: 280px; }
  .salt-dict { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
