/* 영단어 복습 퀴즈 — redesign 토큰 기반 */
.wmq-page {
  background: var(--page-bg, #f7f5f0);
  color: var(--ink, #1a1a1a);
  min-height: 100vh;
}
.wmq-main {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 28px 0 120px;
  box-sizing: border-box;
}
.wmq-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted, #6b6560);
  margin: 0 0 8px;
}
.wmq-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.wmq-lead {
  margin: 0 0 24px;
  color: var(--ink-muted, #6b6560);
  line-height: 1.5;
}
.wmq-level-row[hidden] {
  display: none !important;
}
.wmq-level-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.wmq-level-btn {
  border: 1px solid var(--line, #ddd6cc);
  background: var(--surface, #fff);
  color: var(--ink, #1a1a1a);
  border-radius: 4px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.wmq-level-btn[aria-pressed="true"] {
  border-color: var(--accent, #c45c26);
  color: var(--accent, #c45c26);
  background: color-mix(in srgb, var(--accent, #c45c26) 8%, #fff);
}
.wmq-level-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wmq-level-btn .wmq-prep {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted, #6b6560);
}
.wmq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.wmq-btn {
  border: none;
  border-radius: 4px;
  padding: 14px 20px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent, #c45c26);
  color: #fff;
}
.wmq-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wmq-btn-secondary {
  background: var(--surface, #fff);
  color: var(--ink, #1a1a1a);
  border: 1px solid var(--line, #ddd6cc);
}
.wmq-progress-wrap {
  margin-bottom: 16px;
}
.wmq-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-muted, #6b6560);
  margin-bottom: 6px;
}
.wmq-progress-bar {
  height: 4px;
  background: var(--line, #ddd6cc);
  border-radius: 2px;
  overflow: hidden;
}
.wmq-progress-bar > span {
  display: block;
  height: 100%;
  background: var(--accent, #c45c26);
  width: 0%;
  transition: width 0.15s ease;
}
.wmq-prompt {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink-muted, #6b6560);
}
.wmq-word {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 8px 0 28px;
  line-height: 1.2;
}
.wmq-word a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.wmq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.wmq-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line, #ddd6cc);
  border-radius: 4px;
  background: var(--surface, #fff);
  font-size: 16px;
  cursor: pointer;
}
.wmq-option .wmq-num {
  flex: 0 0 auto;
  width: 1.5em;
  font-weight: 700;
  color: var(--ink-muted, #6b6560);
}
.wmq-option .wmq-opt-text {
  flex: 1 1 auto;
  min-width: 0;
}
.wmq-page {
  --os-blue: #3d6eb8;
  --os-ink: #3a3834;
  --os-ink-soft: #6a6660;
  --os-ink-muted: #7a756c;
}
.wmq-os-item {
  display: block;
  margin: 4px 0 12px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.wmq-os-item[hidden] {
  display: none !important;
}
.wmq-item-foot {
  margin-top: 4px;
}
.wmq-option.is-loading {
  opacity: 0.7;
}
.wmq-option.is-correct {
  border-color: #1f7a4d;
  background: #e8f6ee;
}
.wmq-option.is-correct::after {
  content: " ✓";
  font-weight: 700;
  color: #1f7a4d;
}
.wmq-option.is-wrong {
  border-color: #b42318;
  background: #fdecea;
}
.wmq-option.is-wrong::after {
  content: " ✗";
  font-weight: 700;
  color: #b42318;
}
.wmq-option.is-dim {
  opacity: 0.4;
}
.wmq-option:disabled {
  cursor: default;
}
.wmq-feedback {
  min-height: 1.5em;
  margin: 0 0 12px;
  font-weight: 700;
}
.wmq-feedback.is-ok { color: #1f7a4d; }
.wmq-feedback.is-bad { color: #b42318; }
.wmq-detail-link {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--accent, #c45c26);
}
.wmq-next-bar {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.wmq-next-bar .wmq-btn {
  flex: 1 1 0;
}
.wmq-result-score {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
}
.wmq-result-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wmq-result-item {
  border: 1px solid var(--line, #ddd6cc);
  border-radius: 4px;
  padding: 14px;
  background: var(--surface, #fff);
}
.wmq-result-item .wmq-ri-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 6px;
}
.wmq-result-item a {
  color: inherit;
}
.wmq-error {
  padding: 16px;
  border: 1px solid #f5c2c0;
  background: #fdecea;
  border-radius: 4px;
  margin-bottom: 16px;
}
.wmq-panel[hidden] { display: none !important; }

@media (min-width: 720px) {
  .wmq-main {
    padding-top: 40px;
    padding-bottom: 64px;
  }
  .wmq-word { font-size: 44px; }
  .wmq-option { min-height: 56px; }
  .wmq-option:hover:not(:disabled) {
    border-color: var(--accent, #c45c26);
  }
  .wmq-next-bar {
    justify-content: flex-end;
  }
  .wmq-next-bar .wmq-btn {
    flex: 0 0 auto;
    min-width: 140px;
  }
  .wmq-home-cta {
    width: auto;
  }
}
@media (max-width: 719px) {
  .wmq-next-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--page-bg, #f7f5f0) 92%, #fff);
    border-top: 1px solid var(--line, #ddd6cc);
    z-index: 20;
  }
  .wmq-next-bar .wmq-btn {
    width: auto;
  }
  .wmq-main {
    padding-bottom: 110px;
  }
}

/* index 섹션 */
.rd-wmq-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.rd-wmq-desc {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}
.rd-wmq-levels[hidden] {
  display: none !important;
}
.rd-wmq-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rd-wmq-level {
  border: 1px solid var(--line);
  background: var(--page-bg);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rd-wmq-level[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.rd-wmq-level:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.rd-wmq-level .prep {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
}
.rd-wmq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rd-wmq-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
.rd-wmq-start.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
@media (min-width: 720px) {
  .rd-wmq-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .rd-wmq-copy {
    flex: 1 1 auto;
  }
  .rd-wmq-actions {
    flex: 0 0 auto;
  }
}
@media (max-width: 719px) {
  .rd-wmq-start {
    width: 100%;
  }
}
