@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');

html.oq-intro-pending body { visibility: hidden; }
html.oq-intro-active, html.oq-intro-active body { overflow: hidden; }
#oq-intro {
  --oq-pink: #ff0080;
  --oq-cream: #fffaf0;
  --oq-switch-width: clamp(180px, 48vw, 232px);
  --oq-hand-width: clamp(190px, 48vw, 224px);
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: #05070c;
  color: var(--oq-cream);
  visibility: visible;
  overflow: auto;
  opacity: 1;
  isolation: isolate;
  transition: opacity 520ms cubic-bezier(.22, .7, .2, 1);
  font-family: inherit;
}
#oq-intro[open] { display: grid; place-items: center; }
#oq-intro::backdrop { background: transparent; }
#oq-intro .oq-intro-center {
  display: grid;
  justify-items: center;
  gap: 32px;
  max-width: 100%;
  padding: 48px 0 180px;
}
#oq-intro .oq-intro-stage {
  grid-row: 2;
  position: relative;
  width: var(--oq-switch-width);
  height: calc(var(--oq-switch-width) * .48);
}
#oq-intro .oq-intro-switch {
  appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  margin: 0;
  border: 2px solid #b72d68;
  border-radius: 999px;
  background: #72143f;
  color: var(--oq-cream);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 60px #b51a5720, inset 0 2px 6px #0006;
  transition: background 220ms, border-color 220ms, box-shadow 300ms;
}
#oq-intro .oq-intro-switch:hover { border-color: #f272ae; }
#oq-intro .oq-intro-switch:focus-visible,
#oq-intro .oq-intro-skip:focus-visible {
  outline: 3px solid #ffe04b;
  outline-offset: 8px;
}
#oq-intro .oq-intro-thumb {
  display: block;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--oq-cream);
  box-shadow: 0 4px 14px #0005;
  transition: transform 350ms cubic-bezier(.2, .9, .2, 1);
}
#oq-intro .oq-intro-hand {
  position: absolute;
  width: var(--oq-hand-width);
  height: auto;
  top: 62%;
  left: calc(var(--oq-switch-width) * .24 - var(--oq-hand-width) * .43);
  pointer-events: none;
  user-select: none;
  transform: rotate(-12deg);
  transform-origin: 43% 4%;
  animation: oq-hand-hint 1900ms ease-in-out 450ms 3;
  transition: opacity 140ms, transform 250ms;
}
#oq-intro .oq-intro-caption {
  grid-row: 1;
  margin: 0;
  max-width: 100%;
  padding-top: 0;
  color: var(--oq-cream);
  font-family: 'Oswald', 'Franklin Gothic Cond', sans-serif;
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  transition: opacity 220ms;
}
#oq-intro .oq-intro-skip {
  appearance: none;
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  margin: 0;
  border: 0;
  padding: 12px 8px;
  background: transparent;
  color: #b7b6bc;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}
#oq-intro.is-on .oq-intro-switch {
  background: var(--oq-pink);
  border-color: var(--oq-pink);
  box-shadow: 0 0 60px #ff008022;
}
#oq-intro.is-on .oq-intro-thumb { transform: translateX(calc(var(--oq-switch-width) * .52)); }
#oq-intro.is-on .oq-intro-hand { animation: none; opacity: 0; transform: translateY(12px) rotate(-12deg); }
#oq-intro.is-on .oq-intro-caption,
#oq-intro.is-on .oq-intro-skip { opacity: 0; }
#oq-intro.is-revealing { opacity: 0; pointer-events: none; }
@keyframes oq-hand-hint {
  0%, 100% { transform: translateY(5px) rotate(-12deg); }
  45%, 65% { transform: translateY(-7px) rotate(-8deg); }
}
@media (max-height: 440px) {
  #oq-intro { --oq-switch-width: 166px; --oq-hand-width: 136px; }
  #oq-intro .oq-intro-center { padding: 16px 0 92px; gap: 18px; }
  #oq-intro .oq-intro-caption { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #oq-intro, #oq-intro *, #oq-intro *::before, #oq-intro *::after {
    animation: none !important;
    transition: none !important;
  }
}
