/* =====================================================================
   Binance Agent Oracle — v2 "temple & ink" styles
   Ink black, soft off-white, one pale champagne→jade accent.
   (The NFT card component at the bottom is unchanged from v1.)
   ===================================================================== */
:root {
  --ink: #0A0A0B; --ink2: #111113; --ink3: #18181B; --ink4: #222226;
  --text: #EDEAE4; --muted: #9C978E; --muted2: #C6C1B8;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --glass: rgba(255,255,255,.035); --glass2: rgba(255,255,255,.06);
  --acc1: #CFC6B4; --acc2: #9FB8A8; --acc: linear-gradient(120deg, #E4DCCB, #CFC6B4 40%, #9FB8A8);
  --ok: #9FB8A8; --bad: #E7A1A1; --ember: #FF9A5A;
  --jade: #5BD99A; --silver: #D7DEE8; --gold: #E9B949; --dragon: #FF7A3D;
  --ease: cubic-bezier(.22,.8,.24,1); --slow: cubic-bezier(.65,0,.35,1);
  --top: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  --sans: 'Inter', 'Noto Sans HK', 'Noto Sans CJK HK', 'PingFang HK', 'Microsoft JhengHei', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', 'Noto Serif HK', 'Noto Serif CJK HK', 'Songti TC', 'PMingLiU', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
html:lang(zh-CN) { --sans: 'Inter', 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', 'Noto Sans HK', system-ui, sans-serif; --serif: 'Cormorant Garamond', 'Noto Serif SC', 'Noto Serif CJK SC', 'Noto Serif HK', 'Songti SC', serif; }
html:lang(ja) { --sans: 'Inter', 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans CJK JP', system-ui, sans-serif; --serif: 'Cormorant Garamond', 'Noto Serif JP', 'Noto Serif CJK JP', 'Hiragino Mincho ProN', serif; }
html:lang(ko) { --sans: 'Inter', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans CJK KR', system-ui, sans-serif; --serif: 'Cormorant Garamond', 'Noto Serif KR', 'Noto Serif CJK KR', serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); touch-action: pan-x pan-y; overscroll-behavior: none; }
html, body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--ink); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100dvh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; padding: 0; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 500; }
p, dl, dd, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--acc1); outline-offset: 3px; border-radius: 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; line-height: 1.55; }
.k { color: var(--muted); font-size: 13px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ambient light, grain, scroll rod */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient span { position: absolute; border-radius: 50%; filter: blur(90px); }
.ambient .a1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(207,198,180,.10), transparent 65%); top: -220px; right: -180px; animation: drift 40s ease-in-out infinite alternate; }
.ambient .a2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(159,184,168,.08), transparent 65%); bottom: -240px; left: -200px; animation: drift 48s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-50px, 40px) scale(1.08); } }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 400; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.scroll-rod { position: fixed; top: 0; bottom: 0; right: 0; width: 1px; z-index: 45; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, var(--acc1) 20%, var(--acc2) 80%, transparent); box-shadow: 0 0 18px 2px rgba(207,198,180,.25); }

/* ---------------- pills (buttons) ---------------- */
.pill, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 14.5px; letter-spacing: .02em; white-space: nowrap; user-select: none;
  transition: background .4s var(--ease), color .4s, border-color .4s, box-shadow .5s, opacity .3s, transform .2s; border: 1px solid transparent; }
.pill:active, .btn:active { transform: none; }
.pill-solid, .btn-primary { background: var(--text); color: var(--ink); font-weight: 600; box-shadow: 0 10px 40px -18px rgba(237,234,228,.55); }
.pill-line { border-color: var(--line2); color: var(--text); background: rgba(10,10,11,.25); }
.pill-glass, .btn-ghost { background: var(--glass2); border-color: var(--line); color: var(--text); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pill-quiet, .btn-quiet { color: var(--muted2); }
.pill-danger { color: var(--bad); border-color: rgba(231,161,161,.25); }
.pill-ember { background: var(--text); color: #2A140A; font-weight: 600; box-shadow: 0 0 0 1px rgba(255,154,90,.25), 0 14px 44px -14px rgba(255,120,60,.55); }
.pill-lg, .btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.pill-xl, .btn-xl { min-height: 56px; font-size: 15.5px; }
.pill-sm, .btn-sm { min-height: 44px; padding: 0 14px; font-size: 13px; }
.pill-block, .btn-block { width: 100%; }
.pill[disabled], .pill.is-busy, .btn[disabled] { opacity: .45; pointer-events: none; }
@media (hover: hover) {
  .pill-solid:hover, .btn-primary:hover, .pill-ember:hover { background: #fff; }
  .pill-line:hover, .pill-glass:hover, .btn-ghost:hover { border-color: rgba(207,198,180,.45); }
  .pill-quiet:hover { color: var(--text); background: var(--glass); }
}
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--muted2); transition: background .3s, color .3s; }
@media (hover: hover) { .icon-btn:hover { background: var(--glass2); color: var(--text); } }
.link-btn { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 8px; margin: 0 auto; display: block; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .9s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em; color: var(--muted2); border: 1px solid var(--line2); white-space: nowrap; }
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--acc2); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.notice { padding: 10px 0 10px 14px; border-left: 1px solid var(--acc2); color: var(--muted2); font-size: 12.5px; line-height: 1.6; }
.notice.warn { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-left-color: var(--bad); padding-right: 0; }

/* vertical Chinese accents */
.vt { writing-mode: vertical-rl; text-orientation: upright; font-family: var(--serif); font-size: 15px; letter-spacing: .55em; color: var(--muted); display: flex; align-items: center; gap: 14px; user-select: none; pointer-events: none; }
.vt::after { content: ''; width: 1px; height: 64px; background: linear-gradient(180deg, var(--acc1), transparent); opacity: .6; }
html:not(:lang(zh)):not(:lang(ja)) .vt { writing-mode: horizontal-tb; font-family: var(--sans); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; }
html:not(:lang(zh)):not(:lang(ja)) .vt::after { width: 40px; height: 1px; background: linear-gradient(90deg, var(--acc1), transparent); }

/* ---------------- top ---------------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: calc(var(--top) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .6s var(--ease), border-color .6s, -webkit-backdrop-filter .6s, backdrop-filter .6s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: rgba(10,10,11,.62); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; color: var(--acc1); flex: none; }
.brand-text { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.brand-text em { font-style: italic; font-weight: 500; background: var(--acc); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-connect { padding: 0 18px; font-size: 13.5px; }
.btn-connect .t-lg { display: none; }
.acct-chip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(10,10,11,.3); font-size: 12.5px; font-weight: 500; position: relative; white-space: nowrap; font-family: var(--mono); }
.acct-bal { display: none; color: var(--muted); font-family: var(--sans); }
.blockie { border-radius: 50%; image-rendering: pixelated; background: var(--ink3); }
.blockie.big { width: 52px; height: 52px; }
.warn-dot { position: absolute; top: 4px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
@media (max-width: 339px) { .brand-text { display: none; } }
@media (min-width: 960px) {
  .topbar { padding: 0 96px 0 32px; }
  .btn-connect .t-lg { display: inline; } .btn-connect .t-sm { display: none; }
  .acct-bal { display: inline; }
  .brand-text { font-size: 23px; }
}

/* ---------------- luopan + ring menu ---------------- */
.luopan { position: fixed; z-index: 95; right: 16px; bottom: calc(18px + var(--safe-b)); width: 60px; height: 60px; border-radius: 50%; padding: 5px; color: var(--acc1);
  background: radial-gradient(circle at 50% 40%, rgba(34,34,38,.92), rgba(12,12,13,.92)); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.9), 0 0 0 6px rgba(10,10,11,.35); transition: bottom .5s var(--ease), transform .4s var(--ease); }
.luopan svg { width: 100%; height: 100%; overflow: visible; }
.luopan .lp-ticks { transform-origin: 50px 50px; animation: lpSpin 80s linear infinite; }
.luopan .lp-needle { transform-origin: 50px 50px; animation: needle 7s ease-in-out infinite; transition: transform .9s var(--ease); }
@keyframes lpSpin { to { transform: rotate(360deg); } }
@keyframes needle { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.luopan[aria-expanded="true"] .lp-needle { animation: none; transform: rotate(-45deg); }
.luopan:active { transform: none; }
.ring { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; --dir: -1; --R: 160px; }
.ring.open { visibility: visible; pointer-events: auto; }
.ring-scrim { position: absolute; inset: 0; background: radial-gradient(circle at calc(100% - 46px) calc(100% - 48px), rgba(10,10,11,.55), rgba(5,5,6,.82) 60%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.ring.open .ring-scrim { opacity: 1; }
.ring:not(.open) .ring-scrim { transition-duration: .18s; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ring:not(.open) .ring-items::before { transition-duration: .16s; }
/* no double-tap-zoom wait on tap targets */
a, button, .ring-item, .luopan, .pill, .stamp, .pick, .tube { touch-action: manipulation; }
.ring-items { position: fixed; right: 46px; bottom: calc(48px + var(--safe-b)); width: 0; height: 0; }
.ring-items::before { content: ''; position: absolute; width: calc(var(--R) * 2); height: calc(var(--R) * 2); left: calc(var(--R) * -1); top: calc(var(--R) * -1); border-radius: 50%; border: 1px solid var(--line); opacity: 0; transform: scale(.5); transition: opacity .6s, transform .8s var(--ease); }
.ring.open .ring-items::before { opacity: 1; transform: none; }
.ring-item { --a: calc(var(--dir) * (180deg - var(--i) * 30deg)); position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(22,22,25,.92); border: 1px solid var(--line2); box-shadow: 0 14px 30px -14px #000; text-align: center;
  transform: rotate(var(--a)) translateX(0) rotate(calc(var(--a) * -1)) scale(.4); opacity: 0;
  transition: transform .6s var(--ease) calc(var(--i) * 45ms), opacity .45s ease calc(var(--i) * 45ms), border-color .3s, background .3s; }
.ring:not(.open) .ring-item { transition-duration: .16s; transition-delay: 0s; } /* closing is quick, no stagger */
.ring.open .ring-item { transform: rotate(var(--a)) translateX(var(--R)) rotate(calc(var(--a) * -1)) scale(1); opacity: 1; }
.ring-item b { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .08em; line-height: 1.2; }
.ring-item span { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-item.active { border-color: rgba(207,198,180,.7); background: rgba(34,32,28,.95); }
.ring-item.active b { background: var(--acc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring-item.active::after { content: ''; position: absolute; bottom: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--acc2); }
@media (hover: hover) { .ring-item:hover { border-color: rgba(207,198,180,.5); } }
@media (min-width: 960px) {
  .luopan { top: 10px; right: 22px; bottom: auto; width: 52px; height: 52px; padding: 4px; }
  .ring { --dir: 1; --R: 168px; }
  .ring-items { right: 66px; top: 58px; bottom: auto; }
  .ring-scrim { background: radial-gradient(circle at calc(100% - 48px) 36px, rgba(10,10,11,.5), rgba(5,5,6,.8) 55%); }
}

/* ---------------- pages & scroll-turn transition ---------------- */
main { position: relative; z-index: 1; padding-top: calc(var(--top) + env(safe-area-inset-top, 0px)); min-height: 100dvh; overflow-x: clip; }
.page { padding-bottom: 40px; animation: unroll .4s var(--ease) backwards; }
/* An inactive page stays rendered but skipped (content-visibility: hidden keeps its layout, layers and decoded
   images), so coming back to it costs the same from any page instead of a full rebuild of its render tree.
   Its own animations are frozen while it is away. Browsers without content-visibility fall back to display:none. */
.page[hidden] { display: block !important; position: absolute; top: 0; left: 0; right: 0; visibility: hidden; pointer-events: none; height: 0; overflow: clip; content-visibility: hidden; animation: none; }
.page[hidden] *, .page[hidden] *::before, .page[hidden] *::after { animation-play-state: paused !important; }
.page[hidden].warm { content-visibility: visible; } /* one idle frame of layout before the first visit */
@supports not (content-visibility: hidden) { .page[hidden] { display: none !important; } }
/* short scroll-turn: starts moving on the first frame (ease-out), done in 400ms, never waits on anything */
@keyframes unroll { from { clip-path: inset(0 0 0 70%); opacity: .35; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.unroll > * { clip-path: inset(0 0 0 100%); opacity: 0; transition: clip-path 1.3s var(--slow), opacity 1.1s ease; }
.unroll > .leaf-body { transition-delay: .15s; }
.unroll.in > * { clip-path: inset(0 0 0 0); opacity: 1; }

/* ---------------- home ---------------- */
.hero { position: relative; display: grid; grid-template-areas: "copy" "stage" "ctrl"; gap: 14px; padding: 16px 22px 8px; max-width: 1280px; margin: 0 auto; }
.vt-hero { position: absolute; right: 14px; top: 28px; font-size: 13px; }
html:not(:lang(zh)):not(:lang(ja)) .vt-hero { display: none; }
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 10px; padding-right: 28px; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 8.8vw, 84px); line-height: 1.16; letter-spacing: .03em; white-space: pre-line; color: var(--text); }
html:not(:lang(zh)):not(:lang(ja)) .display { letter-spacing: 0; line-height: 1.04; font-size: clamp(40px, 11vw, 92px); }
.display em { font-style: normal; background: var(--acc); -webkit-background-clip: text; background-clip: text; color: transparent; }
html:not(:lang(zh)):not(:lang(ja)) .display em { font-style: italic; }
.lead { color: var(--muted2); font-size: 14px; max-width: 30em; line-height: 1.7; }
.hero-stage { grid-area: stage; position: relative; display: grid; place-items: center; padding: 8px 0 4px; }
.halo { position: absolute; width: min(115vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(207,198,180,.16), rgba(159,184,168,.07) 38%, transparent 66%); animation: breathe 9s ease-in-out infinite; pointer-events: none; }
.halo::before, .halo::after { content: ''; position: absolute; inset: 16%; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); }
.halo::after { inset: 27%; border-style: dashed; border-color: rgba(207,198,180,.08); animation: lpSpin 120s linear infinite; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
.hero-card { position: relative; width: min(50vw, 204px); aspect-ratio: 896 / 1200; touch-action: pan-y; }
.hero-card .bao-card { position: absolute; inset: 0; width: 100%; animation: cardIn .9s var(--ease) both; }
.hero-card .bao-card.out { animation: cardOut .45s ease both; }
@keyframes cardIn { from { opacity: 0; filter: blur(8px); transform: translateY(10px) scale(.98); } }
@keyframes cardOut { to { opacity: 0; filter: blur(6px); transform: translateY(-6px) scale(.99); } }
.hero-ctrl { grid-area: ctrl; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stamps { display: flex; gap: 12px; justify-content: center; }
.stamp { --tc: var(--acc1); width: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; }
.stamp .s { width: 46px; height: 46px; border-radius: 9px; display: grid; place-items: center; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 38%, transparent); position: relative; transition: all .5s var(--ease); }
.stamp .s::after { content: ''; position: absolute; inset: 3px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--tc) 16%, transparent); }
.stamp .n { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; transition: color .4s; }
.stamp.on .s { background: color-mix(in srgb, var(--tc) 14%, transparent); border-color: var(--tc); transform: rotate(-4deg); box-shadow: 0 0 26px -8px var(--tc); }
.stamp.on .n { color: var(--text); }
.swipe-hint { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-align: center; }
.actions { display: flex; gap: 10px; width: 100%; max-width: 420px; margin-top: 4px; }
.actions .pill { flex: 1 1 0; padding: 0 14px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr minmax(380px, 1fr); grid-template-areas: "copy stage" "ctrl stage"; align-content: center; min-height: calc(100dvh - var(--top)); padding: 24px 64px 40px 112px; column-gap: 40px; row-gap: 36px; }
  .vt-hero { left: 52px; right: auto; top: 50%; transform: translateY(-50%); font-size: 16px; }
  html:not(:lang(zh)):not(:lang(ja)) .vt-hero { display: flex; left: 112px; top: 64px; transform: none; }
  .hero-copy { align-self: end; padding-right: 0; gap: 22px; }
  .lead { font-size: 15px; }
  .hero-ctrl { align-self: start; align-items: flex-start; }
  .stamps { justify-content: flex-start; }
  .swipe-hint { text-align: left; }
  .actions { flex: none; width: auto; }
  .actions .pill { flex: none; padding: 0 30px; }
  .hero-card { width: 340px; }
  .halo { width: 640px; }
}

.leaf { position: relative; max-width: 980px; margin: 96px auto 0; padding: 0 22px; display: grid; gap: 22px; }
.leaf > .vt { justify-self: start; }
.leaf-body { display: flex; flex-direction: column; gap: 12px; }
.h2 { font-family: var(--serif); font-size: clamp(28px, 7vw, 44px); font-weight: 500; letter-spacing: .04em; }
.reg { list-style: none; padding: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.reg li { --tc: var(--acc1); display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.reg .th { width: 40px; height: 54px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 50%, transparent); }
.reg .th img { width: 100%; height: 100%; object-fit: cover; }
.reg .nm { display: flex; flex-direction: column; min-width: 0; }
.reg .nm b { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .05em; color: var(--text); }
.reg .nm b i { font-style: normal; color: var(--tc); margin-right: 8px; }
.reg .nm span { font-size: 12px; color: var(--muted); }
.reg .rt { text-align: right; font-variant-numeric: tabular-nums; }
.reg .rt b { display: block; font-weight: 500; font-size: 15px; }
.reg .rt span { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.ca-list { margin-top: 26px; display: flex; flex-direction: column; }
.ca-row { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.ca-row .k { flex: none; min-width: 92px; }
.ca-row .v { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--muted2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 960px) {
  .leaf { grid-template-columns: 64px 1fr; margin-top: 40px; padding: 0 48px; gap: 40px; }
  html:not(:lang(zh)):not(:lang(ja)) .leaf { grid-template-columns: 1fr; gap: 12px; }
  .reg li { grid-template-columns: 48px 1fr 1fr auto; padding: 18px 4px; }
  .reg .th { width: 48px; height: 64px; }
  .reg .sp { display: block !important; color: var(--muted2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
}
.reg .sp { display: none; }

/* ---------------- tokenomics (home) ---------------- */
.tok { gap: 14px; }
/* this leaf is tall: its body reveals per widget (own observers) instead of the whole-leaf unroll */
#tokenomics.unroll > .leaf-body { clip-path: none; opacity: 1; transition: none; }
.tok-head { display: flex; flex-direction: column; gap: 12px; }
.tok-head > * { clip-path: inset(0 0 0 100%); opacity: 0; transition: clip-path 1.3s var(--slow), opacity 1.1s ease; }
.tok-head > p { transition-delay: .15s; }
.tok-head.go > * { clip-path: inset(0 0 0 0); opacity: 1; }
.tok .h3 { font-family: var(--serif); font-size: clamp(21px, 5.2vw, 26px); font-weight: 500; letter-spacing: .04em; color: var(--text); }
.tok-lead { max-width: 40em; line-height: 1.75; color: var(--muted2); }
.tok-sub { margin-top: 34px; display: flex; flex-direction: column; gap: 8px; }
/* stat tiles */
.tok-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tok-stats .st { background: var(--ink); padding: 16px 14px 15px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html:lang(zh) .st-k { letter-spacing: .2em; font-size: 12px; }
.st-v { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 7.4vw, 36px); line-height: 1.1; letter-spacing: .01em; color: var(--text); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.st:nth-child(2) .st-v { background: linear-gradient(120deg, #F0E6D2, #E6B98E 60%, #E08A5C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-s { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tok-stats .st { opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: calc(var(--i) * 110ms); }
.tok-stats.go .st { opacity: 1; transform: none; }
/* donut + legend */
.tok-chart { margin-top: 30px; display: grid; gap: 22px; justify-items: center; }
.tok-donut { position: relative; width: min(82vw, 330px); aspect-ratio: 1; }
.tok-donut svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tok-track { fill: none; stroke: rgba(255,255,255,.035); stroke-width: 17; }
.tok-tick { fill: none; stroke: rgba(207,198,180,.14); stroke-width: .5; stroke-dasharray: .6 4.2; }
.seg { cursor: pointer; transition: opacity .45s ease, filter .45s ease; }
.seg circle { fill: none; pointer-events: visibleStroke; }
.seg .sg { stroke-width: 16; stroke-dashoffset: var(--len); transition: stroke-dashoffset var(--t) linear var(--d); }
.seg .sg-edge { stroke: #77726A; stroke-width: .8; stroke-dashoffset: var(--len); transition: stroke-dashoffset var(--t) linear var(--d); pointer-events: none; }
.seg-team .sg { stroke: #26262B; }
.tok-chart.go .seg circle { stroke-dashoffset: 0; }
.tok-chart.has-sel .seg:not(.on) { opacity: .22; }
.tok-chart.has-sel .seg.on { filter: drop-shadow(0 0 6px rgba(228,220,203,.35)); }
.tok-center { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; gap: 2px; }
.tc-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); max-width: 100%; line-height: 1.35; min-height: 2.7em; display: flex; align-items: flex-end; justify-content: center; }
html:lang(zh) .tc-k { letter-spacing: .14em; font-size: 12px; }
.tc-v { font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 6.6vw, 31px); line-height: 1.15; color: var(--text); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; letter-spacing: .01em; }
.tc-s { font-size: 12px; color: var(--muted2); letter-spacing: .08em; font-variant-numeric: tabular-nums; min-height: 2.7em; }
.tok-donut[data-sel="burn"] .tc-v { background: linear-gradient(120deg, #F0E6D2, #E6B98E 60%, #E08A5C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tok-donut[data-sel="liq"] .tc-v { color: #B9CEC0; }
.tok-legend { list-style: none; padding: 0; margin: 0; width: 100%; border-top: 1px solid var(--line); }
.tok-legend li { border-bottom: 1px solid var(--line); }
.tl-row { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 2px; min-height: 56px; text-align: left; transition: opacity .45s ease; }
.tl-sw { width: 12px; height: 12px; border-radius: 3px; }
.tl-outline .tl-sw { box-shadow: inset 0 0 0 1px #77726A; background: #26262B !important; }
.tl-nm { display: flex; flex-direction: column; min-width: 0; }
.tl-nm b { font-weight: 500; font-size: 14.5px; color: var(--text); }
.tl-nm span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.tl-v { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.tl-v b { font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.tl-v span { font-size: 12px; color: var(--muted2); }
.tok-chart.has-sel .tl-row:not(.on) { opacity: .4; }
@media (hover: hover) { .tl-row:hover .tl-nm b { color: #fff; } }
/* 3 steps */
.tok-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 0; position: relative; }
.tok-steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 0 0 22px; opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: calc(var(--i) * 260ms); }
.tok-steps li:last-child { padding-bottom: 0; }
.tok-steps li:not(:last-child)::after { content: ''; position: absolute; left: 24px; top: 52px; bottom: 4px; width: 1px; background: linear-gradient(180deg, rgba(207,198,180,.45), rgba(159,184,168,.12)); transform-origin: 50% 0; transform: scaleY(0); transition: transform .7s var(--slow); transition-delay: calc(var(--i) * 260ms + 380ms); }
.tok-steps.go li { opacity: 1; transform: none; }
.tok-steps.go li:not(:last-child)::after { transform: none; }
.ts-ico { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(207,198,180,.28); display: grid; place-items: center; color: var(--acc1); background: radial-gradient(circle at 50% 40%, rgba(207,198,180,.08), transparent 70%); }
.tok-steps li:nth-child(2) .ts-ico { color: #E6B98E; border-color: rgba(230,185,142,.35); }
.tok-steps li:nth-child(3) .ts-ico { color: var(--acc2); border-color: rgba(159,184,168,.35); }
.ts-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ts-txt { display: flex; flex-direction: column; gap: 3px; padding-top: 3px; min-width: 0; }
.ts-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ts-h i { font-style: normal; font-family: var(--serif); color: var(--muted); font-size: 13px; }
.ts-h b { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .06em; color: var(--text); }
.ts-h em { font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ts-d { font-size: 13.5px; color: var(--muted2); line-height: 1.65; }
/* burn pool by tier */
.tok-bars { margin-top: 10px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tb { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n v" "track track" "r r"; column-gap: 12px; row-gap: 8px; padding: 15px 2px 14px; border-bottom: 1px solid var(--line); }
.tb-n { grid-area: n; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tb-n i { font-style: normal; font-family: var(--serif); font-weight: 600; color: var(--tc); font-size: 17px; }
.tb-n b { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .05em; }
.tb-v { grid-area: v; text-align: right; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.tb-v b { font-weight: 500; font-size: 15px; white-space: nowrap; }
.tb-v span { font-size: 12px; color: var(--muted); min-width: 3.4em; }
.tb-track { grid-area: track; position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.045); overflow: hidden; }
.tb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 35%, transparent), var(--tc)); box-shadow: 0 0 14px -2px color-mix(in srgb, var(--tc) 55%, transparent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.3s var(--slow); transition-delay: calc(var(--i) * 160ms); }
.tok-bars.go .tb-fill { transform: none; }
.tb-r { grid-area: r; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px 0; font-size: 13px; color: var(--muted); }
.tb-sum b { font-weight: 500; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tok-note { font-variant-numeric: lining-nums; margin-top: 30px; padding: 16px 18px; border-left: 1px solid rgba(207,198,180,.4); font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--muted2); background: linear-gradient(90deg, rgba(207,198,180,.05), transparent 70%); }
html:lang(zh) .tok-note { font-size: 16px; letter-spacing: .03em; }
@media (min-width: 720px) {
  .tok-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tok-stats .st { padding: 20px 20px 18px; }
  .tok-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .tok-steps li { grid-template-columns: 1fr; gap: 14px; padding: 0; }
  .tok-steps li:not(:last-child)::after { left: 62px; right: -20px; top: 24px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, rgba(207,198,180,.45), rgba(159,184,168,.12)); transform-origin: 0 50%; transform: scaleX(0); }
  .tok-steps.go li:not(:last-child)::after { transform: none; }
  .tb { grid-template-columns: 130px minmax(0, 1fr) 210px; grid-template-areas: "n track v" ". r r"; align-items: center; row-gap: 4px; column-gap: 20px; }
  .tb-r { text-align: left; }
}
@media (min-width: 960px) {
  .tok-chart { grid-template-columns: 360px minmax(0, 1fr); align-items: center; gap: 48px; justify-items: stretch; }
  .tok-donut { width: 360px; }
  .tc-v { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .tok-stats .st, .tok-steps li, .tok-head > * { opacity: 1; transform: none; clip-path: none; }
  .tok-steps li::after, .tb-fill { transform: none !important; }
  .seg circle { stroke-dashoffset: 0 !important; }
}

/* ---------------- footer ---------------- */
.footer { position: relative; z-index: 1; margin-top: 96px; padding: 40px 24px calc(110px + var(--safe-b)); text-align: center; }
.footer-in { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-in::before { content: ''; width: 1px; height: 48px; background: linear-gradient(180deg, transparent, var(--line2)); margin-bottom: 4px; }
.footer-seal { width: 34px; height: 34px; color: var(--muted); }
.footer-name { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.disclaimer { color: var(--muted); font-size: 12px; line-height: 1.8; }
body.route-agent .footer { display: none; }

/* ---------------- language ---------------- */
.lang-fab { position: fixed; left: 16px; bottom: calc(26px + var(--safe-b)); z-index: 60; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  background: rgba(17,17,19,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line2); color: var(--muted2); font-size: 13px; font-weight: 500; transition: bottom .5s var(--ease), color .3s; }
.lang-fab svg { color: var(--acc1); }
@media (hover: hover) { .lang-fab:hover { color: var(--text); } }
.lang-menu { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; padding: 14px 14px calc(18px + var(--safe-b)); border-radius: 26px 26px 0 0; background: rgba(20,20,22,.84); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line2); border-bottom: 0; box-shadow: 0 0 0 100vmax rgba(5,5,6,.55); animation: sheetUp .5s var(--ease); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; font-size: 14px; text-align: left; border: 1px solid transparent; }
.lang-opt .chk { color: var(--acc2); opacity: 0; }
.lang-opt.on { border-color: var(--line2); background: var(--glass2); }
.lang-opt.on .chk { opacity: 1; }
@media (hover: hover) { .lang-opt:hover { background: var(--glass2); } }
@media (min-width: 640px) {
  .lang-menu { left: 16px; right: auto; bottom: calc(80px + var(--safe-b)); width: 250px; border-radius: 20px; border-bottom: 1px solid var(--line2); padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 24px 60px -18px #000; animation: menuIn .4s var(--ease); transform-origin: bottom left; }
  .lang-opt { min-height: 44px; border-radius: 12px; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
body.route-agent.chat-on .lang-fab { display: none; }
body.bar-on .lang-fab { bottom: calc(92px + var(--safe-b)); }
body.bar-on .luopan { bottom: calc(86px + var(--safe-b)); }
body.bar-on .ring-items { bottom: calc(116px + var(--safe-b)); }
@media (max-width: 959px) {
  body.route-agent.chat-on .luopan { top: calc(8px + env(safe-area-inset-top, 0px)); bottom: auto; right: 12px; width: 48px; height: 48px; padding: 4px; }
  body.route-agent.chat-on .ring { --dir: 1; }
  body.route-agent.chat-on .ring { --R: 150px; }
  body.route-agent.chat-on .ring-items { top: calc(50px + env(safe-area-inset-top, 0px)); bottom: auto; right: 52px; }
  body.route-agent.chat-on .top-actions { margin-right: 52px; }
  body.route-agent.chat-on .acct-chip { display: none; }
}
@media (min-width: 960px) {
  body.route-agent.chat-on .lang-fab { display: flex; }
  body.bar-on .lang-fab { bottom: calc(26px + var(--safe-b)); }
}

/* ---------------- sheets ---------------- */
.sheet { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(5,5,6,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .4s ease; }
.sheet-panel { position: relative; width: 100%; max-height: 88dvh; overflow: auto; background: rgba(20,20,22,.84); -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--line2); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); animation: sheetUp .55s var(--ease); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.sheet.closing .sheet-panel { animation: sheetDown .28s ease forwards; }
.sheet.closing .sheet-scrim { animation: fadeOut .28s ease forwards; }
.sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line2); margin: 0 auto 2px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: .03em; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet-panel { max-width: 420px; border-radius: 28px; border-bottom: 1px solid var(--line2); padding: 20px 24px 24px; animation: popIn .5s var(--ease); }
  .sheet.closing .sheet-panel { animation: popOut .22s ease forwards; }
  .sheet-grab { display: none; }
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes popOut { to { opacity: 0; transform: scale(.98); } }
.w-list { display: flex; flex-direction: column; gap: 8px; }
.w-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); text-align: left; transition: border-color .3s, background .3s; min-height: 62px; }
@media (hover: hover) { .w-item:hover { border-color: rgba(207,198,180,.4); background: var(--glass2); } }
.w-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; overflow: hidden; }
.w-ico img { width: 26px; height: 26px; object-fit: contain; }
.w-ico-generic { color: var(--muted2); }
.w-name { flex: 1; font-weight: 500; font-size: 15px; display: flex; flex-direction: column; }
.w-name small { color: var(--muted); font-weight: 400; font-size: 12px; }
.w-tag { font-size: 11.5px; color: var(--muted2); border: 1px solid var(--line2); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.w-tag.ok { color: var(--ok); border-color: rgba(159,184,168,.35); }
.w-state { font-size: 12px; color: var(--acc1); display: flex; align-items: center; gap: 6px; }
.w-hint { font-size: 13px; color: var(--muted2); border-left: 1px solid var(--acc2); padding: 6px 0 6px 12px; }
.acct-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.acct-card b { display: block; font-family: var(--mono); font-size: 13.5px; font-weight: 500; word-break: break-all; }
.acct-card span { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.acct-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct-actions .pill-danger { grid-column: 1 / -1; }

/* ---------------- toasts ---------------- */
.toasts { position: fixed; top: calc(var(--top) + 10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { pointer-events: auto; background: rgba(28,28,31,.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line2); padding: 11px 18px; border-radius: 999px; font-size: 13.5px; box-shadow: 0 14px 34px -14px #000; display: flex; align-items: center; gap: 8px; animation: toastIn .5s var(--ease); }
.toast.ok::before { content: '✓'; color: var(--ok); }
.toast.err::before { content: '!'; color: var(--ink); background: var(--bad); width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.toast.out { animation: fadeOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------- mint 求籤 ---------------- */
.page-title { font-family: var(--serif); font-size: clamp(30px, 8vw, 50px); font-weight: 500; letter-spacing: .04em; line-height: 1.15; }
html:not(:lang(zh)):not(:lang(ja)) .page-title { letter-spacing: 0; }
.mint-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 18px 22px 0; display: grid; grid-template-areas: "head" "temple" "action" "details"; gap: 18px; }
.vt-page { position: absolute; right: 14px; top: 26px; font-size: 13px; }
html:not(:lang(zh)):not(:lang(ja)) .vt-page { display: none; }
.mint-head { grid-area: head; display: flex; flex-direction: column; gap: 8px; padding-right: 26px; }
.mint-head .row-between { padding-right: 0; }
.temple { grid-area: temple; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tube { position: relative; width: 150px; aspect-ratio: 2 / 3; margin-top: 44px; border-radius: 24px; }
.tube-glow { position: absolute; left: 50%; top: 58%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tc, #CFC6B4) 22%, transparent), transparent 65%); transition: background 1s; animation: breathe 8s ease-in-out infinite; pointer-events: none; }
.tube-inner { position: absolute; inset: 0; transform-origin: 50% 92%; }
.tube-svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.lot { --tc: #CFC6B4; position: absolute; z-index: 0; left: 50%; bottom: 30%; width: 22px; height: 52%; margin-left: -11px; border-radius: 11px; transform-origin: 50% 100%;
  background: linear-gradient(90deg, #8E8574, #EFE8DA 50%, #9B927F); box-shadow: 0 0 0 1px rgba(0,0,0,.25); opacity: 0; transition: box-shadow .8s; }
.lot-in { position: absolute; top: 8px; left: 0; right: 0; display: flex; justify-content: center; }
.lot-in b { writing-mode: vertical-rl; text-orientation: upright; font-family: var(--serif); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; color: #2A241A; white-space: nowrap; }
.tube.shaking .tube-inner { animation: tubeShake .42s ease-in-out infinite; }
.tube.drawn .lot { opacity: 1; animation: lotRise 1.25s var(--ease) forwards; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 28px 2px color-mix(in srgb, var(--tc) 70%, transparent); }
.tube.drawn .lot-in b { color: #2A1A0C; }
@keyframes tubeShake { 0%, 100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(-7deg) translateY(-3px); } 75% { transform: rotate(7deg) translateY(-3px); } }
@keyframes lotRise { 0% { transform: translateY(0); } 55% { transform: translateY(-84%) rotate(0); } 100% { transform: translateY(-76%) translateX(26px) rotate(14deg); } }
.hint { font-size: 12px; color: var(--muted); letter-spacing: .05em; text-align: center; min-height: 20px; }
.mint-action { grid-area: action; display: flex; flex-direction: column; gap: 12px; }
.mint-details { grid-area: details; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.qty-row, .total-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.total-row { border-top: 1px solid var(--line); padding-top: 8px; }
.total-row b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; }
.qty button { width: 46px; height: 44px; font-size: 19px; color: var(--muted2); border-radius: 999px; }
.qty button:active { background: var(--glass2); }
.qty input { width: 40px; height: 44px; text-align: center; background: transparent; border: 0; font-weight: 500; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 16px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--acc); transition: width 1.8s var(--ease); }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.odds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.odd { --tc: var(--acc1); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); }
.odd i { font-style: normal; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--tc); }
.odd span { font-size: 11px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.odd b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) {
  .mint-wrap { grid-template-columns: 64px 1fr 400px; grid-template-areas: "vt temple head" "vt temple action" "vt temple details"; column-gap: 48px; row-gap: 22px; padding: 40px 48px 0; align-items: start; }
  .mint-wrap > .vt-page { position: static; grid-area: vt; font-size: 18px; margin-top: 8px; }
  html:not(:lang(zh)):not(:lang(ja)) .mint-wrap { grid-template-columns: 1fr 400px; grid-template-areas: "temple head" "temple action" "temple details"; }
  .mint-head { padding-right: 0; }
  .temple { position: sticky; top: calc(var(--top) + 40px); padding-top: 70px; }
  .tube { width: 230px; margin-top: 60px; }
  .tube-glow { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .lot { width: 30px; margin-left: -15px; border-radius: 15px; }
  .lot-in b { font-size: 15px; }
}

/* ---------------- agent 問卜 ---------------- */
.page-agent { padding-bottom: 0; }
.agent-gate { min-height: calc(100dvh - var(--top) - 20px); display: grid; place-items: center; padding: 24px 24px 110px; }
.gate { width: 100%; max-width: 400px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gate-seal { width: 108px; height: 108px; display: grid; place-items: center; position: relative; margin-bottom: 10px; color: var(--acc1); }
.gate-seal::before { content: ''; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(207,198,180,.14), transparent 65%); animation: breathe 7s ease-in-out infinite; }
.gate-seal::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(207,198,180,.18); animation: inkRing 5s ease-out infinite; }
.gate-seal svg { width: 100%; height: 100%; position: relative; }
@keyframes inkRing { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.gate .pill { margin-top: 12px; }
.gate-feats { margin-top: 8px; color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.gate-feats i { font-style: normal; opacity: .5; }
.chat { position: relative; height: calc(100dvh - var(--top) - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; }
.vt-chat { position: absolute; left: -84px; top: 40px; font-size: 18px; display: none; }
@media (min-width: 1000px) { .vt-chat { display: flex; } }
html:not(:lang(zh)):not(:lang(ja)) .vt-chat { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex: none; }
.agent-ava { width: 44px; height: 44px; color: var(--acc1); flex: none; }
.agent-ava svg { width: 100%; height: 100%; }
.agent-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.agent-meta b { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.agent-meta > span { font-size: 11.5px; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.dot-online { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 3s ease-in-out infinite; }
.chat-head-r { margin-left: auto; display: flex; align-items: center; gap: 4px; min-width: 0; }
.addr-chip, .bal-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; white-space: nowrap; font-family: var(--mono); color: var(--muted2); }
.bal-chip { padding: 0 10px; font-family: var(--sans); }
@media (max-width: 480px) { .bal-chip { display: none; } }
.chat-body { flex: 1; overflow-y: auto; padding: 22px 16px 12px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.msg { display: flex; gap: 10px; max-width: 100%; align-items: flex-start; }
.msg .ava { width: 30px; height: 30px; border-radius: 50%; flex: none; overflow: hidden; }
.msg.bot .ava { color: var(--acc1); }
.msg.bot .ava svg { width: 100%; height: 100%; }
.msg.me { flex-direction: row-reverse; }
.msg.me .ava img { width: 100%; height: 100%; image-rendering: pixelated; }
.bubble { padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.7; max-width: min(80%, 600px); overflow-wrap: anywhere; }
.msg.bot .bubble { background: var(--glass); border: 1px solid var(--line); border-top-left-radius: 6px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.msg.me .bubble { background: var(--text); color: var(--ink); border-top-right-radius: 6px; }
.msg.ink .bubble { -webkit-mask-image: linear-gradient(100deg, #000 40%, rgba(0,0,0,.35) 47%, transparent 58%); mask-image: linear-gradient(100deg, #000 40%, rgba(0,0,0,.35) 47%, transparent 58%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; animation: inkIn 1.3s cubic-bezier(.4,0,.2,1) both; }
.msg.ink .ava { animation: fadeIn .8s ease both; }
@keyframes inkIn { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: blur(3px); opacity: .4; } to { -webkit-mask-position: 0 0; mask-position: 0 0; filter: blur(0); opacity: 1; } }
.bubble p + p, .bubble p + ul, .bubble ul + p, .bubble p + ol, .bubble ol + p, .bubble pre + p, .bubble p + pre { margin-top: 8px; }
.bubble ul, .bubble ol { margin: 0; padding-left: 20px; }
.bubble li + li { margin-top: 3px; }
.bubble code { font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 5px; }
.bubble pre { background: var(--ink); border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; overflow-x: auto; margin: 0; }
.bubble pre code { background: none; padding: 0; }
.bubble a { color: var(--acc1); text-decoration: underline; text-underline-offset: 2px; }
.bubble strong { color: #fff; font-weight: 600; }
.msg.me .bubble strong { color: var(--ink); }
.msg.err .bubble { border-color: rgba(231,161,161,.35); color: var(--bad); }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc1); animation: inkDot 1.6s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes inkDot { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.chat-foot { flex: none; padding: 8px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,10,11,.6), rgba(10,10,11,.95)); }
.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line2); font-size: 13px; color: var(--muted2); white-space: nowrap; transition: border-color .3s, color .3s; }
@media (hover: hover) { .chip:hover { border-color: rgba(207,198,180,.5); color: var(--text); } }
.composer { display: flex; align-items: flex-end; gap: 8px; background: var(--glass); border: 1px solid var(--line2); border-radius: 26px; padding: 5px 5px 5px 18px; transition: border-color .3s; }
.composer:focus-within { border-color: rgba(207,198,180,.45); }
.composer textarea { flex: 1; background: transparent; border: 0; resize: none; outline: none; font-size: 16px; line-height: 1.45; padding: 10px 0; max-height: 140px; min-height: 22px; }
.composer textarea::placeholder { color: var(--muted); }
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: var(--ink); display: grid; place-items: center; flex: none; transition: opacity .3s, transform .2s; }
.send-btn:disabled { opacity: .25; }
.send-btn:active { transform: none; }
.chat-disc { text-align: center; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ---------------- burn 焚化 ---------------- */
.burn-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 18px 22px 0; display: grid; gap: 26px; }
.burn-main { min-width: 0; }
.page-head { display: flex; flex-direction: column; gap: 8px; padding-right: 26px; }
.page-head .notice { margin-top: 6px; }
.altar { position: relative; margin: 26px 0 30px; display: flex; flex-direction: column; align-items: center; }
.altar-cards { display: flex; justify-content: center; align-items: flex-end; min-height: 78px; padding: 0 10px; }
.altar-cards .ac { --tc: var(--acc1); width: 48px; height: 64px; border-radius: 5px; overflow: hidden; margin: 0 -6px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 60%, transparent), 0 10px 20px -8px #000; transform: rotate(var(--r, 0deg)); animation: place .7s var(--ease) both; background: var(--ink3); }
.altar-cards .ac img { width: 100%; height: 100%; object-fit: cover; }
.altar-cards .more { align-self: center; margin-left: 16px; font-size: 13px; color: var(--muted2); }
@keyframes place { from { opacity: 0; transform: translateY(-22px) rotate(var(--r, 0deg)); filter: blur(4px); } }
.altar-line { width: min(100%, 520px); height: 1px; margin-top: 10px; background: linear-gradient(90deg, transparent, var(--acc1) 25%, var(--acc2) 75%, transparent); opacity: .7; }
.censer { position: relative; width: 132px; margin-top: 4px; }
.censer svg { width: 100%; height: auto; display: block; overflow: visible; }
.censer.small { width: 110px; }
.smoke { position: absolute; left: 50%; top: -6px; width: 0; height: 0; }
.smoke i { position: absolute; left: -2px; bottom: 0; width: 4px; height: 70px; border-radius: 4px; background: linear-gradient(180deg, transparent, rgba(207,198,180,.35)); filter: blur(3px); opacity: 0; animation: smoke 7s ease-in-out infinite; }
.smoke i:nth-child(2) { left: -6px; animation-delay: 2.3s; } .smoke i:nth-child(3) { left: 3px; animation-delay: 4.6s; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(0) scaleY(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-60px) translateX(10px) scaleY(1.3) skewX(10deg); } }
.altar-hint { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.toolbar h3 { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.toolbar .count { color: var(--muted); font-size: 12px; border: 1px solid var(--line2); padding: 1px 9px; border-radius: 999px; }
.toolbar-r { display: flex; gap: 2px; }
.burn-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pick { position: relative; border-radius: 20px; padding: 8px; background: var(--glass); border: 1px solid var(--line); transition: border-color .4s, background .4s; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.pick .bao-card { width: 100%; pointer-events: none; }
.pick.on { border-color: rgba(207,198,180,.7); background: rgba(207,198,180,.06); }
.pick .chk { position: absolute; top: 14px; right: 14px; z-index: 7; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(237,234,228,.7); background: rgba(10,10,11,.55); display: grid; place-items: center; transition: all .35s var(--ease); }
.pick.on .chk { background: var(--text); border-color: var(--text); }
.pick .chk svg { opacity: 0; transition: opacity .2s; }
.pick.on .chk svg { opacity: 1; }
.pick-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 2px; font-size: 12.5px; }
.pick-meta .r1 { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pick-meta b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-meta .amt { color: var(--acc1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick .demo { font-size: 10px; padding: 0 7px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line2); white-space: nowrap; flex: none; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--line2); border-radius: 22px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.burn-summary { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); }
.sum-lines { display: flex; flex-direction: column; gap: 8px; min-height: 20px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13.5px; }
.sum-line .l { display: flex; align-items: center; gap: 8px; color: var(--muted2); }
.sum-line .l i { width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.sum-line .r { font-variant-numeric: tabular-nums; }
.sum-total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-total .k { width: 100%; }
.sum-total b { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sum-total .sym { color: var(--acc1); font-size: 13px; letter-spacing: .1em; }
.warn { color: var(--bad); }
.burn-bar { visibility: hidden; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + var(--safe-b)); background: rgba(17,17,19,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line2); transform: translateY(110%); transition: transform .55s var(--ease), visibility .55s; }
.burn-bar.show { transform: none; visibility: visible; }
.burn-bar > div { display: flex; flex-direction: column; line-height: 1.3; }
.burn-bar b { font-size: 17px; font-weight: 500; }
.burn-bar .pill { min-width: 128px; min-height: 48px; }
@media (min-width: 640px) { .burn-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 959px) { .burn-summary .pill-ember { display: none; } }
@media (min-width: 960px) {
  .burn-wrap { grid-template-columns: 64px 1fr 340px; column-gap: 48px; padding: 40px 48px 0; align-items: start; }
  html:not(:lang(zh)):not(:lang(ja)) .burn-wrap { grid-template-columns: 1fr 340px; }
  .burn-wrap > .vt-page { position: static; font-size: 18px; margin-top: 8px; }
  .page-head { padding-right: 0; }
  .burn-summary { position: sticky; top: calc(var(--top) + 30px); margin-top: 230px; }
  .burn-bar { display: none; }
}
@media (min-width: 1100px) { .burn-cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- stages (reveal / burn) ---------------- */
.stage { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; }
.stage-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(26,26,29,.975), rgba(6,6,7,.99) 70%); animation: fadeIn .6s ease; }
/* the full-screen blended grain sat on top of the 3D card and re-blended every frame (iOS flicker): off while a stage is open */
body.stage-on .grain { display: none; } /* class set in JS: a body-level :has() re-checked every [hidden] toggle on the page */
.stage-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px 20px calc(24px + var(--safe-b)); width: 100%; max-width: 560px; max-height: 100dvh; overflow-y: auto; }
.stage-rays { position: absolute; left: 50%; top: 42%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; opacity: 0; z-index: 1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--ray, rgba(207,198,180,.12)) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 52%); mask: radial-gradient(circle, #000 0%, transparent 52%); }
.stage-ring { position: absolute; left: 50%; top: 42%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; border: 1.5px solid var(--ringc, #CFC6B4); opacity: 0; z-index: 1; pointer-events: none; }
.stage-flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 3; pointer-events: none; }
.stage.fx-rays .stage-rays { animation: raysIn 1.2s ease forwards, raysSpin 40s linear infinite; }
.stage.fx-ring .stage-ring { animation: ring 1.3s ease-out; }
.stage.fx-flash .stage-flash { animation: flash 1s ease-out; }
.stage.fx-shake .stage-in { animation: shake .6s cubic-bezier(.36,.07,.19,.97); }
@keyframes raysIn { to { opacity: 1; } }
@keyframes raysSpin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes flash { 0% { opacity: .8; } 100% { opacity: 0; } }
@keyframes shake { 10%, 90% { transform: translate(-1px, 0); } 20%, 80% { transform: translate(3px, 1px); } 30%, 50%, 70% { transform: translate(-5px, -1px); } 40%, 60% { transform: translate(5px, 1px); } }
.reveal-lot { --tc: #CFC6B4; position: absolute; left: 50%; top: 40px; width: 34px; height: min(62vh, 420px); margin-left: -17px; border-radius: 17px; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #8E8574, #EFE8DA 50%, #9B927F); box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 0 30px 2px color-mix(in srgb, var(--tc) 45%, transparent); display: flex; justify-content: center; padding-top: 18px; }
.reveal-lot b { writing-mode: vertical-rl; text-orientation: upright; font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .16em; color: #2A1A0C; }
.reveal-lot.show { animation: lotOpen 1.1s var(--ease) forwards; }
@keyframes lotOpen { 0% { opacity: 0; transform: translateY(30px); } 25% { opacity: 1; transform: none; } 70% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(9) scaleY(.85); filter: brightness(1.6) blur(4px); } }
.reveal-holder { width: min(66vw, 300px); position: relative; }
.reveal-holder.unfold { animation: unfold 1s var(--ease) both; }
@keyframes unfold { 0% { opacity: 0; transform: scaleX(.08); filter: brightness(2); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; filter: none; } }
/* Two-phase single-face flip (no backface-visibility, no preserve-3d): the back face turns
   0 -> 90deg and is removed, then the front turns -90 -> 0deg. Only one face is ever rendered. */
.reveal-holder .flip { display: grid; }
.reveal-holder .face { grid-area: 1 / 1; transform-origin: 50% 50%; }
.reveal-holder .face[hidden] { display: none !important; }
.reveal-holder .face .bao-card { width: 100%; }
.reveal-holder.charging .face.back { animation: charge 1s ease-in forwards; }
@keyframes charge { 0% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.02) rotate(-1deg); } 75% { transform: scale(1.04) rotate(1.2deg); filter: brightness(1.4); } 100% { transform: scale(1.05); filter: brightness(2); } }
.reveal-text { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 40px; }
.reveal-text.pending > :not(.rt-wait) { visibility: hidden; animation: none; }
.reveal-text .rt-wait { position: absolute; left: 0; right: 0; top: 0; }
.reveal-text:not(.pending) .rt-wait { display: none; }
.reveal-text .rt-k { color: var(--muted2); font-size: 13.5px; letter-spacing: .04em; }
.reveal-text h2 { font-family: var(--serif); font-size: clamp(32px, 8vw, 46px); font-weight: 600; letter-spacing: .04em; }
.reveal-text .rt-tier { background: linear-gradient(90deg, var(--t1), var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal-text .rt-note { font-size: 11.5px; color: var(--muted); }
.reveal-text .rt-more { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.reveal-text .rt-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.reveal-text > * { animation: rise .8s var(--ease) both; }
.reveal-text > *:nth-child(2) { animation-delay: .1s; } .reveal-text > *:nth-child(3) { animation-delay: .2s; } .reveal-text > *:nth-child(4) { animation-delay: .3s; } .reveal-text > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.mini-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12px; }
.mini-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.burn-in { gap: 22px; }
.burn-counter { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; opacity: .35; transition: opacity .6s, transform .5s var(--ease); }
.burn-counter.live { opacity: 1; }
.burn-counter.pop { transform: none; }
.burn-counter b { font-family: var(--serif); font-size: clamp(44px, 12vw, 72px); font-weight: 500; background: linear-gradient(180deg, #FFFFFF, #CFC6B4 70%, #9FB8A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.burn-counter .sym { color: var(--acc1); font-size: 15px; letter-spacing: .12em; }
.burn-counter .bc-plus { color: var(--acc1); font-size: 28px; font-weight: 300; }
.stage-altar { display: flex; flex-direction: column; align-items: center; width: 100%; }
.burn-row { display: flex; justify-content: center; align-items: flex-end; min-height: 190px; width: 100%; }
.burn-row .burn-slot { width: 28%; max-width: 140px; margin: 0 -3%; position: relative; transition: transform .6s var(--ease); }
.burn-row .burn-slot .bao-card { width: 100%; }
.burn-row .burn-slot.burning .bao-card { -webkit-mask-image: linear-gradient(to top, transparent calc(var(--burn) - 6%), #000 calc(var(--burn) + 4%)); mask-image: linear-gradient(to top, transparent calc(var(--burn) - 6%), #000 calc(var(--burn) + 4%)); }
.burn-row .burn-slot .burn-edge { position: absolute; left: -4%; right: -4%; height: 16px; bottom: calc(var(--burn) - 8px); background: radial-gradient(ellipse at center, rgba(255,226,170,.95), rgba(255,130,60,.65) 40%, transparent 72%); filter: blur(2px); opacity: 0; pointer-events: none; z-index: 8; mix-blend-mode: screen; }
.burn-row .burn-slot.burning .burn-edge { opacity: 1; }
.burn-row .more-n { align-self: center; margin-left: 14px; color: var(--muted2); }
.burn-steps { list-style: none; padding: 0; margin: 0; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.burn-steps li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--muted2); transition: all .4s; }
.burn-steps li .st { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; font-size: 11px; }
.burn-steps li.active { color: var(--text); border-color: rgba(207,198,180,.4); }
.burn-steps li.active .st { border-color: var(--acc1); border-right-color: transparent; animation: spin .9s linear infinite; }
.burn-steps li.done { color: var(--text); }
.burn-steps li.done .st { background: var(--ok); border-color: var(--ok); color: var(--ink); }
.burn-steps li small { margin-left: auto; color: var(--muted); font-size: 11px; font-family: var(--mono); }
.burn-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.burn-done h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: .04em; }
.burn-done .btns { display: flex; gap: 10px; margin-top: 10px; }
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 250; }
.noscript { position: fixed; inset: auto 0 0 0; padding: 14px; background: var(--ink3); color: var(--text); text-align: center; z-index: 999; }

/* =====================================================================
   NFT CARD COMPONENT
   ===================================================================== */
.bao-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --px: 0; --py: 0; --o: 0; --hyp: 0;
  --c1: #4FD18B; --c2: #17784A; --c3: #C9FFE0;
  position: relative; aspect-ratio: 896 / 1200; container-type: inline-size; perspective: 900px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bc-tilt { position: absolute; inset: 0; transform: rotateX(var(--rx)) rotateY(var(--ry)); border-radius: 5.2cqw; }
.is-live > .bc-tilt { will-change: transform; }
.bc-frame { position: absolute; inset: 0; border-radius: 5.2cqw; padding: 3cqw; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--c2) 0%, var(--c1) 30%, var(--c3) 50%, var(--c1) 70%, var(--c2) 100%);
  box-shadow: 0 2px 0 rgba(255,255,255,.12) inset, 0 calc(10px + var(--hyp) * 10px) 40px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4); }
.bc-frame::after { /* moving metal highlight on the frame itself */ content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(calc(110deg + var(--px) * 30deg), transparent 30%, rgba(255,255,255,.55) 48%, transparent 62%); background-size: 220% 220%; background-position: calc(var(--mx)) calc(var(--my)); mix-blend-mode: overlay; }
.bc-inner { position: relative; width: 100%; height: 100%; border-radius: 3cqw; overflow: hidden; background: #0B0E11; isolation: isolate; }
.bc-art { position: absolute; inset: -4%; transform: translate(calc(var(--px) * -2.2%), calc(var(--py) * -2.2%)) scale(1.02); }
.bc-art img { width: 100%; height: 100%; object-fit: cover; }
.bc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,10,.72) 0%, rgba(6,8,10,0) 17%, rgba(6,8,10,0) 58%, rgba(6,8,10,.86) 86%, rgba(6,8,10,.95) 100%); }
.bc-holo, .bc-glitter, .bc-glare { position: absolute; inset: 0; pointer-events: none; }
.bc-glare { background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.62) 0%, rgba(255,255,255,.18) 22%, rgba(255,255,255,0) 58%); mix-blend-mode: overlay; opacity: calc(var(--o) * .9); z-index: 6; }
.bc-glitter { background-image: url(../assets/glitter.png); background-size: 34cqw; background-position: calc(var(--px) * 14px) calc(var(--py) * 14px); mix-blend-mode: color-dodge; opacity: 0;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.25) 45%, transparent 75%); mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.25) 45%, transparent 75%); }
.bc-text { position: absolute; inset: 0; z-index: 5; padding: 6.2cqw 6cqw 5.2cqw; display: flex; flex-direction: column; justify-content: space-between; transform: translate(calc(var(--px) * 1.4cqw), calc(var(--py) * 1.4cqw)); font-family: 'Inter', 'Noto Sans HK', sans-serif; }
.bc-top { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.bc-brand { font-size: 3.5cqw; font-weight: 700; letter-spacing: .08em; color: rgba(234,236,239,.92); white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.bc-badge { font-size: 3.4cqw; font-weight: 800; color: #0B0E11; background: #F0B90B; padding: .9cqw 2.6cqw; border-radius: 99px; white-space: nowrap; box-shadow: 0 0 12px rgba(240,185,11,.35); }
.bc-bottom { display: flex; flex-direction: column; gap: 1.2cqw; }
.bc-zh { font-family: 'Noto Sans HK', 'PingFang HK', sans-serif; font-weight: 900; font-size: 15cqw; line-height: 1; letter-spacing: .02em;
  background: linear-gradient(180deg, var(--c3), var(--c1) 60%, var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 3cqw color-mix(in srgb, var(--c1) 55%, transparent)); }
.bc-row { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.bc-en { font-size: 6.4cqw; font-weight: 800; letter-spacing: .04em; color: #EAECEF; }
.bc-pill { font-size: 2.8cqw; font-weight: 700; letter-spacing: .06em; color: var(--c3); border: .3cqw solid var(--c1); padding: .8cqw 2.2cqw; border-radius: 99px; white-space: nowrap; background: rgba(0,0,0,.35); }
.bc-foot { display: flex; justify-content: space-between; padding-top: 2cqw; margin-top: .8cqw; border-top: .25cqw solid rgba(255,255,255,.14); font-size: 2.9cqw; font-weight: 600; letter-spacing: .06em; color: #848E9C; }
.bc-serial { color: #B7BDC6; font-variant-numeric: tabular-nums; }
.bc-aura { position: absolute; inset: -3%; border-radius: 7cqw; opacity: 0; pointer-events: none; }
.size-sm .bc-text { padding: 5.6cqw 5.4cqw 4.8cqw; }
.size-sm .bc-brand { font-size: 3.6cqw; }

/* --- Jade: soft jade sheen --- */
.tier-jade { --c1: #5BD99A; --c2: #146B43; --c3: #D4FFE6; }
.tier-jade .bc-holo { background: linear-gradient(calc(115deg + var(--px) * 20deg), transparent 25%, rgba(120,255,190,.35) 44%, rgba(255,255,255,.3) 50%, rgba(120,255,190,.35) 56%, transparent 75%);
  background-size: 300% 300%; background-position: var(--mx) var(--my); mix-blend-mode: soft-light; opacity: calc(.35 + var(--o) * .65); }

/* --- Silver: chrome sweep + sparkles --- */
.tier-silver { --c1: #E4EAF1; --c2: #6E7887; --c3: #FFFFFF; }
.tier-silver .bc-frame { background: linear-gradient(calc(135deg + var(--px) * 40deg), #5D6674 0%, #F4F7FA 18%, #8C96A4 34%, #FFFFFF 50%, #7C8694 66%, #E9EEF3 82%, #5D6674 100%); }
.tier-silver .bc-holo { background: repeating-linear-gradient(calc(110deg + var(--px) * 25deg), rgba(255,255,255,0) 0%, rgba(210,225,240,.38) 6%, rgba(255,255,255,0) 12%), linear-gradient(calc(120deg + var(--px) * 30deg), transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 200% 200%, 260% 260%; background-position: var(--mx) var(--my), var(--mx) var(--my); mix-blend-mode: color-dodge; opacity: calc(.15 + var(--o) * .5); }
.tier-silver .bc-glitter { opacity: calc(.2 + var(--o) * .55); filter: hue-rotate(180deg) saturate(.4); }

/* --- Gold: gold foil glare + rainbow stripes + glitter --- */
.tier-gold { --c1: #F0B90B; --c2: #8C5A07; --c3: #FFEFA6; }
.tier-gold .bc-frame { background: linear-gradient(calc(135deg + var(--px) * 40deg), #7A4E05 0%, #F0B90B 20%, #FFF2B0 36%, #D99A0B 52%, #FFE27A 68%, #A86F08 84%, #F8D25A 100%); }
.tier-gold .bc-holo { background:
    repeating-linear-gradient(calc(115deg + var(--px) * 20deg), hsla(0,100%,70%,.0) 0%, hsla(30,100%,65%,.5) 4%, hsla(60,100%,65%,.5) 8%, hsla(140,100%,65%,.45) 12%, hsla(200,100%,65%,.45) 16%, hsla(280,100%,70%,.45) 20%, hsla(330,100%,70%,0) 24%),
    radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,226,140,.6), transparent 55%);
  background-size: 260% 260%, 100% 100%; background-position: var(--mx) var(--my), center; mix-blend-mode: color-dodge; opacity: calc(.12 + var(--o) * .5); }
.tier-gold .bc-glitter { opacity: calc(.3 + var(--o) * .6); filter: sepia(1) saturate(3) hue-rotate(-10deg); }
.tier-gold .bc-aura { background: radial-gradient(closest-side, rgba(240,185,11,.45), transparent); filter: blur(14px); opacity: calc(.35 + var(--o) * .4); }

/* --- Dragon: full prismatic foil, animated aura border, embers --- */
.tier-dragon { --c1: #FFB347; --c2: #E0452B; --c3: #FFF0B8; }
.tier-dragon .bc-frame { background: #1a0d05; }
.tier-dragon .bc-frame::before { content: ''; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(from 0deg, #FF5A36, #FFB703, #FFE066, #80FFDB, #4CC9F0, #C77DFF, #FF5A9E, #FF5A36); animation: auraSpin 6s linear infinite; }
.tier-dragon .bc-holo { background:
    repeating-linear-gradient(calc(120deg + var(--px) * 30deg), hsla(0,100%,65%,.55) 0%, hsla(45,100%,60%,.55) 5%, hsla(90,100%,60%,.5) 10%, hsla(180,100%,60%,.5) 15%, hsla(240,100%,70%,.5) 20%, hsla(300,100%,70%,.55) 25%, hsla(360,100%,65%,.55) 30%),
    repeating-linear-gradient(calc(-45deg + var(--py) * 20deg), rgba(0,0,0,.5) 0%, rgba(255,255,255,.25) 2.5%, rgba(0,0,0,.5) 5%),
    radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 60%);
  background-size: 300% 300%, 200% 200%, 100% 100%; background-position: var(--mx) var(--my), calc(100% - var(--mx)) var(--my), center;
  background-blend-mode: overlay, normal, normal; mix-blend-mode: color-dodge; opacity: calc(.22 + var(--o) * .55);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, rgba(0,0,0,.55) 80%); mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, rgba(0,0,0,.55) 80%); }
.tier-dragon .bc-glitter { opacity: calc(.35 + var(--o) * .65); }
.tier-dragon .bc-aura { inset: -5%; background: conic-gradient(from 0deg, #FF5A36, #FFB703, #80FFDB, #4CC9F0, #C77DFF, #FF5A36); filter: blur(22px); opacity: calc(.45 + var(--o) * .35); animation: auraSpin 6s linear infinite; border-radius: 50%; }
.tier-dragon .bc-zh { background: linear-gradient(90deg, #FFF0B8, #FFB347 45%, #FF6A3D); -webkit-background-clip: text; background-clip: text; }
@keyframes auraSpin { to { transform: rotate(360deg); } }

/* embers */
.bc-embers { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.bc-embers i { position: absolute; left: var(--x); bottom: -4%; width: calc(1.4cqw * var(--z)); height: calc(1.4cqw * var(--z)); border-radius: 50%; background: radial-gradient(circle, #FFF3C4, #FFB347 40%, rgba(255,90,54,0) 70%); animation: ember var(--s) linear var(--d) infinite; opacity: 0; }
.tier-gold .bc-embers i { background: radial-gradient(circle, #FFFBE6, #F0B90B 45%, rgba(240,185,11,0) 70%); }
@keyframes ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(calc((var(--z) - 1) * 40cqw), -105cqw) scale(.3); opacity: 0; } }

/* card back */
.bao-back .bc-frame { background: linear-gradient(135deg, #8C5A07, #F0B90B 30%, #FFEFA6 50%, #F0B90B 70%, #8C5A07); }
.bc-back-inner { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #2a2006, #0B0E11 65%); }
.bc-back-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(240,185,11,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(240,185,11,.25) 1px, transparent 1px); background-size: 8cqw 8cqw; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.bc-back-mark { width: 46cqw; color: #F0B90B; filter: drop-shadow(0 0 4cqw rgba(240,185,11,.6)); position: relative; }
.bc-back-word { position: absolute; bottom: 12cqw; font-weight: 900; letter-spacing: .5em; font-size: 6cqw; color: rgba(240,185,11,.8); padding-left: .5em; }

/* static (reduced motion) */
.is-static .bc-tilt { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .bc-embers { display: none; }
  .tier-dragon .bc-frame::before, .tier-dragon .bc-aura { animation: none !important; }
}

.kicker-chain { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .16em; }
@media (max-width: 380px) { .kicker-chain { letter-spacing: .1em; font-size: 10px; } }
.bnb-mark { width: 15px; height: 15px; flex: none; }
.cw-ico { width: 17px; height: 17px; flex: none; display: inline-block; vertical-align: -3px; }
.btn-connect, #gateBtn, .empty .pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.footer-x { display: inline-flex; align-items: center; gap: 8px; margin: 4px auto 10px; padding: 8px 16px; border: 1px solid var(--line2); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 13.5px; letter-spacing: .02em; transition: border-color .2s, background .2s; }
.footer-x:hover { border-color: var(--acc1, #E4DCCB); background: rgba(255,255,255,.03); }


/* =====================================================================
   v13 · mint gate + price ladder, roadmap 天機路線 (incense path), Community LP
   ===================================================================== */
/* ---- mint: .ai Agent ID gate ---- */
.gate-status { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.gs-ico { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; position: relative; }
.gs-ico::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acc1); opacity: .7; }
.gs-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-txt b { font-weight: 500; font-size: 14px; color: var(--text); }
.gs-txt span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.gate-status .pill { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
.gate-status[data-state="check"] .gs-ico { border-color: var(--acc1); border-right-color: transparent; animation: spin .9s linear infinite; }
.gate-status[data-state="check"] .gs-ico::before { display: none; }
.gate-status[data-state="ok"] { border-color: color-mix(in srgb, var(--jade) 32%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--jade) 7%, transparent), transparent 75%); }
.gate-status[data-state="ok"] .gs-ico { border-color: var(--jade); }
.gate-status[data-state="ok"] .gs-ico::before { width: 10px; height: 5px; border-radius: 0; background: none; border: solid var(--jade); border-width: 0 0 1.6px 1.6px; transform: translate(0, -1px) rotate(-45deg); opacity: 1; }
.gate-status[data-state="no"], .gate-status[data-state="err"] { border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.gate-status[data-state="no"] .gs-ico, .gate-status[data-state="err"] .gs-ico { border-color: var(--bad); }
.gate-status[data-state="no"] .gs-ico::before, .gate-status[data-state="err"] .gs-ico::before { content: '!'; width: auto; height: auto; background: none; color: var(--bad); font-size: 13px; font-weight: 700; opacity: 1; }
.mint-range { font-size: 12px; color: var(--muted); text-align: right; margin-top: -6px; min-height: 18px; font-variant-numeric: tabular-nums; }
#mintBtn.is-off, #mintBtn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.tube.is-off { opacity: .5; }
.qty button:disabled { opacity: .3; cursor: default; }
/* ---- mint: price ladder (temple steps) ---- */
.ladder-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(207,198,180,.035), transparent 70%); }
.ladder-h .k { font-size: 12px; letter-spacing: .06em; }
.ladder-full { font-size: 12px; color: var(--muted2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; }
.lad { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.lad-p { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted2); white-space: nowrap; transition: color .4s; }
.lad-bar { position: relative; width: 100%; height: calc(8px + 54px * var(--h)); border-radius: 6px 6px 3px 3px; border: 1px solid rgba(207,198,180,.18); background: rgba(255,255,255,.02); overflow: hidden; }
.lad-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u, 0) * 100%); background: repeating-linear-gradient(135deg, rgba(207,198,180,.16) 0 2px, transparent 2px 5px); }
.lad-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--s, 0) * 100%); background: linear-gradient(180deg, #F0E6D2, #E6B98E 60%, #E08A5C); opacity: 0; transition: height .45s var(--ease), opacity .3s; }
.lad.sel .lad-fill { opacity: .9; }
.lad.sel .lad-bar { border-color: rgba(230,185,142,.6); box-shadow: 0 0 18px -6px rgba(230,185,142,.7); }
.lad.sel .lad-p { color: var(--text); }
.lad.done:not(.sel) .lad-p { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(156,151,142,.6); }
.lad-r { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts { grid-template-columns: 1fr 1fr; row-gap: 14px; }
.facts .facts-wide { grid-column: 1 / -1; }
.mint-proceeds { font-size: 12.5px; color: var(--muted2); line-height: 1.65; padding: 10px 0 10px 14px; border-left: 1px solid rgba(230,185,142,.55); }

/* ---- roadmap: one stick of incense per phase ---- */
#roadmap.unroll > .leaf-body { clip-path: none; opacity: 1; transition: none; }
.road { gap: 18px; }
.road-head { display: flex; flex-direction: column; gap: 12px; }
.road-lead { max-width: 40em; line-height: 1.75; color: var(--muted2); }
.rv { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform 1s var(--ease); }
.rv.go { opacity: 1; transform: none; }
.incense { list-style: none; padding: 0; margin: 8px 0 0; position: relative; }
.ph { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding-bottom: 26px; transition-delay: calc(var(--i) * 70ms); }
.ph-rail { position: relative; display: flex; justify-content: center; }
/* the stick: faint dotted ink ahead, lit from the current phase upward */
.ph-rail::before { content: ''; position: absolute; top: 46px; bottom: -26px; left: 50%; width: 1px; margin-left: -.5px; background: repeating-linear-gradient(180deg, rgba(207,198,180,.28) 0 3px, transparent 3px 8px); }
.ph-now .ph-rail::before { background: linear-gradient(180deg, rgba(255,154,90,.75), rgba(207,198,180,.35) 55%, rgba(207,198,180,.14)); }
.incense .ph:nth-last-child(2) .ph-rail::before { display: none; }
.ph-seal { position: relative; z-index: 1; width: 44px; height: 44px; margin-top: 2px; border-radius: 8px; display: grid; place-items: center; font-family: 'Noto Serif HK', var(--serif); font-weight: 700; font-size: 20px; color: rgba(207,198,180,.42); border: 1px solid rgba(207,198,180,.2); background: var(--ink); }
.ph-seal::after { content: ''; position: absolute; inset: 3px; border-radius: 5px; border: 1px dashed rgba(207,198,180,.12); }
.ph-now .ph-seal { color: #1A0E08; border-color: transparent; transform: rotate(-5deg); background: radial-gradient(circle at 35% 30%, #F6C9A0, #E9875A 55%, #B9502F); box-shadow: 0 0 0 1px rgba(255,154,90,.45), 0 0 30px -4px rgba(255,140,80,.65), inset 0 0 8px rgba(80,20,0,.35); }
.ph-now .ph-seal::after { border: 1px solid rgba(40,12,0,.28); }
.ph-past .ph-seal { color: var(--acc1); border-color: rgba(207,198,180,.5); }
.ph-smoke { position: absolute; z-index: 0; top: -22px; left: 50%; width: 20px; height: 28px; margin-left: -10px; pointer-events: none; }
.ph-smoke i { position: absolute; bottom: 0; left: 8px; width: 4px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, transparent, rgba(237,234,228,.28)); animation: smokeUp 4.2s ease-in infinite; opacity: 0; }
.ph-smoke i + i { left: 11px; animation-delay: 2.1s; }
@keyframes smokeUp { 0% { opacity: 0; transform: translate(0, 4px) scaleY(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(5px, -20px) scaleY(1.5) rotate(10deg); } }
.ph-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 1px; }
.ph-k { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
html:lang(zh) .ph-k { letter-spacing: .24em; font-size: 11.5px; }
.ph-st { font-style: normal; display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.ph-now .ph-st { color: #F2C7A2; border-color: rgba(255,154,90,.45); background: rgba(255,154,90,.07); }
.ph-st i { width: 5px; height: 5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: pulse 2.6s ease-in-out infinite; }
.ph-h { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; }
.ph-h b { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .05em; color: var(--text); }
.ph-h span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html:not(:lang(zh)) .ph-h span { text-transform: none; letter-spacing: .3em; font-family: 'Noto Serif HK', var(--serif); font-size: 12px; }
.ph-d { font-size: 13.5px; line-height: 1.7; color: var(--muted2); max-width: 36em; }
.ph-next .ph-h b { color: rgba(237,234,228,.62); }
.ph-next .ph-d { color: rgba(198,193,184,.62); }
.ph-now .ph-h b { background: linear-gradient(100deg, #F6E9D6, #E6B98E 60%, #E9875A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-lp { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid rgba(230,185,142,.32); font-size: 12.5px; color: var(--muted2); background: rgba(230,185,142,.05); }
.ph-lp b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.ph-foot { list-style: none; margin-left: 66px; font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }

/* ---- Initial Community LP fund ---- */
.lpw { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 16px; border-radius: 20px; border: 1px solid rgba(230,185,142,.22); background: linear-gradient(170deg, rgba(230,185,142,.06), rgba(10,10,11,.4) 45%), var(--ink); }
.lpw::before { content: ''; position: absolute; inset: 7px; border-radius: 14px; border: 1px solid rgba(207,198,180,.06); pointer-events: none; }
.lpw-glow { position: absolute; right: -90px; top: -110px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,154,90,.16), transparent 65%); pointer-events: none; }
.lpw > :not(.lpw-glow) { position: relative; }
.lpw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lpw-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #E6B98E; }
html:lang(zh) .lpw-tag { letter-spacing: .22em; font-size: 11.5px; }
.lpw-seal { font-style: normal; width: 24px; height: 24px; border-radius: 5px; display: grid; place-items: center; font-family: 'Noto Serif HK', var(--serif); font-weight: 700; font-size: 12.5px; letter-spacing: 0; color: #E6B98E; border: 1px solid rgba(230,185,142,.5); transform: rotate(-4deg); }
.lpw-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.lpw-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc2); animation: pulse 3s ease-in-out infinite; }
.lpw[data-state="err"] .lpw-live i { background: var(--bad); animation: none; }
.lpw-title { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: .04em; color: var(--text); margin-top: 2px; }
.lpw-amt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.lpw-amt b { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 12vw, 52px); line-height: 1; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; color: var(--text); }
.lpw[data-state="empty"] .lpw-amt b, .lpw[data-state="loading"] .lpw-amt b { color: rgba(237,234,228,.55); }
.lpw[data-state="funded"] .lpw-amt b { background: linear-gradient(100deg, #F6E9D6, #E6B98E 60%, #E9875A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lpw-sym { font-size: 13px; letter-spacing: .16em; color: var(--muted2); }
.lpw-state { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted2); min-height: 20px; }
.lpw-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #E6B98E; box-shadow: 0 0 10px rgba(230,185,142,.8); animation: pulse 2.8s ease-in-out infinite; }
.lpw[data-state="err"] .lpw-dot { background: var(--bad); box-shadow: none; animation: none; }
.lpw-spin { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1.5px solid var(--acc1); border-right-color: transparent; animation: spin .9s linear infinite; }
.lpw-desc { font-size: 13px; line-height: 1.7; color: var(--muted); }
.lpw-cond { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 4px; }
.lpw-cond-k { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lpw-cond-v { font-size: 12.5px; color: var(--muted2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lpw-sticks { display: flex; justify-content: space-between; align-items: flex-end; height: 22px; padding: 0 2px; }
.lpw-sticks i { width: 2px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, rgba(207,198,180,.35), rgba(207,198,180,.12)); }
.lpw-sticks i:nth-child(odd) { height: 15px; }
.lpw-addr { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.lpw-addr-k { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lpw-addr-v { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--muted2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.lpw-addr .icon-btn { margin-right: -10px; }
.lpw-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.lpw-verify { gap: 10px; padding: 0 18px 0 12px; font-size: 13.5px; }
.lpw-verify img { width: 20px; height: 20px; border-radius: 50%; flex: none; background: #F4F1EA; box-shadow: 0 0 0 1.5px #F4F1EA, 0 0 10px -2px rgba(240,185,11,.55); }
.lpw-retry { margin: 0; padding: 0 4px; }
.lpw-time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
@media (hover: hover) { .lpw-verify:hover { border-color: rgba(230,185,142,.5); } .ph-lp:hover { border-color: rgba(230,185,142,.6); color: var(--text); } }
@media (min-width: 960px) {
  .road { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 44px; row-gap: 18px; align-items: start; }
  .road-head { grid-column: 1 / -1; }
  .incense { grid-column: 1; }
  .lpw { grid-column: 2; position: sticky; top: calc(var(--top) + 28px); margin-top: 8px; }
  .ph { grid-template-columns: 60px minmax(0, 1fr); gap: 18px; }
  .ph-foot { margin-left: 78px; }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .ph-smoke { display: none; } }
@media (max-width: 379px) { .lpw-live span { display: none; } .lpw-tag { letter-spacing: .1em; } }
