/* ===================== Bản mở rộng: 3 cấp, mẫu câu, hội thoại ===================== */
.install-btn { border: none; background: #14b8a6; color: #fff; font-weight: 800; font-size: 17px; border-radius: 99px; padding: 6px 14px; box-shadow: 0 3px 0 #0f8f82; }
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: #fff; border-radius: 22px; padding: 12px 16px; margin: -6px 0 20px; box-shadow: var(--shadow); font-size: 18px; font-weight: 600; }
.profile input, .profile select { font: inherit; border: 2px solid #dcd9ec; border-radius: 14px; padding: 4px 10px; margin-left: 6px; width: 140px; background: #faf9ff; }
.profile select { width: auto; }
.profile .btn { min-height: 46px; padding: 6px 20px; font-size: 19px; }
.profile .why { font-size: 15px; color: var(--ink-soft); font-weight: 500; }

.level-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.ltab { border: none; text-align: left; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 22px; background: rgba(255,255,255,.65); box-shadow: 0 4px 0 #d9e6ef; transition: transform .12s; }
.ltab .li { font-size: 34px; }
.ltab b { display: block; font-size: 20px; line-height: 1.1; }
.ltab small { display: block; color: var(--ink-soft); font-size: 15px; line-height: 1.2; }
.ltab.on { background: #fff; box-shadow: 0 5px 0 #14b8a6, 0 0 0 3px #14b8a6; transform: translateY(-2px); }
@media (max-width: 620px) {
  .level-tabs { gap: 8px; }
  .ltab { flex-direction: column; text-align: center; padding: 10px 6px; gap: 2px; }
  .ltab small { display: none; }
  .ltab b { font-size: 16px; }
  .ltab .li { font-size: 28px; }
}

.num-cover { font-weight: 800; font-size: 84px !important; letter-spacing: 2px; }
.cover-svg { width: 120px; height: 120px; stroke: rgba(0,0,0,.15); stroke-width: 4; }
.topic-head .cover-svg { width: 80px; height: 80px; }
.topic-head .num-cover { font-size: 40px !important; }
.topic-card.pat .pic .vis { width: 150px; height: 150px; }
.pat-emoji { position: absolute; right: 6px; bottom: 0; font-size: 40px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.15)); }
.topic-card.pat h3 { font-size: 24px; }
.topic-card.dlg .pic.scene { height: 170px; margin: -16px -18px 0; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--soft); }
.topic-card.dlg .pic.scene img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; }
.topic-card.dlg::before { display: none; }
.topic-card.dlg h3 { font-size: 24px; }
@media (max-width: 520px) {
  .topic-card .num-cover { font-size: 54px !important; }
  .topic-card.pat .pic .vis { width: 100px; height: 100px; }
  .topic-card.dlg .pic.scene { height: 120px; margin: -10px -12px 0; }
  .topic-card.pat h3, .topic-card.dlg h3 { font-size: 19px; }
  .pat-emoji { font-size: 30px; }
}

.m-owl { width: 100%; height: 100%; object-fit: contain; }
.shape { width: 70%; stroke: rgba(0,0,0,.18); stroke-width: 4; }
.cal { width: 74%; aspect-ratio: 1; background: #fff; border-radius: 22px; box-shadow: 0 6px 0 rgba(0,0,0,.08); overflow: hidden; display: grid; grid-template-rows: 26% 1fr auto; text-align: center; }
.cal b { background: var(--dc); position: relative; }
.cal span { display: grid; place-items: center; font-size: clamp(20px, 6vw, 40px); font-weight: 800; color: var(--dc); line-height: 1.05; padding: 0 6px; }
.cal i { font-style: normal; color: var(--dc); font-size: 12px; letter-spacing: 2px; padding-bottom: 8px; }
.letter-vis { position: relative; }
.big-letter { font-size: clamp(80px, 26vw, 190px); font-weight: 800; color: var(--c); line-height: 1; text-shadow: 0 6px 0 rgba(0,0,0,.08); }
.big-letter small { font-size: .55em; margin-left: 6px; opacity: .75; }
.ex-pic { position: absolute; right: 2%; bottom: 2%; width: 34%; height: 34%; display: grid; place-items: center; }
.ex-pic img { width: 100%; height: 100%; object-fit: contain; }
.ex-pic .big-emoji { font-size: 44px !important; }
.choice .big-letter, .see-pic .big-letter { font-size: clamp(50px, 14vw, 110px); }

.tip { background: #fffbe6; border-radius: 20px; padding: 12px 16px; font-size: 18px; margin: -6px 0 18px; box-shadow: inset 0 -3px 0 #ffe9a3; }
.sent-list { display: grid; gap: 10px; margin-top: 24px; }
.sent-row { border: none; text-align: left; background: #fff; border-radius: 18px; padding: 10px 16px; box-shadow: 0 3px 0 #e4e1f2; font-size: 20px; }
.sent-row .q { display: block; color: var(--ink-soft); font-size: 17px; }
.sent-row .q::before { content: "🐱 "; }
.sent-row b { color: var(--c); }
.sent-row small { display: block; color: var(--ink-soft); font-size: 15px; }
.sflash .pic { aspect-ratio: 4/3; }
.qline { font-size: 22px; font-weight: 700; color: var(--ink-soft); margin-top: 12px; cursor: pointer; }
.aline { font-size: clamp(30px, 7vw, 44px); font-weight: 800; color: var(--c); line-height: 1.15; margin-top: 6px; cursor: pointer; }
.center { text-align: center; }
.vi.center { font-size: 20px; color: var(--ink-soft); font-weight: 600; margin-bottom: 10px; }
.see-pic.small { width: min(44vw, 210px); }
.word-choices.sentences .word-choice { font-size: clamp(20px, 5vw, 28px); }
.vi-under { display: block; font-size: 16px; color: var(--ink-soft); font-weight: 600; }
.slots.words { gap: 8px; }
.wslot { width: auto; min-width: 70px; padding: 0 10px; font-size: clamp(20px, 5vw, 28px); height: 56px; text-transform: none; }
.wtile { width: auto; padding: 0 16px; font-size: clamp(20px, 5vw, 28px); height: 58px; }
.btn.ghost { background: transparent; box-shadow: none; font-size: 18px; color: var(--ink-soft); }

.mic-row { display: grid; justify-items: center; gap: 6px; margin-top: 6px; }
.btn.mic { background: #fff0f6; box-shadow: 0 5px 0 #ffc2da; }
.btn.mic.rec { background: #ff5d8f; color: #fff; animation: pulse 1s infinite; }
.heard { font-size: 18px; color: var(--ink-soft); text-align: center; min-height: 1.2em; }
.heard b { color: var(--ink); }

/* Hội thoại */
.dialog { max-width: 760px; margin: 0 auto; }
.dlg-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.dlg-head h1 { margin: 0; font-size: clamp(26px, 5vw, 38px); color: var(--c); line-height: 1.05; }
.dlg-head .vi { color: var(--ink-soft); font-size: 19px; font-weight: 600; }
.scene-pic { width: clamp(110px, 26vw, 180px); aspect-ratio: 1; border-radius: 24px; overflow: hidden; flex: none; background: var(--soft); display: grid; place-items: center; box-shadow: var(--shadow); }
.scene-pic img { width: 100%; height: 100%; object-fit: cover; }
.vi-toggle { font-size: 15px; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; cursor: pointer; }
.chat { display: grid; gap: 12px; padding: 6px 0; }
.msg { display: flex; gap: 8px; align-items: flex-end; animation: cardIn .35s cubic-bezier(.2,1.4,.4,1); }
.msg.you { justify-content: flex-end; }
.msg .av { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 #e4e1f2; font-size: 30px; overflow: hidden; }
.msg .av .av-img { width: 46px; height: 46px; object-fit: contain; }
.msg .av .av-img.emoji { font-size: 30px; }
.msg .b { max-width: 78%; background: #fff; border-radius: 22px 22px 22px 6px; padding: 10px 14px; box-shadow: 0 4px 0 #e4e1f2; cursor: pointer; }
.msg.you .b { background: var(--c); color: #fff; border-radius: 22px 22px 6px 22px; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.msg .en { font-size: clamp(19px, 4.4vw, 24px); font-weight: 700; line-height: 1.2; }
.msg .re { font-size: .7em; opacity: .6; }
.msg .tvi { font-size: 16px; opacity: .75; }
.msg .mpic { width: 120px; height: 120px; margin-top: 6px; background: var(--soft); border-radius: 16px; padding: 6px; }
.no-vi .tvi, .no-vi .ans small { display: none; }
.answer { margin-top: 16px; padding-bottom: 20px; }
.typing { text-align: center; color: var(--ink-soft); font-size: 18px; animation: pulse 1.2s infinite; }
.ans-title { text-align: center; font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.ans-opts { display: grid; gap: 10px; }
.ans { border: none; background: #fff; border-radius: 20px; padding: 12px 16px; text-align: left; box-shadow: 0 5px 0 #dcd9ec; transition: transform .1s; }
.ans:hover { transform: translateY(-2px); }
.ans b { display: block; font-size: clamp(20px, 4.6vw, 25px); }
.ans small { display: block; color: var(--ink-soft); font-size: 16px; }
.ans.wrong { background: #ffe8e8; box-shadow: 0 5px 0 var(--bad); animation: shake .45s; opacity: .6; }
.answer .mic-row { margin-top: 14px; }
.scene-pic .big-emoji, .topic-card.dlg .pic.scene .big-emoji { font-size: 72px !important; display: grid; place-items: center; height: 100%; }
