.zoom-warning,
.rotate-warning {
  --zoom-accent: #7dbbff;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(0, 8, 18, 0.98) 0%, rgba(0, 4, 10, 0.99) 100%),
    radial-gradient(120% 90% at 50% 8%, rgba(0, 120, 210, 0.14), transparent 55%),
    radial-gradient(140% 100% at 50% 100%, rgba(0, 6, 18, 0.97), rgba(0, 0, 0, 1));
  z-index: 12000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 240ms ease,
    transform 260ms ease,
    visibility 0s linear 240ms;
}

.zoom-warning.active,
.rotate-warning.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 260ms ease,
    transform 300ms ease,
    visibility 0s;
}

.zoom-warning__panel,
.rotate-warning__panel {
  position: relative;
  width: min(640px, 94vw);
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 32, 64, 0.92), rgba(0, 12, 28, 0.96));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 170, 255, 0.2),
    0 0 40px rgba(0, 170, 255, 0.08);
  overflow: hidden;
}

.rotate-warning__panel {
  width: min(520px, 92vw);
  padding: 0.5rem 0;
  background: none;
  border: none;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zoom-warning__panel::before,
.rotate-warning__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 25%,
    transparent 75%,
    rgba(255, 255, 255, 0.08) 100%
  );
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.rotate-warning__panel::before {
  display: none;
}

.zoom-warning__eyebrow,
.rotate-warning__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.75rem;
}

.rotate-warning__eyebrow {
  justify-content: center;
}

.zoom-warning__eyebrow::before,
.rotate-warning__eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--zoom-accent);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 170, 255, 0.6);
  animation: zoom-warning-pulse 1.8s ease-in-out infinite;
}

.zoom-warning__headline,
.rotate-warning__headline {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: space-between;
}

.rotate-warning__headline {
  justify-content: center;
}

.zoom-warning__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zoom-warning__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.zoom-warning__title,
.rotate-warning__title {
  margin: 0;
  font-family: 'Space Grotesk', 'Merriweather', serif;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.rotate-warning__title {
  width: 100%;
  text-align: center;
}

.zoom-warning__percentage {
  min-width: 84px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #0f2231;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.zoom-warning__body,
.rotate-warning__body {
  margin: 0.75rem 0 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.rotate-warning__body {
  text-align: center;
  margin-top: 0.6rem;
}

.zoom-warning__hint {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.68);
}

.rotate-warning__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1.3rem;
}

.rotate-warning__phone {
  position: relative;
  width: 86px;
  height: 156px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(135deg, rgba(0, 140, 240, 0.1), rgba(0, 60, 120, 0.05));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transform-origin: center;
  animation: rotate-phone 5s ease-in-out infinite;
}

.rotate-warning__screen {
  display: none;
}

.rotate-warning__btn {
  display: none;
}

.rotate-warning__shine {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px dashed rgba(0, 170, 255, 0.4);
  opacity: 0.6;
  transform: rotate(0deg);
}

.rotate-warning__arrow {
  display: none;
}

.rotate-warning__arrow span {
  display: block;
  width: 44px;
  height: 8px;
  background: radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0.9), rgba(0, 140, 240, 0.1));
  border-radius: 999px;
  opacity: 0.85;
  position: relative;
  overflow: hidden;
}

.rotate-warning__arrow span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent 70%);
  transform: translateX(-100%);
  animation: arrow-sweep 2s ease-in-out infinite;
}

.rotate-warning__arrow span:nth-child(1) {
  transform: rotate(12deg) translateX(6px);
}

.rotate-warning__arrow span:nth-child(2)::after {
  animation-delay: 0.2s;
}

.rotate-warning__arrow span:nth-child(3)::after {
  animation-delay: 0.4s;
}

@keyframes zoom-warning-pulse {
  0% {
    opacity: 0.6;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.4);
  }
  100% {
    opacity: 0.6;
    transform: scaleX(1);
  }
}

@keyframes rotate-phone {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(90deg);
  }
  60% {
    transform: rotate(90deg);
  }
  80% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes arrow-sweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  60% {
    transform: translateX(140%);
    opacity: 1;
  }
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .zoom-warning,
  .rotate-warning {
    padding: 1rem;
  }

  .zoom-warning__panel {
    padding: 1.5rem 1.1rem;
  }

  .zoom-warning__headline,
  .rotate-warning__headline {
    flex-direction: column;
  }

  .zoom-warning__headline {
    align-items: flex-start;
  }

  .rotate-warning__headline {
    align-items: center;
  }

  .zoom-warning__percentage {
    align-self: flex-start;
  }
}
