@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #12110f;
  --bg2: #191815;
  --panel: #1e1c19;
  --panel2: #252320;
  --line: #322f2a;
  --line2: #45413a;
  --ink: #efe9dd;
  --ink2: #c9c2b4;
  --muted: #8f897d;
  --accent: #f5d90a;
  --accent-ink: #191510;
  --accent-line: #f5d90a;
  --up: #5cc47a;
  --down: #ef6a55;
  --btc: #f7931a;
  --eth: #b08cf0;
  --xrp: #ec6f8e;
  --fx: #d7b45e;
  --usd: #74c27c;
  --cash: #9a948a;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .25);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f2e8;
  --bg2: #efe9dc;
  --panel: #fffdf7;
  --panel2: #f4efe3;
  --line: #e2dacb;
  --line2: #cfc5b2;
  --ink: #1d1a15;
  --ink2: #3d382f;
  --muted: #776f62;
  --accent: #f2d20a;
  --accent-line: #a68b00;
  --up: #23914a;
  --down: #c8412c;
  --btc: #e07f06;
  --eth: #7b52cf;
  --xrp: #cf3f66;
  --fx: #a7852b;
  --usd: #3a8f45;
  --cash: #8a8378;
  --shadow: 0 1px 2px rgba(60, 45, 20, .06), 0 8px 24px rgba(60, 45, 20, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
.num, td, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1280px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand span {
  font-weight: 700; font-size: 13px; background: var(--accent); color: var(--accent-ink);
  padding: 1px 7px; border-radius: 4px; transform: rotate(-2deg); display: inline-block;
}
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; color: var(--muted); padding: 7px 11px; border-radius: 8px;
  font-size: 14px; font-weight: 550; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a.on { color: var(--ink); background: var(--panel2); }
.tools { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button {
  border: 0; background: none; padding: 4px 10px; border-radius: 7px; cursor: pointer;
  font-size: 13px; font-weight: 650; color: var(--muted);
}
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg button:not(.on):hover { color: var(--ink); }
.icon-btn {
  border: 1px solid var(--line); background: var(--panel); border-radius: 9px; width: 34px; height: 32px;
  cursor: pointer; display: grid; place-items: center; color: var(--muted);
}
.icon-btn:hover { color: var(--ink); }

/* ticker tape */
.tape { border-bottom: 1px solid var(--line); background: var(--bg2); font-size: 13px; }
.tape-in {
  max-width: 1280px; margin: 0 auto; padding: 6px 20px; display: flex; gap: 22px; overflow-x: auto;
  scrollbar-width: none; white-space: nowrap; color: var(--muted);
}
.tape-in b { color: var(--ink); font-weight: 600; }
.tape .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- layout ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 8px 20px 60px; }
section { padding-top: 34px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: 26px; font-weight: 780; }
h3 { font-size: 17px; font-weight: 700; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.lead { color: var(--ink2); max-width: 760px; margin: 8px 0 0; }
.mark { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 55%, transparent) 55%); padding: 0 2px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1050px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding: 8px 14px; }
  .nav { order: 3; flex-basis: 100%; }
  main { padding: 4px 14px 50px; }
  html { scroll-padding-top: 108px; }
}

/* hero */
.hero { padding-top: 26px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: end; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.brief { font-size: 16px; color: var(--ink2); margin-top: 10px; }
.brief b { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink2);
}
.pill b { color: var(--ink); }

/* asset cards */
.asset { position: relative; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; }
.asset:hover { border-color: var(--line2); transform: translateY(-1px); }
.asset .hd { display: flex; align-items: center; gap: 10px; }
.coin {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; flex: none;
}
.coin.btc { background: var(--btc); } .coin.eth { background: var(--eth); } .coin.xrp { background: var(--xrp); } .coin.fx { background: var(--fx); color: #1d1a15; }
.asset .nm { font-weight: 700; } .asset .sy { color: var(--muted); font-size: 13px; }
.asset .px { font-size: 27px; font-weight: 750; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.asset .ch { display: flex; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.asset .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.asset { padding-bottom: 0; }
.asset canvas { display: block; width: calc(100% + 36px); margin: 8px -18px 0; height: 46px; opacity: .9; pointer-events: none; }

/* market strip */
.strip { margin-top: 14px; }
.stat .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.stat .val { font-size: 22px; font-weight: 750; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; color: var(--muted); }
.gauge { display: flex; align-items: center; gap: 12px; }
.gauge svg { flex: none; }
.bar { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* controls */
.ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: var(--panel); padding: 6px 12px; border-radius: 9px;
  cursor: pointer; font-weight: 650; font-size: 14px; color: var(--ink2); display: inline-flex; gap: 7px; align-items: center;
}
.tab:hover { border-color: var(--line2); color: var(--ink); }
.tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink2); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); width: 15px; height: 15px; }
.spacer { flex: 1; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field select, select.inp {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
  color: var(--ink); font-size: 15px; font-weight: 500; min-width: 0;
}
.field input:focus, .field select:focus, select.inp:focus, .tab:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
input[type=range] { accent-color: var(--accent); width: 100%; }

/* chart */
.chart { position: relative; width: 100%; height: 430px; user-select: none; }
.chart.sm { height: 320px; }
.chart.xs { height: 260px; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .ov { cursor: crosshair; }
@media (max-width: 680px) { .chart { height: 330px; } .chart.sm { height: 270px; } }
.tip {
  position: absolute; pointer-events: none; z-index: 5; background: var(--panel2); border: 1px solid var(--line2);
  border-radius: 10px; padding: 8px 10px; font-size: 13px; min-width: 150px; max-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); display: none; font-variant-numeric: tabular-nums;
}
.tip .d { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.tip .r span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); }
.tip .ev { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.tip .ev small { display: block; color: var(--muted); font-weight: 500; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.chart-foot b { color: var(--ink); font-weight: 650; }
.hint { font-size: 12px; color: var(--muted); }

/* tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--panel2) 60%, transparent); }
.heat { border-radius: 6px; padding: 2px 6px; }
td .an { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }

/* halving */
.count { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.count div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 70px; text-align: center; }
.count b { display: block; font-size: 28px; font-weight: 780; font-variant-numeric: tabular-nums; line-height: 1.1; }
.count span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* forecast */
.range-viz { position: relative; height: 54px; margin: 18px 4px 6px; }
.range-viz .track { position: absolute; left: 0; right: 0; top: 22px; height: 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.range-viz .zone { position: absolute; top: 22px; height: 10px; border-radius: 99px; }
.range-viz .pin { position: absolute; top: 14px; width: 2px; height: 26px; background: var(--ink); }
.range-viz .pin span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; color: var(--ink2); font-weight: 600; }
.range-viz .pin.now { background: var(--muted); }
.range-viz .pin.now span { top: 28px; color: var(--muted); }
.scen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scen > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel2); }
.scen .t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.scen .v { font-size: 24px; font-weight: 780; font-variant-numeric: tabular-nums; }
.scen .bear .t { color: var(--down); } .scen .bull .t { color: var(--up); } .scen .base .t { color: var(--accent); }
:root[data-theme="light"] .scen .base .t { color: #8a7600; }
@media (max-width: 520px) { .scen { grid-template-columns: 1fr; } }
.method { border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; }
.method:first-child { border-top: 0; }
.method p { margin: 0; color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.method .rng { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }

/* events */
.feature {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background:
  linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--panel)), var(--panel) 60%);
}
.feature .tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 750; font-size: 12px; padding: 2px 8px; border-radius: 5px; letter-spacing: .04em; text-transform: uppercase; }
.feature h3 { font-size: 22px; margin: 10px 0 6px; }
.feature p { color: var(--ink2); margin: 6px 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.facts div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink2); }
.facts b { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 11px; font-size: 13px;
  cursor: pointer; color: var(--ink2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center;
}
.chip.on { background: var(--panel2); border-color: var(--ink2); color: var(--ink); }
.chip .sw { width: 8px; height: 8px; }
.search { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; min-width: 200px; }
.timeline { margin-top: 18px; position: relative; }
.yr { font-weight: 800; font-size: 20px; margin: 22px 0 10px; color: var(--muted); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.yr::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ev {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 8px; border-left: 4px solid var(--cat);
}
.ev .dt { font-size: 13px; color: var(--muted); font-weight: 650; padding-top: 2px; }
.ev .cat { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--cat); }
.ev h4 { margin: 2px 0 4px; font-size: 16px; letter-spacing: -.01em; }
.ev p { margin: 0; color: var(--ink2); font-size: 14px; }
.ev .rx { display: grid; grid-template-columns: repeat(4, auto); gap: 2px 12px; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.ev .rx span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ev .go { margin-top: 8px; font-size: 13px; background: none; border: 0; padding: 0; color: var(--ink2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.ev.future { border-style: dashed; border-left-style: solid; }
@media (max-width: 760px) {
  .ev { grid-template-columns: 1fr; gap: 6px; }
  .ev .rx { justify-content: start; text-align: left; }
}

/* calculator */
.calc-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
@media (max-width: 760px) { .calc-in { grid-template-columns: 1fr 1fr; } }
.res-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.conv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.conv div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.conv b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.conv span { font-size: 12px; color: var(--muted); font-weight: 650; }
@media (max-width: 600px) { .conv { grid-template-columns: 1fr 1fr; } }

/* knowledge */
details.faq { border-bottom: 1px solid var(--line); padding: 12px 2px; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--muted); font-weight: 500; font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink2); margin: 8px 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 40px; }
footer .in { max-width: 1280px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 13px; display: grid; gap: 10px; }
.warn {
  border: 1px dashed var(--line2); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted); margin-top: 14px;
}
.warn b { color: var(--ink2); }
.loading { color: var(--muted); padding: 30px; text-align: center; }
.tabs-sm .tab { padding: 4px 10px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 12px; cursor: pointer; font-size: 14px; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.grid > * { min-width: 0; }
.field input, .field select { width: 100%; }

/* ---------- multi-page ---------- */
html { scroll-behavior: auto; }
main > section:first-child { padding-top: 26px; }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line2); transform: translateY(-1px); }
.teaser { display: flex !important; flex-direction: column; gap: 6px; }
.teaser h3 { font-size: 19px; margin: 6px 0 0; }
.teaser p { margin: 0; color: var(--ink2); font-size: 14px; }
.teaser .more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sm-row { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sm-row span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sm-row .base { color: var(--accent-line); }
.sm-row b { font-size: 18px; }
.mini-ev { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.mini-ev li { display: grid; grid-template-columns: 10px 78px 1fr; gap: 6px; align-items: baseline; color: var(--ink); }
.mini-ev li .sw { transform: translateY(-1px); }
.mini-ev li span { color: var(--muted); font-size: 12px; }
.tile b { display: block; font-size: 16px; }
.tile span { color: var(--muted); font-size: 13px; }
