.abby-360 {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Inter, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

.abby-360 * {
  box-sizing: border-box;
}

/* ── TITLE ─────────────────────────────────────────── */
.abby-360__title {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── STAGE ─────────────────────────────────────────── */
.abby-360__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: grab;
  border-radius: 5px;
  background: #f0f0f0;
  overflow: hidden;
  /* Prevent iOS bounce interfering with drag */
  touch-action: none;
}

.abby-360__stage:active {
  cursor: grabbing;
}

.abby-360__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  /* NO transition — instant swap = zero flicker */
}

.abby-360__stage img.abby-active {
  opacity: 1;
}

/* ── LOADING ────────────────────────────────────────── */
.abby-360__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  z-index: 20;
  border-radius: 20px;
  transition: opacity 0.6s ease;
}

.abby-360__loading.abby-loaded {
  opacity: 0;
  pointer-events: none;
}

.abby-360__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,0,0,0.08);
  border-top-color: #333;
  border-radius: 50%;
  animation: abby-spin 0.75s linear infinite;
  margin-bottom: 12px;
}

@keyframes abby-spin {
  to { transform: rotate(360deg); }
}

.abby-360__loading-text {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ── DRAG HINT ──────────────────────────────────────── */
.abby-360__hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 8px 18px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.abby-360__hint.abby-hidden {
  opacity: 0;
}

.abby-360__hint-icon {
  font-size: 0px;
  line-height: 1;
}

.abby-360__hint-text {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.1em;
}

@keyframes abby-float {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50%       { transform: translateX(-50%) translateY(-3px); }
}

.abby-360__hint:not(.abby-hidden) {
  animation: abby-float 2.4s ease-in-out infinite;
}

/* ── CONTROLS ───────────────────────────────────────── */
.abby-360__controls {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ── SCRUBBER ───────────────────────────────────────── */
.abby-360__scrubber {
  position: relative;
  width: 80%;
  max-width: 360px;
  height: 36px;
  display: flex;
  align-items: center;
  cursor: grab;
  touch-action: none;
}

.abby-360__scrubber:active {
  cursor: grabbing;
}

.abby-360__track-bg {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
}

.abby-360__track-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #222;
  border-radius: 3px;
  transition: width 0.04s linear;
}

/* Pill thumb */
.abby-360__thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 26px;
  background: #222;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: width 0.12s ease, background 0.12s ease, left 0.04s linear;
  cursor: grab;
}

.abby-360__thumb:active,
.abby-360__scrubber:active .abby-360__thumb {
  cursor: grabbing;
  width: 52px;
  background: #000;
}

.abby-360__thumb i {
  display: block;
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}

/* ── DOTS ───────────────────────────────────────────── */
.abby-360__dots {
  display: flex;
  gap: 6px;
  align-items: center;
	display: none;
}

.abby-360__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  transition: background 0.2s, transform 0.2s;
}

.abby-360__dot.abby-dot-active {
  background: #222;
  transform: scale(1.5);
}

/* ── COUNTER ────────────────────────────────────────── */
.abby-360__counter {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #bbb;
	display:none;
  font-weight: 400;
}

/* ── RESPONSIVE ─────────────────────────────────────── */

/* Tablet and up */
@media (min-width: 600px) {
  .abby-360 {
    max-width: 600px;
  }
  .abby-360__stage {
    border-radius: 24px;
  }
  .abby-360__title {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .abby-360__hint {
    bottom: 20px;
    padding: 9px 22px;
  }
  .abby-360__hint-text {
    font-size: 12px;
  }
  .abby-360__hint-icon {
    font-size: 20px;
  }
  .abby-360__thumb {
    width: 48px;
    height: 28px;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .abby-360__stage {
    border-radius: 14px;
  }
  .abby-360__hint {
    bottom: 10px;
    padding: 6px 14px;
  }
  .abby-360__hint-text {
    font-size: 10px;
  }
  .abby-360__hint-icon {
    font-size: 15px;
  }
  .abby-360__scrubber {
    width: 88%;
  }
  .abby-360__thumb {
    width: 38px;
    height: 24px;
  }
  .abby-360__dot {
    width: 5px;
    height: 5px;
  }
}
