/* ============================================================
   NIAN — $NIAN presale
   Concept: a trading terminal where red candles are firecrackers.
   ============================================================ */
@font-face { font-family: 'Space Grotesk'; src: url('/vendor/fonts/space-grotesk-var.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/vendor/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/vendor/fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #05070d;
  --panel: #0a0e17;
  --panel-2: #0e131f;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #edf1f7;
  --muted: #8790a5;
  --dim: #4d5568;
  --g: #2bff88;
  --g-2: #12c76a;
  --g-glow: rgba(43, 255, 136, .32);
  --r: #ff3d4f;
  --r-glow: rgba(255, 61, 79, .3);
  --y: #e6c27a;
  --t: #37d9c3;
  --f-head: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --strip: 44px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--strip) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: 96px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
::selection { background: var(--g); color: #022; }
[hidden] { display: none !important; }
.mono { font-family: var(--f-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.up { color: var(--g); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 52px; z-index: 100; padding: 10px 14px; background: var(--g); color: #022; border-radius: 6px; }

.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(43, 255, 136, .07), transparent 70%),
    radial-gradient(50% 40% at 0% 10%, rgba(255, 61, 79, .06), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}

/* ── shared ─────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 600; letter-spacing: -.025em; }
em { font-style: normal; }
h2 em, h1 em { color: var(--g); }
.tag { display: inline-block; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag span { color: var(--g); }
.sec { position: relative; padding: 130px 0 0; }
.head { max-width: 760px; }
.head h2 { margin-top: 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
.head p { margin: 18px 0 0; max-width: 560px; color: var(--muted); font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: 8px;
  font: 600 15px/1 var(--f-head); letter-spacing: .005em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-go { background: var(--g); color: #021a0c; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.btn-go:hover:not(:disabled) { box-shadow: 0 0 0 4px rgba(43, 255, 136, .14), 0 10px 40px -10px var(--g-glow); }
.btn-go:active:not(:disabled) { transform: translateY(1px); }
.btn-line { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-line:hover { border-color: rgba(255, 255, 255, .32); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-xl { width: 100%; height: 56px; font-size: 16.5px; }
.linkbtn { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--text); }

.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.card::after {
  content: ''; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit; --c: rgba(255, 255, 255, .35);
  background:
    linear-gradient(var(--c), var(--c)) top left / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 12px no-repeat;
}
.card-k { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-k b { font: 600 16px/1 var(--f-head); color: var(--text); letter-spacing: 0; }

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .07s; } .rv.d2 { transition-delay: .14s; } .rv.d3 { transition-delay: .21s; }

/* ── status strip ───────────────────────────────────────── */
.strip {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--strip);
  display: flex; align-items: center; gap: 18px; padding: 0 16px;
  background: rgba(5, 7, 13, .78); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  font: 500 12px/1 var(--f-mono);
}
.strip::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: var(--sp, 0%); background: linear-gradient(90deg, var(--r), var(--y), var(--g)); }
.strip-brand { display: flex; align-items: center; gap: 8px; }
.strip-brand img { width: 24px; height: 24px; border-radius: 6px; }
.strip-brand b { font: 700 14px/1 var(--f-head); letter-spacing: .06em; }
.strip-live { margin-right: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 5px; color: var(--g); background: rgba(43, 255, 136, .07); }
.presale-over .strip-live { color: var(--r); background: rgba(255, 61, 79, .08); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.strip-r { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.lang button { white-space: nowrap; height: 28px; padding: 0 10px; font: 600 12px/1 var(--f-mono); color: var(--muted); transition: background .2s, color .2s; }
.lang button + button { border-left: 1px solid var(--line-2); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.cmd-btn { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); transition: border-color .2s, color .2s; }
.cmd-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.cmd-btn svg { width: 14px; height: 14px; }
kbd { font: 500 11px/1 var(--f-mono); padding: 4px 5px; border-radius: 4px; background: rgba(255, 255, 255, .07); color: var(--muted); }

/* ── stage ──────────────────────────────────────────────── */
.stage {
  position: relative; min-height: 100svh; padding: calc(var(--strip) + 22px) 28px 120px;
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line);
}
#chart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; cursor: crosshair; touch-action: pan-y; }
#chart.hot { cursor: pointer; }
.stage-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 13, .86) 28%, rgba(5, 7, 13, 0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 13, 0) 30%); }
.stage-copy { pointer-events: none; }
.stage-copy a, .game { pointer-events: auto; }


.stage-copy { grid-row: 3; max-width: 760px; }
.mark { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.mark img { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 0 50px -8px var(--r-glow); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
.zh-line { margin: 0; display: inline-flex; align-items: center; gap: 12px; font: 500 14px/1 var(--f-body); letter-spacing: .3em; color: var(--muted); }
.zh-line span:first-child { color: var(--r); }
.zh-line span:last-child { color: var(--y); }
.zh-line i { width: 28px; height: 1px; background: var(--line-2); }
.stage h1 { font-size: clamp(56px, 9.4vw, 148px); line-height: .9; letter-spacing: -.05em; }
html[lang^="zh"] .stage h1 { letter-spacing: -.02em; line-height: 1; }
.ln { display: block; }
.ln-r { color: var(--r); text-shadow: 0 0 80px var(--r-glow); }
.stage h1 em { text-shadow: 0 0 80px var(--g-glow); }
.lede { margin: 26px 0 0; max-width: 520px; font-size: 17.5px; color: #bcc3d2; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.game { position: absolute; right: 28px; bottom: 120px; display: grid; gap: 10px; padding: 10px;
  border-radius: 10px; border: 1px solid rgba(255, 61, 79, .35); background: rgba(10, 14, 23, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 12.5px/1.2 var(--f-mono); color: var(--muted); transition: border-color .4s; max-width: min(360px, calc(100vw - 32px)); }
.game-row { display: flex; align-items: center; gap: 10px; }
.game-snd { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--muted); transition: color .2s, background .2s; }
.game-snd:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.game-snd svg { width: 16px; height: 16px; }
.game-snd .snd-off, .game-snd[aria-pressed="false"] .snd-on { display: none; }
.game-snd[aria-pressed="false"] .snd-off { display: inline; }
.game-win { display: flex; gap: 8px; }
.game-win .btn { flex: 1; }
.game-win:not([hidden]) { animation: cmdIn .35s var(--ease); }
.game-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: rgba(255, 61, 79, .14); color: var(--r); }
.game-ic svg { width: 18px; height: 18px; }
.game b { min-width: 26px; padding: 4px 6px; border-radius: 4px; text-align: center; color: var(--text); background: rgba(255, 255, 255, .07); }
.game.pop b { animation: pop .35s var(--ease); }
.game.won { border-color: rgba(43, 255, 136, .5); color: var(--g); }
.game.won .game-ic { background: rgba(43, 255, 136, .14); color: var(--g); }
@keyframes pop { 40% { transform: scale(1.35); color: var(--y); } }

/* ── order desk ─────────────────────────────────────────── */
.desk { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 16px; margin-top: 56px; align-items: start; }
.ticket { padding: 26px; }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tk-top h3 { font-size: 22px; font-weight: 500; color: var(--muted); }
.tk-top h3 b { color: var(--text); font-weight: 700; }
.seg { display: flex; padding: 3px; border-radius: 7px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.mode-btn { height: 30px; padding: 0 14px; border-radius: 5px; font: 600 12.5px/1 var(--f-mono); color: var(--muted); transition: background .2s, color .2s; }
.mode-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .09); color: var(--text); }
.ticket[data-mode="wallet"] .m-manual, .ticket[data-mode="manual"] .m-wallet { display: none; }

.fld { margin-top: 22px; }
.fld-top { display: block; font-size: 13px; color: var(--muted); }
.fld-top .mono { font-size: 11.5px; color: var(--dim); }
.amount { display: flex; align-items: center; gap: 12px; margin-top: 8px; height: 72px; padding: 0 18px; border-radius: 8px; background: #06090f; border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.amount:focus-within { border-color: rgba(43, 255, 136, .6); box-shadow: 0 0 0 4px rgba(43, 255, 136, .07); }
.amount.bad { border-color: rgba(255, 61, 79, .6); }
.amount input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 600 34px/1 var(--f-head); letter-spacing: -.02em; }
.amount input::placeholder { color: var(--dim); }
.asset { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--f-head); color: var(--muted); }
.bnb { width: 20px; height: 20px; transform: rotate(45deg); border-radius: 3px; background: #f3ba2f; box-shadow: inset 0 0 0 5px #f3ba2f, inset 0 0 0 6.5px #06090f; }

.slider { position: relative; margin-top: 18px; --p: 0%; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; position: relative; z-index: 1; }
.slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--g) var(--p), rgba(255, 255, 255, .1) var(--p)); }
.slider input::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.slider input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--g); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 4px; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--g), 0 0 16px var(--g-glow); transform: rotate(45deg); }
.slider input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 3px; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--g); }
.ticks { position: relative; height: 34px; margin-top: 6px; }
.tk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font: 500 10.5px/1 var(--f-mono); color: var(--dim); transition: color .2s; }
.tk::before { content: ''; width: 1px; height: 6px; margin: -12px 0 4px; background: var(--line-2); }
.tk b { font: 600 13px/1 var(--f-head); color: var(--muted); transition: color .2s, text-shadow .2s; }
.tk:hover b { color: var(--text); }
.tk1 { left: 25%; } .tk2 { left: 50%; } .tk3 { left: 75%; }
.tk.on b { color: var(--g); text-shadow: 0 0 14px var(--g-glow); }
.tk.on::before { background: var(--g); }

.receipt { margin-top: 16px; padding: 18px; border-radius: 8px; background: rgba(43, 255, 136, .03); border: 1px dashed rgba(43, 255, 136, .22); }
.rc-k { font-size: 13px; color: var(--muted); }
.rc-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.rc-v b { font: 700 clamp(30px, 3.6vw, 44px)/1 var(--f-head); letter-spacing: -.03em; color: var(--g); word-break: break-all; }
.rc-v > span { font: 600 15px/1 var(--f-head); color: var(--muted); }
.mult { margin-left: auto; align-self: center; padding: 5px 8px; border-radius: 5px; font: 700 13px/1 var(--f-mono); color: var(--dim); background: rgba(255, 255, 255, .05); transition: color .2s, background .2s, transform .3s var(--ease); }
.mult.on { color: #021a0c; background: var(--g); box-shadow: 0 0 20px -4px var(--g-glow); }
.rc-sub { margin-top: 8px; font: 500 12px/1.4 var(--f-mono); color: var(--r); }
.nudge { margin-top: 10px; padding: 8px 10px; border-radius: 6px; font: 500 12.5px/1.3 var(--f-mono); color: var(--y); background: rgba(230, 194, 122, .07); border-left: 2px solid var(--y); }

.m-wallet, .m-manual { margin-top: 16px; display: grid; gap: 10px; }
.wallet-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; background: #06090f; border: 1px solid var(--line); }
.who { display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 13.5px; }
.who span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links { display: flex; gap: 12px; flex-shrink: 0; }
.netbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--r); background: rgba(255, 61, 79, .07); border: 1px solid rgba(255, 61, 79, .3); }
.picker { display: grid; gap: 4px; padding: 8px; border-radius: 8px; border: 1px solid var(--line-2); background: #06090f; }
.picker-head { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 6px 6px 8px; }
.wallet-opt { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 6px; text-align: left; font-weight: 600; font-size: 14px; transition: background .15s; }
.wallet-opt:hover { background: rgba(255, 255, 255, .06); }
.wallet-opt img { width: 22px; height: 22px; border-radius: 5px; }
.wallet-opt .rdns { margin-left: auto; font: 400 11px/1 var(--f-mono); color: var(--dim); }
.txbox { display: grid; gap: 6px; padding: 14px; border-radius: 8px; font-size: 13.5px; background: rgba(43, 255, 136, .07); border: 1px solid rgba(43, 255, 136, .3); }
.txbox a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; }
.noext { padding: 14px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.noext p { margin: 0 0 10px; }
.noext-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sendbox { padding: 16px; border-radius: 8px; border: 1px solid var(--line-2); background: #06090f; }
.sb-k { display: block; font-size: 12.5px; color: var(--muted); }
.addr-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.addr-row code { flex: 1; min-width: 0; font: 500 13.5px/1.45 var(--f-mono); word-break: break-all; user-select: all; }
.copy-btn { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 6px; font: 600 12.5px/1 var(--f-mono); background: var(--text); color: var(--bg); }
.copy-btn.ok { background: var(--g); }
.warn { margin: 10px 0 0; font-size: 12.5px; color: var(--y); }
.fine { margin: 16px 0 0; font-size: 11.5px; color: var(--dim); text-align: center; }
.presale-over #wBuy, .presale-over #wConnect { pointer-events: none; opacity: .4; }

.status-card { padding: 22px; position: sticky; top: calc(var(--strip) + 20px); }
.fillbox { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 4px; color: var(--g); background: rgba(43, 255, 136, .08); }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.presale-over .status { color: var(--r); background: rgba(255, 61, 79, .08); }
.cd { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 18px; }
.cd div { display: flex; flex-direction: column; align-items: center; }
.cd b { font: 600 clamp(34px, 3.6vw, 46px)/1 var(--f-head); letter-spacing: -.03em; }
.cd b.tick { animation: tick .35s var(--ease); }
@keyframes tick { from { opacity: .25; transform: translateY(-6px); } }
.cd span { margin-top: 6px; font: 500 10.5px/1 var(--f-mono); color: var(--dim); text-transform: uppercase; }
.cd > i { font: 300 32px/1 var(--f-head); color: var(--dim); font-style: normal; }
.clock-sub { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

.bar { position: relative; display: flex; height: 12px; margin-top: 16px; border-radius: 3px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; transition: width 1.4s var(--ease); }
.seg-pub { background: var(--g); box-shadow: 0 0 16px var(--g-glow); }
.bar-ticks { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; }
.bar-ticks i { width: 1px; background: rgba(5, 7, 13, .7); }
.sw { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.depth-sub { display: block; margin-top: 8px; font-size: 11.5px; color: var(--dim); }


.howto { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 6px; }
.howto li { display: flex; gap: 14px; padding: 20px; }
.howto li + li { border-left: 1px solid var(--line); }
.howto .mono { font-size: 12px; color: var(--g); padding-top: 3px; }
.howto b { display: block; font: 600 15px/1.3 var(--f-head); }
.howto div span { font-size: 13.5px; color: var(--muted); }

/* ── beast ──────────────────────────────────────────────── */
.beast .wrap { max-width: 1060px; }
.split { margin: 26px 0 0; font: 500 clamp(28px, 4vw, 54px)/1.14 var(--f-head); letter-spacing: -.025em; }
.split + .split { margin-top: 18px; }
.split .w { color: var(--dim); transition: color .45s var(--ease); }
.split .w.on { color: var(--text); }
.split .w.on.hot { color: var(--r); }
.split-g .w.on { color: var(--g); }
html[lang^="zh"] .split { letter-spacing: 0; line-height: 1.3; }

/* ── supply ─────────────────────────────────────────────── */
.alloc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; padding: 30px 24px 22px; border: 1px solid var(--line); border-radius: 6px; position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 59px, var(--line) 59px 60px),
    var(--panel); }
.ac { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; --cc: var(--g); }
.ac[data-c="t"] { --cc: var(--t); } .ac[data-c="y"] { --cc: var(--y); } .ac[data-c="r"] { --cc: var(--r); }
.ac > b { font: 600 clamp(28px, 3.6vw, 44px)/1 var(--f-head); color: var(--cc); }
.ac-body { position: relative; width: 100%; height: 260px; }
.ac-wick { display: none; }
.ac-candle { position: absolute; left: 50%; bottom: 0; width: min(64px, 46%); transform: translateX(-50%) scaleY(0); transform-origin: bottom; background: var(--cc); border-radius: 2px; box-shadow: 0 0 40px -6px var(--cc); transition: transform 1.1s var(--ease); }
.ac-candle::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 26px; background: var(--cc); opacity: .7; }
.ac-50 { height: 88%; } .ac-20 { height: 36%; } .ac-10 { height: 18%; }
.alloc.in .ac-candle { transform: translateX(-50%) scaleY(1); }
.alloc.in .ac:nth-child(2) .ac-candle { transition-delay: .1s; }
.alloc.in .ac:nth-child(3) .ac-candle { transition-delay: .2s; }
.alloc.in .ac:nth-child(4) .ac-candle { transition-delay: .3s; }
.ac > span { margin-top: 8px; font: 600 15px/1.2 var(--f-head); }
.ac > em { font: 400 12px/1 var(--f-mono); color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s var(--ease); }
.ac:hover > em, .ac:focus-within > em { opacity: 1; transform: none; }
@media (hover: none) { .ac > em { opacity: 1; transform: none; } }
.sup-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips-row li { padding: 7px 11px; border-radius: 5px; border: 1px solid var(--line); font: 500 12px/1 var(--f-mono); color: var(--muted); }
.airdrop { display: grid; grid-template-columns: 1fr auto; column-gap: 18px; align-items: center; padding: 14px 18px; border-radius: 6px; border: 1px solid rgba(230, 194, 122, .3); background: rgba(230, 194, 122, .04); max-width: 520px; transition: border-color .2s, background .2s; }
.airdrop:hover { border-color: var(--y); background: rgba(230, 194, 122, .07); }
.air-k { font-size: 12px; font-weight: 600; color: var(--y); }
.airdrop > span:nth-child(2) { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.airdrop b { grid-row: 1 / span 2; grid-column: 2; font-size: 20px; color: var(--y); }

/* ── path ───────────────────────────────────────────────── */
.route { position: relative; margin-top: 56px; }
.route-svg { display: block; width: 100%; height: 200px; overflow: visible; }
.route-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.route-area { opacity: 0; transition: opacity 1.2s .8s; }
.route.in .route-line { stroke-dashoffset: 0; }
.route.in .route-area { opacity: 1; }
.route-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--line); }
.rs { position: relative; padding: 26px 8px 0 0; }
.rs > i { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); background: var(--bg); border: 1px solid var(--line-2); }
.rs.done > i { background: var(--y); border-color: var(--y); }
.rs.now > i { background: var(--g); border-color: var(--g); box-shadow: 0 0 18px var(--g); }
.rs > .mono { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.rs.done > .mono { color: var(--y); } .rs.now > .mono { color: var(--g); }
.rs h3 { margin-top: 10px; font-size: 22px; }
.rs p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }

/* ── faq / terminal ─────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.term { border: 1px solid var(--line-2); border-radius: 8px; background: #04060a; overflow: hidden; font-family: var(--f-mono); }
.term-bar { display: flex; align-items: center; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--g); background: rgba(255, 255, 255, .02); }
.term-cursor { width: 7px; height: 14px; background: var(--g); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term details { border-bottom: 1px solid var(--line); }
.term details:last-child { border-bottom: 0; }
.term summary { list-style: none; display: flex; gap: 12px; padding: 16px 18px; cursor: pointer; font: 500 14.5px/1.4 var(--f-mono); color: var(--text); transition: background .15s; }
.term summary::-webkit-details-marker { display: none; }
.term summary::before { content: '›'; color: var(--dim); transition: transform .2s var(--ease), color .2s; }
.term summary:hover { background: rgba(255, 255, 255, .025); }
.term details[open] summary::before { transform: rotate(90deg); color: var(--g); }
.term details p { margin: 0; padding: 0 18px 18px 34px; font: 400 13.5px/1.7 var(--f-mono); color: var(--muted); }

/* ── footer ─────────────────────────────────────────────── */
.foot { margin-top: 140px; border-top: 1px solid var(--line); padding: 40px 0 20px; }
.foot-mark { display: flex; justify-content: space-between; font: 700 clamp(90px, 22vw, 320px)/.82 var(--f-head); letter-spacing: -.06em; user-select: none; }
.foot-mark .r { color: transparent; -webkit-text-stroke: 1px rgba(255, 61, 79, .4); }
.foot-mark .g { color: transparent; -webkit-text-stroke: 1px rgba(43, 255, 136, .45); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; font-size: 12px; color: var(--dim); }
.foot-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.legal { margin-top: 18px; font-size: 12.5px; color: var(--dim); }
.legal summary { cursor: pointer; color: var(--muted); }
.legal p { max-width: 900px; }

/* ── dock ───────────────────────────────────────────────── */
.dock {
  position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 6px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(10, 14, 23, .8); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.dk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 58px; padding: 8px 10px 6px; border-radius: 9px; color: var(--muted); font: 500 10.5px/1 var(--f-mono); transition: color .2s, background .2s; }
.dk svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dk svg.fill { fill: currentColor; stroke: none; width: 18px; height: 18px; margin: 1px 0; }
.dk:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.dk.active { color: var(--text); }
.dk.active::after { content: ''; position: absolute; bottom: 1px; left: 50%; width: 14px; height: 2px; border-radius: 2px; transform: translateX(-50%); background: var(--g); }
.dk-buy { background: var(--g); color: #021a0c; margin: 0 4px; }
.dk-buy:hover { background: #5dffa5; color: #021a0c; }
.dk-buy.active { color: #021a0c; }
.dk-buy.active::after { display: none; }
.dk-sep { width: 1px; height: 28px; margin: 0 4px; background: var(--line-2); }

/* ── command menu ───────────────────────────────────────── */
.cmd { padding: 0; margin: 14vh auto auto; width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line-2); border-radius: 10px; background: #0b0f19; color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
.cmd::backdrop { background: rgba(3, 4, 8, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cmd[open] { animation: cmdIn .22s var(--ease); }
@keyframes cmdIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.cmd-search { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmd-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.cmd-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 400 16px/1 var(--f-body); }
.cmd-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.cmd-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 7px; cursor: pointer; font-size: 14.5px; color: var(--muted); }
.cmd-list li .ck { width: 22px; font: 600 12px/1 var(--f-mono); color: var(--dim); text-align: center; }
.cmd-list li .ch { margin-left: auto; font: 400 11px/1 var(--f-mono); color: var(--dim); }
.cmd-list li[aria-selected="true"] { background: rgba(43, 255, 136, .08); color: var(--text); }
.cmd-list li[aria-selected="true"] .ck { color: var(--g); }
.cmd-empty { padding: 18px 12px; color: var(--dim); font-size: 14px; }

/* ── toast ──────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; top: calc(var(--strip) + 14px); z-index: 80; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 8px; font-size: 14px; background: #121828; border: 1px solid var(--line-2); border-left: 2px solid var(--g); box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .7); transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { border-left-color: var(--r); }
.toast a { margin-left: 10px; color: var(--g); text-decoration: underline; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1180px) { .hide-l { display: none !important; } }
@media (max-width: 980px) {
  .hide-m { display: none !important; }
  .desk { grid-template-columns: minmax(0, 1fr); }
  .status-card { position: relative; top: 0; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .howto { grid-template-columns: 1fr; }
  .howto li + li { border-left: 0; border-top: 1px solid var(--line); }
  .route-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 720px) {
  .strip { gap: 10px; padding: 0 12px; }
  .cmd-btn kbd { display: none; }
  .strip-brand b { display: none; }
  .stage { padding: calc(var(--strip) + 14px) 16px 150px; min-height: 92svh; }
  .stage-fade { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 13, .9) 42%, rgba(5, 7, 13, .1) 75%); }
  .game { left: 16px; right: 16px; bottom: 96px; max-width: none; }
  .mark img { width: 48px; height: 48px; border-radius: 11px; }
  .zh-line { font-size: 12px; letter-spacing: .2em; margin-bottom: 14px; }
  .lede { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .sec { padding-top: 96px; }
  .ticket { padding: 18px; }
  .amount { height: 64px; }
  .amount input { font-size: 28px; }
  .alloc { grid-template-columns: repeat(2, 1fr); row-gap: 34px; padding: 24px 12px 18px; }
  .ac-body { height: 150px; }
  .route-svg { height: 120px; }
  .route-steps { grid-template-columns: minmax(0, 1fr); }
  .dock { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); transform: none; justify-content: space-between; }
  .dk { min-width: 0; flex: 1; padding: 8px 2px 6px; }
  .dk-sep { display: none; }
  .foot { margin-top: 100px; }
}
@media (max-width: 380px) {
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
}

.fx-overlay { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
