:root {
  --next-height: 60px;
  --header-height: 52px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: #2d5488;
  font-family:
    "Noto Sans TC", Roboto, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #000;
}
body {
  padding-top: var(--header-height);
}
yu-header {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-height);
}
.quiz-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #6291c4 url("../images/bg-mb.png") center top / 100% auto
    no-repeat;
}
.quiz-main::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 568px;
  aspect-ratio: 1125 / 476;
  background: url("../images/bg-deco.png") center top / contain no-repeat;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.quiz-content {
  width: 100%;
  max-width: 590px;
  margin: auto;
  padding: 22px 26px 30px;
}
.quiz-title {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 22px;
}
.question-panel {
  position: relative;
  isolation: isolate;
  max-width: 308px;
  margin: 0 auto;
  padding: 26px 14px 20px;
}

.question-panel::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  background: url("../images/question-frame.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.question-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
.question-number {
  width: 44px;
  height: auto;
  flex: none;
  margin-top: 1px;
}
.question-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  margin: 0;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 0;
  margin: 0 10px;
  padding: 0;
  min-width: 0;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 48px;
  border: 3px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.option-letter {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.option-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
}
@media (hover: hover) {
  .option:not(:disabled):hover {
    border-color: #198dda;
    background: #f1fbff;
    transform: translateX(3px);
  }
}
.option:focus-visible {
  outline: 3px solid #005bac;
  outline-offset: 3px;
}
.option:disabled {
  cursor: default;
  opacity: 1;
}
.option.is-wrong {
  border-color: #ff5100;
}
.option.is-correct {
  border-color: #00bf70;
}
.answer-icon {
  display: none;
  flex: none;
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
.is-wrong .answer-icon {
  display: flex;
  background: #ff5100;
}
.is-correct .answer-icon {
  display: flex;
  background: transparent;
}
.answer-icon img {
  display: block;
  width: 18px;
  height: 18px;
}
.explanation {
  scroll-margin-top: calc(var(--header-height) + 16px);
  margin-top: 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}
.explanation[hidden] {
  display: none;
}
.explanation-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}
.explanation-heading::before,
.explanation-heading::after {
  content: "";
  height: 1px;
  background: #222;
  flex: 1;
}
.explanation p {
  margin: 0 0 20px;
}
.explanation ol {
  list-style: decimal;
  padding-left: 26px;
  margin: 0;
}
.explanation li {
  padding-left: 0;
  margin-bottom: 12px;
}
.explanation li::marker {
  font-weight: 700;
}
.explanation strong {
  font-weight: 700;
}
.read-end {
  height: 2px;
}
.quiz-main.is-answered {
  min-height: 0;
}
.quiz-main.is-answered .quiz-content {
  padding-bottom: 30px;
}
.explanation li:last-child {
  margin-bottom: 0;
}
.next-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #2d5488;
  padding-bottom: env(safe-area-inset-bottom);
}
.next-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--next-height);
  border: 0;
  background: #ff7f00;
  cursor: pointer;
}
.next-button[aria-disabled="true"] {
  background: #c4c4c4;
  cursor: not-allowed;
}
.next-button img {
  width: 59px;
  height: auto;
  transition: transform 0.18s;
}
@media (hover: hover) {
  .next-button[aria-disabled="false"]:hover img {
    transform: scale(1.1);
  }
}
.next-button:focus-visible {
  outline: 3px solid #005bac;
  outline-offset: -3px;
}
.site-footer {
  display: block;
  background: #345383;
  color: white;
  padding: 16px 20px
    calc(16px + var(--next-height) + env(safe-area-inset-bottom));
  font-size: 11px;
  line-height: 17px;
}
.footer-content {
  max-width: 1200px;
  margin: auto;
}
.preview-status {
  position: fixed;
  bottom: calc(
    var(--next-height) + var(--info-bar-height) + 16px +
      env(safe-area-inset-bottom)
  );
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: rgba(21, 38, 87, 0.4);
  color: white;
  border-radius: 8px;
  padding: 12px 18px;
  z-index: 110;
  font-size: 18px;
}
@media (min-width: 768px) {
  :root {
    --header-height: 60px;
  }
  .quiz-main {
    background-image: url("../images/bg-pc.png");
    background-size: 100% auto;
    background-position: center top;
  }
  .quiz-main::before {
    display: none;
  }
  body {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .quiz-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-image: none;
  }
  .quiz-main::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: 0 0 auto;
    height: var(--desktop-background-height, 840px);
    background:
      linear-gradient(to bottom, transparent calc(100% - 200px), #6291c4 100%),
      url("../images/bg-pc.png") center top / cover no-repeat;
  }
  .quiz-main.is-answered {
    justify-content: flex-start;
  }
  .quiz-main.is-answered::after {
    height: var(--desktop-background-height, 840px);
  }
  .quiz-content,
  .quiz-main.is-answered .quiz-content {
    max-width: 732px;
    margin: 0 auto;
    padding-top: 28px;
    padding-bottom: 36px;
  }
  .next-bar {
    position: relative;
    width: 300px;
    background: transparent;
    max-width: 100%;
    left: auto;
    right: auto;
    transform: none;
    bottom: auto;
    padding-bottom: 0;
    margin: 36px auto 0;
  }
  .next-button {
    border-radius: 300px;
  }
  .quiz-title {
    width: 440px;
    margin-bottom: 30px;
  }
  .question-panel {
    max-width: 652px;
    margin: auto;
    padding: 32px 44px 28px;
  }
  .question-heading {
    gap: 20px;
    margin-bottom: 22px;
  }
  .question-number {
    width: 52px;
  }
  .question-text {
    font-size: 22px;
    line-height: 1.5;
  }
  .options {
    gap: 14px;
    margin: 0;
  }
  .option {
    min-height: 58px;
    padding: 12px 20px;
    gap: 24px;
  }
  .option-letter {
    font-size: 24px;
  }
  .option-text {
    font-size: 20px;
    line-height: 28px;
  }
  .explanation {
    max-width: 564px;
    margin-left: auto;
    margin-right: auto;
  }
  .site-footer {
    text-align: center;
    font-size: 13px;
    line-height: 24px;
    flex: none;
    padding: 16px 32px;
  }
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
  }
}
@media (max-width: 359px) {
  .quiz-content {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 16px;
  }
  .question-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .options {
    gap: 12px;
  }
  .option {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .option,
  .next-button img {
    transition: none;
  }
}

.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: calc(
    var(--next-height) + var(--info-bar-height) + 12px +
      env(safe-area-inset-bottom)
  );
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(212, 247, 255, 0.94);
  color: #152657;
  padding: 9px 16px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(21, 38, 87, 0.12);
}
.scroll-hint[hidden] {
  display: none;
}
.scroll-hint svg {
  width: 16px;
  height: 20px;
  animation: scroll-cue 1.3s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint svg {
    animation: none;
  }
}

.info-modal {
  width: calc(100% - 40px);
  max-width: 590px;
  max-height: 75vh;
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: #000;
}
.info-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.modal-frame {
  position: relative;
  height: 75vh;
  max-height: 75vh;
  padding: 8px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}
.modal-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(
    5% 0,
    38% 0,
    42% 1.5%,
    95% 1.5%,
    100% 5%,
    100% 94%,
    95% 100%,
    64% 100%,
    61% 98.5%,
    5% 98.5%,
    0 95%,
    0 4%
  );
}
.modal-inner {
  position: relative;
  height: 100%;
  padding: 30px 24px 22px;
  background: #d4f7ff;
  clip-path: polygon(
    4% 0,
    95% 0,
    100% 4%,
    100% 95%,
    95% 100%,
    4% 100%,
    0 96%,
    0 4%
  );
  display: flex;
  flex-direction: column;
}
.modal-title {
  flex: none;
  margin: 0 0 22px;
  color: #0600ff;
  text-align: center;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3.64px;
  line-height: 1.4;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.modal-close,
.modal-close:focus,
.modal-close:focus-visible,
.modal-close:active {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 6px;
  width: 24px;
  height: 2px;
  background: #111;
  transform: rotate(45deg);
}
.modal-close::after {
  transform: rotate(-45deg);
}
.modal-reading {
  position: relative;
  flex: 1;
  min-height: 0;
}
.modal-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 1.4px;
  overflow-wrap: anywhere;
  padding-right: 3px;
}
.modal-scroll p {
  margin: 0 0 12px;
}
.modal-scroll p:has(> strong:only-child) {
  margin-bottom: 4px;
}
.modal-scroll ul {
  list-style-type: disc;
  margin: 0 0 18px;
  padding-left: 21px;
}
.modal-scroll li {
  margin-bottom: 4px;
}
#rules-content ul {
  list-style: none;
}
#rules-content li {
  position: relative;
}
#rules-content li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.75em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.modal-scroll a {
  text-decoration: underline;
}
#warning-content {
  font-size: 18px;
  letter-spacing: 1.2px;
}
#warning-content p:first-child,
#warning-content p:last-child {
  font-size: 18px;
  font-weight: 700;
}
.modal-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(212, 247, 255, 0), #d4f7ff);
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-fade.is-hidden {
  opacity: 0;
}
@media (max-width: 359px) {
  .modal-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-title {
    font-size: 26px;
  }
}

.desktop-rules-button {
  display: none;
}
@media (min-width: 768px) {
  .desktop-rules-button {
    display: block;
    position: fixed;
    right: 24px;
    top: 40%;
    transform: translateY(-50%);
    z-index: 50;
    border: 0;
    border-radius: 12px;
    background: #2549ad;
    color: white;
    padding: 18px 14px;
    writing-mode: vertical-rl;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
  }
  .desktop-rules-button:hover {
    background: #2d58c2;
  }
  .scroll-hint {
    bottom: calc(var(--desktop-footer-offset, 0px) + var(--next-height) + 12px);
  }
  .preview-status {
    bottom: calc(var(--desktop-footer-offset, 0px) + var(--next-height) + 16px);
  }
}

@media (max-width: 767px) {
  .info-modal {
    max-height: 68vh;
  }
  .modal-frame {
    height: 68vh;
    max-height: 68vh;
  }
}

@media (max-width: 767px) {
  .question-panel::before {
    left: -22px;
    right: -22px;
  }
}

.preview-status,
.scroll-hint {
  font-size: 18px;
}
.explanation,
.hero-content .explanation {
  color: #fff;
}
.explanation-heading::before,
.explanation-heading::after {
  background: currentColor;
}
@media (min-width: 768px) {
  .preview-status,
  .scroll-hint {
    font-size: 18px;
  }
}

.asset-explanation p {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.asset-explanation strong {
  flex: none;
}
.asset-explanation p:last-child {
  margin-bottom: 0;
}
.quiz-main ~ .desktop-rules-button {
  display: none;
}

.completion-panel {
  text-align: center;
}
.completion-title {
  color: #0600ff;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #0600ff;
}
.completion-summary {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.completion-prize {
  display: block;
  color: #0600ff;
  font-weight: 700;
  margin-top: 3px;
}
.declaration-scroll {
  height: 116px;
  overflow: auto;
  text-align: left;
  border: 1px solid white;
  background: rgba(255, 255, 255, 0.45);
  padding: 14px 18px;
  font-size: 18px;
  line-height: 1.6;
  overscroll-behavior: contain;
}
.declaration-scroll p {
  margin: 0;
}
.declaration-pending {
  color: #345383;
  font-size: 18px;
  margin-top: 12px !important;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
  margin-top: 12px;
  cursor: pointer;
}
.consent-label input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid #333;
  background: transparent;
  margin: 3px 0 0;
  position: relative;
}
.consent-label input:checked::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 13px;
  border: solid #333;
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
  left: 6px;
  top: 0;
}
.consent-label input:focus-visible {
  outline: 2px solid #005bac;
  outline-offset: 3px;
}
.declaration-name {
  color: #0600ff;
  text-decoration: underline;
}
.register-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px auto 20px;
  width: 190px;
  max-width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #ff7f00;
  cursor: pointer;
}
.register-button:disabled {
  background: #c4c4c4;
  cursor: not-allowed;
}
.register-button img {
  width: 132px;
  height: auto;
  transition: transform 0.18s;
}
@media (hover: hover) {
  .register-button:not(:disabled):hover img {
    transform: scale(1.06);
  }
}
.completion-links {
  max-width: 324px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
  color: #000;
  padding-left: 14px;
  list-style: disc;
}
.completion-links li {
  margin-bottom: 8px;
}
.completion-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.is-complete ~ .site-footer {
  padding-bottom: 16px;
}
@media (min-width: 768px) {
  .completion-title {
    font-size: 36px;
  }
  .completion-summary {
    font-size: 22px;
  }
  .declaration-scroll {
    height: 160px;
    font-size: 18px;
  }
  .consent-label {
    font-size: 18px;
  }
  .completion-links {
    max-width: 592px;
    font-size: 18px;
  }
  .register-button {
    width: 260px;
    height: 56px;
  }
  .register-button img {
    width: 165px;
  }
}

.declaration-terms {
  list-style: decimal;
  margin: 0;
  padding-left: 22px;
}
.declaration-terms li {
  margin-bottom: 4px;
}
.declaration-scroll a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.declaration-name {
  color: #000;
  text-decoration: none;
}
.declaration-scroll {
  height: 168px;
}
.consent-label input {
  border: 2px solid #0600ff;
}
.consent-label.is-locked input {
  border-color: #8c9aa3;
  background: rgba(255, 255, 255, 0.2);
}
.consent-label.is-locked {
  cursor: pointer;
}
@media (min-width: 768px) {
  .declaration-scroll {
    height: 218px;
  }
}

.is-complete ~ .preview-status {
  bottom: calc(24px + env(safe-area-inset-bottom));
}

.declaration-reading {
  position: relative;
}
.declaration-scroll {
  height: 194px;
  padding-bottom: 42px;
}
.declaration-read-prompt {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(212, 247, 255, 0.94);
  color: #152657;
  padding: 6px 12px;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21, 38, 87, 0.12);
}
.declaration-read-prompt[hidden] {
  display: none;
}
@media (min-width: 768px) {
  .declaration-scroll {
    height: 246px;
  }
  .declaration-read-prompt {
    font-size: 18px;
  }
}

.consent-label.is-locked {
  color: #82919c;
}
.consent-label.is-locked .declaration-name {
  color: inherit;
}
.register-button[aria-disabled="true"] {
  background: #c4c4c4;
  cursor: pointer;
}
@media (hover: hover) {
  .register-button[aria-disabled="true"]:hover img {
    transform: none;
  }
}
.declaration-read-prompt {
  display: flex;
  align-items: center;
  gap: 7px;
}
.declaration-read-prompt svg {
  width: 14px;
  height: 18px;
  flex: none;
}

.completion-links {
  width: 100%;
  max-width: none;
  list-style: none;
  padding-left: 10px;
}
.completion-links li {
  position: relative;
  padding-left: 10px;
}
.completion-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  transform: translateY(-50%);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}
.consent-label input {
  width: 20px;
  height: 20px;
  border: 1px solid #333;
  border-radius: 0;
  background: transparent;
}
.consent-label input:checked::after {
  border: 0;
  transform: none;
  inset: 1px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m3 10 4 6L17 3' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
@media (max-width: 767px) {
  .completion-links {
    width: calc(100% + 28px);
    margin-left: -14px;
    font-size: clamp(12px, 3.65vw, 16px);
  }
  .completion-links a {
    white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .completion-links {
    max-width: 680px;
    padding-left: 10px;
  }
  .completion-links a {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .quiz-main.is-third-question.is-answered {
    min-height: 0 !important;
  }
  .quiz-main.is-third-question.is-answered .quiz-content,
  .quiz-main.is-third-question.is-answered .hero-content.quiz-content {
    padding-bottom: 16px !important;
  }
}

.completion-links {
  font-size: 18px;
}
@media (max-width: 767px) {
  .completion-links {
    font-size: 18px;
  }
  .completion-links a {
    white-space: normal;
  }
}
@media (min-width: 768px) {
  .completion-links {
    font-size: 20px;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  body:has(.scroll-hint:not([hidden])) .preview-status:not([hidden]) {
    bottom: calc(
      var(--next-height) + var(--info-bar-height) + 68px +
        env(safe-area-inset-bottom)
    );
  }
}

.registration-panel {
  text-align: center;
  padding-top: 34px;
  padding-bottom: 30px;
}
.registration-panel::before {
  background-color: rgba(212, 247, 255, 0.7);
  clip-path: polygon(
    5% 0,
    95% 0,
    100% 4%,
    100% 96%,
    95% 100%,
    5% 100%,
    0 96%,
    0 4%
  );
  filter: drop-shadow(0 0 10px white);
}
.registration-title {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-weight: 700;
  color: #0600ff;
  font-size: 30px;
  letter-spacing: 3px;
  margin: 0 0 28px;
}
.registration-field {
  margin: 0 0 24px;
  text-align: center;
}
.registration-field label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.registration-required {
  color: #ff7f00;
}
.registration-input {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 5px;
  background: white;
  padding: 12px 10px;
  font-size: 18px;
  color: #152657;
  text-align: center;
}
.registration-input::placeholder {
  color: #7db4fc;
  opacity: 1;
}
.registration-input:focus {
  outline: 2px solid #005bac;
  outline-offset: 2px;
}
.registration-input[aria-invalid="true"] {
  border-color: #c52a2a;
}
.registration-error {
  font-size: 18px;
  color: #a12020;
  text-align: left;
  margin: 6px 0 0;
  line-height: 1.4;
}
.registration-submit {
  width: 190px;
  max-width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: #ff7f00;
  color: white;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 24px;
  font-weight: 700;
  margin: 10px auto 20px;
  cursor: pointer;
}
.registration-submit:disabled {
  background: #c4c4c4;
  cursor: wait;
}
.registration-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 18px;
  line-height: 1.5;
}
.registration-notes li {
  position: relative;
  padding-left: 13px;
  margin: 0 0 10px;
}
.registration-notes li::before {
  content: "*";
  position: absolute;
  left: 0;
}
.registration-message {
  font-size: 18px;
  color: #a12020;
  line-height: 1.5;
  text-align: left;
  margin: 0 0 16px;
}
.registration-message.is-success {
  color: #006341;
}
.is-registering .quiz-content {
  padding-bottom: 40px !important;
}
.is-registering ~ .site-footer {
  padding-bottom: 16px;
}
@media (min-width: 768px) {
  .registration-panel {
    padding: 40px 60px 34px;
  }
  .registration-title {
    font-size: 36px;
  }
  .registration-field label {
    font-size: 22px;
  }
  .registration-input {
    font-size: 20px;
    min-height: 58px;
  }
  .registration-notes {
    font-size: 18px;
  }
  .registration-submit {
    width: 260px;
    height: 56px;
    font-size: 28px;
  }
  .registration-message {
    font-size: 18px;
  }
}

.completion-title img {
  display: block;
  width: 126px;
  max-width: 100%;
  height: auto;
  margin: auto;
}
.registration-title img {
  display: block;
  width: 123px;
  max-width: 100%;
  height: auto;
  margin: auto;
}
.registration-panel {
  padding: 30px 32px 24px;
}
.registration-panel::before {
  inset: -14px;
  background-color: transparent;
  clip-path: none;
  filter: none;
  background-image:
    url("../images/registration-frame-top.svg"),
    url("../images/registration-frame-bottom.svg"),
    url("../images/registration-frame-surface.svg");
  background-size:
    49% 173px,
    49% 174px,
    100% 100%;
  background-position:
    left top,
    right bottom,
    center;
  background-repeat: no-repeat;
}
.registration-title {
  margin: 0 0 32px;
}
.registration-field {
  margin-bottom: 24px;
}
.registration-field label {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1.44px;
  margin-bottom: 8px;
  line-height: 1.45;
}
.registration-input {
  min-height: 55px;
  font-size: 18px;
  letter-spacing: 1.6px;
  padding: 14px 8px;
  border-radius: 4px;
}
.registration-input::placeholder {
  color: #75b0f2;
}
.registration-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 50px;
  margin: 32px auto 24px;
}
.registration-submit img {
  display: block;
  width: 78px;
  height: auto;
}
.registration-notes {
  width: calc(100% + 32px);
  margin-left: -16px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 1.4px;
}
.registration-success-panel {
  padding: 28px 22px 30px;
  text-align: center;
}
.registration-success-panel::before {
  background: url("../images/registration-success-frame.svg") center / 100% 100%
    no-repeat;
}
.prize-reminder {
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  margin: 0 0 26px;
}
.prize-step {
  margin-top: 28px;
}
.prize-step h3 {
  background: linear-gradient(
    90deg,
    transparent,
    #0600ff 38%,
    #0600ff 65%,
    transparent
  );
  color: white;
  font-family: serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 15px;
  line-height: 39px;
}
.prize-step p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 15px;
}
.prize-step small {
  font-size: 18px;
}
.prize-step img {
  display: block;
  width: 248px;
  max-width: 100%;
  height: auto;
  margin: auto;
}
.download-app-button {
  display: block;
  width: 200px;
  max-width: 100%;
  margin: 34px auto 0;
  padding: 13px 10px;
  border-radius: 6px;
  background: #ff7f00;
  color: white;
  text-align: center;
  font-family: serif;
  font-size: 20px;
  font-weight: 700;
}
@media (min-width: 768px) {
  .completion-title img {
    width: 162px;
  }
  .registration-title img {
    width: 160px;
  }
  .registration-panel {
    padding: 40px 72px 32px;
  }
  .registration-field label {
    font-size: 22px;
  }
  .registration-input {
    font-size: 20px;
    min-height: 58px;
  }
  .registration-submit {
    width: 260px;
    height: 56px;
  }
  .registration-submit img {
    width: 94px;
  }
  .registration-notes {
    font-size: 18px;
  }
  .registration-success-panel {
    padding: 36px 60px;
  }
}
.panel-surface {
  position: absolute;
  inset: 1px;
  z-index: -2;
  pointer-events: none;
  background-color: rgba(212, 247, 255, 0.52);
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.panel-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
        135deg,
        transparent calc(50% - 0.6px),
        rgba(255, 255, 255, 0.65) 50%,
        transparent calc(50% + 0.6px)
      )
      top left / 12px 12px no-repeat,
    linear-gradient(
        45deg,
        transparent calc(50% - 0.6px),
        rgba(255, 255, 255, 0.65) 50%,
        transparent calc(50% + 0.6px)
      )
      top right / 12px 12px no-repeat,
    linear-gradient(
        45deg,
        transparent calc(50% - 0.6px),
        rgba(255, 255, 255, 0.65) 50%,
        transparent calc(50% + 0.6px)
      )
      bottom left / 12px 12px no-repeat,
    linear-gradient(
        135deg,
        transparent calc(50% - 0.6px),
        rgba(255, 255, 255, 0.65) 50%,
        transparent calc(50% + 0.6px)
      )
      bottom right / 12px 12px no-repeat;
}

.registration-panel,
.registration-success-panel {
  max-width: 321px;
}
.registration-panel .panel-surface,
.registration-success-panel .panel-surface {
  background-color: rgba(212, 247, 255, 0.9);
}
.registration-panel::before,
.registration-panel::after,
.registration-success-panel::before,
.registration-success-panel::after {
  content: "";
  position: absolute;
  inset: -7px;
  pointer-events: none;
  z-index: -1;
  background: #fff;
  filter: none;
}
.registration-panel::before,
.registration-success-panel::before {
  clip-path: polygon(
    0 16px,
    16px 0,
    38% 0,
    calc(38% + 18px) 8px,
    20px 8px,
    8px 20px,
    8px 38%,
    0 calc(38% + 14px)
  );
}
.registration-panel::after,
.registration-success-panel::after {
  clip-path: polygon(
    100% calc(62% - 14px),
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    62% 100%,
    calc(62% - 18px) calc(100% - 8px),
    calc(100% - 20px) calc(100% - 8px),
    calc(100% - 8px) calc(100% - 20px),
    calc(100% - 8px) 62%
  );
}
.registration-success-panel {
  padding: 28px 18px 30px;
}
.prize-step h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
}
.prize-step .step-label-image {
  width: auto;
  height: 26px;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
}
.prize-step > img {
  display: block;
  width: 248px;
  max-width: 100%;
  aspect-ratio: 778 / 684;
  height: auto;
  object-fit: contain;
  margin: auto;
}
@media (max-width: 767px) {
  .registration-panel,
  .registration-success-panel {
    width: calc(100% + 0px);
    max-width: 321px;
  }
}
@media (min-width: 768px) {
  .registration-panel,
  .registration-success-panel {
    max-width: 666px;
  }
  .registration-success-panel {
    padding: 36px 60px;
  }
  .prize-step > img {
    width: 320px;
  }
  .prize-step .step-label-image {
    height: 30px;
  }
}

.registration-success-panel {
  max-width: 308px;
  padding: 28px 14px 24px;
}
.registration-success-panel .panel-surface {
  display: none;
}
.registration-success-panel::before {
  inset: -14px;
  clip-path: none;
  filter: none;
  background: url("../images/registration-success-light-frame.svg") center /
    100% 100% no-repeat;
}
.registration-success-panel::after {
  display: none;
}
.registration-success-panel .completion-title {
  margin: 0 20px 16px;
  padding-bottom: 14px;
}
.registration-success-panel .completion-title img {
  width: 126px;
}
.registration-success-panel .prize-reminder {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}
.registration-success-panel .prize-step {
  margin-top: 36px;
}
.registration-success-panel .prize-step h3 {
  min-height: 39px;
  margin-bottom: 17px;
}
.registration-success-panel .prize-step p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.registration-success-panel .prize-step > img {
  width: 248px;
}
.download-app-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 50px;
  padding: 12px 16px;
  margin: 46px auto 0;
}
.download-app-button img {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .registration-success-panel {
    max-width: 308px;
  }
  .registration-success-panel::before {
    left: -22px;
    right: -22px;
  }
}
@media (min-width: 768px) {
  .registration-success-panel {
    max-width: 652px;
    padding: 36px 44px 30px;
  }
  .registration-success-panel .completion-title {
    margin: 0 28px 22px;
  }
  .registration-success-panel .completion-title img {
    width: 162px;
  }
  .registration-success-panel .prize-reminder,
  .registration-success-panel .prize-step p {
    font-size: 22px;
  }
  .registration-success-panel .prize-step > img {
    width: 320px;
  }
  .download-app-button {
    width: 260px;
    min-height: 56px;
  }
  .download-app-button img {
    width: 150px;
  }
}

.prize-step .step-label-image {
  height: 20px;
}
.registration-success-panel .prize-step h3 {
  min-height: 34px;
  line-height: 34px;
}
.register-button,
.registration-submit,
.download-app-button {
  width: 240px;
  max-width: 100%;
  height: 60px;
  min-height: 60px;
}
.register-button img {
  width: 158px;
}
.registration-submit img {
  width: 96px;
}
.download-app-button img {
  width: 144px;
}
@media (min-width: 768px) {
  .prize-step .step-label-image {
    height: 24px;
  }
  .registration-success-panel .prize-step h3 {
    min-height: 40px;
  }
  .register-button,
  .registration-submit,
  .download-app-button {
    width: 300px;
    height: 68px;
    min-height: 68px;
  }
  .register-button img {
    width: 190px;
  }
  .registration-submit img {
    width: 110px;
  }
  .download-app-button img {
    width: 166px;
  }
}

.preview-status,
.scroll-hint,
.declaration-read-prompt {
  font-size: 16px;
}
@media (min-width: 768px) {
  .preview-status,
  .scroll-hint,
  .declaration-read-prompt {
    font-size: 18px;
  }
}

.registration-notes,
.prize-step small {
  font-size: 16px;
}

.standalone-question .quiz-title {
  width: 252px;
}
@media (min-width: 768px) {
  .standalone-question .quiz-title {
    width: 440px;
  }
}

@media (max-width: 767px) {
  .declaration-scroll,
  .consent-label {
    font-size: 16px;
  }
  .completion-summary {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .completion-prize {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .completion-links {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .quiz-main .quiz-content .explanation {
    color: #333333;
  }
}

@media (min-width: 768px) {
  .quiz-main {
    flex: none;
  }
}

.no-account-button + .download-app-button {
  margin-top: 18px;
}

.download-app-button img {
  transition: transform 0.2s ease;
}
@media (hover: hover) {
  .download-app-button:hover img {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .download-app-button img {
    transition: none;
  }
}

.registration-verification { margin: 20px auto; width: 100%; max-width: 360px; }
.registration-verification #registration-turnstile { min-height: 65px; max-width: 100%; margin: 0 auto; }
.registration-verification #verification-error { text-align: center; }

.completion-condition {
  margin: 24px auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}
@media (min-width: 768px) {
  .completion-condition {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .completion-condition {
    margin: 16px auto 0;
  }
  body .quiz-main.is-complete {
    min-height: 0;
  }
  body .quiz-main.is-complete .quiz-content {
    padding-bottom: 16px;
  }
}

/* Q1–Q3 disclosure typography. */
body:has(.quiz-main) .fund-risk-disclosure-content { font-size: 15px; }
body:has(.quiz-main) .fund-risk-disclosure-content .fund-risk-source { font-size: 11px; }

.download-modal {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 96px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  z-index: 2147483647;
}
.download-modal::backdrop { background: rgb(0 0 0 / 60%); }
.download-modal-card { padding: 36px 40px 40px; border-radius: 32px; background: #fff; text-align: center; }
.download-modal-title { margin: 0 0 26px; color: #111; font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
.download-modal-qr { position: relative; padding: 36px; border-radius: 32px; background: #edf3fa; }
.download-modal-code { display: block; width: 100%; height: auto; }
.download-modal-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 16%; height: auto; border-radius: 12px; }
.download-modal-close { position: absolute; top: -58px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; outline: none; background: transparent; box-shadow: none; color: white; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.download-modal-close:active, .download-modal-close:focus { outline: none; background: transparent; box-shadow: none; }
.download-modal-close svg { width: 36px; height: 36px; }
@media (max-height: 700px) {
  .download-modal { width: min(400px, calc(100vw - 48px)); }
  .download-modal-card { padding: 24px; }
  .download-modal-title { margin-bottom: 18px; }
  .download-modal-qr { padding: 24px; }
}
