/* Thai Quest V2.3 — staged learning and daily-use mode */
.path-intro{background:linear-gradient(115deg,#6242ce,#9473ff);border-radius:24px;color:white;padding:24px;display:grid;gap:12px}
.path-intro h1{font-size:clamp(24px,4vw,34px);line-height:1.35;margin:0}
.path-intro p{line-height:1.7;font-size:14px;margin:0;opacity:.94}
.path-pill{display:inline-flex;gap:6px;align-items:center;border:1px solid #ffffff70;border-radius:90px;padding:5px 10px;width:fit-content;font-size:12px;font-weight:800}
.path-levels{display:grid;gap:10px;margin:16px 0}
.path-level{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:13px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px 15px}
.path-level.locked{opacity:.62;background:#f8f6fc}
.path-level-number{display:grid;place-items:center;background:#ede7ff;color:#6548d0;width:44px;height:44px;border-radius:15px;font-size:17px;font-weight:900}
.path-level h3{font-size:15px;line-height:1.5;margin:0 0 4px}
.path-level p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
.path-level .btn{font-size:12px;padding:9px 11px}
.path-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.path-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:13px 0 19px}
.path-step{padding:10px 5px;background:#f0edfc;border-radius:12px;text-align:center;font-size:12px;color:#8277a1;font-weight:850}
.path-step.active{color:#fff;background:#6b46e5}.path-step.completed{background:#e8f8ee;color:#17835d}
.path-panel{border-radius:23px;padding:24px;background:#fff;border:1px solid #e7e1f8}
.path-panel h2{font-size:22px;line-height:1.45;margin:0 0 12px}
.path-panel p{line-height:1.85;font-size:14px}
.path-phrase{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:15px 14px;border:1px solid #e8e4f4;border-radius:15px;margin:10px 0;background:#f8f6ff}
.path-phrase strong{font-family:Tahoma,"Noto Sans Thai",sans-serif;font-size:24px;line-height:1.5;overflow-wrap:anywhere}
.path-phrase small{display:block;font-size:12px;color:#71688c}
.path-rule{border-left:4px solid #7d60ed;background:#f5f1ff;border-radius:12px;padding:14px 16px;line-height:1.85;font-size:14px;color:#3d315b}
.path-scene{padding:15px;background:#fff7e9;border-radius:14px;margin-top:14px;font-size:14px;line-height:1.8}
.path-footer{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;margin-top:19px}
.path-choice{width:100%;border:1.5px solid #e5dff5;background:#fff;border-radius:12px;text-align:left;padding:13px 15px;margin-top:9px;line-height:1.7;color:var(--ink);font-size:15px}
.path-choice.correct{background:#e7fff4;border-color:#33ac8a}.path-choice.wrong{background:#fff1f2;border-color:#ef93aa}
.path-result{background:#f0f9f5;color:#196448;padding:15px;border-radius:12px;margin-top:14px;line-height:1.8;font-size:13px}
.path-result.wrong{background:#fff1f2;color:#964158}
.situation-search{padding:18px;background:#fff;border-radius:20px;border:1px solid var(--line);margin-top:18px}
.situation-search input{width:100%;padding:15px 16px;border:1.5px solid #ddd3f5;border-radius:14px;font:inherit;font-size:16px;color:var(--ink);background:#fff}
.situation-search input:focus-visible{outline:3px solid #b8aaff;outline-offset:2px}
.situation-chips{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}
.situation-chip{padding:9px 12px;border-radius:20px;background:#f4f1fc;border:1px solid #e1daf4;color:#62558c;font-size:13px;font-weight:700}
.situation-chip.active{background:#6850de;color:#fff;border-color:#6850de}
.situation-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.situation-entry{padding:16px;background:#fff;border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:8px}
.situation-entry .thai{font:800 24px/1.5 Tahoma,"Noto Sans Thai",sans-serif;overflow-wrap:anywhere}
.situation-entry .explain{color:var(--muted);font-size:12px;line-height:1.65;flex:1}
.situation-entry .actions{display:flex;gap:8px;flex-wrap:wrap}
.situation-entry .actions button{flex:1;font-size:12px;min-width:92px}
.situation-muted{color:var(--muted);font-size:12px;line-height:1.7}
.situation-empty{background:#fff7e9;border-radius:13px;padding:16px;line-height:1.8}
@media(max-width:720px){.path-panel{padding:18px 15px}.path-intro{padding:23px 19px}.path-level{grid-template-columns:36px minmax(0,1fr) auto;padding:12px 10px;gap:8px}.path-level-number{width:36px;height:36px}.path-level h3{font-size:13px}.path-level p{font-size:11px}.path-level .btn{font-size:11px;padding:8px}.path-phrase strong{font-size:22px}.situation-entries{grid-template-columns:1fr}.situation-search{padding:14px}}

.path-phrase-icon{display:inline-grid;place-items:center;background:#fff;border:1px solid #ebe5f7;border-radius:14px;font-size:33px;width:51px;height:51px;flex:none}.path-phrase{grid-template-columns:51px minmax(0,1fr) auto}.path-phrase .btn{padding:10px 12px}@media(max-width:390px){.path-phrase-icon{width:41px;height:41px;font-size:27px}.path-phrase{grid-template-columns:41px minmax(0,1fr) auto;padding:11px 9px;gap:6px}.path-phrase .btn{padding:9px 8px}.path-phrase strong{font-size:21px}}
