*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


* {
  -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;
  height: 100svh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}



img,
picture,
video,
canvas,
svg {
  display: block;
  max-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%;
  overflow: hidden;
}


.step1 {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: auto;
  width: 100%;

}

.card-page {
  position: absolute;
}

.card-page-card {
  position: absolute;
  width: 17%;
}

.card-page-card1 {

  left: 16.6%;
  top: 42.0%;
}

.card-page-card2 {

  top: 28%;
  left: 70.8%;
}

.card-page-card3 {
  top: 28%;
  left: 34.7%;
}

.card-page-card4 {
  left: 16.6%;
  top: 28%;

}

.card-page-card5 {

  left: 52.8%;
  top: 28%;
}

.card-page-card6 {
  top: 42.0%;
  left: 52.8%;
}

.card-page-card7 {

  top: 42.0%;
  left: 34.7%;
}

.card-page-card8 {
  top: 42.0%;
  left: 70.8%;
}

.card-page-card9 {
  left: 21.5%;
  top: 62.0%;
}

.card-page-card10 {
  left: 40.7%;
  top: 62%;
}


.info-modal {
  position: absolute;
  /* top: 0; */
  /* left: 0; */
  width: 100%;
  /* aspect-ratio: 9 / 16; */
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: end;
}


.login-modal {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}


.login-step1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-first-time-btn {
  position: absolute;
  width: 53%;
  height: 10%;
  bottom: 37%;
}

.login-replay-btn {
  position: absolute;
  width: 53%;
  height: 10%;
  bottom: 23%;
}


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

.login-step2-register,
.login-step2-replay {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-form,
.replay-form {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.replay-input-email {
  position: absolute;
  text-align: center;
  top: 36%;
  font-size: 1rem;
  width: 57%;
  left: 29.3%;
  background-color: transparent;
  border: 0;
}

.replay-mail {
  position: absolute;
  width: 69%;
  height: 4%;
  top: 46%;
}

.register-mail {
  position: absolute;
  width: 69%;
  height: 3%;
  top: 47%;
}

.form-input-email {
  position: absolute;
  text-align: center;
  top: 17%;
  font-size: 1rem;
  width: 57%;
  left: 29.3%;
  background-color: transparent;
  border: 0;
}

.form-re-email {
  position: absolute;
  text-align: center;
  top: 24.3%;
  font-size: 1rem;
  width: 57%;
  left: 29.3%;
  background-color: transparent;
  border: 0;
}

.register-checked {
  width: 5%;
  left: 13.3%;
  position: absolute;
  top: 32.3%;
}

.register-check-btn {
  position: absolute;
  width: 76%;
  height: 7%;
  top: 32%;
  z-index: 2;
}

.register-prev-btn {
  position: absolute;
  width: 34%;
  height: 7%;
  left: 16%;
  top: 52%;
}

.register-submit-btn {
  position: absolute;
  width: 34%;
  height: 7%;
  right: 16%;
  top: 52%;
}

.replay-prev-btn {
  position: absolute;
  width: 34%;
  height: 7%;
  left: 16%;
  top: 52%;
}

.replay-submit-btn {
  position: absolute;
  width: 34%;
  height: 7%;
  right: 16%;
  top: 52%;
}

.redeem-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.step1-content {
  position: relative;

}

.show-redeem-location-btn {
  position: absolute;
  width: 30%;
  height: 2%;
  top: 73.5%;
  left: 35%;
}

.stage1-mark {
  top: 13%;
  left: 18%;
}

.mark.point::after {
  position: absolute;
  top: 24px;
  right: -16px;
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url(assets/%E7%AE%AD%E9%A0%AD.png);
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  animation: slideDiagonal 1s ease-in-out infinite;
}

.stage2-mark {
  top: 16.8%;
  left: 36.1%;
}

.stage3-mark {
  top: 22.8%;
  left: 38%;
}

.stage4-mark {
  top: 26.9%;
  left: 20.5%;
}

.stage5-mark {
  top: 27.6%;
  left: 56.8%;
}

.stage6-mark {
  top: 31.3%;
  left: 40.5%;
}

.stage7-mark {
  top: 36.53%;
  left: 51.4%;
}

.stage8-mark {
  top: 39.86%;
  left: 69.9%;
}

.modal-confirm {
  position: absolute;
  bottom: 35%;
  width: 38%;
  height: 8%;
}

.mark {
  position: absolute;
  height: 2%;
  width: 10%;
  box-sizing: content-box;
  padding: 0px 10px 29px 0px;
}

.mark img:first-of-type {
  display: none;
}

.active img:first-of-type {
  display: block;
}

.scale {
  animation: pulseScale 1.5s infinite;
  transform-origin: center;
}

.redeem-btn {
  position: absolute;
  bottom: 3%;
  right: 3%;
  width: 38%;
}

.card-page-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}


.card-page-tips {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-page-tips-btn {
  position: absolute;
  bottom: 41%;
  width: 36%;
  height: 6%;
}

.card-page-choose-char-btn {
  position: absolute;
  bottom: 10%;
  height: 6%;
  width: 41%;
  left: 7%;
}

.card-page-redeem-btn {
  position: absolute;
  bottom: 10%;
  height: 6%;
  width: 41%;
  right: 7%;
}

.card-page-to-map-btn {
  position: absolute;
  bottom: 3%;
  width: 87%;
  height: 6%;
}

.card-page-discount-event-btn {
  position: absolute;
  bottom: 26%;
  width: 24%;
  height: 5%;
  right: 11%;
}

.not-yet {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
}

.redeem-step1,
.redeem-step2,
.redeem-step3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.redeem-location {
  position: absolute;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.redeem-step1-content,
.redeem-step2-content,
.redeem-step3-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.redeem-location-content {
  position: absolute;
  top: 5%;
  bottom: 5%;
  overflow: auto;
}

.redeem-location-close-btn {
  position: absolute;
  top: 5%;
  right: 6%;
  width: 13%;
  height: 8%;
}

.redeem-wrapper {
  margin-left: 5%;
}

.redeem-step1-pic {
  margin-left: 5%;
}

.redeem-step1-confirm-btn {
  position: absolute;
  bottom: 16%;
  width: 49%;
  height: 7%;
}

.redeem-step1-close-btn {
  position: absolute;
  bottom: 9%;
  width: 47%;
  height: 6%;
}

.redeem-step1-location-btn {
  position: absolute;
  bottom: 58%;
  width: 40%;
  height: 5%;
}

.redeem-step3-close-btn {
  position: absolute;
  top: 45%;
  width: 46%;
  height: 8%;
}

.redeem-input {
  position: absolute;
  top: 18%;
  width: 57%;
  font-size: 1.4rem;
  text-align: center;
  border: 0;
  background-color: transparent;
}

.number {
  position: absolute;
  width: 17%;
  height: 10%;
}

.number-1 {
  left: 19%;
  top: 26%;
}

.number-2 {
  left: 41%;
  top: 26%;
}

.number-3 {
  left: 63%;
  top: 26%;
}

.number-4 {
  left: 19%;
  top: 39%;
}

.number-5 {
  left: 41%;
  top: 39%;
}

.number-6 {
  left: 63%;
  top: 39%;
}

.number-7 {
  left: 19%;
  top: 51%;
}

.number-8 {
  left: 41%;
  top: 51%;
}

.number-9 {
  left: 63%;
  top: 51%;
}


.number-0 {
  left: 41%;
  top: 63.4%;

}

.number-clean {
  left: 63%;
  top: 63.4%;

}

.redeem-step2-go-back {
  position: absolute;
  width: 40%;
  height: 7%;
  bottom: 6%;
  left: 8%;
}


.redeem-step2-confirm {
  position: absolute;
  width: 40%;
  height: 7%;
  bottom: 6%;
  right: 8%;
}

.not-yet-modal,
.wrong-location-modal,
.finish-modal,
.end-modal,
.end-and-complete {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.not-yet-modal-content,
.wrong-location-content,
.finish-content,
.end-content,
.end-and-complete-content {
  position: relative;
  display: flex;
  justify-content: center;
}

.not-yet-modal-close,
.wrong-location-close,
.finish-close,
.end-close,
.end-and-complete-close {
  position: absolute;
  top: 3%;
  right: 6%;
  width: 11%;
  height: 8%;
}

.wrong-location-start {
  position: absolute;
  bottom: 4%;
  width: 89%;
  height: 76%;
}

.finish-start {
  position: absolute;
  bottom: 4%;
  width: 89%;
  height: 76%;
}

.lens {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stop-record-btn {
  position: absolute;
  bottom: 8%;
  width: 29%;
}

.stop-record-hints {
  position: absolute;
  bottom: 19%;
  width: 54%;
  left: 2%;
}

.thanks-to-tell-hints {
  position: absolute;
  bottom: 22%;
  width: 54%;
  left: 2%;
}

.record-result {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.takepic-result {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-video {
  box-sizing: content-box;
  position: absolute;
  top: 4%;
  width: 70%;
  border: 4px solid #fff;
  aspect-ratio: 9 /16;
}

.result-takepic {
  box-sizing: content-box;
  position: absolute;
  top: 4%;
  width: 70%;
  border: 4px solid #fff;
  aspect-ratio: 9 /16;
}

.record-download {
  position: absolute;
  bottom: 16%;
  height: 6%;
  width: 43%;
  left: 6%;
}

.record-replay {
  position: absolute;
  bottom: 16%;
  height: 6%;
  width: 43%;
  right: 6%;
}

.record-get-card {
  position: absolute;
  bottom: 6%;
  height: 7%;
  width: 88%;
}

.takepic-result-get-card {
  position: absolute;
  bottom: 15%;
  height: 7%;
  width: 88%;
}

.takepic-result-share {
  position: absolute;
  bottom: 6%;
  height: 7%;
  width: 43%;
  right: 6%;
}

.takepic-result-replay {
  position: absolute;
  bottom: 6%;
  height: 7%;
  width: 43%;
  left: 6%;
}

.get-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.unrevealed-card {
  position: absolute;
  width: 80%;
}

.unrevealed-card-btn {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
}

.reveal-btn {
  position: absolute;
  bottom: 6%;
  width: 38%;
}

.reveal-char {
  position: absolute;
  width: 68%;
}

.get-card-progress {
  position: absolute;
  width: 60%;
  bottom: 12%;
}

.get-card-map {
  position: absolute;
  width: 60%;
  bottom: 4%;
}

.select-char-page,
.take-photo-result,
.discount-event-page {
  position: absolute;
}

.take-photo-result,
.select-char-page,
.discount-event-page {
  display: flex;
  justify-content: center;
  align-items: center;
}

.discount-event-page {

  z-index: 1;
}


.discount-event-content {
  position: absolute;
  top: 14%;
  bottom: 5%;
  left: 5%;
  right: 5%;
  overflow: auto;
}

.discount-event-content img {
  margin-top: 6%;
}

.discount-event-close {
  position: absolute;
  width: 26%;
  height: 6%;
  left: 5%;
  top: 3%;
}

.left,
.right,
.select-char-take,
.select-char-close {
  position: absolute;
}

.left {
  top: 37%;
  left: 0;
  width: 16%;
  height: 11%;
}

.right {
  top: 37%;
  right: 0;
  width: 16%;
  height: 11%;
}

.select-char-take {
  height: 7%;
  width: 43%;
  bottom: 13%;
  left: 6%;
}

.capture-btn {
  position: absolute;
  width: 37%;
  bottom: 22%;
}

.select-char-lock {
  position: absolute;
  height: 7%;
  width: 43%;
  bottom: 13%;
  left: 6%;
  z-index: 2;
}

.select-char-close {
  height: 7%;
  width: 43%;
  bottom: 13%;
  right: 6%;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;

}

.stage-loading {
  display: flex;
  justify-content: center;
  align-items: center;
}


.frame {}

.select-char-content.lock::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-image: url(assets/%E5%B0%9A%E6%9C%AA%E8%A7%A3%E9%8E%96.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.select-char-content {
  border: 4px solid #fff;
  position: absolute;
  width: 67%;
  top: 5%;
  animation: scaleUp 0.2s ease-out forwards;
}

.result-pic {
  position: absolute;
  aspect-ratio: 9 / 16;
  width: 66%;
  top: 6%;
  border: 4px solid #fff;
}

.retake-pic {
  width: 62%;
  height: 6%;
  bottom: 12%;
  position: absolute;
}

.take-photo-close {
  width: 62%;
  height: 7%;
  bottom: 4%;
  position: absolute;
}

.scale-up {
  animation: scaleUp 0.6s ease-out forwards;
}

.hidden {
  display: none;
}


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

  50% {
    transform: scale(1.2);
  }

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

@keyframes slideDiagonal {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-3px, 2px);
    /* 左下 */
  }

  100% {
    transform: translate(0, 0);
    /* 回到原點 */
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}
