/* ── Binary (3D + 2D overlay) ── */

.page-subtitle {
  color: var(--text2);
  font-size: 13px;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.binary-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text2);
}

.binary-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.binary-legend strong {
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.binary-legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.binary-legend-dot .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.binary-legend-sep {
  opacity: 0.4;
  padding: 0 6px;
}

.binary-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0f1629 0%, #060912 100%);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  display: none;
}

.binary-canvas-wrap canvas {
  display: block;
}

.binary-info-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 260px;
  max-width: 320px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  z-index: 40;
  animation: binaryPanelFade 0.22s ease;
}

@keyframes binaryPanelFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.binary-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 15px;
}

.binary-info-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.binary-info-row {
  margin: 4px 0;
  color: var(--text2);
}

.binary-info-row strong {
  color: var(--text);
}

.binary-info-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  margin-right: 6px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-ghost.active {
  background: rgba(240, 180, 41, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .binary-info-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .binary-canvas-wrap {
    min-height: 420px;
  }
}
