.animation-wrapper,
.animation-wrapper-mobile {
  position: relative;
}

@media (min-width: 761px) {
  .animation-wrapper {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .animation-wrapper lottie-player {
    height: 100%;
    min-height: 0;
  }
}

.stage-buttons-stage {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.stage-buttons-stage.is-panel-open .stage-case-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stage-case-button {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(198px, 18.75vw, 335px);
  min-height: 88px;
  padding: 16px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--stage-button-color, #5889F1);
  color: #fff;
  cursor: pointer;
  font-family: faricy-new-web, Arial, sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.55rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  will-change: transform;
  overflow: hidden;
  box-sizing: border-box;
  transition: background-color 420ms ease, box-shadow 420ms ease;
}

.stage-case-button[data-stage-case="ux"] {
  --stage-button-color: #5889F1;
}

.stage-case-button[data-stage-case="ui"] {
  --stage-button-color: #5889F1;
}

.stage-case-button[data-stage-case="identity"] {
  --stage-button-color: #5889F1;
}

.stage-case-button:hover,
.stage-case-button:focus-visible {
  background: #000;
  box-shadow: 0 10px 24px rgba(36, 57, 111, 0.22);
  outline: none;
}

.stage-case-button[data-stage-case="ux"]:hover,
.stage-case-button[data-stage-case="ux"]:focus-visible {
  background: #E69BFF;
}

.stage-case-button[data-stage-case="ui"]:hover,
.stage-case-button[data-stage-case="ui"]:focus-visible {
  background: #B974FF;
}

.stage-case-button[data-stage-case="identity"]:hover,
.stage-case-button[data-stage-case="identity"]:focus-visible {
  background: #FF6982;
}

.stage-case-button:active {
  background: #354d99;
}

.stage-case-button.is-morphing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stage-case-button.is-morphing:hover,
.stage-case-button.is-morphing:focus-visible {
  box-shadow: 0 24px 70px rgba(25, 47, 67, 0.24);
}

.stage-case-button.is-morphing:active {
  background: var(--stage-button-color, #5889F1);
}

.stage-case-button.is-morphing {
  pointer-events: none;
}

@media (max-width: 760px) {
  .animation-wrapper-mobile {
    display: grid;
    height: 100svh;
    min-height: 520px;
  }

  .stage-buttons-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .stage-case-button {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(92px, 28vw, 132px);
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 50%;
    font-size: 0.9rem;
    line-height: 1.05;
    white-space: normal;
  }

  body.mobile-menu-open .stage-buttons-stage {
    z-index: 0;
  }

  body.mobile-menu-open #idbackground {
    z-index: 40;
  }

  body.mobile-menu-open #idhidden {
    z-index: 50;
  }
}
