/* CINDRAL. Crystal lattice / holographic shard.
   Why these colors: indigo-black is the void the shard sits in; mint is the one action color (buy, primary buttons, up candles);
   magenta is the refraction accent used only for edges, down candles and warnings; ice white is text; slate is secondary text.
   Why these fonts: Unbounded's wide geometric caps echo the faceted logo; Manrope keeps body copy readable; JetBrains Mono is only for data (CA, prices, addresses).
   Why the dock: the site is a tool belt, so tools stay one tap away on every screen instead of living in a top menu. */
:root {
  --void: #060814; --void-2: #0b0f24; --panel: #0d1230; --line: rgba(138,147,184,.22); --line-2: rgba(138,147,184,.42);
  --mint: #2af5c1; --mag: #ff3df2; --ice: #eaf6ff; --slate: #8a93b8; --slate-2: #a9b1d3;
  --f-h: "Unbounded", system-ui, sans-serif; --f-b: "Manrope", system-ui, sans-serif; --f-m: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.8,.2,1); --dock: 84px; --bar: 68px;
  /* the motif: a cut shard silhouette reused on tiles, buttons and the CA frame */
  --cut: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--void); color: var(--ice); font: 400 16px/1.6 var(--f-b); overflow-x: hidden; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--mint); color: var(--void); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* background field (canvas) + a veil that keeps text contrast steady over bright particles */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 80% at 70% 10%, transparent 0 40%, rgba(6,8,20,.55) 100%); }

/* top bar */
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem 0 calc(var(--dock) + 1rem); pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(42,245,193,.35)); }
.brand__w { font: 800 1.05rem/1 var(--f-h); letter-spacing: .04em; }
.brand__t { font: 500 .72rem/1 var(--f-m); color: var(--slate-2); }
.bar__r { display: flex; align-items: center; gap: .6rem; }
.stage { font-size: .7rem; color: var(--slate-2); padding-right: .4rem; }
.snd { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; background: rgba(11,15,36,.7); border: 1px solid var(--line-2); cursor: pointer; font: 600 .78rem/1 var(--f-b); clip-path: var(--cut); }
.snd:hover { border-color: var(--mint); }
.snd__eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.snd__eq i { width: 2px; height: 30%; background: var(--slate); }
.snd.is-on .snd__eq i { background: var(--mint); animation: eq 1s ease-in-out infinite; }
.snd.is-on .snd__eq i:nth-child(2) { animation-delay: .15s } .snd.is-on .snd__eq i:nth-child(3) { animation-delay: .3s } .snd.is-on .snd__eq i:nth-child(4) { animation-delay: .45s } .snd.is-on .snd__eq i:nth-child(5) { animation-delay: .6s }
@keyframes eq { 0%,100% { height: 25% } 50% { height: 100% } }
/* Buy is the one glowing element on screen (glow budget: buy + CA frame). */
.buy { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: .35rem 1.2rem; background: var(--mint); color: var(--void); text-decoration: none; clip-path: var(--cut); box-shadow: 0 0 28px rgba(42,245,193,.45); transition: transform .2s var(--ease), filter .2s; cursor: pointer; }
.buy__t { font: 700 .9rem/1.1 var(--f-h); }
.buy__s { font-size: .62rem; opacity: .8; }
.buy:hover { transform: translateY(-2px); filter: brightness(1.08); }
.buy.is-off, .btn.is-off { background: transparent; color: var(--slate-2); border: 1px dashed var(--line-2); box-shadow: none; cursor: not-allowed; transform: none; filter: none; }

/* dock */
.dock { position: fixed; z-index: 40; left: 12px; top: 50%; transform: translateY(-50%); width: calc(var(--dock) - 24px); display: flex; flex-direction: column; gap: 6px; padding: 10px 6px; background: rgba(9,12,30,.82); border: 1px solid var(--line); clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.dock__rail { position: absolute; right: 2px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.dock__rail i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--mint), var(--mag)); transform-origin: top; transform: scaleY(0); }
.dock__b { position: relative; display: grid; place-items: center; gap: 2px; width: 100%; min-height: 54px; background: none; border: 0; text-decoration: none; cursor: pointer; color: var(--slate-2); transition: color .2s, background .2s; }
.dock__b svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: miter; }
.dock__b span { font: 600 .56rem/1 var(--f-b); letter-spacing: .02em; }
.dock__b:hover, .dock__b.is-on { color: var(--ice); background: rgba(42,245,193,.08); }
.dock__b.is-on::before { content: ""; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; background: var(--mint); }
.dock__ca { color: var(--mag); }

/* layout */
main { position: relative; z-index: 2; overflow-x: clip; }
section { position: relative; padding: calc(var(--bar) + 2rem) 2rem 4rem calc(var(--dock) + 2.5rem); }
.sec { max-width: 760px; margin-bottom: 2rem; }
.sec__n { display: block; font-size: .75rem; color: var(--mag); margin-bottom: .6rem; }
.sec__h { font: 700 clamp(1.8rem, 4.2vw, 3.4rem)/1.05 var(--f-h); letter-spacing: -.01em; }
.sec__p { margin-top: .8rem; color: var(--slate-2); max-width: 54ch; }
[data-decode] { font-variant-ligatures: none; }

/* hero */
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: 2rem; }
.hero__copy { order: 1; position: relative; z-index: 2; min-width: 0; }
.hero__mark { order: 2; position: relative; justify-self: center; width: min(44vw, 520px); aspect-ratio: 1; will-change: transform; }
.hero__mark img { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(255,61,242,.25)); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.hero__ring { position: absolute; inset: 6%; border: 1px solid rgba(42,245,193,.35); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); animation: spin 30s linear infinite; }
.hero__ring.r2 { inset: -4%; border-color: rgba(255,61,242,.25); animation-duration: 46s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.kick { font-size: .78rem; color: var(--mint); margin-bottom: 1rem; }
.hero__h { font: 800 clamp(2.6rem, 7.6vw, 8.2rem)/.95 var(--f-h); padding-right: .05em; letter-spacing: -.02em; background: linear-gradient(100deg, var(--ice) 30%, var(--mint) 55%, var(--mag) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: holo 9s ease-in-out infinite; }
@keyframes holo { 50% { background-position: 100% 0; } }
.hero__sub { margin-top: 1.2rem; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--slate-2); max-width: 36ch; }
.hero__go { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hint { position: absolute; left: calc(var(--dock) + 2.5rem); bottom: 1.5rem; font-size: .7rem; color: var(--slate); }
.hint::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--slate); vertical-align: middle; margin-left: .6rem; animation: hint 2s ease-in-out infinite; transform-origin: left; }
@keyframes hint { 50% { transform: scaleX(.3); } }

/* buttons: square cut, never pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .7rem 1.2rem; font: 700 .82rem/1.1 var(--f-h); text-decoration: none; border: 1px solid transparent; cursor: pointer; clip-path: var(--cut); transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.btn--mint { background: var(--mint); color: var(--void); }
.btn--mint:hover { transform: translateY(-2px); background: #5cf8d1; }
.btn--line { background: rgba(11,15,36,.6); border-color: var(--line-2); color: var(--ice); }
.btn--line:hover { border-color: var(--mint); color: var(--mint); }
.btn--ghost { background: none; border-color: var(--line); color: var(--slate-2); }
.btn--ghost:hover { color: var(--ice); border-color: var(--line-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* shard grid. Chart is biggest because it is the coin's own tool; the other four share the rest by how often they get used. */
.tools { min-height: 100vh; }
.shards { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-template-rows: repeat(3, minmax(170px, 1fr)); gap: 14px; min-height: 72vh; }
.shard { position: relative; text-align: left; border: 0; background: none; cursor: pointer; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease); transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); }
.shard__bg { position: absolute; inset: 0; z-index: -1; background: var(--line-2); clip-path: var(--shape); transition: background .3s; }
.shard__bg::after { content: ""; position: absolute; inset: 1px; background: linear-gradient(150deg, rgba(20,26,64,.92), rgba(9,12,30,.94) 60%); clip-path: var(--shape); }
.shard:hover .shard__bg, .shard:focus-visible .shard__bg { background: linear-gradient(130deg, var(--mint), var(--mag)); }
.shard:focus-visible { outline-offset: -4px; }
.shard__n { font-size: .72rem; color: var(--mag); }
.shard__h { font: 700 clamp(1.1rem, 1.8vw, 1.6rem)/1.15 var(--f-h); }
.shard__p { color: var(--slate-2); font-size: .92rem; max-width: 34ch; }
.s-chart { grid-column: 1 / 8; grid-row: 1 / 4; --shape: polygon(0 0, 92% 0, 100% 9%, 100% 100%, 7% 100%, 0 92%); }
.s-trend { grid-column: 8 / 13; grid-row: 1 / 2; --shape: polygon(4% 0, 100% 0, 100% 78%, 94% 100%, 0 100%, 0 18%); }
.s-launch { grid-column: 8 / 13; grid-row: 2 / 3; --shape: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 70%); }
.s-check { grid-column: 8 / 11; grid-row: 3 / 4; --shape: polygon(0 0, 88% 0, 100% 22%, 100% 100%, 0 100%); }
.s-wallet { grid-column: 11 / 13; grid-row: 3 / 4; --shape: polygon(0 0, 100% 0, 100% 84%, 80% 100%, 0 100%); }
.s-chart .shard__h { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.shard__live { margin-top: auto; font: 500 clamp(.95rem, 1.6vw, 1.4rem)/1.2 var(--f-m); color: var(--mint); position: relative; }
/* chart tile facets: the logo's triangle cut, drawn as slowly breathing outlines so the biggest tile reads as the focal shard */
.shard__facets { position: absolute; right: -4%; top: 14%; width: 62%; height: 70%; z-index: -1; opacity: .55; }
.shard__facets path { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.shard__facets path:nth-child(3n) { stroke: rgba(42,245,193,.5); animation: facet 5s ease-in-out infinite; }
.shard__facets path:nth-child(4n) { stroke: rgba(255,61,242,.45); animation: facet 6.5s ease-in-out infinite reverse; }
@keyframes facet { 50% { opacity: .15; } }
.shard__art { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; width: 100%; z-index: -1; opacity: .55; }
.shard__art path { fill: none; stroke: var(--mint); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.shard__list { list-style: none; margin-top: auto; font-size: .78rem; color: var(--slate-2); display: grid; gap: .2rem; }
.shard__list li { display: flex; justify-content: space-between; gap: 1rem; white-space: nowrap; overflow: hidden; }
.shard__list b { color: var(--ice); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.shard__gem { position: absolute; right: 1.4rem; bottom: 1.2rem; width: 64px; height: 64px; }
.shard__gem i { position: absolute; inset: 0; border: 1px solid var(--mint); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: spin 12s linear infinite; }
.shard__gem i:nth-child(2) { inset: 12px; border-color: var(--mag); animation-duration: 8s; animation-direction: reverse; }
.shard__gem i:nth-child(3) { inset: 24px; background: var(--mint); animation: none; opacity: .8; }

/* story: three lines, each drifts at its own depth while you scroll */
.story { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.story__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 3rem; align-items: center; }
/* the designer's 13s loop sits beside the story; muted so it can autoplay, framed with the same shard cut */
.story__v { will-change: transform; }
.story__v video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background: var(--void-2); border: 1px solid var(--line-2); clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.story__l { list-style: none; display: grid; gap: 2.4rem; max-width: 900px; }
.story__l li { font: 500 clamp(1.15rem, 2.4vw, 1.9rem)/1.35 var(--f-b); color: var(--slate-2); will-change: transform; }
.story__l li:nth-child(2) { margin-left: 3vw; } .story__l li:nth-child(3) { margin-left: 6vw; }
.story__l b { display: block; font: 700 .8rem/1 var(--f-h); color: var(--mag); margin-bottom: .5rem; letter-spacing: .02em; }

/* CA: bottom only */
.ca { min-height: 92vh; display: grid; place-items: center; }
.ca__core { width: min(820px, 100%); text-align: center; padding: 2.4rem 2rem; background: rgba(9,12,30,.84); border: 1px solid var(--line-2); clip-path: polygon(0 22px, 22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.ca-live .ca__core { border-color: var(--mint); box-shadow: inset 0 0 60px rgba(42,245,193,.12); }
.ca__h { font: 700 clamp(1.5rem, 3.4vw, 2.6rem)/1.1 var(--f-h); margin-bottom: 1.4rem; }
.ca__row { display: flex; gap: .6rem; align-items: stretch; }
.ca__v { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: .8rem 1rem; font: 500 clamp(.8rem, 1.6vw, 1.05rem)/1.4 var(--f-m); background: var(--void); border: 1px solid var(--line-2); color: var(--slate-2); word-break: break-all; }
.ca-live .ca__v { color: var(--ice); border-color: rgba(42,245,193,.6); }
.ca__copy { min-width: 96px; }
.ca__s { margin-top: .8rem; font-size: .74rem; color: var(--slate-2); }
.ca__go { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.5rem 2rem 2rem calc(var(--dock) + 2.5rem); font-size: .8rem; color: var(--slate-2); border-top: 1px solid var(--line); }

/* expanded tool layer: grows out of the clicked shard (clip-path from its rect) */
.tool { position: fixed; z-index: 35; inset: 0; padding: calc(var(--bar) + .25rem) 1rem 1rem calc(var(--dock) + 1rem); background: rgba(6,8,20,.9); clip-path: inset(var(--t,0) var(--r,0) var(--b,0) var(--l,0)); transition: clip-path .55s var(--ease), opacity .3s; }
.tool[hidden] { display: none; }
.tool.is-closing { opacity: 0; }
.tool__in { height: 100%; display: flex; flex-direction: column; background: linear-gradient(160deg, #0e1434, #080b1d 55%); border: 1px solid var(--line-2); clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.tool__top { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem .8rem 1.4rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tool__n { color: var(--mag); font-size: .75rem; }
.tool__h { font: 700 1.25rem/1.2 var(--f-h); }
.tool__sw { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.tool__sw button { min-height: 40px; padding: 0 .8rem; background: none; border: 1px solid var(--line); color: var(--slate-2); cursor: pointer; font: 600 .78rem var(--f-b); }
.tool__sw button[aria-current="true"] { background: var(--ice); color: var(--void); border-color: var(--ice); }
.tool__x { min-height: 44px; padding: 0 1rem; background: none; border: 1px solid var(--mag); color: var(--mag); cursor: pointer; font: 700 .78rem var(--f-h); clip-path: var(--cut); }
.tool__x:hover { background: var(--mag); color: var(--void); }
.tool__body { flex: 1; overflow: auto; padding: 1.2rem 1.4rem 1.6rem; overscroll-behavior: contain; }
.kx-panel { animation: rise .5s var(--ease) both; }
.kx-panel[hidden] { display: none; }
.kx-panel > * { animation: rise .55s var(--ease) both; } .kx-panel > *:nth-child(2) { animation-delay: .06s } .kx-panel > *:nth-child(3) { animation-delay: .12s } .kx-panel > *:nth-child(4) { animation-delay: .18s }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* tool internals */
.tool input, .tool textarea { width: 100%; background: var(--void); border: 1px solid var(--line-2); color: var(--ice); font: .9rem/1.4 var(--f-m); padding: .75rem .85rem; min-height: 46px; }
.tool input::placeholder, .tool textarea::placeholder { color: var(--slate); }
.tool input:focus, .tool textarea:focus { outline: 2px solid var(--mint); outline-offset: 0; border-color: var(--mint); }
.tool input[aria-invalid="true"], .tool textarea[aria-invalid="true"] { border-color: var(--mag); }
.tool label { display: grid; gap: .35rem; font: 600 .78rem/1.2 var(--f-b); color: var(--slate-2); }
.kx-note { font-size: .78rem; color: var(--slate-2); line-height: 1.5; }
.kx-empty { color: var(--slate-2); padding: 2rem 0; max-width: 56ch; }
.kx-status { font: .8rem/1.5 var(--f-m); color: var(--slate-2); min-height: 1.2em; margin: .6rem 0; }
.kx-status.err { color: var(--mag); }
.kx-sub { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: .8rem; }
.kx-sub button { min-height: 40px; padding: 0 .8rem; background: none; border: 1px solid var(--line-2); color: var(--slate-2); cursor: pointer; font: 500 .76rem var(--f-m); }
.kx-sub button:hover { color: var(--ice); }
.kx-sub button.is-on { background: var(--mint); color: var(--void); border-color: var(--mint); }
.kx-sub .kx-note { margin-left: auto; }
.ch-top { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.ch-top .kx-sub { margin: 0; }
.ch-id { display: flex; gap: .75rem; align-items: center; }
.ch-id b { display: block; font: 700 1.1rem var(--f-h); }
.ch-id small { color: var(--slate-2); font-size: .74rem; }
.kx-ph, .ch-logo { width: 40px; height: 40px; flex: 0 0 40px; display: inline-block; background: var(--void-2) url(/assets/img/favicon-64.png) center/72% no-repeat; border: 1px solid var(--line); object-fit: cover; }
.kx-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1px; background: var(--panel); border: 1px solid var(--line); margin-bottom: .8rem; }
.kx-stats:empty { display: none; }
.kx-stat { background: var(--panel); padding: .7rem .8rem; box-shadow: 0 0 0 1px var(--line); }
.kx-stat small { display: block; font: .64rem/1 var(--f-m); color: var(--slate-2); margin-bottom: .4rem; }
.kx-stat b { font: 500 .98rem/1.2 var(--f-m); }
.up { color: var(--mint); } .dn { color: var(--mag); }
.kx-bar { height: 3px; background: var(--line); margin-top: .4rem; } .kx-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--mag)); }
.ch-box { position: relative; height: clamp(280px, 52vh, 520px); border: 1px solid var(--line); background: #050716; }
.ch-box canvas { width: 100%; height: 100%; display: block; }
.ch-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1rem; color: var(--slate-2); font: .82rem/1.5 var(--f-m); }
.ch-wait[hidden] { display: none; }
.cz-wait { display: flex; gap: 8px; } .cz-wait i { width: 14px; height: 14px; border: 1px solid var(--mint); transform: rotate(45deg); animation: cw 1.2s ease-in-out infinite; } .cz-wait i:nth-child(2) { animation-delay: .15s; border-color: var(--ice) } .cz-wait i:nth-child(3) { animation-delay: .3s; border-color: var(--mag) }
@keyframes cw { 50% { transform: rotate(225deg) scale(.6); opacity: .4; } }
.ch-tip { position: absolute; left: .5rem; top: .5rem; right: .5rem; font-size: .7rem; background: rgba(6,8,20,.92); border: 1px solid var(--line); padding: .4rem .55rem; pointer-events: none; }
.kx-coins { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--line); }
.kx-coin { display: grid; grid-template-columns: 2rem 42px minmax(0,1fr) 96px 84px 120px; gap: .8rem; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; animation: rise .4s var(--ease) both; min-height: 58px; }
.kx-coin:hover, .kx-coin:focus-visible { background: rgba(42,245,193,.07); }
.kx-coin:focus-visible { outline-offset: -2px; }
.kx-coin img { width: 42px; height: 42px; object-fit: cover; border: 1px solid var(--line); }
.tr-rank { color: var(--slate-2); font-size: .74rem; }
.tr-name { min-width: 0; } .tr-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-name small, .tr-age { color: var(--slate-2); font: .7rem var(--f-m); }
.tr-name em { color: var(--mag); font-style: normal; }
.tr-mc, .tr-age, .tr-prog { text-align: right; } .tr-mc small, .tr-age small, .tr-prog small { display: block; font: .62rem var(--f-m); color: var(--slate-2); }
.tr-mc b, .tr-age b { font: 500 .84rem var(--f-m); } .tr-prog .kx-bar { margin-top: .35rem; }
.sg-created .kx-coin { grid-template-columns: 42px minmax(0,1fr) auto; }
.kx-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem; }
.kx-form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.kx-form .wide { grid-column: 1 / -1; }
.kx-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.kx-art { display: grid; gap: .6rem; align-content: start; }
.kx-img { position: relative; aspect-ratio: 1; max-width: 380px; border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: #050716; color: var(--slate-2); font: .76rem var(--f-m); }
.kx-img img { width: 100%; height: 100%; object-fit: cover; }
.kx-scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(42,245,193,.35), transparent); opacity: 0; }
.kx-img.busy .kx-scan { opacity: 1; animation: scan 1.2s linear infinite; }
@keyframes scan { to { top: 100%; } }
.kx-file { position: relative; overflow: hidden; } .kx-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.kx-file:focus-within { outline: 2px solid var(--mint); outline-offset: 3px; }
.kx-confirm, .kx-result { border: 1px solid var(--mint); padding: 1rem; margin-top: 1rem; background: rgba(42,245,193,.05); }
.kx-confirm h3 { font: 700 1rem var(--f-h); margin-bottom: .6rem; }
.kx-dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .86rem; margin-bottom: .75rem; } .kx-dl dt { color: var(--slate-2); font: .74rem var(--f-m); } .kx-dl dd { word-break: break-all; }
.kx-result a, .kx-links a { color: var(--mint); }
.kx-search { display: flex; gap: .5rem; flex-wrap: wrap; } .kx-search input { flex: 1 1 280px; width: auto; }
.kx-card { display: flex; gap: 1rem; border: 1px solid var(--line); padding: 1rem; margin: .8rem 0; background: var(--panel); }
.kx-card img, .kx-card .kx-ph { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; }
.kx-card h3 { font: 700 1.1rem var(--f-h); } .kx-card h3 small { font: 500 .8rem var(--f-m); color: var(--slate-2); margin-left: .5rem; }
.kx-card .kx-note { word-break: break-all; }
.sg-h { font: 700 .8rem/1 var(--f-h); color: var(--mag); margin: 1.2rem 0 .6rem; }
.kx-tag { display: inline-block; font: 500 .66rem/1 var(--f-m); padding: .3rem .45rem; border: 1px solid var(--mint); color: var(--mint); margin: 0 .3rem .2rem 0; }
.kx-tag.warn, .kx-tag.bad, .kx-tag.sell { border-color: var(--mag); color: var(--mag); }
.kx-scroll { max-height: 340px; overflow: auto; } .kx-scroll.sg-tall { max-height: 480px; }
.kx-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.kx-table th { text-align: left; font: 500 .66rem var(--f-m); color: var(--slate-2); padding: .45rem .5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.kx-table td { padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kx-table td.num, .kx-table th.num { text-align: right; font-family: var(--f-m); }
.kx-table a { color: var(--ice); text-decoration-color: var(--line-2); }
.sg-flags { list-style: none; display: grid; gap: .35rem; margin: .5rem 0; }
.sg-flags li { padding: .5rem .7rem; border-left: 3px solid var(--slate); background: var(--panel); font-size: .86rem; }
.sg-flags li.ok { border-color: var(--mint); } .sg-flags li.bad { border-color: var(--mag); color: #ffc2fb; } .sg-flags li.warn { border-color: #ffd36b; }
.sg-scan { display: flex; align-items: center; gap: .8rem; color: var(--slate-2); font: .8rem var(--f-m); padding: 1.5rem 0; }
.sg-scan i { width: 16px; height: 16px; border: 1px solid var(--mint); transform: rotate(45deg); animation: cw 1s ease-in-out infinite; }
.sg-bar-cell { width: 90px; } .sg-bar-cell i { display: block; height: 3px; background: var(--mint); margin-left: auto; }
.kx-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .84rem; margin-top: .6rem; }
.kx-links a { min-height: 44px; display: inline-flex; align-items: center; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 2rem; transform: translate(-50%, 20px); opacity: 0; padding: .7rem 1.1rem; background: var(--mint); color: var(--void); font: 700 .82rem var(--f-h); pointer-events: none; transition: .25s var(--ease); clip-path: var(--cut); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* tablet */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: calc(var(--bar) + 1rem); }
  .hero__mark { order: 0; width: min(64vw, 380px); }
  .shards { grid-template-rows: repeat(4, minmax(160px, auto)); }
  .s-chart { grid-column: 1 / 13; grid-row: 1 / 3; min-height: 300px; } .s-trend { grid-column: 1 / 7; grid-row: 3; } .s-launch { grid-column: 7 / 13; grid-row: 3; }
  .story__grid { grid-template-columns: 1fr; gap: 2rem; }
  .s-check { grid-column: 1 / 7; grid-row: 4; } .s-wallet { grid-column: 7 / 13; grid-row: 4; }
}
/* mobile: dock moves to the bottom, everything single column */
@media (max-width: 760px) {
  :root { --dock: 0px; --bar: 60px; }
  .bar { padding: 0 .8rem; background: linear-gradient(rgba(6,8,20,.92), rgba(6,8,20,0)); }
  .brand__t, .stage { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand__w { font-size: .92rem; }
  .snd { padding: 0 .65rem; min-width: 44px; } .snd__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .buy { padding: .3rem .9rem; } .buy__t { font-size: .8rem; }
  .dock { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; flex-direction: row; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); clip-path: none; border-width: 1px 0 0; background: rgba(9,12,30,.95); }
  .dock__rail { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .dock__rail i { transform-origin: left; transform: scaleX(0); }
  .dock__b { min-height: 56px; }
  .dock__b.is-on::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; }
  section { padding: calc(var(--bar) + 1.2rem) 1.1rem 3rem; }
  .hero { min-height: 100svh; gap: 1rem; align-content: center; }
  .hero__mark { width: min(62vw, 280px); }
  .hint { left: 1.1rem; bottom: 5.5rem; }
  .shards { display: flex; flex-direction: column; min-height: 0; }
  .shard { min-height: 150px; }
  .s-chart { min-height: 240px; }
  .story__l li:nth-child(2), .story__l li:nth-child(3) { margin-left: 0; }
  .ca { min-height: 80vh; }
  .ca__core { padding: 1.6rem 1rem; }
  .ca__row { flex-direction: column; }
  .foot { padding: 1.2rem 1.1rem calc(80px + env(safe-area-inset-bottom)); }
  .tool { padding: calc(var(--bar)) .4rem calc(70px + env(safe-area-inset-bottom)) .4rem; }
  .tool__top { padding: .6rem .8rem; gap: .5rem; }
  .tool__sw { display: none; }
  .tool__x { margin-left: auto; }
  .tool__body { padding: 1rem .8rem 1.4rem; }
  .kx-grid, .kx-form { grid-template-columns: 1fr; }
  .kx-coin { grid-template-columns: 1.4rem 38px minmax(0,1fr) auto; gap: .55rem; } .kx-coin .tr-age { display: none; } .kx-coin .tr-prog { grid-column: 3 / -1; text-align: left; } .kx-coin img, .kx-coin .kx-ph { width: 38px; height: 38px; flex-basis: 38px; }
  .kx-sub .kx-note { margin-left: 0; width: 100%; }
  .kx-scroll { overflow-x: auto; }
  .kx-table { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shard { transform: none !important; }
}
