/* Hologram Portal 67 — Styles */

.hp67-canvas-wrap {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #000820;
  cursor: crosshair;
  border-radius: 4px;
}

.hp67-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hp67-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hp67-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,231,0.6), transparent);
  box-shadow: 0 0 12px rgba(0,255,231,0.8);
  opacity: 0;
  animation: hp67-scan 3s ease-in-out infinite;
}

@keyframes hp67-scan {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* UI controls */
.hp67-ui {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hp67-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: all;
  background: rgba(0,8,32,0.6);
  border: 1px solid rgba(0,255,231,0.2);
  border-radius: 30px;
  padding: 6px 14px;
  backdrop-filter: blur(6px);
}

.hp67-btn {
  background: none;
  border: 1px solid rgba(0,255,231,0.4);
  color: #00ffe7;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.hp67-btn:hover {
  background: rgba(0,255,231,0.15);
  border-color: #00ffe7;
  box-shadow: 0 0 8px rgba(0,255,231,0.5);
}

.hp67-dots {
  display: flex;
  gap: 6px;
}

.hp67-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,231,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.hp67-dot.active,
.hp67-dot:hover {
  background: #00ffe7;
  box-shadow: 0 0 6px #00ffe7;
}

.hp67-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,255,231,0.7);
  text-shadow: 0 0 8px rgba(0,255,231,0.5);
}

.hp67-click-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(0,255,231,0.4);
  pointer-events: none;
  text-transform: uppercase;
}

/* ── Lightbox ── */
.hp67-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp67-lightbox[hidden] { display: none; }

.hp67-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,4,16,0.92);
  backdrop-filter: blur(8px);
}

.hp67-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  border: 1px solid rgba(0,255,231,0.25);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,255,231,0.15), 0 0 120px rgba(0,255,231,0.05);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hp67-lb-open .hp67-lightbox-inner {
  opacity: 1;
  transform: scale(1);
}

.hp67-lightbox-canvas {
  display: block;
  max-width: 100%;
  max-height: 90vh;
}

.hp67-lightbox-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,8,32,0.7);
  border: 1px solid rgba(0,255,231,0.4);
  color: #00ffe7;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.hp67-lightbox-close:hover {
  background: rgba(0,255,231,0.15);
  box-shadow: 0 0 12px rgba(0,255,231,0.6);
}

/* bloom ring */
.hp67-bloom-ring {
  position: absolute;
  inset: -20px;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    0 0 30px  rgba(0,255,231,0.3),
    0 0 80px  rgba(0,255,231,0.15),
    0 0 150px rgba(0,255,231,0.07);
  transition: opacity 0.4s ease;
}
.hp67-lb-open .hp67-bloom-ring { opacity: 1; }

/* portal animation variant */
.hp67-lb-portal .hp67-lightbox-inner {
  transform: scale(0.1) rotate(180deg);
}
.hp67-lb-portal.hp67-lb-open .hp67-lightbox-inner {
  transform: scale(1) rotate(0deg);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

/* shatter animation variant */
.hp67-lb-shatter .hp67-lightbox-inner {
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%);
  transition: opacity 0.4s ease, transform 0.4s ease, clip-path 0.5s ease;
}
.hp67-lb-shatter.hp67-lb-open .hp67-lightbox-inner {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .hp67-canvas-wrap { height: 280px; }
  .hp67-click-hint  { display: none; }
}
