/* "Rotate your device" screen: only shown on a phone/tablet held upright (JS sets body.portrait). Measurements in vw (the screen is upright). */

#rotate {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  background: #8b3fc9 url(../assets/ui/bg-gire.webp) center / cover no-repeat;
  text-align: center;
  padding: var(--sat) 0 var(--sab);
}
body.portrait #rotate {
  display: flex;
}
#rotate .logo {
  position: static;
  width: 78vw;
  max-width: none;
  margin: 4.6vh 0 0;
}
.rot-phone {
  position: relative;
  width: 70vw;
  aspect-ratio: 1280 / 1081;
  margin-top: 4vh;
  background: url(../assets/ui/rotate-phone.webp) center / contain no-repeat;
  filter: drop-shadow(0 1.2vw 1.2vw rgba(60, 20, 90, 0.35));
  animation: rockphone 2.6s ease-in-out infinite;
}
@keyframes rockphone {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rot-phone {
    animation: none;
  }
}
.rot-panel {
  width: 96vw;
  margin-top: 2vh;
  padding: 6.4vw 4vw 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4vw;
  border: 0 solid transparent;
  border-image: url(../assets/ui/bubble.webp) 110 300 110 300 fill / 6.4vw 17vw 6.4vw 17vw stretch;
}
.rot-panel b {
  font-size: 8.2vw;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  -webkit-text-stroke: 1.1vw var(--navy);
  paint-order: stroke fill;
}
.rot-panel span {
  font-size: 4.6vw;
  font-weight: 700;
  line-height: 1.15;
  -webkit-text-stroke: 0.6vw var(--navy);
  paint-order: stroke fill;
}

/* panel entrance: they rise with a slight overshoot (180 ms); buttons sink when pressed (already in .btn:active) */
.screen:not([hidden]) > .panel {
  animation: panelin 0.2s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes panelin {
  from {
    transform: scale(0.94) translateY(2%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* reduced motion: no pulses or animated entrances */
body.reduced *,
body.reduced *::before {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}

/* End of css/06-rotate.css (complete file). */
