/* Tab game "Xóm Checki" (đợt 1). Mọi lớp mang tiền tố x- để không đụng lớp có sẵn của app. */
body[data-trang="xom"] { --art: #FFC46B; }

.x-ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* ----- Thanh đầu trang: tôi là ai, có gì ----- */
.x-dau { display: flex; align-items: center; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap; background: var(--the); border: 2px solid var(--vien); border-radius: var(--bo-lon); padding: 10px 16px; box-shadow: var(--sang); }
.x-toi { display: flex; align-items: center; gap: 12px; min-width: 0; }
.x-toi > div { display: grid; gap: 2px; min-width: 150px; }
.x-toi b { font-family: var(--dau); font-size: 20px; line-height: 1.1; }
.x-av { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #26346F, #0B1235 72%); border: 2px solid var(--art); object-fit: cover; flex: none; }
.x-cap { font-family: var(--dau); font-weight: 600; font-size: 14px; color: var(--art); }
.x-kn, .x-thanh { height: 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 16%, transparent); overflow: hidden; }
.x-kn i, .x-thanh i { display: block; height: 100%; width: calc(var(--pt, 0) * 1%); border-radius: 999px; background: linear-gradient(90deg, var(--bac-ha), var(--art)); transition: width .5s; }
.x-vi { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; font-size: 15.5px; }
.x-vi > * { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.x-vi b { font-family: var(--dau); font-size: 19px; }
.x-vi-tui { text-decoration: none; color: var(--nen2); background: var(--art); padding: 3px 12px; border-radius: 999px; font-weight: 700; }

.x-muc { display: flex; gap: 7px; flex-wrap: nowrap; overflow-x: auto; margin: 14px 0 18px; padding-bottom: 4px; scrollbar-width: thin; }
.x-muc a, .x-muc button { flex: none; min-height: 38px; padding: 5px 14px; border: 2px solid var(--vien); border-radius: 999px; background: rgba(10, 18, 48, .9); color: var(--ink); font-family: var(--dau); font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.x-muc a.chon, .x-muc button.chon { background: var(--art); color: var(--nen2); border-color: var(--art); box-shadow: 0 0 16px color-mix(in srgb, var(--art) 45%, transparent); }
.x-muc.x-nho { margin: 0 0 12px; }
/* ===== Cả tab là một màn chơi: thanh nổi trên cảnh, dòng mời, tấm chức năng phủ lên cảnh ===== */
.x-choi { margin-top: -6px; }
.x-hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.x-hud > * { pointer-events: auto; }
.x-hud-tren { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.x-hud-toi { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); background: rgba(6, 11, 31, .66); border: 1.5px solid color-mix(in srgb, var(--art) 60%, transparent); border-radius: 999px; padding: 2px 11px 2px 2px; }
.x-hud-toi .x-av { width: 34px; height: 34px; border-width: 1.5px; }
.x-hud-toi span { display: grid; gap: 3px; min-width: 52px; }
.x-hud-toi b { font: 700 12.5px/1 var(--dau); color: var(--art); }
.x-hud-toi .x-kn { display: block; height: 5px; }
.x-hud-vi { display: inline-flex; align-items: center; gap: 4px; background: rgba(6, 11, 31, .66); border-radius: 999px; padding: 5px 10px; font: 700 14.5px/1 var(--dau); white-space: nowrap; }
.x-hud-vi .x-ic { width: 16px; height: 16px; }
.x-hud-xt { margin-left: auto; text-decoration: none; white-space: nowrap; font: 600 11.5px/1 var(--dau); color: var(--nen2); background: color-mix(in srgb, var(--art) 88%, #fff); border-radius: 999px; padding: 5px 9px; }
.x-hud-hang { display: flex; gap: 6px; align-self: stretch; justify-content: flex-start; }
.x-hud-nut { position: relative; flex: 1 1 0; min-width: 0; max-width: 76px; min-height: 0; display: grid; justify-items: center; align-content: start; gap: 1px; padding: 4px 2px 4px; border-radius: 13px; background: rgba(6, 11, 31, .64); border: 1.5px solid color-mix(in srgb, var(--ink) 24%, transparent); color: var(--ink); text-decoration: none; font: inherit; box-shadow: none; cursor: pointer; }
.x-hud-nut:hover { background: rgba(20, 30, 70, .8); transform: none; box-shadow: none; }
.x-hud-nut img, .x-hud-nut svg, .x-hud-nut .x-hud-chu { width: 30px; height: 30px; object-fit: contain; }
.x-hud-chu { display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--art) 30%, transparent); font: 800 15px/1 var(--dau); }
.x-hud-nut b { font: 600 10.5px/1.1 var(--dau); letter-spacing: 0; white-space: nowrap; max-width: 100%; }
@media (max-width: 420px) { .x-hud { padding: 6px; } .x-hud-hang { gap: 4px; justify-content: space-between; } .x-hud-nut { padding: 4px 0; } .x-hud-nut b { font-size: 9.5px; letter-spacing: -.2px; } }
.x-hud-nut.co { border-color: var(--art); box-shadow: 0 0 14px color-mix(in srgb, var(--art) 55%, transparent); animation: x-nhun 1.5s ease-in-out infinite; }
.x-hud-nut.khoa { opacity: .82; }
.x-cham { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #FF5A7A; color: #fff; font: 700 11px/18px var(--dau); font-style: normal; text-align: center; }
@keyframes x-nhun { 50% { transform: translateY(-3px); } }
/* Màn chạy nhảy: ô đếm giọt sáng ở góc dưới cảnh, dòng chỉ cách chơi */
.x-giot { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(6, 11, 31, .66); border: 1.5px solid color-mix(in srgb, #8FF3FF 55%, transparent); font: 700 15px/1 var(--dau); color: #fff; pointer-events: none; }
.x-giot svg { width: 20px; height: 20px; }
.x-choi-loi { margin: 8px 0 0; }
/* Dòng mời: việc đáng làm nhất lúc này */
#x-goi:empty { display: none; }
.x-goi-nut { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; margin: 8px 0 0; padding: 7px 16px; border: 0; border-radius: var(--bo-lon); background: var(--art); color: var(--nen2); text-decoration: none; font: inherit; cursor: pointer; box-shadow: 0 0 20px color-mix(in srgb, var(--art) 40%, transparent); animation: x-tho 2.2s ease-in-out infinite; }
.x-goi-nut:hover { background: color-mix(in srgb, var(--art) 84%, #fff); transform: none; }
.x-goi-nut b { font: 800 17.5px/1.15 var(--dau); white-space: nowrap; }
.x-goi-nut span { font-size: 13.5px; font-weight: 600; line-height: 1.25; opacity: .86; text-align: right; }
@keyframes x-tho { 50% { box-shadow: 0 0 34px color-mix(in srgb, var(--art) 75%, transparent); } }
body.tinh .x-hud-nut.co, body.tinh .x-goi-nut { animation: none; }
/* Đang ngồi trong một ván Ma Sói: ẩn hàng nút và dòng mời; dải báo pha của ván nằm dưới dòng hồ sơ */
.x-choi .x-soi-tren { top: 104px; }
.x-choi.dang-van .x-soi-tren { top: 52px; }
.x-choi.dang-van .x-hud-hang, .x-choi.dang-van #x-goi { display: none; }
.x-choi .x-soi-tin { top: 40%; }
/* Tấm chức năng phủ lên cảnh */
.x-tam { position: fixed; z-index: 4; left: 0; right: 0; top: var(--x-tren, 62px); bottom: var(--x-duoi, 0px); display: flex; justify-content: center; background: rgba(6, 11, 31, .94); animation: x-tam-len .18s ease-out both; }   /* không làm mờ nền: cảnh phía sau vẫn chạy, làm mờ thì điện thoại phải tính lại ở mỗi khung hình, rất nặng */
.x-tam[hidden] { display: none; }
.x-tam-khung { width: min(100%, 1040px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 10px 16px 40px; }
.x-tam-dau { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; height: 0; pointer-events: none; }
.x-tam-dau .btn { pointer-events: auto; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.x-tam section > h2:first-child, .x-tam .x-tu h2 { padding-right: 84px; }
@keyframes x-tam-len { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.tinh .x-tam { animation: none; }
.x-them { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.x-them .btn { min-height: 54px; border-radius: var(--bo-lon); }
/* Hai nút to "Chơi ngay" và "Ra lửa trại" ở đầu tab */
.x-choi-ngay { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.x-choi-ngay .btn { flex: 1 1 220px; min-height: 64px; flex-direction: column; gap: 2px; padding: 8px 16px; border-radius: var(--bo-lon); text-align: center; }
.x-choi-ngay .btn b { font-size: 20px; line-height: 1.15; }
.x-choi-ngay .btn span { font-family: var(--chu, inherit); font-size: 14px; font-weight: 600; opacity: .9; }
/* Dải báo "bản xem trước" của giám đốc, kèm nút mở hoặc tạm đóng Xóm với team */
.x-xem-truoc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; }
.x-xem-truoc span { flex: 1 1 240px; min-width: 0; }
.x-xem-truoc button { flex: none; }
.x-muc ~ p.nhip { display: block; margin: 0 0 14px; }
.x-muc ~ p.nhip.x-xem-truoc { display: flex; }

.x-hai { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.x-hai > * { min-width: 0; }
.x-luoi-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }

/* ----- Tin nóng và dòng "vừa có" ----- */
.x-tin-nong { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--the); border: 2px dashed var(--vien); border-radius: var(--bo-lon); padding: 8px 14px; margin-bottom: 16px; font-weight: 700; }
.x-tin-nong .tag { flex: none; }
.x-moi { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.x-moi li { background: color-mix(in srgb, var(--bac-ha) 16%, var(--nen2)); border: 1px solid color-mix(in srgb, var(--bac-ha) 55%, transparent); border-radius: 999px; padding: 3px 12px; font-size: 14.5px; }
.x-moi b { color: var(--vang); }
.x-loi { background: var(--the); border: 2px dashed var(--vien); border-radius: var(--bo-lon); padding: 14px 16px; font-weight: 600; }

/* ----- Phòng ----- */
.x-phong { position: relative; aspect-ratio: 3 / 2; border-radius: var(--bo-lon); overflow: hidden; border: 2px solid var(--vien); background: linear-gradient(#1B2760 0 70%, #2A2148 70%); box-shadow: var(--sang); user-select: none; -webkit-user-select: none; }
.x-phong img { position: absolute; display: block; max-width: none; -webkit-user-drag: none; }
.x-nen { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.x-do { left: calc((var(--x) - var(--w) / 2) / 1200 * 100%); top: calc((var(--y) - var(--h)) / 800 * 100%); width: calc(var(--w) / 1200 * 100%); height: calc(var(--h) / 800 * 100%); z-index: var(--z, 1); }
.x-nv { left: calc((var(--x) - 158) / 1200 * 100%); top: calc(379 / 800 * 100%); width: calc(316 / 1200 * 100%); height: calc(400 / 800 * 100%); z-index: var(--z, 742); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.x-phong.dang-ke { border-color: var(--art); border-style: dashed; }
.x-phong.dang-ke .x-do, .x-phong.dang-ke .x-nv { touch-action: none; cursor: grab; }
.x-phong.dang-ke .x-do.chon { outline: 3px solid var(--art); outline-offset: 2px; border-radius: 10px; }
.x-phong + .nut, .x-phong + .x-ke { margin-top: 12px; }
.x-ke h3 { margin: 14px 0 8px; }
.x-khay { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.x-khay .x-o { flex: 0 0 104px; }
.x-khay .x-o.x-rong { flex-basis: 150px; }

/* ----- Bản đồ xóm (mọi vật đặt theo điểm giữa đáy; cỡ khung do bố cục làng quy định: --bd-r, --bd-c, mặc định 1200x1500) ----- */
.x-bd-trang { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.x-bd { position: relative; aspect-ratio: var(--bd-r, 1200) / var(--bd-c, 1500); border-radius: var(--bo-lon); overflow: hidden; border: 2px solid var(--vien); background: #8FD07A; box-shadow: var(--sang); user-select: none; -webkit-user-select: none; container-type: inline-size; }
.x-bd img { display: block; max-width: none; -webkit-user-drag: none; pointer-events: none; }
.x-bd-nen { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-bd-ranh { pointer-events: none; }
.x-bd-vat { position: absolute; left: calc((var(--x) - var(--w) / 2) / var(--bd-r, 1200) * 100%); top: calc((var(--y) - var(--h)) / var(--bd-c, 1500) * 100%); width: calc(var(--w) / var(--bd-r, 1200) * 100%); height: calc(var(--h) / var(--bd-c, 1500) * 100%); z-index: var(--z, 1);
  display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; text-decoration: none; transition: transform .14s, filter .14s; }
.x-bd-vat > img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
button.x-bd-vat:hover, a.x-bd-vat:hover { background: none; box-shadow: none; transform: translateY(-2%) scale(1.04); filter: drop-shadow(0 0 1.2cqw rgba(255, 255, 255, .85)); }
button.x-bd-vat:active, a.x-bd-vat:active { transform: scale(.97); }
.x-bd-canh { pointer-events: none; }
.x-bd-ten { position: absolute; left: 50%; top: calc(100% - 1.1cqw); transform: translateX(-50%); white-space: nowrap; font-family: var(--dau); font-weight: 700; font-size: clamp(9.5px, 2.1cqw, 15px); line-height: 1; padding: .34em .7em .3em; border-radius: 999px; background: rgba(8, 14, 38, .84); color: #fff; letter-spacing: 0; }
.x-bd-moc .x-bd-ten { top: auto; bottom: 5%; background: rgba(255, 255, 255, .93); color: #0A1230; box-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .28); }   /* nhãn công trình nằm trong chân hình, để vật phía dưới không che */
.x-bd-lo.x-toi .x-bd-ten { background: var(--art); color: var(--nen2); box-shadow: 0 0 1.6cqw color-mix(in srgb, var(--art) 70%, transparent); }
.x-bd-day { position: absolute; left: calc(var(--x) / var(--bd-r, 1200) * 100%); top: calc(var(--y) / var(--bd-c, 1500) * 100%); z-index: var(--z, 1490); translate: -50% -100%; pointer-events: none; white-space: nowrap; font-family: var(--dau); font-weight: 700; font-size: clamp(9px, 1.9cqw, 14px); line-height: 1; padding: .34em .7em; border-radius: 999px; background: #fff; color: #0A1230; animation: x-nhun 1.4s ease-in-out infinite; }
.x-bd-day::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -.5em; border: .5em solid transparent; border-top-color: #fff; border-bottom: 0; }
.x-bd-nv { position: absolute; left: calc((var(--x) - 51.5) / var(--bd-r, 1200) * 100%); top: calc((var(--y) - 118) / var(--bd-c, 1500) * 100%); width: calc(103 / var(--bd-r, 1200) * 100%); height: calc(130 / var(--bd-c, 1500) * 100%); z-index: var(--z, 1); filter: drop-shadow(0 .4cqw .5cqw rgba(0, 0, 0, .3)); }
.x-bd-suong > img { object-position: 50% 50%; }
.x-bd-khoa { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .3em; white-space: nowrap; font-family: var(--dau); line-height: 1; padding: .5em .9em; border-radius: 1em; background: rgba(8, 14, 38, .78); color: #fff; font-size: clamp(9.5px, 2.2cqw, 16px); }
.x-bd-khoa b { font-weight: 700; } .x-bd-khoa i { font-style: normal; font-weight: 600; color: var(--vang); font-size: .88em; }
.x-bd-suong.x-du .x-bd-khoa i { color: var(--bac-ha); }
.x-bd + .phu { margin-top: 10px; }
.x-suong-to { border-radius: var(--bo-lon); aspect-ratio: 4 / 3; width: min(320px, 78vw); background: radial-gradient(circle, #8FD07A, #4E9A55 85%); }
.x-suong-to img { width: 96%; height: 96%; }
.x-thanh-to { width: min(320px, 78vw); height: 13px; }
.x-nha .x-phong { max-width: 860px; }
body.tinh .x-bd-day { animation: none; }

/* ----- Màn đi cảnh ngang ----- */
.x-man-dau { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.x-man-dau h2 { margin: 0; flex: 1 1 auto; }
.x-man-diem { font-family: var(--dau); font-weight: 600; color: #8FF3FF; white-space: nowrap; }
.x-man-diem b { font-size: 20px; color: #fff; margin-left: 4px; }
.x-man { position: relative; border-radius: var(--bo-lon); overflow: hidden; border: 2px solid color-mix(in srgb, #7FD6D0 55%, transparent); background: #0B1030; box-shadow: 0 0 60px rgba(95, 184, 196, .22); }
.x-man canvas { display: block; width: 100%; height: min(56vw, 560px, calc(100dvh - 250px)); min-height: 280px; touch-action: none; }
.x-man-ket { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(6, 11, 31, .5); }
.x-man-ket[hidden] { display: none; }
.x-man-the { display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 420px; padding: 18px 20px; border-radius: var(--bo-lon); border: 2px solid var(--art); background: rgba(10, 18, 48, .94); box-shadow: 0 0 50px color-mix(in srgb, var(--art) 35%, transparent); }
.x-man-the h2 { margin: 0; justify-content: center; } .x-man-the h2::before { display: none; } .x-man-the p { margin: 0; } .x-man-the .nut { justify-content: center; }
.x-man-nut { display: grid; grid-template-columns: 1fr 1fr .35fr 1.5fr; gap: 10px; margin: 10px 0 8px; max-width: 560px; user-select: none; -webkit-user-select: none; }
.x-man-nut button { min-height: 62px; font-size: 22px; border-radius: var(--bo); touch-action: none; -webkit-tap-highlight-color: transparent; }
.x-man-nut button.bam { transform: translateY(2px) scale(.97); background: color-mix(in srgb, var(--art) 40%, var(--nen2)); }
.x-man-nut button.chinh.bam { background: color-mix(in srgb, var(--art) 78%, #fff); }

/* ----- Ô món ----- */
.x-luoi-mon { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.x-o { position: relative; display: grid; grid-template-rows: auto auto; justify-items: center; gap: 4px; min-height: 0; padding: 8px 6px 7px; border: 2px solid var(--vien); border-radius: var(--bo); background: radial-gradient(circle at 50% 30%, #1D2A63, #0A1230 75%); font-weight: 600; font-size: 13.5px; line-height: 1.15; text-align: center; }
.x-o img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.x-o.x-rong img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.x-o.chon { border-color: var(--art); box-shadow: 0 0 0 2px var(--art), 0 0 18px color-mix(in srgb, var(--art) 45%, transparent); }
.x-o .x-bac { position: absolute; top: 5px; left: 5px; }
.x-o em { font-style: normal; font-size: 12px; color: var(--art); display: inline-flex; align-items: center; gap: 3px; }
.x-o.x-chua-co img { opacity: .55; }
.x-o.x-bong img { filter: brightness(0) invert(.32) sepia(1) hue-rotate(190deg) saturate(2); opacity: .7; }
.x-khong { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 2px dashed var(--vien); border-radius: 10px; font-size: 12.5px; color: color-mix(in srgb, var(--ink) 65%, transparent); padding: 4px; }

.x-bac { display: inline-block; font-family: var(--dau); font-weight: 700; font-size: 11.5px; line-height: 1; padding: 3px 7px; border-radius: 999px; color: #0A1230; background: #9FD0EA; }
.x-bac-2 { background: #5BD5FF; } .x-bac-3 { background: #C9B4FF; } .x-bac-4 { background: linear-gradient(90deg, #FFE45B, #FF9F5B); }
.x-bac-nghe { background: #8FE3B5; }

/* ----- Làng: cả xóm cùng đứng trên bản đồ mặt bằng, bên dưới là chat cả xóm ----- */
.x-lang { border-color: color-mix(in srgb, #8FE3B5 60%, transparent); background: #cfeab9; box-shadow: 0 0 60px rgba(120, 220, 160, .2); }
.x-lang canvas { height: min(62vw, 640px, calc(100dvh - 330px)); min-height: 300px; touch-action: manipulation; cursor: pointer; }
/* Trong làng hàng nút dẹt (hình nhỏ bên trái, chữ bên phải) để chừa chỗ cho bản đồ */
/* Nhiệm vụ ngay trên cảnh làng: danh sách nhỏ ở góc dưới bên trái. Việc xong có nút Nhận tại chỗ; việc chưa xong chạm vào là nhân vật đi tới chỗ làm. */
.x-nvx { position: absolute; left: 6px; bottom: 6px; width: min(172px, 54%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 4px 5px 5px; border-radius: 13px; background: rgba(6, 11, 31, .74); border: 1.5px solid color-mix(in srgb, var(--ink) 24%, transparent); color: var(--ink); font-size: 11px; line-height: 1.2; }
.x-nvx[hidden], .x-khay[hidden] { display: none; }
.x-nvx ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.x-nvx li { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 23px; padding: 0 0 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.x-nvx li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.x-nvx li i { flex: none; font-style: normal; font-weight: 700; font-family: var(--dau); opacity: .82; padding-right: 7px; }
.x-nvx li.da { opacity: .55; }
.x-nvx li.da i { color: var(--bac-ha); opacity: 1; }
.x-nvx li.nhan { background: color-mix(in srgb, var(--art) 20%, transparent); }
.x-nvx button, .x-nvx button:hover, .x-nvx button:active { margin: 0; min-width: 0; min-height: 0; border: 0; box-shadow: none; transform: none; letter-spacing: 0; font-size: 11px; line-height: 1.2; }
.x-nvx-dau { display: flex; align-items: center; justify-content: flex-start; gap: 5px; width: 100%; min-width: 0; padding: 2px 2px 2px 4px; background: none; color: var(--ink); border-radius: 8px; text-align: left; }
.x-nvx-dau:hover { background: rgba(255, 255, 255, .08); }
.x-nvx-dau b { font: 700 12.5px/1.1 var(--dau); color: var(--art); }
.x-nvx-dau i { font-style: normal; font-weight: 700; opacity: .85; }
.x-nvx-dau em { font-style: normal; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #FF5A7A; color: #fff; font: 700 10.5px/17px var(--dau); text-align: center; }
.x-nvx-dau u { margin-left: auto; text-decoration: none; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .14); font: 700 13px/18px var(--dau); text-align: center; }
.x-nvx-di { display: flex; align-items: center; justify-content: flex-start; gap: 6px; flex: 1; min-width: 0; width: 100%; padding: 0; background: none; color: var(--ink); font-weight: 600; text-align: left; border-radius: 9px; }
.x-nvx li:has(.x-nvx-di) { padding: 0; }
.x-nvx li:has(.x-nvx-di) .x-nvx-di { min-height: 23px; padding: 0 0 0 6px; }
.x-nvx-di span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-nvx-di:hover { background: rgba(255, 255, 255, .1); }
.x-nvx-nhan { flex: none; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--art); color: var(--nen2); font-family: var(--dau); font-weight: 700; white-space: nowrap; margin-right: 2px; }
.x-nvx-nhan:hover { background: color-mix(in srgb, var(--art) 84%, #fff); }
/* Khay vườn: ba ô của luống đang đứng cạnh, làm việc ngay trên cảnh. */
.x-khay { position: absolute; left: 6px; right: 6px; bottom: 6px; display: grid; gap: 5px; padding: 6px 7px 7px; border-radius: 15px; background: rgba(6, 11, 31, .86); border: 1.5px solid color-mix(in srgb, #8FE3B5 55%, transparent); color: var(--ink); box-shadow: 0 -4px 22px rgba(6, 11, 31, .35); }
.x-khay button, .x-khay button:hover, .x-khay button:active { margin: 0; min-height: 0; box-shadow: none; transform: none; letter-spacing: 0; }
.x-khay-dau { display: flex; align-items: center; gap: 8px; padding-left: 3px; }
.x-khay-dau b { flex: 1; min-width: 0; font: 700 14px/1.15 var(--dau); color: #BFF5D6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-khay-dong { flex: none; min-height: 26px; padding: 0 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 34%, transparent); border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--ink); font: 600 12px/1 var(--dau); }
.x-khay-dong:hover { background: rgba(255, 255, 255, .16); }
.x-khay-ba { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
/* Chuồng gà, ao cá chỉ có một ô: ô đó nằm ngang cho gọn, chữ việc bên trái, điều cần biết bên phải. */
.x-khay-ba.mot { grid-template-columns: minmax(0, 1fr); }
.x-khay-ba.mot .x-khay-o { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 10px; padding: 8px 12px; text-align: left; }
.x-khay-ba.mot .x-khay-o b { font-size: 14px; }
.x-khay-ba.mot .x-khay-o i { min-height: 0; font-size: 11.5px; }
.x-khay-o { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 2px; min-width: 0; padding: 5px 3px 5px; border: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--ink); text-align: center; white-space: normal; }
.x-khay-o svg { flex: none; width: 17px; height: 17px; }
.x-khay-o b { display: inline-flex; align-items: center; justify-content: center; gap: 3px; max-width: 100%; font: 700 12.5px/1.15 var(--dau); white-space: nowrap; }
.x-khay-o i { display: grid; align-content: center; min-height: 2.4em; font-style: normal; font-size: 10px; line-height: 1.2; font-weight: 600; opacity: .85; max-width: 100%; overflow-wrap: anywhere; }
.x-khay-o:disabled { opacity: .78; cursor: default; }
.x-khay-o.lam { border-color: var(--art); background: color-mix(in srgb, var(--art) 22%, rgba(6, 11, 31, .6)); }
.x-khay-o.lam:hover { background: color-mix(in srgb, var(--art) 34%, rgba(6, 11, 31, .6)); }
.x-khay-o.lam.x-pha-khat { border-color: #6FC3FF; background: color-mix(in srgb, #6FC3FF 24%, rgba(6, 11, 31, .6)); }
.x-khay-o.lam.x-pha-khat:hover { background: color-mix(in srgb, #6FC3FF 36%, rgba(6, 11, 31, .6)); }
.x-khay-o.lam b { color: #fff; }
.x-khay-hat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.x-khay-h { display: flex; align-items: baseline; justify-content: center; gap: 5px; min-width: 0; min-height: 24px; padding: 2px 4px; border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 999px; background: none; color: var(--ink); white-space: nowrap; text-align: center; }
.x-khay-h b { font: 700 11.5px/1.2 var(--dau); }
.x-khay-h i { font-style: normal; font-size: 10px; line-height: 1.2; font-weight: 600; opacity: .8; }
.x-khay-h.chon { border-color: #8FE3B5; background: color-mix(in srgb, #8FE3B5 20%, transparent); }
.x-khay-h:hover { background: rgba(255, 255, 255, .1); }
.x-khay-h:disabled { opacity: .45; }
.x-khay-loi { margin: 0; padding: 0 3px; font-size: 11px; line-height: 1.25; opacity: .82; }
.x-chat { margin-top: 8px; padding: 8px 10px 10px; border-radius: var(--bo); background: rgba(6, 11, 31, .55); border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.x-chat-dau { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 12.5px; }
.x-chat-dau b { font-family: var(--dau); font-size: 14px; }
.x-chat-dau span { opacity: .7; }
.x-chat-tin { list-style: none; margin: 0 0 8px; padding: 0; max-height: 88px; overflow-y: auto; display: grid; gap: 2px; font-size: 13.5px; line-height: 1.35; overscroll-behavior: contain; }
.x-chat-tin li { overflow-wrap: anywhere; }
.x-chat-tin li b { color: var(--art); }
.x-chat-tin li.toi b { color: #8FE3B5; }
/* Mấy dòng về nhà trên bản đồ làng (bậc nhà theo gia sản, độ chăm, thế đất): nằm trên hình phòng trong tấm Nhà. */
.x-nha-so { display: grid; gap: 3px; margin: 0 0 10px; font-size: 13.5px; line-height: 1.35; }
.x-nha-so b { color: var(--art); }
.x-nha-so .phu { font-size: 12px; }
/* Màu nhà và rào ngoài sân (24/11/2026): chủ nhà tự chọn */
.x-ngoai-san { margin-top: 14px; }
.x-ngoai-san h3 { margin: 0 0 4px; }
.x-mau-nha { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 10px 0; }
.x-mau { display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border: 2px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.05); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.x-mau i { display: block; width: 34px; height: 26px; border-radius: 17px 17px 6px 6px; background: var(--m); box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 2px 0 rgba(0,0,0,.25); }
.x-mau.chon { border-color: var(--art, #FFD25B); background: rgba(255,210,91,.14); }
.x-rao-chon { display: flex; flex-wrap: wrap; gap: 6px; }
/* Lời rủ Ma Sói: nổi hẳn lên trong khung chat, kèm nút ra lửa trại. */
.x-chat-tin li.ru { padding: 3px 8px; border-radius: 10px; background: color-mix(in srgb, #FFB45C 22%, transparent); border: 1px solid color-mix(in srgb, #FFB45C 55%, transparent); }
.x-chat-tin li.ru b { color: #FFD9A6; }
.x-chat-ru { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px; background: #FFB45C; color: #3a2500; font: 700 12px/1.5 var(--dau); text-decoration: none; white-space: nowrap; }
/* Dải nhắc buổi Ma Sói thứ Sáu: nằm ngay dưới hàng nút trên cảnh làng (bản gọn), và trong tấm hỏi đường ở cổng làng (bản đủ). */
.x-hen { display: grid; gap: 6px; margin: 10px 0 0; padding: 9px 11px; border-radius: 14px; background: color-mix(in srgb, #FFB45C 16%, rgba(6, 11, 31, .82)); border: 1.5px solid color-mix(in srgb, #FFB45C 60%, transparent); color: var(--ink); text-align: left; }
.x-hen p { margin: 0; display: grid; gap: 1px; min-width: 0; }
.x-hen p b { font: 800 14px/1.2 var(--dau); color: #FFD9A6; }
.x-hen p span { font-size: 12px; line-height: 1.25; opacity: .88; }
.x-hen > div { display: flex; flex-wrap: wrap; gap: 6px; }
.x-hen button, .x-hen button:hover, .x-hen button:active { margin: 0; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); background: rgba(255, 255, 255, .08); color: var(--ink); font: 700 12.5px/1 var(--dau); box-shadow: none; transform: none; letter-spacing: 0; }
.x-hen button.chinh { border-color: #FFB45C; background: #FFB45C; color: #3a2500; }
.x-hen button.da { border-color: #8FE3B5; background: color-mix(in srgb, #8FE3B5 24%, transparent); color: #BFF5D6; }
.x-hen.gon { align-self: stretch; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 0; padding: 5px 6px 5px 10px; border-radius: 12px; pointer-events: auto; }
.x-hen.gon p b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-hen.gon p span { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-hen.gon > div { flex-wrap: nowrap; gap: 4px; }
.x-hen.gon button, .x-hen.gon button:hover, .x-hen.gon button:active { min-height: 26px; padding: 0 9px; font-size: 11px; }
@media (max-width: 420px) { .x-hen.gon { grid-template-columns: minmax(0, 1fr); } .x-hen.gon > div { justify-content: flex-start; } }
.x-choi.dang-van .x-hen { display: none; }
.x-chat-nhap { display: flex; gap: 8px; }
.x-chat-nhap input { flex: 1 1 auto; min-width: 0; }
.x-npc { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--bo); background: color-mix(in srgb, #8FE3B5 14%, transparent); border: 1.5px solid color-mix(in srgb, #8FE3B5 45%, transparent); }
.x-npc img { flex: none; width: 66px; height: 66px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .14); }
.x-npc b { display: block; font-family: var(--dau); font-size: 17px; line-height: 1.2; }
.x-npc p { margin: 4px 0 0; }
.x-cong { display: grid; gap: 8px; margin: 0 0 12px; }
.x-cong > * { display: grid; gap: 2px; justify-items: start; text-align: left; height: auto; padding: 10px 14px; white-space: normal; }
.x-cong span { font-weight: 400; font-size: 13px; opacity: .85; }
/* Vườn */
.x-vuon-hinh { display: block; width: 150px; height: auto; margin: 0 auto 8px; }
.x-ds-vuon { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.x-o-vuon { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--bo); background: rgba(6, 11, 31, .5); border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.x-o-vuon.x-pha-chin { border-color: var(--art); }
.x-o-vuon.x-pha-khat { border-color: #6FC3FF; }
.x-hat { display: grid; gap: 6px; }
.x-hat button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; height: auto; min-height: 44px; padding: 8px 12px; text-align: left; white-space: normal; }
.x-hat button span { font-weight: 400; opacity: .85; text-align: right; }
.x-bd-day.x-bd-ban { background: #fff; color: #1b2447; }
.x-bd-day.x-bd-npc { background: #8FE3B5; color: #0d3a26; }
@media (max-width: 720px) { .x-lang canvas { height: min(104vw, calc(100dvh - 396px)); min-height: 250px; } }

/* ----- Nhiệm vụ ----- */
.x-ds-nv { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 9px; }
.x-nv-the { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--the); border: 2px solid var(--vien); border-radius: var(--bo); padding: 10px 13px; }
.x-nv-the > div { display: grid; gap: 5px; min-width: 0; flex: 1; }
.x-nv-the b { font-size: 16.5px; line-height: 1.2; }
.x-nv-the.xong { border-color: var(--bac-ha); }
.x-nv-the.da-nhan { opacity: .62; }
.x-nv-the .phu { font-size: 13.5px; }
.x-tich, .x-cho { flex: none; font-family: var(--dau); font-weight: 600; font-size: 13.5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.x-tich { background: color-mix(in srgb, var(--bac-ha) 24%, transparent); color: var(--bac-ha); }
.x-cho { background: color-mix(in srgb, var(--ink) 12%, transparent); color: color-mix(in srgb, var(--ink) 75%, transparent); }
.x-hai h2 + .x-loi, .x-hai h2 + .x-ds-nv { margin-top: 0; }
/* Việc thật của app hiện thành nhiệm vụ trong game */
.x-nv-tam h2 { margin-top: 18px; } .x-nv-tam #x-viec > h2:first-child { margin-top: 0; }
.x-ds-viec { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 9px; }
.x-viec-the { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; background: var(--the); border: 2px solid var(--vien); border-left: 7px solid var(--art); border-radius: var(--bo); padding: 10px 13px; }
.x-viec-the > div:first-child { display: grid; gap: 4px; min-width: 0; flex: 1 1 220px; }
.x-viec-the b { font-size: 16.5px; line-height: 1.25; overflow-wrap: anywhere; }
.x-viec-the .phu { font-size: 13.5px; }
.x-viec-the .x-han { font-style: normal; }
.x-viec-the.gap { border-left-color: #FFB45C; } .x-viec-the.gap .x-han { color: #FFC27A; font-weight: 700; }
.x-viec-the.tre { border-left-color: #FF6B7F; } .x-viec-the.tre .x-han { color: #FF8A98; font-weight: 700; }
.x-viec-thuong { display: inline-flex; align-items: center; gap: 5px; color: var(--vang); }
.x-viec-thuong .x-ic { width: 15px; height: 15px; }
.x-viec-the .nut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.x-viec-the .x-cho { white-space: normal; }
.x-hai > div > h2:not(:first-child) { margin-top: 20px; }

/* ----- Túi mù ----- */
.x-the-tui { justify-items: start; }
.x-tui-khung { width: 132px; height: 142px; display: grid; place-items: center; }
.x-tui-hinh { width: 120px; height: 130px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
.x-the-tui:hover .x-tui-hinh { animation: x-nhun 1s ease-in-out infinite; }
dialog.x-hop-tui { width: min(430px, calc(100vw - 22px)); text-align: center; }
.x-boc { display: grid; justify-items: center; gap: 10px; padding: 8px 0 2px; }
.x-boc h2 { justify-content: center; margin: 0; }
.x-boc h2::before { display: none; }
.x-boc .nut { justify-content: center; }
.x-lac .x-tui-hinh { width: 170px; height: 184px; animation: x-lac .22s ease-in-out infinite alternate; }
.x-mon-to { width: min(250px, 70vw); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--toa, #9FD0EA) 46%, transparent), transparent 68%); }
.x-mon-to.cao { width: min(260px, 70vw); aspect-ratio: 600 / 760; border-radius: var(--bo-lon); }
.x-mon-to img { width: 86%; height: 86%; object-fit: contain; }
.x-boc.ra .x-mon-to { animation: x-hien .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.x-ra-1 { --toa: #9FD0EA; } .x-ra-2 { --toa: #5BD5FF; } .x-ra-3 { --toa: #C9B4FF; } .x-ra-4 { --toa: #FFE45B; }
.x-ra-3 .x-mon-to, .x-ra-4 .x-mon-to { box-shadow: 0 0 60px color-mix(in srgb, var(--toa) 55%, transparent); }
.x-xem { display: grid; justify-items: center; gap: 8px; text-align: center; }
.x-xem h2 { justify-content: center; margin: 0; } .x-xem h2::before { display: none; } .x-xem .nut { justify-content: center; }
@keyframes x-lac { from { transform: rotate(-9deg) translateY(0); } to { transform: rotate(9deg) translateY(-8px); } }
@keyframes x-nhun { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-3deg); } }
@keyframes x-hien { from { transform: scale(.2) rotate(-18deg); opacity: 0; } to { transform: none; opacity: 1; } }
body.tinh .x-lac .x-tui-hinh, body.tinh .x-the-tui:hover .x-tui-hinh, body.tinh .x-boc.ra .x-mon-to { animation: none; }

/* ----- Tủ đồ ----- */
.x-tu { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.x-guong { display: grid; gap: 12px; justify-items: center; position: sticky; top: 76px; }
.x-guong > img { width: min(100%, 340px); aspect-ratio: 600 / 760; border-radius: var(--bo-lon); background: radial-gradient(circle at 50% 38%, #26346F, #0B1235 72%); border: 2px solid var(--vien); box-shadow: var(--sang); }
.x-guong .nut { justify-content: center; }

/* ----- Tiệm ----- */
.x-luoi-hang { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 14px 0 22px; }
.x-hang { justify-items: center; text-align: center; gap: 7px; padding: 14px 12px; position: relative; }
.x-hang .x-anh { width: 100%; min-height: 0; padding: 0; border: 0; border-radius: var(--bo); background: radial-gradient(circle at 50% 30%, #1D2A63, #0A1230 75%); box-shadow: none; }
.x-hang .x-anh img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.x-hang b { font-size: 16.5px; line-height: 1.15; }
/* Màn vườn xem gần (23/11/2026): mỗi luống là một dải đất nâu xới, ba ô một luống; mỗi ô vẽ to cây theo giai đoạn. */
.x-vuon-to .x-luong-to { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; padding: 8px 8px 10px; border-radius: 18px;
  background: linear-gradient(180deg, #8a5a36 0%, #6d4326 55%, #5a361e 100%); box-shadow: inset 0 3px 0 rgba(255, 220, 170, .25), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 6px 14px rgba(0, 0, 0, .3); }
.x-o-to { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 4px 3px 6px; border-radius: 12px; background: rgba(255, 240, 210, .07); text-align: center; }
.x-o-to > b { font: 700 12.5px/1.2 var(--dau); color: #fff6e6; }
.x-o-to .phu { font-size: 11.5px; color: #f3dcc0; }
.x-o-to .x-dem { font-weight: 800; color: #fff; }
.x-o-to button { min-height: 30px; padding: 3px 8px; font-size: 12px; border-radius: 999px; width: 100%; }
.x-o-anh { position: relative; width: 100%; aspect-ratio: 120 / 140; }
.x-o-anh img { width: 100%; height: 100%; object-fit: contain; display: block; }
.x-o-to.x-pha-lon .x-o-anh img, .x-o-to.x-pha-mam .x-o-anh img { animation: x-cay-du 3.4s ease-in-out infinite; transform-origin: 50% 85%; }
.x-o-to.x-pha-chin .x-o-anh img { animation: x-cay-chin 1.6s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes x-cay-du { 50% { transform: rotate(1.6deg) scaleY(1.02); } }
@keyframes x-cay-chin { 50% { transform: scale(1.05); filter: brightness(1.08); } }
.x-o-giot, .x-o-sao { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; animation: x-nhun 1s ease-in-out infinite; }
.x-o-giot svg, .x-o-sao svg { width: 100%; height: 100%; }
@keyframes x-nhun { 50% { transform: translateY(-4px); } }
.x-o-to.x-hoang { background: rgba(0, 0, 0, .18); }
.x-o-to .x-thanh { width: 100%; }
.x-hat-to { margin: 6px 0 12px; }
.x-hat-to .x-khay-h { flex-direction: column; align-items: center; gap: 1px; min-height: 40px; padding: 4px 6px; border-radius: 14px; white-space: normal; }
.x-vuon-to { min-width: 0; overflow-x: hidden; }
.x-khay-to { display: block; margin: 8px auto 0; width: fit-content; }
/* Tiệm chia tab (23/11/2026): hàng tab cuộn ngang được trên điện thoại. */
.x-tab-tiem { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px 0 12px; padding-bottom: 2px; }
.x-tab-tiem::-webkit-scrollbar { display: none; }
.x-tab-tiem button { flex: 0 0 auto; min-height: 34px; padding: 4px 13px; border-radius: 999px; font: 700 13.5px/1 var(--dau); white-space: nowrap; box-shadow: none; }
.x-tab-tiem button span { font-size: 11.5px; opacity: .7; margin-left: 2px; }
.x-tab-tiem button.chon { background: var(--art); color: #0A1230; border-color: var(--art); }
.x-hang-nut { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* Gian "Bộ ngoại trang" của tiệm (23/11/2026): mỗi bộ một thẻ lớn, bên trái là hình mình mặc thử cả bộ, bên phải là tên bộ, từng món và nút mua. */
.x-luoi-bo { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin: 14px 0 26px; }
.x-bo { --bo-mau: #5BD5FF; display: grid; grid-template-columns: minmax(118px, 40%) 1fr; gap: 12px; align-items: stretch; padding: 10px; border-color: color-mix(in srgb, var(--bo-mau) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bo-mau) 22%, transparent), 0 10px 26px rgba(0, 0, 0, .28); }
.x-bo-3 { --bo-mau: #C9B4FF; } .x-bo-4 { --bo-mau: #FFC85B; }
.x-bo-anh { position: relative; min-height: 0; padding: 0; border: 0; border-radius: var(--bo); overflow: hidden; box-shadow: none; background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--bo-mau) 46%, #1D2A63), #0A1230 78%); }
.x-bo-anh:hover { transform: none; }
.x-bo-anh img { display: block; width: 100%; height: 100%; min-height: 168px; object-fit: contain; object-position: 50% 45%; transform: scale(1.12); }
.x-bo-anh em { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-style: normal; font-family: var(--dau); font-weight: 700; font-size: 11.5px; line-height: 1; padding: 4px 9px; border-radius: 999px; white-space: nowrap; color: #0A1230; background: color-mix(in srgb, var(--bo-mau) 88%, #fff); }
.x-bo-chu { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.x-bo-chu > b { font-family: var(--dau); font-size: 18.5px; line-height: 1.15; }
.x-bo-chu > button { margin-top: auto; align-self: stretch; }
.x-bo-mon { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 5px; width: 100%; }
.x-bo-m { display: grid; justify-items: center; gap: 1px; min-height: 0; padding: 3px 2px 4px; border: 1.5px solid var(--vien); border-radius: 10px; box-shadow: none; background: rgba(255, 255, 255, .05); font: 700 11px/1.1 var(--dau); color: var(--ink); }
.x-bo-m:hover { transform: none; }
.x-bo-m img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.x-bo-m.co { border-color: #8FE3B5; } .x-bo-m.co span { color: #8FE3B5; }
.x-bo-du { opacity: .96; } .x-bo-du .x-bo-anh em { display: none; }

/* ----- Cả xóm ----- */
.x-luoi-nguoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.x-nguoi { display: grid; justify-items: center; gap: 3px; min-height: 0; padding: 10px 8px 12px; border: 2px solid var(--vien); border-radius: var(--bo-lon); background: radial-gradient(circle at 50% 28%, #1D2A63, #0A1230 75%); text-align: center; }
.x-nguoi img { width: 100%; aspect-ratio: 600 / 760; object-fit: contain; }
.x-nguoi .x-khong { aspect-ratio: 600 / 760; }
.x-nguoi b { font-family: var(--dau); font-size: 18px; }
.x-nguoi.vang { opacity: .7; }
/* Người đang ở xóm (23/11/2026): viền xanh, nhãn "Đang ở xóm"; dòng kể tên ở đầu trang Cả xóm. */
.x-nguoi { position: relative; }
.x-nguoi.on { border-color: #4ADE80; box-shadow: 0 0 0 2px rgba(74, 222, 128, .25); }
.x-on { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 2px 8px 2px 18px; border-radius: 999px; background: rgba(6, 11, 31, .85); color: #86EFAC; font: 600 11.5px/1.4 var(--dau); }
.x-on::before, .x-dang-o i { content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 6px #4ADE80; }
.x-dang-o { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 4px; padding: 8px 12px; border-radius: 12px; background: rgba(74, 222, 128, .12); }
.x-dang-o i { position: relative; left: 0; top: 7px; flex: none; margin: 0; }
.x-dang-o.tat { background: rgba(255, 255, 255, .06); } .x-dang-o.tat i { background: #8A93B8; box-shadow: none; }

/* ----- Báo Xóm ----- */
.x-bao { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.x-bao li { background: var(--the); border: 2px solid var(--vien); border-left: 8px solid var(--art); border-radius: var(--bo-lon); padding: 11px 15px; display: grid; gap: 6px; }
.x-bao b { font-family: var(--dau); font-size: 19px; line-height: 1.2; font-weight: 700; }
.x-nhan-dan { display: flex; gap: 6px; flex-wrap: wrap; }
.x-nhan-dan .chon { background: var(--art); color: var(--nen2); }

/* ----- Bãi lửa trại và ván Ma Sói ----- */
.x-trai-moi { border-style: solid; border-color: color-mix(in srgb, #FFB45C 70%, transparent); box-shadow: 0 0 26px rgba(255, 160, 70, .18); }
.x-trai canvas { cursor: pointer; }
.x-trai-trang[data-dem="1"] .x-man { border-color: color-mix(in srgb, #6B7CFF 60%, transparent); box-shadow: 0 0 60px rgba(60, 80, 200, .26); }
/* Dải trên cùng của cảnh: đang ở pha nào, còn bao nhiêu giây. */
.x-soi-tren { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 10, 30, .78); border: 1.5px solid color-mix(in srgb, var(--art) 50%, transparent); font-family: var(--dau); font-size: 17px; pointer-events: none; }
.x-soi-tren[hidden] { display: none; }
.x-soi-gio { display: flex; align-items: center; gap: 7px; }
.x-soi-gio i { display: block; width: 74px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--art) calc(var(--pt, 100) * 1%), rgba(255, 255, 255, .16) 0); }
.x-soi-gio em { font-style: normal; font-variant-numeric: tabular-nums; min-width: 2.6em; }
/* Lời báo giữa cảnh: đêm xuống, trời sáng, ai bị loại. */
.x-soi-tin { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); max-width: min(86%, 620px); padding: 10px 18px; border-radius: var(--bo-lon); background: rgba(6, 10, 30, .86); border: 2px solid color-mix(in srgb, var(--art) 60%, transparent); font-family: var(--dau); font-size: clamp(16px, 2.3vw, 22px); line-height: 1.25; text-align: center; pointer-events: none; }
.x-soi-tin[hidden] { display: none; }
.x-soi-tin.hien { animation: x-soi-hien .35s ease-out both; }
.x-soi-tin.xau { border-color: #FF7A8A; } .x-soi-tin.tot { border-color: #7FE3A8; }
@keyframes x-soi-hien { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
body.tinh .x-soi-tin.hien { animation: none; }
/* Bảng việc cần làm, nằm ngay dưới cảnh. */
.x-soi-bang { margin-top: 10px; padding: 12px 14px; border-radius: var(--bo-lon); background: var(--the); border: 2px solid var(--vien); display: grid; gap: 9px; min-height: 64px; }
.x-soi-bang:empty { display: none; }
.x-soi-bang p { margin: 0; }
.x-soi-bang .nut { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.x-soi-do { color: #FF8A98; }
.x-soi-vai { justify-self: start; display: flex; align-items: center; gap: 9px; min-height: 0; padding: 4px 12px 4px 5px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, #5FE0C8 55%, transparent); background: rgba(10, 30, 44, .7); text-align: left; }
.x-soi-vai.soi { border-color: color-mix(in srgb, #FF6B7E 65%, transparent); background: rgba(52, 10, 22, .7); }
.x-soi-vai img { width: 34px; height: 47px; border-radius: 5px; object-fit: cover; }
.x-soi-vai span { display: grid; font-size: 12.5px; line-height: 1.15; opacity: .92; }
.x-soi-vai b { font-family: var(--dau); font-size: 18px; }
/* Hàng người chơi: vừa là bảng tình hình, vừa là chỗ chọn người. */
.x-soi-hang { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
.x-soi-nguoi { display: grid; justify-items: center; gap: 1px; min-height: 0; padding: 6px 4px 7px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent); background: rgba(12, 20, 52, .7); text-align: center; line-height: 1.15; }
.x-soi-nguoi:disabled { opacity: 1; cursor: default; }
.x-soi-nguoi img { width: 50px; height: 50px; object-fit: contain; }
.x-soi-nguoi b { font-size: 13.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-soi-nguoi i { font-style: normal; font-size: 11.5px; opacity: .88; }
.x-soi-nguoi i.vai { color: #8FF3D4; } .x-soi-nguoi i.vai.soi { color: #FF98A6; }
.x-soi-nguoi.toi { border-color: color-mix(in srgb, var(--art) 70%, transparent); }
.x-soi-nguoi.duoc { border-color: var(--art); background: color-mix(in srgb, var(--art) 14%, rgba(12, 20, 52, .8)); cursor: pointer; }
.x-soi-nguoi.duoc:hover { background: color-mix(in srgb, var(--art) 26%, rgba(12, 20, 52, .8)); }
.x-soi-nguoi.chon { border-color: #fff; background: color-mix(in srgb, var(--art) 44%, rgba(12, 20, 52, .8)); box-shadow: 0 0 0 2px var(--art); }
.x-soi-nguoi.loai { opacity: .55; } .x-soi-nguoi.loai img { filter: grayscale(.9); }
/* Ô nói chuyện và các điệu bộ. */
.x-soi-noi { margin-top: 10px; display: grid; gap: 8px; }
.x-soi-noi-o { display: flex; gap: 8px; }
.x-soi-noi-o input { flex: 1 1 auto; min-width: 0; }
.x-soi-bieu { display: flex; flex-wrap: wrap; gap: 6px; }
.x-soi-bieu button { min-height: 0; padding: 6px 12px; font-size: 14px; border-radius: 999px; }
/* Thẻ vai trong hộp thoại. */
.x-soi-the .x-soi-la { width: min(210px, 56vw); aspect-ratio: 300 / 420; border-radius: 16px; box-shadow: 0 0 44px color-mix(in srgb, var(--art) 30%, transparent); animation: x-hien .5s cubic-bezier(.2, 1.4, .4, 1) both; }
body.tinh .x-soi-the .x-soi-la { animation: none; }

@media (max-width: 760px) {
  .x-soi-hang { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
  .x-soi-nguoi img { width: 42px; height: 42px; }
  .x-soi-tren { font-size: 15px; padding: 5px 10px; }
  .x-soi-gio i { width: 52px; }
  .x-hai, .x-tu, .x-bd-trang { grid-template-columns: minmax(0, 1fr); }
  .x-guong { position: static; }
  .x-man canvas { height: min(108vw, calc(100dvh - 310px)); }
  .x-trai canvas { height: min(88vw, calc(100dvh - 400px)); min-height: 250px; }   /* cảnh của xóm: chừa chỗ cho dòng mời, nút bấm và bảng Ma Sói ngay bên dưới */
  .x-choi:not(.x-trai-trang) .x-man canvas { height: min(108vw, calc(100dvh - 300px)); min-height: 260px; }   /* màn chạy nhảy: cảnh, dòng mời và ba nút nằm trọn một màn hình */
  .x-tam-khung { padding: 8px 12px 28px; }
  .x-man-dau { gap: 6px 12px; margin-bottom: 8px; }
  .x-man-dau h2 { font-size: 19px; }
  .x-man-nut { max-width: none; }
  .x-guong > img { width: min(72%, 300px); }
  .x-dau { padding: 9px 12px; }
  .x-av { width: 52px; height: 52px; }
  .x-luoi-mon { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .x-luoi-hang { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .x-luoi-bo { grid-template-columns: 1fr; gap: 10px; }
  .x-luoi-nguoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-nv-the { flex-wrap: wrap; }
}

/* ===== Đợt "học từ game giữ chân người chơi" (22/11/2026 tối): cảnh làng kín màn hình điện thoại, phản hồi cho từng việc, câu cá, chuỗi ngày, lời chào quay lại ===== */
/* Thanh nổi: ô chuỗi ngày, nút tiếng, dòng mục tiêu kế tiếp */
.x-hud button.x-hud-vi, .x-hud button.x-hud-vi:hover, .x-hud button.x-hud-vi:active { margin: 0; min-height: 0; border: 0; box-shadow: none; transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.x-hud-vi svg { width: 16px; height: 16px; flex: none; }
.x-hud-tren { flex-wrap: wrap; row-gap: 4px; }   /* điện thoại rất hẹp (320 điểm): ô nào không vừa thì xuống hàng, không tràn ra ngoài màn hình */
.x-hud-chuoi b { color: #FFD9A6; }
.x-hud-chuoi.nguoi svg { filter: grayscale(1) brightness(1.25); opacity: .75; }
.x-hud-chuoi.nguoi b { color: var(--ink); opacity: .75; }
.x-hud-chuoi.nay { animation: x-nay .6s ease-out 2; }
.x-hud-loa { margin-left: auto; padding: 5px 8px; }
#x-hud-xu.nay { animation: x-nay .45s ease-out; }
@keyframes x-nay { 30% { transform: scale(1.22); box-shadow: 0 0 16px color-mix(in srgb, var(--art) 80%, transparent); } }
.x-hud-muc-hang { display: flex; align-items: center; gap: 6px; min-height: 0; }
.x-hud-muc-hang:empty { display: none; }
.x-hud-muc { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 78%; padding: 3px 9px; border-radius: 999px; background: rgba(6, 11, 31, .6); color: var(--ink); text-decoration: none; font: 600 11px/1.1 var(--dau); white-space: nowrap; }
.x-hud-muc span { overflow: hidden; text-overflow: ellipsis; }
.x-hud-muc .x-kn { flex: 0 0 54px; height: 6px; }
.x-hud-muc b { font-weight: 700; color: var(--art); }
.x-cham.nhe { background: rgba(6, 11, 31, .86); border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); line-height: 16px; }
/* Xu bay từ chỗ vừa làm việc về ô xu */
.x-xu-bay { position: fixed; left: 0; top: 0; z-index: 30; width: 18px; height: 18px; pointer-events: none; will-change: transform; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.x-xu-bay svg { width: 18px; height: 18px; display: block; }
/* Cụm nút tròn ở góc dưới phải cảnh: lùi máy quay, mở chat */
.x-goc { position: absolute; right: 8px; bottom: 8px; display: grid; gap: 8px; }
.x-goc .x-tron, .x-goc .x-tron:hover, .x-goc .x-tron:active { position: relative; margin: 0; width: 42px; height: 42px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); background: rgba(6, 11, 31, .72); box-shadow: none; transform: none; cursor: pointer; }
.x-goc .x-tron svg { width: 22px; height: 22px; }
.x-goc .x-tron.bat { border-color: var(--art); background: color-mix(in srgb, var(--art) 30%, rgba(6, 11, 31, .8)); }
.x-tron-chat { display: none !important; }
/* Nút "Về chỗ mình": chỉ hiện khi đang kéo cảnh đi ngắm chỗ khác (lớp dang-ngam do xom-lang.js gắn), 24/11/2026 */
.x-goc .x-ve-minh { display: none; justify-self: end; margin: 0; min-height: 0; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--art); background: rgba(6, 11, 31, .82); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 0 14px color-mix(in srgb, var(--art) 55%, transparent); cursor: pointer; transform: none; }
.x-choi.dang-ngam .x-goc .x-ve-minh { display: block; }
.x-choi.co-khay .x-goc { display: none; }
/* Câu chat mới nhất nổi vài giây ở mép dưới cảnh */
.x-chat-moi { position: absolute; left: 8px; right: 60px; bottom: 76px; padding: 4px 10px; border-radius: 12px; background: rgba(6, 11, 31, .72); color: var(--ink); font-size: 12.5px; line-height: 1.3; pointer-events: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; animation: x-tam-len .2s ease-out both; }
.x-chat-moi[hidden] { display: none; }
.x-choi.co-khay .x-chat-moi { bottom: 172px !important; right: 8px; }   /* khay vườn hay bảng câu đang mở: dòng chat nổi lên trên khay */
.x-chat-moi b { color: var(--art); }
.x-chat-moi.x-kieu-ca { background: color-mix(in srgb, #C9B4FF 34%, rgba(6, 11, 31, .82)); } .x-chat-moi.x-kieu-ca b { color: #fff; }
.x-chat-tin li.ca { padding: 3px 8px; border-radius: 10px; background: color-mix(in srgb, #C9B4FF 22%, transparent); border: 1px solid color-mix(in srgb, #C9B4FF 55%, transparent); }
.x-chat-tin li.ca b { color: #E6DBFF; }
.x-chat-dong { display: none; }
/* Lời chào khi quay lại xóm: thẻ nhỏ dưới thanh nổi, không chặn màn chơi */
.x-chao { position: absolute; left: 50%; top: 132px; transform: translateX(-50%); width: min(92%, 330px); padding: 10px 34px 10px 13px; border-radius: 16px; background: rgba(255, 250, 235, .97); color: #1b2447; border: 2px solid #FFC46B; box-shadow: 0 8px 28px rgba(6, 11, 31, .35); font-size: 13.5px; line-height: 1.35; animation: x-chao-xuong .35s cubic-bezier(.2, 1.3, .4, 1) both; z-index: 2; }
.x-chao[hidden] { display: none; }
.x-chao p { margin: 0 0 4px; } .x-chao ul { margin: 0 0 6px; padding-left: 18px; } .x-chao li b { color: #B4571A; }
.x-chao .x-chao-dong, .x-chao .x-chao-dong:hover { position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(27, 36, 71, .1); color: #1b2447; font: 700 17px/1 var(--dau); box-shadow: none; transform: none; }
.x-chao .x-chao-nut, .x-chao .x-chao-nut:hover { margin: 2px 0 0; min-height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: #FFB238; color: #3a2500; font: 700 13.5px/1 var(--dau); box-shadow: none; transform: none; }
@keyframes x-chao-xuong { from { opacity: 0; transform: translate(-50%, -16px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Bảng câu cá ở đáy cảnh */
.x-cau { border-color: color-mix(in srgb, #7FD0FF 60%, transparent); }
.x-cau .x-khay-dau b { color: #CFEBFF; }
.x-cau-so { flex: none; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, #7FD0FF 22%, transparent); border: 1.5px solid color-mix(in srgb, #7FD0FF 55%, transparent); color: var(--ink); text-decoration: none; font: 600 12px/1 var(--dau); white-space: nowrap; }
.x-cau-than { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.x-cau-moi { display: grid; justify-items: start; gap: 2px; font: 700 12px/1.1 var(--dau); }
.x-cau-moi small { font-weight: 600; font-size: 10.5px; opacity: .8; }
.x-cau-hat { display: flex; gap: 3px; }
.x-cau-hat i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #FFB59A; background: transparent; }
.x-cau-hat i.co { background: #FF8A6B; box-shadow: 0 0 6px rgba(255, 138, 107, .6); }
.x-cau .x-cau-nut, .x-cau .x-cau-nut:hover, .x-cau .x-cau-nut:active { position: relative; overflow: hidden; width: 100%; min-height: 54px; margin: 0; padding: 0 12px; border: 0; border-radius: 16px; background: var(--art); color: var(--nen2); font: 800 19px/1.1 var(--dau); letter-spacing: 0; box-shadow: 0 0 18px color-mix(in srgb, var(--art) 40%, transparent); transform: none; }
.x-cau .x-cau-nut:disabled { background: rgba(255, 255, 255, .12); color: var(--ink); opacity: .85; font-size: 14px; font-weight: 700; box-shadow: none; }
.x-cau .x-cau-nut.cho, .x-cau .x-cau-nut.cho:hover { background: color-mix(in srgb, #7FD0FF 26%, rgba(6, 11, 31, .7)); color: #EAF6FF; font-size: 16px; font-weight: 700; box-shadow: none; border: 1.5px dashed color-mix(in srgb, #7FD0FF 60%, transparent); }
.x-cau .x-cau-nut.can, .x-cau .x-cau-nut.can:hover { background: #FF3B4E; color: #fff; font-size: 26px; box-shadow: 0 0 26px rgba(255, 59, 78, .75); animation: x-giat .22s ease-in-out infinite; }
.x-cau-nut.can b { position: relative; z-index: 1; }
.x-cau-dem { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255, 255, 255, .28); transform-origin: left center; animation: x-dem linear both; }
@keyframes x-giat { 50% { transform: scale(1.04); } }
@keyframes x-dem { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* Thẻ kết quả một lần quăng: con cá vừa câu được, hoặc sổng mất */
.x-cau-nen { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(6, 11, 31, .34); z-index: 3; }
.x-cau-nen[hidden] { display: none; }
.x-cau-the { position: relative; width: min(100%, 300px); display: grid; justify-items: center; gap: 4px; padding: 16px 16px 14px; border-radius: 22px; text-align: center; background: linear-gradient(180deg, #17255a, #0b1235); border: 2.5px solid #9FD0EA; color: var(--ink); box-shadow: 0 14px 40px rgba(6, 11, 31, .55); animation: x-the-no .38s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes x-the-no { from { opacity: 0; transform: scale(.7) rotate(-3deg); } to { opacity: 1; transform: none; } }
.x-cau-the img { width: min(78%, 210px); aspect-ratio: 160 / 100; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); animation: x-ca-lac 1.6s ease-in-out infinite; }
@keyframes x-ca-lac { 50% { transform: translateY(-5px) rotate(-2deg); } }
.x-cau-the h3 { margin: 2px 0 0; font: 800 22px/1.15 var(--dau); }
.x-cau-the p { margin: 0; font-size: 13.5px; line-height: 1.35; }
.x-cau-cm { font: 700 15px/1.2 var(--dau) !important; } .x-cau-cm b { color: var(--art); }
.x-cau-co { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; } .x-cau-co em { font-style: normal; padding: 2px 9px; border-radius: 999px; background: #FF5A7A; color: #fff; font: 700 11.5px/1.5 var(--dau); }
.x-cau-moc { padding: 6px 10px; border-radius: 12px; background: color-mix(in srgb, var(--art) 22%, transparent); border: 1px solid color-mix(in srgb, var(--art) 60%, transparent); }
.x-cau-the .nut { justify-content: center; margin-top: 6px; }
.x-cau-the .nut button { min-height: 40px; }
.x-cau-the.truot { border-color: #7C8BB8; } .x-cau-suyt { color: #FFD9A6; font-weight: 700; }
.x-cau-b0 { border-color: #9AA3B2; }
.x-cau-b2 { border-color: #5BD5FF; box-shadow: 0 0 34px rgba(91, 213, 255, .45), 0 14px 40px rgba(6, 11, 31, .55); }
.x-cau-b3 { border-color: #C9B4FF; background: linear-gradient(180deg, #2a1f6b, #100b3a); box-shadow: 0 0 44px rgba(201, 180, 255, .6), 0 14px 40px rgba(6, 11, 31, .55); }
.x-cau-b4 { border-color: #FFE45B; background: linear-gradient(180deg, #5a3a0c, #2a1503); box-shadow: 0 0 60px rgba(255, 228, 91, .75), 0 14px 40px rgba(6, 11, 31, .55); }
.x-cau-nhan-0 { background: #9AA3B2; } .x-cau-nhan-1 { background: #9FD0EA; } .x-cau-nhan-2 { background: #5BD5FF; } .x-cau-nhan-3 { background: #C9B4FF; } .x-cau-nhan-4 { background: linear-gradient(90deg, #FFE45B, #FF9F5B); }
/* Sổ câu cá */
.x-so-cau h3 { margin: 14px 0 6px; display: flex; align-items: center; gap: 8px; } .x-so-cau h3 small { font: 600 12.5px/1.2 var(--chu, inherit); opacity: .8; }
.x-ds-ca { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
.x-so-ca { display: grid; justify-items: center; gap: 2px; padding: 8px 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); text-align: center; }
.x-so-ca img { width: 96px; aspect-ratio: 160 / 100; object-fit: contain; }
.x-so-ca b { font: 700 14px/1.2 var(--dau); } .x-so-ca span { font-size: 11.5px; line-height: 1.25; opacity: .85; } .x-so-ca i { font-style: normal; font-size: 11px; color: var(--art); }
.x-so-ca.chua img { filter: brightness(0) invert(.82); opacity: .22; }
.x-so-ca.chua { border-style: dashed; }
.x-so-ca.x-cau-b3:not(.chua) { border-color: #C9B4FF; } .x-so-ca.x-cau-b4:not(.chua) { border-color: #FFE45B; } .x-so-ca.x-cau-b2:not(.chua) { border-color: #5BD5FF; }
.x-so-ca.x-cau-b1, .x-so-ca.x-cau-b2, .x-so-ca.x-cau-b3, .x-so-ca.x-cau-b4 { box-shadow: none; background: rgba(255, 255, 255, .06); }
.x-cau-mocs, .x-chuoi-moc { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.x-cau-mocs li, .x-chuoi-moc li { display: grid; gap: 1px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1.5px dashed color-mix(in srgb, var(--ink) 26%, transparent); font-size: 12.5px; line-height: 1.25; }
.x-cau-mocs li b, .x-chuoi-moc li b { font: 700 14px/1.2 var(--dau); } .x-cau-mocs li i { font-style: normal; opacity: .8; }
.x-cau-mocs li.dat, .x-chuoi-moc li.dat { border-style: solid; border-color: var(--art); background: color-mix(in srgb, var(--art) 18%, transparent); }
body.tinh .x-cau-nut.can, body.tinh .x-cau-the, body.tinh .x-cau-the img, body.tinh .x-chao { animation: none; }

/* ----- Điện thoại: cảnh làng phủ kín màn hình, chỉ còn thanh mục của app ở đáy (học từ mọi game di động: màn chơi là cả màn hình) ----- */
@media (max-width: 760px) {
  body[data-trang="xom"]:has(#x-choi[data-canh="lang"]) header > .ten, body[data-trang="xom"]:has(#x-choi[data-canh="lang"]) header > .toi { display: none; }
  body[data-trang="xom"]:has(#x-choi[data-canh="lang"]) header { position: static; padding: 0; border: 0; min-height: 0; background: none; }
  body[data-trang="xom"]:has(#x-choi[data-canh="lang"]) main { padding: 0; }
  body[data-trang="xom"]:has(#x-choi[data-canh="lang"]) { overflow: hidden; }
  body[data-trang="xom"]:has(#x-choi[data-canh="lang"]) .canh { display: none; }   /* cảnh làng đã phủ kín màn hình: tắt lớp trời sao, tàu bay của trang phía sau cho nhẹ máy */
  .x-lang-trang { margin: 0; animation: none !important; transform: none !important; }   /* khung trang của app trượt vào bằng transform; có transform thì cảnh ghim kín màn hình sẽ bám theo khung đó chứ không theo màn hình */
  .x-lang-trang .x-man.x-lang { position: fixed; left: 0; right: 0; top: 0; bottom: var(--x-day, calc(58px + env(safe-area-inset-bottom))); z-index: 2; border: 0; border-radius: 0; box-shadow: none; }
  .x-choi.x-lang-trang .x-man.x-lang canvas { height: 100%; min-height: 0; touch-action: none; }   /* cảnh kín màn hình: kéo ngón tay là kéo cảnh đi ngắm (24/11), không để trình duyệt cuộn trang */
  .x-lang-trang .x-hud { padding-top: max(6px, env(safe-area-inset-top)); }
  .x-lang-trang .x-choi-loi { display: none; }
  /* Dòng mời thành một viên nổi phía trên hàng dưới cùng của cảnh */
  .x-lang-trang #x-goi { position: fixed; left: 8px; right: 60px; bottom: calc(var(--x-day, 58px) + 72px); z-index: 3; pointer-events: none; }
  .x-lang-trang #x-goi .x-goi-nut { pointer-events: auto; width: auto; max-width: 100%; min-height: 36px; margin: 0; padding: 4px 14px; gap: 8px; border-radius: 999px; justify-content: flex-start; }
  .x-lang-trang #x-goi .x-goi-nut b { font-size: 14.5px; } .x-lang-trang #x-goi .x-goi-nut span { font-size: 11.5px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .x-lang-trang.co-khay #x-goi, .x-lang-trang:has(.x-nvx:not(.gon):not([hidden])) #x-goi { display: none; }
  /* Sổ tay làng đang mở đủ thì nó là lời dẫn chính: dòng mời nhường chỗ. Sổ tay thu gọn thì dòng mời nâng lên trên danh sách việc. */
  .x-lang-trang:has(.x-st:not(.gon)) #x-goi { display: none; }
  .x-lang-trang:has(.x-st.gon) #x-goi { bottom: calc(var(--x-day, 58px) + 108px); }
  /* 24/11/2026: dòng mời nằm ngay trên khung việc theo chiều cao thật của khung (máy đo, biến --x-nvx), và chừa trọn cột nút tròn góc phải
     (nút biểu cảm to tới 58 px khi đứng cạnh ai), để không còn đè lên khung Sổ tay hay nút biểu cảm. */
  /* Hàng biểu cảm (hoặc nhãn "đứng cạnh ai") bật ra ngang đúng tầm dòng mời: lúc đó dòng mời ẩn đi, không thì nó đè kín hàng biểu cảm (giám đốc 24/11). */
  .x-lang-trang:has(#x-bieu-hang:not([hidden])) #x-goi, .x-lang-trang:has(#x-bieu-gan:not([hidden])) #x-goi { display: none; }
  .x-lang-trang #x-goi, .x-lang-trang:has(.x-st.gon) #x-goi { right: 76px; bottom: calc(var(--x-day, 58px) + max(72px, var(--x-nvx, 60px) + 8px)); }
  .x-lang-trang .x-chat-moi { bottom: 116px; }
  /* Chat: thu vào nút tròn ở góc; mở ra thành tấm kéo lên từ đáy cảnh */
  .x-lang-trang .x-tron-chat { display: grid !important; }
  .x-lang-trang .x-chat { display: none; }
  .x-lang-trang .x-chat.mo { display: block; position: fixed; left: 0; right: 0; bottom: var(--x-day, calc(58px + env(safe-area-inset-bottom))); z-index: 4; margin: 0; padding: 10px 12px 12px; border-radius: 18px 18px 0 0; border: 0; border-top: 2px solid color-mix(in srgb, var(--art) 60%, transparent); background: rgba(6, 11, 31, .95); animation: x-tam-len .18s ease-out both; }
  .x-lang-trang .x-chat.mo .x-chat-tin { max-height: 34dvh; }
  .x-lang-trang .x-chat-dau { align-items: center; }
  .x-lang-trang .x-chat .x-chat-dong, .x-lang-trang .x-chat .x-chat-dong:hover { display: inline-block; margin: 0 0 0 auto; min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 34%, transparent); background: rgba(255, 255, 255, .08); color: var(--ink); font: 600 12px/1 var(--dau); box-shadow: none; transform: none; }
  .x-lang-trang .x-chat-dau span { margin-left: 8px; }
  .x-chao { top: 150px; }
}
/* ----- Nông trại (23/11/2026): mùa và trời trên thanh nổi, trang giỏ, thùng giao hàng, chuồng bò cừu ----- */
.x-hud-mua { text-decoration: none; color: inherit; }
.x-hud-mua b { font-size: 13px; }
#x-choi[data-mua] { position: relative; }
/* Lớp mưa phủ cả màn hình đã bỏ (23/11/2026 tối, giám đốc chê khó nhìn): mưa nay vẽ trong cảnh làng (xom-lang.js, veRoi), nằm dưới chữ và nút. */
body.tinh #x-choi[data-mua]::after { animation: none; }
.x-mua-dong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 12px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.x-mua-dong > svg { width: 34px; height: 34px; flex: none; }
.x-mua-dong > span { display: grid; gap: 1px; min-width: 0; flex: 1 1 200px; }
.x-mua-dong b { font: 700 15px/1.25 var(--dau); }
.x-mua-dong i { font-style: normal; font-size: 13px; opacity: .8; }
.x-mua-dong .btn { flex: none; margin-left: auto; }
.x-trai h3 { margin: 16px 0 6px; }
.x-gio { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.x-gio li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.x-gio img { width: 40px; height: 40px; flex: none; }
.x-gio span { display: grid; min-width: 0; flex: 1; }
.x-gio b { font: 700 14.5px/1.2 var(--dau); }
.x-gio i { font-style: normal; font-size: 12.5px; opacity: .75; }
.x-chuong { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.x-con { display: grid; gap: 4px; padding: 8px; border-radius: 16px; background: linear-gradient(#5a3d22, #3d2914); border: 1.5px solid #8a5f33; }
.x-con.doi { border-color: #ff9db1; }
.x-con img { width: 100%; aspect-ratio: 160 / 140; object-fit: contain; }
.x-con b { font: 700 15px/1.2 var(--dau); }
.x-con p { margin: 0; font-size: 12.5px; line-height: 1.35; opacity: .85; }
.x-con .nut { gap: 4px; flex-wrap: wrap; }
.x-tim { color: #ff7a9c; font-size: 13px; letter-spacing: -1px; }
.x-tim i { font-style: normal; color: rgba(255, 255, 255, .18); }
.x-con .x-tim { display: block; margin-top: -2px; }

/* ----- Đợt 2 (23/11/2026): hang mỏ, lò rèn ----- */
.x-hang-dau { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.x-hang-dau > span:first-child { display: grid; gap: 1px; min-width: 0; flex: 1; }
.x-hang-dau b { font: 700 16px/1.25 var(--dau); }
.x-hang-dau i { font-style: normal; font-size: 12.5px; opacity: .8; }
.x-sucb { position: relative; flex: none; width: 92px; height: 22px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; display: grid; place-items: center; }
.x-sucb i { position: absolute; inset: 0 auto 0 0; width: calc(var(--pt, 100) * 1%); background: linear-gradient(90deg, #5fd08a, #b8f27a); }
.x-sucb b { position: relative; font: 800 12.5px/1 var(--dau); color: #12351f; }
.x-hang-khung { position: relative; width: min(100%, 420px); aspect-ratio: 390 / 560; margin: 0 auto 10px; border-radius: 18px; overflow: hidden; background: #2a2230; }
.x-hang-nen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.x-hang-luoi { position: absolute; left: 6.4%; top: 12.5%; width: 87.2%; height: 75%; display: grid; grid-template-columns: repeat(var(--cot, 5), 1fr); grid-auto-rows: 1fr; gap: 2px; }
.x-da { display: grid; place-items: end center; min-height: 0; padding: 0; border: 0; background: none; border-radius: 10px; }
.x-da img { width: 92%; height: 92%; object-fit: contain; pointer-events: none; }
button.x-da:active { transform: scale(.92); }
.x-da.rung { animation: x-da-rung .18s linear 2; }
@keyframes x-da-rung { 25% { transform: translateX(-3px) rotate(-3deg); } 75% { transform: translateX(3px) rotate(3deg); } }
.x-da.lo img { animation: x-nhun 1.1s ease-in-out infinite; }
.x-vo-fx { position: fixed; width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 50; pointer-events: none; }
.x-cu-ds { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.x-cu { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.x-cu > img { width: 58px; height: 58px; flex: none; }
.x-cu > div { display: grid; gap: 4px; min-width: 0; flex: 1; }
.x-cu b { font: 700 15.5px/1.2 var(--dau); }
.x-cu p { margin: 0; font-size: 12.5px; opacity: .8; }
.x-can { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; font-weight: 700; }
.x-can span { display: inline-flex; align-items: center; gap: 3px; }
.x-can img, .x-can svg { width: 20px; height: 20px; }
.x-can .thieu { color: #ff9db1; } .x-can .du { color: #9ff0b8; }
.x-tot { color: #FFD25B; font-weight: 700; }

/* ----- Đợt 3 (23/11/2026): dân làng, bếp, lễ hội ----- */
.x-dan-ds, .x-ct-ds { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.x-dan { display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.x-dan-dau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.x-dan-dau b { font: 700 15.5px/1.25 var(--dau); }
.x-dan-dau i { font-style: normal; font-size: 12.5px; opacity: .75; }
.x-dan-dau .x-tim { flex-basis: 100%; }
.x-biet { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; font-weight: 700; }
.x-biet span { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.x-biet .thich { color: #ffb3c8; } .x-biet .ua { color: #9ff0b8; } .x-biet .ghet { color: #b9b9c9; }
.x-tang { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.x-tang-m { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; min-height: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1.5px solid transparent; font: inherit; color: inherit; }
.x-tang-m:hover { border-color: rgba(255, 255, 255, .3); }
.x-tang-m img { width: 40px; height: 40px; }
.x-tang-m span { font-size: 11.5px; font-weight: 700; line-height: 1.2; text-align: center; }
.x-tang-m i { position: absolute; top: 3px; right: 6px; font-style: normal; font-size: 11px; font-weight: 800; opacity: .8; }
.x-ct { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.x-ct.khoa { opacity: .55; }
.x-ct > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.x-ct b { font: 700 15px/1.2 var(--dau); }
.x-ct p { margin: 0; font-size: 12.5px; }
.x-ct p .du { color: #9ff0b8; } .x-ct p .thieu { color: #ff9db1; }
.x-ct i { font-style: normal; font-size: 12px; opacity: .75; }
.x-hoi-bang { margin: 6px 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.x-hoi-bang li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13.5px; }
.x-hoi-bang li.toi { background: rgba(255, 210, 91, .18); }

/* ----- Đợt 4 (23/11/2026): dựng lại làng ----- */
.x-du-ds { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; }
.x-du-an { padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); display: grid; gap: 6px; }
.x-du-an.xong { background: rgba(159, 240, 184, .12); }
.x-du-an > p { margin: 0; font-size: 12.5px; opacity: .85; }
.x-du-dau { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.x-du-dau b { font: 700 16px/1.2 var(--dau); }
.x-xong { font-size: 12px; font-weight: 800; color: #9ff0b8; }
.x-gop { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.x-gop li { display: grid; grid-template-columns: 1fr; gap: 3px; }
.x-da-ten { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.x-da-ten img, .x-da-ten svg { width: 22px; height: 22px; }
.x-da-ten i { margin-left: auto; font-style: normal; font-weight: 700; }
.x-gop-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.x-gop-nut i { font-style: normal; font-size: 12px; opacity: .7; }
.x-ai-gop { font-size: 12px !important; }

/* ----- Sổ tay làng (23/11/2026 tối): thẻ ghim trên đầu danh sách việc của cảnh làng ----- */
.x-nvx.co-st { width: min(272px, 72%); }
.x-st { display: grid; gap: 5px; padding: 7px 8px 8px; border-radius: 12px; background: linear-gradient(160deg, rgba(20, 92, 78, .95), rgba(11, 48, 60, .95)); border: 1.5px solid #5BF2D0; box-shadow: 0 0 0 2px rgba(91, 242, 208, .18); }
.x-st + .x-nvx-dau { margin-top: 2px; }
.x-nvx .x-st-dau { display: flex; align-items: center; gap: 6px; width: 100%; padding: 0; background: none; color: var(--ink); text-align: left; }
.x-st-dau b { font: 700 13px/1.1 var(--dau); color: #5BF2D0; white-space: nowrap; }
.x-st-dau span { flex: 1; min-width: 0; font-size: 11px; font-weight: 600; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-st-dau u { margin-left: auto; flex: none; text-decoration: none; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .16); font: 700 13px/18px var(--dau); text-align: center; }
.x-st-ten { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.x-st-ten b { font: 700 15.5px/1.2 var(--dau); color: #fff; }
.x-st-td, .x-st-dau .x-st-td { flex: none; font-style: normal; font: 700 12px/1 var(--dau); padding: 3px 7px; border-radius: 999px; background: rgba(91, 242, 208, .22); color: #bffbea; }
.x-st-loi { margin: 0; font-size: 12.5px; line-height: 1.38; font-weight: 600; color: #f2fffb; }
.x-st-hang { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.x-nvx .x-st-nut { min-height: 30px; padding: 0 14px; border-radius: 999px; background: #5BF2D0; color: #06332A; font: 700 13px/1 var(--dau); }
.x-nvx .x-st-nut:hover { background: #8ff7df; }
.x-nvx .x-st-nut.chinh { background: var(--art); color: var(--nen2); }
.x-st-qua { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #FFE45B; }
.x-st-qua .x-ic { width: 15px; height: 15px; }
.x-st.gon { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 4px 5px 4px 7px; }
.x-st.gon .x-nvx .x-st-nut, .x-st.gon .x-st-nut { min-height: 24px; padding: 0 9px; font-size: 11.5px; }
.x-st.gon .x-st-dau span { font-size: 12px; color: #fff; opacity: 1; }
.x-st-muc { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.x-st-muc li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13.5px; }
.x-st-muc li b { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font: 700 12px/1 var(--dau); }
.x-st-muc li.xong { opacity: .7; }
.x-st-muc li.xong b { background: #9ff0b8; color: #123; }
.x-st-muc li.dang { background: rgba(91, 242, 208, .16); outline: 1.5px solid #5BF2D0; font-weight: 700; }
#x-nhiem-vu > .x-st-loi { font-size: 13.5px; font-weight: 400; color: inherit; margin: 4px 0; }

/* ----- Thẻ vật nuôi: việc hôm nay dạng tích (23/11/2026 tối) ----- */
.x-chuong { grid-template-columns: minmax(0, 1fr); }
.x-con { grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 6px 10px; }
.x-con > img { width: 78px; }
.x-con > div { display: grid; gap: 2px; min-width: 0; }
.x-con > .x-con-viec { grid-column: 1 / -1; }
.x-con .phu { font-size: 12px; }
.x-con-hn { font-weight: 700; opacity: 1 !important; margin-top: 4px !important; }
.x-con-viec { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.x-con-viec li { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.x-con-viec li.xong { background: rgba(159, 240, 184, .14); }
.x-con-tich { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .45); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; color: #123; }
.x-con-viec li.xong .x-con-tich { background: #9ff0b8; border-color: #9ff0b8; }
.x-con-viec span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.x-con-viec span b { font: 700 13.5px/1.2 var(--dau); }
.x-con-viec span em { font-style: normal; font-size: 11.5px; line-height: 1.3; opacity: .8; }
.x-con-viec button { flex: none; margin: 0; }
.x-cach-nuoi { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1.5px dashed rgba(255, 255, 255, .25); margin: 0 0 8px; }
.x-cach-nuoi > b { font: 700 15px/1.2 var(--dau); color: var(--art); }
.x-cach-nuoi ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.4; }
.x-cach-gon { margin: 4px 0 8px; }
.x-cach-gon summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 4px 0; }
.x-cach-gon .x-cach-nuoi > b { display: none; }

/* ----- Bảng đơn hàng của dân làng (23/11/2026 tối) ----- */
.x-don-moi { display: grid; gap: 2px; margin: 4px 0 6px; padding: 9px 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(255, 196, 107, .22), rgba(255, 196, 107, .08)); border: 1.5px solid var(--art); color: inherit; text-decoration: none; }
.x-don-moi b { font: 700 15px/1.2 var(--dau); color: var(--art); }
.x-don-moi span { font-size: 12.5px; opacity: .9; }
.x-don-ds { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.x-don { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1.5px solid transparent; }
.x-don.du { border-color: var(--art); background: rgba(255, 196, 107, .1); }
.x-don.xong { opacity: .65; }
.x-don > img { width: 46px; height: 46px; flex: none; }
.x-don > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.x-don > div b { font: 700 14.5px/1.25 var(--dau); }
.x-don p { margin: 0; }
.x-don-tra { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #FFE45B; }
.x-don-tra .x-ic { width: 15px; height: 15px; }
.x-don .phu { font-size: 12px; }
.x-don > button { flex: none; margin: 0; }
.x-don-ok { flex: none; font-size: 12px; font-weight: 800; color: #9ff0b8; }

/* Trại giống Chú Bảy (23/11/2026 tối): mỗi loài một thẻ có hình, giá, ăn gì, cho gì, nút Mua. */
.x-giong-ds { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.x-giong { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 10px; border-radius: 16px; background: linear-gradient(#5a3d22, #3d2914); border: 1.5px solid #8a5f33; }
.x-giong > img { width: 92px; aspect-ratio: 160 / 140; object-fit: contain; }
.x-giong > div { min-width: 0; display: grid; gap: 4px; }
.x-giong b { font-size: 1.05rem; }
.x-giong ul { margin: 2px 0 4px; padding-left: 18px; font-size: .9rem; line-height: 1.4; }
.x-giong button { justify-self: start; }

/* Biểu cảm trong làng (23/11/2026 tối): nút tròn đầu cụm góc phải cảnh làng, hàng sáu biểu cảm bung sang trái; đứng cạnh ai thì nút to ra, sáng lên, kèm viên tên. */
.x-bieu { position: relative; display: grid; justify-items: end; }
.x-goc .x-tron.x-tron-bieu, .x-goc .x-tron.x-tron-bieu:hover, .x-goc .x-tron.x-tron-bieu:active { width: 50px; height: 50px; border: 2px solid color-mix(in srgb, var(--art) 70%, transparent); background: rgba(6, 11, 31, .78); transition: transform .2s, box-shadow .2s, background .2s; }
.x-tron-bieu i { font-style: normal; font-size: 26px; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.x-goc .x-tron.x-tron-bieu.gan { width: 58px; height: 58px; border-color: var(--art); background: color-mix(in srgb, var(--art) 34%, rgba(6, 11, 31, .82)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--art) 30%, transparent), 0 0 22px color-mix(in srgb, var(--art) 70%, transparent); animation: x-bieu-goi 1.3s ease-in-out infinite; }
.x-tron-bieu.gan i { font-size: 30px; }
.x-tron-bieu[aria-expanded="true"] { background: var(--art) !important; animation: none !important; }
@keyframes x-bieu-goi { 50% { transform: scale(1.08); } }
.x-bieu-gan { display: block; position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); max-width: 210px; min-height: 32px; margin: 0; padding: 4px 12px; border: 1.5px solid var(--art); border-radius: 999px; background: rgba(6, 11, 31, .86); color: var(--ink); font: 600 12.5px/1.2 var(--dau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(6, 11, 31, .4); cursor: pointer; animation: x-tam-len .2s ease-out both; }
.x-bieu-gan b { color: var(--art); }
.x-bieu-gan, .x-bieu-hang { z-index: 5; }   /* nổi trên Sổ tay làng và danh sách việc (hai tấm đó nằm sau trong trang nên mặc định đè lên) */
.x-bieu-gan[hidden], .x-bieu-hang[hidden] { display: none; }
.x-bieu-hang { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 18px; background: rgba(6, 11, 31, .9); border: 1.5px solid color-mix(in srgb, var(--art) 60%, transparent); box-shadow: 0 8px 24px rgba(6, 11, 31, .45); animation: x-bieu-bung .22s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: right center; }
@keyframes x-bieu-bung { from { opacity: 0; transform: translateY(-50%) scale(.6); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.x-bieu-hang button, .x-the-bieu button { display: grid; justify-items: center; align-content: center; gap: 1px; width: 46px; min-height: 52px; margin: 0; padding: 3px 0 2px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, .08); color: var(--ink); box-shadow: none; transform: none; cursor: pointer; }
.x-bieu-hang button:hover, .x-bieu-hang button:active, .x-the-bieu button:hover, .x-the-bieu button:active { background: color-mix(in srgb, var(--art) 30%, transparent); transform: scale(1.06); }
.x-bieu-hang i, .x-the-bieu i { font-style: normal; font-size: 25px; line-height: 1.1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.x-bieu-hang i img, .x-the-bieu i img { display: block; width: 28px; height: 28px; }   /* biểu cảm vẽ riêng (ngoáy mũi): không có trong bộ emoji */
.x-bieu-hang { gap: 3px; } .x-bieu-hang button { width: 42px; }   /* bảy biểu cảm vẫn vừa một hàng trên điện thoại 360–390 px */
.x-bieu-hang b, .x-the-bieu b { font: 600 9.5px/1.1 var(--dau); white-space: nowrap; opacity: .9; }
.x-the-bieu-dau { margin: 4px 0 6px; font-size: 13.5px; }
.x-the-bieu { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.x-the-bieu button { width: 50px; min-height: 56px; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); }
body.tinh .x-tron-bieu.gan, body.tinh .x-bieu-hang { animation: none; }

/* Tặng quà: lưới món trong giỏ hoặc trong kho, chọn số lượng */
.x-qua .x-tab-tiem { margin-top: 4px; }
.x-qua-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 44dvh; overflow-y: auto; padding: 2px; }
.x-qua-o { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 0; margin: 0; padding: 8px 4px 6px; border: 2px solid var(--vien, rgba(255, 255, 255, .2)); border-radius: 14px; background: radial-gradient(circle at 50% 30%, #1D2A63, #0A1230 75%); color: var(--ink); box-shadow: none; transform: none; cursor: pointer; text-align: center; }
.x-qua-o img { width: 54px; height: 54px; object-fit: contain; }
.x-qua-o b { font: 700 12.5px/1.15 var(--dau); }
.x-qua-o i { font-style: normal; font-size: 11px; opacity: .8; }
.x-qua-o .x-bac { position: absolute; top: 4px; left: 4px; font-size: 9.5px; }
.x-qua-o.chon { border-color: var(--art); box-shadow: 0 0 0 3px color-mix(in srgb, var(--art) 35%, transparent), 0 0 16px color-mix(in srgb, var(--art) 45%, transparent); }
.x-qua-so { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; flex-wrap: wrap; }
.x-qua-so > span { font-weight: 600; }
.x-qua-so > button:not(.nho) { width: 40px; min-height: 40px; margin: 0; padding: 0; border-radius: 50%; font: 800 20px/1 var(--dau); }
.x-qua-so > b { min-width: 34px; text-align: center; font: 800 20px/1 var(--dau); color: var(--art); }
.x-qua .nut .chinh { white-space: normal; }

/* Sổ nhà mình: dòng tổng tuần, lọc nhanh, danh sách mới nhất trước */
.x-sn-tuan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
.x-sn-tuan div { display: grid; gap: 1px; padding: 8px 8px 7px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); text-align: center; }
.x-sn-tuan b { font: 800 22px/1.05 var(--dau); }
.x-sn-tuan span { font-size: 11.5px; line-height: 1.2; opacity: .85; }
.x-sn-tuan div:nth-child(1) b { color: #FF9DB1; } .x-sn-tuan div:nth-child(2) b { color: #7FD0FF; } .x-sn-tuan div:nth-child(3) b { color: #FFD25B; }
.x-sn-nhieu { margin: 0 0 8px; font-size: 13px; line-height: 1.35; } .x-sn-nhieu b { color: var(--art); }
.x-sn-loc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; padding-bottom: 2px; }
.x-sn-loc::-webkit-scrollbar { display: none; }
.x-sn-loc button { flex: 0 0 auto; min-height: 34px; margin: 0; padding: 4px 13px; border-radius: 999px; font: 700 13px/1 var(--dau); white-space: nowrap; box-shadow: none; }
.x-sn-loc button.chon { background: var(--art); color: #0A1230; border-color: var(--art); }
.x-sn-ds { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.x-sn { display: grid; grid-template-columns: 42px minmax(0, 1fr) 38px; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); border-left-width: 5px; }
.x-sn-trom { border-left-color: #FF7A93; } .x-sn-cham { border-left-color: #5FC8FF; } .x-sn-qua { border-left-color: #FFD25B; }
.x-sn.toi { background: rgba(255, 255, 255, .025); border-style: dashed; border-left-style: solid; }
.x-sn.moi { background: color-mix(in srgb, var(--art) 14%, transparent); }
.x-sn.moi .x-sn-chu span::after { content: " · mới"; color: var(--art); font-weight: 700; }
.x-sn-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .12); }
.x-sn-chu { min-width: 0; }
.x-sn-chu p { margin: 0; font-size: 14px; line-height: 1.3; }
.x-sn-chu b { font-family: var(--dau); }
.x-sn-chu span { font-size: 11.5px; opacity: .75; }
.x-sn-mon { width: 38px; height: 38px; object-fit: contain; }
.x-sn-ic { font-style: normal; font-size: 24px; text-align: center; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.x-khay-so { flex: none; padding: 4px 10px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--art) 60%, transparent); color: var(--ink); text-decoration: none; font: 600 12px/1 var(--dau); white-space: nowrap; }
.x-nha-tom { line-height: 1.45; } .x-nha-tom b { color: var(--art); }
.x-sn-moi { background: linear-gradient(160deg, rgba(127, 208, 255, .2), rgba(127, 208, 255, .06)); border-color: #7FD0FF; } .x-sn-moi b { color: #9FDCFF; }

/* Hộp Nhà của bạn: kể tên người tặng quà (24/11/2026) */
.x-nha-qua { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 4px; }
.x-nha-qua li { padding: 5px 9px; border-radius: 10px; background: rgba(255, 228, 91, .12); font-size: 13.5px; line-height: 1.35; }
.x-nha-gan { display: block; }

/* ===== Sự kiện theo lịch và trò chơi phụ (25/11/2026) ===== */
.x-hud-sk { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(6, 11, 31, .6); color: var(--ink); text-decoration: none; font: 600 11px/1.1 var(--dau); white-space: nowrap; }
.x-hud-sk span { font-size: 16px; line-height: 1; }
.x-hud-sk i { font-style: normal; opacity: .75; }
.x-hud-sk.dang { background: linear-gradient(90deg, #C9532B, #E8892F); color: #fff; box-shadow: 0 0 0 2px rgba(255, 210, 120, .45); animation: x-sk-nhun 2.4s ease-in-out infinite; }
.x-hud-sk.dang i { opacity: .9; }
@keyframes x-sk-nhun { 0%, 82%, 100% { transform: translateY(0); } 88% { transform: translateY(-3px); } 94% { transform: translateY(0); } }
.x-sk-the { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 6px 0 10px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(201, 83, 43, .28), rgba(58, 34, 64, .5)); border: 1.5px solid rgba(255, 180, 90, .35); }
.x-sk-the > img { width: 150px; max-width: 40%; height: auto; flex: none; filter: drop-shadow(0 6px 14px rgba(255, 140, 50, .35)); }
.x-sk-the > div { flex: 1 1 220px; min-width: 0; }
.x-sk-the p { margin: 4px 0; }
.x-sk-con { font: 700 13px/1.3 var(--dau); color: #FFD9A6; }
.x-sk-choi { margin: 6px 0 2px; font-size: 17px; padding: 10px 22px; }
.x-sk-lich { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.x-sk-lich li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.x-sk-lich li.dang { background: rgba(255, 170, 80, .16); border: 1px solid rgba(255, 180, 90, .4); }
.x-sk-lich li > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.x-sk-lich b { font: 700 14.5px/1.25 var(--dau); }
.x-sk-lich i { font-style: normal; font-size: 12.5px; opacity: .8; }
.x-sk-lich small { font-size: 12.5px; opacity: .7; }
.x-sk-hinh { font-size: 24px; line-height: 1.1; flex: none; }
.x-sk-nhan { font-style: normal; font: 700 11px/1 var(--dau); padding: 4px 8px; border-radius: 999px; background: #E8892F; color: #fff; white-space: nowrap; flex: none; }
/* Màn chơi: phủ kín màn hình */
body.x-skg-mo { overflow: hidden; }
.x-skg { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #1B1733; color: #fff; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.x-skg-dau { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; font: 700 15px/1.2 var(--dau); }
.x-skg-dau b { flex: 1; }
.x-skg-diem { color: #FFE45B; font-size: 17px; }
.x-skg-gio { min-width: 40px; text-align: right; color: #CFE6FF; }
.x-skg-dong { min-height: 38px; min-width: 38px; padding: 0; border-radius: 999px; font-size: 16px; }
.x-skg-thoi { height: 6px; margin: 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.x-skg-thoi i { display: block; height: 100%; background: linear-gradient(90deg, #FFB347, #FF6B3D); border-radius: 99px; }
.x-skg canvas { flex: 1; width: 100%; min-height: 0; display: block; touch-action: none; }
.x-skg-goi { margin: 0; padding: 6px 12px 10px; text-align: center; font-size: 12.5px; opacity: .75; }
.x-skg-ket { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 8, 24, .62); padding: 16px; }
.x-skg-ket[hidden] { display: none; }
.x-skg-the { width: min(92vw, 380px); padding: 18px 18px 16px; border-radius: 20px; background: #2A1F3D; border: 2px solid rgba(255, 180, 90, .5); text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.x-skg-the h2 { margin: 6px 0 4px; }
.x-skg-to { margin: 4px 0; font: 800 48px/1 var(--dau); color: #FFE45B; }
.x-skg-to small { font-size: 16px; color: #fff; opacity: .8; }
.x-skg-the .nut { justify-content: center; margin-top: 12px; }
.x-skg-the h2 { justify-content: center; } .x-skg-the h2::before { display: none; }

/* ===== Học tiếng Trung mỗi ngày (25/11/2026) ===== */
.x-hud-muc-hang { flex-wrap: wrap; row-gap: 4px; }
.x-hud-tq.dang { background: linear-gradient(90deg, #C23B3B, #E0663A); }
.x-hud-tq.xong { background: rgba(6, 11, 31, .6); box-shadow: none; animation: none; }
.x-tq { --tq-do: #E0663A; }
.x-tq-tien { display: grid; gap: 4px; margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.x-tq-tien > span:first-child { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.x-tq-tien b { font: 700 16px/1.25 var(--dau); }
.x-tq-tien i { font-style: normal; opacity: .8; font-size: 13px; }
.x-tq-tien small { font-size: 12.5px; opacity: .8; }
.x-tq-lich { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.x-tq-lich span { display: grid; place-items: center; min-width: 46px; padding: 4px 6px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 12px; }
.x-tq-lich b { font: 700 11px/1.2 var(--dau); opacity: .75; }
.x-tq-hom, .x-tq-xong { margin: 6px 0; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(194, 59, 59, .3), rgba(58, 34, 64, .5)); border: 1.5px solid rgba(255, 150, 110, .35); }
.x-tq-xong { display: flex; gap: 12px; align-items: center; background: rgba(80, 200, 140, .14); border-color: rgba(120, 230, 170, .35); }
.x-tq-xong p { margin: 2px 0 0; }
.x-tq-dau { font-size: 30px; line-height: 1; }
.x-tq-bat { font-size: 17px; padding: 10px 24px; }
.x-tq-chon-bai { display: grid; gap: 4px; margin: 8px 0; font-size: 13.5px; }
.x-tq-chon-bai select { max-width: 100%; }
.x-tq-cai { margin-top: 12px; } .x-tq-cai summary { cursor: pointer; font: 700 14px/1.3 var(--dau); }
.x-tq-buoc { margin: 0 0 6px; font: 700 13px/1.2 var(--dau); opacity: .8; }
.x-tq-thoi { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 12px; }
.x-tq-thoi i { display: block; height: 100%; width: calc(var(--pt, 0) * 1%); background: linear-gradient(90deg, #FFB347, #E0663A); }
.x-tq-the, .x-tq-de { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 12px; border-radius: 18px; background: #FFF8EC; color: #3A2418; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.x-tq-han { font: 700 52px/1.1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif; color: #B3261E; }
.x-tq-han.to { font-size: 76px; }
.x-tq-py, .x-tq-de i { font-style: normal; font-size: 22px; color: #6B4A2E; }
.x-tq-nghia { margin: 0; font: 700 20px/1.3 var(--dau); color: #3A2418; }
.x-tq-loa { min-height: 42px; padding: 6px 16px; border-radius: 999px; }
.x-tq-loa.to { font-size: 40px; min-height: 80px; min-width: 80px; }
.x-tq-hoi { text-align: center; font: 700 15px/1.3 var(--dau); margin: 12px 0 8px; }
.x-tq-cac { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-tq-pa { min-height: 56px; padding: 8px; font-size: 15px; line-height: 1.25; white-space: normal; }
.x-tq-pa.han { font: 700 30px/1.1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.x-tq-pa.py { font-size: 19px; }
.x-tq-pa.dung { background: #2FA36B; color: #fff; border-color: #2FA36B; opacity: 1; }
.x-tq-pa.sai { background: #C8433A; color: #fff; border-color: #C8433A; opacity: 1; }
.x-tq-giai { margin: 10px 0 4px; padding: 8px 12px; border-radius: 12px; font-size: 14.5px; }
.x-tq-giai.dung { background: rgba(47, 163, 107, .2); } .x-tq-giai.sai { background: rgba(200, 67, 58, .2); }
.x-tq-ket { text-align: center; } .x-tq-ket h2 { justify-content: center; } .x-tq-ket h2::before { display: none; } .x-tq-ket .nut { justify-content: center; }
/* Kiểm tra trắc nghiệm tiếng Trung (25/11/2026) */
.x-tq-kt { margin: 14px 0 6px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .12); }
.x-tq-kt h3 { margin: 0 0 4px; }
.x-tq-pa.chon { background: #5A6CFF; color: #fff; border-color: #5A6CFF; opacity: 1; }
.x-tq-thoi.kt i { background: linear-gradient(90deg, #7FA8FF, #5A6CFF); }
.x-tq-sai { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.x-tq-sai li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: rgba(200, 67, 58, .14); }
.x-tq-sai b { font: 700 24px/1.1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.x-tq-sai i { font-style: normal; opacity: .85; }
.x-tq-sai span { flex: 1; min-width: 0; font-size: 14px; }
.x-tq-loa.nho { min-height: 34px; padding: 2px 10px; }
.x-tq-the .x-tq-loa, .x-tq-de .x-tq-loa { background: #B3261E; color: #fff; border: 0; font-weight: 800; box-shadow: 0 4px 12px rgba(179, 38, 30, .35); opacity: 1; }
/* Phông chữ học tiếng Trung (25/11/2026): chữ Hán Noto Sans SC, phiên âm Noto Sans (đủ dấu thanh) */
.x-tq [lang="zh-CN"], .x-tq-han, .x-tq-pa.han, .x-tq-sai b { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif; font-weight: 700; }
.x-tq-py, .x-tq-de i, .x-tq-pa.py, .x-tq-sai i, .x-tq-giai { font-family: "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif; }
.x-tq-pa.py { font-weight: 600; letter-spacing: .01em; }
.x-tq-pa.han { font-weight: 700; }
