*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  touch-action: manipulation; /* 禁用雙指縮放但保留點擊 */
}

* {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
  line-height: 1.5;
}

*:active,
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  font-family: Arial, sans-serif;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

canvas{
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}



a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100svh;
  width: 56.221889055vh;
  max-width: 100%;
}


body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-self: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.step1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  z-index: 4;
}

.step1-next {
  position: absolute;
  top: 46%;
  width: 40%;
}

.footer {
  position: absolute;
  bottom: 2.5%;
  text-align: center;
  color: #fff;
  font-size: 10px;
  z-index: 1;
}

.result-footer {
  position: absolute;
  bottom: 1%;
  text-align: center;
  color: #fff;
  font-size: 10px;
  z-index: 1;
}


.step1-sounds, .step1-sounds-ipad {
  position: absolute;
  width: 105%;
  top: 16%;
  animation: scaleUp 4s ease-in-out infinite;
}

.step2,
.step3,
.step4,
.step5,
.step6,
.step7,
.step8,
.result {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 4;
}

.step8{
  background-color: #000;
  display: block;
}

.float-img {
  position: absolute;
  width: 11%;
  z-index: -1;
}


.float-img1 {
  top: 0%;
  left: -3%;
  animation: floatAnim 4s ease-in-out infinite;
  animation-delay: 0.3s;
}

.float-img2 {
  top: 11%;
  right: -6%;
  animation: floatAnim2 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

.float-img3 {
  top: -4%;
  left: 38%;
  width:12%;
  animation: floatAnim3 5s ease-in-out infinite;
  animation-delay: 1.2s;
}

.float-img4 {
  top: 48%;
  left: -4%;
  animation: floatAnim 3.5s ease-in-out infinite;
  animation-delay: 0.6s;
  width: 18%;
}

.float-img5 {
  top: 87%;
  left: 6%;
  width : 16%;
  animation: floatAnim2 4.5s ease-in-out infinite;
  animation-delay: 0.4s;
}

.float-img6 {
  top: -4%;
  right: 2%;
  animation: floatAnim3 5.5s ease-in-out infinite;
  animation-delay: 1s;
  width: 8%;
}

.float-img7 {
  bottom: 23%;
  right: 12%;
  animation: floatAnim 4s ease-in-out infinite;
  animation-delay: 0.7s;
  width: 9%;
}

.float-img8 {
  bottom: 19%;
  left: 12%;
  animation: floatAnim2 6s ease-in-out infinite;
  animation-delay: 0.5s;
  width : 14.5%;
}

.float-img9 {
  bottom: 15%;
  right: 37%;
  animation: floatAnim3 8s ease-in-out infinite;
  animation-delay: 0.9s;
  width: 24%;
}

.float-img10 {
  top: 80%;
  right: 17%;
  width: 6.5%;
  animation: floatAnim 3.5s ease-in-out infinite;
  animation-delay: 0.2s;
  
}

.float-img11 {
  top: 10%;
  left: 15%;
  width: 6.5%;
  animation: floatAnim2 4.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.float-img12 {
  top: -7%;
  right: -7%;
  width: 5%;
  animation: floatAnim3 12s ease-in-out infinite;
  animation-delay: 1.1s;
}

.float-img13 {
  top: 20%;
  left: -4%;
  width: 23%;
  animation: floatAnim 4s ease-in-out infinite;
  animation-delay: 0.4s;
}

.float-img14 {
  top: 43%;
  right: 3%;
  width: 7%;
  animation: floatAnim2 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

.float-img15 {
  top: 51%;
  right: -5%;
  animation: floatAnim3 8s linear infinite;
  animation-delay: 0.3s;
  width : 17%;
}

.float-img16 {
  top: 35%;
  right: 76%;
  width: 16%;
  animation: floatAnim 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.float-img17 {
  top: 27%;
  right: 5%;
  width: 21%;
  animation: floatAnim2 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.float-img18 {
  bottom: 10%;
  right: -1%;
  width: 17%;
  animation: floatAnim3 4s ease-in-out infinite;
  animation-delay: 1s;
}

.float-img19 {
  top: 68%;
  left: 7%;
  width: 8%;
  animation: floatAnim 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.step2-text {
  z-index: 1;
}


.step2-start {
  position: absolute;
  bottom: 23%;
  width: 40%;
  z-index: 4;
}

.step3-input-wrapper {
  position: absolute;
  width: 60%;
  top: 34%;
}

.step3-nickname {
  position: absolute;
  width: 100%;
  top: 62%;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
  font-family: "Noto Sans TC", sans-serif;
  border: 0;
  background-color: transparent;
}

.step3-next {
  position: absolute;
  bottom: 10%;
  width: 40%;
  right: 5%;
}

.step3-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 5%;
}



.step4-next {
  position: absolute;
  bottom: 10%;
  width: 40%;
  right: 5%;
}

.step4-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 5%;
}

.step5-next {
  position: absolute;
  bottom: 10%;
  width: 40%;
  right: 5%;
}

.step5-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 5%;
}

.step6{
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
}
.step6-next {
  position: absolute;
  bottom: 10%;
  width: 40%;
  right: 5%;
}

.step6-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 5%;
}

.step7-next {
  position: absolute;
  bottom: 10%;
  width: 60%;
  right: 1%;
}

.step7-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 2%;
}

.step5-list {
  position: absolute;
  width: 95%;
  top: 37%;
  left: 5%;
}



.step4-dot-list {
  position: absolute;
  width: 16%;
  bottom: 23%;
  display: flex;
  justify-content: center;
}

.step4-dot {
  width: 10%;
  position: absolute;
  left: 0;
}

.swiper, .swiper-2 {
  position: absolute;
  max-width: 100%;
  top: 34%;
  width: 100%;
  padding: 0 19%;
}



.swiper-pagination {
  bottom: -1% !important;
}
.swiper-pagination-2 {
  bottom: -1% !important;
} 

.swiper-pagination-bullet {
  margin: 0 3px !important;
}

.swiper-pagination-bullet-active {
  background: #000;
  /* 妳要的顏色，例如黑色、品牌色 */
}


.swiper-pagination-2 {
  bottom: -1% !important;
}

.swiper-2 {
  position: absolute;
  max-width: 100%;
  top: 36%;
  width: 100%;
  padding: 0 19%;
}


.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
}

.step7-list {
  position: absolute;
  top: 40%;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.loading .float-img, .resultLoading .float-img{
  z-index: 0;
}

.loading-img1 {
  top: 4%;
  left: 15%;
  animation: floatAnim 3.0s ease-in-out infinite;
  animation-delay: 0.3s;
}

.loading-img2 {
  top: 27%;
  left: 15%;
  animation: floatAnim2 3.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.loading-img3 {
  top: -5%;
  left: 45%;
  animation: floatAnim3 4.0s ease-in-out infinite;
  animation-delay: 1.2s;
}

.loading-img4 {
  top: 60.6%;
  left: 1.1%;
  width: 22%;
  animation: floatAnim 4.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.loading-img5 {
  top: 92%;
  left: 12%;
  width : 13%;
  animation: floatAnim2 3.0s ease-in-out infinite;
  animation-delay: 0.4s;
}

.loading-img6 {
  top: 81.8%;
  left: 40%;
  width: 9%;
  animation: floatAnim2 3.5s ease-in-out infinite;
  animation-delay: 1.0s;
}

.loading-img7 {
  top: 25.7%;
  left: 80.2%;
  animation: floatAnim 4.0s ease-in-out infinite;
  animation-delay: 0.7s;
}

.loading-img8 {
  top: 75.6%;
  left: -2.4%;
  width: 18%;
  animation: floatAnim2 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.loading-img9 {
  top: 63.9%;
  width: 21%;
  left: 59.1%;
  animation: floatAnim2 5.0s ease-in-out infinite;
  animation-delay: 0.9s;
}

.loading-img10 {
  top: 78.7%;
  left: 60.6%;
  width: 8%;
  animation: floatAnim 3.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.loading-img11 {
  top: 37.3%;
  left: 92.1%;
  width: 9%;
  animation: floatAnim2 4.0s ease-in-out infinite;
  animation-delay: 0.6s;
}

.loading-img12 {
  top: 0;
  right: 0;
  width: 7%;
  animation: floatAnim3 4.5s ease-in-out infinite;
  animation-delay: 1.1s;
}

.loading-img13 {
  top: 11%;
  left: -6%;
  width: 29%;
  animation: floatAnim 3.0s ease-in-out infinite;
  animation-delay: 0.4s;
}

.loading-img14 {
  top: 43%;
  right: 2.9%;
  width: 9%;
  animation: floatAnim2 3.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.loading-img15 {
  top: 51.2%;
  left: 86.3%;
  width: 20%;
  animation: floatAnim3 4.0s ease-in-out infinite;
  animation-delay: 0.3s;
}

.loading-img16 {
  top: 65.6%;
  width: 19%;
  left: 28.3%;

  animation: floatAnim 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.loading-img17 {
  top: 90.8%;
  left: 42.1%;
  width: 25%;
  animation: floatAnim2 3.0s ease-in-out infinite;
  animation-delay: 0.5s;
}

.loading-img18 {
  top: 70.8%;
  left: 91.8%;
  width: 24%;
  animation: floatAnim3 3.5s ease-in-out infinite;
  animation-delay: 1.0s;
}

.loading-img19 {
  width: 10%;
  top: 90%;
  left: 71.5%;
  animation: floatAnim 4.0s ease-in-out infinite;
  animation-delay: 0.5s;
}


.loading-img20 {
  width: 18%;
  top: 31%;
  left: 38.5%;
  animation: floatAnim 4.0s ease-in-out infinite;
  animation-delay: 0.5s;
}

.loading-img21 {
  width: 19%;
  top: 12%;
  left: 53.5%;
  animation: floatAnim3 7.0s ease-in-out infinite;
  animation-delay: 0.5s;
}


.loading-img22 {
  width: 9%;
  top: 7%;
  left: 76.5%;
  animation: floatAnim2 4.0s ease-in-out infinite;
  animation-delay: 0.5s;
}
.loading-img23 {
  width: 24%;
  top: 48%;
  left: -8.5%;
  animation: floatAnim 4.0s ease-in-out infinite;
  animation-delay: 0.5s;
}


.loading, .resultLoading{
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fcfc24;
}

.result-btn {
  position: absolute;
  bottom: 2%;
  width: 32%;
  right: 5%;
}

.result-join-btn {
  left: -3%;
  z-index: 4;
}

.result-share-btn {
  left: 22%;
  z-index: 3;
}

.result-info-btn {
  left: 47%;
  z-index: 2;
}

.result-retry-btn {
  left: 72%;
  z-index: 1;
}

.info-modal,
.gift-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 4;
}

.info-modal-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.info-modal-close {
  z-index: 8;
  position: absolute;
  top: 4%;
  right: 11%;
  width: 12%;
  height: 8%;
}

.gift-modal-close {
  z-index: 8;
  position: absolute;
  top: 4%;
  right: 11%;
  width: 12%;
  height: 8%;
}

.info-pic {
  position: absolute;
  top: 5%;
  left: 4%;
  width: 85%;
  height: 85%;
  overflow: auto;
}

.info-pic-wrapper {
  position: relative;
}

.gift-modal-wrapper {
  position: relative;
}

.go-to-fb {
  position: absolute;
  bottom: 0;
  height: 21.5%;
  width: 78%;
  left: 19%;
}

.desktop-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.result-video-producing {
  position: absolute;
  width: 55%;
  top: 18%;
  aspect-ratio: 9/16;
}

.result-video {
  position: absolute;
  width: 55%;
  top: 18%;
  aspect-ratio: 9/16;
}

.androidLongPress{
  position: absolute;
  bottom: 17%;
  width: 50%;
}


@keyframes floatAnim {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatAnim2 {
  0% {
    transform: translateX(0px) rotate(0deg);
  }

  50% {
    transform: translateX(-20px) rotate(-30deg);
  }

  100% {
    transform: translateX(0px) rotate(0deg);
  }
}


@keyframes floatAnim3 {
  0% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateX(-30px) translateY(50px) rotate(30deg);
  }

  100% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
}


@keyframes scaleUp {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  10% {
    transform: translateY(0%);
  }

  20% {
    transform: translateY(-20%);
  }

  30% {
    transform: translateY(0%);
  }

  40% {
    transform: translateY(20%);
  }

  50% {
    transform: translateY(0%);
  }

  60% {
    transform: translateY(-10%);
  }

  70% {
    transform: translateY(0%);
  }

  80% {
    transform: translateY(5%);
  }

  90% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(0%);
  }
}


.bounce {
  animation: bounce 0.6s linear;
}

.hidden {
  display: none;
}

@keyframes shrinkLoading {
  0% {
    width: 100%;
    height: 100%;
    transform: scale(1);
    opacity: 1;
  }
  100% {
    width: 0;
    height: 0;
    transform: scale(0);
    opacity: 0;
  }
}

.loading.shrink {
  animation: shrinkLoading 0.2s ease forwards;
}


@keyframes expandAnimation {
  0% {    
    width: 0;
    height: 0;
    transform: scale(0);
    opacity: 0;
  }
  100% {
    width: 100%;
    height: 100%;
    transform: scale(1);
    opacity: 1;
  }
}

.step8.expandAnimation {
  animation: expandAnimation 0.2s ease forwards;
}

.pcfooter{
  width: 100%;
  position: fixed;
  bottom: 0;
  background-color: #262626;
  padding: .6%;
}

.capturedPhoto{
  position: absolute;
    top: 6%;
    left: 23%;
    width: 54%;
}
.uploadBtn{
  height: 12%;
  width: 100%;
  position: absolute;
  bottom: 5%;
}
.uploadBtn{
  height: 12%;
  width: 100%;
  position: absolute;
  bottom: 5%;
}
.retry{
  width: 48%;
  height: 7%;
  position: absolute;
  bottom: 26%;
  left: 2%;
}
.share{
  width: 48%;
  height: 5%;
  position: absolute;
  bottom: 26%;
  left: 50%;
}
.readMore{
  width: 100%;
  height: 8%;
  position: absolute;
  bottom: 18%;
  left: 2%;
}

.loadAnimate{
  position: absolute;
  top: 0;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}
.loaderImg{
  width: 27%;
  margin: auto;
  margin-top: 55%;
}
.counterText{
  position: absolute;
    bottom: 6.5%;
    left: 55%;
    color: #fff;
    font-size: 25px;
}

.container {
  background-color: #fff;
  border: 1px solid #aaa;
  padding: 20px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  text-align: left;
  position: absolute;
  top: 30%;
  left: 10%;
  width: 80%;
}

.question {
  margin-bottom: 15px;
  font-size: 16px;
}

.option {
  margin-bottom: 10px;
  font-size: 15px;
}

.next-button {
  display: block;
  margin: 20px auto 0;
  padding: 10px 40px;
  background-color: #2f3e9e;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.next-button:hover {
  background-color: #1e2c8a;
}

input[type="radio"] {
  margin-right: 8px;
}

.disclaimer-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 8px;
  font-family: "Arial", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.disclaimer-container h3, .disclaimer-container h4 {
  margin-bottom: 10px;
  text-align: center;
}

.disclaimer-text {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.disclaimer-text::-webkit-scrollbar {
  width: 6px;
}
.disclaimer-text::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 3px;
}

.consent-check {
  display: flex;
  align-items: center;
  margin: 15px 0;
  font-weight: bold;
  color: #e60073;
}

.contact {
  font-size: 13px;
  color: #333;
}

.next-button {
  display: block;
  margin: 10px auto 0;
  padding: 10px 30px;
  background-color: #2f3e9e;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: not-allowed;
  opacity: 0.6;
}

.next-button.active {
  cursor: pointer;
  opacity: 1;
}

.disclaimerBG{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
#agreeCheckbox{
 margin : 5%;
}
.form-card {
  background: white;
  max-width: 400px;
  margin: 40px auto;
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

h3 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 20px;
}

.field-row {
  margin-bottom: 15px;
}

.field-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.field-row input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.section-label {
  margin: 20px 0 10px;
  font-weight: bold;
}

.radio {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.checkbox-row {
  margin: 20px 0;
  display: flex;
  align-items: center;
  font-size: 15px;
  gap: 8px;
}

#signaturePad {
  border: 2px solid #666;
  border-radius: 8px;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  height: 150px;
  cursor: crosshair;
}

.clear-button {
  background: transparent;
  color: #333;
  border: none;
  text-decoration: underline;
  margin-top: 8px;
  cursor: pointer;
}
.next-button {
  background-color: #8b8b8b;
  color: white;
  border-radius: 10px;
  font-size: 18px;
  padding: 12px;
  width: 100%;
  border: none;
  transition: background 0.3s ease;
  cursor: pointer;
}

.next-button.active {
  background-color: #2f3e9e;
}

.next-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}
.hidden {
  display: none;
}

