/* 20/11/2026 - anh Hanh: mo rong man hinh bai giang.
   Cot co + chat 80% (320 -> 256px), khe sat hon, thanh tren cung va chu tren nut 80%,
   ten bai chu chay cham, chu mo dau bai tu thu nho cho vua khung. */
@media (min-width: 861px) and (min-height: 521px) {
  body:not(.layout-phone) .app { grid-template-columns: minmax(0, 1fr) 50px 256px !important;
    gap: 6px !important; padding: 6px 6px 8px !important; }
  body:not(.layout-phone) .ctl .cbtn { width: 38px; height: 38px; font-size: 17px; }
  body:not(.layout-phone) .ctl .cbtn.hand-big { width: 44px; height: auto; }
  body:not(.layout-phone) .ctl .cbtn.hand-big small { font-size: 10px; }
  body:not(.layout-phone) .teacher-col { gap: 6px; }
}
/* Thanh tren cung: nut, o sao, dong ho, logo con 80% */
.top { gap: 10px; padding: 4px 10px; border-radius: 18px; }
.top .yct-nav-btns { gap: 6px; }
.top .yct-nav-btn { font-size: 12px; padding: 2px 8px; border-width: 2px; }
.top .pill { font-size: 15px; padding: 1px 10px; border-width: 2.5px; }
.top .pill small { font-size: 11.5px; }
.top .logo img, .top .rqx-logo-img { height: 38px !important; width: auto !important; }
.top .beta-badge, .top [class*="beta"] { transform: scale(.8); transform-origin: center; }
.lt-tag { font-size: 12.5px; border-width: 2.5px; }
.lt-zh { font-size: 21px; }
.lt-vi { font-size: 13px; }
/* Ten bai: chay chu cham khi dai hon cho trong */
.top .lesson-title { overflow: hidden; text-overflow: clip !important; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); }
.top .lesson-title .lt-chay { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.top .lesson-title.dang-chay .lt-chay { animation: lt-chay var(--lt-tg, 20s) linear infinite; padding-left: 12px; }
.top .lesson-title.dang-chay:hover .lt-chay { animation-play-state: paused; }
@keyframes lt-chay { 0%, 8% { transform: translateX(0); } 92%, 100% { transform: translateX(var(--lt-x, 0px)); } }
@media (prefers-reduced-motion: reduce) { .top .lesson-title.dang-chay .lt-chay { animation-duration: 60s; } }
/* Chu mo dau bai: JS tu tinh co chu (--hb-co) cho vua khung */
.stage .hello-big.vua-khung { font-size: var(--hb-co) !important; flex-wrap: wrap; justify-content: center; max-width: 94%; }
/* Thanh chang duoi khung bai: chu tren nut con 80% */
.path .st .lb { font-size: 12.8px; }
.path .st .mn { font-size: 80%; }
