/* ==========================================================================
   Trang giới thiệu công khai (/gioi-thieu) và bố cục BoCucCongKhai.
   Tham khảo phong cách trang chủ TheoryOJ: nền xanh đậm có lưới mờ, tiêu đề chữ đậm, nhấn xanh sáng, dải số liệu,
   các ô "bento"; giữ dấu ấn "Tín hiệu" của V2 (sóng, xanh ngọc). Trang luôn tối ở phần đầu, sáng ở phần nội dung
   (theo chế độ người dùng). Không có hiệu ứng hiện dần khi cuộn; rê chuột thì ô nhấc nhẹ.
   ========================================================================== */
.gt { --gt-nen-toi: #071a11; --gt-xanh: #0e2a1e; --gt-sang: #6ee7b7; --gt-ngoc: #5eead4; --gt-chu-toi: #dcebe2; --gt-phu-toi: #9fb9aa;
      min-height: 100vh; background: var(--nen-trang); color: var(--chu-chinh); }
.gt-trong { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.gt-bo-qua { position: absolute; left: -9999px; top: .5rem; z-index: 100; padding: .5rem .875rem; border-radius: 8px; background: #fff; color: #0e2a1e; }
.gt-bo-qua:focus { left: 1rem; }

/* Thanh trên */
.gt-thanh { position: sticky; top: 0; z-index: 50; border-top: 3px solid var(--gt-sang); background: rgba(7, 26, 17, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gt-thanh .gt-trong { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.gt-hieu { display: flex; align-items: center; gap: .625rem; color: #fff; text-decoration: none; }
.gt-hieu img { height: 2.5rem; width: auto; }
.gt-hieu span { display: flex; flex-direction: column; line-height: 1.2; }
.gt-hieu small { color: var(--gt-phu-toi); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gt-hieu strong { color: var(--gt-sang); font-family: var(--font-tieu-de); font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.gt-muc-luc { display: flex; gap: .25rem; margin-left: auto; }
.gt-muc-luc a { padding: .5rem .75rem; border-radius: 8px; color: var(--gt-chu-toi); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.gt-muc-luc a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Nút */
.gt-nut { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.875rem; padding: .625rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform var(--tg-nhanh) var(--duong-cong-mem), background-color var(--tg-nhanh) ease; }
.gt-nut .rzi { font-size: 1.125rem; transition: transform var(--tg-nhanh) var(--duong-cong-mem); }
.gt-nut:hover .rzi { transform: translateX(3px); }
.gt-nut:active { transform: translateY(1px); }
.gt-nut.nho { min-height: 2.5rem; padding: .375rem 1rem; font-size: .875rem; }
.gt-nut-chinh { background: var(--gt-sang); color: #052e1c; }
.gt-nut-chinh:hover { background: #a7f3d0; color: #052e1c; }
.gt-nut-vien { border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.gt-nut-vien:hover { border-color: var(--gt-sang); color: var(--gt-sang); }
.gt :focus-visible { outline: 2px solid var(--gt-sang); outline-offset: 3px; }

/* Phần đầu */
.gt-hero { position: relative; overflow: hidden; padding: 4.5rem 0 0; color: var(--gt-chu-toi);
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 32px,
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 32px 100%,
        radial-gradient(70rem 40rem at 10% -10%, #1f7a4f 0%, transparent 60%),
        radial-gradient(50rem 30rem at 100% 100%, #0f5e57 0%, transparent 60%),
        var(--gt-nen-toi); }
.gt-hero-luoi { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 3rem; padding-bottom: 3.5rem; }
.gt-chip { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: .25rem .75rem .25rem .375rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .8125rem; font-weight: 600; }
.gt-chip img { height: 1.5rem; width: auto; }
.gt-hero h1 { margin: 0 0 1.125rem; color: #fff; font-family: var(--font-tieu-de); font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
.gt-hero h1 span { display: block; color: var(--gt-sang); }
.gt-dan { max-width: 36rem; margin: 0 0 1.75rem; color: var(--gt-phu-toi); font-size: 1.0625rem; line-height: 1.65; }
.gt-hero .gt-dan { color: #c3d8cb; }
.gt-hero-nut { display: flex; flex-wrap: wrap; gap: .75rem; }
.gt-phuong-cham { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.gt-phuong-cham span { padding: .25rem .75rem; border-left: 2px solid var(--gt-ngoc); color: var(--gt-phu-toi); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Khung ứng dụng minh hoạ */
.gt-khung { position: relative; border: 1px solid rgba(94, 234, 212, .25); border-radius: 18px; background: #0b2219; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .02); overflow: hidden; }
.gt-khung-thanh { display: flex; align-items: center; gap: .375rem; padding: .625rem .875rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gt-khung-thanh i { width: .625rem; height: .625rem; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.gt-khung-thanh span { margin-left: .5rem; color: var(--gt-phu-toi); font-family: ui-monospace, Consolas, monospace; font-size: .75rem; }
.gt-khung-than { padding: 1.125rem 1.25rem 1.5rem; }
.gt-k-dau { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .625rem; }
.gt-k-dau span { padding: .0625rem .5rem; border-radius: 6px; background: rgba(94, 234, 212, .12); color: var(--gt-ngoc); font-size: .75rem; font-weight: 700; }
.gt-k-dau b { color: var(--gt-ngoc); font-family: var(--font-tieu-de); font-size: 1.5rem; }
.gt-k-dau small { margin-left: .25rem; color: var(--gt-phu-toi); font-size: .8125rem; font-weight: 500; }
.gt-k-tien-do { display: flex; gap: 3px; margin-bottom: .875rem; }
.gt-k-tien-do i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.gt-k-tien-do i.d { background: #4ade80; } .gt-k-tien-do i.s { background: #f87171; } .gt-k-tien-do i.h { background: var(--gt-ngoc); }
.gt-k-so { margin: 0 0 .25rem; color: var(--gt-phu-toi); font-size: .75rem; font-weight: 600; }
.gt-k-so em { margin-left: .375rem; padding: 0 .375rem; border-radius: 999px; background: rgba(147, 197, 253, .15); color: #93c5fd; font-style: normal; }
.gt-k-cau { margin: 0 0 .75rem; color: #fff; font-size: 1.0625rem; font-weight: 600; }
.gt-k-pa { display: flex; align-items: center; gap: .625rem; margin: 0 0 .375rem; padding: .5rem .625rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; color: var(--gt-phu-toi); font-size: .875rem; }
.gt-k-pa b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 6px; background: rgba(255, 255, 255, .08); font-size: .75rem; }
.gt-k-pa.dung { border-color: #4ade80; background: rgba(74, 222, 128, .1); color: #bbf7d0; font-weight: 600; }
.gt-k-pa.dung b { background: #4ade80; color: #052e1c; }
.gt-k-pa span { margin-left: auto; color: #4ade80; }
.gt-k-phan-hoi { margin-top: .75rem; padding: .625rem .75rem; border-left: 3px solid #4ade80; border-radius: 8px; background: rgba(74, 222, 128, .08); color: #c3d8cb; font-size: .8125rem; line-height: 1.5; }
.gt-k-phan-hoi strong { display: block; color: #bbf7d0; }
.gt-k-phan-hoi small { display: block; margin-top: .25rem; color: var(--gt-phu-toi); }
.gt-khung-song { display: block; width: 100%; height: 2rem; }
.gt-khung-song path { fill: none; stroke: rgba(94, 234, 212, .35); stroke-width: 1.5; }

/* Dải số liệu */
.gt-so-lieu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.gt-so-lieu > div { display: flex; flex-direction: column-reverse; gap: .25rem; padding: 1.5rem 1.25rem 1.75rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.gt-so-lieu > div:first-child { border-left: 0; padding-left: 0; }
.gt-so-lieu dd { margin: 0; color: #fff; font-family: var(--font-tieu-de); font-size: 2.25rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.gt-so-lieu dt { color: var(--gt-phu-toi); font-size: .8125rem; font-weight: 500; }

/* Mục nội dung */
.gt-muc { padding: 4.5rem 0; }
.gt-nhan-muc { display: flex; align-items: center; gap: .75rem; margin: 0 0 .75rem; color: var(--tin-hieu); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gt-nhan-muc::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.gt-muc h2 { margin: 0 0 1.75rem; font-family: var(--font-tieu-de); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.15; }
.gt-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gt-o { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.375rem; border: 1px solid var(--vien-the); border-radius: 18px; background: var(--nen-the); color: var(--chu-chinh); text-decoration: none; transition: transform var(--tg-nhanh) var(--duong-cong-mem), border-color var(--tg-nhanh) ease; }
.gt-o:hover { transform: translateY(-3px); border-color: var(--o-mau, var(--mau-chinh-sang)); color: var(--chu-chinh); }
.gt-o h3 { margin: .5rem 0 0; font-family: var(--font-tieu-de); font-size: 1.25rem; font-weight: 700; }
.gt-o p { margin: 0; color: var(--chu-phu); line-height: 1.55; }
.gt-o-bt { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: color-mix(in srgb, var(--o-mau) 14%, var(--nen-the)); color: var(--o-mau); }
.gt-o-bt .rzi { font-size: 1.5rem; }
.gt-o.khoa { --o-mau: var(--m-khoa); } .gt-o.dao-tao { --o-mau: var(--m-dao-tao); } .gt-o.hoc-vien { --o-mau: var(--m-hoc-vien); } .gt-o.ban-tin { --o-mau: var(--m-ban-tin); }
.gt-o.lon { grid-row: span 2; justify-content: flex-end; min-height: 22rem; border: 0; color: #dcebe2;
    background: radial-gradient(30rem 20rem at 100% 0%, rgba(94, 234, 212, .25), transparent 60%), linear-gradient(160deg, #0f5e57, #071a11); }
.gt-o.lon:hover { color: #dcebe2; }
.gt-o.lon h3 { color: #fff; font-size: 1.75rem; }
.gt-o.lon p { color: #b6d3c8; }
.gt-o.lon .gt-o-bt { margin-bottom: auto; background: rgba(94, 234, 212, .16); color: var(--gt-ngoc); }
.gt-o.lon ul { display: flex; flex-wrap: wrap; gap: .375rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.gt-o.lon li { padding: .125rem .625rem; border: 1px solid rgba(94, 234, 212, .3); border-radius: 999px; color: var(--gt-ngoc); font-size: .75rem; font-weight: 600; }

.gt-muc-toi { background: var(--gt-xanh); color: var(--gt-chu-toi); }
.gt-muc-toi h2 { color: #fff; }
.gt-muc-toi .gt-nhan-muc { color: var(--gt-ngoc); }
.gt-hai-cot { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.gt-buoc { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.gt-buoc li { display: flex; gap: 1rem; padding: 1rem 1.125rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.gt-buoc b { color: transparent; -webkit-text-stroke: 1.5px var(--gt-ngoc); font-family: var(--font-tieu-de); font-size: 2rem; line-height: 1; }
.gt-buoc span { display: flex; flex-direction: column; gap: .25rem; color: var(--gt-phu-toi); line-height: 1.55; }
.gt-buoc strong { color: #fff; font-size: 1.0625rem; }

.gt-luat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gt-luat > div { display: flex; flex-direction: column; gap: .375rem; padding: 1.25rem; border: 1px solid var(--vien-the); border-radius: 14px; background: var(--nen-the); }
.gt-luat .rzi { color: var(--tin-hieu); font-size: 1.75rem; }
.gt-luat strong { font-size: 1.0625rem; }
.gt-luat p { margin: 0; color: var(--chu-phu); font-size: .9375rem; line-height: 1.55; }
.gt-cuoi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.75rem 2rem; border-radius: 18px; background: linear-gradient(140deg, #0e2a1e, #1f5a3d); }
.gt-cuoi h2 { margin: 0; color: #fff; font-size: 1.5rem; }

.gt-chan { padding: 2rem 0; background: var(--gt-nen-toi); color: var(--gt-phu-toi); font-size: .875rem; }
.gt-chan .gt-trong { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.gt-chan p { max-width: 32rem; margin: 0; }

@media (max-width: 960px) {
    .gt-hero-luoi, .gt-hai-cot { grid-template-columns: 1fr; gap: 2rem; }
    .gt-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gt-o.lon { grid-column: 1 / -1; grid-row: auto; min-height: 16rem; }
    .gt-luat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gt-so-lieu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gt-so-lieu > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
    .gt-muc-luc { display: none; }
    .gt-thanh .gt-nut { margin-left: auto; }
    .gt-hieu small { display: none; }
    .gt-hero { padding-top: 2.5rem; }
    .gt-bento, .gt-luat { grid-template-columns: 1fr; }
    .gt-muc { padding: 3rem 0; }
    .gt-cuoi { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .gt-o, .gt-nut, .gt-nut .rzi { transition: none; } .gt-o:hover { transform: none; } }

/* ---------- Chuyển động (13/11) ----------
   1. Phần đầu: các dòng chữ trượt lên lần lượt khi vào trang; khung minh hoạ bay vào rồi lơ lửng; lưới nền trôi chậm; quầng sáng thở.
   2. Khung Ôn luyện tự chạy vòng 9 giây: con trỏ tới phương án B → bấm → tô xanh → hiện giải thích → làm lại.
   3. Phương châm sáng lần lượt như đèn tín hiệu; sóng dưới khung chạy liên tục.
   4. Các mục bên dưới hiện dần khi cuộn tới (gioi-thieu.js), con số đếm lên; ô phân hệ chỉ giới thiệu nên không có hiệu ứng rê chuột.
   Giảm chuyển động: tắt hết, nội dung đứng yên và hiện đầy đủ. */
.gt-hero { background-size: 100% 32px, 32px 100%, auto, auto, auto; animation: gt-luoi-troi 40s linear infinite; }
@keyframes gt-luoi-troi { to { background-position: 0 32px, 32px 0, 0 0, 0 0, 0 0; } }
.gt-hero::before { content: ""; position: absolute; top: -20%; left: -10%; width: 60%; height: 80%; border-radius: 50%; background: radial-gradient(circle, rgba(110, 231, 183, .16), transparent 65%); animation: gt-tho 7s ease-in-out infinite; pointer-events: none; }
@keyframes gt-tho { 50% { opacity: .45; transform: scale(1.12); } }
.gt-hero-chu > *, .gt-hero h1 > span { animation: gt-len .7s var(--duong-cong-mem) both; }
.gt-hero-chu > :nth-child(1) { animation-delay: .05s; }
.gt-hero h1 { animation-delay: .15s; }
.gt-hero h1 > span { animation-delay: .35s; }
.gt-hero-chu > :nth-child(3) { animation-delay: .5s; }
.gt-hero-chu > :nth-child(4) { animation-delay: .62s; }
.gt-hero-chu > :nth-child(5) { animation-delay: .74s; }
@keyframes gt-len { from { opacity: 0; transform: translateY(18px); } }
/* Khung chỉ bay vào một lần rồi đứng yên, thẳng hàng với cột chữ bên trái (trước đây lơ lửng lên xuống 8px nên trông bị lệch). */
.gt-khung { animation: gt-bay-vao .9s var(--duong-cong-mem) .3s both; }
@keyframes gt-bay-vao { from { opacity: 0; transform: translateX(40px) rotate(2deg); } }
@keyframes gt-lo-lung { 50% { transform: translateY(-8px); } }
.gt-khung-song path { stroke-dasharray: 14 10; animation: gt-song-chay 1.6s linear infinite; }
@keyframes gt-song-chay { to { stroke-dashoffset: -24; } }

/* Phương châm: bốn đèn sáng lần lượt */
.gt-phuong-cham span { transition: none; animation: gt-den 6s ease-in-out infinite; }
.gt-phuong-cham span:nth-child(2) { animation-delay: 1.5s; } .gt-phuong-cham span:nth-child(3) { animation-delay: 3s; } .gt-phuong-cham span:nth-child(4) { animation-delay: 4.5s; }
@keyframes gt-den { 0%, 30%, 100% { border-left-color: var(--gt-ngoc); color: var(--gt-phu-toi); } 8%, 20% { border-left-color: #fff; color: #fff; text-shadow: 0 0 12px rgba(94, 234, 212, .8); } }

/* Khung Ôn luyện tự chạy */
.gt-k-pa { position: relative; }
.gt-khung.chay .gt-k-pa.dung { animation: gt-chon 9s ease-in-out 1.2s infinite both; }
.gt-khung.chay .gt-k-pa.dung b { animation: gt-chon-b 9s ease-in-out 1.2s infinite both; }
.gt-khung.chay .gt-k-pa.dung span { animation: gt-hien-tat 9s ease-in-out 1.2s infinite both; }
.gt-khung.chay .gt-k-phan-hoi { animation: gt-hien-tat 9s ease-in-out 1.2s infinite both; }
.gt-khung.chay .gt-k-tien-do i.h { animation: gt-vach 9s ease-in-out 1.2s infinite both; }
@keyframes gt-chon {
    0%, 22% { border-color: rgba(255, 255, 255, .1); background: transparent; color: #9fb9aa; font-weight: 400; }
    28%, 36% { border-color: #5eead4; background: rgba(94, 234, 212, .1); color: #fff; font-weight: 600; }
    42%, 90% { border-color: #4ade80; background: rgba(74, 222, 128, .1); color: #bbf7d0; font-weight: 600; }
    100% { border-color: rgba(255, 255, 255, .1); background: transparent; color: #9fb9aa; font-weight: 400; } }
@keyframes gt-chon-b {
    0%, 22% { background: rgba(255, 255, 255, .08); color: #9fb9aa; }
    28%, 36% { background: #5eead4; color: #052e2b; }
    42%, 90% { background: #4ade80; color: #052e1c; }
    100% { background: rgba(255, 255, 255, .08); color: #9fb9aa; } }
@keyframes gt-hien-tat { 0%, 40% { opacity: 0; transform: translateY(6px); } 46%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes gt-vach { 0%, 40% { background: #5eead4; } 46%, 90% { background: #4ade80; } 100% { background: #5eead4; } }
/* Con trỏ chuột giả: đi tới phương án B, nhấn, rồi rời đi */
.gt-k-tro { position: absolute; top: 55%; left: 62%; width: 18px; height: 22px; opacity: 0; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M1 1v17l4.5-4.2 3 6.6 3-1.4-3-6.4H15z' fill='%23fff' stroke='%23071a11' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.gt-khung.chay .gt-k-tro { animation: gt-tro 9s ease-in-out 1.2s infinite both; }
@keyframes gt-tro {
    0% { opacity: 0; transform: translate(70px, 60px); }
    10% { opacity: 1; transform: translate(70px, 60px); }
    22% { opacity: 1; transform: translate(0, 0) scale(1); }
    26% { transform: translate(0, 0) scale(.82); }
    30% { transform: translate(0, 0) scale(1); }
    48% { opacity: 1; transform: translate(0, 0); }
    60%, 100% { opacity: 0; transform: translate(40px, 90px); } }

/* Hiện dần khi cuộn tới (chỉ khi script đã chạy) */
.gt-co-js .gt [data-hien] { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--duong-cong-mem) var(--tre, 0ms), transform .65s var(--duong-cong-mem) var(--tre, 0ms); }
.gt-co-js .gt [data-hien].da-hien { opacity: 1; transform: none; }

/* Ô phân hệ: chỉ để giới thiệu, không phải nút. Biểu tượng nảy nhẹ một lần khi xuất hiện; ô lớn có vòng sóng lan. */
.gt-o, .gt-o:hover { transform: none; border-color: var(--vien-the); cursor: default; }
.gt-o.lon, .gt-o.lon:hover { border-color: transparent; }
.gt-o.da-hien .gt-o-bt { animation: gt-nay .6s var(--duong-cong-mem) calc(var(--tre, 0ms) + .25s) both; }
@keyframes gt-nay { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: none; } }
.gt-o.lon .gt-o-bt { position: relative; }
.gt-o.lon .gt-o-bt::before, .gt-o.lon .gt-o-bt::after { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(94, 234, 212, .55); border-radius: 12px; animation: gt-song-lan 2.8s ease-out infinite; }
.gt-o.lon .gt-o-bt::after { animation-delay: 1.4s; }
@keyframes gt-song-lan { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
.gt-o.lon li { animation: gt-len .5s var(--duong-cong-mem) both; }
.gt-o.lon.da-hien li:nth-child(1) { animation-delay: .4s; } .gt-o.lon.da-hien li:nth-child(2) { animation-delay: .5s; } .gt-o.lon.da-hien li:nth-child(3) { animation-delay: .6s; }
.gt-o.lon.da-hien li:nth-child(4) { animation-delay: .7s; } .gt-o.lon.da-hien li:nth-child(5) { animation-delay: .8s; }
/* Các bước: số thứ tự viền rỗng được "rót" màu khi hiện */
.gt-buoc li.da-hien b { animation: gt-rot 1.2s ease-out calc(var(--tre, 0ms) + .3s) both; }
@keyframes gt-rot { from { color: transparent; } 60% { color: rgba(94, 234, 212, .35); } to { color: transparent; } }
.gt-luat .rzi { transition: transform .5s var(--duong-cong-mem); }
.gt-luat > div.da-hien .rzi { animation: gt-nay .6s var(--duong-cong-mem) calc(var(--tre, 0ms) + .2s) both; }
.gt-cuoi { position: relative; overflow: hidden; }
.gt-cuoi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%); transform: translateX(-100%); animation: gt-quet 5s ease-in-out 1s infinite; pointer-events: none; }
@keyframes gt-quet { 30%, 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
    .gt-hero, .gt-hero::before, .gt-hero-chu > *, .gt-hero h1 > span, .gt-khung, .gt-khung-song path, .gt-phuong-cham span, .gt-khung.chay *, .gt-o .gt-o-bt, .gt-o .gt-o-bt::before, .gt-o .gt-o-bt::after, .gt-o.lon li, .gt-buoc b, .gt-luat .rzi, .gt-cuoi::after { animation: none !important; }
    .gt-co-js .gt [data-hien] { opacity: 1; transform: none; transition: none; }
    .gt-k-tro { display: none; }
}
:root[data-giam-chuyen-dong] :is(.gt-hero, .gt-hero-chu > *, .gt-hero h1 > span, .gt-khung, .gt-khung-song path, .gt-phuong-cham span, .gt-khung.chay *, .gt-o .gt-o-bt, .gt-o.lon li, .gt-buoc b, .gt-luat .rzi) { animation: none !important; }
:root[data-giam-chuyen-dong] .gt-k-tro { display: none; }
.gt-hero > .gt-trong { position: relative; z-index: 1; }

/* ---------- Chế độ Sáng của trang giới thiệu (14/11) ----------
   Như TheoryOJ: phần đầu xanh đậm giữ nguyên ở cả hai chế độ; thanh trên, mục "Học trực tuyến" và chân trang đổi sáng/tối
   theo nút Sáng/Tối, để bấm là thấy đổi ngay trên màn hình đầu tiên. */
:root:not([data-giao-dien="toi"]) .gt-thanh { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--vien-the); }
:root:not([data-giao-dien="toi"]) .gt-thanh .gt-hieu { color: var(--chu-chinh); }
:root:not([data-giao-dien="toi"]) .gt-thanh .gt-hieu small { color: var(--chu-phu); }
:root:not([data-giao-dien="toi"]) .gt-thanh .gt-hieu strong { color: var(--mau-chinh); }
:root:not([data-giao-dien="toi"]) .gt-muc-luc a { color: var(--chu-chinh); }
:root:not([data-giao-dien="toi"]) .gt-muc-luc a:hover { background: var(--mau-chinh-nhat); color: var(--mau-chinh); }
:root:not([data-giao-dien="toi"]) .gt-thanh .gt-nut-chinh { background: var(--mau-chinh); color: #fff; }
:root:not([data-giao-dien="toi"]) .gt-thanh .gt-nut-chinh:hover { background: var(--mau-chinh-sang); color: #fff; }
:root:not([data-giao-dien="toi"]) .gt-thanh .nut-sang-toi { border-color: var(--vien-the); background: var(--nen-dai); }
:root:not([data-giao-dien="toi"]) .gt-thanh .nut-sang-toi button { color: var(--chu-phu); }
:root:not([data-giao-dien="toi"]) .gt-thanh .nut-sang-toi button[aria-pressed="true"] { background: var(--mau-chinh); color: #fff; }
:root:not([data-giao-dien="toi"]) .gt-thanh :focus-visible { outline-color: var(--mau-chinh-sang); }
:root:not([data-giao-dien="toi"]) .gt-muc-toi { background: #e6f1eb; color: var(--chu-chinh); }
:root:not([data-giao-dien="toi"]) .gt-muc-toi h2 { color: var(--chu-chinh); }
:root:not([data-giao-dien="toi"]) .gt-muc-toi .gt-nhan-muc { color: var(--tin-hieu); }
:root:not([data-giao-dien="toi"]) .gt-muc-toi .gt-dan { color: var(--chu-phu); }
:root:not([data-giao-dien="toi"]) .gt-buoc li { border-color: var(--vien-the); background: var(--nen-the); }
:root:not([data-giao-dien="toi"]) .gt-buoc strong { color: var(--chu-chinh); }
:root:not([data-giao-dien="toi"]) .gt-buoc span { color: var(--chu-phu); }
:root:not([data-giao-dien="toi"]) .gt-buoc b { -webkit-text-stroke-color: var(--tin-hieu); }
:root:not([data-giao-dien="toi"]) .gt-chan { background: #dcebe2; color: var(--chu-phu); }
:root:not([data-giao-dien="toi"]) .gt-chan .gt-hieu strong { color: var(--mau-chinh); }
.gt-thanh, .gt-muc-toi, .gt-chan { transition: background-color .3s ease, color .3s ease; }
@media (prefers-reduced-motion: reduce) { .gt-thanh, .gt-muc-toi, .gt-chan { transition: none; } }
