/* v65: compact four-mode proportions, Feijie avatar branding, and a unified purple report. */
body[data-screen="landing"],
body[data-screen="theme"] {
  color: #3d2458;
  background: #fcf8ff;
}
body[data-screen="landing"] main,
body[data-screen="landing"] footer,
.theme-screen {
  width: min(700px, calc(100% - 24px));
  max-width: 700px;
}
.theme-screen { margin-inline: auto; }
.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #a54bd5, #7525ad);
  border: 2px solid #fff;
  box-shadow: 0 5px 0 #dfc0ed, 0 9px 15px rgba(104,43,139,.17);
}
.quiet-button {
  color: #7b2cad;
  background: #fff;
  border-color: #e5d2ee;
  box-shadow: 0 4px 0 #eadcf0;
}
.landing-screen { padding-top: 18px; }
.game-home { gap: 16px; }

.game-brand-banner {
  position: relative;
  min-height: 210px;
  display: block;
  overflow: hidden;
  padding: 8px 74px 8px 174px;
  color: #5f238c;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 215, 101, .34), transparent 18%),
    radial-gradient(circle at 25% 88%, rgba(204, 140, 255, .22), transparent 30%),
    linear-gradient(145deg, #fff 0%, #fbf1ff 54%, #fff8e9 100%);
  border: 3px solid #fff;
  border-radius: 30px;
  box-shadow:
    0 18px 36px rgba(137, 72, 175, .18),
    inset 0 0 0 2px #ead6f5,
    inset 0 -7px 13px rgba(182, 104, 210, .1);
}
.game-brand-banner::before {
  content: "";
  position: absolute;
  inset: 8px 10px auto;
  height: 32%;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,0));
  pointer-events: none;
}
.game-brand-banner::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -74px;
  width: 250px;
  height: 160px;
  border: 28px solid rgba(255,255,255,.54);
  border-radius: 50%;
  pointer-events: none;
}
.tsinghua-lockup {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: 178px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tsinghua-gate-bg {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -4px;
  width: 330px;
  height: 205px;
  object-fit: contain;
  object-position: right center;
  opacity: .94;
  filter: saturate(1.08) contrast(1.04) drop-shadow(0 9px 12px rgba(114, 74, 134, .13));
  pointer-events: none;
}
.feijie-avatar {
  position: absolute;
  z-index: 2;
  left: -4px;
  bottom: -43px;
  width: 205px;
  height: 218px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 13px 13px rgba(89, 38, 118, .2));
}
.game-brand-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
  padding-top: 0;
  text-align: center;
  transform: translate(-92px, 20px);
}
.game-brand-copy .title-art {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 472px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(86,31,116,.12));
}
.game-brand-copy::after { display: none; }
.game-brand-banner h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.game-brand-banner h1 > span {
  display: block;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 1.8px currentColor;
}
.game-brand-banner h1 .feijie-title {
  color: #f47a1d;
  background: none;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 2px 0 #ffd19a,
    0 4px 0 #d95a12,
    0 8px 11px rgba(120,54,19,.18);
  transform: translateX(-5%) rotate(-.5deg);
}
.game-brand-banner h1 .test-title {
  color: #7e2db6;
  background: none;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 2px 0 #d8a8ef,
    0 4px 0 #5e1989,
    0 8px 12px rgba(77,28,112,.2);
  transform: translateX(2%) rotate(.2deg);
}
.game-brand-banner h1::after { display: none; }
.game-brand-visual {
  display: none;
}

.play-mode-heading span,
.theme-library-heading span,
.theme-bank-heading span { color: #8a35be; }
.play-mode-heading span,
.theme-library-heading span {
  font-size: 18px;
  line-height: 1.15;
}
.play-mode-heading strong,
.theme-library-heading strong {
  margin-top: 7px;
  font-size: 24px;
}
.play-mode-tabs { gap: 13px; }
.play-mode-button,
.play-mode-button:nth-child(2),
.play-mode-button:nth-child(3),
.play-mode-button:nth-child(4) {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 11px 18px;
  color: #64247e;
  border: 4px solid #fff;
  border-radius: 27px;
  text-align: left;
  box-shadow:
    0 8px 0 rgba(221, 181, 213, .6),
    0 14px 23px rgba(132, 73, 151, .14),
    inset 0 0 0 2px rgba(255,255,255,.52),
    inset 0 5px 9px rgba(255,255,255,.58);
}
.play-mode-button:nth-child(1) { background: linear-gradient(145deg, #fff5c8, #ffe7a4); }
.play-mode-button:nth-child(2) { background: linear-gradient(145deg, #ffe5f4, #ffc9e8); }
.play-mode-button:nth-child(3) { background: linear-gradient(145deg, #dcffe6, #bdf5ce); }
.play-mode-button:nth-child(4) { background: linear-gradient(145deg, #e6f4ff, #c9e6ff); }
.play-mode-button::after { display: none; }
.play-mode-button .mode-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 7px 6px rgba(106, 49, 129, .16));
}
.play-mode-button .mode-index { display: none; }
.play-mode-button b {
  display: block;
  width: 100%;
  font-family: "Arial Rounded MT Bold", "PingFang SC", sans-serif;
  color: #682276;
  font-size: 35px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 0 #fff;
}
.play-mode-button small {
  display: none;
}
.play-mode-button.is-active {
  color: #64247e;
  border-color: #fff;
  outline: 4px solid #8c30d4;
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #c663e8,
    0 16px 26px rgba(126, 48, 171, .23),
    inset 0 0 0 2px rgba(255,255,255,.66),
    inset 0 6px 10px rgba(255,255,255,.66);
}
.play-mode-button.is-active small { color: #8c6695; }
.mode-preview-note {
  display: none;
}

.theme-listen-picture .audio-button,
.theme-listen-word .audio-button {
  background: linear-gradient(135deg, #087f7b 0%, #16a5a3 52%, #3b9ed8 100%) !important;
  border-color: rgba(255,255,255,.9);
  box-shadow:
    0 13px 28px rgba(8, 127, 123, .25),
    inset 0 2px 0 rgba(255,255,255,.32);
}

.ability-library-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.ability-library-card,
.ip-cover-card {
  aspect-ratio: 1;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow:
    0 8px 0 #e4d6ed,
    0 14px 23px rgba(86, 56, 114, .15);
}
.ability-library-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.65);
  pointer-events: none;
}
.ability-library-card.is-active {
  box-shadow:
    0 0 0 4px rgba(142, 53, 199, .24),
    0 8px 0 #c77be2,
    0 15px 25px rgba(109, 48, 145, .2);
}
.ip-card-status {
  right: 8px;
  top: 8px;
  padding: 6px 10px;
  color: #682276;
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(104, 34, 118, .16);
  box-shadow: 0 4px 12px rgba(40, 25, 62, .22);
  font-size: 11px;
  font-weight: 900;
  text-shadow: none;
  backdrop-filter: none;
}
.ip-card-caption {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 3;
  display: grid;
  gap: 1px;
  padding: 5px 8px 4px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, rgba(26, 45, 71, .86), rgba(26, 45, 71, .52));
  box-shadow: 0 2px 6px rgba(34, 20, 64, .16);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.32);
  backdrop-filter: blur(4px);
}
.ip-card-caption strong { font-size: 13px; font-weight: 900; }
.ip-card-caption small { font-size: 9px; font-weight: 700; opacity: .88; }
.ip-cover-card[data-theme="muzzy"] {
  background: #ffdf00;
}
.ip-cover-card[data-theme="muzzy"] img {
  object-fit: contain;
  background: #ffdf00;
}
body[data-screen="landing"] .test-trust-row span {
  color: #795e86;
  background: #fff;
  border-color: #eadcf0;
}

.theme-back-button {
  color: #7c31ad;
  background: #fff;
  border-color: #e5d2ee;
  box-shadow: 0 5px 0 #eadcf0;
}
.theme-hero {
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 17px;
  color: #fff;
  background: linear-gradient(145deg, #a64dd5, #7b2bb7 60%, #ff8a2b 155%);
  border: 4px solid #fff;
  border-radius: 24px;
  box-shadow:
    0 9px 0 #dec0ed,
    0 17px 29px rgba(103, 43, 139, .2),
    inset 0 4px 0 rgba(255,255,255,.28);
}
.theme-hero img {
  width: 100px;
  border: 3px solid #fff;
  border-radius: 17px;
  box-shadow: 0 7px 0 rgba(87,35,122,.25);
}
.theme-hero span { color: #f9eaff; font-size: 10px; opacity: 1; }
.theme-hero h2 {
  margin: 5px 0;
  color: #fff;
  font-size: 29px;
  text-shadow: 0 3px 0 rgba(76,24,108,.28);
}
.theme-hero p { color: #f8ebff; font-size: 11px; opacity: .95; }
.theme-bank-card,
.ip-subbank-card {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 15px;
  background: linear-gradient(145deg, #fff, #fff5fe);
  border: 2px solid #eadcf0;
  border-radius: 17px;
  box-shadow: 0 6px 0 #eadcf0, 0 12px 19px rgba(101,67,124,.09);
}
.theme-bank-card > span,
.ip-subbank-card > span {
  width: 44px;
  height: 44px;
  color: #7b2db0;
  background: linear-gradient(145deg, #f8eaff, #e3c1f5);
  border: 2px solid #fff;
  border-radius: 13px;
  box-shadow: 0 4px 0 #d5a9e8;
}
.theme-bank-card strong { color: #4c315d; font-size: 17px; }
.theme-bank-card small { color: #806c88; }
.theme-bank-card em,
.ip-subbank-card em { color: #8b3fb7; }
.theme-bank-card > b,
.ip-subbank-card > b {
  color: #7b2cad;
  background: #f3ddff;
}
.theme-test-note {
  color: #786681;
  background: #fff;
  border-color: #eadcf0;
}
.theme-test-note b { color: #7b2cad; }

@media (max-width: 700px) {
  body[data-screen="landing"] main,
  body[data-screen="landing"] footer,
  .theme-screen { width: min(100% - 18px, 700px); }
  .game-brand-banner {
    min-height: 184px;
    padding: 7px 24px 7px 112px;
    border-radius: 22px;
  }
  .tsinghua-lockup { top: 5px; left: 5px; width: 124px; height: 53px; }
  .tsinghua-gate-bg {
    top: 15px;
    right: -4px;
    width: 232px;
    height: 174px;
    opacity: .88;
  }
  .feijie-avatar { left: -8px; bottom: -31px; width: 144px; height: 164px; }
  .game-brand-copy { padding-top: 0; }
  .game-brand-copy { transform: translate(-48px, 16px); }
  .game-brand-copy .title-art { width: min(100%, 372px); }
  .game-brand-visual { right: -2px; top: 75px; width: 48px; height: 48px; }
  .play-mode-tabs { gap: 9px; }
  .play-mode-heading span,
  .theme-library-heading span { font-size: 16px; }
  .play-mode-heading strong,
  .theme-library-heading strong { font-size: 22px; }
  .play-mode-button {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 8px;
    min-height: 88px;
    padding: 10px 12px;
    border-radius: 20px;
    text-align: center;
  }
  .play-mode-button .mode-icon {
    width: 60px;
    height: 60px;
  }
  .play-mode-button b { font-size: 27px; line-height: 1.08; white-space: nowrap; }
  .ability-library-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ability-library-card,
  .ip-cover-card { border-radius: 14px; }
  .theme-hero { grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; }
  .theme-hero img { width: 76px; border-radius: 12px; }
  .theme-hero h2 { font-size: 22px; }
  .theme-bank-card,
  .ip-subbank-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .theme-bank-card > span,
  .ip-subbank-card > span { width: 40px; height: 40px; }
  .theme-bank-card > b,
  .ip-subbank-card > b { grid-column: 2; justify-self: start; }
}

@media (max-width: 390px) {
  .game-brand-banner {
    min-height: 166px;
    padding-right: 10px;
    padding-left: 92px;
  }
  .game-brand-visual { display: none; }
  .tsinghua-lockup { width: 96px; height: 41px; }
  .tsinghua-gate-bg {
    top: 18px;
    right: -7px;
    width: 192px;
    height: 147px;
    opacity: .82;
  }
  .feijie-avatar { left: -9px; bottom: -25px; width: 108px; height: 137px; }
  .game-brand-copy { padding-top: 0; }
  .game-brand-copy { transform: translate(-12px, 12px); }
  .game-brand-copy .title-art { width: min(100%, 300px); }
  .game-brand-banner p { max-width: 220px; margin-inline: auto; }
  .play-mode-button {
    min-height: 78px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
    padding: 9px 10px;
  }
  .play-mode-button .mode-icon { width: 52px; height: 52px; }
  .play-mode-button b { font-size: 24px; }
}

/* V60 quiz experience */
.quiz-brand-lockup { display: none; }

body[data-screen="quiz"] {
  color: #2f2530;
  background:
    radial-gradient(circle at 82% 5%, rgba(232, 204, 221, .35), transparent 23%),
    linear-gradient(180deg, #fffaf8 0%, #fbf3f6 48%, #fff 100%);
}
body[data-screen="quiz"] .page-shell { min-height: 100vh; }
body[data-screen="quiz"] .topbar {
  position: relative;
  isolation: isolate;
  width: min(760px, calc(100% - 24px));
  min-height: 120px;
  height: auto;
  margin-top: 10px;
  padding: 15px 24px;
  overflow: hidden;
  background: linear-gradient(90deg, #fffaf9 0%, #fff7f8 52%, #faf0f6 100%);
  border: 1px solid rgba(111, 22, 56, .1);
  border-radius: 0 0 25px 25px;
  box-shadow: 0 14px 34px rgba(100, 45, 69, .09);
}
body[data-screen="quiz"] .topbar::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,250,249,.32), rgba(255,255,255,.08) 55%, rgba(255,247,249,.18));
  pointer-events: none;
}
body[data-screen="quiz"] .topbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 16% 0 39%;
  background: url("./assets/ui/tsinghua-gate-3d-fast.webp?v=61") center / auto 126px no-repeat;
  opacity: .34;
  filter: saturate(.82) contrast(.98);
  pointer-events: none;
}
body[data-screen="quiz"] .brand {
  position: relative;
  z-index: 1;
  gap: 13px;
  text-align: left;
}
body[data-screen="quiz"] .quiz-brand-lockup {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  mix-blend-mode: normal;
}
body[data-screen="quiz"] .brand-mark { display: none; }
body[data-screen="quiz"] .brand > span:last-child {
  padding-left: 18px;
  border-left: 1px solid rgba(111, 22, 56, .25);
}
body[data-screen="quiz"] .brand strong {
  display: block;
  color: #321526;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0;
}
body[data-screen="quiz"] .brand small {
  display: block;
  margin-top: 4px;
  color: #666068;
  font-size: 16px;
  font-weight: 700;
}
body[data-screen="quiz"] .quiet-button {
  position: relative;
  z-index: 1;
  padding: 13px 18px;
  color: #741744;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(116, 23, 68, .12);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(94, 31, 62, .08);
  font-size: 17px;
  font-weight: 900;
}
body[data-screen="quiz"] main,
body[data-screen="quiz"] footer {
  width: min(740px, calc(100% - 24px));
}
.quiz-screen {
  max-width: 740px;
  padding: 22px 0 64px;
}
.quiz-topline {
  position: relative;
  min-height: 72px;
  padding: 0 22px;
  color: #3a373c;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(111, 22, 56, .09);
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(91, 42, 64, .08);
  backdrop-filter: blur(10px);
}
.quiz-topline .back-link {
  position: relative;
  padding-right: 25px;
  color: #6f1638;
  font-size: 17px;
  font-weight: 950;
}
.quiz-topline .back-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 1px;
  height: 25px;
  background: rgba(111, 22, 56, .2);
  transform: translateY(-50%);
}
.quiz-topline span {
  color: #38383d;
  font-size: 17px;
  font-weight: 850;
}
.quiz-topline strong {
  color: #761645;
  font-size: 21px;
  font-weight: 950;
}
.progress-track {
  height: 9px;
  margin: 20px 9px 30px;
  overflow: hidden;
  background: #eadfe5;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: inset 0 1px 4px rgba(94, 49, 70, .11);
}
.progress-track span {
  background: linear-gradient(90deg, #8b2854 0%, #d26578 58%, #f0b466 100%);
}

.theme-listen-picture .question-heading,
.theme-listen-word .question-heading {
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
}
.theme-listen-picture .question-actions,
.theme-listen-word .question-actions {
  width: 100%;
  margin: 0;
}
.theme-listen-picture .instruction-audio-button,
.theme-listen-word .instruction-audio-button { display: none; }
.theme-listen-picture .audio-button,
.theme-listen-word .audio-button {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 158px;
  justify-content: center;
  gap: 28px;
  padding: 20px 30px;
  overflow: hidden;
  color: #5f1738;
  background:
    radial-gradient(circle at 28% 42%, rgba(242, 205, 199, .48), transparent 27%),
    linear-gradient(145deg, #fffaf6 0%, #fff1ed 55%, #f6e7f5 100%) !important;
  border: 5px solid rgba(255,255,255,.96);
  border-radius: 30px;
  box-shadow:
    0 18px 40px rgba(101, 42, 69, .14),
    inset 0 0 0 1px rgba(126, 54, 87, .08);
}
.theme-listen-picture .audio-button::after,
.theme-listen-word .audio-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -7%;
  right: -7%;
  bottom: -35px;
  height: 104px;
  opacity: .72;
  background:
    radial-gradient(86% 115% at 18% 100%, rgba(235, 153, 169, .38) 0 50%, transparent 51%),
    radial-gradient(100% 120% at 70% 100%, rgba(190, 142, 210, .35) 0 56%, transparent 57%);
}
.theme-listen-picture .listen-mascot,
.theme-listen-word .listen-mascot {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  padding: 8px;
  object-fit: contain;
  background: rgba(255,255,255,.45);
  border-radius: 50%;
  filter: drop-shadow(0 10px 17px rgba(112, 63, 107, .17));
}
.theme-listen-picture .audio-button-copy,
.theme-listen-word .audio-button-copy {
  min-width: 0;
  padding-left: 27px;
  border-left: 2px solid rgba(111, 22, 56, .2);
  text-align: left;
}
.theme-listen-picture .audio-button-copy b,
.theme-listen-word .audio-button-copy b {
  color: #6f1638;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  text-shadow: none;
}
.theme-listen-picture .audio-button-copy small,
.theme-listen-word .audio-button-copy small { display: none; }
.theme-listen-picture .audio-button-copy em,
.theme-listen-word .audio-button-copy em {
  margin-top: 9px;
  color: #626066;
  font-size: 18px;
  font-weight: 850;
  opacity: 1;
}
.theme-listen-picture .interaction-guide,
.theme-listen-word .interaction-guide {
  margin-top: 14px;
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(111,22,56,.1) !important;
}

body[data-screen="quiz"] .option-grid {
  gap: 11px;
}
.theme-listen-picture .option-grid,
.theme-read-picture .option-grid {
  width: min(100%, 560px);
  margin-inline: auto;
}
.theme-listen-picture .option-card,
.theme-read-picture .option-card {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 8px;
  border-radius: 19px;
}
.theme-listen-picture .option-card .word-picture,
.theme-read-picture .option-card .word-picture {
  width: 100%;
  height: 100%;
}

/* Reading modes use a compact prompt so answers appear sooner. */
.theme-read-picture .reading-stem,
.theme-read-word .reading-stem {
  width: min(100%, 540px);
  min-height: 205px;
  margin: 0 auto 16px;
  padding: 20px 18px;
  border-radius: 24px;
}
.theme-read-picture #reading-word {
  font-size: 52px;
}
.theme-read-picture #reading-prompt-label,
.theme-read-word #reading-prompt-label {
  font-size: 12px;
}
.theme-read-picture .reading-audio-button {
  width: 58px;
  min-width: 58px;
  min-height: 58px;
  height: 58px;
  margin-top: 13px;
}
.theme-read-picture .reading-listen-mascot {
  width: 45px;
  height: 45px;
}
.theme-read-word .reading-picture-prompt {
  width: min(170px, 48vw);
  margin-top: 10px;
}
.theme-read-word .option-grid {
  width: min(100%, 560px);
  margin-inline: auto;
}
.theme-read-word .text-option-card {
  min-height: 110px;
}

/* Result report continues the same purple/rose visual system. */
body[data-screen="result"] {
  color: #2f2535;
  background:
    radial-gradient(circle at 86% 4%, rgba(224,196,235,.28), transparent 25%),
    linear-gradient(180deg, #fffafc 0%, #faf6fc 52%, #fff 100%);
}
body[data-screen="result"] .topbar {
  width: min(760px, calc(100% - 24px));
  min-height: 78px;
  padding: 12px 2px;
  background: transparent;
  border-bottom-color: rgba(102,46,125,.14);
}
body[data-screen="result"] .brand-mark,
body[data-screen="result"] .quiz-brand-lockup,
body[data-screen="result"] .quiet-button {
  display: none;
}
body[data-screen="result"] .brand strong {
  color: #3d2149;
  font-size: 22px;
}
body[data-screen="result"] .brand small {
  margin-top: 4px;
  color: #7c7081;
  font-size: 13px;
}
body[data-screen="result"] main,
body[data-screen="result"] footer {
  width: min(740px, calc(100% - 24px));
}
body[data-screen="result"] .result-screen {
  max-width: 740px;
  padding-top: 38px;
}
body[data-screen="result"] .eyebrow,
body[data-screen="result"] .section-heading span {
  color: #7b2cad;
}
body[data-screen="result"] .result-header h2 {
  color: #2f2535;
}
body[data-screen="result"] .estimate-block strong {
  color: #8b2f72;
}
body[data-screen="result"] .score-block div:nth-child(1) { border-color: #7b2cad; }
body[data-screen="result"] .score-block div:nth-child(2) { border-color: #d4a13e; }
body[data-screen="result"] .score-block div:nth-child(3) { border-color: #c45178; }
body[data-screen="result"] .weak-topics span {
  background: #f7effb;
  border-left-color: #9b5bc0;
}
body[data-screen="result"] .recommendation-section {
  border-top-color: #7b2cad;
  background: #f6effa;
}
body[data-screen="result"] .recommendation-section strong,
body[data-screen="result"] .growth-route {
  color: #5f247d;
}
body[data-screen="result"] .recommendation-grid > div {
  border-top-color: #9b5bc0;
}
body[data-screen="result"] .recommendation-verdict {
  border-left-color: #c45178;
}
body[data-screen="result"] .recommendation-verdict span,
body[data-screen="result"] .recommendation-grid span,
body[data-screen="result"] .growth-route i {
  color: #b14070;
}
body[data-screen="result"] .feijie-closing {
  background: linear-gradient(135deg, #5d256f, #8a3c92 60%, #b45b85);
  border-radius: 16px;
}
body[data-screen="result"] .feijie-closing > span {
  color: #692778;
}
body[data-screen="result"] .secondary-button {
  color: #64277d;
  background: #f2e9f7;
  border-color: #d8bce5;
}
body[data-screen="result"] .primary-button {
  background: linear-gradient(135deg, #7b2cad, #b34684);
  box-shadow: 0 10px 22px rgba(123,44,173,.2);
}
body[data-screen="result"] footer {
  color: #817486;
  border-top-color: #e6d9ea;
}

@media (max-width: 700px) {
  body[data-screen="quiz"] .topbar {
    width: min(100% - 14px, 760px);
    min-height: 102px;
    margin-top: 6px;
    padding: 12px 16px;
    border-radius: 0 0 20px 20px;
  }
  body[data-screen="quiz"] .topbar::before {
    inset: 0 14% 0 42%;
    background-size: auto 102px;
    opacity: .38;
  }
  body[data-screen="quiz"] .quiz-brand-lockup { width: 60px; height: 60px; }
  body[data-screen="quiz"] .brand { gap: 9px; }
  body[data-screen="quiz"] .brand > span:last-child { padding-left: 9px; }
  body[data-screen="quiz"] .brand strong { font-size: 20px; }
  body[data-screen="quiz"] .brand small { margin-top: 3px; font-size: 12px; }
  body[data-screen="quiz"] .quiet-button { padding: 10px 12px; font-size: 14px; }
  body[data-screen="quiz"] main,
  body[data-screen="quiz"] footer { width: min(100% - 14px, 740px); }
  .quiz-screen { padding-top: 17px; }
  .quiz-topline { min-height: 61px; padding: 0 15px; border-radius: 21px; }
  .quiz-topline .back-link { padding-right: 17px; font-size: 14px; }
  .quiz-topline .back-link::after { right: 3px; height: 21px; }
  .quiz-topline span { font-size: 14px; }
  .quiz-topline strong { font-size: 18px; }
  .progress-track { height: 8px; margin: 15px 7px 22px; }
  .theme-listen-picture .audio-button,
  .theme-listen-word .audio-button {
    min-height: 124px;
    gap: 13px;
    padding: 15px 17px;
    border-width: 4px;
    border-radius: 25px;
  }
  .theme-listen-picture .listen-mascot,
  .theme-listen-word .listen-mascot {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    padding: 5px;
  }
  .theme-listen-picture .audio-button-copy,
  .theme-listen-word .audio-button-copy { padding-left: 15px; }
  .theme-listen-picture .audio-button-copy b,
  .theme-listen-word .audio-button-copy b { font-size: 23px; }
  .theme-listen-picture .audio-button-copy em,
  .theme-listen-word .audio-button-copy em { margin-top: 5px; font-size: 14px; }
  body[data-screen="quiz"] .option-grid { gap: 9px; }
  .theme-listen-picture .option-card,
  .theme-read-picture .option-card { padding: 7px; border-radius: 17px; }
  .theme-read-picture .reading-stem,
  .theme-read-word .reading-stem {
    width: min(100%, 500px);
    min-height: 180px;
    padding: 17px 14px;
    border-radius: 21px;
  }
  .theme-read-picture #reading-word { font-size: 46px; }
  .theme-read-word .reading-picture-prompt { width: min(150px, 45vw); }
  .theme-read-word .text-option-card { min-height: 100px; }
}

@media (max-width: 420px) {
  body[data-screen="quiz"] .topbar { min-height: 91px; padding: 10px 11px; }
  body[data-screen="quiz"] .topbar::before {
    inset: 0 12% 0 45%;
    background-position: 58% center;
    background-size: auto 90px;
    opacity: .34;
  }
  body[data-screen="quiz"] .quiz-brand-lockup { width: 58px; height: 58px; }
  body[data-screen="quiz"] .brand strong { font-size: 19px; }
  body[data-screen="quiz"] .brand small { font-size: 10px; }
  body[data-screen="quiz"] .quiet-button { padding: 8px 9px; font-size: 12px; }
  .quiz-topline { min-height: 57px; padding: 0 12px; }
  .quiz-topline .back-link { font-size: 13px; }
  .quiz-topline span { max-width: 150px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .quiz-topline strong { font-size: 16px; }
  .theme-listen-picture .audio-button,
  .theme-listen-word .audio-button {
    min-height: 116px;
    gap: 10px;
    padding: 16px 12px;
  }
  .theme-listen-picture .listen-mascot,
  .theme-listen-word .listen-mascot {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }
  .theme-listen-picture .audio-button-copy,
  .theme-listen-word .audio-button-copy { padding-left: 13px; }
  .theme-listen-picture .audio-button-copy b,
  .theme-listen-word .audio-button-copy b { font-size: 21px; }
  .theme-listen-picture .audio-button-copy em,
  .theme-listen-word .audio-button-copy em { font-size: 13px; }
  .theme-read-picture .reading-stem,
  .theme-read-word .reading-stem { min-height: 165px; }
  .theme-read-picture #reading-word { font-size: 42px; }
  .theme-read-word .reading-picture-prompt { width: min(132px, 43vw); }
  .theme-read-word .text-option-card { min-height: 92px; }
  body[data-screen="result"] .topbar { min-height: 68px; }
  body[data-screen="result"] .brand strong { font-size: 20px; }
  body[data-screen="result"] .result-screen { padding-top: 28px; }
}

/* V65 shared topbar: the same friendly Feijie identity across theme, quiz and result. */
.topbar .topbar-avatar {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  object-position: center 12%;
  background: linear-gradient(145deg, #fff, #f6eafa);
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: 0 5px 0 #dfc5e9, 0 10px 22px rgba(103, 43, 130, .16);
}
.topbar .brand-mark,
.topbar .quiz-brand-lockup,
.topbar .quiet-button {
  display: none !important;
}
.topbar .brand { gap: 12px; }
.topbar .brand > span:last-child {
  padding-left: 0 !important;
  border-left: 0 !important;
}
.topbar .brand strong {
  color: #3d2149;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0;
}
.topbar .brand small {
  display: block;
  margin-top: 4px;
  color: #7a6d80;
  font-size: 12px;
  font-weight: 700;
}
body[data-screen="theme"] .topbar,
body[data-screen="result"] .topbar {
  min-height: 84px;
  padding-block: 11px;
}
body[data-screen="quiz"] .topbar { min-height: 104px; }
body[data-screen="quiz"] .topbar .topbar-avatar {
  width: 70px;
  height: 70px;
  flex-basis: 70px;
  border-radius: 23px;
}
body[data-screen="quiz"] .brand strong { font-size: 24px; }
body[data-screen="quiz"] .brand small { font-size: 14px; }
body[data-screen="result"] .topbar-avatar {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 18px;
}

@media (max-width: 420px) {
  .topbar .topbar-avatar {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 17px;
  }
  .topbar .brand { gap: 9px; }
  .topbar .brand strong { font-size: 18px; }
  .topbar .brand small { font-size: 10px; }
  body[data-screen="theme"] .topbar,
  body[data-screen="result"] .topbar { min-height: 72px; }
  body[data-screen="quiz"] .topbar .topbar-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 19px;
  }
  body[data-screen="quiz"] .brand strong { font-size: 19px; }
  body[data-screen="quiz"] .brand small { font-size: 11px; }
}
