/* BTCPad: warm paper, one Bitcoin-orange accent, left sidebar, fixed pages. Plain CSS, no build step. */

/* Your heading font: put it in /public/fonts/ as display.woff2 (see fonts/README.txt). */
@font-face { font-family: "BTCDisplay"; src: url("../fonts/display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F5F1E8;
  --paper-hi: #FBF8F2;
  --panel: rgba(255, 253, 248, .72);
  --ink: #16130D;
  --ink-2: #463F33;
  --muted: #7C7262;
  --rule: rgba(40, 30, 10, .13);
  --accent: #F7931A;
  --accent-ink: #1B1205;
  --accent-soft: rgba(247, 147, 26, .14);
  --up: #1E8A4C; --down: #C2410C;
  --side: 310px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -40px rgba(60, 40, 0, .35);
  --f-display: "BTCDisplay", "Archivo", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --cut: cubic-bezier(.7, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.mono, code { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.ic { width: 22px; height: 22px; display: block; }
kbd { font: 600 12px var(--f-mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--rule); background: rgba(255, 255, 255, .7); color: var(--muted); }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: 18px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -14px rgba(247, 147, 26, .8); }
.btn-primary:hover { background: #FFA537; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2C261C; }
.btn-ghost { background: var(--panel); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-xl { height: 64px; padding: 0 34px; font-size: 19px; }
.btn .ic { width: 20px; height: 20px; }

/* ---------- Sidebar ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 10; display: flex; flex-direction: column; gap: 26px; padding: 28px 22px; background: rgba(251, 248, 242, .82); border-right: 1px solid var(--rule); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.logo { display: flex; align-items: center; gap: 12px; font: 800 30px/1 var(--f-display); letter-spacing: -.03em; padding: 0 8px; }
.logo-img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.nav { display: grid; gap: 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(40, 30, 10, .05); }
.nav a.is-active { background: var(--ink); color: #fff; }
.nv-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(40, 30, 10, .06); transition: background .2s, color .2s; }
.nav a.is-active .nv-ic { background: var(--accent); color: var(--accent-ink); }
.nv-t { display: grid; line-height: 1.25; }
.nv-t b { font-size: 18px; }
.nv-t span { font-size: 14px; color: var(--muted); }
.nav a.is-active .nv-t span { color: rgba(255, 255, 255, .62); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-price { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--rule); font-variant-numeric: tabular-nums; }
.sp-k { font: 700 13px var(--f-mono); color: var(--accent); letter-spacing: .06em; }
.side-price b { font: 700 20px var(--f-mono); }
.sp-ch { margin-left: auto; font: 500 14px var(--f-mono); }
.up { color: var(--up); } .down { color: var(--down); }
.wallet-btn { width: 100%; }
.wallet-btn.is-connected { background: var(--panel); color: var(--ink); border-color: var(--ink); font-family: var(--f-mono); font-weight: 500; box-shadow: none; }
.ca { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--rule); width: 100%; text-align: left; }
.ca-k { font-weight: 700; font-size: 14px; }
.ca code { flex: 1; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--ink); color: #fff; }
.ca-copy .ic { width: 18px; height: 18px; }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-x { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 16px; min-width: 0; }
.side-x:hover { background: rgba(40, 30, 10, .05); }
.menu-btn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--rule); background: var(--panel); }
.menu-btn:hover { border-color: var(--ink); }

/* ---------- Pages ---------- */
.main { position: fixed; inset: 0 0 0 var(--side); z-index: 1; }
.page { position: absolute; inset: 0; display: none; overflow-y: auto; padding: clamp(28px, 5vh, 56px) clamp(24px, 4vw, 64px); }
.page.is-active { display: block; animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.pg-inner { max-width: 1480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.5vh, 36px); }
.pg-head { display: grid; gap: 12px; max-width: 900px; }
.pg-title { font: 800 clamp(40px, 5.6vh, 64px)/1.02 var(--f-display); letter-spacing: -.035em; }
.pg-lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.dot { color: var(--accent); }
.hx { font-variant-ligatures: none; }

.panel { position: relative; padding: clamp(20px, 2.6vh, 30px); border-radius: 22px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.panel-h { display: flex; align-items: center; gap: 12px; font: 700 24px/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: 8px; }
.step { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font: 700 16px var(--f-body); flex: none; }
.panel-p { color: var(--ink-2); font-size: 16.5px; }

/* ---------- Launch ---------- */
.hero { display: grid; gap: 14px; padding-left: clamp(0px, 6%, 110px); }
.hero-title { font: 800 clamp(48px, 7.4vh, 92px)/.98 var(--f-display); letter-spacing: -.045em; }
.hero-title .ln { display: block; }
.hero-title .acc { color: var(--accent); }
.hero-lede { font-size: 20px; color: var(--ink-2); max-width: 58ch; }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.lform { display: grid; gap: 14px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .lab { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 16px; }
.field > label.drop { justify-content: flex-start; font-weight: 500; }
.opt { font-weight: 400; font-size: 14px; color: var(--muted); }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--rule); background: rgba(255, 255, 255, .82); font-size: 17px; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 64px; padding: 12px 16px; resize: none; line-height: 1.45; }
.input::placeholder { color: #ADA595; }
.input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.bad .input, .field.bad .drop { border-color: var(--down); }
.btc-field .input { font-family: var(--f-mono); font-size: 16px; padding-right: 150px; }
.btc-wrap { position: relative; }
.btc-tag { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; font: 600 13px var(--f-mono); background: rgba(40, 30, 10, .06); color: var(--muted); pointer-events: none; transition: background .2s, color .2s; }
.btc-tag.ok { background: var(--accent); color: var(--accent-ink); }
.btc-panel { border: 1.5px solid var(--accent); background: linear-gradient(180deg, rgba(255, 246, 230, .85), rgba(255, 253, 248, .72)); }
.pre, .suf { position: relative; }
.pre span, .suf span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.pre span { left: 16px; } .pre .input { padding-left: 34px; }
.suf span { right: 16px; } .suf .input { padding-right: 60px; }
.drop { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px; border-radius: 12px; border: 1.5px dashed rgba(40, 30, 10, .28); background: rgba(255, 255, 255, .6); cursor: pointer; }
.drop:hover { border-color: var(--ink); }
.drop-img { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: rgba(255, 255, 255, .7); overflow: hidden; }
.drop-img .ic { width: 20px; height: 20px; }
.drop-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-t { font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.err { font-size: 14.5px; color: var(--down); font-weight: 600; min-height: 1.3em; }

.pv { display: grid; gap: 16px; position: sticky; top: 0; }
.pv-card { display: grid; gap: 14px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--rule); }
.pv-top { display: flex; align-items: center; gap: 16px; }
.pv-img { width: 76px; height: 76px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; color: var(--muted); flex: none; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-name { font: 700 26px/1.1 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.pv-sym { font: 600 15px var(--f-mono); color: var(--muted); }
.pv-desc { color: var(--ink-2); font-size: 16px; }
.pv-pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.pv-pay .ic { color: var(--accent); flex: none; }
.pv-pay span { display: grid; line-height: 1.3; min-width: 0; }
.pv-pay small { font-size: 13px; color: var(--muted); }
.pv-pay code { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checks { display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink-2); }
.checks li::before { content: ""; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--rule); flex: none; transition: background .2s, border-color .2s; }
.checks li.ok { color: var(--muted); }
.checks li.ok::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1205' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--accent); }
.pv-live { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.done { display: grid; gap: 6px; overflow-wrap: anywhere; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 16px; }
.done a { color: var(--accent); font-weight: 600; }

/* ---------- Stat boxes ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { padding: 16px 18px; border-radius: 16px; background: var(--ink); color: #fff; min-width: 0; }
.stat .n { font: 700 30px/1.05 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.02em; }
.stat .c { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.stat .c::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: live 2s infinite; }
.stat.hl { background: var(--accent); color: var(--accent-ink); }
.stat.hl .c { color: rgba(27, 18, 5, .7); }
.stat.hl .c::before { background: var(--accent-ink); }
.stat .n.flash { animation: flash .8s var(--ease); }
@keyframes live { 50% { opacity: .3; } }
@keyframes flash { from { color: var(--accent); } }
.stat.hl .n.flash { animation: none; }

/* ---------- Blocks ---------- */
.chain { display: flex; gap: 14px; align-items: flex-end; overflow-x: auto; padding: 30px 6px 18px; scrollbar-width: thin; }
.blk { position: relative; flex: none; width: 150px; display: grid; gap: 10px; animation: blkIn .7s var(--ease) backwards; }
@keyframes blkIn { from { opacity: 0; transform: translateY(-24px) scale(.9); } }
.cube { position: relative; width: 132px; height: 132px; margin: 0 auto; transform: rotateX(0); }
.cube i { position: absolute; display: block; }
.cube .f { left: 0; bottom: 0; width: 110px; height: 110px; border-radius: 6px; background: var(--ink); overflow: hidden; }
.cube .f::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill, 50%); background: linear-gradient(180deg, var(--accent), #E07B0A); transition: height 1s var(--ease); }
.cube .t { left: 0; top: 0; width: 110px; height: 22px; transform-origin: bottom left; transform: skewX(-45deg); background: #3A3326; border-radius: 4px 4px 0 0; }
.cube .s { right: 0; bottom: 0; width: 22px; height: 110px; transform-origin: bottom left; transform: skewY(-45deg); background: #2A2419; border-radius: 0 4px 4px 0; }
.cube .h { position: absolute; left: 0; bottom: 0; width: 110px; height: 110px; display: grid; place-content: center; text-align: center; color: #fff; z-index: 1; font: 700 18px var(--f-mono); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.cube .h small { font: 500 12px var(--f-mono); color: rgba(255, 255, 255, .75); }
.blk.pending .cube .f { background: transparent; border: 2px dashed var(--ink); }
.blk.pending .cube .f::after { opacity: .55; }
.blk.pending .cube .t, .blk.pending .cube .s { background: transparent; border: 2px dashed rgba(22, 19, 13, .35); }
.blk.pending .cube .h { color: var(--ink); text-shadow: none; }
.blk.pending .cube .h small { color: var(--muted); }
.blk-meta { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); text-align: center; }
.blk-meta b { font: 600 15px var(--f-mono); color: var(--ink); }
.blk-link { width: 18px; height: 3px; align-self: center; margin-bottom: 120px; flex: none; background: var(--ink); opacity: .25; border-radius: 2px; }
.chain-div { flex: none; align-self: stretch; width: 2px; margin: 0 6px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); position: relative; }
.chain-div span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 13px var(--f-mono); color: var(--accent); }
.blocks-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; color: var(--muted); }
.blocks-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 8px; }

/* ---------- Stack game ---------- */
.stack-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.stack-board { position: relative; padding: 0; overflow: hidden; min-height: 460px; height: min(62vh, 640px); background: linear-gradient(180deg, rgba(255, 253, 248, .55), rgba(255, 244, 224, .75)); }
.stack-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: manipulation; }
.stk-score { position: absolute; left: 24px; top: 18px; display: grid; line-height: 1; pointer-events: none; }
.stk-score b { font: 800 64px/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stk-score span { margin-top: 6px; font: 500 14px var(--f-mono); color: var(--muted); }
.stk-msg { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); padding: 8px 16px; border-radius: 10px; background: var(--ink); color: var(--accent); font: 600 15px var(--f-mono); opacity: 0; pointer-events: none; }
.stk-msg.show { animation: stkMsg 1.1s var(--ease); }
@keyframes stkMsg { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 70% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.g-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; background: rgba(245, 241, 232, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .3s, visibility 0s; }
.g-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.g-ov-h { font: 800 52px/1 var(--f-display); letter-spacing: -.035em; }
.g-overlay p { color: var(--ink-2); }
.stack-side { display: grid; gap: 16px; align-content: start; }
.stack-side .stats { grid-template-columns: 1fr 1fr; }
.stk-rules { display: grid; gap: 10px; }
.stk-rules li { display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.stk-rules b { font-size: 17px; }
.stk-rules span { font-size: 15px; color: var(--ink-2); }

/* ---------- Coins ---------- */
#coins .pg-inner { justify-content: flex-start; padding-top: 10px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.coin { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .25s var(--ease); }
.coin:hover { transform: translateY(-4px); }
.coin-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.coin-img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--paper); flex: none; border: 1px solid var(--rule); }
.coin-name { font: 700 21px/1.15 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-sym { font: 600 14px var(--f-mono); color: var(--muted); }
.coin-desc { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coin-mkt { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.coin-mkt div { padding: 8px 10px; }
.coin-mkt div + div { border-left: 1px solid var(--rule); }
.coin-mkt dt { font-size: 12px; color: var(--muted); }
.coin-mkt dd { font: 600 14.5px var(--f-mono); white-space: nowrap; }
.coin-paid { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; }
.coin-paid b { font-family: var(--f-mono); }
.coin-btns { display: flex; gap: 8px; }
.coin-btns .btn { flex: 1; height: 46px; font-size: 16px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border-radius: 20px; border: 1.5px dashed var(--rule); }

/* ---------- Docs ---------- */
.docs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.steps li::before { content: counter(s); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 4px; }
.steps b { font-size: 18px; }
.steps span { font-size: 15px; color: var(--ink-2); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .9); overflow: hidden; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 600; font-size: 18px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] { background: var(--ink); color: #fff; }
.faq details[open] summary::after { transform: rotate(45deg); background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; }
.faq p { padding: 0 20px 16px; font-size: 16.5px; color: rgba(255, 255, 255, .75); }

/* ---------- Menu (M) ---------- */
.menu { position: fixed; inset: 0; z-index: 60; background: rgba(22, 19, 13, .94); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s var(--ease); }
.menu.open { opacity: 1; }
.menu-in { height: 100%; max-width: 1480px; margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; padding: 32px clamp(24px, 5vw, 80px); }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-k { font: 600 14px var(--f-mono); color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.menu-close { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: none; color: #fff; }
.menu-close kbd { background: none; color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .2); }
.menu-nav { display: grid; align-content: center; gap: 2px; }
.menu-nav a { display: flex; align-items: baseline; gap: 26px; padding: 6px 0; font: 800 clamp(40px, 7.5vh, 88px)/1.05 var(--f-display); letter-spacing: -.04em; color: rgba(255, 255, 255, .35); transform: translateY(18px); opacity: 0; transition: color .25s, transform .5s var(--ease), opacity .5s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.menu.open .menu-nav a { transform: none; opacity: 1; }
.menu-nav a:hover, .menu-nav a.is-active { color: #fff; }
.menu-nav a.is-active::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--accent); align-self: center; }
.menu-nav small { font: 500 15px var(--f-mono); color: rgba(255, 255, 255, .4); letter-spacing: 0; min-width: 2.2em; }
.menu-nav em { font: 400 17px var(--f-body); font-style: normal; color: rgba(255, 255, 255, .45); letter-spacing: 0; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 22px; font: 500 15px var(--f-mono); color: rgba(255, 255, 255, .55); }
.menu-foot b { color: #fff; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper); transition: opacity .6s var(--ease); }
.intro-in { position: relative; display: grid; padding: 10px 40px; justify-items: center; gap: 18px; text-align: center; transition: opacity .35s var(--ease); }
.intro-word { font: 800 clamp(64px, 11vw, 160px)/1 var(--f-display); letter-spacing: -.045em; font-variant-ligatures: none; }
.intro-word .ch { display: inline-block; min-width: .3em; }
.intro-word .ch.hex { font-family: var(--f-mono); font-weight: 600; color: var(--muted); }
.intro-word .ch.set { animation: chSet .35s var(--ease); }
.intro-word .ch.acc { color: var(--accent); }
@keyframes chSet { from { transform: translateY(-.12em); color: var(--accent); } }
.intro-line, .intro-enter, .intro-hash { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.intro-line { font-size: 21px; color: var(--ink-2); }
.intro-hash { font-size: 13px; color: var(--muted); letter-spacing: .04em; max-width: 90vw; overflow: hidden; white-space: nowrap; }
.intro-enter { min-width: 230px; pointer-events: none; transition-delay: .1s; }
.intro.is-ready .intro-line, .intro.is-ready .intro-enter, .intro.is-ready .intro-hash { opacity: 1; transform: none; }
.intro.is-ready .intro-enter { pointer-events: auto; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro.is-exiting .intro-in { opacity: 0; }
html.intro-open .side, html.intro-open .main { visibility: hidden; }
.intro-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro.has-gl .intro-in { transform: translateY(21vh); gap: 14px; }
.intro.has-gl .intro-in::before { content: ""; position: absolute; inset: -40px -120px; z-index: -1; background: radial-gradient(closest-side, rgba(245, 241, 232, .92), rgba(245, 241, 232, .7) 60%, transparent); }
.intro.has-gl .intro-word { font-size: clamp(52px, 7vw, 104px); }
.intro.has-gl::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(60, 40, 0, .1) 100%); }
@media (max-height: 640px) { .intro.has-gl .intro-in { transform: translateY(15vh); } }

/* ---------- Cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .3s; }
html.cursor-on .cur-dot, html.cursor-on .cur-ring { opacity: 1; }
.cur-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--accent); }
.cur-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--ink); border-radius: 9px; transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s, border-radius .25s; }
.cur-ring.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--accent-soft); border-color: var(--accent); border-radius: 14px; }
.cur-ring.is-text { width: 4px; height: 28px; margin: -14px 0 0 -2px; border-radius: 2px; background: var(--ink); }
html.menu-open .cur-ring { border-color: #fff; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 20px; left: calc(50% + var(--side) / 2); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(90vw, 520px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 12px; font-size: 16.5px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); border-left: 4px solid var(--accent); animation: tIn .35s var(--ease); transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(-6px); }
@keyframes tIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Coming soon ---------- */
.is-soon .side, .is-soon .main, .is-soon #intro { display: none !important; }
.soon-page { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; text-align: center; }
.soon-in { display: grid; justify-items: center; gap: 22px; }
.soon-brand { display: flex; align-items: center; gap: 16px; font: 800 44px var(--f-display); letter-spacing: -.02em; }
.soon-brand img { width: 64px; height: 64px; }
.soon-title { font: 800 clamp(64px, 10vw, 150px)/.95 var(--f-display); letter-spacing: -.04em; }
.soon-sub { color: var(--ink-2); max-width: 44ch; }
.soon-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- Shorter desktop screens ---------- */
@media (min-width: 1001px) and (max-height: 900px) {
  .page { padding-top: 22px; padding-bottom: 22px; }
  .pg-inner { gap: 16px; }
  .pg-title { font-size: 44px; }
  .pg-lede { font-size: 17px; }
  .hero-title { font-size: clamp(40px, 6.4vh, 64px); }
  .hero-lede { font-size: 17.5px; }
  .panel { padding: 16px 20px; }
  .lform { gap: 10px; }
  .input, .drop { height: 46px; }
  .btn-xl { height: 54px; }
  .stat .n { font-size: 24px; }
  .stat { padding: 12px 14px; }
  .stk-rules li { padding: 10px 14px; }
  .nav a { padding: 8px 10px; }
  .nv-ic { width: 38px; height: 38px; }
  .side { gap: 18px; padding: 22px 18px; }
}

/* ---------- Small screens: sidebar becomes a top bar, pages scroll ---------- */
@media (max-width: 1000px) {
  body { overflow: auto; }
  :root { --side: 0px; }
  .side { position: sticky; top: 0; inset: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .logo { font-size: 24px; }
  .nav { display: none; }
  .side-foot { margin: 0 0 0 auto; display: flex; align-items: center; }
  .side-price, #side-ca, .side-x { display: none; }
  .wallet-btn { width: auto; height: 46px; padding: 0 16px; }
  .wallet-btn .wl { display: none; }
  .main { position: static; }
  .page { position: static; overflow: visible; }
  .hero { padding-left: 0; }
  .launch-grid, .stack-wrap { grid-template-columns: 1fr; }
  .stack-board { height: 70vh; }
  .steps { grid-template-columns: 1fr; }
  .toasts { left: 50%; }
  .pv { position: static; }
}
@media (max-width: 600px) { .frow, .frow3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }
