/* Cycle Dashboard — Observatory palette, single clean page. */

:root {
  --ink: #0b0e15;
  --panel: rgba(20, 25, 38, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e6e9f2;
  --dim: #98a0b3;
  --orange: #f7931a;
  --orange-hot: #ffb14d;
  --teal: #14b8a6;
  --green: #4caf50;
  --amber: #f59e0b;
  --red: #ef5350;
  --sky: #38bdf8;
  --disp: "Unbounded", sans-serif;
  --body: "Sora", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(50% 35% at 85% 0%, rgba(247,147,26,.10), transparent 65%),
    radial-gradient(45% 35% at 8% 100%, rgba(20,184,166,.08), transparent 65%),
    var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}
b { font-weight: 600; }
a { color: inherit; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-coin {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; color: #1a1205;
  background: radial-gradient(circle at 32% 28%, #ffd27a, var(--orange) 62%, #c46f08);
  box-shadow: 0 0 18px rgba(247,147,26,.5);
}
.brand-word { font-family: var(--disp); font-weight: 300; font-size: 13px; letter-spacing: .14em; }
.brand-word b { color: var(--orange); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  background: rgba(11,14,21,.6);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #26a69a; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.nav-cta {
  text-decoration: none; font-size: 13.5px; color: var(--text);
  border: 1px solid rgba(247,147,26,.55); border-radius: 999px; padding: 8px 16px;
  transition: background .2s;
}
.nav-cta:hover { background: rgba(247,147,26,.14); }

.head { text-align: center; padding: clamp(16px, 3vh, 40px) 20px 8px; }
.head h1 { font-family: var(--disp); font-weight: 900; font-size: clamp(30px, 4.6vw, 52px); }
.accent {
  background: linear-gradient(100deg, var(--orange-hot), var(--orange) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.head p { color: var(--dim); margin-top: 10px; font-size: 15px; }

.dash { max-width: 1180px; margin: 0 auto; padding: 24px clamp(14px, 3vw, 32px) 60px; }
.dash.hide { display: none; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 34px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-c, var(--orange)), transparent); opacity: .65;
}
.card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--dim); }
.card .v { font-family: var(--disp); font-weight: 700; font-size: clamp(20px, 2.2vw, 27px); margin: 8px 0 4px; }
.card .s { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.c-teal { color: var(--teal); } .c-green { color: var(--green); }
.c-amber { color: var(--amber); } .c-red { color: var(--red); }
.c-orange { color: var(--orange-hot); } .c-sky { color: var(--sky); }

/* blocks */
.block { margin-bottom: 38px; }
.block-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.block-head h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(18px, 2.4vw, 26px); }
.block-sub { color: var(--dim); font-size: 13.5px; }
.verdict {
  font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  color: var(--teal); border: 1px solid rgba(20,184,166,.4); border-radius: 999px;
  padding: 6px 14px; background: rgba(20,184,166,.08);
}

/* matrix */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.matrix { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13.5px; }
.matrix th, .matrix td { padding: 11px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); }
.matrix th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim);
  font-weight: 600; background: rgba(255,255,255,.03);
}
.matrix tr:last-child td { border-bottom: 0; }
.matrix .fam { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.matrix .method { font-weight: 600; }
.matrix .mono { font-family: var(--mono); font-size: 12.5px; }
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  border-radius: 8px; padding: 3px 10px;
}
.badge.yes { color: var(--teal); background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.4); }
.badge.near { color: var(--amber); background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.4); }
.badge.lead { color: var(--sky); background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.4); }
.badge.watch { color: var(--dim); background: rgba(255,255,255,.05); border: 1px solid var(--line); }

/* timeline */
.timeline {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 84px 26px 140px; overflow: hidden;
}
.tl-track { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); }
.tl-zone { position: absolute; top: -5px; height: 16px; border-radius: 6px; opacity: .85; }
.tl-zone.teal { background: rgba(20,184,166,.4); border: 1px solid rgba(20,184,166,.8); }
.tl-zone.amber { background: rgba(245,158,11,.35); border: 1px solid rgba(245,158,11,.8); }
.tl-mark { position: absolute; top: -7px; width: 2px; height: 20px; }
.tl-mark.now { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); }
.tl-mark.orange { background: var(--orange); }
.tl-mark.green { background: var(--green); }
.tl-mark.red { background: var(--red); }
.tl-label {
  position: absolute; transform: translateX(-50%); text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--dim); line-height: 1.45; white-space: nowrap;
}
.tl-label b { display: block; color: var(--text); font-size: 11.5px; }
.tl-label.above { bottom: calc(50% + 30px); }
.tl-label.below { top: calc(50% + 30px); }
.tl-label.below2 { top: calc(50% + 78px); }
.tl-label.below2::before {
  content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 12px;
  background: rgba(255,255,255,.25);
}
.tl-label .sub2 { color: var(--dim); }

/* split row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } }
.panel-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.panel-card h3 { font-family: var(--disp); font-weight: 500; font-size: 17px; margin-bottom: 12px; }
.panel-card p, .panel-card li { color: var(--dim); font-size: 14px; }
.panel-card ul { list-style: none; margin-top: 6px; }
.panel-card li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; justify-content: space-between; gap: 12px; }
.panel-card li:last-child { border-bottom: 0; }
.panel-card li .mono { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.honesty { background: linear-gradient(140deg, rgba(20,184,166,.08), rgba(16,20,31,.9) 50%, rgba(247,147,26,.07)); }
.btn-primary {
  display: inline-block; margin-top: 16px; text-decoration: none;
  font-family: var(--disp); font-weight: 500; font-size: 14px; color: #17110a;
  background: linear-gradient(120deg, #ffc267, var(--orange) 55%, #e07f06);
  padding: 12px 22px; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(247,147,26,.35);
  transition: transform .15s;
}
.btn-primary:hover { transform: translateY(-2px); }

.loading {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 80px 20px; color: var(--dim); font-size: 14px;
}
.loading.hide { display: none; }
.spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1); border-top-color: var(--orange);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer { text-align: center; color: rgba(152,160,179,.7); font-size: 12px; padding: 30px 20px 44px; line-height: 1.8; }

/* NUPL x Puell gauge table */
.matrix tr.now-row td { background: rgba(247, 147, 26, 0.08); font-weight: 600; }

/* ---------- mobile ---------- */
/* The timeline's %-positioned labels need real width: keep the desktop
   layout inside a sideways-swipeable strip instead of colliding. */
.timeline-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timeline { min-width: 640px; }

@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .nav { padding: 10px 12px; gap: 8px; }
  .nav-right { gap: 8px; }
  .brand-word { font-size: 11.5px; letter-spacing: .1em; }
  .live-pill { font-size: 11px; padding: 4px 8px; }
}
@media (max-width: 480px) {
  /* The BTC/USD card right below shows the same live price. */
  .live-pill { display: none; }
  .nav-cta { font-size: 11.5px; padding: 6px 10px; white-space: nowrap; }
  .head { padding: 26px 14px 10px; }
  .block { padding: 14px 12px; }
  .block-head h2 { font-size: 19px; }
  .verdict { font-size: 11.5px; line-height: 1.5; }
  .matrix { font-size: 12px; }
  .matrix td, .matrix th { padding: 7px 8px; }
  .cards { gap: 10px; }
  .card .v { font-size: 22px; }
  .timeline-wrap::after {
    content: "swipe →";
    display: block; text-align: right;
    color: var(--dim); font-size: 10px; padding: 2px 6px 0 0;
  }
}
