:root {
  --pink: #ff8aa1;
  --pink-dark: #e66c86;
  --pink-soft: #fff0f4;
  --gold: #ffe25b;
  --gold-soft: #fff9d9;
  --ink: #342f31;
  --muted: #756e71;
  --line: #eadfe2;
  --white: #ffffff;
  --cream: #fffdf6;
  --shadow: 0 24px 68px rgba(100, 69, 78, 0.14);
  --shadow-soft: 0 12px 32px rgba(100, 69, 78, 0.08);
  --content-width: 940px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 138, 161, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 16%, rgba(255, 226, 91, 0.22), transparent 28rem),
    linear-gradient(180deg, #fff8fa 0%, var(--cream) 62%, #fff 100%);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.background-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.shape-pink {
  top: 180px;
  left: -130px;
  width: 280px;
  height: 280px;
  border: 40px solid rgba(255, 138, 161, 0.08);
}

.shape-gold {
  right: -110px;
  bottom: 80px;
  width: 250px;
  height: 250px;
  background: rgba(255, 226, 91, 0.1);
}

.exam-header {
  display: grid;
  width: min(calc(100% - 40px), 1160px);
  margin: 0 auto;
  padding: 22px 0;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}

.back-link,
.text-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: start;
}

.text-button {
  justify-self: end;
}

.back-link:hover,
.text-button:hover {
  color: var(--pink-dark);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 138, 161, 0.28);
  outline-offset: 4px;
}

.mini-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.brand-dot-pink {
  background: var(--pink);
}

.brand-dot-gold {
  background: var(--gold);
}

.exam-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 50px 0 90px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--pink-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.intro-paper,
.question-card,
.summary-card,
.oath-card,
.complete-card {
  position: relative;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.97),
      rgba(255, 249, 217, 0.48)
    );
  box-shadow: var(--shadow);
}

.intro-paper {
  overflow: hidden;
  text-align: center;
}

.intro-paper::before,
.intro-paper::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.intro-paper::before {
  top: 0;
  left: 28px;
  width: 2px;
  height: 100%;
  background: rgba(255, 138, 161, 0.12);
}

.intro-paper::after {
  right: -55px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(255, 226, 91, 0.13);
  border-radius: 50%;
}

.special-badge {
  display: inline-flex;
  min-height: 31px;
  padding: 5px 12px;
  align-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--pink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.intro-paper h1,
.question-card h1,
.summary-card h1,
.section-intro h1,
.oath-card h1,
.complete-card h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.intro-description {
  max-width: 690px;
  margin: 22px auto 0;
  color: var(--muted);
}

.exam-structure {
  display: grid;
  max-width: 720px;
  margin: 30px auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.exam-structure > div {
  padding: 17px 12px;
  border: 1px solid rgba(52, 47, 49, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.exam-structure span,
.exam-structure strong {
  display: block;
}

.exam-structure span {
  color: var(--muted);
  font-size: 0.75rem;
}

.exam-structure strong {
  margin-top: 3px;
  font-size: 1.05rem;
}

.safety-note {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--pink-soft);
  text-align: left;
}

.safety-note strong {
  color: var(--pink-dark);
}

.safety-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.intro-actions,
.quiz-actions,
.summary-actions,
.vlog-actions,
.complete-actions,
.dialog-actions {
  display: flex;
  margin-top: 26px;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 21px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--pink);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.button:disabled {
  opacity: 0.45;
  cursor: default;
}

.resume-note {
  margin: 15px 0 0;
  color: var(--pink-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-panel {
  margin-bottom: 22px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(52, 47, 49, 0.08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  transition: width 200ms ease;
}

.question-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.instruction-pill {
  display: inline-flex;
  min-height: 30px;
  padding: 5px 11px;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: var(--pink-soft);
  font-size: 0.75rem;
  font-weight: 850;
}

.question-number {
  color: rgba(52, 47, 49, 0.16);
  font-size: 3.2rem;
  font-weight: 950;
  line-height: 1;
}

.question-card h1 {
  max-width: 820px;
  margin-top: 28px;
  font-size: clamp(2rem, 5.4vw, 3.8rem);
}

.answer-area {
  display: grid;
  margin-top: 30px;
  gap: 11px;
}

.option-button,
.yes-no-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.option-button[aria-pressed="true"],
.yes-no-button[aria-pressed="true"] {
  border-color: var(--pink);
  background: var(--pink-soft);
}

.yes-no-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yes-no-button {
  min-height: 110px;
  text-align: center;
  font-size: 1.25rem;
}

.short-answer-prompt {
  padding: 24px;
  border: 1px dashed rgba(255, 138, 161, 0.45);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 240, 244, 0.54);
  text-align: center;
}

.answer-privacy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.quiz-actions {
  justify-content: flex-end;
}

.skip-link {
  align-self: center;
  padding: 8px 6px;
  border: 0;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.58;
  transition: opacity 160ms ease, color 160ms ease;
}

.skip-link:hover,
.skip-link:focus-visible {
  color: var(--muted);
  opacity: 0.9;
}

.skip-link:focus-visible {
  outline: 2px solid rgba(255, 138, 161, 0.38);
  outline-offset: 3px;
  border-radius: 999px;
}

.summary-card,
.oath-card,
.complete-card {
  text-align: center;
}

.summary-grid {
  display: grid;
  max-width: 560px;
  margin: 28px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-grid > div {
  padding: 20px;
  border-radius: 20px;
  background: var(--pink-soft);
}

.summary-grid span,
.summary-grid strong {
  display: block;
}

.summary-grid span {
  color: var(--muted);
  font-size: 0.76rem;
}

.summary-grid strong {
  margin-top: 3px;
  font-size: 1.45rem;
}

.punishment-card {
  max-width: 660px;
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid rgba(255, 138, 161, 0.24);
  border-radius: 22px;
  background: rgba(255, 240, 244, 0.72);
}

.punishment-card h2 {
  margin: 0;
  font-size: 1.8rem;
}

.punishment-card > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.punishment-card > strong {
  display: block;
  margin-top: 11px;
  font-size: 1.12rem;
}

.safety-inline {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

.section-intro {
  text-align: center;
}

.section-intro > p:last-child {
  margin: 15px 0 0;
  color: var(--muted);
}

.vlog-progress {
  display: flex;
  max-width: 260px;
  margin: 24px auto 0;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  background: var(--gold-soft);
}

.vlog-progress span {
  color: var(--muted);
  font-size: 0.78rem;
}

.vlog-list {
  display: grid;
  margin-top: 26px;
  gap: 12px;
}

.vlog-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.vlog-item-heading {
  display: grid;
  padding: 17px 19px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.vlog-check {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
}

.vlog-check:checked {
  border-color: var(--pink);
  background: var(--pink);
}

.vlog-check:checked::after {
  position: absolute;
  top: 2px;
  left: 7px;
  width: 7px;
  height: 13px;
  border-right: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  content: "";
  transform: rotate(45deg);
}

.vlog-item-title {
  margin: 0;
  font-size: 1rem;
}

.vlog-toggle {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--pink-soft);
  font-size: 1.25rem;
  cursor: pointer;
}

.vlog-details {
  padding: 0 19px 19px 60px;
  color: var(--muted);
}

.vlog-details p {
  margin: 7px 0 0;
}

.oath-card {
  padding-top: 54px;
  padding-bottom: 54px;
}

.oath-card blockquote {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 27px;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background:
    linear-gradient(
      135deg,
      rgba(255, 240, 244, 0.9),
      rgba(255, 249, 217, 0.83)
    );
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  font-weight: 850;
  line-height: 1.9;
}

.oath-card blockquote p {
  margin: 0;
}

.oath-card .button {
  margin-top: 26px;
}

.complete-mark {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--pink);
  font-size: 2rem;
  font-weight: 900;
}

.complete-card > p:not(.eyebrow) {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
}

.exam-footer {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.confirm-dialog {
  width: min(calc(100% - 30px), 520px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.confirm-dialog::backdrop {
  background: rgba(52, 47, 49, 0.38);
  backdrop-filter: blur(5px);
}

.dialog-panel {
  padding: 28px;
}

.dialog-panel h2 {
  margin: 0;
}

.dialog-panel p {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  max-width: min(calc(100% - 30px), 520px);
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .exam-header {
    grid-template-columns: 1fr auto;
  }

  .mini-brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .back-link {
    grid-column: 1;
    grid-row: 2;
  }

  .text-button {
    grid-column: 2;
    grid-row: 2;
  }

  .exam-shell {
    padding-top: 32px;
  }

  .exam-structure {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-actions {
    justify-content: stretch;
  }

  .quiz-actions .button,
  .summary-actions .button,
  .vlog-actions .button,
  .complete-actions .button {
    width: 100%;
  }

}

@media (max-width: 520px) {
  .exam-shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .intro-paper,
  .question-card,
  .summary-card,
  .oath-card,
  .complete-card {
    padding: 25px 18px;
  }

  .intro-paper::before {
    left: 15px;
  }

  .exam-structure,
  .summary-grid,
  .yes-no-grid {
    grid-template-columns: 1fr;
  }

  .question-number {
    font-size: 2.3rem;
  }

  .vlog-item-heading {
    padding-right: 13px;
    padding-left: 13px;
  }

  .vlog-details {
    padding: 0 14px 16px;
  }
}


/* V43 · selection-page live answer prompt and dual credits */
.live-answer-tip {
  margin: 18px 0 0;
  padding: 13px 16px;
  border-radius: 16px;
  color: var(--pink-dark);
  background: var(--pink-soft);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.exam-footer {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.exam-footer span {
  font-weight: 750;
}

.exam-footer .footer-skip-link {
  flex: 0 0 100%;
  width: fit-content;
  margin: 4px auto 0;
  padding: 7px 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .exam-footer {
    flex-direction: column;
    gap: 4px;
  }
}


/* V58 · answer mode chooser + hidden answer reveal */
.answer-mode-section {
  max-width: 760px;
  margin: 30px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.answer-mode-section > h2 {
  margin: 0;
  font-size: 1.45rem;
  text-align: center;
}

.answer-mode-section > .eyebrow {
  text-align: center;
}

.answer-mode-grid {
  display: grid;
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-mode-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.answer-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-mode-card-inner {
  display: flex;
  min-height: 132px;
  padding: 20px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  transition: 160ms ease;
}

.answer-mode-card-inner strong {
  font-size: 1.03rem;
}

.answer-mode-card-inner span {
  color: var(--muted);
  font-size: 0.86rem;
}

.answer-mode-card input:checked + .answer-mode-card-inner {
  border-color: var(--pink);
  background: var(--pink-soft);
  box-shadow: 0 14px 34px rgba(230, 108, 134, 0.14);
}

.answer-mode-card input:focus-visible + .answer-mode-card-inner {
  outline: 3px solid rgba(255, 138, 161, 0.28);
  outline-offset: 4px;
}

.blind-stage-banner {
  display: flex;
  margin-top: 28px;
  padding: 15px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 240, 244, 0.95),
    rgba(255, 249, 217, 0.82)
  );
}

.blind-stage-banner strong {
  color: var(--pink-dark);
}

.blind-stage-banner span {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.blind-short-answer,
.other-answer-input {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font: inherit;
  outline: 0;
}

.blind-short-answer {
  min-height: 150px;
  padding: 17px;
  resize: vertical;
  border-radius: 20px;
  line-height: 1.7;
}

.other-answer-input {
  min-height: 52px;
  padding: 12px 15px;
  border-radius: 16px;
}

.blind-short-answer:focus,
.other-answer-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 138, 161, 0.12);
}

.answer-reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-reveal-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.answer-reveal-card span,
.answer-reveal-card strong {
  display: block;
}

.answer-reveal-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.answer-reveal-card strong {
  margin-top: 10px;
  font-size: 1.15rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.answer-reveal-fa {
  box-shadow: inset 0 4px 0 rgba(255, 138, 161, 0.65);
}

.answer-reveal-he {
  box-shadow: inset 0 4px 0 rgba(255, 226, 91, 0.95);
}

@media (max-width: 760px) {
  .answer-mode-grid,
  .answer-reveal-grid {
    grid-template-columns: 1fr;
  }

  .answer-mode-card-inner {
    min-height: 0;
  }

  .blind-stage-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .blind-stage-banner span {
    text-align: left;
  }
}
