/* ===== Sảnh Trò chơi "chơi thử ngay" (xem trước, chỉ chạy khi window.TOEX_MOI bật; games.js → renderHubMoi) =====
   Mọi bộ chọn bắt đầu bằng html.moi hoặc lớp gs- nên sảnh cũ (?moi=0) không bị ảnh hưởng.
   Giữ đúng Góc học tập: rừng #3A4A32, olive #5F6D45, kem #FBF6EA / #F6EDDB, viền #E2D8C0, cam nút #B25D2A; Be Vietnam Pro + Lora. */
html.moi body.gs-sanh .dash-main #gmHead:not(#hz):not(#hz) { display: none !important; }
html.moi #gmHub.gs-hub { display: block; margin: 0 0 44px; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--gs-forest); }
.gs-hub [hidden] { display: none !important; }
.gs-hub button, .gs-hub a.gs-btn { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.gs-hub h2, .gs-hub h3 { margin: 0; }

/* ---- nút dùng chung ---- */
.gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.gs-btn svg { width: 15px; height: 15px; flex: none; }
.gs-btn.pri { background: var(--gs-orange); color: #fff; box-shadow: 0 3px 0 var(--gs-orange-d), 0 10px 18px -10px rgba(178, 93, 42, .8); }
.gs-btn.pri:hover { background: #C06830; transform: translateY(-1px); }
.gs-btn.pri:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gs-orange-d); }
.gs-btn.light { background: var(--gs-cream); color: var(--gs-forest); box-shadow: 0 3px 0 #CFC2A4; }
.gs-btn.light:hover { background: #fff; }
.gs-btn.ghost { background: transparent; color: var(--gs-olive); border: 1px solid var(--gs-line); font-weight: 600; font-size: 13.5px; padding: 0 14px; }
.gs-btn.ghost:hover { background: var(--gs-cream2); }
.gs-hub :focus-visible, .gs-lbx :focus-visible { outline: 3px solid #E3A36F; outline-offset: 2px; }
.gs-link { min-height: 44px; padding: 0 8px; border: 0; background: none; color: #E9DFC6; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- màn đầu: Chơi thử + Hôm nay ---- */
.gs-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "mini lv" "mini qs" "mini deck"; grid-template-rows: auto auto 1fr; gap: 14px; align-items: start; margin-bottom: 26px; }
.gs-lv { grid-area: lv; } .gs-mini { grid-area: mini; } .gs-qs { grid-area: qs; } .gs-deckrow { grid-area: deck; }
.gs-lv, .gs-qs, .gs-deck-pill { background: rgba(255, 253, 246, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--gs-line); box-shadow: 0 10px 28px -20px rgba(58, 74, 50, .55); }
.gs-lv { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; }
.gs-lv-n { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gs-forest); color: var(--gs-cream); line-height: 1; }
.gs-lv-n small { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: -2px; }
.gs-lv-n b { font: 600 20px/1 "Lora", serif; }
.gs-lv-t { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: baseline; }
.gs-lv-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-lv-t span { font-size: 12px; color: var(--gs-mute); }
.gs-xp { grid-column: 1 / -1; height: 7px; margin-top: 6px; border-radius: 9px; background: rgba(95, 109, 69, .16); overflow: hidden; }
.gs-xp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8DA06A, var(--gs-olive)); }
.gs-streak { flex: none; display: flex; align-items: center; gap: 4px; padding-left: 12px; border-left: 1px solid var(--gs-line); color: var(--gs-mute); }
.gs-streak svg { width: 22px; height: 22px; fill: #C9C2B2; }
.gs-streak.on svg { fill: var(--gs-orange); }
.gs-streak b { font: 600 20px/1 "Lora", serif; color: var(--gs-forest); }
.gs-streak span { font-size: 12px; }

/* thẻ chơi thử: nền rừng, chữ kem, một câu hỏi sống */
.gs-mini { position: relative; overflow: hidden; border-radius: 26px; padding: 20px 22px 22px; color: var(--gs-cream); background: radial-gradient(120% 90% at 85% 0%, rgba(165, 190, 120, .26), transparent 60%), linear-gradient(165deg, #46593d, var(--gs-forest-d)); box-shadow: 0 26px 46px -28px rgba(30, 42, 24, .9), inset 0 1px 0 rgba(255, 255, 255, .12); min-height: 440px; display: flex; flex-direction: column; }
.gs-mini::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .035); pointer-events: none; }
.gs-mini-h { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-height: 30px; }
.gs-kick { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.gs-kick.hot { background: var(--gs-orange); color: #fff; }
.gs-kick.hot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: gsPulse 1.6s ease-in-out infinite; }
@keyframes gsPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.gs-dots { margin-left: auto; display: inline-flex; gap: 6px; }
.gs-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: background .3s, transform .3s; }
.gs-dots i.cur { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); background: transparent; }
.gs-dots i.ok { background: #8FD08A; } .gs-dots i.bad { background: #EE9A78; }
.gs-cnt { font-size: 12.5px; opacity: .72; min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.gs-q { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 14px 0; animation: gsIn .35s ease both; }
html.moi #gmHub .gs-q small { color: inherit !important; }
html.moi #gmHub .gs-lv-n small, html.moi #gmHub .gs-lv-n b { color: var(--gs-cream) !important; }
.gs-q small { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; opacity: .72; }
.gs-w-r { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; max-width: 100%; }
.gs-w { font: 600 clamp(42px, 6.4vw, 78px)/1.05 "Lora", Georgia, serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.gs-say { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--gs-cream); cursor: pointer; transition: background .15s; }
.gs-say:hover { background: rgba(255, 255, 255, .22); }
.gs-say svg { width: 20px; height: 20px; }
@keyframes gsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gs-opts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gs-opt { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 8px 14px; border: 0; border-radius: 16px; background: var(--gs-cream); color: var(--gs-forest); font-size: 16px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; box-shadow: 0 4px 0 #CFC2A4; transition: transform .14s, box-shadow .14s, background .2s, opacity .25s; animation: gsIn .4s ease both; }
.gs-opt:nth-child(2) { animation-delay: .05s; } .gs-opt:nth-child(3) { animation-delay: .1s; }
.gs-opt i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(58, 74, 50, .1); font: 700 12px/1 "Be Vietnam Pro", sans-serif; font-style: normal; }
.gs-opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #CFC2A4; background: #fff; }
.gs-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #CFC2A4; }
.gs-opt:disabled { cursor: default; }
.gs-opt.right { background: #DCEBD9; color: #25502F; box-shadow: 0 4px 0 #7DB486; } .gs-opt.right i { background: var(--gs-ok); color: #fff; }
.gs-opt.wrong { background: #F6D4C4; color: #7B2D27; box-shadow: 0 4px 0 #D98C7E; animation: gsShake .4s ease; } .gs-opt.wrong i { background: var(--gs-bad); color: #fff; }
.gs-opt.dim { opacity: .45; }
@keyframes gsShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.gs-fb { position: relative; z-index: 1; margin-top: 12px; }
.gs-fb-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14.5px; animation: gsIn .3s ease both; }
.gs-fb-t b { font-size: 16px; } .gs-fb-t.ok b { color: #BDE5B5; } .gs-fb-t.bad b { color: #F8C2AC; } .gs-fb-t span { opacity: .9; }
.gs-study { margin-top: 8px; animation: gsIn .35s ease .08s both; }
.gs-study .tu-card { padding: 10px 14px; }
.gs-study .tu-w { font-size: 18px; }
.gs-next-r { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.gs-auto { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.gs-auto i { display: block; height: 100%; background: #E3A36F; transform-origin: left; animation: gsAuto linear forwards; }
@keyframes gsAuto { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.gs-next { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* kết quả 5 câu */
.gs-mini.gs-fin { justify-content: center; text-align: center; }
.gs-res { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: gsIn .45s ease both; }
.gs-res-n { display: flex; align-items: baseline; gap: 6px; }
.gs-res-n b { font: 600 clamp(64px, 11vw, 96px)/1 "Lora", serif; }
.gs-res-n span { font-size: 18px; opacity: .8; }
.gs-res p { margin: 0 0 8px; max-width: 420px; font-size: 14.5px; line-height: 1.55; opacity: .9; }
.gs-res-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* nhiệm vụ: viên có tiến độ, chạm để xem chi tiết */
.gs-qs { padding: 12px 14px 14px; border-radius: 20px; }
.gs-qs h2 { margin: 0 2px 8px; font: 700 11.5px/1 "Be Vietnam Pro", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gs-mute); }
.gs-qrow { display: flex; flex-direction: column; gap: 8px; }
.gs-quest { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; min-height: 48px; padding: 8px 14px 9px; border: 1px solid var(--gs-line); border-radius: 16px; background: var(--gs-cream); color: var(--gs-forest); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.gs-quest:hover { background: #fff; }
.gs-q-t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-q-p { font-size: 12.5px; font-weight: 700; color: var(--gs-olive); font-variant-numeric: tabular-nums; }
.gs-q-b { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(95, 109, 69, .16); overflow: hidden; margin-top: 3px; }
.gs-q-b b { display: block; height: 100%; border-radius: inherit; background: var(--gs-olive); transition: width .6s; }
.gs-quest small { grid-column: 1 / -1; display: none; font-size: 12px; color: var(--gs-mute); }
.gs-quest.open .gs-q-t { white-space: normal; }
.gs-quest.open small { display: block; }
.gs-quest.done { background: #E6EEDC; border-color: #B8CBA2; } .gs-quest.done .gs-q-b b { background: var(--gs-ok); }

/* viên Bộ từ + Chơi tiếp */
.gs-deckrow { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-deck-pill { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 14px; border-radius: 18px; color: var(--gs-forest); text-align: left; cursor: pointer; transition: background .2s, transform .15s; }
.gs-deck-pill:hover { background: #fff; }
.gs-dp-l { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--gs-forest); color: var(--gs-cream); font-size: 11.5px; font-weight: 700; }
.gs-deck-pill b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-deck-pill em { flex: none; font-style: normal; font-size: 12px; color: var(--gs-mute); }
.gs-deck-pill svg { flex: none; width: 16px; height: 16px; color: var(--gs-mute); }
.gs-cont { flex: 1 1 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--gs-forest); color: var(--gs-cream); font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 var(--gs-forest-d); transition: transform .15s, background .15s; }
.gs-cont:hover { background: #4A5E3F; transform: translateY(-1px); }
.gs-cont svg { width: 14px; height: 14px; } .gs-cont span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* bảng Bộ từ: hộp giữa màn hình (máy tính), bảng trượt từ đáy (điện thoại) */
.gs-sheet-wrap { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gs-backdrop { position: absolute; inset: 0; background: rgba(30, 38, 26, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: gsFade .2s ease both; }
.gs-sheet { position: relative; width: min(560px, 100%); max-height: 88vh; max-height: 88dvh; overflow: auto; padding: 20px 20px 22px; border-radius: 24px; background: var(--gs-cream); border: 1px solid var(--gs-line); box-shadow: 0 30px 60px -20px rgba(20, 28, 16, .7); display: flex; flex-direction: column; gap: 14px; animation: gsPop .25s cubic-bezier(.2, .8, .2, 1) both; }
.gs-sheet-h { display: flex; align-items: flex-start; gap: 12px; }
.gs-sheet-h > div { flex: 1; min-width: 0; }
.gs-sheet-h b { display: block; font: 600 22px/1.2 "Lora", serif; }
.gs-sheet-h span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--gs-mute); }
.gs-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(58, 74, 50, .08); color: var(--gs-forest); cursor: pointer; }
.gs-x:hover { background: rgba(58, 74, 50, .16); } .gs-x svg { width: 18px; height: 18px; }
.gs-sheet .gm-deck-r { gap: 10px; }
.gs-sheet .gm-seg { max-width: 100%; overflow-x: auto; }
.gs-sheet .gm-seg button { min-height: 44px; white-space: nowrap; }
.gs-sheet .gm-sel { flex: 1 1 200px; } .gs-sheet .gm-sel select { width: 100%; max-width: none; min-height: 46px; }
.gs-sheet .gm-note { margin: 0; font-size: 12.5px; color: #8A4A1F; }
.gs-done { align-self: stretch; }
@keyframes gsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gsPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* bộ lọc kỹ năng */
.gs-filters { display: flex; gap: 8px; margin: 0 0 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.gs-filters::-webkit-scrollbar { display: none; }
.gs-chip { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--gs-line); border-radius: 99px; background: rgba(255, 253, 246, .85); color: var(--gs-forest); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.gs-chip:hover { background: #fff; }
.gs-chip.on { background: var(--gs-forest); border-color: var(--gs-forest); color: var(--gs-cream); box-shadow: 0 6px 14px -8px rgba(30, 42, 24, .8); }
.gs-chip:active { transform: scale(.96); }

/* mục và thẻ */
.gs-sec { margin-top: 22px; }
.gs-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 12px; }
.gs-sec-h h2 { font: 600 24px/1.2 "Lora", serif; }
.gs-sec-h span { font-size: 13px; color: var(--gs-mute); }
.gs-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #FFFDF6; border: 1px solid var(--gs-line); box-shadow: 0 12px 26px -20px rgba(58, 74, 50, .7); transition: transform .25s, box-shadow .25s; }
.gs-cover { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--gs-cream2); }
.gs-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s cubic-bezier(.15, .6, .2, 1), opacity .45s ease; }
.gs-prev { opacity: 0; }
.gs-card.prev-on .gs-prev { opacity: 1; }
.gs-time { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 99px; background: rgba(30, 38, 26, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 600; }
.gs-new { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 99px; background: var(--gs-cream); color: var(--gs-forest); font-size: 11px; font-style: normal; font-weight: 700; }
.gs-eye { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.gs-eye svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: rgba(30, 38, 26, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s; }
.gs-eye:hover svg, .gs-card.prev-on .gs-eye svg { background: var(--gs-orange); }
.gs-b { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.gs-b h3 { font: 600 18px/1.25 "Lora", serif; }
.gs-hook { margin: 0; font-size: 13.5px; line-height: 1.5; color: #55604A; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--gs-mute); margin-top: auto; }
.gs-sk { font-weight: 600; color: var(--gs-olive); }
.gs-rec { display: inline-flex; align-items: center; gap: 6px; }
.gs-rec .gm-stars-s i { width: 11px; height: 11px; }
.gs-act { display: flex; gap: 8px; margin-top: 4px; }
.gs-act .gs-btn.pri { flex: 1; }
.gs-act .gs-btn.ghost { min-height: 46px; }
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.gs-bigrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gs-big-c .gs-cover { aspect-ratio: 16 / 8.2; }
.gs-big-c .gs-b h3 { font-size: 21px; }
.gs-big-c .gs-hook { font-size: 14px; }
.gs-empty { margin: 24px 0; text-align: center; color: var(--gs-mute); }
@media (hover: hover) {
  .gs-card:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -22px rgba(58, 74, 50, .85); }
  .gs-card:hover .gs-prev { opacity: 1; }
  .gs-card:hover .gs-cover img { transform: scale(1.07); }
}
.gs-card.prev-on .gs-cover img { transform: scale(1.04); }

/* xem trước lối chơi trên điện thoại */
.gs-lbx { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
.gs-lbx-bg { position: absolute; inset: 0; background: rgba(30, 38, 26, .72); animation: gsFade .2s ease both; }
.gs-lbx-c { position: relative; width: min(520px, 100%); max-height: 92dvh; overflow: auto; padding: 12px 12px 16px; border-radius: 22px; background: #FBF6EA; color: #3A4A32; display: flex; flex-direction: column; gap: 12px; animation: gsPop .25s ease both; }
.gs-lbx-c > .gs-x { position: absolute; right: 6px; top: 6px; z-index: 2; background: rgba(30, 38, 26, .7); color: #fff; }
.gs-lbx-c img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 14px; background: #F6EDDB; display: block; }
.gs-lbx-t { padding: 0 4px; } .gs-lbx-t h3 { margin: 0; font: 600 20px/1.25 "Lora", serif; } .gs-lbx-t p { margin: 4px 0 6px; font-size: 14px; line-height: 1.5; color: #55604A; } .gs-lbx-t span { font-size: 12.5px; font-weight: 600; color: #5F6D45; }

/* ---- máy tính nhỏ / máy tính bảng ---- */
@media (max-width: 1100px) { .gs-w { font-size: clamp(40px, 5.6vw, 60px); } }
@media (max-width: 860px) {
  .gs-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lv" "mini" "qs" "deck"; grid-template-rows: none; gap: 10px; margin-bottom: 18px; }
  .gs-mini { min-height: 0; padding: 16px 16px 18px; border-radius: 24px; }
  .gs-opts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gs-opt { min-height: 52px; justify-content: flex-start; text-align: left; padding: 8px 14px; }
  .gs-q { margin: 10px 0 12px; }
  .gs-w { font-size: 44px; }
  .gs-lv { padding: 8px 14px; border-radius: 18px; }
  .gs-lv-n { width: 40px; height: 40px; } .gs-lv-n b { font-size: 17px; } .gs-lv-n small { font-size: 8px; }
  .gs-qrow { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 2px; scrollbar-width: none; }
  .gs-qrow::-webkit-scrollbar { display: none; }
  .gs-quest { flex: 0 0 min(236px, 72%); scroll-snap-align: start; align-self: flex-start; }
  .gs-sheet-wrap { align-items: flex-end; padding: 0; }
  .gs-sheet { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); animation: gsUp .28s cubic-bezier(.2, .8, .2, 1) both; }
  .gs-bigrow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .gs-bigrow::-webkit-scrollbar { display: none; }
  .gs-bigrow .gs-card { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
  .gs-big-c .gs-cover { aspect-ratio: 5 / 3; }
  .gs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gs-sec-h h2 { font-size: 21px; }
}
@media (max-width: 860px) { @keyframes gsUp { from { transform: translateY(100%); } to { transform: none; } } }
@media (max-width: 520px) {
  .gs-b { padding: 10px 10px 12px; gap: 6px; }
  .gs-b h3 { font-size: 15.5px; }
  .gs-hook { font-size: 12.5px; }
  .gs-act { flex-direction: column; gap: 6px; }
  .gs-act .gs-btn { width: 100%; min-height: 44px; }
  .gs-act .gs-btn.ghost { min-height: 44px; font-size: 13px; }
  .gs-meta { font-size: 11.5px; }
  .gs-big-c .gs-b { padding: 14px; } .gs-big-c .gs-b h3 { font-size: 19px; } .gs-big-c .gs-hook { font-size: 13.5px; }
  .gs-big-c .gs-act { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-hub *, .gs-lbx * { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .gs-card:hover, .gs-card:hover .gs-cover img { transform: none; }
  .gs-auto i { animation: none; transform: scaleX(.5); }
}

/* các luật chung của Góc học tập (goc-*.css) tô nền kính cho tiêu đề và thanh lọc: chặn lại ở đây */
html.moi #gmHub .gs-filters, html.moi #gmHub .gs-sec-h { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.moi #gmHub .gs-sec-h { padding: 0 2px !important; }
html.moi #gmHub .gs-filters { padding: 4px 2px 8px !important; }
html.moi #gmHub .gs-qs h2 { font-family: "Be Vietnam Pro", system-ui, sans-serif !important; font-size: 11.5px !important; font-weight: 700 !important; }
html.moi #gmHub .gs-sec-h h2 { font-family: "Lora", Georgia, serif !important; }
html.moi #gmHub .gs-fb-t b { font-size: 16px; }
html.moi #gmHub .gs-fb-t.ok b { color: #BDE5B5 !important; } html.moi #gmHub .gs-fb-t.bad b { color: #F8C2AC !important; }
html.moi #gmHub .gs-fb-t span { color: var(--gs-cream) !important; }
html.moi #gmHub .gs-study .tu-card { background: #FBF6EA !important; border: 1px solid #E2D8C0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; color: #3A4A32 !important; }
html.moi #gmHub .gs-study .tu-card :is(p, div, span, b, i) { color: inherit; }
html.moi #gmHub .gs-study .tu-en b { background: #F6D9C0; color: #6F3714 !important; }
@media (max-width: 860px) {
  .gs-study .tu-vi, .gs-study .tu-ipa { display: none; }
  .gs-study .tu-card { padding: 8px 12px; }
  .gs-fb { margin-top: 8px; }
  .gs-next-r { margin-top: 8px; }
}
html.moi #gmHub .gs-res-n b, html.moi #gmHub .gs-res-n span, html.moi #gmHub .gs-res p { color: var(--gs-cream) !important; }
html.moi #gmHub .gs-mini .gs-cnt, html.moi #gmHub .gs-mini .gs-kick { color: inherit; }
html.moi #gmHub .gs-kick.hot { color: #fff !important; }
html.moi #gmHub .gs-sheet { background: #FBF6EA !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

html.moi #gmHub.gs-hub, .gs-lbx { --gs-forest: #3A4A32; --gs-forest-d: #2B3825; --gs-olive: #5F6D45; --gs-cream: #FBF6EA; --gs-cream2: #F6EDDB; --gs-line: #E2D8C0; --gs-orange: #B25D2A; --gs-orange-d: #8C4520; --gs-ok: #3F7D4E; --gs-bad: #B4413B; --gs-mute: #6D7658; }

/* ===== 20261118ux1: sửa theo đánh giá UX – thấy ngay hàng thẻ trò đầu tiên, chữ phụ rõ hơn ===== */
html.moi #gmHub.gs-hub, .gs-lbx { --gs-mute: #55603F; }
.gs-hook { font-size: 14px; line-height: 1.45; color: #3F4A36; }
.gs-meta { font-size: 13px; }
.gs-meta-t { margin: -2px 0 0; gap: 2px 8px; }
.gs-meta-r { margin-top: auto; }
.gs-meta .gs-dur { padding: 1px 9px; border: 1px solid #CDBF9F; border-radius: 99px; font-weight: 600; color: #46522F; white-space: nowrap; }
.gs-meta { column-gap: 6px; }
.gs-meta-t .gs-sk { color: #46522F; }
.gs-time { display: none; }
.gs-new { font-size: 12px; }
.gs-lv-t span, .gs-streak span, .gs-deck-pill em, .gs-q-p, .gs-quest small { font-size: 12.5px; }
.gs-dp-l { font-size: 12px; }
.gs-sec-h span { font-size: 14px; }
.gs-lbx-t span { font-size: 13px; }
[id="gsQuick"], .gs-sec[data-sec="big"], .gs-filters { scroll-margin-top: 76px; }

/* máy tính: gọn phần đầu để lộ hàng thẻ trò lớn đầu tiên ngay màn đầu */
@media (min-width: 861px) {
  .gs-top { gap: 12px; margin-bottom: 14px; }
  .gs-mini { padding: 16px 22px 18px; min-height: 0; }
  .gs-q { margin: 8px 0 10px; }
  .gs-w { font-size: clamp(38px, 4.2vw, 56px); }
  .gs-opt { min-height: 56px; }
  .gs-lv { padding: 8px 14px; }
  .gs-qs { padding: 10px 12px 12px; }
  .gs-qs h2 { margin-bottom: 6px; }
  .gs-qrow { flex-direction: row; gap: 8px; }
  .gs-quest { flex: 1 1 0; min-width: 0; align-self: stretch; padding: 8px 10px 9px; }
  .gs-q-t { white-space: normal; font-size: 13px; line-height: 1.3; }
  html.moi #gmHub .gs-filters { padding: 2px 2px 4px !important; }
  .gs-sec { margin-top: 12px; }
  .gs-sec-h { margin-bottom: 10px; }
  .gs-bigrow { gap: 16px; }
  .gs-big-c { flex-direction: row; }
  .gs-big-c .gs-cover { flex: 0 0 41%; aspect-ratio: auto; min-height: 196px; }
  .gs-big-c .gs-b { padding: 14px 16px; gap: 6px; justify-content: center; }
  .gs-big-c .gs-b h3 { font-size: 20px; }
  .gs-big-c .gs-hook { -webkit-line-clamp: 3; line-clamp: 3; }
  .gs-big-c .gs-act { margin-top: 6px; }
}

/* điện thoại: Chơi thử một câu lên đầu, kế đó bộ lọc và danh sách trò (mỗi trò một hàng, ảnh bên trái); cấp độ, nhiệm vụ, bộ từ xuống sau */
@media (max-width: 860px) {
  html.moi #gmHub.gs-hub { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .gs-top { display: contents; }
  .gs-mini { order: 1; padding: 14px 14px 14px; border-radius: 22px; }
  html.moi #gmHub .gs-filters { order: 2; padding: 0 !important; margin: 0; }
  .gs-sec[data-sec="big"] { order: 3; } .gs-lv { order: 4; } .gs-qs { order: 5; } .gs-deckrow { order: 6; }
  .gs-sec[data-sec="quick"] { order: 7; } .gs-empty { order: 8; }
  .gs-sec { margin-top: 4px; }
  .gs-sec-h { margin-bottom: 8px; }
  .gs-sec[data-sec="big"] .gs-sec-h span { display: none; }
  .gs-mini-h { min-height: 26px; }
  .gs-q { margin: 6px 0 8px; }
  .gs-w { font-size: 40px; }
  .gs-say { width: 44px; height: 44px; }
  .gs-opts { gap: 6px; }
  .gs-opt { min-height: 46px; padding: 6px 14px; }
  .gs-qrow { scroll-snap-type: x mandatory; }
  .gs-quest { flex: 0 0 min(236px, 80%); }
  .gs-bigrow, .gs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; overflow: visible; padding: 0; }
  .gs-bigrow .gs-card { flex: none; }
  .gs-card { flex-direction: row; border-radius: 18px; }
  .gs-card .gs-cover, .gs-big-c .gs-cover { flex: 0 0 116px; aspect-ratio: auto; min-height: 100%; }
  .gs-card .gs-b, .gs-big-c .gs-b { padding: 10px 12px 12px; gap: 5px; min-width: 0; }
  .gs-card .gs-b h3, .gs-big-c .gs-b h3 { font-size: 17px; }
  .gs-hook, .gs-big-c .gs-hook { font-size: 14px; -webkit-line-clamp: 3; line-clamp: 3; }
  .gs-meta { font-size: 12.5px; }
  .gs-act, .gs-big-c .gs-act { flex-direction: row; gap: 8px; margin-top: 4px; }
  .gs-act .gs-btn { width: auto; }
  .gs-act .gs-btn.pri { flex: 1 1 auto; min-height: 44px; }
  .gs-act .gs-btn.ghost { flex: none; min-height: 44px; font-size: 13.5px; padding: 0 12px; }
  .gs-eye { right: 0; top: 0; }
  .gs-eye svg { width: 28px; height: 28px; padding: 6px; }
  .gs-big-c .gs-new { display: none; }
  .gs-new { left: 6px; top: auto; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ===== k12: một nút chính mỗi màn – chỉ thẻ trò lớn đầu tiên dùng nút cam đặc, các thẻ khác nút viền (rê/chạm mới đặc) ===== */
.gs-card:not(.gs-big-c:first-child) .gs-btn.pri { background: #FFFDF8; color: var(--gs-orange-d); border: 2px solid var(--gs-orange); box-shadow: none; }
.gs-card:not(.gs-big-c:first-child) .gs-btn.pri svg { fill: currentColor; }
.gs-card:not(.gs-big-c:first-child) .gs-btn.pri:hover, .gs-card:not(.gs-big-c:first-child) .gs-btn.pri:focus-visible { background: var(--gs-orange); color: #fff; }
.gs-btn.ghost { border-color: #A99B78; }
/* điện thoại: giữ chủ thể của bìa Canva trong khung hẹp; hiện lại nhãn thể loại (gọn, xuống dòng được) */
@media (max-width: 860px) {
  .gs-big-c[data-id="hanh-trinh"] .gs-cover img { object-position: 14% 50%; }
  .gs-big-c[data-id="phong-van"] .gs-cover img { object-position: 6% 50%; }
  .gs-big-c[data-id="thoat-phong"] .gs-cover img { object-position: 12% 50%; }
  .gs-big-c[data-id="van-bai"] .gs-cover img { object-position: 4% 50%; }
  .gs-big-c .gs-new { display: block; left: 5px; right: 5px; bottom: 5px; max-width: none; white-space: normal; overflow: visible; font-size: 11.5px; line-height: 1.25; padding: 3px 6px; text-align: center; }
}
/* lớp kính chung (html.gb …) ép nền/viền trắng có !important – nêu lại cho nút viền của sảnh */
html #gmHub.gs-hub .gs-card:not(.gs-big-c:first-child) .gs-btn.pri { background: #FFFDF8 !important; border: 2px solid #B25D2A !important; color: #8C4520 !important; box-shadow: none !important; }
html #gmHub.gs-hub .gs-card:not(.gs-big-c:first-child) .gs-btn.pri:hover { background: #B25D2A !important; color: #fff !important; }
html #gmHub.gs-hub .gs-btn.ghost { border: 1px solid #A99B78 !important; }
@media (max-width: 860px) {
  .gs-big-c .gs-new { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 11px; }
}
/* k12: viền chip lọc, nhãn thời lượng, nút Tuỳ chọn đạt 3:1; chữ phụ ≥ 12px */
html #gmHub.gs-hub .gs-chip:not(.on) { border-color: #978C6D !important; }
html #gmHub.gs-hub .gs-meta .gs-dur { border-color: #978C6D; }
html #gmHub.gs-hub .gs-btn.ghost { border-color: #8A7F62 !important; }
html.moi #gmHub .gs-qs h2 { font-size: 12px !important; }
.gs-lv-n small { font-size: 10px; letter-spacing: .06em; }
@media (max-width: 860px) { .gs-lv-n small { font-size: 9.5px; } .gs-big-c .gs-new { font-size: 12px; } }
html #gmHub.gs-hub .gs-chip:not(.on) { border-color: #857A5D !important; }

/* ===== ux2: điểm bắt đầu rõ, nút không xuống dòng, danh sách trò lớn gọn trên điện thoại ===== */
.gs-btn { white-space: nowrap; }
.gs-act { gap: 10px; flex-wrap: nowrap; }
.gs-act .gs-btn.pri { min-width: 0; padding: 0 14px; }
.gs-act .gs-btn.ghost { padding: 0 14px; }
.gs-goiy { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 12px; border-radius: 99px; background: var(--gs-orange-d); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.gs-goiy::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FFE2B8; }
.gs-card.gs-feat { border: 2.5px solid var(--gs-orange); box-shadow: 0 14px 30px -14px rgba(178, 93, 42, .65), 0 0 0 5px rgba(178, 93, 42, .12); }
.gs-feat .gs-b h3 { font-size: 23px; }
.gs-feat .gs-btn.pri { min-height: 50px; font-size: 16px; }
.gs-more { display: none; }
@media (min-width: 861px) {
  .gs-grid { grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
}
@media (max-width: 860px) {
  .gs-bigrow:not(.all) .gs-card:nth-child(n+5) { display: none; }
  .gs-more { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
  .gs-more[hidden] { display: none; }
  .gs-more-b { width: 100%; min-height: 48px; font-size: 15px; font-weight: 700; color: var(--gs-forest); border: 2px solid var(--gs-forest); border-radius: 14px; background: rgba(255, 253, 246, .9); }
  .gs-more-l { min-height: 44px; border: 0; background: none; color: var(--gs-orange-d); font-weight: 700; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .gs-goiy { font-size: 12.5px; }
  .gs-feat .gs-b h3 { font-size: 19px; }
}
@media (max-width: 860px) { .gs-act .gs-btn.pri { padding: 0 8px; gap: 6px; } .gs-act .gs-btn.ghost { padding: 0 10px; } }
/* k14: thẻ trò lớn – nội dung canh giữa theo chiều dọc (không còn khoảng hở giữa tên trò và dòng kỹ năng); dòng kỹ năng/thời lượng 14px */
.gs-big-c .gs-b { justify-content: center; }
.gs-big-c .gs-meta { margin-top: 0; }
html #gmHub.gs-hub .gs-meta { font-size: 14px; }
html #gmHub.gs-hub .gs-meta .gs-dur { font-size: 13.5px; padding: 1px 10px; }
@media (max-width: 860px) { html #gmHub.gs-hub .gs-meta { font-size: 14px; } }
@media (max-width: 860px) {
  .gs-bigrow.all .gs-card:nth-child(n+5) { animation: gs-hien-them .28s ease both; }
}
@keyframes gs-hien-them { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gs-bigrow.all .gs-card:nth-child(n+5) { animation: none; } }

/* ===== ux3: điện thoại – thanh chuyển nhanh Trò lớn | Trò nhanh dưới bộ lọc; cấp độ, nhiệm vụ, bộ từ xuống sau Trò nhanh. Máy tính – chữ thẻ trò lớn dễ quét ===== */
.gs-jump { display: none; }
@media (max-width: 860px) {
  .gs-jump { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .gs-jump button { min-height: 44px; border: 1.5px solid #857A5D; border-radius: 14px; background: rgba(255, 253, 246, .92); color: var(--gs-forest); font-size: 15px; font-weight: 700; cursor: pointer; }
  .gs-jump button::after { content: " \2193"; color: var(--gs-orange-d); }
  .gs-jump button[hidden] { display: none; }
  .gs-jump:has(button[hidden]) { grid-template-columns: 1fr; }
  .gs-sec[data-sec="big"] { order: 4; } .gs-sec[data-sec="quick"] { order: 5; } .gs-empty { order: 6; }
  .gs-lv { order: 7; margin-top: 10px; } .gs-qs { order: 8; } .gs-deckrow { order: 9; }
}
@media (min-width: 861px) {
  html #gmHub.gs-hub .gs-big-c .gs-hook { font-size: 15px; line-height: 1.45; color: #2F3828; -webkit-line-clamp: 2; line-clamp: 2; }
  html #gmHub.gs-hub .gs-big-c .gs-sk { font-size: 14.5px; font-weight: 700; color: #3E4A2A; }
}

/* ===== 20261119a1: tiêu đề phần "Trò chơi lớn" / "Trò nhanh" có đế đọc được trên nền tranh (sáng: kem đặc, tối: rừng đậm); chữ ≥ 4.5:1 ở mọi nền ===== */
html #gmHub.gs-hub .gs-sec > .gs-sec-h { width: fit-content; max-width: 100%; box-sizing: border-box; padding: 7px 14px !important; border-radius: 14px; background: rgba(251,246,234,.95) !important; border: 1px solid rgba(205,191,159,.85) !important; box-shadow: 0 2px 12px rgba(30,40,25,.16) !important; -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important; }
html #gmHub.gs-hub .gs-sec > .gs-sec-h span { color: #46522F; }
html.gb.gb-toi #gmHub.gs-hub .gs-sec > .gs-sec-h { background: rgba(26,32,23,.92) !important; border-color: rgba(238,235,226,.18) !important; box-shadow: 0 2px 12px rgba(0,0,0,.3) !important; }

/* b1: nút "Xem cả … trò lớn" – nền kem đặc để đọc được trên mọi hình nền (trước đây .gs-btn.ghost làm nó trong suốt) */
html #gmHub.gs-hub .gs-btn.ghost.gs-more-b { background: #FFFDF6 !important; color: #2F3E22 !important; border: 2px solid #2F3E22 !important; box-shadow: 0 3px 0 rgba(47, 62, 34, .28); }
html #gmHub.gs-hub .gs-btn.ghost.gs-more-b:hover, html #gmHub.gs-hub .gs-btn.ghost.gs-more-b:focus-visible { background: #fff !important; }
html #gmHub.gs-hub .gs-more-l { background: #FFFDF6; border-radius: 12px; padding: 0 14px; }
