#appInstallPromotion {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  z-index: 10;
  text-align: center;
  padding-bottom: 2em;
}

.installing-wrapper {
  margin: auto;
  width: 5.81em;
  height: 6.48em;
  background: #fef9eb;
  border-radius: 0.3em;
  display: none;
}

.installing-title {
  height: 1.36em;
  border-bottom: 0.02em solid #eee6d9;
  font-weight: 400;
  color: #000000;
  line-height: 1em;
}

.installing-title > span {
  font-size: 0.44em;
  line-height: 1.36em;
}

.installing-loading {
  height: 4.16em;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.installing-description {
  font-weight: 400;
  color: #6e6e6e;
  display: flex;
  align-items: center;
}

.installing-description span {
  font-size: 0.26em;
  margin: auto;
}

#appInstallPromotion.installing {
  display: flex;
}

#appInstallPromotion.installing .installing-wrapper {
  display: block;
}

.complete-wrapper {
  margin: auto auto 0;
  width: 5.81em;
  height: 6.48em;
  background: #fef9eb;
  border-radius: 0.3em;
  display: none;
}

.complete-title {
  height: 1.36em;
  border-bottom: 0.02em solid #eee6d9;
  font-weight: 400;
  color: #000000;
  line-height: 1em;
}

.complete-title > span {
  font-size: 0.44em;
  line-height: 1.36em;
}

.success-image {
  margin: 1.2em auto 1em;
}

.success-image img {
  height: 1.56em;
  width: 1.56em;
}

.play-btn {
  margin: auto;
  width: 2.75em;
  height: 0.73em;
  background: #675e19;
  border-radius: 0.37em;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn:active {
  transform: scale(0.9);
}

.play-btn > span {
  font-weight: 400;
  font-size: 0.3em;
  color: #ffffff;
}

#appInstallPromotion.complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#appInstallPromotion.complete .complete-wrapper {
  display: block;
}

#appInstallPromotion.complete .close-btn {
  width: 0.5em;
  height: 0.5em;
  background: url("./icon_close_white.png") no-repeat center;
  background-size: 0.4em 0.4em;
  margin: 0.5em auto auto;
  opacity: 0;
}

@property --n {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

@keyframes count {
  0% {
    --n: 0;
  }

  10% {
    --n: 20;
  }

  20% {
    --n: 40;
  }

  30% {
    --n: 60;
  }

  100% {
    --n: 99;
  }
}

.loading-wrapper {
  height: 1.2em;
  width: 1.2em;
  display: flex;
  align-items: center;
  margin-top: auto;
}

.loading-number {
  display: flex;
  margin-bottom: auto;
}

.loading-number::after {
  animation: count 15s linear;
  animation-fill-mode: forwards;
  counter-reset: n calc(0 + var(--n));
  content: counter(n) "%";
  font-weight: 400;
  font-size: 0.3em;
  color: #000000;
  width: 2em;
  text-align: right;
}

.loading,
.loading > div {
  position: relative;
  box-sizing: border-box;
}

.loading {
  display: block;
  color: #000;
}

.loading > div {
  display: inline-block;
  float: none;
  background-color: currentColor;
  border: 0 solid currentColor;
}

.loading {
  width: 0.32em;
  height: 0.32em;
  transform: rotate(22.5deg) scale(3);
  margin: auto;
}

.loading > div {
  position: absolute;
  width: 0.02em;
  height: 0.1em;
  margin: 0.02em;
  margin-top: -0.05em;
  margin-left: -0.01em;
  border-radius: 0;
  animation: line-spin-clockwise-fade 1s infinite ease-in-out;
}

.loading > div:nth-child(1) {
  top: 15%;
  left: 50%;
  transform: rotate(0deg);
  animation-delay: -0.875s;
}

.loading > div:nth-child(2) {
  top: 25.2512626585%;
  left: 74.7487373415%;
  transform: rotate(45deg);
  animation-delay: -0.75s;
}

.loading > div:nth-child(3) {
  top: 50%;
  left: 85%;
  transform: rotate(90deg);
  animation-delay: -0.625s;
}

.loading > div:nth-child(4) {
  top: 74.7487373415%;
  left: 74.7487373415%;
  transform: rotate(135deg);
  animation-delay: -0.5s;
}

.loading > div:nth-child(5) {
  top: 84.9999999974%;
  left: 50.0000000004%;
  transform: rotate(180deg);
  animation-delay: -0.375s;
}

.loading > div:nth-child(6) {
  top: 74.7487369862%;
  left: 25.2512627193%;
  transform: rotate(225deg);
  animation-delay: -0.25s;
}

.loading > div:nth-child(7) {
  top: 49.9999806189%;
  left: 15.0000039834%;
  transform: rotate(270deg);
  animation-delay: -0.125s;
}

.loading > div:nth-child(8) {
  top: 25.2506949798%;
  left: 25.2513989292%;
  transform: rotate(315deg);
  animation-delay: 0s;
}

@keyframes line-spin-clockwise-fade {
  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}
