/* ApplePaid — monochrome greys, one accent, frosted panels */

/* Your heading font: drop it in public/fonts/ as heading.woff2 (see public/fonts/README.txt).
   Until then headings fall back to Inter Tight. */
@font-face {
  font-family: 'APHeading';
  src: url('/fonts/heading.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ececec;
  --ink: #111;
  --ink-2: #333;
  --muted: #6b6b6b;
  --line: #dddddd;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --accent: #1f9d57;
  --up: #1f9d57;
  --down: #d14343;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 18px 50px -20px rgba(0, 0, 0, 0.12);
  --f-head: 'APHeading', 'Inter Tight', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.intro-on, html.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { font-family: var(--f-head); font-style: normal; margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
kbd {
  font: 500 12px var(--f-mono);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid currentColor;
  opacity: 0.7;
}
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.mono { font-family: var(--f-mono); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.dot { color: var(--accent); }
.ticker { font: 500 15px var(--f-mono); color: var(--muted); }
.chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--muted); }

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

/* ------------------------------------------------------------ panels & buttons */
.panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* Repeated tiles skip the blur: dozens of blurred cards over an animated canvas is what lags */
.card, .stat, .step-card, .acc-item, .coin-side .panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(250, 250, 250, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 26px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.6; pointer-events: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { border-color: #bbb; }
.btn-sm { height: 46px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.pill-link, .ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s;
}
.pill-link:hover, .ca-chip:hover { border-color: #aaa; }
.pill-link svg, .ca-chip svg { width: 18px; height: 18px; }
.ca-chip > span:first-child { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }

/* ------------------------------------------------------------ top bar */
.topbar {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 16px; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.8); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font: 700 24px var(--f-head); letter-spacing: -0.035em; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.wallet-wrap { position: relative; }
#wallet-btn.connected { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.wallet-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.wallet-pop.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.wallet-pop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px; border-radius: 10px; font-size: 16px; }
.wallet-pop button:hover { background: #f2f2f2; }

/* ------------------------------------------------------------ layout */
.view {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 40px 170px;
  min-height: 100vh;
}
.view.enter > * { animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both; }
.view.enter > *:nth-child(2) { animation-delay: 0.06s; }
.view.enter > *:nth-child(3) { animation-delay: 0.12s; }
.view.enter > *:nth-child(4) { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ dock */
.dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #121212;
  color: #cfcfcf;
  border-radius: 24px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.dock::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  width: 64px;
  height: 4px;
  margin-left: -32px;
  border-radius: 4px;
  background: #121212;
}
.dock-tap {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #1f1f1f;
  color: #fff;
}
.dock-tap svg { width: 24px; height: 24px; }
.dock-tap.pulse { animation: tap 0.9s ease; }
@keyframes tap {
  0% { background: #1f1f1f; color: #fff; }
  30% { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
  100% { background: #1f1f1f; }
}
.dock-items { display: flex; gap: 4px; }
.dock-item, .dock-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #cfcfcf;
  transition: background 0.2s, color 0.2s;
}
.dock-item:hover, .dock-menu:hover { color: #fff; background: #1f1f1f; }
.dock-item[aria-current] { background: #fff; color: #111; }
.dock-menu { border-left: 1px solid #2a2a2a; border-radius: 0 16px 16px 0; margin-left: 4px; padding-left: 20px; }
.dock-menu kbd { font-size: 11px; padding: 1px 6px; }

/* Desktop: the dock floats vertically on the left; labels slide out on hover */
@media (min-width: 761px) {
  .dock { left: 22px; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; }
  .dock::before { left: auto; right: -7px; top: 50%; width: 4px; height: 64px; margin: -32px 0 0; }
  .dock-items { flex-direction: column; }
  .dock-item, .dock-menu { position: relative; width: 50px; height: 50px; padding: 0; justify-content: center; }
  .dock-menu { border-left: 0; border-top: 1px solid #2a2a2a; border-radius: 16px; margin: 4px 0 0; padding: 0; }
  .dock-menu kbd { display: none; }
  .dock-item span, .dock-menu span {
    position: absolute; left: calc(100% + 16px); top: 50%;
    padding: 8px 12px; border-radius: 10px;
    background: #121212; color: #fff; font-size: 15px; white-space: nowrap;
    opacity: 0; pointer-events: none; transform: translate(-6px, -50%);
    transition: opacity .15s, transform .15s;
  }
  .dock-item:hover span, .dock-menu:hover span, .dock-item:focus-visible span, .dock-menu:focus-visible span { opacity: 1; transform: translate(0, -50%); }
}
@media (min-width: 761px) and (max-width: 1720px) {
  .view { padding-left: 116px; }
}

/* ------------------------------------------------------------ menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(236, 236, 236, 0.84);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-close { position: absolute; top: 24px; right: 28px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.menu-close svg { width: 24px; height: 24px; }
.menu-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 120px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.menu-links a {
  display: grid;
  grid-template-columns: 70px auto 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.5s, padding 0.25s;
}
.menu.open .menu-links a { transform: none; opacity: 1; }
.menu.open .menu-links a:nth-child(2) { transition-delay: 0.05s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: 0.1s; }
.menu.open .menu-links a:nth-child(4) { transition-delay: 0.15s; }
.menu-links a:hover { padding-left: 16px; }
.menu-links a[aria-current] .menu-label::after { content: '.'; color: var(--accent); }
.menu-num { font: 500 16px var(--f-mono); color: var(--muted); }
.menu-label { font: 700 clamp(48px, 7vw, 108px)/1 var(--f-head); letter-spacing: -0.045em; }
.menu-desc { color: var(--muted); font-size: 18px; text-align: right; }
.menu-kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.menu-stats div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 17px; }
.menu-stats strong { font-family: var(--f-head); font-size: 20px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.menu-foot .muted { width: 100%; font-size: 15px; margin-top: 8px; }

/* ------------------------------------------------------------ toast & cursor */
.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  z-index: 90;
  transform: translate(-50%, 10px);
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

#cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#cursor.gone { opacity: 0; }
html:not(.has-cursor) #cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.c-dot, .c-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.c-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--ink); }
.c-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(17,17,17,.55);
  transition: width .2s, height .2s, margin .2s, background .2s, border-color .2s;
}
.c-ring.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(17,17,17,.06); border-color: var(--ink); }
.c-ring.press { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
html.menu-open .c-dot { background: var(--ink); }

/* ------------------------------------------------------------ intro */
.intro { position: fixed; inset: 0; z-index: 80; background: #0e0e0e; overflow: hidden; transition: opacity 0.8s ease, visibility 0.8s; }
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.intro-term {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 116px; height: 116px; margin: -58px 0 0 -58px;
  display: grid; place-items: center;
  border-radius: 30px; background: #161616; border: 1px solid #2c2c2c; color: #fff;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  opacity: 0; transform: scale(.4);
  transition: transform .6s cubic-bezier(.2,1.4,.3,1), opacity .4s;
}
.intro-term svg { width: 54px; height: 54px; stroke-width: 1.5; }
.intro-term.on { opacity: 1; transform: none; }
.intro-term.tap { animation: termTap .42s ease; }
@keyframes termTap {
  30% { transform: scale(.88); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 22%, transparent), 0 30px 80px -20px rgba(0,0,0,.9); }
}
.intro-term.gone { opacity: 0; transform: scale(.2); animation: none; transition: transform .5s ease, opacity .35s; }
.intro-caption {
  position: absolute; left: 50%; top: calc(50% + 96px); z-index: 2; transform: translateX(-50%);
  font: 500 15px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.75); opacity: 0; transition: opacity .25s;
}
.intro-caption.on { opacity: 1; }
.intro-orbit { position: absolute; inset: 0; pointer-events: none; }
.opill {
  position: absolute; left: 50%; top: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px;
  background: #fff; color: #111; border: 1.5px solid #151515; box-shadow: 3px 3px 0 rgba(0,0,0,.3);
  font: 600 15px var(--f-body); white-space: nowrap;
  opacity: 0; will-change: transform, opacity;
}
.opill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.opill.dark { background: #151515; color: #eee; }
.intro-stage { position: absolute; inset: 0; pointer-events: none; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.intro.done .intro-stage { transform: scale(1.05); }
.intro-title {
  position: absolute; left: 0; right: 0; top: var(--ring-y, 45%); z-index: 3;
  transform: translateY(-50%); text-align: center;
  font-size: clamp(64px, 10vw, 156px); font-weight: 800; letter-spacing: -0.055em;
}
.intro-foot {
  position: absolute; left: 0; right: 0; top: var(--foot-y, 70%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; padding: 0 24px; text-align: center;
}
.intro-title .ch { display: inline-block; opacity: 0; transform: translateY(.4em) rotate(5deg); }
.intro.ready .intro-title .ch { animation: chUp .8s cubic-bezier(.2,.9,.2,1) forwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes chUp { to { opacity: 1; transform: none; } }
.intro-tag, .intro-enter { opacity: 0; transform: translateY(12px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.intro-tag { margin-top: 12px; font-size: 20px; color: var(--ink-2); transition-delay: .45s; }
.intro-enter { margin-top: 28px; min-width: 220px; transition-delay: .7s; }
.intro.ready .intro-tag, .intro.ready .intro-enter { opacity: 1; transform: none; }
.intro.ready .intro-enter { pointer-events: auto; }

/* ------------------------------------------------------------ hero (launch) */
.hero { margin: 10px 0 56px; padding-left: clamp(0px, 16%, 260px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--panel); border: 1px solid rgba(255,255,255,.8); font-size: 15px; font-weight: 500; margin-bottom: 26px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.eyebrow svg { color: var(--accent); }
.hero-title { font-size: clamp(54px, 7.4vw, 118px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.98; }
.mark { position: relative; z-index: 0; }
.mark::before {
  content: '';
  position: absolute;
  inset: 6% -0.12em 2% -0.12em;
  z-index: -1;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.09);
  transform-origin: left;
  animation: mark 0.9s 0.3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-sub { max-width: 640px; margin-top: 24px; font-size: 21px; color: var(--ink-2); }

.page-head { margin: 10px 0 40px; padding-left: clamp(0px, 8%, 140px); }
.page-title { font-size: clamp(48px, 6vw, 92px); font-weight: 800; letter-spacing: -0.05em; }
.page-sub { margin-top: 14px; font-size: 20px; color: var(--ink-2); max-width: 720px; }
.section-title { font-size: 40px; font-weight: 700; margin: 64px 0 20px; }

/* ------------------------------------------------------------ launch form */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; align-items: start; }
.launch-grid.no-preview { grid-template-columns: minmax(0, 860px); justify-content: center; }
.launch-form { display: grid; gap: 20px; }
.step { padding: 30px; display: grid; gap: 22px; }
.step-head { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: #fff;
  font: 700 18px var(--f-head);
}
.step-num svg { width: 20px; height: 20px; }
.step-head h2 { font-size: 30px; font-weight: 700; }
.step-head p { color: var(--muted); margin-top: 4px; font-size: 17px; }

.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field > .split-head label { font-weight: 600; font-size: 17px; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.field input:not([type=range]), .field textarea, .affix, .drop, .search, select {
  width: 100%;
  min-height: 58px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:not([type=range]), .field textarea { padding: 0 18px; outline: none; }
.field textarea { padding: 16px 18px; resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .affix:focus-within, .drop:focus-visible, .search:focus-within, select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.07);
  outline: none;
}
::placeholder { color: #a3a3a3; }
.affix { display: flex; align-items: center; padding: 0 18px; gap: 6px; }
.affix > span { color: var(--muted); font-weight: 600; }
.affix input { border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 56px !important; background: transparent !important; }
.err { color: var(--down); font-size: 15px; min-height: 0; }
.err:empty { display: none; }
.field.invalid input:not([type=range]), .field.invalid textarea, .field.invalid .affix, .field.invalid .drop { border-color: var(--down); }
.hint { color: var(--muted); font-size: 15px; }
.count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; }
.split-head output { font: 700 26px var(--f-head); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: 14px; background: rgba(0,0,0,.05); width: max-content; }
.seg-btn { display: inline-flex; gap: 8px; align-items: center; height: 46px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 16px; color: var(--muted); }
.seg-btn[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 16px; transition: all .15s; }
.chip:hover { border-color: #aaa; }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: #d4d4d4; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: #ddd; }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }

.drop { display: flex; align-items: center; gap: 14px; padding: 6px 16px 6px 6px; border-style: dashed; border-width: 1.5px; cursor: pointer; }
.drop.over { border-color: var(--ink); background: #fafafa; }
.drop-thumb { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 9px; background: var(--ink); color: #fff; overflow: hidden; }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop-text { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wallet-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px dashed #cfcfcf; background: rgba(255,255,255,.6); }
.wallet-row > div { display: grid; flex: 1; line-height: 1.3; }
.wallet-row strong { font-size: 17px; }
.wallet-row span:not(.wr-icon) { color: var(--muted); font-size: 15px; }
.wr-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #fff; border: 1px solid var(--line); }
.wr-icon.ok { background: var(--accent); border-color: var(--accent); color: #fff; }

/* preview */
.preview-col { position: sticky; top: 100px; }
.preview { padding: 26px; display: grid; gap: 18px; }
.preview-label { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pv-coin { display: flex; gap: 16px; align-items: center; }
.pv-img { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 16px; background: #e4e4e4; color: #888; overflow: hidden; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-img svg { width: 28px; height: 28px; }
.pv-id h3 { font-size: 28px; font-weight: 700; word-break: break-word; }
.pv-desc { color: var(--ink-2); font-size: 17px; word-break: break-word; }
.receipt { position: relative; display: grid; gap: 12px; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.receipt::before, .receipt::after { content: ''; position: absolute; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--bg); }
.receipt::before { top: -12px; } .receipt::after { bottom: -12px; }
.rc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; color: var(--muted); }
.rc-row span:last-child { color: var(--ink); font-weight: 600; }
.rc-flow { position: relative; height: 26px; margin: 0 auto; width: 2px; background: repeating-linear-gradient(to bottom, #ccc 0 4px, transparent 4px 8px); overflow: visible; }
.rc-flow i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: drip 1.5s ease-in infinite; }
.rc-flow i:nth-child(2) { animation-delay: .5s; } .rc-flow i:nth-child(3) { animation-delay: 1s; }
@keyframes drip { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 100% { top: 22px; opacity: 0; } }
.rc-to { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 6px 0 4px; }
.rc-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rc-who { font: 700 30px/1.1 var(--f-head); letter-spacing: -0.035em; word-break: break-word; }
.rc-pay { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--accent); }
.rc-pay svg { width: 18px; height: 18px; }
.rc-split { height: 8px; border-radius: 8px; background: #e6e6e6; overflow: hidden; }
.rc-split span { display: block; height: 100%; width: var(--split); background: var(--ink); border-radius: 8px; transition: width .25s; }

/* review & success */
.review, .success { max-width: 1100px; margin: 0 auto; padding: 34px; }
.review-grid { display: grid; grid-template-columns: 360px 1fr; gap: 30px; margin: 28px 0; }
.review-card { padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.review-list { margin: 0; display: grid; }
.review-list > div, .dl-pay > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.dl-pay dd { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.review-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.fine { margin-top: 16px; text-align: right; color: var(--muted); font-size: 15px; }
.success { max-width: 760px; text-align: center; }
.success h2 { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; margin-top: 18px; }
.success > .muted { margin: 8px 0 24px; }
.success .review-list { text-align: left; margin-bottom: 28px; }
.success .review-actions { justify-content: center; }
.success-badge { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; background: var(--accent); color: #fff; animation: popin .6s cubic-bezier(.2,1.5,.3,1); }
.success-badge svg { width: 36px; height: 36px; stroke-width: 2.2; }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #f0f0f0; font-size: 15px; text-transform: capitalize; }

/* ------------------------------------------------------------ board */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { padding: 22px 24px; display: grid; gap: 6px; }
.stat-label { color: var(--muted); font-size: 15px; }
.stat-value { font: 700 34px var(--f-head); letter-spacing: -0.035em; }
.stat-value .chg { font-family: var(--f-body); font-size: 18px; margin-left: 6px; }

.board-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; margin-bottom: 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.05); }
.tab { height: 46px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 16px; color: var(--muted); }
.tab[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; flex: 1; min-width: 240px; min-height: 54px !important; color: var(--muted); }
.search input { flex: 1; border: 0; outline: none; background: transparent; min-width: 0; color: var(--ink); font-size: 17px; }
select { width: auto; min-height: 54px; padding: 0 44px 0 16px; appearance: none; -webkit-appearance: none; font-weight: 500; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }

.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.card { display: grid; gap: 14px; padding: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -28px rgba(0,0,0,.28); }
.card-head { display: flex; gap: 14px; align-items: center; }
.card-img, .coin-img { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 14px; overflow: hidden; background: var(--ink); color: #fff; font: 700 18px var(--f-head); }
.card-img img, .coin-img img { width: 100%; height: 100%; object-fit: cover; }
.card-id { min-width: 0; flex: 1; }
.card-id h3 { font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.card-price { display: flex; justify-content: space-between; align-items: baseline; }
.card-price strong { font: 700 26px var(--f-head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 60px; display: block; }
.card-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card-meta div { display: grid; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.05); }
.card-meta span { font-size: 13px; color: var(--muted); }
.card-meta strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.card-foot { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.board-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }
.empty { padding: 40px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.skeleton { min-height: 300px; position: relative; overflow: hidden; }
.skeleton.tall { min-height: 520px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ------------------------------------------------------------ coin */
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-weight: 600; color: var(--muted); }
.back:hover { color: var(--ink); }
.coin-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.coin-img { width: 92px; height: 92px; border-radius: 22px; font-size: 28px; }
.coin-id { flex: 1; min-width: 260px; }
.coin-id h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -0.05em; word-break: break-word; }
.coin-sub { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.coin-sub .ca-chip { height: 40px; font-size: 15px; }
.coin-price { display: grid; justify-items: end; gap: 4px; }
.coin-price strong { font: 700 44px var(--f-head); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.coin-price em { font-style: normal; color: var(--muted); font-weight: 400; }
.coin-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; margin-top: 26px; align-items: start; }
.chart-panel { padding: 24px 24px 18px; }
.chart-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-top h2 { font-size: 26px; }
.tf { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.05); }
.tf button { height: 38px; padding: 0 14px; border-radius: 9px; font: 500 14px var(--f-mono); color: var(--muted); }
.tf button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chart { position: relative; min-height: 360px; }
.chart-svg { display: block; max-width: 100%; height: auto; }
.cg-line { stroke: rgba(0,0,0,.07); }
.cg-label { font: 12px var(--f-mono); fill: var(--muted); }
.cg-x { stroke: rgba(0,0,0,.35); stroke-dasharray: 3 4; }
.cg-hover { transition: opacity .15s; }
.chart-tip { position: absolute; top: 8px; display: grid; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; pointer-events: none; min-width: 150px; }
.chart-tip strong { font-size: 18px; }
.chart-tip span { opacity: .7; }
.chart-empty { display: grid; place-items: center; height: 360px; color: var(--muted); }
.chart-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.coin-side { display: grid; gap: 16px; }
.coin-side .panel { padding: 8px 22px; }
.stat-list { margin: 0; }
.stat-list > div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.stat-list > div:last-child { border-bottom: 0; }
.stat-list dt { color: var(--muted); }
.stat-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.changes { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 12px !important; }
.changes div { display: grid; justify-items: center; gap: 2px; }
.changes span { color: var(--muted); font: 13px var(--f-mono); }
.changes strong { font-size: 17px; }
.txns { padding: 18px 22px !important; display: grid; gap: 12px; }
.txn-head { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.txn-head strong { color: var(--ink); }
.txn-bar { height: 10px; border-radius: 10px; background: var(--down); overflow: hidden; }
.txn-bar span { display: block; height: 100%; background: var(--up); }
.about { margin-top: 20px; padding: 26px; }
.about h2 { font-size: 26px; margin-bottom: 10px; }
.about p { color: var(--ink-2); max-width: 900px; }

/* ------------------------------------------------------------ docs */
.why { display: flex; justify-content: center; margin-bottom: 26px; }
.receipt-big { width: min(100%, 1000px); padding: 10px 30px 24px; }
.rb-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 19px; }
.rb-row > span { color: var(--muted); }
.rb-row.last { border-bottom: 0; }
.rb-who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; font: 700 clamp(26px, 3vw, 40px) var(--f-head); letter-spacing: -0.035em; }
.rb-who .rc-pay { font-family: var(--f-body); letter-spacing: 0; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step-card { padding: 22px; display: grid; gap: 12px; align-content: start; }
.step-card h3 { font-size: 22px; font-weight: 700; }
.step-card p { color: var(--ink-2); font-size: 16px; }

.accordion { display: grid; gap: 12px; }
.acc-item { overflow: hidden; transition: background .2s; }
.acc-item.open { background: var(--panel-strong); }
.acc-btn { display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 26px; text-align: left; }
.accordion.big .acc-btn { padding: 28px 30px; }
.acc-icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 14px; background: var(--ink); color: #fff; }
.acc-icon svg { width: 24px; height: 24px; }
.acc-title { flex: 1; display: grid; gap: 2px; }
.acc-title strong { font: 700 22px var(--f-head); letter-spacing: -0.025em; }
.accordion.big .acc-title strong { font-size: clamp(24px, 2.4vw, 34px); }
.acc-title span { color: var(--muted); font-size: 17px; }
.acc-stat { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.acc-stat:empty { display: none; }
.acc-stat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.acc-plus { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: transform .3s, background .2s, color .2s; }
.acc-item.open .acc-plus { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 30px 0 102px; color: var(--ink-2); max-width: 1000px; }
.acc-panel p:last-child { padding-bottom: 26px; }
.accordion:not(.big) .acc-panel p { padding-left: 26px; }
.acc-live { margin-top: 10px; font-weight: 600; color: var(--ink) !important; }

/* ------------------------------------------------------------ game */
.game { padding: 18px; }
.game-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.game-hud div { display: grid; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.game-hud span { color: var(--muted); font-size: 15px; }
.game-hud strong { font: 700 30px var(--f-head); letter-spacing: 0.02em; }
.game-stage { position: relative; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.55); border: 1px solid var(--line); }
#game { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 640; touch-action: none; }
.game-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; background: rgba(236,236,236,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .3s, visibility .3s; }
.game-over.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.game-over h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 800; letter-spacing: -0.045em; }
.game-over p { color: var(--ink-2); margin-bottom: 8px; }
.game-over .btn { min-width: 200px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1200px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .coin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .launch-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
  .review-grid { grid-template-columns: 1fr; }
  .menu-inner { grid-template-columns: 1fr; align-content: center; gap: 30px; }
  .menu-desc { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .view { padding: 110px 18px 150px; }
  .topbar { left: 12px; right: 12px; top: 12px; }
  .brand-name, #x-link span, #ca-chip { display: none; }
  .hero, .page-head { padding-left: 0; }
  .row2 { grid-template-columns: 1fr; }
  .step { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .dock { bottom: 12px; max-width: calc(100vw - 16px); }
  .dock-item span, .dock-menu span, .dock-menu kbd, .dock-tap { display: none; }
  .dock-item, .dock-menu { padding: 0 16px; }
  .opill { font-size: 13px; padding: 8px 12px; }
  .acc-panel p { padding-left: 30px; }
  .coin-price { justify-items: start; }
  .review, .success { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
