.quiz-flow-v1 {
  --quiz-green: #58cc02;
  --quiz-green-dark: #46a302;
  --quiz-blue: #1cb0f6;
  --quiz-yellow: #ffc800;
  --quiz-red: #ff4b4b;
  --quiz-ink: #14241b;
  --quiz-muted: #5f7168;
  --quiz-line: #d9edcf;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: clamp(12px, 1.8vw, 24px);
  overflow-x: hidden;
  opacity: 1;
  animation: none;
  color: var(--quiz-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #f8fff4 0%, #effbe8 54%, #e9fbff 100%);
  font-family: "Nunito", "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.reading-result-v2 {
  min-height: 100vh;
  padding: 22px clamp(18px, 4vw, 48px) 40px;
  background:
    linear-gradient(135deg, rgba(235, 255, 231, 0.96), rgba(226, 248, 255, 0.94) 56%, rgba(255, 249, 230, 0.9));
  color: var(--text-main, #122218);
}

.reading-result-top {
  max-width: 1180px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(111, 207, 93, 0.22);
  border-radius: 28px;
  padding: 14px 18px;
  box-shadow: 0 16px 36px rgba(53, 128, 69, 0.12);
}

.reading-result-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.reading-result-brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #58d22c, #22a80f);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.reading-result-brand strong,
.reading-result-brand small {
  display: block;
}

.reading-result-brand strong {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.reading-result-brand small {
  color: #2684a6;
  font-weight: 800;
}

.reading-result-top button {
  border: 0;
  border-radius: 18px;
  padding: 14px 22px;
  color: #1589c9;
  background: #e7f7ff;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(41, 169, 224, 0.18);
}

.reading-result-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: stretch;
}

.reading-result-hero,
.reading-result-card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(111, 207, 93, 0.22);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(43, 112, 71, 0.13);
}

.reading-result-hero {
  padding: clamp(34px, 6vw, 76px);
}

.reading-result-hero p {
  margin: 0 0 10px;
  color: #168cc2;
  font-weight: 900;
  text-transform: uppercase;
}

.reading-result-hero h1 {
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.reading-result-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.reading-result-score strong {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.9;
  color: #35bb19;
}

.reading-result-score span {
  font-size: 1.7rem;
  font-weight: 900;
  color: #5b7065;
}

.reading-result-meter {
  height: 18px;
  border-radius: 999px;
  background: rgba(85, 132, 93, 0.14);
  overflow: hidden;
}

.reading-result-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #43d413, #27b8e8);
}

.reading-result-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reading-result-card h2 {
  margin: 0;
  font-size: 1.55rem;
}

.reading-result-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(70, 114, 82, 0.12);
  font-weight: 900;
}

.reading-result-stat span {
  color: #5b7065;
}

.reading-result-stat strong {
  font-size: 1.4rem;
}

.reading-result-actions {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.reading-result-actions p {
  margin: 0;
  color: #5b7065;
  font-weight: 800;
}

.reading-result-primary,
.reading-result-secondary {
  border: 0;
  border-radius: 18px;
  min-height: 64px;
  padding: 16px 20px;
  font-size: 1.08rem;
  font-weight: 900;
}

.reading-result-primary {
  color: #fff;
  background: linear-gradient(180deg, #53d900, #2fbd00);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15);
}

.reading-result-secondary {
  color: #1589c9;
  background: #e8f7ff;
  box-shadow: inset 0 -4px 0 rgba(41, 169, 224, 0.18);
}

@media (max-width: 840px) {
  .reading-result-shell {
    grid-template-columns: 1fr;
  }

  .reading-result-top {
    border-radius: 22px;
  }
  .reading-result-v2 {
    padding: 12px;
  }
  .reading-result-hero,
  .reading-result-card {
    border-radius: 22px;
  }
  .reading-result-hero {
    padding: 28px 22px;
  }
  .reading-result-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }
}

.quiz-flow-v1.page.active {
  display: block;
  opacity: 1;
  animation: none;
}

body:has(.quiz-flow-v1),
body:has(.quiz-result-v1),
body:has(.reading-result-v2),
body:has(.mistake-book-v2) {
  min-height: 100vh;
  margin: 0;
  background: #f8fff4;
}

body:has(.quiz-flow-v1) #app,
body:has(.quiz-result-v1) #app,
body:has(.reading-result-v2) #app,
body:has(.mistake-book-v2) #app {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body:has(.quiz-flow-v1) #fx-canvas,
body:has(.quiz-flow-v1) #combo-layer,
body:has(.quiz-flow-v1) #flash-overlay,
body:has(.quiz-flow-v1) #crack-overlay,
body:has(.quiz-flow-v1) #slowmo-overlay,
body:has(.quiz-result-v1) #fx-canvas,
body:has(.quiz-result-v1) #combo-layer,
body:has(.quiz-result-v1) #flash-overlay,
body:has(.quiz-result-v1) #crack-overlay,
body:has(.quiz-result-v1) #slowmo-overlay,
body:has(.quiz-flow-v1) .combo-display,
body:has(.quiz-result-v1) .combo-display {
  display: none !important;
}

.mistake-book-v2 {
  min-height: 100vh;
  padding: 22px clamp(18px, 4vw, 48px) 44px;
  background: linear-gradient(135deg, rgba(235, 255, 231, 0.96), rgba(226, 248, 255, 0.94) 58%, rgba(255, 249, 230, 0.9));
  color: #122218;
  font-family: "Nunito", "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.mistake-book-top {
  max-width: 1180px;
  margin: 0 auto 24px;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(111, 207, 93, 0.24);
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(53, 128, 69, 0.12);
}

.mistake-book-back,
.mistake-book-primary,
.mistake-book-secondary,
.mistake-book-empty button {
  border: 0;
  border-radius: 18px;
  min-height: 58px;
  padding: 14px 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.mistake-book-back,
.mistake-book-secondary {
  color: #1589c9;
  background: #e7f7ff;
  box-shadow: inset 0 -4px 0 rgba(41, 169, 224, 0.18);
}

.mistake-book-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mistake-book-title > span,
.mistake-book-card-icon,
.mistake-book-empty-icon {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, #ff9c18, #ff6428);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14);
}

.mistake-book-title > span {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  font-size: 1.4rem;
}

.mistake-book-title strong,
.mistake-book-title small {
  display: block;
}

.mistake-book-title strong {
  font-size: 1.55rem;
  line-height: 1.1;
}

.mistake-book-title small {
  margin-top: 4px;
  color: #5b7065;
  font-weight: 800;
}

.mistake-book-count {
  width: 88px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  line-height: 1;
  color: #ff5a32;
  font-size: 1.5rem;
  font-weight: 1000;
  background: #fff8e8;
  border: 2px solid rgba(255, 148, 31, 0.28);
}

.mistake-book-count small {
  display: block;
  color: #6b756e;
  font-size: 0.72rem;
}

.mistake-book-shell,
.mistake-book-empty {
  max-width: 1180px;
  margin: 0 auto;
}

.mistake-book-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 20px;
}

.mistake-book-primary,
.mistake-book-empty button {
  color: #fff;
  background: linear-gradient(180deg, #53d900, #2fbd00);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15);
}

.mistake-book-section {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(111, 207, 93, 0.22);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 20px 48px rgba(43, 112, 71, 0.13);
}

.mistake-book-section + .mistake-book-section {
  margin-top: 20px;
}

.mistake-book-section h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.mistake-book-list {
  display: grid;
  gap: 12px;
}

.mistake-book-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  background: #fffefa;
  border: 2px solid rgba(255, 148, 31, 0.24);
  border-radius: 20px;
}

.mistake-book-card.mastered {
  align-items: center;
  border-color: rgba(67, 196, 53, 0.22);
  background: #f8fff4;
}

.mistake-book-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.mistake-book-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mistake-book-card-head strong,
.mistake-book-card-main > strong {
  font-size: 1.15rem;
}

.mistake-book-card-head span,
.mistake-book-card time,
.mistake-book-card em {
  color: #ff5a32;
  font-size: 0.86rem;
  font-weight: 900;
  font-style: normal;
}

.mistake-book-phonetic,
.mistake-book-meaning {
  margin-top: 3px;
  color: #5b7065;
  font-weight: 800;
}

.mistake-book-detail {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.mistake-book-detail p {
  margin: 0;
  color: #32483a;
  font-weight: 800;
  line-height: 1.45;
}

.mistake-book-explain {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f2fff0;
  border: 1px solid rgba(111, 207, 93, 0.24);
}

.mistake-book-tip {
  color: #168cc2 !important;
}

.mistake-book-empty {
  min-height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(111, 207, 93, 0.22);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(43, 112, 71, 0.13);
}

.mistake-book-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #58d22c, #22a80f);
  font-size: 2rem;
}

.mistake-book-empty h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.mistake-book-empty p {
  margin: 0 0 22px;
  color: #5b7065;
  font-weight: 800;
}

@media (max-width: 760px) {
  .mistake-book-v2 {
    padding: 16px;
  }

  .mistake-book-top {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .mistake-book-count {
    width: 100%;
  }

  .mistake-book-actions,
  .mistake-book-card {
    grid-template-columns: 1fr;
  }

  .mistake-book-card time {
    justify-self: start;
  }
}

.quiz-flow-v1 * {
  box-sizing: border-box;
}

.quiz-flow-shell {
  display: grid;
  gap: 14px;
  width: min(100%, 1240px);
  margin: 0 auto;
}

.quiz-flow-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 460px) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid rgba(88, 204, 2, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(56, 123, 39, 0.12);
}

.quiz-flow-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.quiz-flow-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(180deg, #69df14, var(--quiz-green));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 5px 0 var(--quiz-green-dark);
  font-size: 22px;
  font-weight: 1000;
}

.quiz-flow-brand strong,
.quiz-flow-brand small {
  display: block;
}

.quiz-flow-brand strong {
  color: var(--quiz-ink);
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1;
  font-weight: 1000;
}

.quiz-flow-brand small {
  margin-top: 4px;
  color: var(--quiz-green-dark);
  font-size: 13px;
  font-weight: 900;
}

.quiz-flow-progress {
  min-width: 0;
}

.quiz-flow-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--quiz-muted);
  font-size: 13px;
  font-weight: 900;
}

.quiz-flow-track,
.quiz-flow-meter {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9d7;
}

.quiz-flow-track {
  margin-top: 6px;
}

.quiz-flow-track span,
.quiz-flow-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--quiz-green), var(--quiz-blue));
}

.quiz-flow-hud,
.quiz-flow-exit {
  min-height: 44px;
  border-radius: 16px;
  font-weight: 1000;
}

.quiz-flow-hud {
  min-width: 84px;
  padding: 6px 12px;
  border: 1px solid var(--quiz-line);
  background: #ffffff;
  text-align: center;
}

.quiz-flow-hud span {
  display: block;
  color: var(--quiz-muted);
  font-size: 12px;
  line-height: 1;
}

.quiz-flow-hud strong {
  display: block;
  color: var(--quiz-green-dark);
  font-size: 20px;
  line-height: 1.15;
}

.quiz-flow-exit,
.quiz-flow-secondary {
  border: 0;
  color: #168bd0;
  background: #eaf8ff;
  box-shadow: 0 5px 0 #bde6fb;
  cursor: pointer;
}

.quiz-flow-exit {
  padding: 0 16px;
}

.quiz-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.quiz-flow-card {
  border: 1px solid rgba(88, 204, 2, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(32, 112, 52, 0.14);
}

.quiz-flow-question {
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
}

.quiz-flow-head p {
  margin: 0 0 7px;
  color: #168bd0;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.quiz-flow-head h1 {
  margin: 0;
  color: var(--quiz-ink);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.08;
  font-weight: 1000;
}

.quiz-flow-sub {
  margin-top: 8px;
  color: var(--quiz-muted);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 850;
  line-height: 1.45;
}

.quiz-flow-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}

.quiz-flow-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  border: 3px solid #dfeadb;
  border-radius: 20px;
  color: var(--quiz-ink);
  background: #ffffff;
  box-shadow: 0 7px 0 #dce6d8;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 1000;
}

.quiz-flow-option:hover:not(.correct):not(.wrong):not(.disabled),
.quiz-flow-option:focus-visible:not(.correct):not(.wrong):not(.disabled) {
  color: var(--quiz-ink);
  border-color: #bfe8ae;
  background: #f8fff3;
  box-shadow: 0 7px 0 #cfe8c7, 0 0 0 4px rgba(88, 204, 2, 0.14);
  outline: none;
}

.quiz-flow-option span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(180deg, #55c7ff, var(--quiz-blue));
  font-size: 20px;
  font-weight: 1000;
}

.quiz-flow-option strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.28;
}

.quiz-flow-option.correct {
  border-color: var(--quiz-green);
  background: #efffe7;
  box-shadow: 0 7px 0 #b9ec9c;
}

.quiz-flow-option.wrong {
  border-color: var(--quiz-red);
  background: #fff0f0;
  box-shadow: 0 7px 0 #ffc5c5;
}

.quiz-flow-option.disabled {
  pointer-events: none;
  opacity: 1;
}

.quiz-flow-audio {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  border-radius: 22px;
  background: #f4fbef;
}

.quiz-flow-audio button,
.quiz-flow-primary {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(180deg, #68de15, var(--quiz-green));
  box-shadow: 0 7px 0 var(--quiz-green-dark);
  cursor: pointer;
  font-size: 16px;
  font-weight: 1000;
}

.quiz-flow-audio button {
  min-width: 150px;
}

.quiz-flow-audio span {
  color: var(--quiz-muted);
  font-weight: 900;
}

.quiz-flow-spelling {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: 22px 0 16px;
}

.quiz-flow-spelling .letter-box {
  width: 46px;
  height: 54px;
  border-color: var(--quiz-line);
  background: #ffffff;
  color: var(--quiz-ink);
}

.quiz-flow-spelling-input {
  display: block;
  width: min(100%, 420px);
  max-width: none;
  margin: 0 auto 16px;
  border-color: var(--quiz-line);
  background: #ffffff;
  color: var(--quiz-ink);
}

.quiz-flow-primary {
  display: block;
  width: min(100%, 240px);
  margin: 0 auto;
}

.quiz-flow-match {
  margin-top: 22px;
}

.quiz-flow-match .match-item,
.quiz-flow-bubble .bubble-item {
  min-height: 56px;
  border-color: var(--quiz-line);
  background: #ffffff;
  color: var(--quiz-ink);
  font: inherit;
  font-weight: 950;
}

.quiz-flow-bubble {
  margin-top: 22px;
}

.quiz-flow-bubble .bubble-item {
  aspect-ratio: auto;
  min-height: 74px;
}

.quiz-flow-side {
  display: grid;
  gap: 14px;
}

.quiz-flow-side .quiz-flow-card,
.quiz-result-summary {
  padding: 18px;
}

.quiz-flow-card h2 {
  margin: 0;
  color: var(--quiz-ink);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 1000;
}

.quiz-flow-card p {
  margin: 8px 0 0;
  color: var(--quiz-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.48;
}

.quiz-flow-stats {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quiz-flow-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7fff2;
}

.quiz-flow-stats span {
  color: var(--quiz-muted);
  font-size: 13px;
  font-weight: 850;
}

.quiz-flow-stats strong {
  color: var(--quiz-ink);
  font-weight: 1000;
}

.quiz-flow-tools-card p {
  margin-top: 10px;
}

.quiz-flow-tools {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.quiz-flow-tool {
  width: 100%;
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(34, 52, 38, 0.12);
  border-radius: 14px;
  background: #fffdf4;
  color: var(--quiz-ink);
  padding: 9px 11px;
  font-weight: 900;
  cursor: pointer;
}

.quiz-flow-tool[disabled] {
  opacity: 0.46;
  cursor: not-allowed;
}

.quiz-flow-tool.readonly {
  cursor: default;
  background: #f7fff2;
}

.quiz-flow-tool span {
  font-size: 13px;
  color: var(--quiz-muted);
}

.quiz-flow-tool strong {
  color: var(--quiz-ink);
}

.quiz-flow-note {
  background: linear-gradient(180deg, #ffffff, #f6ffef);
}

.reading-flow-shell {
  width: min(100%, 1320px);
}

.reading-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.reading-flow-passage,
.reading-flow-questions {
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
}

.reading-flow-passage {
  position: sticky;
  top: 14px;
}

.reading-flow-kicker,
.reading-flow-question-head p {
  margin: 0 0 8px;
  color: #168bd0;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.reading-flow-passage h1,
.reading-flow-question-head h2 {
  margin: 0;
  color: var(--quiz-ink);
  font-size: clamp(26px, 2.3vw, 40px);
  line-height: 1.08;
  font-weight: 1000;
}

.reading-flow-passage-text {
  max-height: calc(100vh - 220px);
  margin-top: 18px;
  overflow: auto;
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid rgba(88, 204, 2, 0.18);
  border-radius: 22px;
  color: var(--quiz-ink);
  background: linear-gradient(180deg, #ffffff 0%, #fbfff8 100%);
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 850;
  line-height: 1.58;
}

.reading-flow-question-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--quiz-line);
}

.reading-flow-mini-progress {
  min-width: 128px;
}

.reading-flow-mini-progress > span {
  display: block;
  margin-bottom: 6px;
  color: var(--quiz-green-dark);
  font-size: 18px;
  font-weight: 1000;
  text-align: right;
}

.reading-flow-question-block {
  padding: 18px 0;
  border-bottom: 1px solid rgba(217, 237, 207, 0.8);
}

.reading-flow-question-block:last-child {
  border-bottom: 0;
}

.reading-flow-question-text {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--quiz-ink);
  font-size: clamp(18px, 1.35vw, 23px);
  font-weight: 1000;
  line-height: 1.28;
}

.reading-flow-question-text span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, #55c7ff, var(--quiz-blue));
  box-shadow: 0 4px 0 #168bd0;
  font-size: 16px;
}

.reading-flow-options {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.reading-flow-option {
  width: 100%;
  min-height: 62px;
  padding: 10px 14px;
}

.reading-flow-option strong {
  font-size: clamp(16px, 1.15vw, 20px);
}

.reading-flow-option.hint-target {
  border-color: rgba(255, 195, 0, 0.76);
  box-shadow: 0 6px 0 rgba(180, 126, 0, 0.28);
}

.reading-flow-explanation {
  margin-top: 13px;
  padding: 14px 16px;
  border: 2px solid rgba(88, 204, 2, 0.28);
  border-radius: 18px;
  color: var(--quiz-ink);
  background: #f7fff2;
  box-shadow: 0 8px 0 #dcefd2;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 850;
  line-height: 1.58;
}

.reading-flow-explanation.is-wrong {
  border-color: rgba(255, 75, 75, 0.28);
  background: #fff8ef;
  box-shadow: 0 8px 0 #f5dfc4;
}

.reading-flow-explanation-answer {
  color: var(--quiz-green-dark);
  font-size: 18px;
  font-weight: 1000;
}

.reading-flow-explanation.is-wrong .reading-flow-explanation-answer,
.reading-flow-explanation-trap {
  color: #c66f00;
}

.reading-flow-explanation-line,
.reading-flow-explanation-tip,
.reading-flow-explanation-trap {
  margin-top: 7px;
}

.reading-flow-evidence {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.reading-flow-evidence small {
  color: var(--quiz-muted);
  font-weight: 900;
}

.reading-flow-complete {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-top: 18px;
}

.reading-flow-complete strong {
  color: var(--quiz-green-dark);
  font-size: 20px;
  font-weight: 1000;
}

.quiz-flow-retry-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(28, 176, 246, 0.28);
  border-radius: 16px;
  color: #126fa8;
  background: #eaf8ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 1000;
  line-height: 1.35;
}

.quiz-flow-answer-card {
  --quiz-ink: #102116;
  --quiz-muted: #61756b;
  --quiz-green-dark: #45a400;
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 2000;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: min(760px, calc(100vw - 24px));
  max-height: min(54vh, 440px);
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid rgba(88, 204, 2, 0.32);
  border-radius: 22px;
  background: #ffffff;
  color: var(--quiz-ink);
  box-shadow: 0 18px 36px rgba(32, 112, 52, 0.22);
}

.quiz-flow-answer-mark {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffbf24, #ff9300);
  box-shadow: 0 4px 0 #d87600;
  font-size: 24px;
  font-weight: 1000;
}

.quiz-flow-answer-main {
  min-width: 0;
}

.quiz-flow-answer-card span,
.quiz-flow-answer-card small,
.quiz-flow-answer-card p {
  display: block;
}

.quiz-flow-answer-card .quiz-flow-answer-label {
  color: var(--quiz-green-dark, #45a400);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.quiz-flow-answer-card strong {
  display: block;
  color: var(--quiz-ink, #102116);
  font-size: clamp(18px, 1.35vw, 23px);
  font-weight: 1000;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.quiz-flow-answer-card small {
  color: var(--quiz-muted, #61756b);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.quiz-flow-answer-user {
  color: #ff4b4b !important;
}

.quiz-flow-answer-card p {
  margin: 8px 0 0;
  color: var(--quiz-ink, #102116);
  font-size: clamp(14px, 1.02vw, 16px);
  font-weight: 850;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.quiz-flow-answer-card p b {
  color: #1cb0f6;
}

.quiz-flow-answer-evidence {
  padding: 10px 12px;
  border: 1px solid rgba(28, 176, 246, 0.22);
  border-radius: 14px;
  background: #f2fbff;
}

.quiz-flow-answer-evidence small {
  margin-top: 4px;
  color: #168bd0;
}

.quiz-flow-answer-tip,
.quiz-flow-answer-example {
  color: var(--quiz-muted) !important;
  font-weight: 800 !important;
}

.quiz-flow-answer-card button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: #168bd0;
  background: #eaf8ff;
  box-shadow: 0 4px 0 #bde6fb;
  cursor: pointer;
  font-weight: 1000;
}

.quiz-flow-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.quiz-flow-answer-actions button {
  min-height: 46px;
  border-radius: 16px;
  font-size: 14px;
}

.quiz-flow-answer-actions .is-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #68de15, #46c700);
  box-shadow: 0 5px 0 #2c9900;
}

.quiz-flow-answer-actions .is-secondary {
  color: #168bd0;
  background: #eaf8ff;
  box-shadow: 0 5px 0 #bde6fb;
}

.quiz-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 16px;
}

.quiz-result-topbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.quiz-result-hero {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: clamp(22px, 3vw, 42px);
  background:
    radial-gradient(circle at 82% 15%, rgba(255, 200, 0, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f6ffef 100%);
}

.quiz-result-hero p {
  margin: 0;
  color: #168bd0;
  font-size: 14px;
  font-weight: 1000;
  text-transform: uppercase;
}

.quiz-result-hero h1 {
  margin: 8px 0;
  color: var(--quiz-green-dark);
  font-size: clamp(82px, 12vw, 150px);
  line-height: 0.9;
  font-weight: 1000;
}

.quiz-result-hero > strong {
  color: var(--quiz-ink);
  font-size: 26px;
  font-weight: 1000;
}

.quiz-result-summary {
  display: grid;
  align-content: center;
}

.quiz-result-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quiz-result-actions .quiz-flow-primary,
.quiz-result-actions .quiz-flow-secondary {
  width: 100%;
  min-height: 54px;
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
}

@media (max-width: 1120px) {
  .quiz-flow-topbar,
  .quiz-flow-grid,
  .quiz-result-grid,
  .reading-flow-grid {
    grid-template-columns: 1fr;
  }

  .quiz-flow-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reading-flow-passage {
    position: static;
  }

  .reading-flow-passage-text {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .quiz-flow-v1 {
    padding: 10px;
  }

  .quiz-flow-options,
  .quiz-flow-side {
    grid-template-columns: 1fr;
  }

  .quiz-flow-option {
    min-height: 68px;
  }

  .quiz-flow-audio {
    display: grid;
  }

  .quiz-flow-audio button,
  .quiz-flow-primary {
    width: 100%;
  }

  .reading-flow-passage,
  .reading-flow-questions {
    padding: 16px;
  }

  .reading-flow-passage h1,
  .reading-flow-question-head h2 {
    font-size: 26px;
  }

  .reading-flow-passage-text {
    padding: 15px;
    font-size: 17px;
    line-height: 1.56;
  }

  .reading-flow-question-head {
    display: grid;
  }

  .reading-flow-mini-progress {
    min-width: 0;
  }

  .reading-flow-mini-progress > span {
    text-align: left;
  }

  .reading-flow-question-text {
    grid-template-columns: 30px minmax(0, 1fr);
    font-size: 18px;
  }

  .reading-flow-question-text span {
    width: 30px;
    height: 30px;
  }

  .quiz-flow-answer-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    max-width: none;
    max-height: 54vh;
    padding: 14px;
  }

  .quiz-flow-answer-card button {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}
