/* Trekt Risk Desk: the main page */
html, body { background-color: #070b14; }
.rh { --ink: #070b14; --ink-2: #0e1422; --line: rgba(226, 232, 240, 0.12); --text: #f1f4f8; --muted: #9aa6b8;
      --calm: #3dd6a8; --mid: #f5b84b; --wild: #ff6b5e; --go: #22c55e;
      background: var(--ink); color: var(--text); font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.rh h1, .rh h2 { font-family: Sora, Inter, sans-serif; font-weight: 600; letter-spacing: -0.03em; }
.rh a:focus-visible, .rh button:focus-visible, .rh input:focus-visible { outline: 2px solid var(--calm); outline-offset: 2px; }

/* hero: the words sit in the sky, the sea of light below */
.rh-hero { position: relative; min-height: calc(100svh - 56px); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; text-align: center;
           background: linear-gradient(180deg, #05070f 0%, #0a1226 52%, #0d1a38 72%, var(--ink) 100%); }
#rh-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.rh-copy { position: relative; z-index: 2; width: 100%; max-width: 980px; padding: clamp(96px, 16vh, 150px) 24px 40px; pointer-events: none; }
.rh-logo { position: absolute; z-index: -1; left: 50%; top: calc(50% + 50px); width: 1100px; max-width: none; height: auto; transform: translate(-50%, -50%); opacity: 0.34; pointer-events: none; user-select: none; }
.rh-copy > * { pointer-events: auto; }
.rh-copy h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.1; text-wrap: balance; }
.rh-copy p { color: #c8d1de; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.6; max-width: 38em; margin: 1.2rem auto 0; }
.rh-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.rh-copy .rh-actions { justify-content: center; }
.rh-btn { display: inline-block; padding: 0.85rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
          color: var(--text); background: rgba(14, 20, 34, 0.7); border: 1px solid rgba(226, 232, 240, 0.28); transition: border-color 0.15s, background 0.15s; }
.rh-btn:hover { border-color: var(--text); }
.rh-btn.go { background: var(--go); border-color: var(--go); color: #03130a; }
.rh-btn.go:hover { background: #4ade80; border-color: #4ade80; }

/* floating coin cards */
.rh-float { position: absolute; z-index: 2; left: 50%; bottom: 44px; transform: translateX(-50%); display: flex; gap: 16px; width: min(860px, calc(100% - 32px)); }
.rh-card { flex: 1 1 0; min-width: 0; padding: 14px 16px; border-radius: 14px; background: rgba(13, 20, 38, 0.68); border: 1px solid rgba(160, 196, 255, 0.2);
           backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(0, 4, 18, 0.45); animation: rh-bob 7s ease-in-out infinite; font-variant-numeric: tabular-nums; }
.rh-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rh-card .top b { font-size: 1.05rem; }
.rh-card .top span { font-size: 0.95rem; color: #dbe3ee; }
.rh-card .rh-meter { margin-top: 0.65rem; }
.rh-card .ends { display: flex; justify-content: space-between; gap: 8px; margin-top: 0.45rem; font-size: 0.76rem; color: var(--muted); }
@keyframes rh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* moving price strip */
.rh-ticker { overflow: hidden; background: #0a1020; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rh-tape { display: flex; width: max-content; animation: rh-tape 90s linear infinite; }
.rh-tape > div { display: flex; flex: none; }
.rh-ticker:hover .rh-tape { animation-play-state: paused; }
.rh-tick { padding: 0.8rem 1.3rem; white-space: nowrap; font-size: 0.9rem; color: #c8d1de; font-variant-numeric: tabular-nums; }
.rh-tick b { color: var(--text); margin-right: 0.25rem; }
.rh-tick em { font-style: normal; margin-left: 0.25rem; font-size: 0.82rem; }
.rh-tick em.up { color: var(--calm); }
.rh-tick em.down { color: var(--wild); }
@keyframes rh-tape { to { transform: translateX(-50%); } }

/* the market right now */
.rh-pulse { background: linear-gradient(180deg, var(--ink) 0%, #0c1529 100%); }
.rh-pulse-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.5fr); gap: 3.5rem; margin-top: 2.4rem; align-items: start; }
.rh-gauge { display: block; width: 100%; max-width: 380px; margin: 0 auto; }
.rh-score { font-family: Sora, Inter, sans-serif; font-weight: 600; font-size: 46px; fill: var(--text); }
.rh-score-sub { font-size: 12px; fill: var(--muted); }
.rh-gauge-word { text-align: center; font-size: 1.05rem; margin-top: 0.6rem; color: #c8d1de; }
.rh-facts { display: grid; gap: 0.75rem; margin-top: 1.6rem; }
.rh-facts div { display: flex; gap: 0.8rem; align-items: baseline; }
.rh-facts b { min-width: 72px; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rh-facts span { color: var(--muted); font-size: 0.92rem; }
.rh-days-box h3 { font-size: 1.25rem; font-weight: 600; }
.rh-days { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 220px; margin-top: 1.4rem; border-bottom: 1px solid var(--line); }
.rh-days i { flex: 1 1 0; min-width: 0; border-radius: 3px 3px 0 0; transition: filter 0.15s; }
.rh-days i:hover, .rh-days i:focus { filter: brightness(1.35); outline: none; }
.rh-days u { position: absolute; left: 0; right: 0; bottom: 80%; border-top: 1px dashed rgba(226, 232, 240, 0.45); pointer-events: none; }
.rh-days-axis { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.8rem; margin-top: 0.5rem; }

/* sections */
.rh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.rh-section { padding: 88px 0; }
.rh-section h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; }
.rh-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 44em; margin-top: 0.8rem; }

/* my coins: the largest section on the page */
.rh-mine { background: var(--ink-2); min-height: 92svh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rh-mine h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.rh-add { display: flex; gap: 0.7rem; margin-top: 2rem; flex-wrap: wrap; }
.rh-add input { flex: 1 1 280px; max-width: 460px; padding: 1rem 1.1rem; font-size: 1.1rem; border-radius: 10px; border: 1px solid rgba(226, 232, 240, 0.28); background: var(--ink); color: var(--text); }
.rh-add input::placeholder { color: var(--muted); }
.rh-msg { min-height: 1.5em; color: var(--mid); font-size: 0.9rem; margin-top: 0.55rem; }
.rh-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; align-items: center; }
.rh-quick span { color: var(--muted); font-size: 0.9rem; margin-right: 0.3rem; }
.rh-quick button { padding: 0.42rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 0.88rem; }
.rh-quick button:hover { border-color: var(--calm); color: var(--calm); }
.rh-empty { margin-top: 2.2rem; padding: 3rem 1.5rem; text-align: center; border: 1px dashed rgba(226, 232, 240, 0.25); border-radius: 14px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

/* coin rows, shared by my coins and today's ranges */
.rh-rows { margin-top: 2rem; }
.rh-row { display: grid; grid-template-columns: 34px minmax(90px, 0.8fr) 92px minmax(210px, 1.7fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(96px, 0.7fr); gap: 0.9rem; align-items: center;
          padding: 1rem 0.2rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.rh-row.head { color: var(--muted); font-size: 0.8rem; padding: 0.5rem 0.2rem; }
.rh-group { color: var(--muted); font-size: 0.95rem; font-weight: 600; padding: 1.6rem 0.2rem 0.5rem; border-bottom: 1px solid var(--line); }
.rh-coin { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.rh-coin:hover { color: var(--calm); }
.rh-flag { display: inline-block; margin-left: 0.4rem; padding: 1px 6px; border-radius: 4px; font-size: 0.64rem; font-weight: 700; background: rgba(255, 107, 94, 0.18); color: #ffb4ad; vertical-align: 2px; }
.rh-star { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: rgba(226, 232, 240, 0.32); padding: 0.2rem; line-height: 1; }
.rh-star.on { color: var(--mid); }
.rh-star:hover { color: var(--mid); }
.rh-time { color: #c8d1de; line-height: 1.35; font-size: 0.88rem; }
.rh-time small { display: none; color: var(--muted); font-size: 0.75rem; }
.rh-move { font-weight: 600; }
.rh-range .nums { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.88rem; color: #c8d1de; }
.rh-meter { position: relative; height: 8px; margin-top: 0.4rem; border-radius: 4px; background: rgba(61, 214, 168, 0.22); }
.rh-meter i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.rh-meter.out { background: rgba(255, 107, 94, 0.25); }
.rh-meter.out i { background: var(--wild); }
.rh-state { font-size: 0.78rem; margin-top: 0.3rem; color: var(--muted); }
.rh-held { color: var(--calm); font-weight: 600; }
.rh-broke { color: var(--wild); font-weight: 600; }
.rh-note { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin-top: 1.2rem; max-width: 50em; }

/* what could tomorrow look like */
.rh-swing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.rh-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1.6rem; max-width: 480px; }
.rh-calc label { display: grid; gap: 0.4rem; color: var(--muted); font-size: 0.88rem; }
.rh-calc input { width: 100%; padding: 0.9rem 1rem; font-size: 1.1rem; border-radius: 10px; border: 1px solid rgba(226, 232, 240, 0.28); background: var(--ink-2); color: var(--text); text-transform: uppercase; }
.rh-result-box { padding: 2rem; border-radius: 18px; background: radial-gradient(120% 130% at 85% 0%, #1b2c4f 0%, var(--ink-2) 70%); border: 1px solid rgba(160, 196, 255, 0.2); }
.rh-calc-top { color: #c8d1de; font-size: 1.05rem; }
.rh-calc-big { font-family: Sora, Inter, sans-serif; font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.rh-calc-big span { color: var(--muted); font-size: 0.55em; font-weight: 400; margin: 0 0.15em; }
.rh-swingbar { position: relative; height: 10px; margin-top: 1.3rem; border-radius: 5px; background: linear-gradient(90deg, var(--wild), var(--mid) 50%, var(--calm)); }
.rh-swingbar i { position: absolute; left: 50%; top: -5px; width: 4px; height: 20px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.rh-swing-ends { display: flex; justify-content: space-between; margin-top: 0.5rem; font-variant-numeric: tabular-nums; }

/* every coin at a glance */
.rh-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 5px; margin-top: 2rem; }
.rh-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; padding: 0.55rem 0.6rem; border: 2px solid transparent; border-radius: 7px; cursor: pointer; color: #06101f; text-align: left; transition: transform 0.12s; }
.rh-tile b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; font-weight: 700; }
.rh-tile span { font-size: 0.72rem; font-variant-numeric: tabular-nums; opacity: 0.85; }
.rh-tile:hover { transform: scale(1.07); }
.rh-tile.on { border-color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.rh-legend { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.rh-legend i { flex: 0 1 220px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--calm), var(--mid), var(--wild)); }

/* telegram */
.rh-tg { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rh-tg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.2rem; position: relative; }
.rh-tg-grid div { border-top: 2px solid var(--calm); padding-top: 0.9rem; }
.rh-tg-grid time { font-family: Sora, Inter, sans-serif; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rh-tg-grid h3 { font-size: 1rem; font-weight: 600; margin-top: 0.4rem; }
.rh-tg-grid p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin-top: 0.25rem; }

/* how to read */
.rh-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2rem; }
.rh-read h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.45rem; }
.rh-read p { color: var(--muted); line-height: 1.55; }
.rh-fine { padding: 0 0 56px; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 960px) {
  .rh-swing-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rh-tg-grid { grid-template-columns: 1fr 1fr; }
  .rh-pulse-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .rh-row.head { display: none; }
  .rh-row { grid-template-columns: 30px 1fr auto; gap: 0.5rem 0.7rem; padding: 1.1rem 0; }
  .rh-range { grid-column: 1 / -1; }
  .rh-move { text-align: right; }
  .rh-time { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; }
  .rh-time small { display: inline; font-size: 0.82rem; }
  .rh-result { grid-column: 1 / -1; }
  .rh-read { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .rh-wrap { padding: 0 16px; }
  .rh-copy { padding: 92px 16px 40px; }
  .rh-section { padding: 60px 0; }
  .rh-float { gap: 8px; bottom: 20px; }
  .rh-result-box { padding: 1.3rem; }
  .rh-map { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 4px; }
  .rh-tile { padding: 0.45rem; }
  .rh-tile b { font-size: 0.72rem; }
  .rh-tile span { font-size: 0.66rem; }
  .rh-card { padding: 10px; border-radius: 10px; }
  .rh-card .top { flex-direction: column; gap: 0; }
  .rh-card .top span { font-size: 0.8rem; }
  .rh-card .ends { display: none; }
  .rh-days { height: 170px; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-btn, .rh-days i, .rh-tile { transition: none; }
  .rh-tile:hover { transform: none; }
  .rh-card, .rh-tape { animation: none; }
  .rh-ticker { overflow-x: auto; }
}
@media (max-width: 700px) { .rh-logo { top: 50%; width: 420px; } }
