/* ifs-standard-rotate.css v20261130lsag1
 * Shared "ROTATE TO LANDSCAPE / PORTRAIT" overlay (Zombie Attack reference).
 * Lead Sites, Nov 30 2026.
 */
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

.ifs-rotate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: #0a061a;
  color: #2ad1d6;
  font: 700 16px/1.4 "Press Start 2P", monospace;
  z-index: 2147483647;
  touch-action: none;
  box-sizing: border-box;
}
.ifs-rotate > .ifs-rot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.ifs-rotate .ifs-rot-ph {
  width: 46px;
  height: 78px;
  border: 4px solid #2ad1d6;
  border-radius: 9px;
  animation: ifsRotPhone 1.6s ease-in-out infinite;
}
.ifs-rotate[data-ifs-rotate="portrait"] .ifs-rot-ph {
  width: 78px;
  height: 46px;
  animation-name: ifsRotPhonePortrait;
}
.ifs-rotate .ifs-rot-title {
  font-size: 16px;
  letter-spacing: 1px;
  color: #2ad1d6;
}
.ifs-rotate .ifs-rot-sub {
  font-size: 10px;
  color: #aaa;
  max-width: 20rem;
  line-height: 1.6;
}
.ifs-rotate .rotate-continue-btn,
.ifs-rotate .ifs-rot-continue {
  font-family: Arial, Helvetica, sans-serif;
  display: block;
  margin: 4px auto 0;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: #2ad1d6;
  color: #06252a;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
}

/* Default: phones held in the wrong orientation, optionally gated by a "when" class on body. */
.ifs-rotate[data-ifs-rotate-always] { display: flex; }
@media (hover: none) and (pointer: coarse) and (orientation: portrait) and (max-width: 900px) {
  body.ifs-rotate-needed .ifs-rotate[data-ifs-rotate="landscape"],
  body.demo-active .ifs-rotate[data-ifs-rotate="landscape"],
  body.za-playing .ifs-rotate[data-ifs-rotate="landscape"],
  body.mg-active.mg-portrait .ifs-rotate[data-ifs-rotate="landscape"] {
    display: flex;
  }
}
@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  body.ifs-rotate-needed .ifs-rotate[data-ifs-rotate="portrait"],
  body.demo-active .ifs-rotate[data-ifs-rotate="portrait"],
  .ifs-rotate[data-ifs-rotate="portrait"][data-ifs-rotate-always] {
    display: flex;
  }
}

@keyframes ifsRotPhone {
  0%, 20% { transform: rotate(0); }
  50%, 70% { transform: rotate(90deg); }
  100% { transform: rotate(0); }
}
@keyframes ifsRotPhonePortrait {
  0%, 20% { transform: rotate(0); }
  50%, 70% { transform: rotate(-90deg); }
  100% { transform: rotate(0); }
}
