/* ─── Play page ─── Full-viewport sandbox background ─── */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Scrollable height so scroll-modulation has room to work.
   The page itself doesn't have "more content" — the extra height
   is just a tuning surface for the globe parameters. */
body {
  height: 300vh;
  background: var(--color-bg, #ffffff);
}

/* ─── Background SVG ─── */
#globe-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Globe grid lines */
#globe-layer line,
#globe-layer ellipse,
#globe-layer circle {
  fill: none;
  stroke: #d0d0d0;
  stroke-width: 0.6;
}

/* Ray lines */
#ray-layer line {
  fill: none;
  stroke: #d0d0d0;
  stroke-width: 0.5;
  stroke-dasharray: 6 4;
}

/* Annotation labels */
#annotation-layer text {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  fill: #999999;
  user-select: none;
}

/* PNG markers */
#annotation-layer image {
  opacity: 0;
}

/* ─── Content layer ─── */
.play-content {
  position: fixed;
  bottom: 6rem;
  left: var(--spacing-md, 2rem);
  z-index: 1;
}

/* ─── Info button ─── */
.play-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: none;
  border: 1px solid var(--color-text-muted, #666666);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.play-info-btn:hover {
  opacity: 0.8;
}

.play-info-icon {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-text-muted, #666666);
  line-height: 1;
}

/* ─── Info box ─── */
.play-info-box {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(4px);
  width: 280px;
  padding: 10px 14px;
  background: var(--color-bg, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.play-info-box[hidden] {
  display: block;
}

.play-info-box.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.play-info-box p {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-muted, #666666);
  margin: 0;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  #globe-svg * {
    animation: none !important;
    transition: none !important;
  }
}
