.lila-orientation-gate[hidden] {
  display: none !important;
}

.lila-fullscreen-gate[hidden] {
  display: none !important;
}

.lila-orientation-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(45, 181, 255, .38), rgba(7, 42, 96, .9));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overscroll-behavior: none;
  touch-action: none;
}

.lila-orientation-card {
  width: min(88vw, 520px);
  padding: 24px;
  border: 6px solid #f3a61a;
  border-radius: 34px;
  background: linear-gradient(#9e4cdd, #651f9e);
  box-shadow: 0 0 0 5px #fff1a6, 0 20px 60px rgba(0, 0, 0, .4);
  color: #fff;
  text-align: center;
}

.lila-orientation-phone {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 105px;
  margin-bottom: 10px;
  border: 8px solid #fff;
  border-radius: 15px;
  box-shadow: 0 3px 0 rgba(62, 15, 99, .38);
  animation: lilaRotatePhone 1.4s ease-in-out infinite;
}

.lila-orientation-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.lila-orientation-card h2 {
  margin: 5px 0 10px;
  color: #fff;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 3px 0 #451365;
}

.lila-orientation-card p {
  margin: 0;
  color: #fff7dd;
  font-size: clamp(17px, 2.5vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 0 rgba(69, 19, 101, .55);
}

.lila-fullscreen-gate {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(19, 31, 70, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overscroll-behavior: none;
  touch-action: none;
}

.lila-fullscreen-card {
  display: grid;
  justify-items: center;
  width: min(82vw, 520px);
  max-height: calc(100dvh - 28px);
  padding: clamp(14px, 3.2vh, 24px) clamp(18px, 4vw, 30px);
  border: 5px solid #f3a61a;
  border-radius: 30px;
  background: linear-gradient(145deg, #fff8dd, #f5dfad);
  box-shadow: 0 0 0 4px #fff1a6, 0 18px 54px rgba(0, 0, 0, .42);
  color: #43126f;
  text-align: center;
}

.lila-fullscreen-icon {
  width: clamp(52px, 14vh, 82px);
  height: clamp(52px, 14vh, 82px);
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(71, 22, 111, .25));
}

.lila-fullscreen-card h2 {
  margin: clamp(4px, 1.4vh, 9px) 0 5px;
  color: #551783;
  font-size: clamp(23px, 5.4vh, 38px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.lila-fullscreen-card p {
  margin: 0 0 clamp(9px, 2.4vh, 16px);
  color: #553b62;
  font-size: clamp(15px, 3.4vh, 21px);
  font-weight: 750;
  line-height: 1.22;
}

.lila-fullscreen-card button {
  min-width: min(100%, 330px);
  min-height: 48px;
  padding: 10px 22px;
  border: 3px solid #49106f;
  border-radius: 18px;
  background: linear-gradient(#a84de3, #6c259f);
  box-shadow: 0 5px 0 #451365, 0 9px 18px rgba(69, 19, 101, .3);
  color: #fff;
  font: inherit;
  font-size: clamp(17px, 3.7vh, 23px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.lila-fullscreen-card button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #451365, 0 5px 12px rgba(69, 19, 101, .25);
}

html.lila-orientation-blocked,
html.lila-orientation-blocked body,
html.lila-fullscreen-pending,
html.lila-fullscreen-pending body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.lila-gameplay-blocked [data-lila-gameplay-root] {
  pointer-events: none !important;
  user-select: none !important;
}

.lila-global-gates-layer {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  pointer-events: none;
}

.lila-global-gates-layer > .lila-orientation-gate,
.lila-global-gates-layer > .lila-fullscreen-gate,
.lila-global-gates-layer > .time-limit-overlay {
  pointer-events: auto;
}

html.lila-time-priority-pending .lila-orientation-gate,
html.lila-time-priority-pending .lila-fullscreen-gate,
html.lila-time-priority-blocked .lila-orientation-gate,
html.lila-time-priority-blocked .lila-fullscreen-gate {
  display: none !important;
}

html.lila-portable-touch-game body[data-require-mobile-fullscreen="true"] button[id*="fullscreen" i] {
  display: none !important;
}

html.lila-portable-touch-game,
html.lila-portable-touch-game body[data-landscape-game="true"] {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

html.lila-portable-touch-game body[data-landscape-game="true"] {
  width: 100dvw;
  height: 100dvh;
}

@keyframes lilaRotatePhone {
  0%, 25% { transform: rotate(0); }
  70%, 100% { transform: rotate(90deg); }
}

@media (max-width: 420px) {
  .lila-orientation-card {
    padding: 20px 18px;
    border-width: 5px;
  }

  .lila-orientation-phone {
    width: 58px;
    height: 86px;
    border-width: 7px;
  }
}

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

/* A preferência de idioma pertence ao shell global da Home. */
body[data-landscape-game="true"] .lang-switch,
body[data-landscape-game="true"] .language-button,
body[data-landscape-game="true"] [data-action="language"],
body[data-landscape-game="true"] .care-bull-language {
  display: none !important;
}
