/* Local preview: BTC 200W three-zone card. Not published. */
:root {
  --bg: #0c0f14;
  --card: #12161c;
  --ink: #f2f1ec;
  --muted: #8a919c;
  --ax: #b0b6bf;
  --line: #2c333d;
  --btn: #1c222b;
  --blue: #0f62fe;
  --paddle: #0f62fe;
  --ride: #00bcd4;
  --kick: #ff9800;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nowrap { white-space: nowrap; }

/* Header */
.site-header {
  background: #0e1218;
}
.header-inner {
  max-width: 1248px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.logo {
  color: var(--ink);
  text-decoration: none;
  font-weight: 720;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 4px 0 0;
}
.logo:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tagline {
  margin: 4px 0 0;
  max-width: 42em;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  color: #c3cad3;
  letter-spacing: -0.01em;
}
.coins {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem 0.4rem;
  margin-left: auto;
  font: 650 13px/1 var(--font);
  letter-spacing: 0.05em;
}
.coins a {
  color: #8a919c;
  text-decoration: none;
  padding: 6px 2px;
}
.coins a:hover { color: #d7dbe2; }
.coins a.is-current {
  color: var(--ink);
  font-weight: 750;
}
.coins a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.coins .sep {
  color: #3c4450;
  font-weight: 400;
  pointer-events: none;
  user-select: none;
}
/* Soft wave behind the hero only — not behind the charts. */
.page {
  max-width: 1248px;
  margin: 0 auto;
  padding: 8px 16px 20px;
}

/* Intro / hero */
.intro {
  position: relative;
  margin: 0 0 32px;
  padding: 28px 0 52px;
  overflow: hidden;
}
/* Single thin wave line in the bottom padding, below the copy — no fill. */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 36px;
  z-index: 0;
  pointer-events: none;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.intro .topline,
.intro .lede,
.intro .note {
  position: relative;
  z-index: 1;
}
.topline {
  margin: 0 0 16px;
  max-width: 24em;
  font-weight: 780;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: pretty;
}
.topline .n { color: var(--blue); }
.topline .n-above { color: #c9ced6; }
.topline .zone,
.z-paddle, .z-ride, .z-kick { font-weight: 780; }
.z-paddle { color: var(--paddle); }
.z-ride { color: var(--ride); }
.z-kick { color: var(--kick); }
.lede {
  margin: 0 0 12px;
  max-width: 38rem;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ax);
  text-wrap: pretty;
}
.note {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* Cards */
.card { margin: 0 0 36px; }
.card.is-short .toolbar { display: none; }
.card.is-short .stage {
  min-height: 140px;
  display: flex;
  align-items: center;
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card.is-short canvas { display: none; }
.card.is-short .short-msg {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 12px;
}
.toolbar .toggle { justify-self: start; }
.toolbar .toggle-tf { justify-self: center; }
.toolbar .share { justify-self: end; }
.toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.toggle button {
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ax);
  font: 600 14px/1.2 var(--font);
  padding: 9px 16px;
  min-height: 40px;
  min-width: 96px;
  cursor: pointer;
  white-space: nowrap;
}
.toggle button + button { border-left: 1px solid var(--line); }
.toggle button[aria-checked="true"] {
  background: var(--btn);
  color: var(--ink);
}
.toggle button:focus-visible,
.share:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  z-index: 1;
}
.share {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 600 14px/1.2 var(--font);
  padding: 9px 16px;
  min-height: 40px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.share:hover, .toggle button:hover { background: #1a2028; }
.share:disabled { opacity: 0.55; cursor: default; }
.stage {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
}
.stage canvas {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
/* Single full-width 'How it works' block — not a 3-col leftover. */
.info {
  margin: 8px 0 0;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
}
.info-howto {
  max-width: 72rem;
}
.info h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.info-howto p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ax);
  text-wrap: pretty;
}
.info-howto p:last-child { margin-bottom: 0; }
/* Links row (tip + Kraken + TradingView) above the footer */
.links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  max-width: 1248px;
  margin: 8px auto 0;
  padding: 16px 16px 4px;
}
.links-pair {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 13px/1.2 var(--font);
  color: var(--ink);
  background: var(--card);
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover {
  border-color: #3a4554;
  color: var(--ink);
}
.pill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  max-width: 1248px;
  margin: 0 auto;
  padding: 12px 16px 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.site-footer p { margin: 0 0 2px; }
.site-footer .handle {
  color: inherit;
  text-decoration: none;
}
.site-footer .handle:hover {
  color: var(--blue);
  text-decoration: underline;
}
.site-footer .handle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Share-only render: just the 1200×675 card canvas */
body.share-only { background: #12161c; }
body.share-only .site-header,
body.share-only .wave,
body.share-only .hero-wave,
body.share-only .intro,
body.share-only .howto,
body.share-only .info,
body.share-only .links-row,
body.share-only .site-footer { display: none; }
body.share-only .page { max-width: none; padding: 0; }
body.share-only .card { display: none; margin: 0; }
body.share-only .card.share-target { display: block; }
body.share-only .share-target .toolbar { display: none; }
body.share-only .share-target .stage { border-radius: 0; }

@media (max-width: 720px) {
  .topline { font-size: 32px; max-width: none; }
  .lede { font-size: 17px; }
  .intro { margin-bottom: 24px; padding: 22px 0 44px; }
  .info { padding-top: 20px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 10px 12px; }
  .logo { font-size: 22px; }
  .tagline { font-size: 16px; }
  .page { padding: 8px 12px 28px; }
  .topline { font-size: 30px; }
  .lede { font-size: 16px; }
  .card { margin-bottom: 28px; }
  .toolbar {
    margin-bottom: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 6px;
  }
  .toggle button, .share {
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
  }
  /* If the row is too tight, wrap the timeframe under the others, still centred. */
  @media (max-width: 360px) {
    /* Two tidy rows: view toggle and Share on top, timeframe below, all left-aligned. */
    .toolbar { grid-template-columns: 1fr auto; }
    .toolbar .toggle { grid-row: 1; grid-column: 1; }
    .toolbar .share { grid-row: 1; grid-column: 2; }
    .toolbar .toggle-tf {
      grid-row: 2;
      grid-column: 1 / -1;
      justify-self: start;
    }
  }
  .info-howto p { font-size: 14px; }
  .note { font-size: 12px; }
  .links-row { padding: 12px 12px 2px; }
  .site-footer { padding: 8px 12px 22px; }
}

.links-pair { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.links-row { flex-direction: column; }
.info .disclaimer { margin-top: 22px; color: var(--muted); font-size: 12px; }

/* Wave lines: under the subtitle and above the links */
.wave-line { max-width: 1248px; margin: 0 auto; padding: 0 16px; height: 44px; pointer-events: none; }
.wave-line svg { display: block; width: 100%; height: 100%; overflow: visible; }
.intro { padding: 16px 0 28px; border-bottom: 1px solid var(--line); overflow: visible; }
main.page + .wave-line { margin-top: 8px; }
body.share-only .wave-line { display: none; }

/* Readable How it works block + centered footer */
.info-howto { max-width: 46rem; }
.info-howto p { font-size: 16px; }
.info .disclaimer { font-size: 12px; line-height: 1.6; }
.site-footer { text-align: center; }
@media (max-width: 720px) { .info-howto p { font-size: 15px; } .info .disclaimer { font-size: 12px; } }
.site-footer { padding-top: 28px; }

.zone-row{display:flex;gap:40px;margin:4px 0 18px}
.zone-item{display:flex;flex-direction:column;gap:2px}
.zone-item>span:first-child{font-size:16px;letter-spacing:.02em}
.zone-item .zr{font-size:15px;color:var(--text,#c9ced6);white-space:nowrap}
@media (max-width:720px){.zone-row{gap:22px}.zone-item>span:first-child{font-size:15px}.zone-item .zr{font-size:13px}}
.zone-item{align-items:center;text-align:center}
.zone-item .zr{font-weight:600}
.zone-row{gap:64px}
@media (max-width:720px){.zone-row{gap:30px}}
@media (max-width: 360px) {
  .zone-row { gap: 0; justify-content: space-between; }
  .zone-item span:first-child { font-size: 13px; }
  .zone-item .zr { font-size: 11.5px; }
}
@media (max-width: 400px) {
  .zone-row { gap: 0; justify-content: space-between; }
}
@media (max-width: 360px) {
  .tagline { font-size: 14.5px; }
}

/* How it works: three sections */
.info h2.sub{margin-top:26px}
.info-howto p.zl{margin-bottom:6px}
.info-howto p.zl + h2.sub{margin-top:28px}
.info-howto p.zl:last-of-type{margin-bottom:0}
.z-paddle,.z-ride,.z-kick{white-space:nowrap}
