:root {
  /* color */
  --color-primary: #10408d;
  --color-primary-dark: #233d8b;
  --color-black: #000000;
  --color-gray: #727171;
  --color-white: #ffffff;
  --color-cyan: #00e8fc;
  --color-light-gray: #b4b4b5;
  --color-bright-blue: #0000ff;
  /* button--color */
  --btn-bg: linear-gradient(90deg, #4ffefb 0%, #003ad4 90%);
  --btn-gloss: linear-gradient(180deg,
      #ffffff6b 0%,
      #ffffff33 8%,
      #ffffff0f 16%,
      transparent 24%);

  /* font */
  --font-zh: "Noto Sans TC", sans-serif;
  --font-en: "rift-soft", sans-serif;
  /* font__weight */
  --font-weight-medium: 500;
  --font-weight-regular: 400;
  /* font__size */
  --zh-font-size-sm: 3.32cqw;
  --zh-font-size-md: 3.83cqw;
  --zh-font-size-lg: 4.35cqw;
  --en-font-size-sm: 3.44cqw;
  --en-font-size-lg: 7.44cqw;

  /* editor */
  --filter-editor: invert(11%) sepia(94%) saturate(7199%) hue-rotate(5deg) brightness(105%) contrast(113%);
}

.img {
  height: auto;
  padding: 0;
  margin: 0;
}
.page-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
[hidden] {
  display: none !important;
}
/*#region - SPLASH - */
.splash {
  isolation: isolate;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--color-white) url("/resources/bg-home.webp") no-repeat center top / cover;
}

.sp__brand {
  position: relative;
  z-index: 1;
  width: 58cqw;
  margin-top: 30cqh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2cqw;
}

.sp__logo {
  display: block;
  width: 80%;
  height: auto;
}

.sp__subtitle {
  display: block;
  width: 66%;
  height: auto;
}

.sp__bar-wrap {
  position: relative;
  z-index: 1;
  width: 62cqw;
  margin-top: 8cqw;
  gap: 2.5cqw;
}

.sp__bar-bg {
  height: 1cqw;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.sp__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--btn-bg);
  box-shadow: 0 0 2.8cqw color-mix(in srgb, var(--color-cyan) 42%, transparent);
}

.sp__pct {
  color: var(--color-primary-dark);
  font-size: 3.1cqw;
  line-height: 1;
  letter-spacing: 0.2cqw;
  font-variant-numeric: tabular-nums;
}

.sp__footer {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
/*#endregion */

/* #region - BACKGROUND - */
.bg-layer {
  background-image: url(/resources/bg.webp);
  background-size: cover;
}
.bg-deco {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.bg-deco--top {
  top: 0;
}

.bg-deco--bottom {
  bottom: 0;
}
/* #endregion */

/* #region - LOGO - */
.logo {
  width: 64.62cqw;
}

/* #endregion */

/* #region - BUTTON - */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn--primary {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43.59cqw;
  aspect-ratio: 17 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999cqw;
  background: var(--btn-bg);
  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0.45cqw;
    left: 3%;
    width: 94%;
    height: 92%;
    border-radius: 999cqw;
    background: var(--btn-gloss);
    pointer-events: none;
  }
}
/* #endregion */

/* #region - TEXT - */
.body-text {
  font-family: var(--font-zh);
  font-weight: var(--font-weight-medium);
  font-size: var(--zh-font-size-lg);
  color: var(--color-black);
  text-align: center;
}
.body-text--muted {
  color: var(--color-gray);
}
/* #endregion */

/* #region - P00_HOME__BACKGROUND - */
.bg-layer--home {
  background-image: url(/resources/bg-home.webp);
}
.home-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.home-deco__main {
  width: 100%;
  display: block;
  height: auto;
}
.home-deco__item {
  position: absolute;
  display: block;
  height: auto;
}
.home-deco__brick {
  top: 0;
  left: 0;
  width: 12.91cqw;
}
.home-deco__bar {
  right: 3.25cqw;
  bottom: 0;
  width: 45.9cqw;
}
/* #endregion */
/* #region - P00_HOME__CONTENT - */
.page-content--home {
  gap: 8.6cqw;
}
.logo--home {
  margin-top: 19cqw;
  transform: translateX(0.75cqw);
}
.home__ttl-img {
  width: 45.04cqw;
}
.home__desc {
  font-family: var(--font-zh);
  font-weight: var(--font-weight-medium);
  font-size: var(--zh-font-size-md);
  margin-top: 0.5cqw;
  letter-spacing: 0.3cqw;
  line-height: 1.7;
  text-align: center;
  color: var(--color-black);
}
.home__go-btn {
  margin-top: -1.1cqw;
  .btn__image {
    width: 8.97cqw;
  }
}
/* #endregion */

/* #region - P01_INTRO__CONTENT - */
.page-content--intro {
  gap: 8.5cqw;
}
.intro__welcome {
  margin-top: 51.5cqw;
  letter-spacing: 0.67cqw;
}
.intro__ttl-img {
  margin-top: -2cqw;
  width: 76.84cqw;
}
.intro__lead {
  letter-spacing: 0.5cqw;
}
.intro__desc {
  letter-spacing: 0.5cqw;
  line-height: 2;
}
.intro__rule-btn {
  margin-top: 9.3cqw;
  .btn__image {
    width: 18.29cqw;
  }
}
/* #endregion */

/* #region - P02_MISSION__CONTENT - */
.page-content--mission {
  padding-top: 44.3cqw;
  gap: 5cqw;
}
.mission__ttl-img {
  width: 72.74cqw;
}
.mission__map {
  width: 62.56cqw;
  transform: translateX(1.5cqw);
}
.mission__rules {
  font-size: var(--zh-font-size-sm);
  text-align: left;
  display: grid;
  gap: 1.5cqw;
  margin: 0;
  padding: 0;
  transform: translateX(3cqw);
  letter-spacing: 0.5cqw;
  list-style: none;
  text-align: left;
}
.mission__rule {
  display: grid;
  grid-template-columns: 2cqw 1fr;
  gap: 3cqw;
  align-items: center;
  &::before {
    content: "";
    width: 1.5cqw;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--color-primary-dark);
  }
}
.mission__start-btn {
  margin-top: 2cqw;
  .btn__image {
    width: 18.29cqw;
  }
}
/* #endregion */

/* #region - P03_QUIZ__CONTENT - */
.quiz__view, .quiz__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quiz__view {
  padding-top: 39cqw;
}

.quiz__panel--confirm {
  padding-top: 18.5cqw;
  gap: 8.3cqw;
}

.quiz__confirm-ttl {
  position: relative;
  width: 52.74cqw;
}

.quiz__confirm-ttl img {
  display: block;
  width: 100%;
  height: auto;
}

.quiz__confirm-ttl span {
  position: absolute;
  top: 75%;
  left: 32%;
  transform: translate(-50%, -50%);
  color: var(--color-primary-dark);
  font-family: var(--font-en);
  font-size: var(--en-font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: 1;
  letter-spacing: 1.5cqw;
  text-indent: 2.2cqw;
}
.quiz__confirm-desc {
  letter-spacing: 0.68cqw;
  text-indent: 0.68cqw;
  line-height: 1.6;
}
.quiz__submit-btn {
  margin-top: 37.5cqw;
  .btn__image {
    width: 18.21cqw;
  }
}
/* #endregion */
/* #region - P03_QUIZ__QUESTION - */
.quiz__panel--question {
  gap: 4.5cqw;
}
.quiz__tip {
  height: 2.99cqw;
  width: auto;
}
.quiz__tip-logo {
  height: 7.78cqw;
  width: auto;
}
.quiz__question {
  padding-top: 2cqw;
  letter-spacing: 0.4cqw;
  text-align: center;
  text-indent: 0.4cqw;
  line-height: 1.6;
  white-space: pre-line;
}
.quiz__divider {
  width: 77cqw;
  height: 0.26cqw;
  margin-top: -1.8cqw;
  background: var(--color-primary);
}
.quiz__options {
  width: 100%;
  padding-top: 3.1cqw;
  display: grid;
  justify-items: center;
  gap: 3.2cqw;
}

.quiz__option {
  width: 69.23cqw;
  min-height: 10cqw;
  display: grid;
  grid-template-columns: 5cqw minmax(0, 1fr);
  align-items: center;
  column-gap: 1.7cqw;
  box-sizing: border-box;
  padding-inline: 9.5cqw;
  border: 0;
  text-align: left;
  border-radius: 10cqw;
  background-color: var(--color-gray);
  color: var(--color-white);
  font-family: var(--font-zh);
  font-weight: var(--font-weight-regular);
  font-size: var(--zh-font-size-md);
  line-height: 1.35;
  letter-spacing: 0.6cqw;
}

.quiz__option-index {
  text-align: right;
  white-space: nowrap;
}

.quiz__option-text {
  text-align: center;
  white-space: nowrap;
}

.quiz__option.is-selected,
.quiz__option[aria-pressed="true"] {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}
/* #endregion */
/* #region - P03_QUIZ__NAVIGATION - */
.quiz__navigation {
  width: 69.23cqw;
  min-height: 12.3cqw;
  margin-top: 5cqw;
  display: grid;
  grid-template-columns: 12.3cqw 1fr 12.3cqw;
  align-items: center;
  justify-content: center;
}

.quiz__nav-btn {
  width: 12.3cqw;
  aspect-ratio: 1;
  padding: 0;
}

.quiz__nav-btn::after {
  content: "";
  width: 3.2cqw;
  aspect-ratio: 1;
  border-top: 0.8cqw solid var(--color-white);
  border-right: 0.8cqw solid var(--color-white);
}

.quiz__nav-btn {
  grid-column: 1;
  justify-self: start;
}

.quiz__nav-btn::after {
  transform: translateX(0.7cqw) rotate(-135deg);
}

.quiz__nav-btn.quiz__nav-btn--next {
  grid-column: 3;
  justify-self: end;
}

.quiz__nav-btn.quiz__nav-btn--next::after {
  transform: translateX(-0.7cqw) rotate(45deg);
}

.quiz__progress {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 17.44cqw;
  aspect-ratio: 204 / 38;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/resources/03_quiz-count.webp") no-repeat center calc(50% + 0.2cqw) / contain;
  color: var(--color-light-gray);
  font-family: var(--font-en);
  font-size: var(--en-font-size-sm);
  letter-spacing: 0.7cqw;
  text-indent: 0.7cqw;
  white-space: nowrap;
}

.quiz__progress [data-quiz-progress-current] {
  color: var(--color-primary-dark);
}
/* #endregion */

/* #region - P04_RESULT__CONTENT - */
.page-content--result {
  padding-top: 57.5cqw;
}
.result__title {
  width: 74.19cqw;
}
.result__score {
  font-family: var(--font-en);
  font-size: var(--en-font-size-lg);
  color: var(--color-primary-dark);
  letter-spacing: 1.5cqw;
  text-indent: 1.5cqw;
  padding-top: 9.6cqw;
}

.result__view {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 29.5cqw;
  padding-top: 8cqw;
  line-height: 1.6;
  letter-spacing: 0.7cqw;
  text-indent: 0.7cqw;
  span {
    letter-spacing: 0.55cqw;
  }
}

.result__retry-btn .btn__image {
  width: 18.55cqw;
}
.result__scanner-btn .btn__image {
  width: 28.12cqw;
}
/* #endregion */

/* #region - P05_REDEMPTION__BACKGROUND - */
.bg-layer--redemption {
  background-image: url(/resources/bg-finish.webp);
}
/* #endregion */
/* #region - P05_REDEMPTION__CONTENT - */
.page-content--redemption {
  padding-top: 14.2cqw;
  gap: 9cqw;
}
.logo-ttl {
  width: 57.52cqw;
  margin-top: -1cqw;
}
.redemption__ttl {
  width: 52.74cqw;
  margin: 4.5cqw 0 3.5cqw;
}
.redemption__desc {
  display: grid;
  gap: 4.8cqw;
  font-size: var(--zh-font-size-md);
  line-height: 1.6;
  letter-spacing: 0.6cqw;
  text-indent: 0.6cqw;
}
.redemption__wish {
  width: 61.79cqw;
}
/* #endregion */

/* #region - P06_SCANNER__CONTENT - */
.page-content--scanner {
  padding-top: 45cqw;
}
.scanner__ttl {
  width: 74.19cqw;
}
.scanner__camera {
  position: relative;
  width: 52.82cqw;
  aspect-ratio: 1;
  margin-top: 10.43cqw;
  overflow: visible;
  background: #000;
}
#scanner-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.scanner__frame {
  position: absolute;
  inset: 0;
  border: 0.17cqw solid var(--color-bright-blue);
  pointer-events: none;
}
.scanner__corner {
  position: absolute;
  width: 10cqw;
  height: 10cqw;
  border-color: var(--color-bright-blue);
  border-style: solid;
}
.scanner__corner--top-left {
  top: -0.77cqw;
  left: -0.77cqw;
  border-width: 1.54cqw 0 0 1.54cqw;
}
.scanner__corner--top-right {
  top: -0.77cqw;
  right: -0.77cqw;
  border-width: 1.54cqw 1.54cqw 0 0;
}
.scanner__corner--bottom-left {
  bottom: -0.77cqw;
  left: -0.77cqw;
  border-width: 0 0 1.54cqw 1.54cqw;
}
.scanner__corner--bottom-right {
  right: -0.77cqw;
  bottom: -0.77cqw;
  border-width: 0 1.54cqw 1.54cqw 0;
}
.scanner__back-btn {
  margin-top: 6cqw;
  margin-bottom: 8cqw;
  .btn__image {
    width: 8.38cqw;
  }
}
/* #endregion */