/* V3.3 feedback round: animated answer meaning, pointing telemetry and answer reveal. */

.visual-hero-art.has-custom-hero {
  width: 100%;
  min-height: 0;
  display: block;
}

.prediction-meaning-animation,
.antenna-pointing-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 210px;
  overflow: hidden;
}

.prediction-meaning-animation {
  padding: 12px 16px 14px;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  gap: 9px;
  border: 1px solid rgba(110, 232, 239, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 200, 87, 0.17), transparent 28%),
    rgba(3, 11, 28, 0.62);
}

.prediction-meaning-animation[data-kind="wideBlock"],
.prediction-meaning-animation[data-kind="pulse"] {
  border-color: rgba(255, 154, 124, 0.38);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 154, 124, 0.18), transparent 30%),
    rgba(3, 11, 28, 0.62);
}

.meaning-animation-head span,
.meaning-animation-head strong,
.prediction-meaning-animation > small {
  display: block;
}

.meaning-animation-head span {
  color: var(--signal-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.meaning-animation-head strong {
  margin-top: 2px;
  color: var(--white);
  font-size: clamp(19px, 1.55vw, 28px);
}

.prediction-meaning-animation > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.meaning-signal-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(rgba(110, 232, 239, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 232, 239, 0.07) 1px, transparent 1px),
    rgba(7, 20, 47, 0.74);
  background-size: 25% 33.333%;
}

.meaning-signal-stage > img {
  position: absolute;
  right: 4%;
  top: 6%;
  z-index: 4;
  width: clamp(52px, 5.3vw, 86px);
  height: clamp(52px, 5.3vw, 86px);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

.meaning-bars {
  position: absolute;
  inset: 18% 18% 14% 8%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(8px, 1vw, 16px);
}

.meaning-bars i {
  width: clamp(20px, 2.1vw, 38px);
  height: var(--meaning-height);
  min-height: 16px;
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--sun), var(--signal));
  box-shadow: 0 0 18px rgba(41, 216, 242, 0.2);
  transform-origin: 50% 100%;
  animation: v33-meaning-rise 1.15s var(--meaning-delay) cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

[data-kind="wideBlock"] .meaning-bars i,
[data-kind="pulse"] .meaning-bars i {
  background: linear-gradient(180deg, #ffd77d, var(--coral));
}

.meaning-baseline {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 13%;
  z-index: 3;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.meaning-scan-beam {
  position: absolute;
  top: 10%;
  bottom: 13%;
  left: 7%;
  z-index: 3;
  width: 3px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 18px rgba(110, 232, 239, 0.7);
  animation: v33-meaning-scan 2.8s ease-in-out infinite;
}

.antenna-pointing-visual {
  padding: 9px 12px 10px;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  gap: 7px;
}

.pointing-live-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--signal-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pointing-live-label i {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
  background: var(--signal-soft);
  box-shadow: 0 0 0 5px rgba(110, 232, 239, 0.1), 0 0 14px rgba(110, 232, 239, 0.7);
  animation: v33-telemetry-pulse 1.6s ease-in-out infinite;
}

.antenna-pointing-visual[data-source="onsite"] .pointing-live-label {
  color: var(--safe);
}

.pointing-sky-dome {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(110, 232, 239, 0.28);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 19%, rgba(110, 232, 239, 0.14) 19.4% 20%, transparent 20.5% 39%),
    linear-gradient(90deg, transparent 49.7%, rgba(110, 232, 239, 0.14) 50%, transparent 50.3%),
    linear-gradient(transparent 49.7%, rgba(110, 232, 239, 0.14) 50%, transparent 50.3%),
    radial-gradient(circle, rgba(24, 65, 119, 0.72), rgba(3, 11, 28, 0.86));
  box-shadow: inset 0 0 48px rgba(41, 216, 242, 0.08);
}

.pointing-sky-dome > span[class^="compass-"] {
  position: absolute;
  z-index: 5;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.compass-north { left: 50%; top: 4px; transform: translateX(-50%); }
.compass-east { right: 7px; top: 50%; transform: translateY(-50%); }
.compass-south { left: 50%; bottom: 4px; transform: translateX(-50%); }
.compass-west { left: 7px; top: 50%; transform: translateY(-50%); }

.pointing-target-dot,
.pointing-current-reticle {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: left 160ms linear, top 160ms linear;
}

.pointing-target-dot {
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 4px solid var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 200, 87, 0.1), 0 0 22px rgba(255, 200, 87, 0.52);
}

.pointing-current-reticle {
  z-index: 4;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 4px solid var(--signal-soft);
  border-radius: 50%;
  background: rgba(3, 11, 28, 0.72);
  box-shadow: 0 0 0 7px rgba(110, 232, 239, 0.09), 0 0 22px rgba(110, 232, 239, 0.32);
}

.pointing-current-reticle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pointing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.pointing-metrics > span {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(169, 183, 212, 0.18);
  border-radius: 12px;
  text-align: center;
  background: rgba(3, 11, 28, 0.55);
}

.pointing-metrics small,
.pointing-metrics strong {
  display: block;
}

.pointing-metrics small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.pointing-metrics strong {
  margin-top: 1px;
  color: var(--white);
  font-size: clamp(15px, 1.35vw, 22px);
}

.pointing-metrics > span[data-close="true"] {
  border-color: rgba(92, 224, 164, 0.44);
  background: rgba(92, 224, 164, 0.1);
}

.pointing-metrics > span[data-close="true"] strong {
  color: var(--safe);
}

.answer-reveal-panel {
  padding-top: 11px;
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(255, 200, 87, 0.22);
}

.answer-reveal-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.answer-reveal-panel > header div small,
.answer-reveal-panel > header div strong,
.answer-reveal-panel > header div span {
  display: block;
}

.answer-reveal-panel > header div small {
  color: var(--sun);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.answer-reveal-panel > header div strong {
  margin-top: 2px;
  font-size: clamp(18px, 1.25vw, 24px);
}

.answer-reveal-panel > header div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.answer-reveal-panel output {
  min-width: 86px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: center;
  column-gap: 3px;
  border: 1px solid rgba(255, 200, 87, 0.42);
  border-radius: 14px;
  color: var(--sun);
  background: rgba(255, 200, 87, 0.08);
}

.answer-reveal-panel output b { font-size: 25px; }
.answer-reveal-panel output i { color: var(--muted); font-size: 12px; font-style: normal; }
.answer-reveal-panel output small { grid-column: 1 / -1; font-size: 9px; text-align: center; }

.answer-reveal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.answer-reveal-grid article {
  min-width: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(169, 183, 212, 0.18);
  border-radius: 14px;
  background: rgba(7, 20, 47, 0.72);
}

.answer-reveal-grid article[data-result="correct"] {
  border-color: rgba(92, 224, 164, 0.44);
  background: rgba(92, 224, 164, 0.08);
}

.answer-reveal-grid .picture-choice-art {
  width: 50px;
  height: 48px;
  padding: 6px;
  border-radius: 11px;
}

.answer-reveal-grid .picture-bars { gap: 2px; }
.answer-reveal-grid .picture-bars i { width: 5px; min-height: 5px; }

.answer-reveal-grid article div small,
.answer-reveal-grid article div strong,
.answer-reveal-grid article div span,
.answer-reveal-grid article > b {
  display: block;
}

.answer-reveal-grid article div small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.answer-reveal-grid article div strong {
  margin-top: 2px;
  overflow: hidden;
  color: var(--white);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-reveal-grid article div span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-reveal-grid article > b {
  grid-column: 1 / -1;
  padding-top: 4px;
  border-top: 1px solid rgba(169, 183, 212, 0.12);
  color: var(--sun);
  font-size: 10px;
  text-align: center;
}

.answer-reveal-grid article[data-result="correct"] > b {
  color: var(--safe);
}

.v33-evidence-status[data-status="archive"] i {
  background: #a9b7d4;
}

@media print {
  .v33-print-answer-key {
    margin: 1.2mm 0;
    padding: 1mm 0;
    border-top: 0.25mm solid #d8c98f;
    border-bottom: 0.25mm solid #d8c98f;
  }

  .v33-print-answer-key p {
    margin: 0.45mm 0;
    font-size: 6.2pt;
    line-height: 1.2;
  }
}

@keyframes v33-meaning-rise {
  from { opacity: 0.35; transform: scaleY(0.18); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes v33-meaning-scan {
  0%, 100% { left: 7%; opacity: 0.25; }
  50% { left: 80%; opacity: 0.9; }
}

@keyframes v33-telemetry-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1250px), (max-height: 760px) {
  .prediction-meaning-animation,
  .antenna-pointing-visual {
    min-height: 150px;
  }

  .prediction-meaning-animation {
    padding: 8px 10px;
    grid-template-rows: auto minmax(90px, 1fr) auto;
  }

  .pointing-sky-dome {
    width: min(100%, 245px);
  }

  .pointing-current-reticle {
    width: 48px;
    height: 48px;
  }

  .pointing-current-reticle img {
    width: 36px;
    height: 36px;
  }

  .answer-reveal-panel > header div span {
    display: none;
  }

  .answer-reveal-grid article {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 6px;
  }

  .answer-reveal-grid .picture-choice-art {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meaning-bars i,
  .meaning-scan-beam,
  .pointing-live-label i {
    animation: none;
  }
}
