:root, :root[data-theme='dark'] {
  --bg: #09090a;
  --side: #0d0d0e;
  --card: #121214;
  --card-2: #18181b;
  --soft: #1f1f23;
  --text: #f1eee7;
  --muted: #8d887e;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --hover: rgba(255, 255, 255, 0.06);
  --live: #ff4b3e;
  --up: #58c48a;
  --down: #e0655f;
  --feature-bg: #f1eee7;
  --feature-text: #121212;
  --feature-muted: #6f6a61;
  --solid-bg: #f1eee7;
  --solid-text: #0b0b0c;
  --hint-bg: rgba(88, 196, 138, 0.08);
  --hint-line: rgba(88, 196, 138, 0.28);
  --hint-text: #9fe0bb;
  --announce-bg: #f1eee7;
  --announce-text: #121212;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --tile-hover: brightness(1.15);
  --head: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Geist', system-ui, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f8f7f4;
  --side: #f3f2ee;
  --card: #ffffff;
  --card-2: #f3f2ee;
  --soft: #e9e7e1;
  --text: #1a1a18;
  --muted: #77736b;
  --line: rgba(26, 26, 24, 0.08);
  --line-2: rgba(26, 26, 24, 0.14);
  --hover: rgba(26, 26, 24, 0.05);
  --up: #1f9a5a;
  --down: #c8443d;
  --feature-bg: #1a1a18;
  --feature-text: #f1eee7;
  --feature-muted: #a29d93;
  --solid-bg: #1a1a18;
  --solid-text: #f8f7f4;
  --hint-bg: #f1fbe5;
  --hint-line: #cfe9b4;
  --hint-text: #2f5a12;
  --announce-bg: #1a1a18;
  --announce-text: #f1eee7;
  --shadow: 0 10px 30px rgba(26, 26, 24, 0.12);
  --tile-hover: brightness(0.96);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* announcement */
.announce { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; padding: 6px 44px; background: var(--announce-bg); color: var(--announce-text); font-size: 12.5px; text-align: center; }
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(88, 196, 138, 0.25); flex: none; animation: pulse 1.6s ease-in-out infinite; }
.announce-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; opacity: .6; padding: 4px 8px; }
.announce-x:hover { opacity: 1; }
.announce.hidden { display: none; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; align-self: flex-start; width: 232px; height: 100vh; flex: none; display: flex; flex-direction: column; padding: 14px 10px; background: var(--side); border-right: 1px solid var(--line); z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; text-decoration: none; }
.brand-logo { width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font: 700 14px var(--head); overflow: hidden; flex: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font: 700 16px var(--head); letter-spacing: -0.01em; }
.brand-name em { font: 400 11.5px var(--mono); color: var(--muted); font-style: normal; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--muted); text-decoration: none; transition: background .15s, color .15s; }
.side-nav a:hover { background: var(--hover); color: var(--text); }
.side-nav a.on { background: var(--card-2); color: var(--text); font-weight: 500; }
.side-nav .count, .side-nav .ext { margin-left: auto; font: 400 11px var(--mono); color: var(--muted); }
.side-nav .glyph { width: 16px; text-align: center; font-size: 14px; }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 18px 10px 6px; }
.side-ca { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ca { width: 100%; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; font: 400 12px var(--mono); background: transparent; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s, color .15s; }
.ca:hover:not([disabled]) { border-color: var(--text); color: var(--text); }
.ca[disabled] { cursor: default; }
.ca b { color: var(--text); font-weight: 500; }
.scrim { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs i { color: var(--line-2); font-style: normal; }
.crumbs b { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; cursor: pointer; color: var(--muted); transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.burger { display: none; }
.content { width: min(1000px, calc(100% - 44px)); margin: 24px auto 40px; outline: none; flex: 1; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 8px; font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: opacity .15s, border-color .15s, background .15s; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-solid { background: var(--solid-bg); color: var(--solid-text); }
.btn-solid:hover { opacity: .88; }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-invert { background: var(--feature-text); color: var(--feature-bg); }
.btn-invert:hover { opacity: .88; }
.btn-dim { border-color: color-mix(in srgb, var(--feature-text) 22%, transparent); color: var(--feature-text); background: transparent; }
.btn-dim:hover { border-color: var(--feature-text); }
.btn.disabled { opacity: .55; pointer-events: none; }

/* page */
.page { display: flex; flex-direction: column; gap: 14px; animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 4px; }
.page-h h1 { font: 700 30px/1.1 var(--head); letter-spacing: -0.02em; margin: 0 0 6px; }
.page-h p { margin: 0; color: var(--muted); max-width: 62ch; }
.section-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.section-h h2 { font: 700 20px var(--head); letter-spacing: -0.01em; margin: 0; }
.section-h a { font-size: 13px; color: var(--muted); text-decoration: none; }
.section-h a:hover { color: var(--text); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.panel h3 { font-size: 16px; margin: 0 0 8px; }

/* hero */
.feature { position: relative; display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 24px; padding: 26px 28px; border-radius: 10px; background: var(--feature-bg); color: var(--feature-text); overflow: hidden; }
.feature h1 { font: 700 clamp(26px, 3.2vw, 36px)/1.1 var(--head); letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.feature-sub { font-size: 13.5px; color: var(--feature-muted); margin: 0 0 18px; max-width: 58ch; }
.feature-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 20px; }
.feature-stats dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--feature-muted); }
.feature-stats dd { margin: 2px 0 0; font: 500 15px var(--mono); }
.feature-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-art { display: grid; place-items: center; }

/* stats */
.stats5 { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats5 > div { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.stats5 > div:first-child { border-left: 0; }
.stats5 .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats5 .v { font: 500 17px var(--mono); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* now dropping */
.now-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.now-head .lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; flex: none; }
.now-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.now-token { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.now-token .logo { width: 44px; height: 44px; }
.now-sym { font: 700 22px/1.1 var(--head); letter-spacing: -0.01em; }
.now-name { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-next { text-align: right; flex: none; }
.now-next .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.now-next .v { font: 500 20px var(--mono); font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 4px; background: var(--soft); margin: 14px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 4px; transition: width 1s linear; }
.bar-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.next-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; text-decoration: none; }
.pill .logo { width: 18px; height: 18px; }
.pill em { font: 400 11px var(--mono); color: var(--muted); font-style: normal; }

.logo { border-radius: 50%; object-fit: cover; background: var(--card-2); flex: none; }
.logo.fallback { display: grid; place-items: center; font: 600 10px var(--mono); color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* mini drops */
.mini-drops { list-style: none; margin: 0; padding: 0; }
.md { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.md:first-child { border-top: 0; }
.md .logo { width: 22px; height: 22px; }
.md b { font-weight: 500; }
.md .mono { font-size: 12px; }
.md.fresh { animation: fresh 1.6s ease both; }
@keyframes fresh { 0% { background: color-mix(in srgb, var(--up) 20%, transparent); } 100% { background: transparent; } }

/* coin cards */
.coin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.coin-grid.two { grid-template-columns: repeat(2, 1fr); }
.coin { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s, transform .15s; }
.coin:hover { border-color: var(--line-2); transform: translateY(-1px); }
.coin-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin-top .logo { width: 36px; height: 36px; }
.coin-top b { display: block; font-weight: 600; }
.coin-top span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-top .tag { margin-left: auto; }
.coin-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coin-nums .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.coin-nums .v { font: 500 13px var(--mono); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.tag.grad { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.tag.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.empty-card { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 10px; }
.empty-card b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.skel { height: 148px; border-radius: 10px; background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.hint { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-radius: 10px; background: var(--hint-bg); border: 1px solid var(--hint-line); color: var(--hint-text); font-size: 13.5px; text-decoration: none; }
.hint b { font-weight: 600; }
.hint span:last-child { white-space: nowrap; font-weight: 500; }

/* map */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 12.5px; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.chip em { font: 400 11px var(--mono); font-style: normal; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--card-2); color: var(--text); border-color: var(--line-2); }
.map { position: relative; height: min(68vh, 640px); min-height: 420px; }
.sector { position: absolute; }
.sector > span { position: absolute; left: 2px; top: 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tile { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 6px; background: var(--card-2); cursor: pointer; overflow: hidden; text-decoration: none; transition: filter .15s; animation: tileIn .45s cubic-bezier(.2,.7,.2,1) both; }
.tile:hover { filter: var(--tile-hover); }
.tile .bg { position: absolute; inset: -10%; background-size: cover; background-position: center; opacity: .08; filter: blur(14px); pointer-events: none; }
.tile .logo { position: relative; }
.tile .sym { position: relative; font-weight: 600; font-size: 13px; line-height: 1.1; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .cap, .tile .chg { position: relative; font: 400 11.5px var(--mono); color: var(--muted); }
.tile .chg.up { color: var(--up); } .tile .chg.down { color: var(--down); }
.tile .badge { position: absolute; top: 5px; right: 6px; font: 600 9px var(--mono); color: var(--live); letter-spacing: 0.05em; }
.tile.live { outline: 1.5px solid var(--live); outline-offset: -1.5px; }
.tile.live::after { content: ''; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes tileIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.map-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }

.tip { position: fixed; z-index: 60; width: 240px; padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12.5px; pointer-events: none; opacity: 0; transition: opacity .12s; }
.tip.show { opacity: 1; }
.tip-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tip-h .logo { width: 32px; height: 32px; }
.tip-h b { display: block; font-size: 14px; }
.tip-h span { color: var(--muted); font-size: 12px; }
.tip dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.tip dt { color: var(--muted); }
.tip dd { margin: 0; text-align: right; font-family: var(--mono); }

.moves { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.move { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.move .logo { width: 22px; height: 22px; }
.move .dir { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 4px; }
.move .dir.in { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.move .dir.out { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.move .when { margin-left: auto; color: var(--muted); font-size: 12px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-top: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
tbody tr:first-child td { border-top: 0; }
th.num, td.num { text-align: right; font-family: var(--mono); }
tr.row { cursor: pointer; transition: background .12s; }
tr.row:hover { background: var(--hover); }
tr.row.open { background: var(--hover); }
td a { text-decoration: none; } td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cell-coin { display: flex; align-items: center; gap: 10px; }
.cell-coin .logo { width: 24px; height: 24px; }
.cell-coin b { font-weight: 500; }
.detail td { background: var(--bg); padding: 16px 14px; white-space: normal; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.detail-grid dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.detail-grid dt { color: var(--muted); } .detail-grid dd { margin: 0; font-family: var(--mono); }
.rec-wrap { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table.rec th { position: sticky; top: 0; background: var(--card); font-size: 10.5px; }
table.rec td { padding: 7px 12px; font-size: 12.5px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.pager button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font: 400 12px var(--mono); color: var(--muted); }
.pager button:hover { color: var(--text); }
.pager button.on { background: var(--solid-bg); color: var(--solid-text); border-color: transparent; }
.pager button[disabled] { opacity: .4; cursor: default; }

.search { display: flex; align-items: center; gap: 8px; height: 34px; width: 280px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.search.sm { height: 30px; width: 200px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 13px var(--body); }
.search input::placeholder { color: var(--muted); }
.sort { display: inline-flex; gap: 4px; align-items: center; }
.sort button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.sort button.on { background: var(--card); border-color: var(--line-2); color: var(--text); }

.pair-how { display: grid; grid-template-columns: 1fr 300px; gap: 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.pair-how h3 { font: 700 17px var(--head); margin: 0 0 6px; }
.pair-how p { color: var(--muted); margin: 0; }
.pair-how ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.pair-how li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13px; }
.pair-how li::before { content: counter(s, decimal-leading-zero); font: 400 12px var(--mono); color: var(--muted); padding-top: 1px; }
.pair-side { border-left: 1px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }

/* coin page */
.coin-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.coin-head .logo { width: 52px; height: 52px; }
.coin-title h1 { font: 700 30px/1.1 var(--head); margin: 0; letter-spacing: -0.02em; }
.coin-title span { color: var(--muted); }
.coin-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.coin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.chart { height: 460px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.chart iframe { width: 100%; height: 100%; border: 0; }
.chart .empty-card { height: 100%; display: grid; place-content: center; border: 0; }
.back { font-size: 13px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* rotation */
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 70px 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); }
.sched li:first-child { border-top: 0; }
.sched .t { font: 500 13px var(--mono); color: var(--muted); }
.sched .t.now { color: var(--live); }
.sched .logo { width: 28px; height: 28px; }
.sched a { text-decoration: none; font-weight: 500; }
.sched .r { font: 400 12px var(--mono); color: var(--muted); }

/* docs */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.doc-card h3 { font: 700 17px var(--head); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc-card p { margin: 0; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow > div { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.flow em { font: 400 12px var(--mono); color: var(--muted); font-style: normal; }
.flow b { display: block; margin: 6px 0 4px; font-size: 14px; }
.flow p { margin: 0; font-size: 13px; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.info-grid .panel .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.info-grid .panel .v { font: 500 18px var(--mono); margin-top: 4px; word-break: break-all; }
.addr { cursor: pointer; }
.addr:hover { text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 10px); background: var(--solid-bg); color: var(--solid-text); padding: 9px 16px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 70; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* breakpoints */
@media (max-width: 1100px) {
  .coin-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature-art { display: none; }
  .stats5 { grid-template-columns: repeat(3, 1fr); }
  .stats5 > div:nth-child(4) { border-left: 0; }
  .stats5 > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 25; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .burger { display: grid; }
  .content { width: calc(100% - 32px); margin-top: 16px; }
  .top { padding: 0 16px; }
  .split, .pair-how, .doc-grid, .detail-grid, .info-grid, .moves { grid-template-columns: 1fr; }
  .pair-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .page-h { flex-direction: column; align-items: flex-start; }
  .chart { height: 380px; }
  .announce b { display: none; }
  #topX { display: none; }
}
@media (max-width: 560px) {
  .coin-grid, .coin-grid.two { grid-template-columns: 1fr; }
  .stats5 { grid-template-columns: repeat(2, 1fr); }
  .stats5 > div { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stats5 > div:nth-child(odd) { border-left: 0; }
  .stats5 > div:nth-child(-n+2) { border-top: 0; }
  .feature { padding: 20px; }
  .crumbs { display: none; }
  .hint { flex-direction: column; align-items: flex-start; }
  .map { min-height: 360px; }
  .search, .search.sm { width: 100%; }
  .sort .muted { display: none; }
  .now-row { flex-direction: column; align-items: flex-start; }
  .now-next { text-align: left; }
  .flow { grid-template-columns: 1fr; }
  .sched li { grid-template-columns: 56px 24px minmax(0, 1fr); }
  .sched .r { display: none; }
  .stats5 > div:last-child:nth-child(odd) { grid-column: span 2; }
  .bar-meta { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- v2: как в оригинале ---------- */
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--feature-muted); margin: 0 0 10px; }
.feature-stats { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; gap: 12px 28px; }
.feature-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.link-dim { color: var(--feature-muted); text-decoration: none; font-size: 13.5px; padding: 0 8px; }
.link-dim:hover { color: var(--feature-text); }
.mosaic { display: grid; grid-template-columns: repeat(5, 40px); gap: 6px; transform: rotate(-6deg); }
.mosaic img, .mosaic i { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: color-mix(in srgb, var(--feature-text) 8%, transparent); display: block; animation: pop .5s cubic-bezier(.2,.8,.2,1.2) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(6px); } to { opacity: 1; transform: none; } }

.side-ca .side-label { padding: 0 2px 8px; }
.icon-btn .glyph, .side-nav .glyph { font-size: 14px; line-height: 1; }
a.icon-btn { text-decoration: none; }

.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-h .t { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.panel-h a, .panel-h .r { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.panel-h a:hover { color: var(--text); }
.bar-meta a { color: var(--muted); text-decoration: none; } .bar-meta a:hover { color: var(--text); }
.md2 { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.md2:first-child { border-top: 0; }
.md2 .logo { width: 22px; height: 22px; }
.md2 b { display: block; font-weight: 500; font-size: 13.5px; }
.md2 small { display: block; color: var(--muted); font-size: 12px; }
.md2 .mono { font-size: 13px; }

.coin-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.coin-foot span:last-child { display: flex; gap: 10px; }
.coin-foot a { color: var(--muted); text-decoration: none; } .coin-foot a:hover { color: var(--text); }
.tag.launch { color: var(--text); border-color: var(--line-2); }

.map { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sector > span { left: 8px; top: 5px; font-size: 10.5px; z-index: 1; }
.page-h .meta { text-align: right; font-size: 12px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }

.rot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rot { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s; }
.rot:hover { border-color: var(--line-2); }
.rot.now { border-color: color-mix(in srgb, var(--live) 70%, transparent); }
.rot-top { display: flex; justify-content: space-between; font: 400 11px var(--mono); color: var(--muted); }
.rot.now .rot-top span:first-child { color: var(--live); font-weight: 500; }
.rot-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rot-coin .logo { width: 28px; height: 28px; }
.rot-coin b { display: block; font-weight: 600; font-size: 13.5px; }
.rot-coin span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lookup-row { display: flex; gap: 8px; }
.lookup-row .search { flex: 1; width: auto; }
td .sub { display: block; font: 400 11px var(--mono); color: var(--muted); }
td .txs { white-space: nowrap; }

/* launch */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: 400 14px var(--body); outline: 0; transition: border-color .15s; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.drop-img { position: relative; display: grid; place-items: center; gap: 4px; min-height: 150px; border: 1px dashed var(--line-2); border-radius: 10px; cursor: pointer; text-align: center; color: var(--muted); font-size: 12.5px; overflow: hidden; }
.drop-img b { color: var(--text); font-weight: 500; font-size: 13.5px; }
.drop-img input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-img img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; }
.btn-go { width: 100%; height: 42px; font-size: 14px; }
.status { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.status.bad { color: var(--down); }
.steps-side ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps-side li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13px; color: var(--muted); }
.steps-side li::before { content: counter(s, decimal-leading-zero); font: 400 11.5px var(--mono); color: var(--muted); padding-top: 2px; }
.steps-side li b { color: var(--text); font-weight: 500; }
.steps-side .cost { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* coin page */
.coin-card { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 12px; }
.coin-card .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.coin-card .links { margin-left: auto; display: flex; gap: 6px; }
.chip-link { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; text-decoration: none; color: var(--text); background: transparent; cursor: pointer; }
.chip-link:hover { border-color: var(--text); }
.mint-copy { font: 400 12px var(--mono); color: var(--muted); cursor: pointer; background: none; border: 0; padding: 0; }
.mint-copy:hover { color: var(--text); }
.trade-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.trade-grid.solo { grid-template-columns: 1fr; }
.swap { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.swap-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--card-2); border-radius: 999px; }
.swap-tabs button { height: 32px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); font-weight: 500; }
.swap-tabs button.on { background: var(--soft); color: var(--text); }
.swap[data-side="buy"] .swap-tabs button.on { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.swap[data-side="sell"] .swap-tabs button.on { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.swap-box { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.swap-box .k { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.swap-box .in { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.swap-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 22px var(--mono); }
.swap-box .cur { font: 500 12.5px var(--mono); }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.presets button { height: 28px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font: 400 12px var(--mono); cursor: pointer; }
.presets button:hover { color: var(--text); border-color: var(--line-2); }
.btn-buy { width: 100%; height: 40px; border: 0; border-radius: 8px; background: var(--up); color: #07130c; font-weight: 600; cursor: pointer; }
.swap[data-side="sell"] .btn-buy { background: var(--down); color: #1a0706; }
.btn-buy[disabled] { opacity: .6; cursor: default; }
.swap-note { font-size: 12px; color: var(--muted); margin: 0; }
.chart { height: 100%; min-height: 380px; }
.info-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.info-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.info-rows dt { color: var(--muted); } .info-rows dd { margin: 0; font-family: var(--mono); text-align: right; }

/* how */
.idea { padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.idea h2 { font: 700 22px var(--head); margin: 0 0 8px; letter-spacing: -0.01em; }
.idea p { color: var(--muted); margin: 0 0 10px; max-width: 72ch; }
.idea p:last-child { margin: 0; }
.faq { border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-family: var(--mono); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); max-width: 72ch; }

@media (max-width: 1100px) {
  .feature-stats { grid-template-columns: repeat(3, auto); }
  .rot-grid { grid-template-columns: repeat(3, 1fr); }
  .trade-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .launch-grid, .info-rows { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-stats { grid-template-columns: repeat(2, auto); }
  .rot-grid { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .coin-card .links { margin-left: 0; }
  .page-h .meta { text-align: left; }
}

/* индексы */
.idx-tabs .chip { text-decoration: none; }
.idx-tabs .main-mark { padding: 1px 6px; border-radius: 999px; background: var(--card-2); color: var(--text); }
.idx-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.idx-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.idx-opt b { font-weight: 500; font-size: 13.5px; }
.idx-opt span { font-size: 12px; color: var(--muted); }
.idx-opt:hover { border-color: var(--text); }
.idx-opt.on { border-color: var(--up); background: color-mix(in srgb, var(--up) 8%, var(--bg)); }

/* own ETF */
.idx-etf b::after { content: ' ✦'; color: var(--up); }
.etf { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.etf-head { display: flex; justify-content: space-between; align-items: baseline; }
.etf-head b { font-weight: 600; }
.etf .note { margin: 0; font-size: 12.5px; color: var(--muted); }
.etf-sel { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.etf-chip em { font: 400 10.5px var(--mono); color: var(--muted); font-style: normal; padding-left: 4px; }
.etf-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px 0 4px; }
.etf-chip button:hover { color: var(--down); }
.etf-add { display: flex; gap: 8px; }
.etf-add input { flex: 1; min-width: 0; padding: 8px 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: 400 12.5px var(--mono); outline: 0; }
.etf-add input:focus { border-color: var(--text); }
.etf-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.etf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 330px; overflow-y: auto; padding-right: 2px; }
.etf-opt { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; transition: border-color .12s, background .12s; }
.etf-opt .logo { width: 26px; height: 26px; }
.etf-opt b { display: block; font-weight: 500; font-size: 13px; }
.etf-opt small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etf-opt .tag { font-style: normal; height: 18px; font-size: 9.5px; padding: 0 6px; }
.etf-opt:hover { border-color: var(--line-2); }
.etf-opt.on { border-color: var(--up); background: color-mix(in srgb, var(--up) 9%, var(--card)); }
