/* MemeDAQ · board.css — v2 chrome + board components (docs/03 §4), light palette ①「晨雾蓝」
   floating glass header + mobile sheet · ticker strip · navy footer · split-flap v2 (navy tiles, gold digits) ·
   index board card · crosshair / price tags / callouts / ruler / skyline · sparkline · empty state + 开盘准备中 banner ·
   stat tile · board rows, bars, coins, token logos · mascot · v1 bezel / screen / desk · tx progress box · wallet menu. */

:root { --hdr-side: max(10px, calc(var(--gutter) - 12px)); --hdr-maxw: calc(var(--maxw) - 2 * var(--gutter) + 24px); }

/* ════════════════════════════════════════════════════════════════════
   header — floating glass pill
   ════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding: var(--header-top) var(--hdr-side) 0;
  pointer-events: none;
}
.hdr {
  pointer-events: auto;
  position: relative;
  max-width: var(--hdr-maxw);
  height: var(--header-h);
  margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 0 9px 0 11px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .66));
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 0 0 1px rgba(15, 35, 80, .06), 0 1px 0 #fff inset, 0 14px 36px -20px rgba(15, 35, 80, .38);
  transition: background .3s, box-shadow .3s;
}
.is-scrolled .hdr { background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .84)); box-shadow: 0 0 0 1px rgba(15, 35, 80, .08), 0 1px 0 #fff inset, 0 18px 44px -20px rgba(15, 35, 80, .45); }

/* brand: gold coin mark + MEMEDAQ */
.brand { display: flex; align-items: center; gap: 10px; flex: none; padding: 3px 10px 3px 0; border-radius: var(--r-pill); }
.brand-mark, .logo-mark {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFF1C9 0%, #FFD98A 24%, #F0B64A 56%, #B98126 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 243, 220, .5), inset 0 -3px 6px rgba(110, 66, 10, .35), 0 4px 12px -4px rgba(224, 166, 58, .6), 0 0 0 1px rgba(150, 100, 20, .25);
}
.brand-mark::after, .logo-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(110, 66, 10, .45); }
.brand-mark img, .logo-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.brand-mark.has-img, .logo-mark.has-img { background: none; box-shadow: none; }
.brand-mark.has-img::after, .logo-mark.has-img::after { display: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.brand-name b span { color: var(--accent); }
.brand-name small { margin-top: 5px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--ink-3); }

/* nav */
.nav { display: flex; align-items: center; gap: 2px; margin: 0 4px 0 auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  border-radius: var(--r-pill); color: var(--ink-2); font-weight: 500; font-size: 14.5px; white-space: nowrap; flex: none;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(15, 35, 80, .045); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--accent-softer); box-shadow: inset 0 0 0 1px rgba(47, 91, 255, .14); }
.nav a[aria-current="page"]::before { content: ""; width: 5px; height: 5px; border-radius: 1px; margin-right: 7px; background: var(--accent); transform: rotate(45deg); }
.hdr-r { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; min-width: 0; }
.nav + .hdr-r { margin-left: 0; }

/* chain badge */
.chain {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(255, 255, 255, .6);
}
.chain i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); flex: none; color: var(--gold-2); box-shadow: 0 0 0 3px var(--gold-soft); }
.chain .blk { color: var(--ink-3); font-size: 11px; }
.chain .blk:empty { display: none; }
.chain[data-state="ok"] i { background: var(--up); color: var(--up); box-shadow: none; animation: pulse 2.4s ease-out infinite; }
.chain[data-state="retrying"] i { background: var(--warn); color: var(--warn); box-shadow: none; animation: blink 1s ease-in-out infinite; }
.chain[aria-disabled="true"] { cursor: default; }
.chain[data-state="wrongnet"] { color: var(--down-ink); border-color: rgba(229, 72, 77, .4); background: #FFF3F3; cursor: pointer; }
.chain[data-state="wrongnet"] i { background: var(--down); box-shadow: none; }

/* wallet button */
.wallet-btn { max-width: 210px; }
.wallet-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); flex: none; }
.wallet-btn .wtxt { overflow: hidden; text-overflow: ellipsis; }
.wallet-btn .mono { font-family: var(--f-mono); font-weight: 600; letter-spacing: 0; }
.wallet-btn .w-av { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: none; margin-left: -8px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.wallet-btn .w-av svg { width: 100%; height: 100%; }

/* menu button (mobile) */
.menu-btn { display: none; position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); flex: none; box-shadow: 0 4px 12px -8px rgba(15, 35, 80, .4); }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn i:nth-child(1) { top: 15px; }
.menu-btn i:nth-child(2) { top: 22px; right: 16px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { top: 18.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { top: 18.5px; right: 12px; transform: rotate(-45deg); }

/* mobile sheet */
.mnav {
  pointer-events: auto;
  position: absolute; left: var(--hdr-side); right: var(--hdr-side);
  top: calc(var(--header-top) + var(--header-h) + 8px);
  padding: 8px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(248, 250, 254, .97));
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px -24px rgba(11, 27, 63, .5);
  animation: pop .22s var(--ease);
}
.mnav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--r); font-size: 17px; font-weight: 700; color: var(--ink); }
.mnav a small { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--ink-3); }
.mnav a:hover { background: var(--bg-2); }
.mnav a[aria-current="page"] { background: var(--accent-softer); color: var(--accent-deep); box-shadow: inset 0 0 0 1px rgba(47, 91, 255, .14); }
.mnav a[aria-current="page"] small { color: var(--accent); }
.mnav .mnav-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.mnav .mnav-foot .chain { display: inline-flex; }

@media (max-width: 1120px) { .nav a { padding: 0 11px; } .chain .blk { display: none; } }
@media (max-width: 980px) {
  .nav { display: none; }
  .nav + .hdr-r { margin-left: auto; }
  .menu-btn { display: block; }
  .hdr-r > .chain:not([data-state="wrongnet"]) { display: none; }
  .hdr { padding: 0 7px 0 9px; }
}
@media (max-width: 420px) {
  .brand-name small { display: none; }
  .brand-name b { font-size: 15px; letter-spacing: .05em; }
  .brand-mark { width: 34px; height: 34px; }
  .brand { gap: 8px; padding-right: 4px; }
  .hdr-r > .chain[data-state="wrongnet"] .ctxt { display: none; }
  .wallet-btn { padding: 0 13px; max-width: 150px; }
  .wallet-btn > .ico { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   ticker strip (glass strip under the header)
   ════════════════════════════════════════════════════════════════════ */
.tape {
  position: relative; overflow: hidden;
  display: flex; align-items: center; height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .56));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 1px rgba(15, 35, 80, .06), 0 8px 22px -18px rgba(15, 35, 80, .35);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.tape.tape-site {
  width: calc(100% - 2 * var(--hdr-side) - 24px);
  max-width: calc(var(--hdr-maxw) - 24px);
  margin: 10px auto 0;
}
.tape-tag {
  position: relative; z-index: 2; flex: none; height: 100%;
  display: flex; align-items: center; padding: 0 4px 0 5px;
}
.tape-tag .tag {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px;
  border-radius: 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  color: #fff; background: linear-gradient(180deg, #1B2C5E, #0B1B3F);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 10px -6px rgba(11, 27, 63, .7);
}
.tape-tag .tag svg { width: 13px; height: 13px; color: var(--gold); }
.tape-tag .tag.live { color: var(--up-ink); background: #EAF8F1; box-shadow: inset 0 0 0 1px rgba(18, 168, 112, .28); font-family: var(--f-mono); letter-spacing: .12em; }
.tape-tag .tag.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); color: var(--up); animation: pulse 1.6s ease-out infinite; }
/* v1 markup (.live) still used by some pages */
.live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); color: var(--up-ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); color: var(--up); animation: pulse 1.6s ease-out infinite; }
.live.idle { color: var(--ink-3); }
.live.idle i { background: var(--gold-2); color: var(--gold-2); animation: blink 2.4s ease-in-out infinite; }
.tape-view {
  flex: 1; min-width: 0; height: 100%; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 48px), transparent);
}
.tape-track { display: flex; white-space: nowrap; will-change: transform; animation: tape var(--tape-dur, 60s) linear infinite; }
.tape-group { display: flex; flex: none; }
.tape:hover .tape-track, .tape:focus-within .tape-track { animation-play-state: paused; }
.tape-track.static { animation: none; }
.tape-item { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 20px; position: relative; font-family: var(--f-mono); font-size: 12.5px; line-height: 1; }
.tape-item::before { content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 1px; background: var(--accent-2); opacity: .7; transform: rotate(45deg); }
.tape-item b { font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.tape-item .v { color: var(--ink-2); }
.tape-item .up, .tape-item .down { font-weight: 600; }
.tape-item.fact b { font-family: var(--f-body); font-weight: 700; color: var(--accent-deep); letter-spacing: 0; font-size: 12.5px; }
.tape-item.fact .v { font-family: var(--f-body); font-size: 12.5px; color: var(--ink-2); }
.tape-item .muted { color: var(--ink-3); }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape-view { overflow-x: auto; scrollbar-width: none; }
  .tape-view::-webkit-scrollbar { display: none; }
  .tape-track { animation: none !important; transform: none !important; }
}
html.rm .tape-track { animation: none !important; }
@media (max-width: 600px) { .tape { height: 36px; border-radius: 12px; } .tape.tape-site { width: calc(100% - 2 * var(--hdr-side)); } .tape-item { padding: 0 16px; } .tape-tag .tag { height: 26px; padding: 0 10px 0 8px; } }

/* ════════════════════════════════════════════════════════════════════
   footer — the one navy band of the page
   ════════════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative; flex: none; overflow: hidden; isolation: isolate;
  margin-top: clamp(56px, 8vw, 110px); padding: 0 0 26px;
  color: var(--on-navy);
  border-radius: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) 0 0;
  background:
    radial-gradient(900px 420px at 88% -6%, rgba(47, 91, 255, .42), transparent 62%),
    radial-gradient(680px 360px at -4% 104%, rgba(255, 196, 84, .13), transparent 62%),
    linear-gradient(180deg, #12245A 0%, #0B1B3F 42%, #081431 100%);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 0%, #000 10%, transparent 70%);
}
.site-footer ::selection { background: rgba(255, 210, 122, .35); color: #fff; }
.site-footer :focus-visible { outline-color: var(--gold); }
.f-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: clamp(36px, 5vw, 60px) 0 clamp(28px, 3.4vw, 40px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.f-hero h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.015em; line-height: 1.25; }
.f-hero h2 em { font-style: normal; color: var(--gold); }
.f-hero p { margin-top: 8px; color: var(--on-navy-2); font-size: 14.5px; max-width: 520px; }
.f-hero .row { gap: 10px; }
.btn-onnavy { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.btn-onnavy:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); transform: translateY(-1px); }
.f-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px 36px; padding-top: 32px; }
.f-disclaimer { align-self: start; padding: 2px 0; color: var(--on-navy-2); font-family: var(--f-mono); font-size: 15px; font-weight: 600; letter-spacing: .14em; line-height: 1.7; }
.disclose { display: grid; gap: 9px; padding: 2px 0; }
.disclose li { position: relative; padding-left: 18px; font-size: 13px; color: var(--on-navy-2); line-height: 1.7; }
.disclose li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 5px; height: 5px; border-radius: 1px; background: var(--gold); opacity: .8; transform: rotate(45deg); }
.disclose a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .1); }
.fgrid h2 { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: 12px; }
.fgrid a, .fgrid .fitem { display: block; width: fit-content; font-size: 14px; color: var(--on-navy); padding: 4px 0; transition: color .15s; }
.fgrid a:hover { color: var(--gold); }
.fgrid .fitem { color: var(--on-navy-2); }
.fgrid .fitem small { font-size: 12px; margin-left: 6px; color: var(--on-navy-3); }
.fgrid .fbrand .brand { display: flex; width: auto; padding: 0; }
.fbrand .brand-name b { color: #fff; }
.fbrand .brand-name b span { color: var(--gold); }
.fbrand .brand-name small { color: var(--on-navy-3); }
.fbrand p { font-size: 13.5px; color: var(--on-navy-2); margin-top: 14px; max-width: 360px; line-height: 1.75; }
.fbot { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: var(--on-navy-3); font-family: var(--f-mono); letter-spacing: .02em; }
.f-giant {
  display: block; margin: 22px auto -0.16em; text-align: center; user-select: none; pointer-events: none;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.05em; line-height: .8;
  font-size: clamp(64px, 16.5vw, 240px);
  background: linear-gradient(180deg, rgba(160, 185, 255, .2), rgba(110, 155, 255, 0) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 860px) {
  .f-top { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
  .fbrand { grid-column: 1 / -1; }
  .fgrid a, .fgrid .fitem { font-size: 13.5px; }
}
@media (max-width: 480px) { .fbot { flex-direction: column; } .f-hero .row { width: 100%; } .f-hero .row .btn { flex: 1; } }

/* ════════════════════════════════════════════════════════════════════
   split-flap v2 — navy tiles, hinge line, warm-gold mono digits
   ════════════════════════════════════════════════════════════════════ */
.flaps {
  --flap-ink: linear-gradient(180deg, #FFEBC0 0%, #FFD27A 46%, #F0B652 100%);
  --sep-c: var(--navy);
  display: flex; align-items: center; justify-content: center; gap: .09em;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; max-width: 100%;
}
.flaps.lg { font-size: clamp(48px, 7.4vw, 104px); }
.flaps.sm { font-size: clamp(30px, 3.6vw, 46px); }
.flaps.xs { font-size: clamp(22px, 2.6vw, 30px); }
.flaps.left { justify-content: flex-start; }
.on-navy .flaps, .flaps.on-navy { --sep-c: var(--gold); }
@media (max-width: 620px) { .flaps { font-size: min(12vw, 56px); } .flaps.lg { font-size: min(13vw, 64px); } }
.flap {
  position: relative; flex: none; width: .68em; height: 1.08em;
  font-family: var(--f-mono); font-weight: 800; color: var(--gold);
  perspective: 5em; border-radius: .12em;
  box-shadow: 0 .07em .16em -.03em rgba(11, 27, 63, .45), 0 .02em .03em rgba(11, 27, 63, .25), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.flap .h {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden;
  background: linear-gradient(180deg, #24376E 0%, #17295B 100%);
}
/* glyph at 80 % of the tile font-size: 1.35em here = 1.08em of the tile */
.flap .h i {
  display: block; font-size: .8em; height: 1.35em; line-height: 1.35em; text-align: center; font-style: normal;
  background: var(--flap-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.flap .t { top: 0; border-radius: .12em .12em 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.flap .b { bottom: 0; border-radius: 0 0 .12em .12em; background: linear-gradient(180deg, #0F1F4A 0%, #0B1733 100%); }
.flap .b i { margin-top: -.675em; }
/* hinge: thin split line + two small pins inside the tile edges */
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .02em; min-height: 1px; margin-top: -.01em; background: rgba(4, 10, 30, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); z-index: 5; }
.flap::before { content: ""; position: absolute; left: .025em; right: .025em; top: 50%; height: .075em; margin-top: -.0375em; z-index: 6; background: linear-gradient(90deg, #4A5F9E 0 .035em, transparent .035em calc(100% - .035em), #4A5F9E calc(100% - .035em)); border-radius: .015em; }
.flap .lt, .flap .lb { display: none; z-index: 3; }
.flap .lt { transform-origin: 50% 100%; }
.flap .lb { transform-origin: 50% 0; }
.flap.go .lt { display: block; animation: fl1 .18s ease-in forwards; }
.flap.go .lb { display: block; transform: rotateX(90deg); animation: fl2 .2s .18s ease-out forwards; }
@keyframes fl1 { to { transform: rotateX(-90deg); filter: brightness(.5); } }
@keyframes fl2 { from { transform: rotateX(90deg); filter: brightness(1.4); } to { transform: rotateX(0); } }
/* separators ( . , $ space ) sit on the page, not on a tile */
.flap.sep { width: .24em; box-shadow: none; background: none; display: flex; align-items: flex-end; justify-content: center; perspective: none; }
.flap.sep::before, .flap.sep::after { display: none; }
.flap.sep i { display: block; font-style: normal; font-size: .5em; line-height: 1; padding-bottom: .14em; color: var(--sep-c); }
.flap.sep.wide { width: .3em; }
.flap.sep.cur { width: .5em; align-items: center; }
.flap.sep.cur i { font-size: .6em; padding: 0; font-weight: 700; }
.flap.dim { opacity: .5; }
/* brand mode (pre-launch): M D A Q + bell, muted gold, never dashes */
.flaps.brand { --flap-ink: linear-gradient(180deg, #F1DDB0 0%, #D9B777 100%); }
.flaps.brand .flap .h i { opacity: .9; }
.flap.bell .h i { display: grid; place-items: start center; -webkit-text-fill-color: initial; background: none; }
.flap.bell .h svg { width: .62em; height: .62em; margin-top: .365em; color: var(--gold); filter: drop-shadow(0 0 .06em rgba(255, 210, 122, .55)); }
.flaps.brand .flap.sep.wide { width: .14em; }
.flaps.brand .flap.bell .t svg { animation: bellNudge 5.5s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes bellNudge { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 93% { transform: rotate(-12deg); } 96% { transform: rotate(6deg); } }
.flaps-cap { margin-top: 12px; text-align: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ════════════════════════════════════════════════════════════════════
   index board card (flaps + formula + live sparkline) — UI.indexCard
   ════════════════════════════════════════════════════════════════════ */
.ixb {
  position: relative; padding: 16px 18px 16px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .84));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.ixb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ixb-top b { color: var(--ink); font-weight: 700; }
.ixb-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--ink-2); white-space: nowrap; }
.ixb-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px var(--gold-soft); }
.ixb-status.live { color: var(--up-ink); }
.ixb-status.live::before { background: var(--up); color: var(--up); box-shadow: none; animation: pulse 1.8s ease-out infinite; }
.ixb-status.bad { color: var(--down-ink); }
.ixb-status.bad::before { background: var(--down); box-shadow: none; animation: blink 1.2s ease-in-out infinite; }
.ixb .flaps { justify-content: flex-start; margin: 14px 0 10px; }
.ixb-val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ixb-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.ixb-note b { color: var(--ink); font-weight: 700; }
.ixb-note .num, .ixb-note code { font-family: var(--f-mono); font-weight: 600; color: var(--ink); }
.ixb-spark { position: relative; margin-top: 12px; height: 72px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, rgba(47, 91, 255, .07), rgba(47, 91, 255, 0)); box-shadow: inset 0 0 0 1px rgba(47, 91, 255, .06); }
.ixb-spark .spark { height: 100%; }
.ixb-spark .spark-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.ixb-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3); }

/* ════════════════════════════════════════════════════════════════════
   crosshair · price tags · callouts · ruler · skyline (decorative, aria-hidden)
   ════════════════════════════════════════════════════════════════════ */
.xhair { position: absolute; inset: 0; pointer-events: none; z-index: 1; --x: 50%; --y: 50%; --xh-c: rgba(47, 91, 255, .30); }
.xhair .xh-v, .xhair .xh-h { position: absolute; display: block; }
.xhair .xh-v { left: var(--x); top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--xh-c) 16%, var(--xh-c) 84%, transparent); }
.xhair .xh-h { top: var(--y); left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--xh-c) 10%, var(--xh-c) 90%, transparent); }
.xhair .xh-dot { position: absolute; left: var(--x); top: var(--y); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.xhair .xh-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(47, 91, 255, .45); animation: ping 2.8s ease-out infinite; }
.xhair .ptag { position: absolute; }
.xhair .at-y-right { right: 0; top: var(--y); transform: translateY(-50%); }
.xhair .at-y-left { left: 0; top: var(--y); transform: translateY(-50%); }
.xhair .at-x-bottom { left: var(--x); bottom: 0; transform: translateX(-50%); }
.xhair .at-x-top { left: var(--x); top: 0; transform: translateX(-50%); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

/* price tag — like a chart's price label, with a notch (navy by default) */
.ptag {
  --pt-bg: var(--navy); --pt-fg: #fff; --pt-notch: 7px;
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px 0 calc(var(--pt-notch) + 8px);
  font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap;
  color: var(--pt-fg); background: var(--pt-bg);
  clip-path: polygon(var(--pt-notch) 0, 100% 0, 100% 100%, var(--pt-notch) 100%, 0 50%);
  border-radius: 4px;
  filter: drop-shadow(0 6px 10px rgba(11, 27, 63, .22));
}
.ptag.mono { font-family: var(--f-mono); font-size: 11.5px; }
.ptag.notch-right { padding: 0 calc(var(--pt-notch) + 8px) 0 11px; clip-path: polygon(0 0, calc(100% - var(--pt-notch)) 0, 100% 50%, calc(100% - var(--pt-notch)) 100%, 0 100%); }
.ptag.notch-none { padding: 0 11px; clip-path: none; border-radius: 7px; }
.ptag.notch-up { height: 32px; padding: 5px 11px 0; clip-path: polygon(0 5px, calc(50% - 5px) 5px, 50% 0, calc(50% + 5px) 5px, 100% 5px, 100% 100%, 0 100%); }
.ptag.notch-down { height: 32px; padding: 0 11px 5px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(50% + 5px) calc(100% - 5px), 50% 100%, calc(50% - 5px) calc(100% - 5px), 0 calc(100% - 5px)); }
.ptag .pt-sub { font-family: var(--f-mono); font-weight: 500; opacity: .7; }
.ptag .pt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.ptag.accent { --pt-bg: var(--accent); }
.ptag.gold { --pt-bg: var(--gold); --pt-fg: var(--navy); }
.ptag.gold .pt-dot { background: var(--navy); }
.ptag.white { --pt-bg: #fff; --pt-fg: var(--ink); }
.ptag.up { --pt-bg: var(--up-ink); }
.ptag.down { --pt-bg: var(--down-ink); }
.ptag.ink { --pt-bg: var(--navy); }
.ptag.violet { --pt-bg: var(--accent); }
.ptag.cream { --pt-bg: var(--gold); --pt-fg: var(--navy); }

/* callout: dot → rule → price tag (hero / section headers) */
.callout { position: absolute; z-index: 3; display: flex; align-items: center; pointer-events: none; --len: 64px; --c: rgba(47, 91, 255, .15); --c2: rgba(47, 91, 255, .7); }
.callout .co-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.callout .co-line { flex: none; width: var(--len); height: 1px; background: linear-gradient(90deg, var(--c2), var(--c)); }
.callout .co-tag { display: grid; gap: 4px; }
.callout .co-tag small { font-family: var(--f-body); font-size: 11.5px; font-weight: 500; color: var(--ink-3); padding-left: 16px; white-space: nowrap; }
.callout.left { flex-direction: row-reverse; }
.callout.left .co-line { background: linear-gradient(270deg, var(--c2), var(--c)); }
.callout.left .co-tag { justify-items: end; }
.callout.left .co-tag small { padding: 0 16px 0 0; }
.callout.gold .co-dot { border-color: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-soft); }
.callout.gold { --c: rgba(224, 166, 58, .15); --c2: rgba(224, 166, 58, .8); }

/* horizontal price-axis ruler */
.ruler {
  position: relative; height: 30px; pointer-events: none; user-select: none;
  --minor: 8px; --major: 64px; --rc: rgba(15, 35, 80, .22);
  background:
    linear-gradient(90deg, var(--rc) 1px, transparent 1px) 0 0 / var(--major) 11px repeat-x,
    linear-gradient(90deg, rgba(15, 35, 80, .12) 1px, transparent 1px) 0 0 / var(--minor) 5px repeat-x,
    linear-gradient(var(--rc), var(--rc)) 0 0 / 100% 1px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ruler span { position: absolute; top: 14px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; white-space: nowrap; }
.ruler.vertical { width: 30px; height: auto; background:
    linear-gradient(var(--rc) 1px, transparent 1px) 0 0 / 11px var(--major) repeat-y,
    linear-gradient(rgba(15, 35, 80, .12) 1px, transparent 1px) 0 0 / 5px var(--minor) repeat-y,
    linear-gradient(90deg, var(--rc), var(--rc)) 0 0 / 1px 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
.ruler.vertical span { top: auto; left: 16px; transform: translateY(-50%); }

/* candlestick skyline (decorative background strip, not data) */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; opacity: .55; -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%); }
.skyline svg { width: 100%; height: 100%; }

/* ════════════════════════════════════════════════════════════════════
   sparkline (live points only)
   ════════════════════════════════════════════════════════════════════ */
.spark, .dotchart { display: block; width: 100%; height: 96px; }
.spark-box { position: relative; }
.spark-box .spark-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; color: var(--ink-3); }
.chart-cap { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 620px) { .spark, .dotchart { height: 84px; } }

/* ════════════════════════════════════════════════════════════════════
   empty state + 「开盘准备中」 banner
   ════════════════════════════════════════════════════════════════════ */
.empty { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px 28px; padding: 22px 30px 22px 20px; }
.empty-art { position: relative; width: 132px; aspect-ratio: 1; flex: none; }
.empty-art::before { content: ""; position: absolute; inset: 6% 2% 6%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(110, 155, 255, .30), rgba(110, 155, 255, .08) 55%, transparent 70%); }
.empty-art::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 35, 80, .22), transparent); }
.empty-art img, .empty-art .m-art { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.empty-body { min-width: 0; }
.empty-body .eyebrow { margin-bottom: 10px; }
.empty-body h2, .empty-body h3 { font-size: clamp(17px, 1.6vw, 21px); font-weight: 900; letter-spacing: -.005em; }
.empty-body p { margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.75; max-width: 560px; }
.empty-body .row { margin-top: 16px; }
.empty.compact { gap: 12px 18px; padding: 14px 20px 14px 12px; }
.empty.compact .empty-art { width: 84px; }
.empty.compact h2, .empty.compact h3 { font-size: 15.5px; }
.empty.compact p { font-size: 13px; }
.empty.flat { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.empty.banner {
  grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 26px 14px 14px;
  border-color: rgba(255, 255, 255, .95);
  background:
    radial-gradient(420px 180px at 0% 50%, rgba(255, 210, 122, .30), transparent 70%),
    radial-gradient(520px 200px at 100% 0%, rgba(47, 91, 255, .10), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78));
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.empty.banner .empty-art { width: 108px; }
.empty.banner .empty-art::before { background: radial-gradient(circle at 50% 45%, rgba(255, 210, 122, .45), rgba(255, 210, 122, .1) 55%, transparent 70%); }
.empty.banner .row { margin-top: 0; }
@media (max-width: 640px) {
  .empty, .empty.banner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px; }
  .empty-art { width: 112px; }
  .empty-body p { margin-left: auto; margin-right: auto; }
  .empty-body .row, .empty.banner > .row { justify-content: center; }
  .empty.compact { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; }
  .empty.compact .empty-body .row { justify-content: flex-start; }
}

/* ════════════════════════════════════════════════════════════════════
   stat tile
   ════════════════════════════════════════════════════════════════════ */
.stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; min-width: 0; }
.stat small, .stat .stat-l { display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); line-height: 1.35; }
.stat .stat-l::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); opacity: .75; transform: rotate(45deg); flex: none; }
.stat .big {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1;
  letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums;
  min-height: 1.15em; overflow-wrap: anywhere; text-shadow: none;
}
.stat .big .unit { font-size: .52em; font-weight: 500; color: var(--ink-3); margin-left: .25em; letter-spacing: 0; }
.stat .big .pending, .stat .big .pre { font-size: 15px; font-weight: 500; color: var(--ink-3); vertical-align: middle; letter-spacing: 0; }
.stat .big .retrying, .stat .big .loading-txt { font-size: 13px; vertical-align: middle; }
.stat p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.stat .st-chg { font-family: var(--f-mono); font-size: 12.5px; }
.stat.accent .big { background: var(--wordmark); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat.accent .big .pre, .stat.accent .big .pending { -webkit-text-fill-color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats > .stat { background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .7)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stats { gap: 10px; } .stat { padding: 13px 14px 15px; } }

/* ════════════════════════════════════════════════════════════════════
   board rows (constituents) · bars · change · coins · token logos
   ════════════════════════════════════════════════════════════════════ */
.board { overflow: hidden; }
.brow { display: grid; grid-template-columns: 34px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.8fr); align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); transition: background .2s; }
.brow:last-child { border-bottom: 0; }
.brow.hd { padding-top: 11px; padding-bottom: 11px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: rgba(238, 242, 250, .6); }
a.brow:hover, .brow.link:hover { background: var(--accent-softer); }
.brow .rk { font-family: var(--f-mono); color: var(--ink-3); font-size: 13px; font-weight: 600; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok .av { flex: none; width: 38px; height: 38px; border-radius: 12px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(15, 35, 80, .35); }
.tok .nm { min-width: 0; }
.tok .nm b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok .nm span { display: block; font-size: 11.5px; color: var(--ink-3); font-family: var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-led { display: inline-block; font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .3s; text-shadow: none; border-radius: 4px; }
.cell-led.flash-up { animation: fup 1.1s var(--ease); }
.cell-led.flash-dn { animation: fdn 1.1s var(--ease); }
@keyframes fup { 0%, 35% { color: var(--up-ink); background: var(--up-soft); } }
@keyframes fdn { 0%, 35% { color: var(--down-ink); background: var(--down-soft); } }
.pct { font-family: var(--f-mono); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pct.up { color: var(--up-ink); }
.pct.down { color: var(--down-ink); }
.pct.flat { color: var(--ink-3); }
.pct .pill { display: inline-block; padding: 3px 8px; border-radius: var(--r-pill); }
.pct.up .pill { background: var(--up-soft); }
.pct.down .pill { background: var(--down-soft); }
.pct.flat .pill { background: var(--bg-2); }
.pct.faint { font-weight: 400; color: var(--ink-3); }
.chg { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; font-family: var(--f-mono); font-size: clamp(14px, 1.6vw, 16px); min-height: 1.6em; }
.chg .pill { padding: 4px 12px; border-radius: var(--r-pill); background: var(--bg-2); border: 0; text-shadow: none; }
.chg .up .pill, .chg.up .pill { background: var(--up-soft); }
.chg .down .pill, .chg.down .pill { background: var(--down-soft); }
.chg .lbl { color: var(--ink-3); font-family: var(--f-body); font-size: 12.5px; }
.wt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wt span { font-family: var(--f-mono); font-size: 12.5px; min-width: 46px; text-align: right; color: var(--ink-2); }
.bar { position: relative; flex: 1; min-width: 30px; height: 6px; border-radius: var(--r-pill); background: var(--bg-3); overflow: hidden; box-shadow: inset 0 1px 1px rgba(15, 35, 80, .08); }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6E9BFF, #2F5BFF); transition: width 1.2s var(--ease); }
.bar.thin { height: 4px; }
.bar.gold i { background: linear-gradient(90deg, #FFD27A, #E0A63A); }
.bar.up i { background: linear-gradient(90deg, #5CD3A4, #12A870); }
.bar.navy i { background: linear-gradient(90deg, #22346B, #0B1B3F); }
.bar.violet i { background: linear-gradient(90deg, #6E9BFF, #2F5BFF); }
@media (max-width: 700px) {
  .brow { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, .7fr); gap: 8px; padding: 11px 14px; }
  .brow .rk { display: none; }
  .tok .av { width: 32px; height: 32px; border-radius: 10px; }
  .tok { gap: 9px; }
  .tok .nm b { font-size: 13.5px; }
  .cell-led { font-size: 13px; }
  .pct { font-size: 12px; }
  .wt .bar { display: none; }
  .wt span { font-size: 12px; min-width: 0; width: 100%; }
}
.board-empty { padding: 28px 16px; display: grid; place-items: center; text-align: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; }
.board-foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); background: rgba(238, 242, 250, .55); }

/* coins (generic discs, not logos) */
.coin {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 11px; line-height: 1;
  background-image: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 50%), linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .14));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 -2px 3px rgba(0, 0, 0, .14), 0 2px 5px -2px rgba(15, 35, 80, .4);
}
.coin.sm { width: 18px; height: 18px; font-size: 9px; }
.coin.lg { width: 32px; height: 32px; font-size: 15px; }
.coin.coin-real { background: transparent; box-shadow: none; overflow: hidden; border: 0; }
.coin.coin-real::before, .coin.coin-real::after { display: none; }
.coin-real img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tlogo.is-placeholder { border-radius: 22%; box-shadow: none; }
.coins { display: inline-flex; align-items: center; }
.coins .coin { margin-left: -6px; box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(255, 255, 255, .3); }
.coins .coin:first-child { margin-left: 0; }

/* token avatar */
.tlogo { position: relative; display: block; overflow: hidden; border-radius: 30%; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.tlogo img, .tlogo svg { width: 100%; height: 100%; object-fit: cover; }
.tlogo.round { border-radius: 50%; }

/* ════════════════════════════════════════════════════════════════════
   mascot 「Daq 牛」
   ════════════════════════════════════════════════════════════════════ */
.mascot { position: relative; display: block; width: 100%; }
.mascot .m-stage { position: relative; transform-origin: 50% 100%; }
.mascot .m-art { position: relative; display: block; width: 100%; height: auto; }
.mascot .m-art svg, .mascot img.m-art, .mascot .m-art img { display: block; width: 100%; height: auto; overflow: visible; }
.m-fallback { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(110, 155, 255, .22), transparent 62%); }
.mascot.floaty .m-stage { animation: floaty 6s ease-in-out infinite; }
.mascot.hop .m-art { animation: hop .7s var(--ease-spring); }
.mascot.shake .m-art { animation: shake .5s ease-in-out; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
@keyframes hop { 0% { transform: translateY(0) scale(1, 1); } 25% { transform: translateY(2%) scale(1.03, .96); } 55% { transform: translateY(-5%) scale(.98, 1.03); } 100% { transform: none; } }
@keyframes shake { 20% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } 80% { transform: rotate(-1deg); } }
/* animatable groups (inline SVG): #arm-bell #eyes #bell #ring-fx → classes m-arm-bell m-eyes m-bell m-ring-fx.
   The files set transform-origin / transform-box inline on each pivot group — do not override them here. */
.mascot .m-eyes { transition: transform .07s ease-in; }
.mascot.blink .m-eyes { transform: scaleY(.1); }
.mascot.ring .m-arm-bell { animation: armSwing .9s ease-in-out 2; }
.mascot.ring .m-bell { animation: bellSwing .9s ease-in-out 2; }
.mascot.ring .m-ring-fx { animation: fxPulse .45s ease-in-out 4; }
@keyframes armSwing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 64% { transform: rotate(5deg); } }
@keyframes bellSwing { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(16deg); } 70% { transform: rotate(-12deg); } }
@keyframes fxPulse { 50% { opacity: .25; } }
.mascot .m-waves { position: absolute; left: var(--wave-x, 74%); top: var(--wave-y, 10%); width: 20%; aspect-ratio: 1; pointer-events: none; opacity: 0; }
.mascot .m-waves i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(224, 166, 58, .7); }
.mascot.ring:not(.has-bell) .m-waves { opacity: 1; }
.mascot.ring .m-waves i { animation: ringWave 1s ease-out 2; }
.mascot.ring .m-waves i:nth-child(2) { animation-delay: .25s; }
@keyframes ringWave { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
/* speech bubble + arrow chip */
.mascot .bubble {
  position: absolute; right: 0; top: 2%; z-index: 3; max-width: 72%;
  padding: 7px 13px; border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px -14px rgba(15, 35, 80, .45);
  font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: 0 100%; animation: bubbleIn .35s var(--ease-spring);
}
.mascot .bubble.up { color: var(--up-ink); border-color: rgba(18, 168, 112, .3); }
.mascot .bubble.down { color: var(--down-ink); border-color: rgba(229, 72, 77, .3); }
.mascot .bubble::after { display: none; }
@keyframes bubbleIn { from { opacity: 0; transform: scale(.85) translateY(4px); } }
.mascot .m-arrow {
  position: absolute; left: 2%; top: 10%; z-index: 3; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill); font-family: var(--f-mono); font-size: 13px; font-weight: 700; line-height: 1.2;
  background: #fff; border: 1px solid currentColor; box-shadow: 0 8px 18px -10px rgba(15, 35, 80, .4);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.mascot .m-arrow.show { opacity: 1; transform: none; }
.mascot .m-arrow.up { color: var(--up-ink); }
.mascot .m-arrow.down { color: var(--down-ink); }
.mascot .m-floor { position: absolute; left: 20%; right: 20%; bottom: 1%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 35, 80, .18), transparent); z-index: -1; }
.mascot.is-inline .m-floor { display: none; }
/* v1 pixel-bull class kept for markup compatibility */
.bull { width: 100%; height: auto; overflow: visible; }

/* ════════════════════════════════════════════════════════════════════
   v1 hero board (bezel / screen / desk) — re-skinned light until home.js is re-skinned
   ════════════════════════════════════════════════════════════════════ */
.bezel {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 8px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .45));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.bezel > .screw { display: none; }
.screen {
  position: relative; overflow: hidden; padding: 22px 24px 18px;
  border-radius: calc(var(--r-xl) - 6px);
  background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #F3F6FD 75%);
  border: 1px solid var(--line);
}
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(20, 40, 90, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 40, 90, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%);
}
.screen > * { position: relative; z-index: 1; }
.scr-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.scr-top .led { font-size: 12px; letter-spacing: .14em; color: var(--ink); }
.scr-top .sub { color: var(--ink-3); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; }
.scr-top .scr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.scr-mid { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 8px; }
.scr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid var(--line); }
.scr-grid > div { padding: 12px 14px 4px; border-right: 1px solid var(--line); min-width: 0; }
.scr-grid > div:last-child { border-right: 0; }
.scr-grid small { display: block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.scr-grid b { display: block; margin-top: 4px; font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 1.8vw, 22px); color: var(--ink); min-height: 1.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: none; }
.scr-grid b .pending { font-size: 13px; }
@media (max-width: 620px) {
  .scr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scr-grid > div:nth-child(2) { border-right: 0; }
  .scr-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .screen { padding: 14px 12px 12px; }
  .bezel { padding: 5px; border-radius: var(--r-lg); }
  .screen { border-radius: calc(var(--r-lg) - 3px); }
}
.desk { position: relative; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.desk-l { padding-bottom: 30px; color: var(--ink-2); font-size: 15px; }
.desk-l ul { display: grid; gap: 10px; }
.desk-l li { display: flex; gap: 12px; align-items: baseline; }
.desk-l li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg) translateY(-2px); }
.desk-l b { color: var(--ink); font-weight: 700; }
.desk-r { padding-bottom: 30px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.desk-r .row { justify-content: flex-end; gap: 10px; }
.desk-r small { color: var(--ink-3); font-size: 12.5px; text-align: right; }
.mascot-wrap { position: relative; width: 230px; margin-top: -30px; z-index: 2; }
.desk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
@media (max-width: 900px) {
  .desk { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .mascot-wrap { order: -1; width: 200px; margin-top: 8px; }
  .desk::after { display: none; }
  .desk-l { padding-bottom: 0; }
  .desk-l ul { justify-items: start; text-align: left; }
  .desk-r { align-items: center; padding-bottom: 0; order: -1; }
  .desk-r .row { justify-content: center; }
  .desk-r small { text-align: center; }
}

/* ════════════════════════════════════════════════════════════════════
   tx progress box
   ════════════════════════════════════════════════════════════════════ */
.txbox { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; font-size: 13px; box-shadow: var(--shadow-sm); }
.txbox[data-step="error"] { border-color: rgba(229, 72, 77, .4); background: #FFF8F8; }
.txbox[data-step="done"] { border-color: rgba(18, 168, 112, .35); }
.txsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.txsteps span { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-align: center; }
.txsteps span::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--bg-3); margin-bottom: 6px; }
.txsteps span.on { color: var(--accent-deep); }
.txsteps span.on::before { background: linear-gradient(90deg, rgba(47, 91, 255, .25), var(--accent), rgba(47, 91, 255, .25)); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.txsteps span.done { color: var(--up-ink); }
.txsteps span.done::before { background: var(--up); }
.txsteps span.bad { color: var(--down-ink); }
.txsteps span.bad::before { background: var(--down); }
.txmsg { color: var(--ink-2); overflow-wrap: anywhere; line-height: 1.6; }
.txmsg a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }
.txbox[data-step="error"] .txmsg { color: var(--down-ink); }

/* ════════════════════════════════════════════════════════════════════
   wallet menu · 404
   ════════════════════════════════════════════════════════════════════ */
.wmenu { display: grid; gap: 14px; }
.wmenu .who { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.wmenu .who .av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.wmenu .who b { display: block; font-family: var(--f-mono); font-size: 12.5px; overflow-wrap: anywhere; color: var(--ink); line-height: 1.5; }
.wmenu .who small { color: var(--ink-3); font-size: 12px; }
.not-found { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(60px, 10vw, 120px) var(--gutter); }
.not-found .empty-art { width: 170px; }
.not-found .flaps { margin: 4px 0 6px; }
