.level-experience {
  --mint: #dbf4e8;
  --peach: #ffebe2;
  --leaf: #207654;
}
.level-page {
  min-height: 100vh;
  padding-bottom: 32px;
  background: #fffaf3;
}
:root:has(.resource-level:not([hidden])) { --page: #fffaf3; }
body:has(.resource-level:not([hidden])) .site-header { background: #fff; }
.resource-level { width: min(100%, 680px); margin: clamp(20px, 5vw, 48px) auto; }
.level-main { width: min(calc(100% - 32px), 680px); margin: clamp(22px, 5vw, 52px) auto; }
.level-back { display: inline-block; margin-bottom: 14px; color: var(--blue); font-weight: 680; text-underline-offset: 3px; }
.level-panel { background: #fff; padding: clamp(20px, 5vw, 40px); border: 1px solid #e9e3d9; border-radius: 24px; box-shadow: 0 14px 36px #48371b0b; }
.level-panel h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em; }
.level-panel h2 { margin: 24px 0 0; font-size: 1.14rem; }
.level-panel p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.hangul-tiles { display: flex; gap: 8px; margin-bottom: 20px; }
.hangul-tiles span { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 12px; background: var(--mint); color: #204c3b; font-size: 1.35rem; font-weight: 750; }
.hangul-tiles span:nth-child(2) { background: var(--peach); color: #734535; }
.hangul-tiles span:nth-child(3) { background: #e8e8ff; color: #414477; }
.level-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.level-choices button {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid #acdbca;
  border-radius: 14px;
  background: var(--mint);
  text-align: left;
}
.level-choices button + button { border-color: #f3ccba; background: var(--peach); }
.level-choices button:hover { filter: brightness(.97); }
.level-choices span { font-size: .9rem; line-height: 1.4; color: var(--muted); }
.level-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.level-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.level-progress { display: grid; gap: 7px; margin-bottom: 26px; color: var(--muted); font-size: .9rem; font-weight: 680; }
.level-progress progress { width: 100%; height: 10px; accent-color: var(--leaf); }
#question-text { margin-top: 14px; color: var(--ink); font-size: clamp(1.1rem, 4vw, 1.35rem); white-space: pre-line; overflow-wrap: anywhere; }
.level-options { min-width: 0; display: grid; gap: 8px; margin: 20px 0 0; padding: 0; border: 0; }
.level-option { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; line-height: 1.4; }
.level-option:has(input:checked) { border-color: var(--leaf); background: var(--mint); }
.level-option input { margin: 0; width: 16px; height: 16px; flex: none; accent-color: var(--blue); }
.level-option:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.level-panel .result-score { color: var(--blue); font-weight: 720; }
.level-panel .result-note { font-size: .9rem; }
.level-panel .result-kicker { margin: 0 0 6px; color: var(--leaf); font-weight: 720; }
#hangul-steps { padding-left: 24px; line-height: 1.6; }
#hangul-steps li + li { margin-top: 5px; }
.lesson-result { margin-top: 24px; padding: 16px; border-radius: 14px; background: var(--mint); }
.lesson-result h2 { margin: 0; }
.lesson-result .button { margin-top: 12px; }
#copy-status:empty { margin: 0; }
#answer-review { margin-top: 20px; }
#answer-review summary { font-weight: 720; cursor: pointer; }
#review-list { padding-left: 24px; }
#review-list li { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#review-list p { margin: 4px 0; }
@media (max-width: 420px) {
  .level-choices { grid-template-columns: minmax(0, 1fr); }
  .level-actions > * { flex: 1 1 100%; }
}
