/* V3 game-like data visualizations. Component-scoped; safe to load after prototype.css. */

.v3gv-mission-stage,
.v3gv-compare-lens,
.v3gv-replay,
.v3gv-empty {
  --v3gv-space: var(--space-deep, #030916);
  --v3gv-panel: rgba(4, 15, 36, 0.96);
  --v3gv-line: rgba(169, 183, 212, 0.2);
  --v3gv-white: var(--white, #f7fbff);
  --v3gv-muted: var(--muted, #a9b7d4);
  --v3gv-sun: var(--sun, #ffc857);
  --v3gv-sun-soft: var(--sun-soft, #ffe29a);
  --v3gv-signal: var(--signal, #29d8f2);
  --v3gv-signal-soft: var(--signal-soft, #6ee8ef);
  --v3gv-rfi: #ff8e78;
  --v3gv-bg-line: #72b9c8;
  width: 100%;
  min-width: 0;
  min-height: 0;
  color: var(--v3gv-white);
  font-family: var(
    --font-ui,
    -apple-system,
    "SF Pro Text",
    "PingFang SC",
    "Noto Sans SC",
    sans-serif
  );
}

.v3gv-mission-stage,
.v3gv-compare-lens,
.v3gv-replay {
  height: 100%;
  display: grid;
  gap: clamp(12px, 1.3vh, 20px);
}

.v3gv-mission-stage {
  grid-template-rows: auto minmax(0, 1fr);
}

.v3gv-stage-header,
.v3gv-compare-header,
.v3gv-replay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.v3gv-stage-header > div:first-child,
.v3gv-compare-header > div:first-child,
.v3gv-replay-header > div:first-child {
  min-width: 0;
}

.v3gv-stage-header span,
.v3gv-compare-header > div:first-child > span,
.v3gv-replay-header span {
  display: block;
  color: var(--v3gv-signal-soft);
  font-size: clamp(16px, 1.18vw, 21px);
  font-weight: 900;
  letter-spacing: 0.09em;
}

.v3gv-stage-header h2,
.v3gv-compare-header h2,
.v3gv-replay-header h2 {
  margin: 5px 0 0;
  font-size: clamp(29px, 2.35vw, 45px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.v3gv-stage-header p {
  margin: 7px 0 0;
  color: #c9d6e9;
  font-size: clamp(16px, 1.16vw, 21px);
  font-weight: 720;
}

.v3gv-truth-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 620px;
}

.v3gv-truth-badges span,
.v3gv-truth-badges strong {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(169, 183, 212, 0.24);
  border-radius: 999px;
  color: #d9e6f7;
  background: rgba(8, 25, 53, 0.84);
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.v3gv-truth-badges strong {
  border-color: rgba(255, 200, 87, 0.42);
  color: var(--v3gv-sun-soft);
}

.v3gv-chart-shell,
.v3gv-lens-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(110, 232, 239, 0.23);
  border-radius: clamp(24px, 2vw, 34px);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.028), transparent 38%),
    rgba(3, 11, 28, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 54px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.v3gv-chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.v3gv-plot-bg {
  fill: rgba(3, 11, 28, 0.74);
}

.v3gv-axes line {
  stroke: var(--v3gv-line);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.v3gv-axes text {
  fill: var(--v3gv-muted);
  font-size: 18px;
  font-weight: 760;
}

.v3gv-axes .v3gv-axis-y-title,
.v3gv-axes .v3gv-axis-x-title {
  fill: #c5d2e6;
  font-size: 17px;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.v3gv-series-line,
.v3gv-series-ghost,
.v3gv-solar-trend {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.v3gv-series-line {
  stroke-width: 5;
}

.v3gv-series-ghost {
  stroke: rgba(217, 230, 247, 0.16);
  stroke-width: 3;
  stroke-dasharray: 5 10;
}

.v3gv-series-sun {
  stroke: var(--v3gv-sun);
  filter: drop-shadow(0 0 7px rgba(255, 200, 87, 0.7));
}

.v3gv-series-signal,
.v3gv-series-satellite {
  stroke: var(--v3gv-signal-soft);
  filter: drop-shadow(0 0 7px rgba(41, 216, 242, 0.68));
}

.v3gv-series-rfi {
  stroke: var(--v3gv-rfi);
  filter: drop-shadow(0 0 7px rgba(255, 124, 124, 0.65));
}

.v3gv-series-background {
  stroke: var(--v3gv-bg-line);
}

.v3gv-solar-trend {
  stroke: var(--v3gv-sun-soft);
  stroke-width: 11;
  opacity: 0.33;
  filter: drop-shadow(0 0 15px rgba(255, 200, 87, 0.5));
}

.v3gv-solar-area,
.v3gv-satellite-area,
.v3gv-rfi-area {
  pointer-events: none;
}

.v3gv-chart-callout {
  position: absolute;
  z-index: 3;
  left: 11.5%;
  top: 13.5%;
  display: grid;
  gap: 3px;
  pointer-events: none;
}

.v3gv-chart-callout strong {
  color: var(--v3gv-sun-soft);
  font-size: clamp(21px, 1.55vw, 29px);
}

.v3gv-chart-callout span {
  color: #d5dfef;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 740;
}

.v3gv-derived-note {
  position: absolute;
  z-index: 3;
  right: 3.4%;
  bottom: 3.2%;
  max-width: 70%;
  color: rgba(211, 225, 242, 0.72);
  font-size: clamp(12px, 0.87vw, 16px);
  font-weight: 720;
  text-align: right;
  pointer-events: none;
}

.v3gv-playhead line {
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.v3gv-playhead circle {
  fill: var(--v3gv-sun);
  stroke: #fff9e6;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.v3gv-playhead.v3gv-tone-signal circle {
  fill: var(--v3gv-signal-soft);
  stroke: #e8feff;
}

.v3gv-playhead.v3gv-tone-rfi circle {
  fill: var(--v3gv-rfi);
  stroke: #fff0eb;
}

.v3gv-playhead .v3gv-playhead-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.58;
  animation: v3gv-playhead-pulse 1.8s ease-out infinite;
}

.v3gv-evidence-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.v3gv-star-field {
  position: absolute;
  left: 9%;
  right: 3%;
  top: 8.4%;
  bottom: 16.4%;
}

.v3gv-evidence-anchor {
  position: absolute;
  left: var(--v3gv-star-x);
  top: var(--v3gv-star-y);
  width: 1px;
  height: 1px;
  animation: v3gv-star-arrive 520ms cubic-bezier(0.2, 0.85, 0.2, 1.15)
    var(--v3gv-star-delay, 0ms) both;
}

.v3gv-evidence-anchor i {
  position: absolute;
  left: -19px;
  top: -19px;
  width: 38px;
  height: 38px;
  display: block;
  background: var(--v3gv-sun);
  clip-path: polygon(
    50% 0%,
    61% 34%,
    98% 36%,
    68% 57%,
    79% 94%,
    50% 72%,
    21% 94%,
    32% 57%,
    2% 36%,
    39% 34%
  );
  filter: drop-shadow(0 0 10px rgba(255, 200, 87, 0.95));
}

[data-kind="satellite_pass"] .v3gv-evidence-anchor i {
  background: var(--v3gv-signal-soft);
  filter: drop-shadow(0 0 10px rgba(110, 232, 239, 0.95));
}

[data-kind="rfi_scan"] .v3gv-evidence-anchor i {
  background: #ffb08d;
  filter: drop-shadow(0 0 10px rgba(255, 142, 120, 0.95));
}

.v3gv-evidence-anchor b {
  position: absolute;
  left: 0;
  top: 27px;
  min-height: 36px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #fff;
  background: rgba(2, 9, 22, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  font-size: clamp(12px, 0.84vw, 16px);
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* V3.1 evidence feedback. The interactive aiming ring lives in child-app;
   this shared chart layer only animates a locked star and confirmation copy. */
.v3gv-capture-overlay {
  position: absolute;
  z-index: 8;
  left: 9%;
  right: 3%;
  top: 8.4%;
  bottom: 16.4%;
  pointer-events: none;
}

.v3gv-capture-target {
  position: absolute;
  left: var(--v3gv-capture-x);
  top: var(--v3gv-capture-y);
  width: 1px;
  height: 1px;
  color: var(--v3gv-signal-soft);
  transition: left 120ms ease-out, top 120ms ease-out;
}

.v3gv-capture-star {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  transform: translate(-50%, -50%);
}

.v3gv-capture-status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  min-width: min(620px, 76%);
  max-width: 90%;
  padding: 11px 18px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(110, 232, 239, 0.5);
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(3, 17, 39, 0.92);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  transform: translateX(-50%);
}

.v3gv-capture-status strong,
.v3gv-capture-status small {
  display: block;
  font-size: clamp(14px, 1.05vw, 20px);
  font-weight: 900;
  line-height: 1.3;
}

.v3gv-capture-status small {
  color: var(--v3gv-sun-soft);
  font-size: clamp(12px, 0.82vw, 16px);
}

.v3gv-capture-overlay.has-feedback-warning .v3gv-capture-target,
.v3gv-capture-overlay.has-feedback-error .v3gv-capture-target {
  color: #ff8e78;
}

.v3gv-capture-overlay.has-feedback-warning .v3gv-capture-status,
.v3gv-capture-overlay.has-feedback-error .v3gv-capture-status {
  border-color: rgba(255, 142, 120, 0.72);
  color: #fff0eb;
  background: rgba(54, 18, 22, 0.94);
}

.v3gv-capture-overlay.is-locked .v3gv-capture-target,
.v3gv-capture-overlay.is-confirm .v3gv-capture-target {
  color: var(--v3gv-sun);
}

.v3gv-capture-overlay.is-locked .v3gv-capture-status,
.v3gv-capture-overlay.is-confirm .v3gv-capture-status {
  border-color: rgba(255, 200, 87, 0.68);
  background: rgba(42, 31, 7, 0.94);
}

.v3gv-capture-star {
  width: clamp(64px, 5.3vw, 100px);
  height: clamp(64px, 5.3vw, 100px);
  background: var(--v3gv-sun);
  clip-path: polygon(
    50% 0%,
    61% 34%,
    98% 36%,
    68% 57%,
    79% 94%,
    50% 72%,
    21% 94%,
    32% 57%,
    2% 36%,
    39% 34%
  );
  filter: drop-shadow(0 0 18px rgba(255, 200, 87, 1));
  animation: v3gv-capture-star-lock 720ms cubic-bezier(0.12, 0.82, 0.2, 1.2)
    both;
}

[data-kind="satellite_pass"] .v3gv-capture-star {
  background: var(--v3gv-signal-soft);
  filter: drop-shadow(0 0 18px rgba(110, 232, 239, 1));
}

[data-kind="rfi_scan"] .v3gv-capture-star {
  background: #ffb08d;
  filter: drop-shadow(0 0 18px rgba(255, 142, 120, 1));
}

.v3gv-orbit-rail {
  position: absolute;
  z-index: 4;
  left: 13%;
  right: 5%;
  top: 7.5%;
  height: 82px;
  pointer-events: none;
}

.v3gv-orbit-line {
  position: absolute;
  inset: 34px 0 auto;
  height: 34px;
  border-top: 2px dashed rgba(110, 232, 239, 0.42);
  border-radius: 50% 50% 0 0;
  transform: rotate(-2deg);
}

.v3gv-orbit-rail img {
  position: absolute;
  z-index: 2;
  left: var(--v3gv-orbit-progress);
  top: 0;
  width: clamp(46px, 4vw, 72px);
  height: clamp(42px, 3.6vw, 65px);
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(110, 232, 239, 0.55));
  transform: translateX(-50%);
  transition: left 80ms linear;
}

.v3gv-orbit-label {
  position: absolute;
  right: 0;
  top: 0;
  color: rgba(201, 221, 239, 0.58);
  font-size: clamp(11px, 0.78vw, 14px);
  font-weight: 740;
}

.v3gv-pass-zones rect {
  fill: rgba(41, 216, 242, 0.045);
}

.v3gv-pass-zones rect.peak {
  fill: rgba(255, 200, 87, 0.1);
}

.v3gv-pass-zones text {
  fill: #aeeff5;
  font-size: 19px;
  font-weight: 900;
}

.v3gv-pass-zones text.peak {
  fill: var(--v3gv-sun-soft);
}

.v3gv-threshold-line {
  stroke: rgba(169, 183, 212, 0.34);
  stroke-width: 1.5;
  stroke-dasharray: 7 8;
  vector-effect: non-scaling-stroke;
}

.v3gv-rfi-clues {
  position: absolute;
  z-index: 4;
  left: 11%;
  right: 4%;
  top: 11%;
  display: flex;
  align-items: center;
  gap: 11px;
  pointer-events: none;
}

.v3gv-rfi-clues span,
.v3gv-rfi-clues strong {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 142, 120, 0.27);
  border-radius: 999px;
  color: #ffe0d7;
  background: rgba(44, 17, 23, 0.78);
  font-size: clamp(12px, 0.85vw, 16px);
  font-weight: 800;
}

.v3gv-rfi-clues strong {
  margin-left: auto;
  border-color: rgba(110, 232, 239, 0.28);
  color: #c9f8fa;
  background: rgba(7, 33, 53, 0.82);
}

.v3gv-rfi-shell.is-clue-blind .v3gv-rfi-clues span {
  border-color: rgba(110, 232, 239, 0.3);
  color: #d8fbfd;
  background: rgba(7, 33, 53, 0.86);
}

.v3gv-rfi-shell.has-revealed-clues .v3gv-rfi-clues span {
  animation: v3gv-clue-reveal 520ms ease-out both;
}

.v3gv-rfi-intensity-map rect {
  fill: #ff9e7f;
}

.v3gv-rfi-band {
  fill: rgba(255, 174, 126, 0.13);
  stroke: rgba(255, 195, 151, 0.56);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
}

.v3gv-rfi-band-label,
.v3gv-rfi-peak text {
  fill: #ffd4c2;
  font-size: 16px;
  font-weight: 850;
}

.v3gv-rfi-peak line {
  stroke: #ffb08d;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.v3gv-rfi-peak circle {
  fill: #ffb08d;
  stroke: white;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.v3gv-scan-beam rect {
  fill: rgba(255, 234, 190, 0.11);
  filter: drop-shadow(0 0 16px rgba(255, 200, 87, 0.55));
}

.v3gv-scan-beam line {
  stroke: rgba(255, 239, 193, 0.82);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.v3gv-compare-lens {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.v3gv-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(169, 183, 212, 0.22);
  border-radius: 20px;
  background: rgba(3, 11, 28, 0.78);
}

.v3gv-mode-switch button,
.v3gv-replay-controls button {
  min-height: 62px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #dce8f7;
  background: rgba(16, 37, 74, 0.76);
  font-size: clamp(16px, 1.15vw, 21px);
  font-weight: 880;
}

.v3gv-mode-switch button.is-active,
.v3gv-replay-controls .v3gv-replay-primary {
  color: #08142e;
  background: var(--v3gv-sun);
  box-shadow: 0 8px 24px rgba(255, 200, 87, 0.18);
}

.v3gv-mode-switch button:focus-visible,
.v3gv-replay-controls button:focus-visible,
.v3gv-lens-controls input:focus-visible,
.v3gv-replay-timeline input:focus-visible {
  outline: 4px solid var(--v3gv-signal-soft);
  outline-offset: 4px;
}

.v3gv-lens-stage.is-draggable {
  cursor: ew-resize;
  touch-action: none;
}

.v3gv-compare-key {
  position: absolute;
  z-index: 4;
  left: 11%;
  right: 4%;
  top: 11%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
}

.v3gv-compare-key span {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--v3gv-sun-soft);
  background: rgba(3, 11, 28, 0.82);
  font-size: clamp(13px, 0.9vw, 17px);
  font-weight: 850;
}

.v3gv-compare-key span::before,
.v3gv-live-values i {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}

.v3gv-compare-key span.background,
.v3gv-live-values i.background {
  color: var(--v3gv-bg-line);
}

.v3gv-compare-key span.signal,
.v3gv-live-values i.signal {
  color: var(--v3gv-signal-soft);
}

.v3gv-compare-key span.rfi,
.v3gv-live-values i.rfi {
  color: var(--v3gv-rfi);
}

.v3gv-compare-key span.sun,
.v3gv-live-values i.sun {
  color: var(--v3gv-sun);
}

.v3gv-difference-fill {
  fill: rgba(255, 200, 87, 0.15);
  stroke: rgba(255, 200, 87, 0.32);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.v3gv-difference-fill.v3gv-tone-signal {
  fill: rgba(41, 216, 242, 0.13);
  stroke: rgba(110, 232, 239, 0.34);
}

.v3gv-difference-fill.v3gv-tone-rfi {
  fill: rgba(255, 142, 120, 0.14);
  stroke: rgba(255, 176, 141, 0.36);
}

.v3gv-lens-wash {
  fill: rgba(255, 200, 87, 0.055);
}

.v3gv-lens-wash.v3gv-tone-signal {
  fill: rgba(41, 216, 242, 0.055);
}

.v3gv-lens-wash.v3gv-tone-rfi {
  fill: rgba(255, 142, 120, 0.06);
}

.v3gv-lens-handle line,
.v3gv-lens-handle path {
  stroke: white;
  stroke-width: 3;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.v3gv-lens-handle circle {
  fill: rgba(3, 11, 28, 0.92);
  stroke: var(--v3gv-sun);
  stroke-width: 4;
  filter: drop-shadow(0 0 12px rgba(255, 200, 87, 0.54));
  vector-effect: non-scaling-stroke;
}

.v3gv-lens-controls {
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(410px, auto) minmax(320px, 1fr);
  align-items: center;
  gap: 24px;
}

.v3gv-live-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px;
}

.v3gv-live-values span {
  min-height: 68px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(169, 183, 212, 0.2);
  border-radius: 18px;
  color: #d6e2f2;
  background: rgba(6, 20, 44, 0.88);
  font-size: clamp(14px, 0.95vw, 18px);
  font-weight: 780;
}

.v3gv-live-values i {
  margin: 0;
}

.v3gv-live-values strong {
  color: white;
  font-size: clamp(23px, 1.5vw, 30px);
}

.v3gv-lens-controls label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  color: #dbe7f6;
  font-size: clamp(16px, 1vw, 19px);
  font-weight: 850;
  opacity: 1;
  transition: opacity 160ms ease;
}

.v3gv-lens-controls label.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.v3gv-lens-controls input,
.v3gv-replay-timeline input {
  width: 100%;
  min-height: 68px;
  margin: 0;
  accent-color: var(--v3gv-sun);
  cursor: ew-resize;
}

.v3gv-lens-controls input::-webkit-slider-thumb,
.v3gv-replay-timeline input::-webkit-slider-thumb {
  width: 48px;
  height: 48px;
}

.v3gv-boundary-note {
  margin: 0;
  color: rgba(211, 225, 242, 0.75);
  font-size: clamp(13px, 0.9vw, 17px);
  font-weight: 720;
  line-height: 1.5;
}

.v3gv-replay {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
}

.v3gv-replay-header > strong {
  min-height: 54px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 200, 87, 0.35);
  border-radius: 999px;
  color: var(--v3gv-sun-soft);
  background: rgba(49, 35, 8, 0.42);
  font-size: clamp(16px, 1.05vw, 20px);
}

.v3gv-replay-timeline {
  position: relative;
  min-height: 70px;
  padding: 0 10px;
}

.v3gv-replay-ticks {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 4px;
  height: 20px;
  pointer-events: none;
}

.v3gv-replay-ticks i {
  position: absolute;
  top: 0;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 200, 87, 0.55);
  background: var(--v3gv-space);
  clip-path: polygon(
    50% 0%,
    61% 34%,
    98% 36%,
    68% 57%,
    79% 94%,
    50% 72%,
    21% 94%,
    32% 57%,
    2% 36%,
    39% 34%
  );
  transform: translateX(-50%);
}

.v3gv-replay-ticks i.is-seen {
  border-color: transparent;
  background: var(--v3gv-sun);
  filter: drop-shadow(0 0 7px rgba(255, 200, 87, 0.78));
}

.v3gv-replay-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v3gv-replay-controls button {
  min-width: 180px;
}

.v3gv-replay-controls button:disabled {
  opacity: 0.72;
}

.v3gv-replay-controls > span {
  margin-left: auto;
  color: #d6e2f2;
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

/* Result cards have their own title and scientific-boundary copy. Keep replay
   focused on the chart and controls so it does not push the 1080p stage tall. */
.result-card .v3gv-replay,
.v3gv-replay.is-compact {
  height: clamp(245px, 27vh, 320px);
  grid-template-rows: minmax(0, 1fr) 48px 54px;
  gap: 5px;
}

.result-card .v3gv-replay .v3gv-replay-header,
.result-card .v3gv-replay .v3gv-boundary-note,
.v3gv-replay.is-compact .v3gv-replay-header,
.v3gv-replay.is-compact .v3gv-boundary-note,
.result-card .v3gv-replay .v3gv-derived-note,
.v3gv-replay.is-compact .v3gv-derived-note {
  display: none;
}

.result-card .v3gv-replay .v3gv-chart-shell,
.v3gv-replay.is-compact .v3gv-chart-shell {
  border-radius: 18px;
}

.result-card .v3gv-replay .v3gv-replay-timeline,
.v3gv-replay.is-compact .v3gv-replay-timeline {
  min-height: 48px;
}

.result-card .v3gv-replay .v3gv-replay-controls button,
.v3gv-replay.is-compact .v3gv-replay-controls button {
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
}

.v3gv-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(169, 183, 212, 0.35);
  border-radius: 26px;
  color: var(--v3gv-muted);
  background: rgba(3, 11, 28, 0.72);
  font-size: 24px;
  font-weight: 780;
}

@keyframes v3gv-star-arrive {
  0% {
    opacity: 0;
    transform: translateY(-55px) scale(0.25) rotate(-40deg);
  }
  68% {
    opacity: 1;
    transform: translateY(4px) scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes v3gv-playhead-pulse {
  0% {
    opacity: 0.7;
    r: 13px;
  }
  80%, 100% {
    opacity: 0;
    r: 31px;
  }
}

@keyframes v3gv-capture-star-lock {
  0% {
    opacity: 0;
    transform: translate(120%, -190%) scale(0.22) rotate(-48deg);
  }
  68% {
    opacity: 1;
    transform: translate(-55%, -45%) scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes v3gv-clue-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px), (max-height: 780px) {
  .v3gv-stage-header h2,
  .v3gv-compare-header h2,
  .v3gv-replay-header h2 {
    font-size: clamp(27px, 2.1vw, 36px);
  }

  .v3gv-stage-header p,
  .v3gv-derived-note,
  .v3gv-boundary-note {
    font-size: 13px;
  }

  .v3gv-truth-badges span,
  .v3gv-truth-badges strong {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .v3gv-mode-switch button,
  .v3gv-replay-controls button {
    min-height: 52px;
  }

  .v3gv-lens-controls {
    min-height: 64px;
  }

  .v3gv-live-values span {
    min-height: 56px;
  }

  .v3gv-rfi-clues span,
  .v3gv-rfi-clues strong {
    min-height: 32px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3gv-playhead .v3gv-playhead-ring,
  .v3gv-evidence-anchor,
  .v3gv-capture-star,
  .v3gv-rfi-shell.has-revealed-clues .v3gv-rfi-clues span {
    animation: none !important;
  }

  .v3gv-orbit-rail img,
  .v3gv-lens-controls label,
  .v3gv-capture-target {
    transition: none !important;
  }
}
