/* ============================================================================
   walk.css  —  styles for the "long walk" chart pages (/pdai, /hex)
   ----------------------------------------------------------------------------
   Goes with walk.js. Loaded after site.css + styles.css. The single-coin
   layout is the original /pdai layout, unchanged; the .duo-* rules only kick
   in on two-coin pages (/hex).
   ========================================================================== */

.walk-page { padding: 0 20px 20px; }
/* One fixed-width column on every screen, so the price/multiplier and holding/next-flip pairs
   stay close together on a laptop instead of drifting to opposite edges. */
.walk-wrap { max-width: 720px; margin: 22px auto 0; }

.walk-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.walk-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.walk-price { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.walk-worth { color: var(--muted); font-size: 15px; }
.walk-worth b { color: var(--text); font-weight: 600; }

.walk-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 14px 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.seg button { background: none; border: 0; padding: 7px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--text); }
.seg button.active { color: var(--on-accent); background: var(--accent); font-weight: 600; }

.chart-box {
  position: relative; height: 520px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-2); overflow: hidden; touch-action: none;
}
#chart { position: absolute; inset: 0; }
#rungLabels { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.rl {
  position: absolute; left: 8px; top: 0; max-width: calc(100% - 110px);
  font-size: 11px; line-height: 14px; padding: 0 5px; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: rgba(245,245,250,0.62); background: rgba(17,17,31,0.78);
  transform: translateY(-100%); display: none;
}
.rl.near { color: var(--green); font-weight: 600; }
.chart-msg {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; padding: 20px;
}
.chart-msg button { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 7px 14px; color: var(--text); cursor: pointer; }
.chart-msg[hidden] { display: none; }
.loading-more { position: absolute; left: 10px; bottom: 34px; z-index: 4; font-size: 12px; color: var(--muted); background: rgba(17,17,31,0.85); padding: 3px 8px; border-radius: 6px; }
.loading-more[hidden] { display: none; }

.walk-top { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
.walk-x { text-align:right; flex: none; }
.walk-x .big { font-family:'Space Grotesk',sans-serif; font-size:34px; font-weight:700; color:var(--green); line-height:1; font-variant-numeric:tabular-nums; }
.walk-x .lbl { font-size:12px; color:var(--muted); margin-top:4px; white-space:nowrap; }

.flipstrip { margin:14px 0 4px; background:var(--bg-2); border:1px solid var(--line); border-radius:16px; padding:14px 16px; }
.fs-ends { display:flex; justify-content:space-between; gap:12px; }
.fs-end .k { font-size:11px; color:var(--muted); letter-spacing:.04em; }
.fs-end .n { font-size:14px; font-weight:600; margin-top:2px; }
.fs-end .p { font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.fs-end.next { text-align:right; }
.fs-end.next .n { color:var(--green); }
.fs-bar { position:relative; height:10px; border-radius:99px; background:var(--bg-3); border:1px solid var(--line); margin:12px 0 8px; overflow:hidden; }
.fs-fill { position:absolute; inset:0 auto 0 0; width:0; background:var(--grad); border-radius:99px; transition:width .4s ease; }
.fs-cap { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.fs-cap b { color:var(--text); font-weight:600; }

.walk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.walk-foot b { color: var(--text); }
.walk-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* Share buttons: same look as /bag. */
.share-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--grad); border: none; color: var(--on-accent); font-weight: 800; font-size: 14px; cursor: pointer;
  font-family: 'Inter', sans-serif; box-shadow: 0 8px 30px rgba(46,224,106,0.32);
  transition: transform .15s, box-shadow .2s;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(46,224,106,0.45); }
.share-btn:disabled { opacity: 0.5; pointer-events: none; }
.share-btn.ghost { background: rgba(255,255,255,0.06); box-shadow: none; border: 1px solid var(--line); color: var(--text); }
.share-btn.ghost:hover { background: rgba(255,255,255,0.12); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
/* The share card is the homepage flip card (wf-* / pump-* styles from styles.css),
   rendered off-screen at its normal 360px size and captured on "Copy as image". */
.shot-stage { position: absolute; left: -99999px; top: 0; width: 360px; }

.walk-cta-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 600px) {
  .chart-box { height: 420px; }
  .walk-price { font-size: 28px; }
  .walk-logo { width: 34px; height: 34px; }
  .walk-x .big { font-size: 28px; }
}

/* ===== two-coin pages (/hex) ============================================== */
/* Each coin gets a card in its own colour (--coin). Side by side on a laptop, stacked on a phone. */
.duo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo-card {
  background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--coin);
  border-radius: 16px; padding: 14px 16px 12px; min-width: 0;
}
.duo-card .walk-top { align-items: center; }
.duo-card .walk-price { font-size: 26px; line-height: 1.1; }
.duo-card .walk-x .big { font-size: 24px; color: var(--coin); }
.duo-card .walk-worth { font-size: 13px; margin-top: 8px; min-height: 18px; }
.duo-sym { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--coin); }
.duo-logo { position: relative; flex: none; display: inline-flex; }
.duo-logo .walk-logo { width: 36px; height: 36px; box-shadow: 0 0 0 2px var(--coin); }
.duo-badge {
  position: absolute; right: -4px; bottom: -3px; min-width: 17px; height: 17px; padding: 0 3px;
  border-radius: 99px; background: var(--coin); color: #0a0a14; border: 2px solid var(--bg-2);
  font: 800 10px/13px 'Inter', sans-serif; text-align: center;
}
/* A lighter flip strip that lives inside the coin card. */
.duo-card .flipstrip { margin: 10px 0 0; padding: 0; background: none; border: 0; border-radius: 0; }
.duo-card .fs-end .n { font-size: 13px; }
.duo-card .fs-end.next .n { color: var(--coin); }
.duo-card .fs-bar { height: 8px; margin: 10px 0 6px; }
.duo-card .fs-fill { background: var(--coin); }
.duo-gap { margin: 12px 0 2px; text-align: center; font-size: 14px; color: var(--muted); min-height: 20px; }
.duo-gap b { color: var(--text); font-weight: 700; }

/* coin toggle: the dots double as the chart legend */
.seg .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.seg button.active .dot { box-shadow: 0 0 0 1.5px rgba(10,10,20,0.6); }

/* two-coin share card: one row per coin */
.duo-hero { justify-content: center; gap: 14px; }
.duo-row { border-left: 3px solid var(--coin); padding-left: 12px; min-width: 0; }
.duo-row-k { font-size: 12px; font-weight: 700; color: var(--coin); font-variant-numeric: tabular-nums; }
.duo-row-lbl { font-size: 10px; font-weight: 800; letter-spacing: 0.22em; color: var(--accent); margin-top: 4px; }
.duo-row-lbl.wf-chase { color: var(--muted); }
.duo-row-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.15;
  color: var(--text); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 600px) {
  .duo-cards { grid-template-columns: 1fr; gap: 10px; }
  .duo-card .walk-price { font-size: 24px; }
}
