.portrait-lock-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 138, 0, 0.22), transparent 58%),
    #05050f;
  color: #ffffff;
  text-align: center;
}

.portrait-lock-card {
  width: min(22rem, 100%);
  padding: 1.35rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(10, 10, 20, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.portrait-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.85rem;
  border-radius: var(--fn-radius-round, 999px);
  background: rgba(255, 138, 0, 0.18);
  color: #ff9a2e;
  animation: portrait-lock-rotate 2.4s ease-in-out infinite;
}

.portrait-lock-icon .fn-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.portrait-lock-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.portrait-lock-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

@keyframes portrait-lock-rotate {
  0%,
  100% {
    transform: rotate(0deg);
  }
  45% {
    transform: rotate(-90deg);
  }
}

/* The site works in both orientations; the overlay is never forced on. */
