/* Charted: deep-water navy, buoy orange, sounding cyan. Calm surfaces, soft motion. */
:root {
  --abyss: #07131f;
  --hull: #0c1c2c;
  --hull-2: #112538;
  --line: rgba(150, 180, 205, 0.12);
  --line-2: rgba(150, 180, 205, 0.22);
  --text: #e8f0f7;
  --soft: #c3d2df;
  --mist: #8299ae;
  --buoy: #ff7a3c;
  --buoy-2: #ff8f59;
  --sound: #73d2e6;
  --up: #3ed49c;
  --down: #ff6272;
  --warn: #ffc463;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1200px;
  --r-lg: 16px;
  --r: 12px;
  --r-sm: 9px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--abyss); scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--abyss); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 15px; line-height: 1.45; }
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px 24px 80px; }
a { color: var(--sound); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: #a4e3f0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sound); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.up { color: var(--up); } .down { color: var(--down); }
.muted { color: var(--mist); }
.hint { color: var(--mist); font-size: 13.5px; line-height: 1.5; }
.sr { position: absolute; left: -9999px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: rise 0.35s var(--ease) both; }
.skel { display: block; border-radius: 6px; background: linear-gradient(100deg, var(--hull-2) 30%, #173049 50%, var(--hull-2) 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(7, 19, 31, 0.8); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 700; font-stretch: 108%; font-size: 20px; letter-spacing: -0.03em; }
.brand img { width: 28px; height: 28px; }
.x-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--soft) !important; margin-left: -14px; flex: none; transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease); }
.x-link:hover { background: var(--hull-2); border-color: rgba(150, 180, 205, 0.4); color: var(--text) !important; }
.search { flex: 1; max-width: 480px; position: relative; }
.search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--mist); pointer-events: none; }
.search input { width: 100%; background: var(--hull); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 10px 18px 10px 40px; font: inherit; font-size: 14px; outline: none; transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.search input:hover { border-color: var(--line-2); }
.search input:focus { border-color: var(--sound); background: var(--hull-2); }
.search input::placeholder { color: var(--mist); }
.top .btn { margin-left: auto; }

.ca-bar { border-top: 1px solid var(--line); }
.ca-in { max-width: var(--max); margin: 0 auto; padding: 7px 24px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mist); min-width: 0; }
.ca-label { font-weight: 700; font-size: 11.5px; color: #1b0b02; background: var(--buoy); border-radius: 999px; padding: 2px 9px; flex: none; }
.ca-addr { font-family: var(--mono); font-size: 12.5px; color: var(--text) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; border-bottom: 1px dashed var(--line-2); }
a.ca-addr:hover { color: var(--sound) !important; border-bottom-color: var(--sound); }
.ca-short { display: none; }
.ca-copy { flex: none; background: var(--hull-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; transition: border-color 0.15s var(--ease); }
.ca-copy:hover { border-color: var(--sound); }
.ca-soon a { color: var(--sound); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--hull-2); color: var(--text) !important; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease); }
.btn:hover { border-color: rgba(150, 180, 205, 0.4); background: #16304a; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--buoy); border-color: transparent; color: #200d02 !important; }
.btn.primary:hover { background: var(--buoy-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.pitch { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--hull); padding: 44px 44px; display: flex; align-items: center; gap: 32px; }
.pitch .contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; pointer-events: none; mask-image: linear-gradient(90deg, transparent 20%, #000 65%); }
.pitch > div, .pitch > a { position: relative; }
.pitch h1 { font-weight: 700; font-stretch: 110%; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; max-width: 14ch; }
.pitch p { color: var(--soft); margin-top: 14px; font-size: 17px; line-height: 1.55; max-width: 44ch; }
.pitch .btn { margin-left: auto; padding: 14px 26px; font-size: 15.5px; }

/* ---------- rails ---------- */
.rail-sec { margin-top: 40px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rail-head h2 { font-weight: 700; font-stretch: 105%; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.rail-head .more { color: var(--mist); font-size: 13.5px; }
.rail-head a.more:hover { color: var(--text); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: -2px -2px 0; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail:has(> .rail-empty) { display: block; }
.rail-empty { display: block; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 20px 22px; color: var(--mist); }
a.rail-empty { transition: border-color 0.15s var(--ease), color 0.15s var(--ease); }
a.rail-empty:hover { border-color: var(--sound); color: var(--text); }
.card { position: relative; display: block; overflow: hidden; background: var(--hull); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--text) !important; scroll-snap-align: start; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease); }
.card:hover { border-color: var(--line-2); background: var(--hull-2); transform: translateY(-2px); }
.card.has-bn::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 64px; background: var(--bn) center / cover; opacity: 0.4; mask-image: linear-gradient(#000, transparent); }
.card-top { position: relative; display: flex; align-items: center; gap: 10px; }
.card-id { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.card-id b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-top .bolts { margin-left: auto; }
.card-num { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 16px; font-size: 14px; }
.card.skel-card { pointer-events: none; }
.skel-card .skel:first-child { width: 60%; height: 14px; }

/* token images */
.tok-img, .ph { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; background: var(--hull-2); }
.ph { display: inline-block; background: radial-gradient(circle at 35% 35%, #1b3854, var(--hull-2)); }

/* stamp and bolts */
.stamp { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--sound); flex: none; }
.stamp svg { width: 11px; height: 11px; }
.bolts { display: inline-flex; align-items: center; gap: 2px; color: var(--buoy); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255, 122, 60, 0.12); border-radius: 999px; padding: 2px 8px 2px 5px; }
.bolts svg { width: 12px; height: 12px; }

/* ---------- tabs + table ---------- */
.tabs { display: inline-flex; gap: 2px; margin: 44px 0 14px; padding: 4px; background: var(--hull); border: 1px solid var(--line); border-radius: 999px; }
.tab { background: none; border: 0; color: var(--mist); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--hull-2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 6px rgba(0, 0, 0, 0.25); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; background: var(--hull); }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th { text-align: right; font-weight: 500; color: var(--mist); font-size: 12.5px; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
td { text-align: right; padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; transition: background 0.15s var(--ease); }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: rgba(115, 210, 230, 0.04); }
tbody tr:last-child td { border-bottom: 0; }
tr.boosted td { background: rgba(255, 122, 60, 0.045); }
tr.boosted:hover td { background: rgba(255, 122, 60, 0.08); }
td.state { text-align: center; color: var(--mist); padding: 44px 18px; cursor: default; white-space: normal; }
tr.skel-row td { cursor: default; }
tr.skel-row .skel { height: 12px; width: 60px; margin-left: auto; }
tr.skel-row td:first-child .skel { width: 150px; margin-left: 0; }
.tok { display: inline-flex; align-items: center; gap: 12px; color: var(--text) !important; max-width: 360px; }
.tok b { font-weight: 600; }
.tok .name { color: var(--mist); overflow: hidden; text-overflow: ellipsis; }
.tok > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
sub { font-size: 0.72em; vertical-align: -0.25em; }

/* ---------- token page ---------- */
.t-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.t-head .logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.t-head h1 { font-weight: 700; font-stretch: 108%; font-size: 32px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.t-head .stamp { width: 22px; height: 22px; } .t-head .stamp svg { width: 14px; height: 14px; }
.sub { color: var(--mist); font-size: 14px; margin-top: 4px; }
.t-price { margin-left: auto; text-align: right; }
.t-price .big { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.t-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.boost-btn { background: rgba(255, 122, 60, 0.12) !important; border-color: rgba(255, 122, 60, 0.35) !important; color: var(--buoy-2) !important; }
.boost-btn:hover { background: rgba(255, 122, 60, 0.2) !important; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 26px; align-items: start; }
.panel { background: var(--hull); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-weight: 700; font-size: 16.5px; letter-spacing: -0.015em; margin-bottom: 12px; }
.chart-panel { padding: 12px; }
.chart-bar { display: inline-flex; gap: 2px; padding: 3px; margin: 2px 0 10px 2px; background: var(--abyss); border-radius: 999px; }
.chart-bar button { background: none; border: 0; color: var(--mist); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.chart-bar button:hover { color: var(--text); }
.chart-bar button[aria-pressed="true"] { background: var(--hull-2); color: var(--text); }
#chart { height: 440px; }
#chart .state, .page-state { color: var(--mist); text-align: center; padding: 60px 20px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.stats dt { color: var(--mist); font-size: 12.5px; }
.stats dd { font-size: 15px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }
.addr { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--mist); overflow-wrap: anywhere; }
.profile { padding: 0; overflow: hidden; }
.profile .banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.profile .body { padding: 18px 20px 20px; }
.profile p { line-height: 1.6; color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.links a { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--text); transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.links a:hover { border-color: var(--sound); background: rgba(115, 210, 230, 0.06); }
.charted-by { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--mist); font-size: 13px; }
.claim-cta p { color: var(--soft); line-height: 1.6; margin-bottom: 16px; }
.new-banner { display: flex; align-items: center; gap: 16px; background: rgba(115, 210, 230, 0.08); border: 1px solid rgba(115, 210, 230, 0.35); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 22px; }
.new-banner .btn { margin-left: auto; }

/* safety */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; font-weight: 500; }
.checks .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #06131e; }
.dot.good { background: var(--up); } .dot.bad { background: var(--down); } .dot.warn { background: var(--warn); } .dot.unknown { background: var(--hull-2); color: var(--mist); }
.checks small { display: block; color: var(--mist); font-size: 13px; font-weight: 400; margin-top: 1px; }

/* ---------- claim ---------- */
.claim { max-width: 700px; margin: 0 auto; }
.claim h1 { font-weight: 700; font-stretch: 110%; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.035em; }
.claim > p { color: var(--soft); margin: 14px 0 30px; line-height: 1.6; font-size: 16px; }
.step { background: var(--hull); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 14px; transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease); }
.step[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.step.done { border-color: rgba(115, 210, 230, 0.3); }
.step h2 { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.step h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--hull-2); display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.step.done h2 .n { background: var(--sound); color: #06131e; }
label.f { display: block; font-size: 13.5px; color: var(--mist); margin: 16px 0 6px; }
.in { width: 100%; background: var(--abyss); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r-sm); padding: 11px 13px; font: inherit; font-size: 14px; outline: none; transition: border-color 0.15s var(--ease); }
.in:hover { border-color: rgba(150, 180, 205, 0.35); }
.in:focus { border-color: var(--sound); }
.in.mono { font-family: var(--mono); font-size: 13px; }
input[type="file"].in { padding: 9px 10px; color: var(--mist); }
input[type="file"].in::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; color: var(--text); background: var(--hull-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; margin-right: 12px; cursor: pointer; }
textarea.in { min-height: 100px; resize: vertical; line-height: 1.55; }
.row { display: flex; gap: 10px; align-items: center; }
.row .in { flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.found, .result { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: var(--abyss); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; animation: rise 0.3s var(--ease) both; }
.result { display: block; line-height: 1.55; }
.result strong { display: block; margin-bottom: 4px; font-weight: 600; }
.preview-logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-top: 12px; }
.preview-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; margin-top: 12px; border-radius: var(--r-sm); }
.status { margin-top: 12px; font-size: 14px; color: var(--mist); }
.status.err { color: var(--down); } .status.ok { color: var(--up); }

/* boost dialog */
dialog { background: var(--hull); color: var(--text); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; width: min(460px, calc(100% - 32px)); margin: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
dialog[open] { animation: rise 0.25s var(--ease) both; }
dialog::backdrop { background: rgba(3, 9, 15, 0.7); backdrop-filter: blur(6px); }
dialog h2 { font-weight: 700; font-stretch: 108%; font-size: 22px; letter-spacing: -0.02em; }
.packs { display: grid; gap: 10px; margin: 20px 0; }
.pack { display: flex; align-items: center; gap: 14px; background: var(--abyss); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; color: var(--text); text-align: left; width: 100%; transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.pack:hover { border-color: rgba(255, 122, 60, 0.5); }
.pack[aria-pressed="true"] { border-color: var(--buoy); background: rgba(255, 122, 60, 0.06); }
.pack b { display: block; font-weight: 600; }
.pack .price { margin-left: auto; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pack .price .hint { display: block; font-weight: 400; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot > div { max-width: var(--max); margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mist); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .x-link { margin-left: 0; width: 34px; height: 34px; }
  .ca-in { padding: 7px 16px; }
  .ca-full { display: none; } .ca-short { display: inline; }
  .pitch { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .pitch .btn { margin-left: 0; }
  .t-price { margin-left: 0; text-align: left; width: 100%; }
  .t-actions { justify-content: flex-start; }
  .two { grid-template-columns: 1fr; }
  #chart { height: 320px; }
  main { padding: 18px 16px 60px; }
}
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
