/* SEA · Giảng dạy (demo) — khung 1280×720 co giãn theo cửa sổ */
:root {
  --purple: #5B2C83; --purple-d: #3E1B5C; --yellow: #FDB813; --ink: #2B1640;
  --blue: #1F5FA8; --line: #ECE6F4; --muted: #6B6478;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'K2D', system-ui, -apple-system, 'Segoe UI', sans-serif; background: #FBF9FD; color: #1E1A26; -webkit-font-smoothing: antialiased; }
body.is-teach { background: #000; overflow: hidden; }
button { font-family: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus { outline: none; }
.ic { display: block; flex: none; }
.sp { flex: 1; }

/* ================= TRANG "LỚP CỦA TÔI" ================= */
.hbar { position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; color: var(--purple); white-space: nowrap; }
.logo i { font-style: normal; color: var(--yellow); }
.logo-m { width: 40px; height: 40px; border-radius: 11px; background: var(--purple); color: var(--yellow); display: grid; place-items: center; font-size: 14px; letter-spacing: .04em; }
.who { display: flex; align-items: center; gap: 10px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--purple-d); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.who b { display: block; font-size: 16px; }
.who small { display: block; font-size: 14px; color: var(--muted); }
.hmain { max-width: 1240px; margin: 0 auto; padding: 32px 24px 56px; }
.hhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hkick { font-size: 15px; font-weight: 700; color: var(--purple); letter-spacing: .02em; }
.hhead h1 { margin: 2px 0 0; font-size: 40px; line-height: 1.1; font-weight: 800; }
.hcount { font-size: 15px; font-weight: 700; color: var(--muted); padding: 6px 14px; border-radius: 999px; background: #F3EEF9; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.ccard { position: relative; display: flex; background: #fff; border: 1px solid #E3D9EF; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(43,22,64,.04); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.ccard:hover { box-shadow: 0 12px 30px rgba(43,22,64,.10); transform: translateY(-2px); }
.cc-strip { width: 10px; flex: none; background: var(--c); }
.cc-body { flex: 1; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cc-top { display: flex; align-items: center; gap: 10px; }
.cc-code { font-size: 28px; font-weight: 800; color: var(--c); }
.ccard.lv-teen .cc-code { color: #1E1A26; }
.cc-lv { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-size: 14px; font-weight: 800; }
.cc-unit { font-size: 20px; font-weight: 700; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: #4A4458; }
.cc-meta span, .cc-rh { display: flex; align-items: center; gap: 6px; }
.cc-rh { font-size: 15px; font-weight: 800; color: #2E2838; margin-top: 4px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chips span { padding: 3px 10px; border-radius: 999px; background: #F5F2F9; font-size: 14px; color: #4A4458; }
.cc-go { margin-top: auto; height: 60px; border: 0; border-radius: 16px; background: var(--c); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; transition: filter .15s, transform .15s; }
.ccard.lv-kiddy .cc-go { background: var(--yellow); color: var(--purple-d); }
.cc-go:hover { filter: brightness(1.08); }
.cc-go:active { transform: scale(.98); }
.tips { margin-top: 28px; background: #fff; border: 1px solid #E3D9EF; border-radius: 18px; padding: 20px 22px; }
.tips h2 { margin: 0 0 12px; font-size: 18px; }
.tips-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 20px; }
.tips-g div { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #2E2838; }
.tips-g span { margin-left: 6px; }
kbd { font-family: inherit; font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1px solid #D8CDE6; border-bottom-width: 3px; background: #FBF9FD; }
.tips p { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .hbar { padding: 0 16px; } .who div { display: none; }
  .hmain { padding: 22px 16px 40px; } .hhead h1 { font-size: 32px; } .hhead { flex-wrap: wrap; }
  .cards { grid-template-columns: 1fr; }
}

/* ================= KHUNG DẠY — 3 vùng cố định kiểu Pearson =================
   Thanh tiêu đề (56) · cột công cụ trái (72) · Lesson flow (96) · giữa là thẻ nội dung.
   Nội dung dựng ở 1280×720 trong #stage rồi co vừa thẻ (JS đặt scale). Không thanh nổi nào đè nội dung. */
#teach { position: fixed; inset: 0; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; }
#teach.idle.full, #teach.idle.full * { cursor: none !important; }
#frame { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden;
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) 96px; background: #F4F1F8; color: var(--ink); }
#teach:not(.gvm) .gv { display: none !important; }

/* 1. Thanh tiêu đề */
#tbar { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; padding: 0 12px 0 14px; background: #fff; border-bottom: 1px solid #E6DEF0; min-width: 0; }
.tb-logo { display: flex; align-items: center; gap: 8px; flex: none; }
.tb-m { width: 36px; height: 36px; border-radius: 10px; background: var(--purple); color: var(--yellow); display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.tb-ln { font-size: 15px; font-weight: 800; color: var(--purple); white-space: nowrap; }
.tb-crumb { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 0; font-size: 17px; font-weight: 600; color: #2E2838; white-space: nowrap; overflow: hidden; }
.tb-crumb b { color: var(--purple); font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.tb-crumb i { font-style: normal; color: var(--yellow); font-weight: 800; font-size: 22px; margin: 0 12px; }
.tb-act { font-weight: 800; color: #1E1A26; }
#teach.pen .tb-crumb { visibility: hidden; }
.tb-r { display: flex; align-items: center; gap: 10px; flex: none; }
.tb-time { font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 8px; background: #F3EEF9; white-space: nowrap; }
.tb-x { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #E1D5EE; background: #fff; color: var(--purple-d); display: grid; place-items: center; }
.tb-x:hover { background: #F3EEF9; }

/* 2. Cột công cụ trái: icon tròn + nhãn nhỏ */
#rail { grid-column: 1; grid-row: 2; background: #EFE7F8; border-right: 1px solid #E1D5EE; display: flex; flex-direction: column; align-items: center; padding: 4px 0; overflow: hidden; min-height: 0; }
.rt-fold { height: 26px; width: 64px; flex: none; border: 0; background: transparent; color: var(--purple); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 2px; }
.rt { width: 68px; height: 52px; flex: none; border: 0; background: transparent; padding: 0; color: var(--purple-d); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rt-c { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #D6C6EA; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.rt-l { font-size: 11px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.rt:hover .rt-c { border-color: var(--purple); }
.rt.on .rt-c { background: var(--purple); border-color: var(--purple); color: #fff; }
.rt.yel .rt-c { background: var(--yellow); border-color: #E5A400; }
#teach.lv-kiddy .rt { height: 56px; }
#teach.lv-kiddy .rt-c { width: 38px; height: 38px; }
#teach.lv-kiddy .rt-l { font-size: 12px; }

/* Menu Thêm (xổ cạnh cột công cụ) */
#more { position: absolute; left: 76px; bottom: 104px; z-index: 65; display: none; }
#more.on { display: flex; flex-direction: column; gap: 2px; width: 290px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid #E1D5EE; box-shadow: 0 16px 40px rgba(43,22,64,.22); animation: popIn .18s var(--ease); }
.mo-h { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; }
.mo { height: 40px; border: 0; border-radius: 10px; background: transparent; display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 15px; font-weight: 700; color: #1E1A26; text-align: left; }
.mo:hover { background: #F3EEF9; }
.mo.on { background: #FFF1C2; }
.mo .ic { color: var(--purple); }
.mo-sep { height: 1px; background: #ECE6F4; margin: 4px 6px; }

/* 4. Vùng giữa: thẻ nội dung + mũi tên mép phải */
#main { grid-column: 2; grid-row: 2; position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 72px 10px 16px; min-width: 0; min-height: 0; }
#card { flex: none; display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 2px 0 #E1D5EE, 0 10px 30px rgba(43,22,64,.08); }
#chead { height: 40px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.ch-t { margin: 0; font-size: 22px; font-weight: 800; color: var(--purple); line-height: 1.2; padding-bottom: 2px; border-bottom: 3px solid var(--yellow); white-space: nowrap; }
.ch-tag { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--blue); background: #E3EEFB; padding: 3px 10px; border-radius: 999px; }
#stagec { position: relative; flex: none; overflow: hidden; border-radius: 10px; }
#stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; background: #FFF8E6; color: var(--ink); }
#content { position: absolute; inset: 0; }
#ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; touch-action: none; }
#teach.pen #ink { pointer-events: auto; cursor: crosshair; }
#cfoot { height: 36px; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 0 4px; }
.cf-l, .cf-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cf-r { justify-content: flex-end; }
.cf-dots { display: flex; gap: 6px; }
.cf-dots span { width: 8px; height: 8px; border-radius: 999px; background: #DCD1EA; transition: width .2s var(--ease); }
.cf-dots span.cur { width: 22px; background: var(--yellow); }
.cf-b { height: 30px; padding: 0 12px; border-radius: 9px; border: 1.5px solid #D6C6EA; background: #fff; color: var(--purple-d); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cf-b:hover { border-color: var(--purple); }
.cf-b.on { background: var(--purple); border-color: var(--purple); color: #fff; }
#arrows { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.ar { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--purple); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(91,44,131,.3); }
.ar:hover { background: var(--purple-d); }

/* 3. Lesson flow */
#flow { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: stretch; background: #F3F2F6; border-top: 1px solid #E1DCE8; min-width: 0; }
.fl-side { flex: none; display: flex; gap: 4px; padding: 0 10px; border-right: 1px solid #E1DCE8; align-items: center; }
.fl-s { width: 78px; height: 72px; border: 0; border-radius: 12px; background: transparent; color: var(--purple-d); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 700; }
.fl-s:hover { background: #EAE3F3; }
.fl-steps { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 4px; padding: 0 14px; overflow: hidden; }
.fl { position: relative; width: 118px; flex: none; border: 0; background: transparent; padding: 14px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #4A4458; }
.fl-c { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #CFC3DF; background: #fff; color: var(--purple); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.fl-l { font-size: 13px; font-weight: 700; line-height: 1.15; text-align: center; max-width: 114px; }
.fl-l em { font-style: normal; color: var(--muted); }
.fl.past .fl-c { background: #EFE7F8; border-color: #D6C6EA; color: #7D6A96; }
.fl.cur .fl-c { background: var(--yellow); border-color: #E5A400; color: var(--purple-d); }
.fl.cur .fl-l { color: var(--purple-d); font-weight: 800; }
.fl.cur::before { content: ''; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top: 10px solid var(--yellow); border-bottom: 0; }
.fl:hover .fl-c { border-color: var(--purple); }
#teach.lv-kiddy .fl-c { width: 54px; height: 54px; }
#teach.lv-kiddy .fl { padding-top: 10px; }

/* Toàn màn (F): chỉ còn thẻ nội dung tràn khung */
#teach.full #frame { grid-template-columns: 0 minmax(0, 1fr); grid-template-rows: 0 minmax(0, 1fr) 0; }
#teach.full #tbar, #teach.full #rail, #teach.full #flow, #teach.full #arrows, #teach.full #chead, #teach.full #cfoot { display: none; }
#teach.full #frame { background: #000; }
#teach.full #main { padding: 0; }
#teach.full #card { padding: 0; border-radius: 0; box-shadow: none; }
#teach.full #stagec { border-radius: 0; }

/* Màn đen */
#black { position: fixed; inset: 0; z-index: 100; background: #000; display: none; align-items: flex-end; justify-content: center; padding-bottom: 18px; }
#black span { font-size: 14px; color: #2a2a2a; }
#teach.blk #black { display: flex; }

/* Che (curtain) — trong thẻ nội dung */
#curtain { position: absolute; inset: 0; z-index: 25; display: none; align-items: center; justify-content: center; background: var(--purple); cursor: pointer; animation: curIn .35s var(--ease); }
#curtain.on { display: flex; }
.cur-in { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--yellow); }
.cur-q { font-size: 180px; font-weight: 800; line-height: 1; }
.cur-t { font-size: 28px; font-weight: 700; color: #E9DDF7; }
@keyframes curIn { from { transform: translateY(-100%); } to { transform: none; } }

/* Hộp nổi */
#pop { position: absolute; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(20,12,30,.45); }
#pop.on { display: flex; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pcard { background: #fff; color: #1E1A26; border-radius: 22px; padding: 24px 28px; min-width: 420px; max-width: 1100px; box-shadow: 0 24px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 16px; animation: popIn .22s var(--ease); }
@keyframes popIn { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.pk { font-size: 20px; font-weight: 800; color: var(--purple); letter-spacing: .04em; text-transform: uppercase; }
.pname { align-items: center; min-width: 560px; }
.pn { font-size: 84px; font-weight: 800; color: var(--purple); line-height: 1.1; min-height: 94px; text-align: center; }
.pn.land { animation: land .4s var(--ease); }
@keyframes land { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.prow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pbtn { height: 48px; padding: 0 18px; border-radius: 12px; border: 2px solid #DCD3E8; background: #fff; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pbtn:hover { border-color: var(--purple); }
.pbtn.pri { background: var(--purple); border-color: var(--purple); color: #fff; }
.pbtn.big { height: 64px; min-width: 120px; font-size: 22px; font-weight: 800; }
.pbtn.sm { height: 36px; padding: 0 12px; font-size: 15px; }
.ppre { display: flex; gap: 10px; flex-wrap: wrap; }
.pmin { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.pmin input { width: 110px; height: 52px; border-radius: 12px; border: 2px solid #DCD3E8; font: inherit; font-size: 26px; font-weight: 800; text-align: center; color: #1E1A26; }
.pmin input:focus { outline: none; border-color: var(--purple); }
#pop.wide { background: rgba(23,18,31,.94); align-items: stretch; justify-content: stretch; padding: 28px 36px; }
.ppairs { flex: 1; max-width: none; background: transparent; box-shadow: none; color: #EDE9F3; padding: 0; }
.ph { display: flex; align-items: center; gap: 10px; }
.pt { font-size: 32px; font-weight: 700; }
.ppairs .pbtn { background: transparent; color: #EDE9F3; border-color: #4A3E5C; }
.ppairs .pbtn.pri { background: var(--yellow); color: #1E1A26; border-color: var(--yellow); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pp { padding: 18px 20px; border-radius: 12px; background: #221B2E; border: 1px solid #3A3048; display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 600; }
.ppn { width: 38px; height: 38px; flex: none; border-radius: 10px; background: #C9A8F0; color: #1E1A26; display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.ptg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptm { border-radius: 16px; padding: 14px; background: color-mix(in srgb, var(--tc) 10%, #fff); border: 3px solid var(--tc); display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 170px; }
.ptn { font-size: 20px; font-weight: 800; color: var(--tc); }
.pts { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.prl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 620px; }
.prr { height: 56px; border: 1px solid #E1D5EE; border-radius: 12px; background: #fff; display: flex; align-items: center; gap: 12px; padding: 0 12px; font-size: 18px; font-weight: 700; text-align: left; }
.prr em { margin-left: auto; font-style: normal; font-size: 14px; color: var(--muted); }
.prr:hover { border-color: var(--purple); }
.prc { width: 36px; height: 36px; border-radius: 50%; background: #EFE7F8; color: var(--purple); display: grid; place-items: center; }

/* Thông báo nhỏ — ngay dưới thanh tiêu đề, ngoài vùng nội dung */
#toast { position: absolute; left: 50%; top: 8px; z-index: 80; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; padding: 9px 18px; border-radius: 12px; background: rgba(30,20,45,.94); color: #fff; font-size: 18px; font-weight: 700; transition: opacity .2s, transform .2s var(--ease); white-space: nowrap; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Hẹn giờ: chip nằm trên thanh tiêu đề; phóng to thì phủ cả khung (GV chủ động) */
#tmr:not(.on) { display: none; }
.tchip { position: relative; overflow: hidden; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 2px solid var(--purple); background: #fff; color: var(--purple-d); display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tchip i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--yellow); transform-origin: 0 0; transition: transform .9s linear; }
#tmr.low .tchip { border-color: #B42318; color: #B42318; }
#tmr.done .tchip { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { background: #FFE1DC; } }
#tmr.big { position: absolute; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(20,12,30,.6); }
.tb-in { background: #1E1A26; color: #fff; border-radius: 24px; padding: 28px 40px 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.tdig { font-size: 200px; line-height: 1; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
#tmr.low .tdig { color: #FF8A7A; }
#tmr.done .tdig { animation: blinkTxt 1s steps(2) infinite; }
@keyframes blinkTxt { 50% { opacity: .35; } }
.tbar { width: 100%; height: 12px; border-radius: 999px; background: #3A3048; overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 0; transition: transform .9s linear; }
.trow { display: flex; gap: 10px; }
.trow .pbtn { background: transparent; color: #fff; border-color: #4A3E5C; }

/* Bút: thanh bút thay chỗ đường dẫn trên thanh tiêu đề */
#penbar { position: absolute; z-index: 70; left: 50%; top: 6px; transform: translateX(-50%); display: none; align-items: center; gap: 8px; height: 44px; padding: 0 8px; border-radius: 14px; background: #1E1A26; }
#penbar.on { display: flex; }
.pbl { color: #fff; font-size: 15px; font-weight: 700; padding: 0 6px; }
.pcol { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; }
.pcol.on { border-color: #fff; box-shadow: 0 0 0 2px var(--yellow); }
#penbar .pbtn { background: #fff; }
#penbar .pbtn.pri { background: var(--yellow); border-color: var(--yellow); color: #1E1A26; }

/* ================= KIDDY ================= */
/* Hũ sao (trong nội dung, ẩn ở màn video) */
#hud { position: absolute; right: 22px; top: 18px; z-index: 22; }
#teach.is-video #hud, #teach.no-jar #hud { display: none; }
.k-jar { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.k-jarb { width: 66px; height: 76px; border-radius: 12px 12px 20px 20px; background: #fff; border: 4px solid var(--purple); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.k-jarn { font-size: 26px; font-weight: 800; color: var(--purple); line-height: 1.1; }
.k-jar.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-6deg); } }
.flystar { position: absolute; z-index: 45; left: 50%; top: 50%; animation: fly .85s var(--ease) forwards; pointer-events: none; }
@keyframes fly { 0% { transform: translate(-50%,-50%) scale(.4); opacity: 0; } 25% { transform: translate(-50%,-50%) scale(1.4); opacity: 1; } 100% { transform: translate(520px,-310px) scale(.3); opacity: .2; } }

/* Video: khung hình ở trên (contain, giữ 16:9), dải lời (nếu bật) + dải điều khiển ở DƯỚI — không có gì đè lên video */
.vwrap { position: absolute; inset: 0; background: #2B1640; display: flex; flex-direction: column; }
.vbox { position: relative; flex: 1; min-height: 0; }
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #2B1640; cursor: pointer; display: block; }
.vctl { height: 84px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 24px; background: #1E1A26; color: #fff; }
.vbig { width: 64px; height: 64px; flex: none; border-radius: 50%; border: 4px solid #fff; background: var(--yellow); color: var(--purple-d); display: grid; place-items: center; }
.vbig > svg, .vbig .vre { grid-area: 1 / 1; }
.vbig .vre { display: none; }
.vwrap.ended .vbig > svg { display: none; }
.vwrap.ended .vbig .vre { display: block; }
.vwrap.playing .vbig { background: #fff; }
.vtitle { font-size: 24px; font-weight: 800; white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.vprog { flex: 1; height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.vprog i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 0; transform: scaleX(0); }
.vtime { font-size: 20px; font-weight: 700; color: #E9DDF7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vbtn { height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ly { display: none; height: 120px; flex: none; background: #3E1B5C; align-items: center; gap: 22px; padding: 0 36px; }
.vwrap.ly-on .ly { display: flex; }
.ly-ic { width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--purple-d); display: grid; place-items: center; }
.ly-line { flex: 1; display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 54px; font-weight: 800; line-height: 1.15; color: #B9A6D3; min-width: 0; }
.ly-line span { transition: color .15s; border-radius: 10px; }
.ly-line span.done { color: #fff; }
.ly-line span.cur { color: var(--purple-d); background: var(--yellow); padding: 0 8px; margin: 0 -8px; }
.ly-pos { font-size: 20px; font-weight: 700; color: #E9DDF7; }

/* Mục tiêu */
.k-goal { position: absolute; inset: 0; overflow: hidden; }
.k-goal-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-goal-card { position: absolute; left: 44px; top: 40px; padding: 20px 34px 26px; border-radius: 32px; background: #FFF8E6; border: 6px solid var(--purple); display: flex; flex-direction: column; align-items: flex-start; box-shadow: 0 14px 30px rgba(43,22,64,.25); }
.k-goal-sub { font-size: 24px; font-weight: 800; color: #8A5300; letter-spacing: .04em; }
.k-goal-t { font-size: 132px; line-height: 1; font-weight: 800; color: var(--purple); }
.k-say { position: absolute; right: -40px; bottom: -36px; width: 96px; height: 96px; border-radius: 50%; border: 6px solid #fff; background: var(--yellow); color: var(--purple-d); display: grid; place-items: center; box-shadow: 0 8px 0 #C88E00; }
.k-say:active { transform: translateY(4px); box-shadow: 0 4px 0 #C88E00; }
.k-goal-row { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 18px; }
.k-mini { width: 132px; padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.k-mini img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: 0 8px 20px rgba(43,22,64,.3); background: #fff; }
.k-mini span { padding: 2px 16px; border-radius: 999px; background: #FFF8E6; border: 3px solid var(--purple); color: var(--purple); font-size: 24px; font-weight: 800; }
.pop { animation: popw .45s var(--ease); }
@keyframes popw { 40% { transform: scale(1.12); } }

/* Listen and point */
.k-point { position: absolute; inset: 0; }
.k-head { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: center; align-items: center; gap: 18px; }
.k-head h2 { margin: 0; font-size: 52px; font-weight: 800; color: var(--purple); }
.k-hic { width: 64px; height: 64px; border-radius: 50%; background: var(--purple); color: var(--yellow); display: grid; place-items: center; }
.k-grid { position: absolute; left: 44px; right: 120px; top: 34px; bottom: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 22px; }
.k-tile { position: relative; padding: 0; border-radius: 28px; overflow: hidden; background: #fff; border: 6px solid var(--purple); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.k-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-tile.on { border: 10px solid var(--yellow); transform: scale(1.04); box-shadow: 0 14px 30px rgba(91,44,131,.35); z-index: 1; }
.k-lab { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 22px; border-radius: 999px; background: #FFF8E6; border: 3px solid var(--purple); font-size: 34px; font-weight: 800; color: var(--purple); display: none; }
.k-grid.labels .k-lab { display: block; }
.k-cov { position: absolute; inset: 0; background: var(--purple); display: none; align-items: center; justify-content: center; font-size: 120px; font-weight: 800; color: var(--yellow); }
.k-grid.covered .k-tile:not(.on) .k-cov { display: flex; }

/* Class game */
.k-game { position: absolute; inset: 0; display: flex; }
.k-team { width: 230px; flex: none; padding: 26px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: background .3s; }
.k-team.on { background: color-mix(in srgb, var(--tc) 13%, transparent); }
.k-ava { width: 150px; height: 150px; border-radius: 50%; border: 6px solid; background: #fff url('/noidung/k1/u07/img/cast.webp') no-repeat; background-size: 330% auto; }
.k-tname { font-size: 32px; font-weight: 800; }
.k-stars { display: flex; flex-direction: column; align-items: center; gap: 4px; max-height: 340px; overflow: hidden; } /* xếp từ trên xuống, không chạm 20% đáy */
.k-stars svg { animation: popw .45s var(--ease); }
.k-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 20px; padding: 28px 24px 0; }
.k-spk { width: 130px; height: 130px; flex: none; border-radius: 50%; border: 0; background: var(--yellow); color: var(--purple-d); display: grid; place-items: center; box-shadow: 0 10px 0 #C88E00; }
.k-spk:active { transform: translateY(6px); box-shadow: 0 4px 0 #C88E00; }
.k-hint { font-size: 22px; font-weight: 700; color: #5E4E72; }
.k-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; width: 100%; }
.k-choice { height: 220px; padding: 0; border-radius: 28px; overflow: hidden; background: #fff; border: 6px solid var(--purple); transition: transform .2s var(--ease), opacity .2s; }
.k-choice img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-choice.right { border: 10px solid #1F9D55; transform: scale(1.05); }
.k-choice.wrong { opacity: .55; }
.k-dots { display: flex; gap: 10px; }
.k-dots span { width: 16px; height: 16px; border-radius: 50%; background: #DCD1EA; }
.k-dots span.past { background: var(--purple); }
.k-dots span.cur { background: var(--yellow); }
.k-done { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.k-win { font-size: 64px; font-weight: 800; color: var(--purple); }
.k-great { font-size: 30px; font-weight: 700; }
.k-again { height: 60px; padding: 0 28px; border-radius: 16px; border: 0; background: var(--purple); color: #fff; font-size: 20px; font-weight: 800; }

/* ================= JUNIOR ================= */
#teach.lv-junior #stage { background: #EEF3FA; color: #17202E; }
.j-h1 { font-size: 40px; font-weight: 800; color: var(--purple); line-height: 1.1; }

/* Warm-up */
.j-warm { position: absolute; inset: 0; padding: 20px 26px; display: flex; flex-direction: column; gap: 8px; }
.j-sub { font-size: 28px; font-weight: 600; color: #3A4658; }
.j-sub b { color: #17202E; }
.j-zgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.j-z { position: relative; padding: 0; border: 0; border-radius: 20px; background: #fff; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 0 #D9E2EE; }
.j-zimg { flex: 1; min-height: 0; overflow: hidden; display: block; }
.j-zimg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(4.4); transition: transform .7s var(--ease); }
.j-z.rev .j-zimg img { transform: scale(1); }
.j-zn { position: absolute; left: 12px; top: 12px; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.j-zlab { height: 70px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: transparent; background: #F3F5F9; transition: color .3s; }
.j-z.rev .j-zlab { color: #17202E; background: #FFF1C2; }

/* Read and listen — ảnh 44%, nút ▶ 64 góc trên phải ảnh, hội thoại 40px */
.j-read { position: absolute; inset: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.j-rbody { flex: 1; min-height: 0; display: flex; gap: 22px; }
.j-rimg { position: relative; width: 44%; flex: none; border-radius: 20px; overflow: hidden; background: #fff; }
.j-rimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-play { position: absolute; top: 14px; right: 14px; width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; background: var(--yellow); color: #17202E; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.j-rtext { flex: 1; min-width: 0; background: #fff; border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.j-line { display: flex; align-items: baseline; gap: 12px; padding: 6px 8px; border-radius: 14px; transition: background .2s, opacity .2s; }
.j-who { flex: none; width: 72px; text-align: center; padding: 4px 0; border-radius: 10px; font-size: 22px; font-weight: 800; color: #fff; background: var(--blue); }
.j-line.na .j-who { background: #B0124F; }
.j-ws { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 40px; font-weight: 700; line-height: 1.25; }
.jw { border: 0; background: transparent; padding: 0 6px; border-radius: 8px; font-size: inherit; font-weight: inherit; color: #7A8597; transition: background .12s, color .12s; }
.jw.past { color: #17202E; }
.jw.cur { background: #FFD54A; color: #17202E; box-shadow: inset 0 -4px 0 var(--purple); }
.jw.mask { color: transparent; border-bottom: 4px solid #17202E; border-radius: 0; min-width: 90px; }
.j-rtext.role-na .j-line.na, .j-rtext.role-bin .j-line.bin { background: #FFF6D6; box-shadow: inset 5px 0 0 var(--yellow); }
.j-rtext.role-na .j-line.bin, .j-rtext.role-bin .j-line.na { opacity: .55; }
.j-ctl { height: 60px; flex: none; display: flex; align-items: center; gap: 12px; }
.j-btn { height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid #C8D3E2; background: #fff; font-size: 18px; font-weight: 700; color: #17202E; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.j-btn.on { background: #17202E; border-color: #17202E; color: #fff; }
.j-hint { font-size: 15px; color: #4A5668; font-weight: 600; }

/* Team Quiz — dải đội duy nhất + đồng hồ chip; 4 phương án rộng */
.j-quiz { position: absolute; inset: 0; display: flex; flex-direction: column; }
.q-teams { height: 96px; flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 120px; gap: 12px; padding: 14px 20px 8px; align-items: stretch; }
.q-team { border-radius: 16px; padding: 6px 16px; display: flex; align-items: center; justify-content: space-between; color: #fff; opacity: .8; transition: box-shadow .2s, opacity .2s; }
.q-team.turn { box-shadow: 0 0 0 5px var(--yellow); opacity: 1; }
.q-tn { font-size: 22px; font-weight: 700; line-height: 1.1; }
.q-ts { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.q-fire { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; color: #E2622C; font-size: 20px; font-weight: 800; }
.q-clock { position: relative; overflow: hidden; width: 120px; height: 56px; align-self: center; border-radius: 14px; background: #fff; border: 3px solid #17202E; display: grid; place-items: center; }
.q-clock i { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--yellow); transform-origin: 0 0; transition: transform .9s linear; }
.q-clock.low { border-color: #B42318; color: #B42318; }
.q-clock.low i { background: #B42318; }
.q-sec { font-size: 36px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.q-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 8px 20px 20px; }
.q-q { background: #fff; border-radius: 20px; padding: 14px 22px; display: flex; align-items: center; gap: 22px; flex: none; }
.q-q img { width: 220px; height: 160px; object-fit: cover; border-radius: 14px; flex: none; }
.q-meta { font-size: 24px; font-weight: 700; color: #4A5668; }
.q-text { font-size: 44px; font-weight: 800; line-height: 1.15; }
.q-rule { font-size: 16px; color: #4A5668; line-height: 1.4; margin-top: 4px; }
.q-opts { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.q-opt { border: 0; border-radius: 18px; background: #2A3A52; color: #fff; font-size: 40px; font-weight: 800; display: flex; align-items: center; gap: 20px; padding: 0 22px; text-align: left; transition: background .2s, transform .15s; }
.q-opt:active { transform: scale(.98); }
.q-opt.right { background: #1E7A45; }
.q-opt.wrong { background: #8A1F1F; }
.q-k { width: 60px; height: 60px; flex: none; border-radius: 14px; background: #fff; color: #17202E; display: grid; place-items: center; font-size: 32px; font-weight: 800; }
.q-btn { height: 56px; border-radius: 14px; border: 2px solid #C8D3E2; background: #fff; font-size: 20px; font-weight: 700; color: #17202E; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 22px; }
.q-btn.pri { border: 0; background: var(--blue); color: #fff; font-weight: 800; }
.q-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.q-dh { font-size: 46px; font-weight: 800; color: var(--purple); }
.q-bars { display: flex; align-items: flex-end; gap: 26px; height: 300px; }
.q-bcol { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.q-bs { font-size: 28px; font-weight: 800; }
.q-bb { width: 120px; border-radius: 14px 14px 0 0; transition: height .6s var(--ease); }
.q-bn { font-size: 22px; font-weight: 800; }

/* Wrap-up */
.j-wrap { position: absolute; inset: 0; display: flex; gap: 20px; padding: 18px 22px; }
.j-wl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.j-wgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.j-wc { padding: 0; border: 0; border-radius: 18px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.j-wc img { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block; }
.j-wc span { height: 50px; flex: none; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--purple); }
.j-frame { font-size: 32px; font-weight: 700; padding: 10px 18px; border-radius: 14px; background: #fff; border: 2px dashed #C8D3E2; }
.j-frame u { text-decoration-thickness: 3px; text-underline-offset: 6px; }
.j-wr { width: 340px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.j-card { background: #fff; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.j-ch { font-size: 20px; font-weight: 800; color: #4A5668; letter-spacing: .02em; text-transform: uppercase; }
.j-mini { display: flex; flex-direction: column; gap: 6px; }
.j-mrow { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.j-mn { width: 104px; font-weight: 700; }
.j-mb { flex: 1; height: 14px; border-radius: 999px; background: #EEF3FA; overflow: hidden; }
.j-mb i { display: block; height: 100%; border-radius: 999px; }
.j-mrow b { width: 40px; text-align: right; font-size: 22px; }
.j-star { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; color: var(--purple); }
.j-note { font-size: 15px; color: #4A5668; }
.j-hw { font-size: 22px; font-weight: 600; line-height: 1.4; }

/* ================= TEEN ================= */
#teach.lv-teen { --tb: #F7F6F9; --tf: #1E1A26; --tc: #FFFFFF; --tl: #E2DDE9; --ta: #5B2C83; --tm: #6B6478; --to: #16794F; --th: #FFF1C2; --tbtn: #1E1A26; }
#teach.lv-teen.dark { --tb: #17121F; --tf: #EDE9F3; --tc: #221B2E; --tl: #3A3048; --ta: #C9A8F0; --tm: #A79DB8; --to: #4CC38A; --th: #5A4A12; --tbtn: #2E2540; }
#teach.lv-teen #stage { background: var(--tb); color: var(--tf); transition: background .25s, color .25s; }
#teach.lv-teen.dark #card { background: #221B2E; }
#teach.lv-teen.dark .ch-t { color: #E9DDF7; }
#teach.lv-teen #curtain { background: var(--tb); }
#teach.lv-teen .cur-q { color: var(--ta); font-size: 120px; }
#teach.lv-teen .cur-t { color: var(--tm); }
.t-card { background: var(--tc); border: 1px solid var(--tl); border-radius: 12px; }
.t-ghost { height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--tl); background: transparent; color: var(--tf); font-size: 18px; font-weight: 600; white-space: nowrap; }
.t-kick { font-size: 20px; font-weight: 700; color: var(--tm); letter-spacing: .08em; }

/* Can-do */
.t-cando, .t-exit { position: absolute; inset: 0; padding: 34px 56px; display: flex; flex-direction: column; gap: 14px; }
.t-cando h1, .t-exit h1 { margin: 0; font-size: 56px; font-weight: 700; color: var(--ta); line-height: 1.1; }
.t-cdl { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.t-cdl li { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 12px; background: var(--tc); border: 1px solid var(--tl); }
.t-num { font-size: 24px; font-weight: 700; color: var(--tm); width: 24px; }
.t-sk { width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--ta); color: var(--tc); display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.t-skn { font-size: 20px; font-weight: 700; color: var(--tm); letter-spacing: .06em; text-transform: uppercase; }
.t-cdt { font-size: 30px; font-weight: 600; line-height: 1.25; }
.t-foot { margin-top: auto; font-size: 16px; color: var(--tm); }

/* Reading — đoạn đọc 28px/1.55 căn trên, ~62%; câu T/F 24px; Reveal = ô 44×44 cuối dòng */
.t-read { position: absolute; inset: 0; padding: 14px 22px 16px; display: flex; flex-direction: column; gap: 10px; }
.t-rhead { display: flex; align-items: center; gap: 14px; height: 48px; flex: none; }
.t-rt { font-size: 30px; font-weight: 700; }
.t-pill { padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: #1E1A26; font-size: 14px; font-weight: 700; }
.t-rtimer { padding: 2px 16px; border-radius: 10px; border: 0; background: var(--tbtn); color: #fff; font-size: 36px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; opacity: .75; }
.t-rtimer.run { opacity: 1; }
.t-rtimer.low { color: #FF8A7A; }
.t-rbody { flex: 1; min-height: 0; display: flex; gap: 18px; }
.t-pass { flex: 62 1 0; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
.t-pl { display: flex; gap: 10px; align-items: baseline; font-size: 28px; line-height: 1.55; padding: 0 6px; border-radius: 6px; transition: background .2s; white-space: nowrap; }
.t-pl.hl { background: var(--th); }
.t-ln { width: 26px; flex: none; text-align: right; font-size: 18px; color: var(--tm); }
.t-qs { flex: 38 1 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t-qh { font-size: 22px; font-weight: 700; }
.t-q { padding: 4px 8px; border-radius: 10px; display: flex; flex-direction: column; gap: 2px; border: 2px solid transparent; }
.t-q.focus { border-color: var(--ta); }
.t-q.open { border-color: var(--to); }
.t-qr { display: flex; gap: 10px; align-items: center; font-size: 24px; line-height: 1.25; }
.t-qt { flex: 1; min-width: 0; }
.t-qn { width: 36px; height: 36px; flex: none; border-radius: 8px; border: 0; background: var(--tl); color: var(--tf); font-size: 20px; font-weight: 700; }
.t-q.focus .t-qn { background: var(--ta); color: var(--tc); }
.t-rev { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 2px solid var(--tl); background: transparent; color: var(--tm); display: grid; place-items: center; }
.t-q.open .t-rev { border-color: var(--to); color: var(--to); }
.t-qa { display: none; padding-left: 46px; }
.t-q.open .t-qa { display: flex; }
.t-ok { font-size: 22px; font-weight: 700; color: var(--to); }
.t-qfoot { display: flex; gap: 8px; justify-content: flex-start; }

/* Speaking — câu hỏi 48px, ảnh 360×260, mẫu câu 30px × 2 hàng */
.t-speak { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 30px; }
.t-sq { display: flex; gap: 26px; align-items: stretch; }
.t-sq img { width: 360px; height: 260px; object-fit: cover; border-radius: 12px; flex: none; }
.t-sqr { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.t-lab { font-size: 20px; font-weight: 700; color: var(--tm); letter-spacing: .08em; }
.t-q1 { font-size: 48px; font-weight: 700; line-height: 1.15; }
.t-clockrow { margin-top: auto; display: flex; align-items: baseline; gap: 14px; }
.t-big { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums; opacity: .7; }
.t-big.run { opacity: 1; }
.t-big.low { color: #E5484D; }
#teach.dark .t-big.low { color: #FF8A7A; }
.t-ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 72px; gap: 12px; }
.t-ul div { display: flex; align-items: center; padding: 0 20px; border-radius: 12px; background: var(--tc); border: 1px solid var(--tl); font-size: 30px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.t-sharebar { display: none; align-items: center; gap: 16px; padding: 8px 18px; border-radius: 12px; border: 2px dashed var(--tl); min-height: 64px; }
.t-sharebar.has, #teach.gvm .t-sharebar { display: flex; }
.t-sharel { font-size: 22px; font-weight: 700; color: var(--tm); }
.t-share { flex: 1; font-size: 40px; font-weight: 700; color: #B57E00; }
#teach.dark .t-share { color: var(--yellow); }
.t-gvrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-yel { height: 44px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--yellow); color: #1E1A26; font-size: 18px; font-weight: 700; }
.t-note { font-size: 15px; line-height: 1.4; color: var(--tm); }

/* Exit ticket */
.t-exit { padding: 26px 48px; }
.t-exit h1 { font-size: 48px; }
.t-exl { display: flex; flex-direction: column; gap: 12px; }
.t-exr { display: flex; align-items: center; gap: 18px; padding: 14px 18px; }
.t-ext { flex: 1; min-width: 0; font-size: 24px; font-weight: 600; line-height: 1.3; display: flex; flex-direction: column; gap: 8px; }
.t-exbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--tl); }
.t-exbar i { display: block; transition: flex .3s var(--ease); }
.t-exbar .b0 { background: var(--to); } .t-exbar .b1 { background: var(--yellow); } .t-exbar .b2 { background: #E5484D; }
.t-exb { display: flex; gap: 8px; }
.t-vote { width: 132px; height: 80px; border-radius: 10px; border: 1px solid var(--tl); background: transparent; color: var(--tf); font-size: 20px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.t-vote b { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.t-vote.v0 b { color: var(--to); } .t-vote.v1 b { color: #B57E00; } .t-vote.v2 b { color: #E5484D; }
#teach.dark .t-vote.v1 b { color: var(--yellow); }
.t-vote:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
