#weak-garden-overlay { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 35, 25, .78); backdrop-filter: blur(7px); }
#weak-garden-overlay.visible { display: flex; }
#wg-panel { width: min(940px, 100%); max-height: calc(100dvh - 40px); overflow: auto; color: #243a2e; background: #f8faf2; border: 2px solid #b6cfa8; border-radius: 22px; box-shadow: 0 25px 90px #0f211b88; font-family: 'Nunito', 'Noto Sans KR', sans-serif; }
html[lang="vi"] #wg-panel { font-family: 'Be Vietnam Pro', 'Noto Sans KR', sans-serif; }
.wg-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: #e6efda; border-bottom: 1px solid #cbd9be; }
.wg-header h1 { margin: 0; font-size: 21px; line-height: 1.45; }
.wg-header button { width: 42px; height: 42px; border: 1px solid #a6bc98; border-radius: 50%; background: #f9fbf4; color: #354b32; cursor: pointer; font-size: 20px; }
#wg-body { padding: 24px; font-size: 15px; line-height: 1.65; }
#wg-body h2, #wg-body h3 { color: #243a2e; line-height: 1.5; margin: 8px 0; overflow-wrap: anywhere; }
#wg-body p { margin: 8px 0; }
.wg-eyebrow { color: #4d694b; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.wg-intro h2 { font-size: 26px; }
.wg-tools { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 14px; margin: 22px 0; }
.wg-tools label, #wg-answer-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.wg-tools select, .wg-tools input, #wg-answer { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #b5c6a8; border-radius: 10px; padding: 11px 12px; background: #fff; color: #243a2e; font: inherit; }
#wg-answer { font-size: 24px; font-family: 'Noto Sans KR', sans-serif; }
.wg-start, .wg-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.wg-start p, .wg-footnote, .wg-practice-note { color: #52664e; font-size: 13px; }
.wg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.wg-button { min-height: 44px; border: 1px solid #9db18c; border-radius: 11px; padding: 10px 15px; background: #fff; color: #36552c; font: inherit; font-weight: 700; cursor: pointer; white-space: normal; line-height: 1.5; }
.wg-button:hover:not(:disabled) { background: #e8f0de; border-color: #70985b; }
.wg-primary { background: #365d32; border-color: #365d32; color: #fff; }
.wg-primary:hover:not(:disabled) { color: #fff; background: #254c25; }
.wg-button:disabled { opacity: .55; cursor: default; }
#wg-panel :focus-visible { outline: 3px solid #b77c29; outline-offset: 3px; }
.wg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.wg-card { background: #fffef8; border: 1px solid #d4ddc8; padding: 16px; border-radius: 16px; }
.wg-card-top { display: flex; align-items: center; gap: 12px; }
.wg-card-top > div { min-width: 0; flex: 1; }
.wg-card-top h3 { font-family: 'Noto Sans KR', sans-serif; font-size: 22px; }
.wg-card-top p { color: #52664e; font-size: 14px; }
.wg-card-top input { width: 21px; height: 21px; flex: 0 0 auto; accent-color: #365d32; cursor: pointer; }
.wg-art { width: 70px; flex: 0 0 70px; }
.wg-art img, .wg-result-word img, .wg-hint img { object-fit: contain; max-width: 100%; }
.wg-skill-list { list-style: none; padding: 0; margin: 14px 0; font-size: 13px; }
.wg-skill-list li { padding: 7px 0; }
.wg-skill-list small { display: block; margin-top: 4px; color: #946016; }
.wg-skill { display: inline-block; border-radius: 7px; padding: 3px 8px; margin-right: 5px; background: #eaf0e1; color: #436137; font-size: 12px; font-weight: 800; }
.wg-footnote { margin-top: 20px; border-top: 1px solid #d7e1cc; padding-top: 14px; }
.wg-empty { grid-column: 1 / -1; text-align: center; padding: 45px 24px; border: 1px dashed #bacda9; border-radius: 16px; background: #f1f5e9; }
.wg-empty > span { font-size: 44px; }
.wg-empty .wg-actions { justify-content: center; }
.wg-question-head { display: flex; justify-content: space-between; gap: 12px; color: #566c4e; }
.wg-question { text-align: center; padding: 26px 16px; }
.wg-question h2 { font-size: clamp(24px, 4vw, 34px); }
.wg-korean h2, .wg-result-word h2 { font-family: 'Noto Sans KR', sans-serif; }
#wg-answer-form { display: flex; flex-direction: column; gap: 12px; max-width: 500px; margin: 0 auto 22px; }
.wg-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 24px; }
.wg-choice { min-height: 62px; font-size: 18px; overflow-wrap: anywhere; }
.wg-hint { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 16px 0; padding: 12px; background: #f4ecd5; border-radius: 12px; }
.wg-hint[hidden] { display: none; }
.wg-feedback { background: #edf4e4; border: 1px solid #c1d7ae; border-radius: 18px; padding: 24px; }
.wg-needs-help { background: #fbf1de; border-color: #e4cea1; }
.wg-result-word { display: flex; align-items: center; gap: 20px; margin: 14px 0; }
.wg-result-word h2 { font-size: 29px; }
.wg-result-word > span { flex: 0 0 90px; }
.wg-feedback blockquote { background: #ffffffa8; border-left: 3px solid #86a574; margin: 20px 0; padding: 12px 18px; border-radius: 4px 12px 12px 4px; }
.wg-next-due { font-size: 13px; color: #5e664d; }
.wg-summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.wg-summary-stats > div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #eaf1df; border: 1px solid #cfddbe; padding: 16px; border-radius: 14px; }
.wg-summary-stats strong { font-size: 34px; }
.wg-summary-stats span { font-size: 13px; }
.wg-summary-words { list-style: none; margin: 20px 0; padding: 0; }
.wg-summary-words li { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid #d7e1cc; }
.wg-summary-words small { grid-column: 1 / -1; color: #586d50; }
.wg-notice { color: #856120; background: #fff0cd; border-radius: 10px; padding: 12px; }
#wg-entry { align-self: flex-start; font-family: inherit; }
@media (max-width: 600px) {
  #weak-garden-overlay { padding: 8px; }
  #wg-panel { max-height: calc(100dvh - 16px); border-radius: 15px; }
  .wg-header { padding: 12px 15px; }
  .wg-header h1 { font-size: 18px; }
  #wg-body { padding: 16px; }
  .wg-tools { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wg-search-label { grid-column: 1 / -1; }
  .wg-grid { grid-template-columns: 1fr; }
  .wg-start { align-items: stretch; }
  .wg-start > div { width: 100%; }
  .wg-start .wg-primary { flex: 1; }
  .wg-question { padding: 20px 5px; }
  .wg-summary-stats { gap: 7px; }
  .wg-summary-stats > div { padding: 12px 6px; }
  .wg-summary-words li { grid-template-columns: 1fr; }
  .wg-feedback { padding: 16px; }
  .wg-result-word { gap: 12px; }
}
