.cipher-guide {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.cipher-guide.active {
  opacity: 1;
  visibility: visible;
}

.cipher-guide-shade {
  position: absolute;
  inset: 0;
  background: transparent;
}

.cipher-guide-spotlight {
  position: absolute;
  border: 1px solid rgba(46, 204, 191, 0.95);
  border-radius: 8px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(46, 204, 191, 0.45);
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cipher-guide-panel {
  position: absolute;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(46, 204, 191, 0.55);
  border-radius: 8px;
  background: rgba(6, 14, 18, 0.94);
  color: #eaffff;
  box-shadow:
    0 0 24px rgba(46, 204, 191, 0.22),
    inset 0 0 20px rgba(46, 204, 191, 0.05);
  pointer-events: auto;
  transition: top 0.2s ease, left 0.2s ease;
}

.cipher-guide-kicker {
  margin: 0 0 8px;
  color: #2eccbf;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.cipher-guide-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.cipher-guide-body {
  margin: 0;
  color: rgba(234, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.65;
}

.cipher-guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.cipher-guide-btn {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(46, 204, 191, 0.55);
  border-radius: 6px;
  background: rgba(46, 204, 191, 0.08);
  color: #eaffff;
  cursor: pointer;
  font-size: 0.82rem;
}

.cipher-guide-btn:hover,
.cipher-guide-btn:focus-visible {
  border-color: rgba(46, 204, 191, 0.95);
  background: rgba(46, 204, 191, 0.18);
  outline: none;
}

.cipher-guide-btn.primary {
  background: rgba(46, 204, 191, 0.22);
}

.cipher-guide-spacer {
  flex: 1;
}

.cipher-guide-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(234, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: #eaffff;
  cursor: pointer;
}

.cipher-guide-close:hover,
.cipher-guide-close:focus-visible {
  border-color: rgba(46, 204, 191, 0.9);
  outline: none;
}

.cipher-guide-active-target {
  outline: 1px solid rgba(46, 204, 191, 0.7);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cipher-guide-panel {
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .cipher-guide-actions {
    flex-wrap: wrap;
  }

  .cipher-guide-btn {
    flex: 1 1 auto;
  }
}
