/* Rocket Scope tab (js/tab-scope.js). Repeating effects: none in CSS. One-shots:
   .rs-led.hot (450 ms light-up), .rs-row.fresh rsIn (1.2 s, at most one per 400 ms).
   Canvas motion is listed at the top of tab-scope.js. All off under reduced motion. */

.rs { max-width: 1800px; margin: 16px auto; }
.rs-head { margin-bottom: 12px; }
.rs-head .ph { flex: 1 1 auto; min-width: 0; }
.rs-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-ico { font-size: 1.05em; line-height: 1; }

.rs-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.rs-leds { display: flex; gap: 6px; flex-wrap: wrap; }
.rs-led {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 7px;
  border: 1px solid rgba(159, 179, 204, 0.22); border-radius: 7px; background: rgba(4, 10, 26, 0.7);
  font: 700 0.7rem/1 var(--mono); letter-spacing: 0.08em; color: var(--muted);
}
.rs-led i {
  width: 0.7em; height: 0.7em; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 25%, #050a1a); transition: background 0.5s, box-shadow 0.5s;
}
.rs-led b { color: var(--ink); font-weight: 600; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.rs-led.hot { border-color: var(--c); color: var(--ink); }
.rs-led.hot i { background: var(--c); box-shadow: 0 0 6px var(--c); transition: none; }
.rs-rate { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); }
.rs-rate-num { font-size: 1.8rem; font-weight: 800; color: var(--cyan); text-shadow: 0 0 12px rgba(77, 232, 255, 0.45); font-variant-numeric: tabular-nums; }
.rs-rate-lbl { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--muted); font-weight: 700; }

.rs-wrap { position: relative; border: 1px solid rgba(77, 232, 255, 0.2); border-radius: 10px; background: rgba(1, 3, 10, 0.88); overflow: hidden; }
.rs-canvas { display: block; width: 100%; height: 58vh; min-height: 340px; }
.rs-axis {
  display: flex; justify-content: space-between; padding: 4px 14px 6px 132px;
  font: 500 0.7rem/1 var(--mono); color: var(--dim); border-top: 1px solid rgba(77, 232, 255, 0.08);
}

.rs-log {
  margin-top: 12px; font: 0.8rem/1.5 var(--mono); border: 1px solid rgba(77, 232, 255, 0.15);
  border-radius: 10px; background: rgba(1, 3, 10, 0.75); padding: 6px 0; overflow: hidden;
}
.rs-row {
  display: grid; grid-template-columns: 6.5em 11em 5em minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 2px 14px; color: var(--muted); white-space: nowrap;
}
.rs-row > span { overflow: hidden; text-overflow: ellipsis; }
.rs-row .rs-k { font-weight: 800; letter-spacing: 0.06em; color: var(--c); }
.rs-row .rs-d { color: var(--ink); }
.rs-row.fresh { animation: rsIn 1.2s ease-out; }
@keyframes rsIn {
  0% { background: color-mix(in srgb, var(--c) 30%, transparent); transform: translateX(-12px); }
  25% { transform: none; }
  100% { background: transparent; }
}
.rs-empty { color: var(--dim); text-align: center; padding: 14px; }
.rs-legend { color: var(--muted); font-size: 0.8rem; line-height: 1.6; margin: 12px 0 0; max-width: 980px; }

@media (max-width: 640px) {
  .rs { margin: 10px; }
  .rs-canvas { height: 55vh; min-height: 300px; }
  .rs-row { grid-template-columns: 5.6em 7em minmax(0, 1fr); }
  .rs-row .rs-k { display: none; }
  .rs-ctl { width: 100%; }
}

/* ---------- full screen (TV / projector): big, high-contrast, fills the screen ---------- */
.rs:fullscreen {
  max-width: none; margin: 0; width: 100vw; height: 100vh; border-radius: 0; border: 0;
  display: flex; flex-direction: column; padding: clamp(12px, 1.4vw, 48px);
  background: radial-gradient(120% 90% at 50% 0%, #07102a, #02030a 70%);
  font-size: clamp(16px, 1.05vw, 44px);
}
.rs:fullscreen::before, .rs:fullscreen::after { display: none; }
.rs:fullscreen::backdrop { background: #02030a; }
.rs:fullscreen .ph { font-size: clamp(1rem, 1.3vw, 3rem); }
.rs:fullscreen .ctl { font-size: clamp(0.8rem, 0.75vw, 1.8rem); min-height: 2.4em; }
.rs:fullscreen .rs-led { font-size: clamp(0.8rem, 0.85vw, 2rem); padding: 0.45em 0.8em 0.45em 0.6em; color: #c9d6e8; }
.rs:fullscreen .rs-led b { color: #fff; }
.rs:fullscreen .rs-rate-num { font-size: clamp(2rem, 2.6vw, 6rem); }
.rs:fullscreen .rs-rate-lbl { font-size: clamp(0.75rem, 0.75vw, 1.8rem); }
.rs:fullscreen .rs-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rs:fullscreen .rs-canvas { flex: 1 1 auto; height: auto; min-height: 0; }
.rs:fullscreen .rs-axis { font-size: clamp(0.75rem, 0.8vw, 1.9rem); color: var(--muted); }
.rs:fullscreen .rs-log { flex: none; max-height: 24vh; font-size: clamp(0.85rem, 0.95vw, 2.2rem); }
.rs:fullscreen .rs-row { color: #c9d6e8; }
.rs:fullscreen .rs-row:nth-child(n + 6) { display: none; }
.rs:fullscreen .rs-legend { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rs-row.fresh { animation: none; }
  .rs-led i { transition: none; }
}
body.rm .rs-row.fresh { animation: none; }
