.mirror-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #0e2422);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}
.mirror-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.mirror-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 301;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, rgba(238, 244, 241, 0.11));
  background: rgba(14, 36, 34, 0.7);
  color: var(--ink, #eef4f1);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.mirror-close:hover {
  color: var(--teal, #6fc8b8);
  border-color: var(--teal, #6fc8b8);
}
.mirror-close:focus-visible {
  outline: 2px solid var(--teal, #6fc8b8);
  outline-offset: 2px;
}

.mirror-tunnel {
  position: relative;
  width: min(90vw, 900px);
  height: min(80vh, 640px);
  pointer-events: none;
}

.mirror-frame {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
}

.mirror-frame-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(238, 244, 241, 0.18);
  border-radius: var(--radius, 3px);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  animation: mirror-drift 4.0s ease-in-out infinite;
}

.mirror-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
  scrollbar-width: none;
}
.mirror-frame iframe::-webkit-scrollbar {
  display: none;
}

@keyframes mirror-drift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(calc(1 + 0.070)) rotate(3.0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mirror-frame-inner { animation: none; }
}

.mirror-trigger--tease {
  display: inline-block;
  animation: mirror-tease 0.4s ease;
}
@keyframes mirror-tease {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
