.mcq-shell {
  overflow: hidden;
  margin: -24px -24px 0;
  border-radius: 16px;
  background: #fff;
}

.word-builder-shell {
  display: grid;
  gap: 12px;
}

.word-builder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.word-builder-heading p {
  margin: 0 0 2px;
  color: #b8912a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.word-builder-heading h2 {
  margin: 0;
  color: #2d0a18;
  font-size: 20px;
  font-weight: 900;
}

.word-builder-heading > span {
  color: #8a6675;
  font-size: 12px;
  font-weight: 800;
}

.word-builder-list {
  display: grid;
  gap: 8px;
}

.word-builder-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.85fr) minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid #eadfe4;
  border-radius: 13px;
  background: linear-gradient(135deg, #fffdf9, #fff9fb);
  transition: border-color 180ms ease, background 180ms ease;
}

.word-builder-row.is-correct {
  border-color: #86e0ab;
  background: #f3fcf7;
}

.word-builder-row.is-wrong {
  border-color: #fda4af;
  background: #fff7f7;
}

.word-builder-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.word-builder-hint > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  color: #fff;
  background: #4a1429;
  font-size: 12px;
  font-weight: 900;
}

.word-builder-hint small {
  display: block;
  color: #a47d24;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.word-builder-hint p {
  overflow: hidden;
  margin: 2px 0 0;
  color: #3d2630;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.word-builder-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.word-builder-letters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d8b45a;
  border-radius: 8px;
  color: #4a1429;
  background: #fff8e7;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.word-builder-letters button.is-used {
  border-color: #e5e7eb;
  background: #f3f4f6;
  opacity: 0.42;
  cursor: default;
}

.word-builder-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.word-builder-answer input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid #d9c7ce;
  border-radius: 9px;
  outline: none;
  color: #2d0a18;
  background: #fff;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 800;
}

.word-builder-answer input:focus {
  border-color: #4a1429;
  box-shadow: 0 0 0 3px rgba(74, 20, 41, 0.08);
}

.word-builder-check {
  height: 38px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #4a1429;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.word-builder-check:disabled {
  color: #9ca3af;
  background: #e5e7eb;
  cursor: not-allowed;
}

.word-builder-result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
}

.word-builder-result svg {
  width: 17px;
  height: 17px;
}

.word-builder-row.is-correct .word-builder-result {
  color: #15803d;
}

.word-builder-row.is-wrong .word-builder-result {
  color: #dc2626;
}

.word-builder-row-actions {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: -5px;
}

.word-builder-row-actions button {
  border: 1px solid #d9c7ce;
  border-radius: 7px;
  color: #4a1429;
  background: #fff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 820px) {
  .word-builder-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .word-builder-letters {
    justify-content: flex-start;
  }

  .word-builder-row-actions {
    grid-column: 1;
    justify-content: flex-start;
    margin-top: 0;
  }
}

.word-slider-shell {
  max-width: 680px;
  margin: 0 auto;
}

.word-slider-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  color: #4a1429;
  font-size: 12px;
  font-weight: 900;
}

.word-slider-progress > div {
  height: 5px;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: #eee3e8;
}

.word-slider-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a1429, #b8912a);
  transition: width 250ms ease;
}

.word-slider-card {
  overflow: hidden;
  border: 1px solid #eadfe4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(74, 20, 41, 0.08);
}

.word-slider-stage {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 260px;
  padding: 56px 24px 24px;
  background: linear-gradient(145deg, #fff8e9, #fff7fa);
  transition: background 180ms ease;
}

.word-slider-card.is-correct .word-slider-stage {
  background: linear-gradient(145deg, #dff8e9, #f3fcf7);
}

.word-slider-card.is-wrong .word-slider-stage {
  background: linear-gradient(145deg, #ffe2e5, #fff4f5);
}

.word-slider-feedback {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.word-slider-feedback svg {
  width: 19px;
  height: 19px;
}

.word-slider-feedback strong {
  font-size: 13px;
}

.word-slider-feedback small {
  font-size: 11px;
}

.word-slider-card.is-correct .word-slider-feedback {
  color: #15803d;
}

.word-slider-card.is-wrong .word-slider-feedback {
  color: #dc2626;
}

.word-slider-hint {
  text-align: center;
}

.word-slider-hint span {
  color: #a47d24;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.word-slider-hint p {
  margin: 4px 0 0;
  color: #4a1429;
  font-size: 14px;
  font-weight: 800;
}

.word-slider-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.word-slider-letters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d8b45a;
  border-radius: 10px;
  color: #4a1429;
  background: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(184, 145, 42, 0.1);
}

.word-slider-letters button.is-used {
  border-color: rgba(74, 20, 41, 0.12);
  background: rgba(255, 255, 255, 0.45);
  opacity: 0.35;
  cursor: default;
}

.word-slider-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid #eadfe4;
}

.word-slider-form input {
  min-width: 0;
  height: 42px;
  border: 1px solid #d9c7ce;
  border-radius: 9px;
  outline: none;
  color: #2d0a18;
  background: #fff;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 800;
}

.word-slider-form input:focus {
  border-color: #4a1429;
  box-shadow: 0 0 0 3px rgba(74, 20, 41, 0.08);
}

.word-slider-check,
.word-slider-actions button {
  height: 42px;
  border: 1px solid #4a1429;
  border-radius: 9px;
  color: #fff;
  background: #4a1429;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.word-slider-check:disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
  background: #e5e7eb;
  cursor: not-allowed;
}

.word-slider-actions {
  display: flex;
  gap: 7px;
}

.word-slider-actions button:first-child {
  color: #4a1429;
  background: #fff;
}

.word-slider-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.word-slider-nav button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d9c7ce;
  border-radius: 9px;
  color: #4a1429;
  background: #fff;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.word-slider-nav button:last-child {
  border-color: #4a1429;
  color: #fff;
  background: #4a1429;
}

.word-slider-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.word-slider-nav svg {
  width: 15px;
  height: 15px;
}

.matching-exercise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.matching-prompt-card,
.matching-answer-card {
  box-sizing: border-box;
  width: 100%;
}

.matching-answer-card:not(:disabled):hover {
  border-color: #b8912a !important;
  background: #fff7df !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 145, 42, 0.12);
}

.listening-slider {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.listening-audio-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #eadfe4;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdf9, #fff7fa);
}

.listening-audio-card span {
  color: #a47d24;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listening-audio-card p {
  margin: 3px 0 0;
  color: #2d0a18;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.listening-audio-card audio {
  display: block;
  width: 100%;
  height: 42px;
}

.listening-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 2px 10px;
  color: #4a1429;
  font-size: 11px;
  font-weight: 900;
}

.listening-progress > div {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #eee3e8;
}

.listening-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a1429, #b8912a);
  transition: width 240ms ease;
}

.listening-progress small {
  color: #8a6675;
  font-size: 10px;
}

.listening-question-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 210px;
  padding: 32px 24px 20px;
  border: 1px solid #eadfe4;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(74, 20, 41, 0.07);
}

.listening-question-card.is-correct {
  border-color: #86e0ab;
  background: #f3fcf7;
}

.listening-question-card.is-wrong {
  border-color: #fda4af;
  background: #fff7f7;
}

.listening-question-number {
  position: absolute;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  background: #4a1429;
  font-size: 11px;
  font-weight: 900;
}

.listening-question-card h2 {
  align-self: end;
  max-width: 640px;
  margin: 14px 0 0;
  color: #2d1821;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 850;
  line-height: 1.4;
}

.listening-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 210px));
  justify-content: center;
  gap: 12px;
}

.listening-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid #dfd2d8;
  border-radius: 11px;
  color: #4a1429;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.listening-options button.is-selected {
  border-color: #4a1429;
  color: #fff;
  background: #4a1429;
}

.listening-options button.is-correct {
  border-color: #1b8a57;
  color: #11633d;
  background: #eafaf1;
}

.listening-options button.is-wrong {
  border-color: #d74b55;
  color: #a92f39;
  background: #fff0f1;
}

.listening-options svg {
  width: 18px;
  height: 18px;
}

.listening-feedback {
  margin: -5px 0 0;
  color: #4a1429;
  font-size: 12px;
  font-weight: 900;
}

.listening-question-card.is-correct .listening-feedback {
  color: #15803d;
}

.listening-question-card.is-wrong .listening-feedback {
  color: #dc2626;
}

.listening-navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.listening-navigation button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d9c7ce;
  border-radius: 9px;
  color: #4a1429;
  background: #fff;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.listening-navigation button:last-child {
  border-color: #4a1429;
  color: #fff;
  background: #4a1429;
}

.listening-navigation button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.listening-navigation svg {
  width: 15px;
  height: 15px;
}

.listening-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e6d29a;
  border-radius: 10px;
  color: #4a1429;
  background: #fff9e9;
  font-size: 13px;
  font-weight: 900;
}

.listening-complete button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #4a1429;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.listening-complete svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 820px) {
  .matching-exercise-grid {
    grid-template-columns: 1fr;
  }

  .matching-prompt-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .listening-audio-card {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .listening-progress {
    grid-template-columns: auto 1fr;
  }

  .listening-progress small {
    grid-column: 1 / -1;
  }

  .listening-question-card {
    min-height: 280px;
    padding-inline: 16px;
  }

  .listening-options {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .word-slider-stage {
    min-height: 240px;
    padding-inline: 16px;
  }

  .word-slider-feedback {
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .word-slider-feedback small {
    grid-column: 1 / -1;
  }

  .word-slider-form {
    grid-template-columns: 1fr;
  }

  .word-slider-check,
  .word-slider-actions,
  .word-slider-actions button {
    width: 100%;
  }
}

.mcq-top-progress {
  padding: 0;
}

.mcq-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #eee3e8;
}

.mcq-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4a1429, #9b466d);
  box-shadow: 0 4px 12px rgba(74, 20, 41, 0.22);
  transition: width 300ms ease;
}

.mcq-question-panel {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 32px 22px;
  animation: mcq-slide-in 280ms ease both;
}

.mcq-question-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #8b6576;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mcq-question-label span:first-child {
  color: #a47d24;
}

.mcq-question {
  max-width: 820px;
  margin: 10px 0 18px;
  color: #231019;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.mcq-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mcq-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 9px 12px;
  border: 1px solid #e7dce1;
  border-radius: 12px;
  color: #2d1821;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(45, 10, 24, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.mcq-option:not(:disabled):hover {
  border-color: #b98b9f;
  box-shadow: 0 10px 24px rgba(45, 10, 24, 0.09);
  transform: translateY(-2px);
}

.mcq-option:disabled {
  cursor: default;
}

.mcq-option.is-selected {
  border-color: #4a1429;
  background: #fff8fb;
  box-shadow: 0 0 0 3px rgba(74, 20, 41, 0.08);
}

.mcq-option.is-correct {
  border-color: #1b8a57;
  background: #effcf5;
  color: #11633d;
  box-shadow: 0 0 0 3px rgba(27, 138, 87, 0.08);
}

.mcq-option.is-wrong {
  border-color: #d74b55;
  background: #fff2f3;
  color: #a92f39;
  box-shadow: 0 0 0 3px rgba(215, 75, 85, 0.08);
}

.mcq-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #4a1429;
  background: #f7eef2;
  font-size: 13px;
  font-weight: 950;
  transition: color 180ms ease, background 180ms ease;
}

.mcq-option.is-selected .mcq-option-letter {
  color: #fff;
  background: #4a1429;
}

.mcq-option.is-correct .mcq-option-letter {
  color: #fff;
  background: #1b8a57;
}

.mcq-option.is-wrong .mcq-option-letter {
  color: #fff;
  background: #d74b55;
}

.mcq-option-text {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.mcq-option-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mcq-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee5e9;
}

.mcq-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  width: fit-content;
  border-radius: 11px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.mcq-nav-button svg,
.mcq-result-actions svg {
  width: 18px;
  height: 18px;
}

.mcq-nav-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.mcq-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.mcq-nav-secondary {
  border: 1px solid #d9c8d0;
  color: #4a1429;
  background: #fff;
}

.mcq-nav-primary {
  justify-self: end;
  border: 1px solid #4a1429;
  color: #fff;
  background: #4a1429;
  box-shadow: 0 8px 18px rgba(74, 20, 41, 0.18);
}

.mcq-footer-note {
  color: #8b6576;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.mcq-results {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 26px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(242, 201, 105, 0.15), transparent 34%),
    linear-gradient(180deg, #fffafc 0%, #fff 52%);
}

.mcq-result-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mcq-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #4a1429, #7d2f52);
  box-shadow: 0 16px 32px rgba(74, 20, 41, 0.2);
}

.mcq-result-icon.is-perfect {
  background: linear-gradient(135deg, #a47d24, #ddb74b);
  box-shadow: 0 16px 32px rgba(164, 125, 36, 0.24);
}

.mcq-result-icon svg {
  width: 24px;
  height: 24px;
}

.mcq-results h1 {
  margin: 0;
  color: #2d0a18;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.mcq-result-summary {
  display: grid;
  grid-template-columns: 118px 220px;
  align-items: center;
  gap: 24px;
  width: min(100%, 362px);
  margin-top: 20px;
}

.mcq-score-ring {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin-top: 0;
  border-radius: 999px;
  background: conic-gradient(#4a1429 var(--mcq-score), #eee3e8 0);
  box-shadow: 0 18px 38px rgba(45, 10, 24, 0.12);
}

.mcq-score-ring::before {
  content: '';
  grid-area: 1 / 1;
  width: 94px;
  height: 94px;
  border-radius: inherit;
  background: #fff;
}

.mcq-score-ring div {
  z-index: 1;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
}

.mcq-score-ring strong {
  color: #2d0a18;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.mcq-score-ring span {
  margin-top: 3px;
  color: #8b6576;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.mcq-result-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 220px;
  margin-top: 0;
}

.mcq-result-stats > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0;
  padding: 9px 10px;
  border: 1px solid #eadde3;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.mcq-result-stats span {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}

.mcq-result-stats span svg {
  width: 14px;
  height: 14px;
}

.mcq-result-stats span.is-correct {
  color: #087443;
  background: #dcf8e9;
}

.mcq-result-stats span.is-wrong {
  color: #b02f3a;
  background: #fde6e8;
}

.mcq-result-stats strong {
  color: #2d0a18;
  font-size: 16px;
  line-height: 1;
}

.mcq-result-stats small {
  margin-top: 3px;
  color: #8b6576;
  font-size: 10px;
  font-weight: 800;
}

.mcq-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 362px);
  margin-top: 18px;
  flex-wrap: wrap;
}

.mcq-result-actions .mcq-nav-button {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.mcq-result-actions .mcq-nav-primary {
  order: 1;
}

.mcq-result-actions .mcq-nav-secondary {
  order: 2;
}

.picture-result-mark {
  animation: picture-result-pop 420ms ease-out both;
}

@keyframes mcq-slide-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes picture-result-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 18px)) scale(0.82);
  }
  65% {
    opacity: 1;
    transform: translate(-50%, calc(-50% + 3px)) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 760px) {
  .mcq-result-heading {
    flex-direction: column;
    gap: 0;
  }

  .mcq-results h1 {
    margin-top: 14px;
    white-space: normal;
  }

  .mcq-result-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 18px;
  }

  .mcq-result-stats {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px;
    width: min(100%, 300px);
    margin-top: 18px;
  }

  .mcq-result-stats > div {
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    gap: 0;
  }

  .mcq-result-stats span {
    grid-row: 1 / 3;
  }

  .mcq-result-stats small {
    margin-top: 3px;
  }

  .mcq-top-progress {
    padding: 0;
  }

  .mcq-question-panel {
    padding: 18px 20px 20px;
  }

  .mcq-options {
    grid-template-columns: 1fr;
  }

  .mcq-footer {
    grid-template-columns: 1fr 1fr;
  }

  .mcq-footer-note {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mcq-nav-secondary {
    grid-column: 1;
  }

  .mcq-nav-primary {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .exercise-task-card {
    padding: 18px !important;
  }

  .mcq-shell {
    margin: -18px -18px 0;
  }

  .mcq-question-label span:last-child {
    display: none;
  }

  .mcq-option {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    min-height: 56px;
    padding: 8px 10px;
  }

  .mcq-option-letter {
    width: 34px;
    height: 34px;
  }

  .mcq-nav-button {
    width: 100%;
    padding-inline: 11px;
  }

  .mcq-results {
    padding: 24px 14px 22px;
  }

  .mcq-result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 6px;
  }

  .mcq-result-stats > div {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    padding: 8px 4px;
    text-align: center;
  }

  .mcq-result-stats span {
    grid-row: auto;
    margin-bottom: 4px;
  }

  .mcq-result-actions {
    width: min(100%, 300px);
  }

  .mcq-result-actions .mcq-nav-button {
    flex: 0 0 100%;
    grid-column: auto;
  }
}
