/* The window of the Pass in the free games of the site (template/components/pass-gate.php), in the look of the
   member space: the night of the games, the gold of the Pass. And the lock of the starts of the wheel. */
.lc-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lc-gate *,
.lc-gate *::before,
.lc-gate *::after {
  box-sizing: border-box;
}

.lc-gate :is(a, button):focus-visible {
  outline: 3px solid rgba(255, 185, 56, .9);
  outline-offset: 3px;
}

.lc-gate[hidden],
.lc-gate [hidden] {
  display: none !important;
}

.lc-gate__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 6, 26, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lc-gate__panel {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 22px 20px;
  border: 2px solid #ffd98a;
  border-radius: 26px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(247, 37, 133, .3), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(166, 77, 255, .28), transparent 60%),
    linear-gradient(160deg, #1c0d26 0%, #2f1239 60%, #431446 100%);
  box-shadow: 0 30px 80px rgba(10, 2, 18, .55);
  color: #ffffff;
  text-align: center;
  animation: lc-gate-in .3s ease both;
}

.lc-gate__ticket {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 56px;
  height: 78px;
  margin: 0 auto 14px;
  border-radius: 11px;
  background: linear-gradient(160deg, #fff1c9, #ffd98a 55%, #f4b860);
  box-shadow: 0 14px 30px rgba(10, 2, 18, .5), 0 0 0 4px rgba(255, 217, 138, .3);
  color: #3b163f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  transform: rotate(-4deg);
}

.lc-gate__eyebrow {
  margin: 0 0 6px;
  color: #ffd98a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lc-gate__title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.lc-gate__text {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.5;
}

.lc-gate__once {
  margin: 0 0 18px;
  color: #ffd98a;
  font-size: 14px;
  font-weight: 800;
}

.lc-gate__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px;
  background: #ffd98a;
  box-shadow: 0 12px 26px rgba(255, 217, 138, .25);
  color: #3b163f;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.lc-gate__cta:hover,
.lc-gate__cta:focus {
  color: #3b163f;
}

.lc-gate__alt {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  line-height: 1.45;
}

.lc-gate__alt a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lc-gate__stay {
  margin-top: 12px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .82);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Alone in the window (a level still to come, in the Pass already bought), the way back to the game is the button. */
.lc-gate__cta[hidden] ~ .lc-gate__stay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border-radius: 999px;
  background: #ffd98a;
  box-shadow: 0 12px 26px rgba(255, 217, 138, .25);
  color: #3b163f;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

@keyframes lc-gate-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* The starts of the wheel that wait for the Pass. */
.rdg-temp .lc-lock {
  margin-left: 6px;
  font-size: .9em;
}

@media (prefers-reduced-motion: reduce) {
  .lc-gate__panel {
    animation: none;
  }
}
