/* TM3D Liquid Pool 82 — Frontend Styles */

.tm3d-pool-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #000;
  border-radius: 4px;
  cursor: crosshair;
  -webkit-user-select: none;
  user-select: none;
}

.tm3d-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
}

/* ── Navigation dots ───────────────────────────────── */
.tm3d-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.tm3d-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.tm3d-dot.active,
.tm3d-dot:hover {
  background: #fff;
  transform: scale(1.25);
}

/* ── Hint ──────────────────────────────────────────── */
.tm3d-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  transition: opacity 1s ease;
}
.tm3d-hint span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  font-family: sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tm3d-hint.hidden {
  opacity: 0;
}

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

.tm3d-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
}
.tm3d-lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: tm3d-lb-in .25s ease;
}
@keyframes tm3d-lb-in {
  from { opacity:0; transform: scale(.92); }
  to   { opacity:1; transform: scale(1);   }
}
.tm3d-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.tm3d-lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-family: sans-serif;
  font-size: 13px;
  margin: 0;
  text-align: center;
}
.tm3d-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.tm3d-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Mobile tweaks ─────────────────────────────────── */
@media (max-width: 480px) {
  .tm3d-hint span { font-size: 10px; }
}
