/* Arcade “rotate to landscape” gate — phones/tablets only (html.touch-mobile). */
.vr-rotate {
  --vr-lime: #c8f000;
  --vr-pink: #ff3d9a;
  --vr-sun: #ffe14a;
  position: fixed;
  inset: 0;
  z-index: 20050;
  display: none;
  align-items: center;
  justify-content: center;
  padding:
    calc(20px + env(safe-area-inset-top, 0px))
    calc(18px + env(safe-area-inset-right, 0px))
    calc(20px + env(safe-area-inset-bottom, 0px))
    calc(18px + env(safe-area-inset-left, 0px));
  color: #fff;
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

html.touch-mobile.vr-rotate-locked .vr-rotate,
html.touch-mobile body.vr-rotate-locked .vr-rotate {
  display: flex;
}

html.touch-mobile.vr-rotate-locked,
html.touch-mobile.vr-rotate-locked body {
  overflow: hidden !important;
}

.vr-rotate-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%, rgba(200, 240, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 55% at 100% 100%, rgba(255, 61, 154, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(255, 225, 74, 0.1), transparent 48%),
    #070b12;
}

.vr-rotate-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

.vr-rotate-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 2px,
    rgba(0, 0, 0, 0.12) 2px 3px
  );
  opacity: 0.45;
  animation: vrRotateScan 5s linear infinite;
}

.vr-rotate-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.vr-rotate-burst > i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6b0 0%, var(--vr-lime) 55%, transparent 72%);
  box-shadow: 0 0 8px rgba(200, 240, 0, 0.55);
  opacity: 0;
  animation: vrRotateSpeck 2.8s ease-in-out infinite;
  animation-delay: var(--d);
  will-change: transform, opacity;
}

.vr-rotate-burst > i:nth-child(3n) {
  background: radial-gradient(circle, #ffd0ea 0%, var(--vr-pink) 55%, transparent 72%);
  box-shadow: 0 0 8px rgba(255, 61, 154, 0.5);
}

.vr-rotate-card {
  position: relative;
  z-index: 1;
  width: min(360px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px 22px 26px;
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, transparent 42%),
    rgba(16, 22, 30, 0.88);
  border: 2.5px solid rgba(200, 240, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 225, 74, 0.25),
    0 0 40px rgba(200, 240, 0, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: vrRotateCardIn 0.45s cubic-bezier(0.2, 1.2, 0.3, 1) both;
}

.vr-rotate-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: var(--vr-sun);
  text-shadow: 0 0 12px rgba(255, 225, 74, 0.45);
}

.vr-rotate-title {
  margin: 0;
  font-family: var(--font-display, 'Lilita One', 'Fredoka', system-ui, sans-serif);
  font-size: clamp(52px, 16vw, 72px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.92;
  background: linear-gradient(180deg, #f4ff9a 0%, var(--vr-lime) 42%, #7ec800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 3px 0 rgba(20, 40, 8, 0.55))
    drop-shadow(0 0 18px rgba(200, 240, 0, 0.45));
  animation: vrRotateTitlePulse 1.8s ease-in-out infinite;
}

.vr-rotate-sub {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(235, 242, 250, 0.9);
  letter-spacing: 0.01em;
}

.vr-rotate-hint {
  margin: 8px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #12180a;
  background: linear-gradient(180deg, #f4ff6a 0%, var(--vr-lime) 100%);
  box-shadow:
    0 0 20px rgba(200, 240, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.vr-rotate-phone {
  position: relative;
  width: 92px;
  height: 120px;
  margin: 4px 0 8px;
  animation: vrRotatePhone 2.4s ease-in-out infinite;
  transform-origin: 50% 55%;
}

.vr-rotate-phone-body {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(160deg, #2a3140 0%, #12161e 100%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(200, 240, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vr-rotate-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 28px;
  height: 5px;
  margin-left: -14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.vr-rotate-phone-screen {
  position: absolute;
  inset: 22px 10px 14px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(200, 240, 0, 0.35), rgba(255, 61, 154, 0.25)),
    #1a2430;
  color: #fff;
  font-family: var(--font-display, 'Lilita One', system-ui, sans-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.vr-rotate-orbit {
  position: absolute;
  inset: -10px;
  border: 2px dashed rgba(200, 240, 0, 0.35);
  border-radius: 50%;
  animation: vrRotateOrbit 4s linear infinite;
  pointer-events: none;
}

.vr-rotate-orbit::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--vr-pink);
  box-shadow: 0 0 10px rgba(255, 61, 154, 0.8);
}

@keyframes vrRotateCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes vrRotateTitlePulse {
  0%,
  100% {
    filter:
      drop-shadow(0 3px 0 rgba(20, 40, 8, 0.55))
      drop-shadow(0 0 14px rgba(200, 240, 0, 0.4));
  }
  50% {
    filter:
      drop-shadow(0 3px 0 rgba(20, 40, 8, 0.55))
      drop-shadow(0 0 26px rgba(200, 240, 0, 0.7));
  }
}

@keyframes vrRotatePhone {
  0%,
  18% {
    transform: rotate(0deg);
  }
  45%,
  70% {
    transform: rotate(90deg);
  }
  100% {
    transform: rotate(90deg);
  }
}

@keyframes vrRotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vrRotateScan {
  from {
    transform: translateY(-8%);
  }
  to {
    transform: translateY(8%);
  }
}

@keyframes vrRotateSpeck {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.6);
  }
  25% {
    opacity: 0.95;
  }
  60% {
    opacity: 0.7;
    transform: translate3d(4px, -16px, 0) scale(1);
  }
  85% {
    opacity: 0.15;
    transform: translate3d(-3px, -28px, 0) scale(0.8);
  }
}

/* Landscape: tap-to-fullscreen chip (auto-FS on rotate blanks Android WebGL). */
.vr-fs-chip {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 20040;
  display: none;
  transform: translateX(-50%);
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body, 'Nunito', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #12180a;
  background: linear-gradient(180deg, #f4ff6a 0%, #c8f000 100%);
  box-shadow:
    0 0 24px rgba(200, 240, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vr-fs-chip.is-on {
  display: block;
  animation: vrFsChipIn 0.35s ease-out both;
}

.vr-fs-chip:active {
  transform: translateX(-50%) scale(0.97);
}

@keyframes vrFsChipIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vr-rotate-phone,
  .vr-rotate-orbit,
  .vr-rotate-scan,
  .vr-rotate-title,
  .vr-rotate-burst > i,
  .vr-rotate-card,
  .vr-fs-chip.is-on {
    animation: none !important;
  }
  .vr-rotate-phone {
    transform: rotate(90deg);
  }
}
