/* 2025 Gachapon Event CSS */

/* ------------通用類別------------ */
.z-1 {
  z-index: 1;
}
.z-100 {
  z-index: 100;
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}

.event-primary-bg {
  background-color: #8b0808;
}

.event-primary-text {
  color: #75230c;
}
.flex-1 {
  flex: 1;
}

/* ------------app活動專屬------------*/

.app-event {
  background: url(../images/2025_app_exclusive/main-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.app-event-warp {
  width: 75%;
}

.deco-bg {
  top: 10%;
  width: 100%;
  position: absolute;
  z-index: 1;
}

.dot-deco-right {
  right: 5%;
  top: 10%;
  width: 20%;
  z-index: -1;
}

.dot-deco-left {
  left: 5%;
  bottom: 10%;
  width: 20%;
  z-index: -1;
}
.event-title {
  aspect-ratio: 149/111;
}

.code-number {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff7ea;
  top: 82%; /* 圖片高度的 70% */
  left: 40%; /* 圖片寬度的 50% */
  text-shadow: 0 0 6px #ffff0b;
  transform: translate(-50%, -50%);
}

.copy-icon {
  top: 82%;
  left: 85%;
  transform: translate(-50%, -50%);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #fff7ea;
  text-shadow: 0 0 6px #ffff0b;
  cursor: pointer;
}

.download-btn-group {
  gap: 1rem;
  padding: 0 1rem;
}

.download-btn {
  background: linear-gradient(45deg, #a70d29 0%, #ff3a18 100%);
  box-shadow: inset 0px 0px 10px #ff3a18, inset 0px 0px 20px #3e0a00;
  height: 6vw;
  max-height: 5rem;
  color: #fff7ea;
  font-size: clamp(1rem, 2vw, 1.5rem);
  border-radius: 15px;
  flex: 1;
  min-height: 4rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
}

.event-directions {
  padding: 2rem;
  border-radius: 50px 50px 0 0;
  border: 1px solid #ffd56a;
  box-shadow: 0 -10px 15px#d28140, inset 0px 0px 10px #ff3a18,
    inset 0px 0px 20px #3e0a00;
}

.directions-btn {
  background: linear-gradient(0deg, #b2af94 0%, #ece8e0 30%);
  flex: 1;
  padding: 1rem;
  border-radius: 15px 15px 0 0;
  text-align: center;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #544441;
}
.directions-btn.active {
  background: #fff6df;
  color: #ff3a18;
}
.directions-content {
  background-color: #fff6df;
  padding: 1rem;
  border: 1px solid #fff6df;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.directions-content > div {
  padding: 0 3rem;
}

.install-title-block {
  gap: 3rem;
}

.install-title-warp {
  flex: 0 0 15%;
  aspect-ratio: 1/1;
}

.install-title {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #ea613e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: clamp(1rem, 2vw, 1.3rem);
  word-break: break-word;
  box-shadow: inset 0px 0px 10px #ff9718, inset 0px 0px 20px #e94424,
    #e1cb70 5px 0px 10px;
  text-shadow: -1px -1px 0 #e94424, 1px -1px 0 #e94424, -1px 1px 0 #e94424,
    1px 1px 0 #e94424;
  line-height: 1.4rem;
}

.install-content {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.event-content {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #8b0808;
  line-height: 1.4rem;
}

.event-content > li {
  display: flex;
  align-items: top;
  gap: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #8b0808;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.event-content > li::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-image: url(../images/2025_app_exclusive/gift-coin.webp);
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.animate-sacle-L {
  animation: sacle-L 3s infinite;
}

@keyframes sacle-L {
  0% {
    transform: translate(0%, 0%) scale(1);
  }
  50% {
    transform: translate(-20%, -5%) scale(1.1);
  }
  100% {
    transform: translate(0%, 0%) scale(1);
  }
}
.animate-sacle-R {
  animation: sacle-R 3s infinite;
}
@keyframes sacle-R {
  0% {
    transform: translate(0%, 0%) scale(1);
  }
  50% {
    transform: translate(20%, -5%) scale(1.1);
  }
  100% {
    transform: translate(0%, 0%) scale(1);
  }
}

.left-side {
  animation: fade-in-L 3s 1;
}

@keyframes fade-in-L {
  0% {
    transform: translate(-20%, 0%);
    opacity: 0;
  }
  100% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
}

.right-side {
  animation: fade-in-R 3s 1;
}

@keyframes fade-in-R {
  0% {
    transform: translate(20%, 0%);
    opacity: 0;
  }

  100% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
}

@media screen and (max-width: 1024px) {
  .install-title-warp {
    flex: 0 0 25%;
  }
}
@media screen and (max-width: 820px) {
  .app-event-warp {
    width: 100%;
  }

  .app-event-warp:first-of-type > div {
    min-height: 45vh;
  }

  .app-event-warp .left-side {
    position: relative;
    z-index: 2;
  }

  .app-event-warp .right-side {
    position: absolute;
    left: 70%;
    transform: translateX(-50%);
    z-index: 2;
  }
  @keyframes fade-in-R {
    0% {
      transform: translate(20%, 0%);
      opacity: 0;
    }

    100% {
      transform: translate(-50%, 0%);
      opacity: 1;
    }
  }
}

@media screen and (max-width: 430px) {
  .app-event-warp:first-of-type > div {
    flex-direction: column;
    justify-content: end !important;
  }

  .app-event-warp:first-of-type > div {
    min-height: 70vh;
  }

  .app-event-warp .left-side {
    width: 100% !important;
  }

  .app-event-warp .right-side {
    left: 50%;
    top: 0;
    z-index: 0;
    width: 100% !important;
  }

  .download-btn-group {
    margin-bottom: 2rem;
  }

  .event-directions {
    margin: 0 -30px;
    padding: 1rem;
    border-radius: 25px 25px 0 0;
  }

  .directions-content > div {
    padding: 0 0.5rem;
  }

  .install-title-block {
    gap: 1.5rem;
  }

  .install-title-warp {
    flex: 0 0 30%;
  }

  .install-title {
    line-height: 1rem;
  }

  .deco-bg {
    top: 48%;
  }
}

@media screen and (max-width: 375px) {
  .install-title-block {
    flex-direction: column;
  }

  .app-event-warp:first-of-type > div {
    min-height: 90vh;
  }

  .install-title {
    width: 120px;
    height: 120px;
  }
}
