.dq-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0 20px;
  color: #243d3e;
}
.dq-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  margin: 0 auto 14px;
  max-width: 760px;
}
.dq-stage,
.dq-question-count {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #496868;
}
.dq-question-count {
  text-align: right;
  white-space: nowrap;
}
.dq-progress {
  grid-column: 1/-1;
  width: 100%;
  height: 10px;
  accent-color: #13aaa4;
}
.dq-stats {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: #446566;
}
.dq-panel,
.dq-results {
  background: #fff;
  border: 1px solid #dbe9e7;
  border-radius: 24px;
  padding: clamp(18px, 4vw, 36px);
  box-shadow: 0 12px 32px rgba(25, 76, 74, .07);
}
.dq-word-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 78px;
}
.dq-word {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: .035em;
  color: #0a7775;
}
.dq-speak {
  border: 0;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  background: #e3f7f5;
  font-size: 1.45rem;
  cursor: pointer;
  touch-action: manipulation;
}
.dq-prompt {
  text-align: center;
  margin: 8px 0 15px;
  font-size: 1.08rem;
  color: #526c6d;
}
.dq-hint-area {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 460px;
}
.dq-hint-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #d5e6e3;
  border-radius: 999px;
  background: #f8fbfa;
  color: #235c5a;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.dq-hint-button:hover,
.dq-hint-close:hover {
  background: #eaf7f5;
}
.dq-hint-card {
  position: relative;
  margin: 12px auto 0;
  padding: 12px;
  max-width: 300px;
  min-height: 180px;
  border: 1px solid #e2ecea;
  border-radius: 20px;
  background: #fbfcfb;
  box-shadow: 0 8px 24px rgba(37, 76, 70, .08);
  animation: dq-reveal .24s ease-out both;
}
.dq-hint-card[hidden] {
  display: none;
}
.dq-hint-image {
  display: block;
  width: min(100%, 240px);
  height: 210px;
  object-fit: contain;
  margin: 0 auto;
}
.dq-hint-image[hidden] {
  display: none;
}
.dq-image-fallback {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 18px;
  color: #526c6d;
}
.dq-image-fallback[hidden] {
  display: none;
}
.dq-hint-close {
  display: block;
  margin: 4px auto 0;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #d5e6e3;
  border-radius: 999px;
  background: #fff;
  color: #426362;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.dq-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.dq-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 84px;
  padding: 17px 16px;
  border: 2px solid #dbe9e7;
  border-radius: 18px;
  background: #fff;
  color: #263f40;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background .16s ease,
    border-color .16s ease,
    transform .16s ease;
}
.dq-choice:hover:not(:disabled) {
  border-color: #72c6bc;
  background: #f7fcfb;
  transform: translateY(-1px);
}
.dq-choice:focus-visible,
.dq-hint-button:focus-visible,
.dq-hint-close:focus-visible,
.dq-speak:focus-visible,
.dq-nav button:focus-visible {
  outline: 3px solid #176c9b;
  outline-offset: 3px;
}
.dq-choice:disabled {
  cursor: default;
}
.dq-choice-letter {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf5f3;
  color: #426362;
  font-weight: 700;
}
.dq-choice-text {
  flex: 1;
}
.dq-mark {
  flex: 0 0 24px;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}
.dq-choice.dq-wrong {
  border-color: #d96b6b;
  background: #fff4f3;
  color: #8b3131;
}
.dq-choice.dq-right {
  border-color: #48a981;
  background: #effaf3;
  color: #1d6947;
}
.dq-feedback {
  min-height: 32px;
  margin: 16px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 1.03rem;
  font-weight: 700;
  color: #425f5e;
}
.dq-feedback[data-outcome=wrong] {
  color: #a13e3e;
}
.dq-feedback[data-outcome=correct] {
  color: #18784b;
}
.dq-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px auto 0;
}
.dq-nav .btn {
  min-height: 48px;
  min-width: 150px;
  touch-action: manipulation;
}
.dq-nav button[hidden] {
  display: none;
}
.dq-results {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.dq-result-title {
  margin: 0 0 8px;
  color: #147c78;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
}
.dq-result-score {
  margin: 8px 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #275b5b;
}
.dq-result-best {
  color: #5a7473;
}
.dq-result-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  max-width: 540px;
  margin: 22px auto;
  text-align: left;
}
.dq-result-stats dt {
  color: #516b6b;
}
.dq-result-stats dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  color: #2e5554;
}
.dq-review-title {
  margin: 24px 0 6px;
}
.dq-review-words {
  line-height: 1.7;
  color: #4f6665;
  overflow-wrap: anywhere;
}
.dq-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.dq-result-actions .btn {
  min-height: 48px;
  min-width: 190px;
}
.dq-result-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.dq-art-credit {
  margin: 16px 8px 0;
  text-align: center;
  font-size: .78rem;
  color: #738786;
}
.dq-art-credit a {
  color: #386d6b;
}
.dq-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes dq-reveal {
  from {
    opacity: 0;
    transform: translateY(7px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 640px) {
  .dq-shell {
    padding: 4px 0 16px;
  }
  .dq-panel,
  .dq-results {
    border-radius: 18px;
    padding: 18px 14px;
  }
  .dq-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dq-choice {
    min-height: 72px;
    padding: 14px;
  }
  .dq-hint-image {
    height: 190px;
  }
  .dq-nav {
    gap: 8px;
  }
  .dq-nav .btn {
    flex: 1;
    min-width: 130px;
  }
  .dq-result-stats {
    gap: 10px;
  }
  .dq-result-actions {
    display: grid;
  }
  .dq-result-actions .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dq-hint-card {
    animation: none;
  }
  .dq-choice {
    transition: none;
  }
}
