.landscape-orientation-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  box-sizing: border-box;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(18, 28, 20, 0.96);
  font-family: "Pixel Code", monospace;
  --ui-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.62), 0 2px 6px rgba(0, 0, 0, 0.38);
}

.landscape-orientation-overlay[hidden] {
  display: none;
}

.landscape-orientation-overlay__icon {
  width: 4.5rem;
  height: 7.5rem;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 0.85rem;
  position: relative;
  animation: landscape-orientation-rotate-hint 2.4s ease-in-out infinite;
}

.landscape-orientation-overlay__icon::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 1.5rem;
  height: 0.35rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.landscape-orientation-overlay__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 700;
  text-shadow: var(--ui-text-shadow);
}

.landscape-orientation-overlay__message {
  margin: 0;
  max-width: 18rem;
  font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: var(--ui-text-shadow);
}

@keyframes landscape-orientation-rotate-hint {
  0%,
  18% {
    transform: rotate(0deg);
  }
  42%,
  58% {
    transform: rotate(90deg);
  }
  82%,
  100% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landscape-orientation-overlay__icon {
    animation: none;
    transform: rotate(90deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .landscape-orientation-overlay {
    display: none !important;
  }
}

html.landscape-orientation--portrait-mobile #app {
  pointer-events: none;
  user-select: none;
}
