/* orientation.css */
#orientation-lock {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(10, 10, 20, 0.96);
  backdrop-filter: blur(10px);
  color: #f1e7d0;
  font-family: "Crimson Pro", serif;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.orientation-content {
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--safe-vh-sections) * 5);
  animation: fadeIn 1s ease forwards;
}

.orientation-content img {
  filter: invert(1) brightness(0.6) sepia(1) hue-rotate(180deg) saturate(500%);
  width: calc(var(--safe-vh-sections) * 40);
  height: calc(var(--safe-vh-sections) * 40);
  opacity: 0.8;
  animation: rotateIcon 4s linear infinite;
}

.orientation-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f6f2eb;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@keyframes rotateIcon {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔒 Force lock on phones in landscape */
@media (min-aspect-ratio: 1) and (max-height: 500px) {
  .main-page {
    display: none !important;
  }

  #orientation-lock {
    display: flex;
  }
}
