@charset "UTF-8";

:root {
  color-scheme: light;
  --navy-950: #0a2148;
  --navy-900: #10305f;
  --navy-800: #173f79;
  --blue-700: #1e5db7;
  --blue-600: #2870d4;
  --blue-100: #eaf3ff;
  --purple-700: #7840a4;
  --purple-100: #f4eefd;
  --amber-500: #f3ad1b;
  --amber-100: #fff5cc;
  --green-700: #187451;
  --green-100: #e8f8f0;
  --red-700: #b83b47;
  --red-100: #fff0f1;
  --ink: #17213b;
  --muted: #58647a;
  --line: #d8deea;
  --paper: #ffffff;
  --canvas: #f4f3ef;
  --shadow-sm: 0 2px 8px rgba(18, 45, 87, 0.08);
  --shadow-md: 0 14px 34px rgba(18, 45, 87, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --content-width: 1120px;
  --font-main: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --font-readable: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 7% 8%, rgba(40, 112, 212, 0.08), transparent 24rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body.easy-read {
  --font-main: var(--font-readable);
  font-size: 18px;
  letter-spacing: 0.018em;
  line-height: 1.72;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="radio"] {
  cursor: pointer;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
audio:focus-visible {
  outline: 4px solid rgba(243, 173, 27, 0.72);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

mark {
  padding: 0.05em 0.22em;
  border-radius: 4px;
  background: #ffed93;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  color: var(--navy-900);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.13) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 62%, rgba(255, 255, 255, 0.1) 0 5px, transparent 6px),
    linear-gradient(125deg, var(--navy-950), var(--navy-800) 62%, #235ca4);
  color: white;
}

.hero::after {
  position: absolute;
  right: -7rem;
  bottom: -11rem;
  width: 27rem;
  height: 27rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.035), 0 0 0 96px rgba(255, 255, 255, 0.025);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 38px;
}

.hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.course-pill,
.part-label,
.tense-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.085em;
  line-height: 1.2;
}

.course-pill {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.reading-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 22, 50, 0.3);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}

.reading-toggle > span:first-child {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--navy-900);
  font-weight: 900;
}

.reading-toggle[aria-pressed="true"] {
  background: var(--amber-500);
  color: var(--navy-950);
}

.hero__eyebrow,
.section-kicker,
.mission-card__number {
  margin: 0 0 5px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.3;
}

.hero__eyebrow {
  color: #9fc9ff;
}

.hero h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__subtitle {
  margin: 10px 0 28px;
  color: #d6e7ff;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 650;
}

.hero-progress {
  display: grid;
  max-width: 610px;
  gap: 9px;
}

.hero-progress__copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #d6e7ff;
  font-size: 0.9rem;
}

.hero-progress__copy strong {
  color: white;
}

.overall-progress,
.result-progress {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.19);
  appearance: none;
  -webkit-appearance: none;
}

.overall-progress::-webkit-progress-bar,
.result-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.19);
}

.overall-progress::-webkit-progress-value,
.result-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), #ffd766);
}

.overall-progress::-moz-progress-bar,
.result-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), #ffd766);
}

.hero__decor {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.18);
  font-weight: 900;
  transform: rotate(12deg);
}

.hero__decor--one {
  top: 22%;
  right: 15%;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  font-size: 2rem;
}

.hero__decor--two {
  top: 18%;
  right: 5%;
  border: 0;
  font-size: 2.2rem;
  transform: rotate(-15deg);
}

.section-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(18, 45, 87, 0.07);
  backdrop-filter: blur(12px);
}

.section-nav__inner {
  display: flex;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav__inner::-webkit-scrollbar {
  display: none;
}

.nav-button {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  min-height: 62px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.nav-button::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 4px;
  border-radius: 5px 5px 0 0;
  background: var(--blue-600);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 170ms ease;
}

.nav-button.is-active {
  color: var(--navy-900);
}

.nav-button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.view {
  padding: 42px 0 70px;
}

.welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(25px, 5vw, 42px);
  border: 1px solid #cdddf3;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #f7fbff, #eaf3ff);
  box-shadow: var(--shadow-sm);
}

.welcome-card h2,
.section-heading h2,
.quick-guide h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.welcome-card p:not(.section-kicker) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.welcome-card__mascot {
  display: grid;
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-sm);
  font-size: 3.2rem;
  transform: rotate(4deg);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 50px;
}

.mission-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.mission-card::before {
  height: 7px;
  background: var(--card-colour, var(--blue-600));
  content: "";
}

.mission-card--listening { --card-colour: #147a99; }
.mission-card--reading { --card-colour: var(--blue-600); }
.mission-card--grammar { --card-colour: var(--purple-700); }

.mission-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 24px 24px 0;
  place-items: center;
  border-radius: 17px;
  background: color-mix(in srgb, var(--card-colour) 12%, white);
  font-size: 1.8rem;
}

.mission-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 24px 20px;
}

.mission-card__number {
  color: var(--card-colour);
}

.mission-card h3 {
  margin: 3px 0 8px;
  color: var(--navy-950);
  font-size: 1.45rem;
}

.mission-card p:not(.mission-card__number) {
  margin: 0;
  color: var(--muted);
}

.mission-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.mission-card__meta span:last-child {
  color: var(--card-colour);
}

.mission-card__button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  color: var(--navy-900);
  font-weight: 850;
  text-align: left;
}

.quick-guide {
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.quick-guide__heading,
.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quick-guide__heading > span {
  font-size: 2.2rem;
}

.tense-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.tense-card {
  padding: 22px;
  border: 1px solid #cfe0f6;
  border-radius: 15px;
  background: var(--blue-100);
}

.tense-card--continuous {
  border-color: #dfcef0;
  background: var(--purple-100);
}

.tense-card--together {
  border-color: #f1d887;
  background: var(--amber-100);
}

.tense-label,
.part-label {
  padding: 6px 10px;
  background: #dbeaff;
  color: var(--navy-800);
}

.tense-card--continuous .tense-label,
.tense-label--purple {
  background: #eadcf7;
  color: #62318b;
}

.tense-card--together .tense-label {
  background: #ffe897;
  color: #704c00;
}

.tense-card h3 {
  margin: 13px 0 5px;
  color: var(--navy-950);
  font-size: 1.12rem;
}

.tense-card p {
  margin: 5px 0;
  color: var(--muted);
}

.example {
  font-size: 0.94rem;
}

.section-heading {
  align-items: flex-start;
  margin-bottom: 26px;
}

.section-heading__icon {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 21px;
  background: var(--blue-100);
  font-size: 2.2rem;
}

.section-heading__icon--listening { background: #e5f7fb; }
.section-heading__icon--grammar { background: var(--purple-100); }
.section-heading__icon--results { background: var(--amber-100); }

.section-heading > div:last-child > p:last-child {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--muted);
}

.strategy-strip {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 25px;
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 1px solid #bdd7f4;
  border-left: 6px solid var(--blue-600);
  border-radius: var(--radius-sm);
  background: var(--blue-100);
}

.strategy-strip strong {
  color: var(--navy-900);
}

.strategy-strip ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0;
  padding-left: 22px;
  color: #344764;
  font-size: 0.92rem;
}

.exercise-card {
  margin-bottom: 26px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.exercise-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.exercise-card__header h3 {
  margin: 10px 0 3px;
  color: var(--navy-950);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.2;
}

.exercise-card__header p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
}

.question-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f0f2f6;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.audio-card {
  border-color: #bcdde7;
  background: linear-gradient(135deg, #f7fdff, #ecf8fb);
}

audio {
  display: block;
  width: 100%;
  min-height: 54px;
}

.audio-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.speed-control {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.speed-control select {
  min-height: 44px;
  padding: 6px 34px 6px 12px;
  border: 1px solid #bdc7d6;
  border-radius: 9px;
  background: white;
  color: var(--ink);
}

.transcript,
.story-box,
.cloze-text {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #dfd3ed;
  border-left: 6px solid var(--purple-700);
  border-radius: 12px;
  background: #faf7fd;
  color: #2c3142;
  font-family: var(--font-readable);
  font-size: 1.08rem;
  line-height: 2.65;
}

.transcript p,
.story-box p,
.cloze-text p {
  margin: 0 0 14px;
}

.transcript p:last-child,
.story-box p:last-child,
.cloze-text p:last-child {
  margin-bottom: 0;
}

.inline-response {
  position: relative;
  display: inline-flex;
  min-width: 118px;
  align-items: center;
  margin: 0 4px;
  vertical-align: baseline;
}

.answer-input,
.gap-select,
.match-select {
  min-height: 44px;
  border: 1px solid #9ba9bf;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
}

.answer-input {
  width: 100%;
  min-width: 115px;
  padding: 5px 9px;
  border-width: 0 0 3px;
  border-color: var(--blue-600);
  border-radius: 5px 5px 2px 2px;
  text-align: center;
}

.answer-size--short { min-width: 116px; }
.answer-size--medium { min-width: 145px; }
.answer-size--long { min-width: 178px; }

.inline-response__number {
  position: absolute;
  top: -9px;
  left: -5px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: white;
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.response-block,
.inline-response {
  transition: background-color 150ms ease, border-color 150ms ease;
}

.response-block.is-correct,
.inline-response.is-correct {
  --status-colour: var(--green-700);
}

.response-block.is-wrong,
.inline-response.is-wrong {
  --status-colour: var(--red-700);
}

.inline-response.is-correct .answer-input,
.response-block.is-correct select,
.response-block.is-correct .answer-input {
  border-color: var(--green-700);
  background: var(--green-100);
}

.inline-response.is-wrong .answer-input,
.response-block.is-wrong select,
.response-block.is-wrong .answer-input {
  border-color: var(--red-700);
  background: var(--red-100);
}

.answer-note {
  display: block;
  margin-top: 7px;
  color: var(--status-colour, var(--muted));
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.35;
}

.inline-response .answer-note {
  position: absolute;
  top: calc(100% - 3px);
  left: 0;
  z-index: 3;
  min-width: max-content;
  padding: 2px 6px;
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-main);
  font-size: 0.7rem;
}

.mini-strategy {
  margin: -4px 0 22px;
  padding: 12px 15px;
  border-radius: 9px;
  background: #eef6ff;
  color: #3e506b;
  font-size: 0.9rem;
}

.profile-list,
.club-options,
.matching-answers,
.question-stack,
.cloze-question-list {
  display: grid;
  gap: 13px;
}

.profile-card,
.club-card,
.grammar-item,
.matching-row {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.profile-card {
  position: relative;
  padding: 18px 20px 18px 58px;
  border-left: 6px solid var(--amber-500);
  background: #fffdf2;
}

.profile-card__number {
  position: absolute;
  top: 18px;
  left: 19px;
  color: #765100;
  font-size: 1.05rem;
  font-weight: 900;
}

.profile-card h4,
.club-card h4 {
  margin: 0 0 4px;
  color: var(--navy-900);
  font-size: 1rem;
}

.profile-card p,
.club-card p {
  margin: 0;
}

.key-detail {
  padding: 0 4px;
  border-radius: 3px;
  background: #fff0a5;
  font-weight: 800;
}

.club-options {
  margin-top: 18px;
}

.club-card {
  padding: 17px 20px;
  border-left: 6px solid var(--green-700);
  background: #f0fbf6;
}

.club-card h4 {
  color: #176444;
}

.matching-answers {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.matching-row {
  padding: 15px;
  background: #f8f9fb;
}

.matching-row label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 800;
}

.match-select,
.gap-select {
  width: 100%;
  padding: 7px 34px 7px 10px;
}

.sentence-options {
  display: grid;
  gap: 9px;
  margin: 19px 0;
}

.sentence-option {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.sentence-option strong {
  color: var(--navy-900);
}

.gap-marker {
  display: inline-flex;
  min-width: 118px;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  padding: 3px 8px;
  border: 2px dashed #9460b8;
  border-radius: 8px;
  background: white;
  color: #6d348f;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  vertical-align: middle;
}

.gap-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.response-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fafc;
}

.response-block > label:first-child,
.response-title {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-900);
  font-weight: 850;
}

.cloze-text {
  margin-bottom: 20px;
}

.cloze-gap {
  display: inline-grid;
  min-width: 47px;
  min-height: 36px;
  margin: 0 3px;
  place-items: center;
  border: 2px dashed #9460b8;
  border-radius: 7px;
  background: white;
  color: var(--purple-700);
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.cloze-question-list {
  gap: 10px;
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 13px 15px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfd;
}

.choice-fieldset legend {
  padding: 0 6px;
  color: var(--navy-900);
  font-weight: 900;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid #bdc7d6;
  border-radius: 999px;
  background: white;
  transition: 150ms ease;
}

.choice-chip input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue-600);
}

.choice-fieldset.is-correct {
  border-color: #8bc9ae;
  background: var(--green-100);
}

.choice-fieldset.is-wrong {
  border-color: #e0a5aa;
  background: var(--red-100);
}

.grammar-reminder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid #cad5e5;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}

.grammar-reminder article {
  padding: 20px;
  border-radius: 13px;
  background: var(--blue-100);
}

.grammar-reminder article:last-child {
  background: var(--purple-100);
}

.grammar-reminder p {
  margin: 8px 0 0;
}

.guided-example,
.useful-tip {
  margin-bottom: 20px;
  padding: 14px 17px;
  border-left: 5px solid var(--amber-500);
  border-radius: 8px;
  background: var(--amber-100);
  color: #4f4330;
}

.grammar-item {
  padding: 18px 20px;
  background: #fafbfd;
}

.grammar-item__number {
  color: var(--navy-900);
  font-weight: 900;
}

.grammar-item p {
  margin: 7px 0;
}

.grammar-item .answer-input {
  display: inline-block;
  width: 165px;
  margin: 0 5px;
  vertical-align: middle;
}

.grammar-item .inline-response {
  min-width: 155px;
}

.false-claim {
  margin: -1px -1px 13px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #eef1f6;
  color: #424c60;
}

.false-claim strong {
  color: var(--red-700);
}

.verb-prompt {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.activity-actions,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button,
.text-button,
.danger-button {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 850;
}

.primary-button {
  border: 1px solid var(--blue-600);
  background: var(--blue-600);
  color: white;
  box-shadow: 0 4px 10px rgba(40, 112, 212, 0.2);
}

.secondary-button {
  border: 1px solid #aebbd0;
  background: white;
  color: var(--navy-900);
}

.text-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--blue-700);
}

.danger-button {
  border: 1px solid #e1a8ae;
  background: var(--red-100);
  color: #9b2935;
}

.activity-feedback {
  min-height: 0;
  margin-top: 17px;
}

.activity-feedback:not(:empty) {
  padding: 14px 17px;
  border-radius: 10px;
  font-weight: 750;
}

.activity-feedback > p:first-child {
  margin: 0;
}

.feedback-tips {
  margin: 10px 0 0;
  padding-left: 23px;
  font-size: 0.91rem;
  font-weight: 600;
}

.feedback-tips li + li {
  margin-top: 5px;
}

.activity-feedback.is-success {
  border: 1px solid #8bc9ae;
  background: var(--green-100);
  color: #155c41;
}

.activity-feedback.is-progress {
  border: 1px solid #efcf70;
  background: var(--amber-100);
  color: #614900;
}

.section-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: white;
}

.section-next p {
  margin: 0;
  font-weight: 700;
}

.results-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: clamp(25px, 5vw, 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--navy-950), var(--navy-800));
  color: white;
  box-shadow: var(--shadow-md);
}

.score-orbit {
  display: grid;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  place-items: center;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--amber-500);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-8deg);
}

.score-orbit span {
  font-size: 2rem;
  font-weight: 900;
  transform: rotate(8deg);
}

.results-hero .section-kicker {
  color: #9fc9ff;
}

.results-hero h3 {
  margin: 4px 0 7px;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.results-hero p:last-child {
  margin: 0;
  color: #d6e7ff;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin: 26px 0;
}

.result-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}

.result-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-card__icon {
  font-size: 1.7rem;
}

.result-card__score {
  color: var(--blue-700);
  font-size: 1.3rem;
  font-weight: 900;
}

.result-card h3 {
  margin: 13px 0 5px;
  color: var(--navy-950);
}

.result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.result-progress {
  height: 8px;
  margin-top: 16px;
  background: #e6eaf1;
}

.result-progress::-webkit-progress-bar {
  background: #e6eaf1;
}

.result-progress::-webkit-progress-value {
  background: var(--blue-600);
}

.result-progress::-moz-progress-bar {
  background: var(--blue-600);
}

.next-steps {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 19px;
  padding: 22px 24px;
  border: 1px solid #efd57f;
  border-radius: var(--radius-md);
  background: var(--amber-100);
}

.next-steps > span {
  font-size: 2rem;
}

.next-steps h3,
.next-steps p {
  margin: 2px 0;
}

.next-steps p:last-child {
  color: #655536;
}

.results-actions {
  justify-content: center;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100% - 44px));
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--navy-950);
  color: white;
  box-shadow: var(--shadow-md);
  font-weight: 750;
}

footer {
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0;
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 200;
  padding: 16px;
  border-radius: 10px;
  background: var(--red-700);
  color: white;
  text-align: center;
}

@media (hover: hover) {
  .nav-button:hover,
  .text-button:hover {
    color: var(--blue-700);
  }

  .reading-toggle:hover {
    background: rgba(255, 255, 255, 0.21);
  }

  .mission-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .mission-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }

  .mission-card__button:hover,
  .secondary-button:hover {
    background: var(--blue-100);
  }

  .primary-button:hover {
    border-color: var(--navy-800);
    background: var(--navy-800);
  }

  .choice-chip:hover {
    border-color: var(--blue-600);
    background: var(--blue-100);
  }
}

@media (max-width: 900px) {
  .mission-grid,
  .tense-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .mission-card {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .mission-card::before {
    grid-row: 1 / 3;
    width: 7px;
    height: auto;
  }

  .mission-card__icon {
    grid-column: 2;
  }

  .mission-card__content,
  .mission-card__button {
    grid-column: 2;
  }

  .strategy-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .matching-answers,
  .gap-answer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  body.easy-read {
    font-size: 17px;
  }

  .hero__content,
  main {
    width: min(100% - 28px, var(--content-width));
  }

  .hero__content {
    padding: 22px 0 30px;
  }

  .hero__topline {
    align-items: flex-start;
  }

  .reading-toggle span:last-child {
    display: none;
  }

  .hero__decor {
    display: none;
  }

  .hero-progress__copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .nav-button {
    min-height: 58px;
    flex: 0 0 auto;
    padding: 9px 14px;
  }

  .view {
    padding: 28px 0 50px;
  }

  .welcome-card {
    align-items: flex-start;
  }

  .welcome-card__mascot {
    width: 66px;
    height: 66px;
    border-radius: 19px;
    font-size: 2rem;
  }

  .mission-card {
    display: flex;
  }

  .mission-card::before {
    width: auto;
    height: 7px;
  }

  .mission-card__icon,
  .mission-card__content,
  .mission-card__button {
    grid-column: auto;
  }

  .quick-guide,
  .exercise-card {
    border-radius: 15px;
  }

  .quick-guide__heading,
  .section-heading {
    align-items: flex-start;
  }

  .section-heading__icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 1.75rem;
  }

  .exercise-card__header {
    flex-direction: column;
  }

  .question-count {
    order: -1;
  }

  .audio-tools,
  .activity-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .speed-control {
    justify-content: space-between;
    margin-left: 0;
  }

  .activity-actions button,
  .audio-tools button {
    width: 100%;
  }

  .transcript,
  .story-box,
  .cloze-text {
    padding: 19px 16px;
    font-size: 1rem;
    line-height: 2.85;
  }

  .inline-response {
    min-width: 108px;
  }

  .grammar-reminder {
    grid-template-columns: 1fr;
  }

  .section-next,
  .results-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .section-next .primary-button {
    width: 100%;
  }

  .score-orbit {
    width: 108px;
    height: 108px;
  }

  .next-steps {
    grid-template-columns: auto 1fr;
  }

  .next-steps .secondary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .welcome-card__mascot {
    display: none;
  }

  .section-heading__icon {
    display: none;
  }

  .profile-card {
    padding-left: 48px;
  }

  .choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .choice-chip {
    border-radius: 9px;
  }

  .grammar-item {
    padding: 16px 13px;
  }

  .grammar-item .inline-response,
  .grammar-item .answer-input {
    min-width: 122px;
    width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .hero,
  .section-nav,
  .activity-actions,
  .section-next,
  .audio-tools,
  .results-actions,
  footer {
    display: none !important;
  }

  main {
    width: 100%;
  }

  .view[hidden] {
    display: block !important;
  }

  .exercise-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Feedback and accessibility refinements */
.transcript-adaptation {
  margin-top: 18px;
  padding: 12px 15px;
  border: 1px solid #bdd7e2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.transcript-adaptation summary {
  min-height: 44px;
  padding: 8px 2px;
  color: var(--navy-900);
  font-weight: 850;
  cursor: pointer;
}

.transcript-adaptation p {
  margin: 8px 0;
}

.transcript-adaptation .adaptation-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.inline-response {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  line-height: 1.25;
  vertical-align: middle;
}

.inline-response .answer-note {
  position: static;
  min-width: 0;
  max-width: 100%;
  padding: 4px 3px 1px;
  background: transparent;
  box-shadow: none;
  white-space: normal;
}

.response-block.is-unanswered,
.inline-response.is-unanswered {
  --status-colour: #8a6200;
}

.inline-response.is-unanswered .answer-input,
.response-block.is-unanswered select,
.choice-fieldset.is-unanswered {
  border-color: var(--amber-500);
  background: var(--amber-100);
}
