/* CobaltPad — shared styles */
:root {
  --ink: #03031a;
  --cobalt: #2a1bf2;
  --royal: #1a13b0;
  --navy: #0b0d4f;
  --azure: #1582f8;
  --cyan: #12d8f5;
  --lilac: #9aa0f2;
  --peri: #c2c7fb;
  --haze: #dfe1fc;
  --mist: #e6e8fb;
  --paper: #f2f2fd;
  --card: #f6f6fe;

  --bg: var(--paper);
  --surface: var(--card);
  --line: var(--haze);
  --text: var(--ink);
  --muted: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --accent: var(--cobalt);
  --on-dark: var(--card);
  --up: var(--royal);
  --down: var(--ink);

  --sh-soft: inset 0 1px 0 color-mix(in srgb, var(--card) 90%, transparent), 0 8px 24px -12px color-mix(in srgb, var(--navy) 28%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--navy) 12%, transparent);
  --sh-lift: inset 0 1px 0 color-mix(in srgb, var(--card) 90%, transparent), 0 14px 32px -12px color-mix(in srgb, var(--cobalt) 40%, transparent), 0 3px 10px -3px color-mix(in srgb, var(--navy) 16%, transparent);
  --sh-panel: 0 30px 60px -30px color-mix(in srgb, var(--navy) 50%, transparent);
  --ease-press: cubic-bezier(.2, .7, .3, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --r: 16px;
  --r-btn: 18px;
  --tap: 44px;
  --maxw: 1280px;
  --f-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --f-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: 16px; top: 16px; z-index: 80; background: var(--text); color: var(--on-dark); padding: 10px 16px; border-radius: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--cobalt), var(--azure), var(--cyan)); transform: scaleX(0); transform-origin: 0 50%; }

/* header */
.top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-row { height: 65px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--f-head); letter-spacing: -.03em; min-height: var(--tap); }
.brand em { font-style: normal; color: var(--accent); }
.nav { display: none; margin-left: 16px; gap: 4px; }
@media (min-width: 860px) { .nav { display: flex; } }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: 20px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .15s var(--ease), background-color .15s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--mist); }
.socials { margin-left: auto; display: flex; gap: 8px; }
.icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .18s var(--ease-press), box-shadow .2s; }
a.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn.is-inert { opacity: .45; cursor: default; }
.mob-create { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border-radius: var(--r); background: var(--text); color: var(--on-dark); font-weight: 600; font-size: 14px; }
@media (min-width: 860px) { .mob-create { display: none; } }

/* contract bar */
.ca { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.ca-in { display: flex; align-items: center; gap: 12px 16px; padding-block: 10px; flex-wrap: wrap; }
.ca-k { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ca-v { flex: 1 1 260px; min-width: 0; font: 500 clamp(15px, 2.1vw, 26px)/1.25 var(--f-mono); letter-spacing: -.01em; overflow-wrap: anywhere; word-break: break-all; }
.ca-v.pending { color: var(--muted); font-size: clamp(13px, 1.4vw, 17px); letter-spacing: .01em; word-break: normal; }
.ca-btn { position: relative; min-height: var(--tap); padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: transform .18s var(--ease-press), box-shadow .2s; }
.ca-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.ca-btn[hidden] { display: none; }
[data-fb]::after { content: attr(data-fb); position: absolute; right: 0; bottom: calc(100% + 6px); background: var(--text); color: var(--on-dark); font: 500 12px/1 var(--f-sans); padding: 7px 10px; border-radius: 10px; white-space: nowrap; pointer-events: none; animation: fbIn .18s var(--ease-press); }
@keyframes fbIn { from { opacity: 0; transform: translateY(4px); } }

/* ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); height: 44px; display: flex; align-items: center; }
.ticker-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tseg { display: flex; flex: 0 0 auto; }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; font: 500 13px/1 var(--f-mono); white-space: nowrap; border-right: 1px solid var(--line); }
.tick b { font-family: var(--f-head); font-weight: 700; }
.tick .up { color: var(--up); }
.tick .down { color: var(--down); }
.tick.sk-t { width: 150px; height: 12px; margin: 0 22px; padding: 0; border: 0; border-radius: 6px; background: var(--haze); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* hero */
.hero { position: relative; display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; overflow: hidden; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr .85fr; padding-top: 72px; padding-bottom: 88px; } }
.mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 420px; height: 420px; left: -80px; top: -60px; background: radial-gradient(circle, var(--lilac), transparent 68%); }
.b2 { width: 460px; height: 460px; right: -120px; top: 20px; background: radial-gradient(circle, var(--peri), transparent 70%); animation-duration: 22s; animation-delay: -6s; }
.b3 { width: 320px; height: 320px; left: 38%; bottom: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 55%, transparent), transparent 70%); animation-duration: 26s; animation-delay: -12s; }
.hexgrid { position: absolute; inset: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 L56 16.2 L56 48.5 L28 64.7 L0 48.5 L0 16.2 Z M28 64.7 L28 97' fill='none' stroke='%23dfe1fc' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
@keyframes drift { to { translate: 36px 24px; scale: 1.12; } }
.hero-copy, .hero-art { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0 14px; min-height: 32px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 12px/1 var(--f-mono); letter-spacing: .04em; box-shadow: var(--sh-soft); }
.pill .sep { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); position: relative; flex: 0 0 auto; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--cyan); animation: ping 1.8s var(--ease) infinite; }
[data-status="loading"] .dot { background: var(--lilac); }
[data-status="loading"] .dot::after { border-color: var(--lilac); }
[data-status="stale"] .dot, [data-status="offline"] .dot { background: var(--muted); }
[data-status="stale"] .dot::after, [data-status="offline"] .dot::after { animation: none; opacity: 0; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
h1 { margin-top: 20px; font-size: clamp(2.6rem, 7vw, 4.9rem); line-height: .95; letter-spacing: -.03em; font-weight: 700; }
.g { background: linear-gradient(100deg, var(--cobalt), var(--azure) 70%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 24px 0 0; max-width: 560px; font-size: 18px; color: var(--muted); }
.lede.sm { font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-btn); font-weight: 600; border: 1px solid transparent; transition: transform .18s var(--ease-press), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: var(--on-dark); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.hero-art { display: grid; place-items: center; }
.art-logo { width: min(420px, 78vw); height: auto; filter: drop-shadow(0 30px 50px color-mix(in srgb, var(--cobalt) 30%, transparent)); }
.art-logo.spin { animation: turn 60s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-panel); }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile-stat { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-stat .k { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile-stat .v { font: 700 clamp(22px, 3vw, 32px)/1.1 var(--f-head); letter-spacing: -.02em; margin-top: 6px; overflow-wrap: anywhere; }
.tile-stat .s { font-size: 12px; color: var(--muted); }

/* sections */
.sect { margin-top: 96px; }
@media (min-width: 860px) { .sect { margin-top: 112px; } }
.eyebrow { margin: 0 0 12px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -.03em; font-weight: 700; max-width: 18em; }
.sect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-panel); overflow: hidden; }

/* board */
.tabs { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.tab { min-height: var(--tap); padding: 0 18px; border-radius: 14px; border: 1px solid transparent; background: transparent; font-weight: 600; font-size: 14px; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--on-dark); }
.err { margin: 0; padding: 10px 20px; font-size: 13px; background: var(--mist); border-bottom: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1.6fr) 1fr .8fr 1fr 1fr 52px; align-items: center; column-gap: 12px; min-height: 68px; padding: 8px 16px; border-bottom: 1px solid var(--line); font: 500 14px/1.3 var(--f-mono); }
.row:last-child { border-bottom: 0; }
.row.head { min-height: 44px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.row > span { min-width: 0; }
.row .price, .row .chg, .row .vol, .row .liq { text-align: right; font-variant-numeric: tabular-nums; }
.row .rank { color: var(--muted); font-size: 12px; }
.tok { display: flex; align-items: center; gap: 12px; }
.tk { display: flex; flex-direction: column; min-width: 0; }
.nm { font: 600 15px/1.25 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm a { display: block; overflow: hidden; text-overflow: ellipsis; }
.nm a::after { content: ""; position: absolute; inset: 0; }
.nm a:hover { color: var(--accent); }
.sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob { display: none; font-size: 11px; color: var(--muted); }
.logo { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--mist); }
.logo img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.logo .letter { font: 700 15px/1 var(--f-head); color: var(--accent); }
.chg[data-dir="up"] { color: var(--up); }
.chg[data-dir="down"] { color: var(--down); }
.copy { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; position: relative; z-index: 2; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: transform .18s var(--ease-press), box-shadow .2s; }
.copy:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.row.own { border-left: 2px solid var(--cyan); animation: ownPulse 2s ease-in-out infinite; }
.row.own[data-state="pending"] .nm, .row.own[data-state="pending"] .price { color: var(--muted); }
@keyframes ownPulse { 50% { background-color: color-mix(in srgb, var(--cyan) 10%, transparent); } }
.fade-in { animation: fadeUp .46s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.flash-up { animation: flashUp .9s var(--ease); }
.flash-down { animation: flashDown .9s var(--ease); }
@keyframes flashUp { from { background: color-mix(in srgb, var(--cyan) 45%, transparent); } }
@keyframes flashDown { from { background: color-mix(in srgb, var(--lilac) 45%, transparent); } }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--haze), var(--mist), var(--haze)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk-s { width: 40px; } .sk-m { width: 70px; margin-left: auto; } .sk-l { width: 100px; margin-bottom: 6px; }
.sk-c { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 859px) {
  .row { grid-template-columns: minmax(0, 1fr) auto auto 52px; padding-inline: 12px; column-gap: 10px; }
  .row .rank, .row .vol, .row .liq { display: none; }
  .mob { display: block; }
  .row .chg { min-width: 70px; }
}
@media (max-width: 440px) { .row .price, .row .chg { font-size: 12px; } .row .chg { min-width: 58px; } .row { column-gap: 6px; } }

/* hover spotlight */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--cobalt) 13%, transparent), transparent 70%); opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; }
.spot:hover::before { opacity: 1; }

/* pillars */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: .8fr 1.2fr; gap: 48px; } .split-l { position: sticky; top: 170px; align-self: start; } }
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); padding: 24px; min-width: 0; }
.card .n { font: 500 12px/1 var(--f-mono); color: var(--accent); letter-spacing: .08em; }
.card h3 { margin: 18px 0 10px; font-size: 22px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 18px 52px; position: relative; }
.rules li::after { content: ""; position: absolute; left: 20px; top: 24px; width: 12px; height: 13px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* verify */
.verify { padding: 24px; }
.verify label { display: block; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.verify input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); font: 500 15px/1 var(--f-mono); color: var(--text); }
.verify-out { margin: 16px 0 0; font-size: 15px; padding: 12px 14px; border-radius: 12px; background: var(--mist); }
.verify-out[data-kind="match"] { background: color-mix(in srgb, var(--cyan) 22%, var(--surface)); }
.verify-out[data-kind="mismatch"], .verify-out[data-kind="none-stated"] { background: color-mix(in srgb, var(--lilac) 30%, var(--surface)); font-weight: 500; }

/* footer */
.foot { margin-top: 120px; border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 64px; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-brand p { margin: 16px 0 0; color: var(--muted); font-size: 14px; max-width: 380px; }
.foot h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid a:not(.brand) { display: flex; align-items: center; min-height: var(--tap); font-size: 14px; }
.foot-grid span { display: flex; align-items: center; min-height: 32px; font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }

/* scroll reveal */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .6s var(--ease), transform .7s var(--ease-press); transition-delay: var(--rd, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* create page */
.create { width: 100%; max-width: 960px; margin: 0 auto; padding: 40px 16px 0; }
@media (min-width: 640px) { .create { padding-inline: 24px; } }
.cr-head { margin-bottom: 28px; }
.cr-h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -.03em; font-weight: 700; }
.cr-sub { margin: 14px 0 0; color: var(--muted); max-width: 42em; }
.cr-form { display: flex; flex-direction: column; gap: 20px; }
.cr-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 24px; background: var(--navy); color: var(--haze); border: 1px solid var(--royal); box-shadow: var(--sh-panel); min-width: 0; }
.cr-h2 { margin: 0; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; color: var(--card); }
.cr-card .hint { margin: 0; font-size: 13px; color: var(--lilac); }
.opt { margin-left: 6px; color: var(--cyan); text-transform: none; letter-spacing: 0; }
.cr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cr-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cr-set { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cr-set > legend { float: none; width: 100%; margin-bottom: 16px; }
.cr-card .lbl, .cr-card legend { display: block; margin: 0; padding: 0; font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--peri); }
.cr-card .cr-set > legend { margin-bottom: 16px; }
.cr-card input[type="text"], .cr-card input[type="url"], .cr-card textarea { display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 16px; border-radius: 14px; border: 1px solid var(--royal); background: var(--ink); color: var(--card); font: 500 15px/1.4 var(--f-sans); }
.cr-card textarea { min-height: 128px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.cr-card ::placeholder { color: var(--lilac); opacity: .8; }
.cr-card input:focus-visible, .cr-card textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
.cr-card input[type="file"] { width: 100%; min-height: var(--tap); color: var(--peri); font-size: 14px; }
.seg { display: inline-flex; align-self: flex-start; gap: 8px; padding: 6px; border-radius: 14px; background: var(--ink); border: 1px solid var(--royal); }
.seg-opt { position: relative; display: inline-flex; min-height: var(--tap); min-width: 96px; cursor: pointer; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14px; color: var(--lilac); transition: background-color .15s var(--ease), color .15s var(--ease); }
.seg-opt.on span { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.coin-ico { flex: none; display: block; }
.toggle { display: flex; gap: 14px; align-items: flex-start; min-height: var(--tap); padding-top: 16px; border-top: 1px solid var(--royal); cursor: pointer; }
.toggle input { flex: none; width: 24px; height: 24px; margin: 10px 0 0; accent-color: var(--cyan); }
.toggle-txt { display: grid; gap: 4px; color: var(--card); }
.toggle-txt small { color: var(--lilac); font-size: 13px; }
.drop { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 200px; padding: 20px; text-align: center; border: 2px dashed var(--azure); border-radius: 16px; background: var(--ink); color: var(--card); cursor: pointer; position: relative; overflow: hidden; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--cyan); background: var(--navy); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-t { position: relative; font-weight: 600; overflow-wrap: anywhere; }
.drop-s { position: relative; color: var(--lilac); font-size: 14px; }
.drop-prev { position: relative; max-height: 120px; max-width: 100%; border-radius: 12px; }
.specs { display: grid; gap: 14px; margin: 0; font-size: 13px; }
.specs dt { margin-bottom: 4px; font-weight: 600; color: var(--card); }
.specs dd { margin: 0; color: var(--lilac); }
.pv { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--ink); border: 1px solid var(--royal); }
.pv-img { flex: none; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, var(--cobalt), var(--azure) 70%, var(--cyan)); background-size: cover; background-position: center; }
.pv-txt { display: grid; gap: 4px; min-width: 0; }
.pv-txt b, .pv-desc { overflow-wrap: anywhere; }
.pv-txt b { color: var(--card); }
.pv-txt code { font: 500 12px/1 var(--f-mono); color: var(--cyan); }
.pv-desc { color: var(--lilac); font-size: 13px; }
.cr-actions { display: grid; gap: 12px; }
@media (min-width: 640px) { .cr-actions { grid-template-columns: 1fr 2fr; } }
.cr-actions .btn { position: relative; width: 100%; }
.cr-note { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 767px) { .cr-row { grid-template-columns: 1fr; } .cr-card { padding: 22px 18px; } .seg { align-self: stretch; } .seg-opt { flex: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker { overflow-x: auto; }
  .tseg[aria-hidden="true"] { display: none; }
}
