/* css/index/rotate-overlay.css */

#rotate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#rotate-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.rotate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Phone icon wrapper — this is what rotates */
.rotate-phone-wrap {
  animation: phone-tilt 2.8s ease-in-out infinite;
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone shape built with CSS */
.rotate-phone {
  width: 48px;
  height: 82px;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 11px;
  position: relative;
  box-sizing: border-box;
}

/* Speaker notch */
.rotate-phone::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

/* Home button */
.rotate-phone::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.rotate-title {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.01em;
  text-align: center;
}

.rotate-sub {
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  margin: -20px 0 0;
  text-align: center;
}

/* Portrait → tilt → landscape → pause → back */
@keyframes phone-tilt {
  0%          { transform: rotate(0deg); }
  20%         { transform: rotate(0deg); }
  55%         { transform: rotate(-90deg); }
  75%         { transform: rotate(-90deg); }
  95%         { transform: rotate(0deg); }
  100%        { transform: rotate(0deg); }
}
