/* ── Reveal ─────────────────────────────────────────── */

#reveal .view-body {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.reveal-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  margin: 0;
}

.btn-skip-reveal {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 6px 14px;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-skip-reveal:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Ghost button, top-left twin of SKIP: opens the full system data sheet. */
/* Label photos stay visible in the archive: card thumbnail + data sheet. */
/* Canvas controls. One shape for all of them: a 34px round icon button.
   Icons stay narrow enough that DATA and PROBE never collide, even on a
   phone canvas. The way back out is the Galaxy nav button and the Back
   button in the action bar. */
.btn-info-reveal {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-info-reveal:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-info-reveal[hidden] { display: none; }

/* SCAN sits on the right edge, one row under the probe button. It keeps a
   text label -- the label expands to an instruction while a scan is armed
   ("SCANNING - TAP THE BODY AT PEAK SIGNAL"), growing leftward across the
   canvas on its own row, and max-width makes it wrap inside the canvas
   rather than overflow it. */
.btn-body-scan {
  left: auto;
  right: 10px;
  top: 54px;
  width: auto;
  height: auto;
  padding: 7px 13px;
  border-radius: 15px;
  font-size: 11px;
  letter-spacing: 1.5px;
  gap: 5px;
  max-width: calc(100% - 20px);
  text-align: left;
}
.btn-body-scan svg { flex-shrink: 0; }
.btn-body-scan:disabled {
  opacity: 0.4;
  cursor: default;
  border-color: rgba(148, 163, 184, 0.2);
}
/* armed: a survey scan is running and tapping again disarms it */
.btn-body-scan.scanning {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent);
}

/* DCOSMOS-ORBITARROWS: edge-anchored, thumb-sized, shown only while a body
   is selected. Sit a touch above true vertical center so a hand holding
   the phone one-handed clears the bottom sheet's top edge. */
.btn-orbit-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-orbit-arrow:hover { border-color: var(--accent); color: var(--accent); }
.btn-orbit-arrow[hidden] { display: none; }
.btn-orbit-prev { left: 8px; }
.btn-orbit-next { right: 8px; }

.reveal-canvas {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(0, 0, 0, 0.3);
  touch-action: none; /* one canvas gesture surface: no iOS page zoom/scroll */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.reveal-canvas:active { cursor: grabbing; }

/* DCOSMOS-FINDVIEWS: the real-sight close-up for a derelict ship, debris
   field, ancient relay, or signal source. Sized/positioned every frame in
   JS to match the painted disc it sits over (js/reveal-layout.js), so it
   reads as the same circular close-up every other selected body gets.
   pointer-events stays none -- the canvas underneath still receives every
   drag, and js/reveal-interact.js decides, by the press point alone,
   whether that drag rotates this mount's own 3-D model or the orrery
   around it (js/find-viewers.js). Starts transparent and fades in once its
   content is actually ready (js/find-viewers.js adds .ready), so the
   painted disc underneath is what shows during the load, never an empty
   circle. */
.find-viewer-mount {
  position: absolute;
  z-index: 5;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.find-viewer-mount.ready { opacity: 1; }
.find-viewer-mount[hidden] { display: none; }
.find-viewer-mount iframe,
.find-viewer-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.reveal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
}

/* Vignette effect */
.reveal-overlay::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.reveal-status {
  /* The typed status hugs the top edge in a quiet dark pill, above the
     band any framed body can reach -- a selected body fills 40% of the
     stage centered, so nothing drawn ever climbs this high. */
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  max-width: 86%;
  background: rgba(4, 8, 16, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 999px;
  padding: 7px 16px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* On a phone the rarest lines in the game (RUINS-CLASS FINDING: ...) must
   never be cut mid-jackpot -- let the pill wrap to two lines instead. */
@media (max-width: 480px) {
  .reveal-status {
    white-space: normal;
    line-height: 1.5;
    border-radius: 14px;
  }
}
.reveal-status.visible { opacity: 1; }

