/* IDLE animation */
#cc-root {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  z-index: 50;
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#cc-root.cc-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#cc-stage {
  width: 200px;
  height: 292px;
  position: relative;
  transform-style: preserve-3d;
}

.cc-card {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  transform-style: preserve-3d;
}

.cc-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  border-radius: 6px;
}

.cc-card-front,
.cc-card-back {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.cc-card-back {
  transform: rotateY(180deg);
}

.cc-card-front img,
.cc-card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  background: #000;
}

.cc-card.hidden {
  display: none;
}

#cc-dots {
  display: flex;
  gap: 6px;
}

.cc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s;
  cursor: pointer;
}

.cc-dot.active { background: #d4a017; }

#cc-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000;
  border: 1px solid #d4a017;
  color: #d4a017;
  font-size: 11px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

#cc-close:hover {
  background: #d4a017;
  color: #000;
}

#cc-root:hover #cc-close {
  display: flex;
}