/* Verro Garden v2 look (art and layout by An, 25/11/2026). Loaded AFTER the styles in index.html, so it wins.
   Part 1: colours, sizes, fonts (tokens). Part 2: the v2 screens (garden on the ground, sky, tab bar, sheets, shop wall).
   Part 3: how the game's own pieces (cards, buttons, sheets, shop, login) sit inside the v2 frame.
   Everything is drawn on a 390-wide frame (#app.ung-dung) scaled to the phone by --k (set in lib/v2.js). */

/* ===== 1. tokens ===== */
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/art2/phong/nunito-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/art2/phong/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/art2/phong/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* khung thiet ke: moi so do tinh tren be ngang 390, ca khung duoc phong theo man hinh that (bien --k do ung-dung.js dat) */
  --rong: 390px;
  --k: 1;

  /* chu */
  --kieu-chu: "Nunito", "Segoe UI", system-ui, sans-serif;
  --co-0: 11px; --co-1: 12.5px; --co-2: 14px; --co-3: 15.5px; --co-4: 18px; --co-5: 22px;
  --dam: 800; --rat-dam: 900; --vua: 700;

  /* bo goc, khoang cach */
  --bo-nut: 14px; --bo-the: 18px; --bo-vien: 999px; --bo-nho: 10px;
  --le: 10px; --kc: 8px;

  /* mau dung chung (bang mau game dang co) */
  --vang: #FFB938; --vang-dam: #C98A1B; --chu-tren-vang: #3A2A08;
  --xanh-nut: #43B84B; --xanh-nut-dam: #2E8C36;   /* xanh la tuoi (anh An 25/11: mau cu #3F8F4A sam qua) */
  /* nut chinh tuoi, noi tren nen co (anh An 25/11: "vang tuoi voi xanh la tuoi"): mat sang -> day dam, vien trang mong */
  --nut-vang: linear-gradient(180deg, #FFE45C 0%, #FFC21A 55%, #FFAE00 100%); --nut-vang-day: #C77D00;
  --nut-xanh: linear-gradient(180deg, #7DF06A 0%, #2FCB45 55%, #16AE33 100%); --nut-xanh-day: #0E7A24; --chu-tren-xanh: #FFFFFF;
  --nut-vien: rgba(255, 255, 255, .8);
  --troi-mua: rgba(52, 70, 96, .32);              /* troi sam khi mua */
  --giot-vien: rgba(255, 255, 255, .9);           /* vien sang quanh giot mua cho noi tren troi sam */
  --sao-sang: rgba(255, 236, 160, .9);            /* quang sang quanh sao dem */
  --sang-xin: rgba(255, 226, 120, .95);           /* anh vang quanh do trang tri bac Xin */
  --den-sang: rgba(255, 204, 92, .95);            /* quang den long */
  --cong-sang: rgba(92, 214, 255, .95);           /* quang cong nang luong */
  --bong-vat: drop-shadow(0 3px 2px rgba(40, 26, 14, .28));     /* bong do trang tri tren dat */
  --do: #E8546B; --co: #6CC070;
  --gem: #1E78D6; --verro-nen: #1C1F5E; --verro-vien: #7B5CFF;
  --trang: #FFFFFF;
  --nhan-o: rgba(40, 26, 14, .78);
  --beta: linear-gradient(90deg, #22E4FF, #FF3DF2);       /* nhan BETA cua game dang co */
  /* vien noi tren nen troi (chi so, dai gio vang, nut tron, nut khu): trang mo ban ngay, xanh dem trong ban dem */
  --nen-noi: rgba(255, 255, 255, .93); --vien-noi: rgba(255, 255, 255, 0);
  /* tuong go cua gian hang (bang mau dat cua game) */
  --go-1: #B5835A; --go-2: #8E6040; --go-vien: #6E4A30; --chu-go: #FFF4E0; --chu-go-phu: #F6DDB8;
  --ke-nen-1: #FFF6E4; --ke-nen-2: #F5E2C2; --ke-chu: #4A3220; --ke-chu-phu: #7A5E44;      /* tuong quay Cua hang: kem am, chu nau dam */

  /* nen sang (mac dinh): the trang, chu dam */
  --the: #FFFFFF; --the-2: #F3F6FA; --vien: #DCE3EC;
  --chu: #21384A; --chu-phu: #5B7486; --chu-nhan: #2C6A35;
  --bong: 0 3px 12px rgba(33, 56, 74, .16);
  --mo-nen: rgba(20, 30, 60, .5);

  /* troi theo buoi: bon dai mau */
  --troi-sang: linear-gradient(180deg, #5AA6E8 0%, #8CC6F2 26%, #C8E6F8 52%, #FFE9C9 80%, #FFF3DC 100%);
  --troi-trua: linear-gradient(180deg, #2E86DE 0%, #58A8EE 28%, #9BD0F7 56%, #D4EEFD 82%, #F2FAFF 100%);
  --troi-chieu: linear-gradient(180deg, #4B3A8C 0%, #9B5AA6 20%, #E9789A 42%, #FFA86B 62%, #FFD59A 80%, #FFF0D2 100%);
  --troi-toi: radial-gradient(120% 60% at 80% 0%, #1A2466 0%, rgba(12, 20, 51, 0) 60%), linear-gradient(180deg, #060A1C, #0C1433);

  /* kich thuoc canh vuon (diem anh thiet ke) */
  --o-rong: 64px; --o-cao: 47px; --o-kc: 8px; --o-hang: 15px;
  --cham: 44px;
}

/* buoi toi: bang mau neon cua game */
html.night, .ung-dung[data-buoi="toi"] {
  --the: #121A3E; --the-2: #1A2452; --vien: #2C3A7A;
  --chu: #E9EDFF; --chu-phu: #A6B1D8; --chu-nhan: #2FE6A0;
  --bong: 0 3px 14px rgba(0, 0, 0, .45);
  --mo-nen: rgba(2, 4, 16, .66);
  --nen-noi: rgba(18, 26, 62, .72); --vien-noi: rgba(151, 163, 204, .22);
  --go-1: #7A5436; --go-2: #553822; --go-vien: #3A2616;
  --ke-nen-1: #3C2E4E; --ke-nen-2: #2C2240; --ke-chu: #FFF1DC; --ke-chu-phu: #E2CFB4;
}

/* ===== 2. v2 screens ===== */
/* ---------- khung: thiet ke tren be ngang 390 roi phong ca khung theo man hinh ---------- */
.ung-dung {
  position: absolute; left: 50%; top: 0; width: var(--rong); height: calc(100dvh / var(--k));
  margin-left: calc(var(--rong) / -2); transform: scale(var(--k)); transform-origin: top center;
  display: flex; flex-direction: column; overflow: hidden; background: var(--troi-trua); color: var(--chu);
}
.ung-dung[data-buoi="sang"] { background: var(--troi-sang); }
.ung-dung[data-buoi="chieu"] { background: var(--troi-chieu); }
.ung-dung[data-buoi="toi"] { background: var(--troi-toi), #060A1C; }
.man { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.man::-webkit-scrollbar { display: none; }

/* ---------- dau: bang chi so, giong nhau o moi man ---------- */
/* ban 2: dau man nam thang tren nen troi, khong boc the */
.dau { position: relative; z-index: 3; padding: 9px 12px 0; color: var(--trang); }
.dau-1 { display: flex; align-items: center; gap: 8px; height: 32px; }
.dau-1 > img { width: 26px; height: 26px; border-radius: 50%; }
.dau-1 b { font-size: 21px; font-weight: var(--rat-dam); letter-spacing: -.3px; text-shadow: 0 1px 3px rgba(20, 30, 60, .35); }
.nhan-thu { position: relative; height: 18px; padding: 0 6px; border-radius: 8px; background: var(--beta); color: var(--trang); font-size: 9px; font-weight: var(--rat-dam); letter-spacing: .8px; display: flex; align-items: center; }
.nhan-thu::before { content: ""; position: absolute; left: -8px; right: -8px; top: -13px; bottom: -13px; }          /* vung cham 44 */
.dau-phai { margin-left: auto; display: flex; gap: 7px; }
.tron { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--nen-noi); border: 1px solid var(--vien-noi); color: var(--chu); font-size: var(--co-2); font-weight: var(--rat-dam); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(20, 30, 60, .16); }
.tron::before { content: ""; position: absolute; inset: -6px; }
.tron img { width: 19px; height: 19px; object-fit: contain; }
.tron.nn { font-size: var(--co-0); letter-spacing: .02em; }
/* bang Huong dan: hang chon ngon ngu */
.dau-2 { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.vong-cap { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--vang) calc(var(--pt) * 1%), var(--nen-noi) 0); box-shadow: 0 2px 6px rgba(20, 30, 60, .16); }
.vong-cap b { width: 30px; height: 30px; border-radius: 50%; background: var(--vang); color: var(--chu-tren-vang); font-size: var(--co-3); font-weight: var(--rat-dam); display: flex; align-items: center; justify-content: center; }
.vien { height: 38px; padding: 0 13px 0 9px; border-radius: 19px; background: var(--nen-noi); border: 1px solid var(--vien-noi); color: var(--chu); display: flex; align-items: center; gap: 6px; font-size: var(--co-3); font-weight: var(--rat-dam); white-space: nowrap; box-shadow: 0 2px 6px rgba(20, 30, 60, .12); }
.vien img { width: 20px; height: 20px; object-fit: contain; }
.vien.verro { background: var(--verro-nen); color: var(--trang); border: 1px solid var(--verro-vien); }
.vien.verro small { font-size: var(--co-0); font-weight: var(--dam); opacity: .85; margin-left: 1px; }
.vien.nay { animation: nay .5s ease; }

/* ---------- thanh nut duoi day ---------- */
.tab { position: relative; z-index: 3; display: flex; padding: 5px 6px calc(8px + env(safe-area-inset-bottom)); background: var(--the); box-shadow: 0 -4px 14px rgba(20, 30, 60, .18); }
.tab button { flex: 1; min-height: var(--cham); position: relative; display: flex; flex-direction: column; align-items: center; font-size: var(--co-0); font-weight: var(--dam); color: var(--chu-phu); }
.tab button img { width: 30px; height: 30px; object-fit: contain; margin-bottom: 1px; }
.tab button { padding: 0 1px; white-space: nowrap; }
.tab button.chon { color: var(--chu-nhan); }
.tab button.chon img { transform: translateY(-2px) scale(1.12); }
.tab .dem { position: absolute; left: 54%; top: -1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--do); color: var(--trang); font-size: 10px; line-height: 17px; text-align: center; font-weight: var(--rat-dam); }
.tab button.nay img { animation: nay .5s ease; }

/* ---------- nut, the, vien dung chung ---------- */
.nut { min-height: var(--cham); padding: 0 14px; border-radius: var(--bo-nut); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--co-3); font-weight: var(--rat-dam); white-space: nowrap; background: var(--xanh-nut); color: var(--trang); box-shadow: 0 4px 0 var(--xanh-nut-dam); transition: transform .08s, box-shadow .08s; }
.nut.vang { background: var(--vang); color: var(--chu-tren-vang); box-shadow: 0 4px 0 var(--vang-dam); }
/* hang nut chinh tren canh vuon, dai don, bong loi Be Mam: vang tuoi va xanh la tuoi, vien trang, noi tren nen co */
.hanh .nut.vang, .don-dai .nut.vang, .bong .nut.vang { background: var(--nut-vang); box-shadow: 0 4px 0 var(--nut-vang-day), inset 0 0 0 2px var(--nut-vien); }
.hanh .nut:not(.vang):not(.gem) { background: var(--nut-xanh); color: var(--chu-tren-xanh); box-shadow: 0 4px 0 var(--nut-xanh-day), inset 0 0 0 2px var(--nut-vien); text-shadow: 0 1px 1px rgba(0, 60, 10, .45); }
.nut.phu { background: var(--the-2); color: var(--chu); box-shadow: 0 4px 0 var(--vien); }
.nut.verro { background: var(--verro-nen); color: var(--trang); box-shadow: 0 4px 0 #0E1040; border: 1px solid var(--verro-vien); }
.nut:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.nut:disabled { opacity: .5; }
.nut img { width: 22px; height: 22px; object-fit: contain; }
.nut.nho { min-height: 34px; padding: 0 11px; font-size: var(--co-1); border-radius: var(--bo-nho); box-shadow: 0 3px 0 var(--xanh-nut-dam); }
.nut.nho.vang { box-shadow: 0 3px 0 var(--vang-dam); }
.nut.nho.phu { box-shadow: 0 3px 0 var(--vien); }
/* nut rong het be ngang trong bang / o Kho: chu dai (vd tieng Anh) xuong dong thay vi tran, gia van giu mot dong */
.bang-than > .nut, .kho-cho .nut { white-space: normal; text-align: center; padding-top: 6px; padding-bottom: 6px; line-height: 1.2; }
.bang-than > .nut .gia, .kho-cho .nut .gia { white-space: nowrap; }
.nut.nho img { width: 16px; height: 16px; }
.the { background: var(--the); border-radius: var(--bo-the); box-shadow: var(--bong); padding: 12px; }
.noi-dung { padding: 10px var(--le) 14px; display: flex; flex-direction: column; gap: 10px; }
.tieu-de { font-size: var(--co-4); font-weight: var(--rat-dam); display: flex; align-items: center; gap: 7px; }
.tieu-de img { width: 30px; height: 30px; object-fit: contain; }
.mo-ta { font-size: var(--co-1); color: var(--chu-phu); font-weight: var(--vua); }
.gia { display: inline-flex; align-items: center; gap: 3px; font-weight: var(--rat-dam); white-space: nowrap; }
.gia img { width: 15px; height: 15px; object-fit: contain; display: inline-block; }
.rong { text-align: center; padding: 22px 12px; color: var(--chu-phu); }
.rong img { width: 84px; margin: 0 auto 8px; }

/* ---------- man Vuon ---------- */
.dai { margin: 8px var(--le) 0; min-height: 30px; padding: 4px 10px; border-radius: 14px; background: var(--nen-noi); border: 1px solid var(--vien-noi); color: var(--chu); display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; width: calc(100% - 2 * var(--le)); }
.dai img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.dai .gv { display: flex; align-items: center; gap: 4px; }
.dai .gv b { font-weight: var(--rat-dam); }
.dai .gv [data-gio] { font-variant-numeric: tabular-nums; }
.dai .gv.dang b:first-child { color: var(--vang-dam); }
.dai .phai { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--chu-nhan); font-weight: var(--rat-dam); }
.khu-chon { position: absolute; left: var(--le); top: 2px; z-index: 6; display: flex; gap: 5px; }
.khu-chon button { min-height: 30px; padding: 0 9px; white-space: nowrap; border-radius: 12px; background: var(--nen-noi); border: 1px solid var(--vien-noi); box-shadow: 0 2px 6px rgba(20, 30, 60, .14); display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: var(--rat-dam); color: var(--chu-phu); }
.khu-chon button img { width: 16px; height: 16px; object-fit: contain; }
.khu-chon button.chon { background: var(--verro-vien); color: var(--trang); }
.khu-chon button small { font-size: 10.5px; font-weight: var(--rat-dam); }
.khu-chon button img.k { width: 14px; height: 14px; }

.ung-dung[data-man="vuon"] .man { display: flex; flex-direction: column; }
.canh { position: relative; flex: 1 0 520px; margin-top: 6px; overflow: hidden; }
/* hang nut nam TRONG canh, tren nen dat (duoi vuon khong con dai troi) */
.canh > .duoi { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }
.dao > .vat-nut { position: absolute; padding: 0; }
.dao > .vat-nut img.ct { width: 100%; height: 100%; filter: drop-shadow(0 3px 2px rgba(40, 26, 14, .28)); }
.dao > .vat-nut img.canh { position: absolute; max-width: none; transform-origin: 50% 50%; filter: drop-shadow(0 2px 2px rgba(40, 26, 14, .25)); }
.dao > .vat-nut img.canh.quay { animation: quay 3.2s linear infinite; }
.dao > .vat-nut .nhan { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); z-index: 2; white-space: nowrap; font-size: 10.5px; font-weight: var(--rat-dam); color: var(--trang); background: var(--nhan-o); border-radius: 9px; padding: 1px 6px 2px; }
.dao > .vat-nut .nhan.xong { background: var(--vang); color: var(--chu-tren-vang); animation: nhay-nhan 1.2s ease infinite; }
/* do trang tri: bac Xin co quang vang (--loe), moi mon mot chuyen dong hop voi no; ghe da dung yen */
.dao > img.vat.xin { --loe: drop-shadow(0 0 4px var(--sang-xin)); }
.dao > img.vat.treo { transform-origin: 50% 0; }
.dao > img.vat.xa { --bong-rieng: drop-shadow(0 2px 1px rgba(40, 26, 14, .2)); }
.dao > img.tt-flowers { animation: tt-lac 3.6s ease-in-out infinite; }
.dao > img.tt-tree { animation: tt-lac-nhe 5.4s ease-in-out infinite; }
.dao > img.tt-chime { animation: tt-dua 3.2s ease-in-out infinite; }
.dao > img.tt-lantern { animation: tt-den 2.8s ease-in-out infinite; }
.dao > img.tt-fountain { animation: tt-nuoc 1.6s ease-in-out infinite; }
.dao > img.tt-carousel { animation: tt-nhun 1.4s ease-in-out infinite; }
.dao > img.tt-neonflag { animation: tt-co 2.2s ease-in-out infinite; transform-origin: 12% 100%; }
.dao > img.tt-xmastree, .dao > img.tt-reindeer { animation: tt-lap-lanh 2s ease-in-out infinite; }
.dao > img.tt-portal { animation: tt-cong 2.6s ease-in-out infinite; }
.dao > img.tt-statue, .dao > img.tt-vstatue { animation: tt-loe 4.6s ease-in-out infinite; }
.dao > .vat-nut img.canh.cham { animation: quay 16s linear infinite; }
/* bang Nha, Coi xay */
/* bang chon canh vuon */
.cv-ds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cv-nhom { margin: 10px 0 6px; font-size: var(--co-1); font-weight: var(--rat-dam); color: var(--chu-phu); }
.cv { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: var(--bo-nut); background: var(--the-2); border: 2px solid transparent; text-align: center; font-size: var(--co-0); }
.cv img.cv-hinh { width: 100%; height: 84px; object-fit: cover; object-position: 50% 4%; border-radius: var(--bo-nho); }   /* lay phan chan troi + cay hai ben: moi canh mot ve rieng (giua bai co canh nao cung giong nhau) */
.cv b { font-size: var(--co-2); font-weight: var(--rat-dam); }
.cv small { color: var(--chu-phu); font-weight: var(--vua); min-height: 3.9em; line-height: 1.3; }
.cv .cv-dang { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 1px 7px; border-radius: 9px; background: var(--vang); color: var(--chu-tren-vang); font-size: 9.5px; font-weight: var(--rat-dam); }
.cv.chon { border-color: var(--vang); }

.canh-nen, .canh-dao { position: absolute; inset: 0; }
.canh-nen { pointer-events: none; overflow: hidden; }
.canh-nen img { position: absolute; }
/* canh dat: khoi rong bang man, cho dat (top) va hinh canh do man-vuon.js tinh theo chieu cao canh; dat dung yen (khong bong benh: vuon dung tren dat) */
.dao { position: absolute; left: 0; width: 100%; height: 280px; }
.dao.doi-khu { animation: truot-vao .35s ease; }
.dao > img.mat { position: absolute; max-width: none; }
.dao > img.vat { --loe: drop-shadow(0 0 0 transparent); position: absolute; pointer-events: none; transform-origin: 50% 100%; filter: var(--loe) var(--bong-rieng, var(--bong-vat)); }
.luoi { position: absolute; left: 55px; top: 50px; width: 280px; display: grid; grid-template-columns: repeat(4, var(--o-rong)); column-gap: var(--o-kc); row-gap: var(--o-hang); }
.o { position: relative; width: var(--o-rong); height: var(--o-cao); display: block; }
.o::before { content: ""; position: absolute; left: -4px; right: -4px; top: -20px; bottom: -10px; }          /* vung cham rong hon hinh */
.o img.dat { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.o .lac { position: absolute; left: 50%; bottom: 10px; transform-origin: 50% 100%; pointer-events: none; }
.o .lac img { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .28)); }
.o.lon .lac, .o.chin .lac { animation: dung-dua var(--nhip-gio, 6s) ease-in-out infinite; }
.o.chin .lac img { animation: nhun 1.6s ease-in-out infinite; filter: drop-shadow(0 0 1.5px rgba(255, 240, 160, .95)) drop-shadow(0 2px 2px rgba(0, 0, 0, .28)); }
.o .lac.bat img { animation: bat-len .5s cubic-bezier(.3, 1.6, .5, 1); }
.o.chin .lac.bat img { animation: bat-len .5s cubic-bezier(.3, 1.6, .5, 1), nhun 1.6s ease-in-out .5s infinite; }
.o img.sao { position: absolute; right: -3px; top: -26px; width: 22px; pointer-events: none; animation: lap-lanh 1.4s ease-in-out infinite; }
.o img.bien { position: absolute; left: 50%; bottom: 16px; width: 26px; transform: translateX(-50%); pointer-events: none; }
.o img.o-khoa { position: absolute; left: 50%; bottom: 20px; width: 19px; transform: translateX(-50%); pointer-events: none; }
.o .nhan { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); white-space: nowrap; z-index: 2; font-size: 10.5px; font-weight: var(--rat-dam); color: var(--trang); background: var(--nhan-o); border-radius: 9px; padding: 1px 6px 2px; display: flex; align-items: center; gap: 3px; pointer-events: none; }
.o .nhan img { width: 11px; height: 11px; object-fit: contain; }
.o .nhan.khoa { background: rgba(30, 60, 110, .85); }
.o .nhan.nhay { animation: nhay-nhan .9s ease; }
.o img.phan-dau { position: absolute; left: 2px; top: -6px; width: 15px; pointer-events: none; }
.mam { position: absolute; left: 4px; bottom: 108px; width: 52px; z-index: 4; }
.mam img { width: 52px; animation: tho 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.mam.mung img { animation: nhay-mung .6s ease 2; }
.bong { position: absolute; left: 60px; bottom: 114px; z-index: 4; max-width: 314px; min-height: 40px; padding: 5px 7px 5px 11px; border-radius: 14px; background: var(--the); box-shadow: var(--bong); display: flex; align-items: center; gap: 7px; font-size: var(--co-1); }
.bong span { flex: 1; }
.canh-nut { position: absolute; right: 6px; bottom: 170px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.canh-nut button { width: var(--cham); height: var(--cham); border-radius: 50%; background: var(--nen-noi); border: 1px solid var(--vien-noi); box-shadow: 0 2px 6px rgba(20, 30, 60, .2); display: flex; align-items: center; justify-content: center; }
.canh-nut img { width: 28px; height: 28px; object-fit: contain; }
.don-dai { position: absolute; left: var(--le); right: var(--le); bottom: 60px; z-index: 5; padding: 6px 8px 6px 10px; border-radius: 16px; background: var(--nen-noi); border: 1px solid var(--vien-noi); color: var(--chu); box-shadow: 0 3px 10px rgba(20, 30, 60, .16); display: flex; align-items: center; gap: 6px; font-size: var(--co-1); white-space: nowrap; min-height: var(--cham); }
.don-dai > img { width: 24px; height: 24px; object-fit: contain; }
.don-dai b { font-size: 13.5px; font-weight: var(--rat-dam); margin-right: 2px; }
.don-dai .dm { display: flex; align-items: center; gap: 1px; font-weight: var(--rat-dam); }
.don-dai .dm img { width: 24px; height: 24px; object-fit: contain; }
.don-dai .dm.du { color: var(--chu-nhan); }
.don-dai .them { font-weight: var(--rat-dam); color: var(--chu-phu); }
.don-dai .nut { margin-left: auto; }
.hanh { display: flex; gap: 7px; margin: 0 var(--le) 8px; }
.hanh .nut { flex: 1; padding: 0 6px; gap: 4px; font-size: 13px; white-space: nowrap; }
.hanh .nut img { width: 19px; height: 19px; }
.hanh .nut.gem { flex: none; width: 82px; background: var(--nen-noi); color: var(--chu); box-shadow: 0 4px 0 var(--vien); }

/* troi cua canh vuon: cac vat the chuyen dong lap, pha lay tu dong ho (animation-delay am) */
.troi-vat { will-change: transform; }
.may { animation: troi-ngang linear infinite; }
.bay-ngang { animation: troi-ngang linear infinite; }
.bong-benh { animation: bong-benh 5s ease-in-out infinite; }
.nhap-nhay { animation: nhap-nhay 2.4s ease-in-out infinite; }
.xoay { animation: quay 7s linear infinite; }
.vo-canh { animation: vo-canh .5s steps(1) infinite; }
.vo-canh.b { animation-delay: -.25s; }
.roi { animation: roi linear infinite; opacity: 0; }
.roi.giot { animation-name: roi-giot; filter: drop-shadow(0 0 1px var(--giot-vien)); }
.sao-dem { animation: nhap-nhay ease-in-out infinite; filter: drop-shadow(0 0 2px var(--sao-sang)); }
.troi-mua { position: absolute; inset: 0; background: var(--troi-mua); pointer-events: none; }
.dom { animation: dom-dom 6s ease-in-out infinite; }
.ung-dung[data-buoi="toi"] .may { opacity: .32; }
.dao > img.mat.dong, .quay img.dat.dong { filter: saturate(.5) brightness(1.06) hue-rotate(-12deg); }
/* bai co sau quay Cua hang: cung canh dat cua Vuon nha, hang rao o y ~ 104, quay dung tren bai trong */

/* ---------- bang truot (sheet) ---------- */
.lop-bang { position: absolute; inset: 0; z-index: 60; display: none; }
.lop-bang.mo { display: block; }
.lop-bang .mo-nen { position: absolute; inset: 0; background: var(--mo-nen); animation: hien .2s ease; }
.bang { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; background: var(--the); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .28); animation: truot-len .26s cubic-bezier(.2, .9, .3, 1); }
.bang.khong-dong { animation: none; }
.bang-dau { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px; }
.bang-dau h2 { flex: 1; font-size: var(--co-4); font-weight: var(--rat-dam); display: flex; align-items: center; gap: 7px; }
.bang-dau h2 img { width: 28px; height: 28px; object-fit: contain; }
.bang-dong { width: var(--cham); height: var(--cham); margin: -8px -8px -8px 0; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--chu-phu); display: flex; align-items: center; justify-content: center; }
.bang-than { padding: 4px 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bang-than > .mo-ta { margin-top: -4px; }
.bang:focus { outline: none; }
.hang-nut { display: flex; gap: 8px; }
.hang-nut .nut { flex: 1; }
.hang-nut .nut.hep { flex: 0 0 30%; }
.ba-dong { background: var(--the-2); border-radius: var(--bo-nut); padding: 4px 12px; }
.ba-dong li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; }
.ba-dong li + li { border-top: 1px solid var(--vien); }
.ba-dong b { font-weight: var(--rat-dam); }

/* bang chon hat */

/* bang o dat: cay dang lon + phan bon */
.thanh { height: 9px; border-radius: 5px; background: var(--the-2); overflow: hidden; margin: 6px 0 5px; }
.thanh i { display: block; height: 100%; border-radius: 5px; background: var(--co); }

/* ---------- man Don hang, Kho ---------- */
.don { display: flex; align-items: center; gap: 10px; }
.don .ds { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.don .dong { display: flex; align-items: center; gap: 7px; font-weight: var(--dam); }
.don .dong img { width: 34px; height: 34px; object-fit: contain; }
.don .dong .du { color: var(--chu-nhan); }
.don .dong .thieu { color: var(--do); }
.don .phai { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 128px; }
.don .phai .nut { white-space: nowrap; padding: 0 6px; }
.don .thuong { display: flex; justify-content: center; gap: 10px; font-size: var(--co-3); font-weight: var(--rat-dam); }
.don .thuong img { width: 18px; height: 18px; }
.luoi-kho { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kho-o { position: relative; min-height: 78px; padding: 6px 2px 5px; border-radius: var(--bo-nut); background: var(--the-2); display: flex; flex-direction: column; align-items: center; font-size: var(--co-0); text-align: center; font-weight: var(--dam); }
.kho-o img { width: 40px; height: 40px; object-fit: contain; }
.kho-o .sl { position: absolute; right: 4px; top: 3px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--chu); color: var(--the); font-size: 10px; line-height: 18px; font-weight: var(--rat-dam); }
.muc { font-size: var(--co-3); font-weight: var(--rat-dam); display: flex; align-items: baseline; gap: 8px; }
.muc small { font-size: var(--co-0); color: var(--chu-phu); font-weight: var(--vua); }

/* ---------- man Cua hang ---------- */
/* quay hang dung tren bai co: hinh mat dao (cung mua voi Vuon) phong rong, chi lo phan co phia sau; quay, Be Mam, goc hang cung mot vach dat */
.quay { position: relative; height: 186px; margin-top: 4px; overflow: hidden; }
.quay img.dat { position: absolute; left: 50%; top: 10px; width: 466px; margin-left: -233px; max-width: none; }
.quay img.q { position: absolute; left: 50%; bottom: 13px; width: 176px; height: auto; margin-left: -88px; filter: drop-shadow(0 4px 3px rgba(40, 26, 14, .3)); }
.quay .mai { animation: phap-phong 6s ease-in-out infinite; transform-origin: 50% 100%; }
.quay img.den { position: absolute; left: 50%; top: 52px; width: 124px; margin-left: -62px; }
.quay img.chu-quay { position: absolute; left: 30px; bottom: 13px; width: 56px; animation: tho 3.2s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 3px 2px rgba(40, 26, 14, .3)); }
.quay img.hang { position: absolute; right: 18px; bottom: 13px; width: 84px; filter: drop-shadow(0 3px 2px rgba(40, 26, 14, .3)); }
/* than gian hang: tuong go phia truoc bai co, cac ke treo tren tuong */
.cua-than { position: relative; margin-top: -12px; padding: 10px var(--le) 16px; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, var(--ke-nen-1), var(--ke-nen-2)); border-top: 4px solid var(--go-vien); }
.loi-ch { margin: 8px 0; min-height: 40px; padding: 8px 12px; border-radius: 14px; background: var(--the); box-shadow: var(--bong); font-size: var(--co-1); color: var(--chu); }
.ngan { display: flex; gap: 6px; padding: 6px; border-radius: var(--bo-the); background: var(--the); box-shadow: var(--bong); position: sticky; top: 4px; z-index: 2; }
.ngan button { flex: 1; min-height: var(--cham); border-radius: var(--bo-nut); font-size: var(--co-1); font-weight: var(--rat-dam); color: var(--chu-phu); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ngan button img { width: 24px; height: 24px; object-fit: contain; }
.ngan button.chon { background: var(--vang); color: var(--chu-tren-vang); }
.ke { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 14px; min-height: 420px; align-content: start; padding-top: 4px; }
.mon { position: relative; padding: 4px 4px 2px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: var(--ke-chu); }
/* ke rong 140 cao 43,7 (hinh 420 x 131): mat van tren tu 43,7 xuong 31,9 diem anh tinh tu day; mon dung o 20% sau mat van = 35 diem anh */
.mon .h { position: relative; width: 100%; height: 96px; }
.mon .h img.van { position: absolute; left: 50%; bottom: 0; width: 140px; margin-left: -70px; filter: drop-shadow(0 4px 3px rgba(30, 18, 8, .35)); }
.mon .h img.sp { position: absolute; left: 50%; bottom: 35px; height: 58px; width: 112px; margin-left: -56px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 2px 2px rgba(30, 18, 8, .35)); }
.mon .h img.tem { position: absolute; left: 50%; bottom: 35px; width: 26px; margin-left: -64px; z-index: 1; filter: drop-shadow(0 2px 2px rgba(30, 18, 8, .3)); }
.mon b { font-size: var(--co-2); font-weight: var(--rat-dam); margin-top: 1px; }
.mon small { font-size: var(--co-1); color: var(--ke-chu-phu); min-height: 30px; font-weight: var(--vua); line-height: 1.25; }
.mon .nhan-goc { position: absolute; left: 4px; top: 2px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--vang); color: var(--chu-tren-vang); font-size: 9.5px; line-height: 18px; font-weight: var(--rat-dam); z-index: 1; }
.mon .nhan-goc.co { left: auto; right: calc(50% - 56px); top: 8px; background: var(--xanh-nut); color: var(--trang); border: 2px solid var(--trang); height: 20px; line-height: 16px; z-index: 2; }
.mon .nhan-goc.le { background: var(--do); color: var(--trang); left: auto; right: 4px; }
.mon .hang-nut { width: 100%; gap: 6px; margin-top: 2px; }
.mon .hang-nut .nut { padding: 0 4px; gap: 3px; white-space: nowrap; font-size: 12px; }
.mon .hang-nut .nut img { width: 14px; height: 14px; }
.mon.khoa .h img.sp { filter: grayscale(1); opacity: .6; }

/* hop thu, huong dan */

/* ---------- lop hieu ung, thong bao ---------- */
.lop-hu { position: absolute; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.lop-hu img, .lop-hu span { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.lop-hu img { filter: drop-shadow(0 0 2px rgba(255, 255, 255, .95)) drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.lop-hu span.so { font-size: var(--co-4); font-weight: var(--rat-dam); color: var(--trang); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); white-space: nowrap; }
.noi { position: absolute; left: 50%; bottom: 84px; z-index: 70; transform: translateX(-50%); max-width: 330px; padding: 9px 14px; border-radius: var(--bo-nut); background: #1B2540; color: #FFFFFF; font-size: var(--co-1); font-weight: var(--dam); text-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.noi.hien { opacity: 1; }
.len-cap { text-align: center; }
.len-cap .dai-lc { position: relative; width: 230px; margin: 0 auto; }
.len-cap .dai-lc img { width: 230px; }
.len-cap .dai-lc b { position: absolute; left: 0; right: 0; top: 14px; font-size: var(--co-5); font-weight: var(--rat-dam); color: var(--chu-tren-vang); }
.len-cap .mo-moi { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.len-cap .mo-moi span { display: flex; flex-direction: column; align-items: center; width: 74px; font-size: var(--co-0); font-weight: var(--dam); }
.len-cap .mo-moi img { width: 46px; height: 46px; object-fit: contain; }

/* ---------- chuyen dong ---------- */
@keyframes hien { from { opacity: 0; } }
@keyframes truot-len { from { transform: translateY(100%); } }
@keyframes truot-vao { from { transform: translateX(46px); opacity: 0; } }
@keyframes nay { 30% { transform: scale(1.22); } 60% { transform: scale(.94); } }
@keyframes dung-dua { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
@keyframes nhun { 0%, 100% { transform: translateX(-50%) scale(1, 1); } 50% { transform: translateX(-50%) scale(1.05, .95); } }
@keyframes bat-len { 0% { transform: translateX(-50%) scale(.72, .6); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes lap-lanh { 0%, 100% { transform: scale(.7) rotate(-8deg); opacity: .55; } 50% { transform: scale(1.08) rotate(8deg); opacity: 1; } }
@keyframes nhay-nhan { 0%, 100% { transform: translateX(-50%) scale(1); } 25%, 75% { transform: translateX(-50%) scale(1.22); background: var(--xanh-nut); } }
@keyframes tho { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97); } }
@keyframes nhay-mung { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-12px) scale(1.04, .98); } }
@keyframes troi-ngang { from { transform: translateX(var(--tu, -140px)); } to { transform: translateX(var(--den, 420px)); } }
@keyframes bong-benh { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes nhap-nhay { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes quay { to { transform: rotate(360deg); } }
@keyframes tt-lac { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(-3deg); } }
@keyframes tt-lac-nhe { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(-1.6deg); } }
@keyframes tt-dua { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes tt-nhun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes tt-co { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-3deg); } }
@keyframes tt-nuoc { 0%, 100% { transform: scaleY(1); filter: var(--loe) brightness(1) var(--bong-vat); } 50% { transform: scaleY(1.025); filter: var(--loe) brightness(1.1) var(--bong-vat); } }
@keyframes tt-den { 0%, 100% { filter: var(--loe) drop-shadow(0 0 2px var(--den-sang)) var(--bong-vat); } 50% { filter: var(--loe) drop-shadow(0 0 8px var(--den-sang)) var(--bong-vat); } }
@keyframes tt-lap-lanh { 0%, 100% { filter: var(--loe) brightness(1) var(--bong-vat); } 50% { filter: var(--loe) brightness(1.2) drop-shadow(0 0 4px var(--sang-xin)) var(--bong-vat); } }
@keyframes tt-cong { 0%, 100% { filter: var(--loe) drop-shadow(0 0 2px var(--cong-sang)) var(--bong-vat); } 50% { filter: var(--loe) drop-shadow(0 0 9px var(--cong-sang)) var(--bong-vat); } }
@keyframes tt-loe { 0%, 76%, 100% { filter: var(--loe) brightness(1) var(--bong-vat); } 86% { filter: var(--loe) brightness(1.3) var(--bong-vat); } }
@keyframes vo-canh { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes roi-giot { 0% { transform: translate(0, -30px); opacity: 0; } 6% { opacity: var(--do-ro, .9); } 90% { opacity: var(--do-ro, .9); } 100% { transform: translate(var(--lech, -30px), 470px); opacity: 0; } }
@keyframes roi { 0% { transform: translate(0, -30px) rotate(0deg); opacity: 0; } 8% { opacity: var(--do-ro, .95); } 88% { opacity: var(--do-ro, .95); } 100% { transform: translate(var(--lech, 30px), 470px) rotate(var(--xoay, 160deg)); opacity: 0; } }
@keyframes dom-dom { 0%, 100% { transform: translate(0, 0); opacity: .25; } 25% { transform: translate(14px, -10px); opacity: 1; } 50% { transform: translate(26px, 4px); opacity: .4; } 75% { transform: translate(10px, 12px); opacity: 1; } }
@keyframes phap-phong { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.025); } }

/* giam chuyen dong: tat moi chuyen dong lap va hat; thao tac van co phan hoi tuc thi */
.ung-dung.it-dong *, .ung-dung.it-dong *::before { animation: none !important; transition: none !important; }
.ung-dung.it-dong .roi, .ung-dung.it-dong .dom { display: none; }

/* ===== 3. the game's own pieces inside the v2 frame ===== */
/* colours the game's own styles expect, for the light (day) look; html.night sets its own in index.html */
:root { --display: var(--kieu-chu); --body: var(--kieu-chu); --gold: #B07400; --cyan: #1FA7C4; --mag: #C63DB8; --vio: #7B5CFF; --glass: rgba(255, 255, 255, .6); }
html.night { --gold: #FFC94A; --cyan: #22E4FF; --mag: #FF3DF2; }

/* ---------- frame ---------- */
html, body { height: 100%; margin: 0; padding: 0 !important; overflow: hidden; background: #10152E !important; -webkit-text-size-adjust: 100%; }
html.night body::before { display: none; }
body { font-family: var(--kieu-chu); font-weight: var(--vua); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
#app.ung-dung { max-width: none; gap: 0; z-index: 1; font-size: var(--co-2); line-height: 1.35; }
#app.ung-dung > * { min-width: 0; }
#app .man { -webkit-overflow-scrolling: touch; }
#app img { user-select: none; -webkit-user-drag: none; }
:where(#app .dau, #app .tab, #app .canh, #app .dai, #app .quay, #app .canh-nho, .lop-hu) img { display: block; max-width: none; }
#app .canh img.vc, #app .dai img.vc { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.22em; }
:where(#app .dau, #app .tab, #app .canh) button, :where(#app) .dai { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; text-align: inherit; -webkit-tap-highlight-color: transparent; }
#app :focus-visible, .login :focus-visible { outline: 3px solid var(--vang); outline-offset: 2px; }
.mh[hidden] { display: none !important; }
.mh.nd { padding: 10px var(--le) 16px; display: flex; flex-direction: column; gap: 10px; }
#app[data-man="vuon"] .mh[data-man="vuon"] { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- header: name, round buttons, level ring and the three wallets ---------- */
header.dau { display: block; }
.dau h1 { margin: 0; display: flex; align-items: center; gap: 7px; font-family: var(--kieu-chu); font-size: 20px; font-weight: var(--rat-dam); letter-spacing: -.3px; white-space: nowrap; color: var(--trang) !important; background: none !important; -webkit-text-fill-color: currentColor; text-shadow: 0 1px 3px rgba(20, 30, 60, .35) !important; }
.dau h1 .brand { width: 26px !important; height: 26px !important; border-radius: 50%; margin: 0 !important; vertical-align: 0; }
.dau h1 .beta { margin: 0; padding: 0 6px; height: 18px; border-radius: 8px; background: var(--beta); color: var(--trang); font: var(--rat-dam) 9px/18px var(--kieu-chu); letter-spacing: .8px; vertical-align: 0; text-shadow: none; }
.dau-1 { gap: 6px; }
.dau .titlechip { height: 26px; padding: 0 9px; font-size: 12px; margin: 0; border-radius: 13px; border: 1px solid rgba(255, 201, 74, .8); background: rgba(60, 40, 10, .55); color: #FFE2A8; flex: none; }
html:not(.embed) .dau .titlechip:not([hidden]) ~ h1 { font-size: 0; gap: 0; }
html:not(.embed) .dau .titlechip:not([hidden]) ~ h1 .beta { display: none; }
html.embed .dau h1 { display: none; }
.dau-phai { gap: 6px; flex: none; }
.dau .tron { flex: none; }
.dau .tron.mail { position: relative; }
.dau .tron .badge { top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--do); color: var(--trang); font: var(--rat-dam) 10px/17px var(--kieu-chu); }
/* Earn VERRO: a round button with the Verro mark (the words do not fit beside the game name; they are the button's label for screen readers) */
.dau .tron.earnbtn { width: 32px !important; padding: 0 !important; font-size: 0; background: var(--verro-nen) !important; border: 1px solid var(--verro-vien) !important; box-shadow: 0 0 0 2px rgba(255, 201, 74, .75), 0 2px 6px rgba(20, 30, 60, .2); overflow: hidden; }
.dau .tron.earnbtn img { width: 30px; height: 30px; border-radius: 50%; }
.dau-2 { min-height: 38px; }
.dau-2 .lvl { flex: none !important; width: 38px; height: 38px; padding: 0 !important; border: 0 !important; border-radius: 50%; background: none !important; box-shadow: 0 2px 6px rgba(20, 30, 60, .16); backdrop-filter: none; cursor: pointer; }
.dau-2 .lvl .n.ring { width: 38px; height: 38px; border-radius: 50%; position: relative; isolation: isolate; display: grid; place-items: center; background: conic-gradient(var(--vang) var(--p, 0%), var(--nen-noi) 0); color: var(--chu-tren-vang); font: var(--rat-dam) var(--co-3)/1 var(--kieu-chu); box-shadow: none; }
.dau-2 .lvl .n.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--vang); z-index: -1; }
#app .dau-2 .chip { height: 38px; padding: 0 13px 0 9px; border-radius: 19px; gap: 6px; background: var(--nen-noi) !important; border: 1px solid var(--vien-noi) !important; color: var(--chu) !important; font: var(--rat-dam) var(--co-3)/1 var(--kieu-chu); white-space: nowrap; box-shadow: 0 2px 6px rgba(20, 30, 60, .12) !important; backdrop-filter: none; cursor: pointer; min-width: 0; }
#app .dau-2 .chip img { width: 20px; height: 20px; object-fit: contain; border-radius: 0; }
#app .dau-2 .chip.verro { background: var(--verro-nen) !important; color: var(--trang) !important; border: 1px solid var(--verro-vien) !important; }
.num-up { animation: nay .5s ease; } .num-down { animation: nay .5s ease; }

/* ---------- tab bar ---------- */
.tab button { font-family: var(--kieu-chu); }
.tab button span { display: block; line-height: 1.2; }
.tab .dem.cham { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 2px; }
html.night .tab { background: #121A3E; }

/* ---------- garden screen ---------- */
.dai { cursor: pointer; text-align: left; }
.dai { gap: 4px; font-size: 11.5px; padding-left: 8px; padding-right: 8px; }
.dai .gv { flex: none; }
.dai .phai { min-width: 0; flex: 0 1 auto; overflow: hidden; }
.dai .phai img { flex: none; }
.dai .gv small { display: none; }
.dai .gclock { font-variant-numeric: tabular-nums; font-weight: var(--rat-dam); }
.dai .gbonus { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.dai.on { background: linear-gradient(90deg, #FFE08A, #FFB938); color: var(--chu-tren-vang); border-color: transparent; }
.dai.on .phai { color: var(--chu-tren-vang); }
.dai .phai img { width: 16px; height: 16px; }
/* live line: who is online and what players just bought (slim, right under the golden-hour strip) */
#app .ticker { position: absolute; left: var(--le); right: var(--le); top: 36px; z-index: 6; width: auto; margin: 0; min-height: 22px; padding: 1px 8px; border-radius: 11px; gap: 6px; background: rgba(255, 255, 255, .62) !important; border: 0 !important; box-shadow: none; backdrop-filter: none; }
html.night #app .ticker { background: rgba(18, 26, 62, .6) !important; }
#app .ticker .live { font-size: 11px; color: #1F9D55; }
#app .ticker.empty { right: auto; padding-right: 10px; }
#app .ticker .live i { width: 7px; height: 7px; background: #2FCB45; box-shadow: none; }
#app .ticker .tk-in { font-size: 11px; color: var(--chu-phu); }
#app .ticker .tk-in span b { color: var(--chu); }
#app .ticker .tk-in span em { color: var(--vang-dam); }
html.night #app .ticker .tk-in span em { color: var(--vang); }
.canh { flex: 1 0 520px; }
.khu-chon button em { font-style: normal; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--do); color: var(--trang); font-size: 10px; line-height: 16px; text-align: center; }
.khu-ghi { position: absolute; left: var(--le); top: 62px; z-index: 6; max-width: 300px; padding: 2px 9px; border-radius: 10px; background: var(--nhan-o); color: var(--trang); font-size: 10.5px; font-weight: var(--dam); }
.khu-ghi[hidden] { display: none; }
.luoi.ba { grid-template-columns: repeat(3, var(--o-rong)); left: 91px; width: 208px; }
.o { font-family: var(--kieu-chu); cursor: pointer; }
span.o { cursor: default; }
.o.nudge img.dat { filter: drop-shadow(0 0 5px rgba(255, 201, 74, .95)); animation: nhap-nhay 1.2s ease-in-out infinite; }
.o .nhan.trom { background: rgba(140, 30, 50, .85); font-size: 9.5px; }
.o .nhan img { display: inline-block; }
.dao > .vat-nut { cursor: pointer; }
.dao > img.vat.tt.xa { --bong-rieng: drop-shadow(0 2px 1px rgba(40, 26, 14, .2)); }
/* Be Mam: the mascot stands on the grass, its words in a bubble (the bubble grows upward when the text is long) */
#sprout { position: absolute; left: 0; right: 0; bottom: 108px; z-index: 4; height: 0; }
#sprout[hidden] { display: none; }
#sprout .mam { left: 4px; bottom: 0; display: block; cursor: pointer; }
#sprout .mam .sp-lv { position: absolute; right: -2px; bottom: 0; min-width: 16px; height: 16px; border-radius: 8px; background: var(--vang); color: var(--chu-tren-vang); font: var(--rat-dam) 10px/16px var(--kieu-chu); text-align: center; border: 1.5px solid var(--trang); }
#sprout .bong { left: 60px; right: 56px; bottom: 6px; max-width: none; color: var(--chu); line-height: 1.25; font-size: 12px; }
#sprout .bong span { min-width: 0; overflow-wrap: anywhere; font-weight: var(--dam); }
#sprout .bong span img.vc { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.25em; }
#sprout .bong .nut { flex: none; }
#sprout .sp-x { position: absolute; right: -8px; top: -10px; bottom: auto; width: 24px; height: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.25); border-radius: 50%; border: 0; background: rgba(20, 30, 60, .45); color: var(--trang); font-size: 13px; line-height: 1; padding: 0; cursor: pointer; z-index: 5; }
.canh-nut button { position: relative; }
.canh-nut .cham-do { position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--do); border: 2px solid var(--trang); }
.canh-nut .cham-do[hidden] { display: none; }
/* level gift waiting: a third round button on top of the column, its words on a small tag */
#giftFab.qua-cap { position: relative; background: var(--nut-vang); border: 2px solid var(--trang); box-shadow: 0 3px 0 var(--nut-vang-day); animation: nhun-qua 1.6s ease-in-out infinite; font-size: 0; }
#giftFab.qua-cap img.vc { width: 26px; height: 26px; margin: 0; }
#giftFab.qua-cap b { position: absolute; right: -2px; bottom: -8px; white-space: nowrap; padding: 0 5px; border-radius: 7px; background: var(--do); color: var(--trang); font: var(--rat-dam) 9px/14px var(--kieu-chu); }
@keyframes nhun-qua { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.don-dai { font-family: var(--kieu-chu); text-align: left; cursor: pointer; }
.don-dai .dm img { border-radius: 0; }
.hanh .nut { font-family: var(--kieu-chu); border: 0; cursor: pointer; line-height: 1.15; }
.hanh .nut img.vc { width: 19px; height: 19px; display: inline-block; }
.hanh .nut.gem img { width: 17px; height: 17px; }
.hanh .nut:disabled { opacity: .55; cursor: default; }

/* small picture of a home garden (Decorations tab, decoration list, a friend's garden) */
.canh-nho { position: relative; height: 176px; overflow: hidden; border-radius: 16px; background: var(--troi-trua); flex: none; }
.canh-nho[data-buoi="sang"] { background: var(--troi-sang); } .canh-nho[data-buoi="chieu"] { background: var(--troi-chieu); } .canh-nho[data-buoi="toi"] { background: var(--troi-toi), #060A1C; }
.canh-nho-trong { position: absolute; left: 50%; top: 0; width: 390px; height: 420px; margin-left: -195px; transform: scale(var(--s-nho, .74)); transform-origin: 50% 0; pointer-events: none; }
.canh-nho-trong .dao { top: 96px !important; }
.sheet .canh-nho { margin: 2px 0 6px; }

/* ---------- the game's cards, buttons and lists in the v2 look ---------- */
#app section.card { border: 0; border-radius: var(--bo-the); box-shadow: var(--bong); padding: 12px; }
#app .card h2, .sheet h3 { font-family: var(--kieu-chu); font-weight: var(--rat-dam); }
#app .card h2 { font-size: var(--co-4); }
button.btn { font-family: var(--kieu-chu); font-weight: var(--rat-dam); border-radius: var(--bo-nut); background: var(--xanh-nut); box-shadow: 0 4px 0 var(--xanh-nut-dam); min-height: 40px; }
button.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
button.btn.sun { background: var(--nut-vang); color: var(--chu-tren-vang); box-shadow: 0 4px 0 var(--nut-vang-day); }
button.btn.ghost { background: var(--the-2); color: var(--chu); box-shadow: 0 4px 0 var(--vien); border: 0; }
html.night button.btn.ghost { box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
button.btn img.vc, .item img.vc, .card img.vc, .sheet img.vc, .toast img.vc, .pop img.vc, .okpop img.vc, .askbox img.vc { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.22em; object-fit: contain; }
img.vc { object-fit: contain; }
#app .goal { border-radius: var(--bo-the); box-shadow: var(--bong); }
/* orders: one card per order, what it needs on the left, the reward and the button on the right (v2) */
#app .orders { display: flex; flex-direction: column; gap: 8px; }
#app .order { flex-direction: row; align-items: center; gap: 10px; padding: 10px; border: 0 !important; border-radius: var(--bo-nut); background: var(--the-2) !important; text-align: left; backdrop-filter: none; }
#app .order.ok { background: #E9F8E6 !important; box-shadow: inset 0 0 0 2px var(--co); }
html.night #app .order.ok { background: rgba(47, 230, 160, .14) !important; }
#app .order .need { flex: 1; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 5px; min-height: 0; font-size: var(--co-2); }
#app .order .need span { display: flex; align-items: center; gap: 7px; padding: 0; background: none !important; border: 0 !important; color: var(--do); font-weight: var(--dam); backdrop-filter: none; }
#app .order .need span.have { color: var(--chu-nhan); }
#app .order .need span img { width: 34px; height: 34px; object-fit: contain; }
#app .order .phai { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 124px; flex: none; }
#app .order .rw { display: flex; justify-content: center; gap: 8px; font-size: var(--co-3); font-weight: var(--rat-dam); color: var(--chu); }
#app .order .rw img.vc { width: 18px; height: 18px; }
#app .order button { padding: 0 6px; min-height: 40px; font-size: var(--co-2); }
/* barn: a grid of what is kept, the count in the corner (tap an item to sell it) */
#app .barn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#app .barn .bi { position: relative; min-height: 78px; padding: 6px 2px 5px; border: 0 !important; border-radius: var(--bo-nut); background: var(--the-2) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: var(--dam) var(--co-0)/1.2 var(--kieu-chu); color: var(--chu); text-align: center; backdrop-filter: none; }
#app .barn .bi img { width: 40px; height: 40px; object-fit: contain; }
#app .barn .bi .sl { position: absolute; right: 4px; top: 3px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--chu); color: var(--the); font-size: 10px; line-height: 18px; font-weight: var(--rat-dam); }
#app .barn em { grid-column: 1 / -1; }
#app .mach { border-radius: var(--bo-nut); }
#app .mach .me img { width: 44px; height: 44px; object-fit: contain; }
#app .home-now b { color: var(--chu); font-family: var(--kieu-chu); font-weight: var(--rat-dam); }
#app .home-now .he img { width: 64px; height: 64px; object-fit: contain; }
#app .dbtn { border-radius: var(--bo-nut); }
#app .foot { padding: 4px 4px 0; color: var(--trang); text-shadow: 0 1px 2px rgba(20, 30, 60, .5); }
#app .foot button { color: var(--trang); }
#app .seasoncard { margin: 0; }
#app .visit-row input { background: var(--the-2) !important; color: var(--chu) !important; }
#app .locked-note { background: var(--the-2); }
.item .ic img, .seed .e img { object-fit: contain; }
.item .ic img.art, .item .ic img.vc { width: 40px; height: 40px; }
.seed .e img.art, .seed .e img.vc { width: 46px; height: 46px; }
.seed { border-radius: var(--bo-nut); }

/* ---------- sheets ---------- */
#app .veil { position: absolute; inset: 0; z-index: 60; background: var(--mo-nen); animation: hien .2s ease; }
#app .sheet { position: relative; max-width: none; max-height: 86%; border-radius: 22px 22px 0 0; padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(0, 0, 0, .28); animation: truot-len .26s cubic-bezier(.2, .9, .3, 1); font-family: var(--kieu-chu); }
html:not(.night) #app .sheet { background: var(--the); color: var(--chu); }
#app .sheet h3 { font-size: var(--co-4); padding-right: 34px; color: var(--chu); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
#app .sheet h3 img.vc, #app .sheet h3 img.art { width: 28px; height: 28px; }
#app .sheet > .bang-dong { position: absolute; right: 4px; top: 4px; margin: 0; z-index: 3; border: 0; background: none; cursor: pointer; font-family: var(--kieu-chu); }
/* the shop: a full screen between the header and the tab bar, a market stall on the grass and the goods on a warm wooden wall */
#app .veil.cua { top: var(--dau-cao, 92px); bottom: var(--tab-cao, 62px); background: none; animation: none; }
#app .veil.cua .sheet { max-height: none; height: 100%; width: 100%; border-radius: 0; padding: 0; background: none !important; box-shadow: none; animation: none; overflow-x: hidden; gap: 0; border: 0 !important; backdrop-filter: none; }
#app .veil.cua .sheet > .bang-dong { display: none; }
#app .veil.cua .sheet > .vshop, #app .veil.cua .sheet > .okbox { margin: 0; padding: 16px 14px; min-height: 100%; background: var(--the); }
.quay { flex: none; }
.cua-than { flex: 1 0 auto; display: flex; flex-direction: column; gap: 10px; color: var(--ke-chu); }
.cua-than .shophead h3 { color: var(--ke-chu) !important; padding-right: 0 !important; }
.cua-than h4 { color: var(--ke-chu-phu); margin-top: 6px; }
.cua-than .note { border-radius: var(--bo-nut); }
.cua-than .item { background: var(--the) !important; box-shadow: var(--bong); border: 0 !important; border-radius: var(--bo-nut); color: var(--chu); }
.cua-than .wallet { margin: 0; }
.cua-than .wallet .chip { background: var(--the) !important; color: var(--chu) !important; border: 0 !important; box-shadow: var(--bong) !important; }
/* gem packs stand on wooden shelves */
.cua-than .ex-grid.gem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 16px; margin-top: 2px; }
.cua-than .ex-grid.gem-grid .btn { position: relative; min-height: 150px; padding: 100px 4px 8px !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--ke-chu) !important; overflow: visible; gap: 3px; }
.cua-than .ex-grid.gem-grid .btn::before { display: none; }
.cua-than .ex-grid.gem-grid .btn .van { position: absolute; left: 50%; top: 56px; width: 140px; margin-left: -70px; filter: drop-shadow(0 4px 3px rgba(30, 18, 8, .35)); }
.cua-than .ex-grid.gem-grid .btn .sp { position: absolute; left: 50%; top: 4px; height: 62px; width: 112px; margin-left: -56px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 2px 2px rgba(30, 18, 8, .35)); }
.cua-than .ex-grid.gem-grid .btn b { font-size: var(--co-3); font-weight: var(--rat-dam); }
.cua-than .ex-grid.gem-grid .btn small { display: inline-flex; align-items: center; gap: 3px; min-height: 30px; padding: 0 12px; border-radius: var(--bo-nho); background: var(--verro-nen); color: var(--trang); border: 1px solid var(--verro-vien); font-size: var(--co-1); font-weight: var(--rat-dam); opacity: 1; box-shadow: 0 3px 0 #0E1040; }
.cua-than .ex-grid.gem-grid .btn .bonus { top: 2px; right: 6px; z-index: 2; }
.cua-than .ex-grid.gem-grid .btn .gold { bottom: auto; top: 22px; left: 6px; transform: none; z-index: 2; }
.cua-than .ex-grid.gem-grid .btn:disabled { opacity: .55; }
.cua-than .ex-grid:not(.gem-grid) .btn { background: var(--the) !important; color: var(--chu) !important; box-shadow: 0 4px 0 var(--vien) !important; border: 0; }
.cua-than .ex-grid:not(.gem-grid) .btn:disabled { opacity: .5; }
.vlogo { width: 1.1em; height: 1.1em; }

/* ---------- small pop-ups outside the frame ---------- */
.toast { pointer-events: none; top: auto; bottom: calc(var(--tab-cao, 62px) * var(--k, 1) + 22px); max-width: min(330px, 90%); padding: 9px 14px; border-radius: var(--bo-nut); background: #1B2540; color: #FFFFFF; font: var(--dam) var(--co-1)/1.35 var(--kieu-chu); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); z-index: 80; }
.pop { font-family: var(--kieu-chu); font-weight: var(--rat-dam); color: var(--trang); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); z-index: 90; }
.askbox, .okpop { font-family: var(--kieu-chu); }

/* ---------- sign-in ---------- */
.login { position: fixed; inset: 0; z-index: 2; max-width: none; margin: 0; padding: 0 16px 24px; overflow-y: auto; gap: 0; justify-content: flex-start; background: url(/art2/dat/nha-ha.webp?v=3) 50% 100% / max(100%, 520px) auto no-repeat, var(--troi-trua); font-family: var(--kieu-chu); }
.login .langsw { position: static; align-self: flex-end; margin: 12px 0 0; }
.login .langsw button { border: 0; background: var(--nen-noi); color: var(--chu); font-family: var(--kieu-chu); box-shadow: 0 2px 6px rgba(20, 30, 60, .16); opacity: .8; }
.login .langsw button.on { opacity: 1; box-shadow: 0 0 0 2px var(--vang); border-color: transparent; }
.login .logo { width: 84px; height: 84px; margin-top: 4vh; filter: drop-shadow(0 6px 10px rgba(20, 30, 60, .3)); }
.login h1 { margin: 8px 0 12px; font-family: var(--kieu-chu); font-weight: var(--rat-dam); font-size: 30px; color: var(--trang) !important; background: none !important; -webkit-text-fill-color: currentColor; text-shadow: 0 2px 4px rgba(20, 30, 60, .4) !important; }
.login h1 .beta { vertical-align: 6px; }
.login-the { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 14px; border-radius: var(--bo-the); background: var(--the); color: var(--chu); box-shadow: var(--bong); }
html.night .login-the { background: #FFFFFF; color: #21384A; }
.login-the p { color: #5B7486; }
.login-the input { background: #F3F6FA !important; color: #21384A !important; border: 1px solid #DCE3EC !important; font-family: var(--kieu-chu); }
.login .trust { margin-top: 12px; max-width: 360px; border: 0; box-shadow: var(--bong); border-radius: var(--bo-the); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) { .roi, .dom { display: none; } }

/* ---------- touch-ups after the first screenshots ---------- */
/* the shop covers the screen behind it with the same sky */
#app .veil.cua { background: var(--troi-trua); }
#app[data-buoi="sang"] .veil.cua { background: var(--troi-sang); }
#app[data-buoi="chieu"] .veil.cua { background: var(--troi-chieu); }
#app[data-buoi="toi"] .veil.cua { background: var(--troi-toi), #060A1C; }
/* canh nho kin be ngang khung (--s-nho do lib/v2.js do); cao theo cung ti le: van thay dung phan vuon nhu luc 0,74 cao 190 */
.canh-nho { height: calc(257px * var(--s-nho, .74)); }
.canh-nho-trong .dao { top: 118px !important; }
/* Verro Tower: ten star pictures, gold when reached, unlit when not; the next one pulses */
.tstars { align-items: flex-end; gap: 4px; }
.tstars img.ts { height: auto; flex: none; filter: drop-shadow(0 1px 1px rgba(40, 26, 14, .25)); }
.tstars img.ts.off { opacity: .8; }
.tstars img.ts.next { animation: nhap-nhay 1.4s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255, 201, 74, .95)); }
.pinrow .eye img.vc { width: 20px; height: 20px; }
/* Verro Tower stars on a light card */
html:not(.night) .tstars i { color: #E6EBF2; -webkit-text-stroke: 1px #D9A93A; }
html:not(.night) .tstars i.on { color: #FFC21A; -webkit-text-stroke: 0; text-shadow: 0 0 4px rgba(255, 185, 56, .7); }
html:not(.night) .tstars i.next { color: #FFF1C2; -webkit-text-stroke: 1px #C98A1B; }
/* daily gifts: a warm ring and a red dot when something waits (was neon) */
#app .dbtn.hot { border-color: var(--vang); box-shadow: 0 0 0 2px rgba(255, 185, 56, .4); }
#app .dbtn.hot::after { background: var(--do); }
#app .foot { align-self: center; gap: 12px; padding: 4px 12px; border-radius: 12px; background: rgba(20, 30, 60, .28); }
#app .sheet.khong-dong { animation: none; }
.khu-ghi { animation: an-dan 6s ease forwards; pointer-events: none; }
@keyframes an-dan { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* purchase result pop-up and question box in the light look */
html:not(.night) .okpop { background: #FFFFFF; color: var(--chu); border: 0; box-shadow: 0 10px 40px rgba(20, 30, 60, .35); }
html:not(.night) .okpop > b { color: #1F9D55; }
html:not(.night) .okpop.bad > b { color: #C0392B; }
html:not(.night) .okpop > span { color: var(--chu-phu); }
#app .sheet .wg-lang { margin-right: 34px; }
/* welcome guide: four languages stacked in one cell, only the picked one shows (fixed height, no jump when switching) */
.wg-chong { display: grid; }
.wg-chong > .wg-ban { grid-area: 1 / 1; visibility: hidden; }
.wg-chong > .wg-ban.on { visibility: visible; }
#ok .wg-chong { justify-items: center; }
.login .logo { border-radius: 22%; }
/* progress bars: the green of the v2 look (were neon) */
html:not(.night) .jr .row .pg i, html:not(.night) .qrow .qbar i, html:not(.night) #app .mach .pg i, html:not(.night) .ev-bar i, html:not(.night) .ss-bar i { background: linear-gradient(90deg, var(--co), #9BE28A) !important; box-shadow: none !important; }
html:not(.night) .qrow .qbar, html:not(.night) .ss-bar { background: var(--the-2); }
.tab button { font-size: 10.5px; letter-spacing: -.1px; }
#giftFab.qua-cap { margin-bottom: 8px; }
/* card titles: picture and words sit together on the left, the small note goes to the right */
#app .card h2 { justify-content: flex-start; gap: 6px; }
#app .card h2 small { margin-left: auto; text-align: right; }
#app .card h2 img.vc { width: 26px; height: 26px; flex: none; }

/* ---------- v2 gameplay (25/11): shop tabs, season tag, bag, barn size, decoration level ---------- */
.mua-dung { display: inline-block; padding: 0 6px; border-radius: 8px; background: var(--vang); color: var(--chu-tren-vang); font-style: normal; font-size: 10px; font-weight: var(--rat-dam); line-height: 1.6; vertical-align: middle; }
.seed { position: relative; }
.seed .mua-dung { position: absolute; top: 2px; right: 2px; font-size: 9px; }
.tui-so { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--chu-phu); color: var(--the); font-style: normal; font-size: 10px; font-weight: var(--rat-dam); text-align: center; line-height: 1.6; vertical-align: middle; }
.seed .tui-so { position: absolute; top: 2px; left: 2px; }
.loai-phan { font-style: normal; font-size: 10px; font-weight: var(--rat-dam); color: var(--chu-phu); }
.loai-phan.v { color: var(--vang-dam, var(--vang)); }
.bac-tt { font-style: normal; font-size: 10px; font-weight: var(--rat-dam); padding: 0 6px; border-radius: 8px; background: var(--the-2); vertical-align: middle; }
.bac-tt.b2 { background: #d9ecff; } .bac-tt.b3 { background: var(--vang); color: var(--chu-tren-vang); }
.the-o { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.the-o i { font-style: normal; font-size: 11px; font-weight: var(--rat-dam); padding: 1px 7px; border-radius: 9px; background: var(--the-2); }
.kho-suc { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.kho-suc .suc { display: flex; align-items: center; gap: 8px; }
.kho-suc .thanh { flex: 1; height: 10px; border-radius: 5px; background: var(--the-2); overflow: hidden; }
.kho-suc .thanh i { display: block; height: 100%; background: var(--xanh, #5bb04a); border-radius: 5px; }
.kho-suc .suc.day .thanh i { background: #e0663a; }
.kho-suc b { font-size: var(--co-1); white-space: nowrap; }
.kho-day { margin: 0; font-size: var(--co-1); color: #c4471e; font-weight: var(--vua); }
.kho-max { color: var(--chu-phu); }
.tui-do .bi.tui { position: relative; }
.tui-do .bi.tui .tui-hat { position: absolute; left: 4px; bottom: 22px; width: 22px; height: 22px; object-fit: contain; }
.doi-don { margin-top: 4px; }

/* ---------- v2 design, second part (25/11): level-up sheet, gem confirm, guide letters, decoration spots, stages, rescue ---------- */
.len-cap { text-align: center; }
.lv-ds { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.lv-ds li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--bo-nho); background: var(--the-2); }
.lv-ds li > .art, .lv-ds li > img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 34px; }
.lv-ds li.lv-cay { flex-direction: column; align-items: flex-start; }
.lv-ds li.lv-cay > span { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-mot { display: inline-flex; flex-direction: column; align-items: center; width: 64px; font-size: 11px; text-align: center; }
.lv-mot .art { width: 36px; height: 36px; object-fit: contain; }
.xn { text-align: center; }
.xn-hinh { width: 72px; height: 72px; object-fit: contain; margin: 4px auto; display: block; }
.xn-so { list-style: none; margin: 6px 0 12px; padding: 0; text-align: left; }
.xn-so li { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px solid var(--the-2); }
.xn-so li.thieu b { color: #c4471e; }
.xn .btn { width: 100%; margin-top: 6px; }
.thu-hd { margin: 6px 0 12px; }
.thu-hd h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.thu-la { border-radius: var(--bo-nho); background: var(--the-2); padding: 8px 10px; margin-bottom: 6px; }
.thu-la summary { font-weight: var(--rat-dam); cursor: pointer; }
.thu-la.moi summary::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #e0663a; vertical-align: middle; }
.thu-la p { margin: 6px 0 0; font-size: var(--co-1); line-height: 1.45; }
.cho-ds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.cho-o { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 2px solid transparent; border-radius: var(--bo-nut); background: var(--the-2); font: inherit; font-size: var(--co-0); }
.cho-o .art { width: 44px; height: 44px; object-fit: contain; }
.cho-o.chon { border-color: var(--vang); }
.cho-o small { color: var(--chu-phu); }
.giai-doan { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: var(--co-1); }
.gd-thanh { display: inline-flex; gap: 3px; }
.gd-thanh i { width: 14px; height: 6px; border-radius: 3px; background: var(--the-2); }
.gd-thanh i.on { background: var(--xanh, #5bb04a); }
.noel-con { font-weight: var(--rat-dam); }
.cuu-tro { text-align: center; }
.cuu-mam { width: 96px; height: 96px; object-fit: contain; }
.kho-tt .item { margin-bottom: 6px; }

/* ---------- Cua hang + Trang tri dung ke trung bay v2 (25/11 lan bon) ---------- */
#app .sheet .ngan.ngan-ch { position: sticky; top: 4px; z-index: 3; margin: 10px 0 8px; }
.ngan.ngan-ch button { padding: 4px 1px; gap: 2px; font-size: 10.5px; line-height: 1.15; white-space: nowrap; letter-spacing: -.2px; border: 2px solid transparent; }
.ngan.ngan-ch button img { width: 30px; height: 30px; }
.ngan.ngan-ch button.chon { border-color: var(--vang-dam); }
.ngan-than { min-height: calc(100dvh - var(--dau-cao, 92px) - var(--tab-cao, 62px) - 70px); }
.ngan-than[hidden] { display: none; }
.ngan-than > .loi-ch { margin-top: 0; }
.mon .hang-nut { display: flex; flex-wrap: wrap; justify-content: center; }
.mon .hang-nut .nut { flex: 1 1 0; min-width: 0; }
.mon .hang-nut .short { flex-basis: 100%; text-align: center; }
.mon .sl-hat { font-size: 10px; opacity: .85; margin-right: 2px; }
.mon .h .khoa-nho, .seed .e .khoa-nho { position: absolute; z-index: 2; width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.mon .h .khoa-nho { left: 50%; bottom: 40px; margin-left: 22px; }
.mon .nhan-goc.bac-tt { right: 4px; left: auto; }
.mon .nhan-goc.bac-tt.b2 { background: #CFE6FF; color: #19406E; }
.mon .nhan-goc.bac-tt.b3 { background: var(--vang); color: var(--chu-tren-vang); }
.seed .e { position: relative; display: inline-block; }
.seed .e .khoa-nho { right: -8px; top: -4px; width: 20px; height: 20px; }
/* cay chua mo: o hat KHONG mo ca o (index.html de .4), chi hinh cay xam nhe, chu nhat, o khoa ro net */
#app .sheet .seed.lock { opacity: 1; background: var(--the-2); border-color: transparent; }
#app .sheet .seed.lock b, #app .sheet .seed.lock > span:not(.e) { color: var(--chu-phu); }
.seed.lock .e img.art { filter: grayscale(.75) brightness(1.05); opacity: .6; }
.kho-tt .ke, .sheet .ke { min-height: 0; }
/* tui kim cuong dung TREN ke (van ke ve sau, tui ve truoc) */
.cua-than .ex-grid.gem-grid .btn .sp { z-index: 1; }
.cua-than .ex-grid.gem-grid .btn .van { z-index: 0; }

/* ---------- tham vuon hang xom: nguyen khu vuon nhu man choi (25/11 lan bon) ---------- */
#app .veil.khach { top: var(--dau-cao, 92px); bottom: var(--tab-cao, 62px); background: var(--troi-trua); animation: none; }
#app[data-buoi="sang"] .veil.khach { background: var(--troi-sang); }
#app[data-buoi="chieu"] .veil.khach { background: var(--troi-chieu); }
#app[data-buoi="toi"] .veil.khach { background: var(--troi-toi), #060A1C; }
#app .veil.khach .sheet { max-height: none; height: 100%; width: 100%; border-radius: 0; padding: 8px 10px 14px; background: none !important; box-shadow: none; animation: none; overflow-x: hidden; border: 0 !important; backdrop-filter: none; }
#app .veil.khach .sheet > .bang-dong { display: none; }
.khach { display: flex; flex-direction: column; gap: 8px; }
.khach-dau { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--bo-the); background: var(--the); box-shadow: var(--bong); color: var(--chu); }
.khach-ten { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.khach-ten .art { width: 40px; height: 40px; object-fit: contain; }
.khach-ten span { display: flex; flex-direction: column; min-width: 0; }
.khach-ten b { font-size: var(--co-2); font-weight: var(--rat-dam); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.khach-ten small { color: var(--chu-phu); font-size: var(--co-0); }
.khach-nut { display: flex; align-items: center; gap: 8px; } .khach-nut .btn { flex: 1; margin: 0; }
/* vuon hang xom tran het be ngang man nhu vuon chinh (truoc lui 10 diem anh moi ben theo le cua bang: lo nen troi o hai mep) */
.khach-canh { flex: none; height: calc(100dvh - var(--dau-cao, 92px) - var(--tab-cao, 62px) - 270px); min-height: 400px; margin: 0 -10px; border-radius: 0; }
.khach-khu { top: 6px; }
.khach-khu button:disabled { opacity: .65; }
.khach-tin { padding: 8px 10px; border-radius: var(--bo-the); background: var(--the); box-shadow: var(--bong); font-size: var(--co-1); color: var(--chu-phu); }
.khach-tin p { margin: 3px 0; line-height: 1.35; } .khach-tin p.het { color: #c4471e; font-weight: var(--rat-dam); }
/* vuon cua khach: khong goi y gieo (khach khong gieo duoc), khong hien nhan trong */
#vuonKhach .o.trong .bien, #vuonKhach .o .nhan:empty { display: none; }
.khach-dau #cx { flex: none; }
.khach-ten b { white-space: normal; overflow: visible; line-height: 1.2; }
/* bang truot la cot co gian: luoi ke / danh sach khong duoc co nho hon noi dung (truoc bi co nen nut Dong de len the ke) */
#app .sheet > .ke, #app .sheet > .kho-tt, #app .sheet > .cho-ds, #app .sheet > .lv-ds, #app .sheet > .thu-hd, #app .sheet > div { flex-shrink: 0; }
.thu-hd h4 img, .thu-hd h4 .art { width: 22px; height: 22px; object-fit: contain; }
/* khung bao "da mua" chi la bao tam (tu tat sau 2 giay): khong chan bam, nguoi choi bam xuyen qua duoc (truoc chan nut Ve vuon o man nho 360 x 640) */
.okpop { pointer-events: none; }

/* ---------- 25/11 lan nam (anh An che tiep) ---------- */
/* (4) nut KHONG tu ke thua phong: trinh duyet ve chu nut bang Arial (nhan ngan Cua hang, gia tren the ke...). Moi nut dung phong cua game. */
button, input, select, textarea { font-family: inherit; }
/* (5) chu tren nut xanh la tuoi: bong chu nhe cho de doc */
button.btn:not(.sun):not(.ghost):not(.mini), .nut:not(.vang):not(.phu):not(.verro) { text-shadow: 0 1px 1px rgba(10, 70, 20, .35); }
/* (3) chu sat mep nut: nut nho cua Nhiem vu ("Nhan") co dem hai ben, nut Gop y co dem */
#app .btn.mini { width: auto; min-width: 58px; padding: 6px 12px; }
#app .linkbtn { padding: 4px 10px; }
/* (1) cau mo ta cua 5 ngan xep chong trong mot o: o cao bang cau dai nhat, doi ngan khong lam ke nhay */
.loi-ch.loi-chong { display: grid; }
.loi-ch.loi-chong > span { grid-area: 1 / 1; }
.loi-ch.loi-chong > span.an { visibility: hidden; }
/* (2) dau trang co dai nen cung mau troi + khoang ho; khi noi dung duoi no dang cuon thi do bong de tach han */
#app .dau { padding-bottom: 8px; background: linear-gradient(180deg, #5AA6E8, #6AAFEB); transition: box-shadow .2s ease; }
#app[data-buoi="trua"] .dau { background: linear-gradient(180deg, #2E86DE, #3E91E3); }
#app[data-buoi="chieu"] .dau { background: linear-gradient(180deg, #4B3A8C, #5A4194); }
#app[data-buoi="toi"] .dau { background: linear-gradient(180deg, #060A1C, #0A1230); }
#app.cuon .dau { box-shadow: 0 8px 14px -8px rgba(10, 30, 70, .55); }
/* (6) thanh suc chua Kho: dai xanh la nhu thanh Nhiem vu / Tuan le Nang luong; day kho thi chuyen cam do */
.kho-suc .thanh { height: 10px; border-radius: 6px; background: var(--the-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); }
.kho-suc .thanh i { background: linear-gradient(90deg, var(--co), #9BE28A); border-radius: 6px; }
.kho-suc .suc.day .thanh i { background: linear-gradient(90deg, #F0A04B, #E8546B); }
/* (6) huy hieu cap: huy chuong vang co vong tien do kinh nghiem xanh la, so trang vien nau, ngoi sao nho tren dinh */
.dau-2 .lvl { width: 42px; height: 42px; overflow: visible; box-shadow: none; }
.dau-2 .lvl .n.ring { width: 42px; height: 42px; background: conic-gradient(#5DD062 var(--p, 0%), rgba(255, 255, 255, .78) 0); color: #FFFFFF; font: 900 17px/1 var(--kieu-chu);
  text-shadow: 0 1px 0 #8A4B00, 1px 0 0 #8A4B00, -1px 0 0 #8A4B00, 0 -1px 0 #8A4B00, 0 2px 3px rgba(80, 40, 0, .35); box-shadow: 0 2px 6px rgba(20, 30, 60, .28); }
.dau-2 .lvl .n.ring::before { inset: 3px; background: radial-gradient(circle at 35% 28%, #FFF1A8 0%, #FFCB45 38%, #F2A41C 72%, #D4800C 100%);
  box-shadow: inset 0 -2px 0 rgba(140, 70, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .7); }
.dau-2 .lvl .n.ring::after { content: ""; position: absolute; left: 50%; top: -7px; width: 16px; height: 16px; margin-left: -8px; background: url(/art2/bieu-tuong/sao.webp?v=3) center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(80, 40, 0, .4)); }
/* ngan Kim cuong (va ban gioi han o ngan Trang tri): cac hang goi cach nhau nhu cac muc khac (truoc le duoi 0: dinh sat nhau) */
.cua-than .ngan-than > .item, .cua-than .ltd .item { margin: 0 0 8px; }
/* dai Don hang tren vuon: cac mon nam trong khung tu co lai (mo dan o mep phai), nut Giao het luon tron ven trong man (truoc bi day ra ngoai) */
.don-dai .dm-ds { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.don-dai .dm-ds > * { flex: none; }
.don-dai > b, .don-dai > img { flex: none; }
.don-dai > .nut { flex: none; margin-left: 4px; }

/* ---------- Thap Verro: moi bac mot hieu ung rieng, ve bang code (anh An 25/11 lan tam; lan hai sau khi anh xem trang demo). Nut thap la mot lop xep chong rieng: lop z -1 nam SAU hinh thap nhung truoc mat dat ---------- */
.dao > .vat-nut[data-thap] { isolation: isolate; overflow: visible; }
.thap-hu { position: absolute; inset: 0; pointer-events: none; }
/* !important: cac khai bao `animation:` rieng cua tung mon dat lai do tre ve 0 (luc dau moi hat, moi vong song chay cung mot nhip) */
.thap-hu i, .thap-hu b { position: absolute; display: block; animation-delay: calc(var(--tre, 0s) - var(--p, 0s)) !important; }
.thap-hu g { animation-delay: calc(var(--tre, 0s) - var(--p, 0s)) !important; }
/* quang pha le tren dinh (bac 1, va nho hon o nhieu bac khac) */
.thap-hu .hao { left: 50%; top: 6%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; z-index: 1; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(220, 252, 255, .95) 0, rgba(34, 228, 255, .6) 32%, rgba(59, 107, 255, .18) 58%, transparent 70%); animation: th-tho 2.4s ease-in-out infinite; }
.thap-hu .hao.nho { width: 24px; height: 24px; margin: -12px 0 0 -12px; opacity: .8; }
.thap-hu .hao.vang { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: radial-gradient(circle, rgba(255, 252, 225, .95) 0, rgba(255, 214, 90, .65) 30%, rgba(34, 228, 255, .25) 56%, transparent 70%); }
.thap-hu .hao.logo { top: 66%; width: 34px; height: 34px; margin: -17px 0 0 -17px; animation-duration: 1.2s; }
@keyframes th-tho { 0%, 100% { transform: scale(.72); opacity: .55; } 50% { transform: scale(1.22); opacity: 1; } }
/* ngoi sao 4 canh dung chung (den nhay bac 2, ngoc bac 7-10) */
.thap-hu .nhay b, .thap-hu .ngoc b { background: #FFFFFF; clip-path: polygon(50% 0, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0 50%, 46% 46%); opacity: 0; }
@keyframes th-sao4 { 0%, 28%, 72%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
/* bac 2: den nhay lap lanh tren cac bong den co san (vanh mai, ban cong), moi bong mot nhip */
.thap-hu .nhay { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; z-index: 1; border-radius: 50%; mix-blend-mode: screen; opacity: .3;
  background: radial-gradient(circle, #FFFFFF 0, rgba(150, 245, 255, .9) 30%, rgba(34, 228, 255, .35) 55%, transparent 72%); animation: th-nhay var(--d) ease-in-out infinite; }
.thap-hu .nhay b { left: -5px; top: -5px; width: 19px; height: 19px; animation: th-sao4 var(--d) ease-in-out infinite; }
@keyframes th-nhay { 0%, 100% { opacity: .25; transform: scale(.7); } 45% { opacity: 1; transform: scale(1.25); } 62% { opacity: .5; transform: scale(.9); } }
/* bac 3 (xanh lo) va bac 10 (vang): bui to nho, moi hat bay len + dung dua rieng roi tan tren troi */
.thap-hu .bui { z-index: 1; opacity: 0; animation: th-bay var(--d) linear infinite; }
.thap-hu .bui b { inset: 0; border-radius: 50%; background: #E6FDFF; box-shadow: 0 0 4px 1px rgba(34, 228, 255, .85); animation: th-lac var(--d2) ease-in-out infinite alternate; }
.thap-hu .bui.vang b { background: #FFF4CC; box-shadow: 0 0 4px 1px rgba(255, 200, 70, .9); }
@keyframes th-bay { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: var(--o); } 75% { opacity: calc(var(--o) * .8); } 100% { transform: translate(var(--dx), calc(var(--h) * -1)); opacity: 0; } }
@keyframes th-lac { from { transform: translateX(calc(var(--sx) * -1)); } to { transform: translateX(var(--sx)); } }
/* bac 4 (xanh vang) va bac 9 (vang): dom dom luon vong quanh thap, nhay sang rieng */
.thap-hu .dom { width: 5px; height: 5px; z-index: 1; animation: th-dom var(--d) ease-in-out infinite; }
.thap-hu .dom b { inset: 0; border-radius: 50%; background: #F7FFB0; box-shadow: 0 0 5px 2px rgba(190, 255, 90, .85); animation: th-dom-sang var(--d2) ease-in-out infinite; }
.thap-hu .dom.vang b { background: #FFF1B8; box-shadow: 0 0 6px 2px rgba(255, 196, 60, .95); }
@keyframes th-dom { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(var(--x1), var(--y1)); } 50% { transform: translate(var(--x2), var(--y2)); } 75% { transform: translate(var(--x3), var(--y3)); } }
@keyframes th-dom-sang { 0%, 100% { opacity: .12; } 35% { opacity: 1; } 60% { opacity: .85; } }
/* bac 4: den pha tu dinh quet qua lai tren troi (sau thap) */
.thap-hu .pha { left: 50%; top: 6%; width: 64px; height: 150px; margin: -150px 0 0 -32px; z-index: -1; transform-origin: 50% 100%;
  clip-path: polygon(50% 100%, 0 0, 100% 0); background: linear-gradient(to top, rgba(160, 245, 255, .75), rgba(34, 228, 255, .3) 45%, transparent);
  animation: th-quet 6s ease-in-out infinite; }
@keyframes th-quet { 0%, 100% { transform: rotate(-38deg); } 50% { transform: rotate(38deg); } }
/* bac 5: ba sao choi to nho, moi cai mot quy dao nghieng, toc do, chieu rieng, mat phang quy dao lac lu; nua sau khuat sau thap; dau + hai bong mo lam duoi */
.thap-hu .quy-v { left: 50%; width: 0; height: 0; animation: th-quy-z var(--d) steps(1, end) infinite, th-lac-goc var(--d3) ease-in-out infinite; }
.thap-hu .quy { left: 0; top: 0; width: 0; height: 0; transform: rotate(var(--ng)) scaleY(var(--dep)); }
.thap-hu .quy b { left: calc(var(--sz) / -2); top: calc(var(--sz) / -2); width: var(--sz); height: var(--sz); border-radius: 50%; opacity: var(--mo);
  background: radial-gradient(circle, #FFFFFF 0, rgba(34, 228, 255, .95) 38%, transparent 70%); box-shadow: 0 0 calc(var(--sz) * .8) calc(var(--sz) * .2) rgba(34, 228, 255, .55); animation: th-xoay var(--d) linear infinite; }
.thap-hu .quy.nguoc b { animation-direction: reverse; }
@keyframes th-xoay { from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg) scale(var(--co)) scaleY(var(--k)); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg) scale(var(--co)) scaleY(var(--k)); } }
@keyframes th-quy-z { 0% { z-index: 2; } 50% { z-index: -1; } }
@keyframes th-lac-goc { 0%, 100% { transform: rotate(-9deg) translateY(-3px); } 50% { transform: rotate(9deg) translateY(3px); } }
/* bac 6: tia set SVG net manh, loi trang vien xanh lo, co nhanh, doi dang khi chop: phong ra tu logo V tren cua va quanh pha le */
.thap-hu svg.set { position: absolute; left: 0; top: 0; overflow: visible; z-index: 1; pointer-events: none; }
.thap-hu .tia-set { opacity: 0; filter: drop-shadow(0 0 1.2px #9FF6FF) drop-shadow(0 0 3.5px #22E4FF); animation: th-set var(--d) linear infinite; }
.thap-hu .tia-set path { fill: none; stroke: #F4FEFF; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.thap-hu .tia-set .a { animation: th-set-a var(--d) steps(1, end) infinite; }
.thap-hu .tia-set .b { opacity: 0; animation: th-set-b var(--d) steps(1, end) infinite; }
@keyframes th-set { 0%, 9%, 12.5%, 13.5%, 18%, 100% { opacity: 0; } 10%, 12%, 14%, 17% { opacity: 1; } }
@keyframes th-set-a { 0% { opacity: 1; } 13%, 100% { opacity: 0; } }
@keyframes th-set-b { 0% { opacity: 0; } 13%, 100% { opacity: 1; } }
/* bac 7: mua sao bang sau thap */
.thap-hu .sb { width: 46px; height: 2px; z-index: -1; border-radius: 2px; opacity: 0; transform-origin: 100% 50%;
  background: linear-gradient(to right, transparent, rgba(160, 240, 255, .55) 60%, #FFFFFF); animation: th-sb var(--d) ease-in infinite; }
@keyframes th-sb { 0% { opacity: 0; transform: rotate(150deg) translateX(-40px) scaleX(.3); } 5% { opacity: 1; } 14% { opacity: 0; transform: rotate(150deg) translateX(70px) scaleX(1); } 100% { opacity: 0; transform: rotate(150deg) translateX(70px); } }
/* bac 7-10: 4 vien ngoc xanh tren 4 thap con lap lanh */
.thap-hu .ngoc { width: 14px; height: 14px; margin: -7px 0 0 -7px; z-index: 1; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(230, 253, 255, .95) 0, rgba(34, 228, 255, .7) 35%, transparent 70%); animation: th-tho 2.4s ease-in-out infinite; }
.thap-hu .ngoc b { left: -6px; top: -6px; width: 26px; height: 26px; animation: th-sao4 2.4s ease-in-out infinite; }
/* bac 8: vet sang vang luot qua than thap (chi tren hinh thap, nho mat na = chinh hinh thap) + sao vang lap lanh quanh canh */
.thap-hu .vet { inset: 0; z-index: 1; mix-blend-mode: screen; background: linear-gradient(105deg, transparent 46%, rgba(255, 240, 190, .9) 50%, transparent 54%); background-size: 300% 100%;
  -webkit-mask: var(--anh) center / 100% 100% no-repeat; mask: var(--anh) center / 100% 100% no-repeat; animation: th-vet 4s ease-in-out infinite; }
@keyframes th-vet { 0%, 35% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
.thap-hu .sao-v { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; z-index: 1; filter: drop-shadow(0 0 3px rgba(255, 210, 80, .95)); background: radial-gradient(circle, #FFFFFF 0, #FFD866 55%, #E0A21F 100%);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: th-sao 2.4s ease-in-out infinite; }
@keyframes th-sao { 0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 45% { transform: scale(1.15) rotate(45deg); opacity: 1; } 70% { transform: scale(.4) rotate(70deg); opacity: .6; } }
/* bac 9: nen nang luong sang duoi chan + 4 vong song loang ra (day, sang) */
.thap-hu .nen-sang { left: 50%; bottom: -7%; width: 175%; height: 28%; margin-left: -87.5%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(140, 245, 255, .6) 0, rgba(59, 107, 255, .28) 45%, transparent 70%); animation: th-tho 2.4s ease-in-out infinite; }
.thap-hu .song { left: 50%; bottom: -5%; width: 195%; height: 28%; margin-left: -97.5%; z-index: -1; border-radius: 50%; border: 3px solid rgba(150, 245, 255, .95);
  box-shadow: 0 0 10px rgba(34, 228, 255, .8), inset 0 0 8px rgba(106, 61, 255, .55); opacity: 0; animation: th-song 2.4s ease-out infinite; }
@keyframes th-song { 0% { transform: scale(.25); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
/* bac 10: tia vang xoay sau thap, pha le ruc vang, bui vang bay len */
.thap-hu .tia { left: 50%; top: 30%; width: var(--c); height: var(--c); margin: calc(var(--c) / -2) 0 0 calc(var(--c) / -2); z-index: -1; border-radius: 50%; opacity: .9;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 90, .55) 0 7deg, rgba(34, 228, 255, .0) 7deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: th-tia 12s linear infinite; }
@keyframes th-tia { to { transform: rotate(360deg); } }
.ung-dung.it-dong .thap-hu .bui, .ung-dung.it-dong .thap-hu .dom, .ung-dung.it-dong .thap-hu svg.set, .ung-dung.it-dong .thap-hu .quy-v, .ung-dung.it-dong .thap-hu .song, .ung-dung.it-dong .thap-hu .sao-v, .ung-dung.it-dong .thap-hu .sb { display: none; }

/* weeds on land left empty for an hour (game rule): drawn over the soil of a v2 plot */
.o .weeds{position:absolute;inset:18% 10% 30%;display:flex;justify-content:space-around;align-items:flex-end;pointer-events:none;z-index:2}
.o .weeds img{width:30%;animation:weedSway 2.4s ease-in-out infinite;transform-origin:50% 100%}
.o .weeds img:nth-child(2){width:36%;animation-delay:.4s}.o .weeds img:nth-child(3){animation-delay:.8s}
@media (prefers-reduced-motion:reduce){.o .weeds img{animation:none}}

/* ---- 25/11 review fixes (anh Victor): readable on small phones, clearer buttons ---- */
#sprout .bong .sp-tx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
#sprout .bong .sp-tx.mo { display: block; }
#app .order button:disabled { background: var(--the) !important; color: var(--chu-phu) !important; box-shadow: inset 0 0 0 1.5px var(--vien) !important; opacity: 1; text-shadow: none; }
#app .order .phai { width: 136px; }
#app .order .rw { flex-wrap: nowrap; white-space: nowrap; gap: 3px; font-size: var(--co-2); align-items: center; }
.canh-nut { gap: 16px; }
.canh-nut .cn-chu { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); white-space: nowrap; padding: 0 5px; border-radius: 7px; background: var(--nhan-o); color: var(--trang); font: var(--rat-dam) 9px/14px var(--kieu-chu); }
#giftFab.qua-cap { margin-bottom: 0; }
.hanh .nut.gem { width: 86px; flex-direction: column; gap: 0; padding: 2px 4px; }
.hanh .nut.gem small { font-size: 9.5px; line-height: 1.1; font-weight: var(--rat-dam); color: var(--chu-phu); }
.hanh .nut.gem .qh { display: flex; align-items: center; gap: 3px; }
.o .nhan { bottom: -5px; font-size: 10px; padding: 0 5px 1px; }
.o .nhan.chin-n { background: var(--vang); color: var(--chu-tren-vang); animation: nhay-nhan 1.2s ease infinite; }
#app .ticker { background: rgba(255, 255, 255, .94) !important; }
html.night #app .ticker { background: rgba(18, 26, 62, .94) !important; }

/* ---- 25/11 review, items 8-11 ---- */
#app .dai { background: rgba(255, 255, 255, .92) !important; border: 1px solid var(--vien-noi) !important; padding: 4px 10px !important; box-shadow: 0 2px 6px rgba(20, 30, 60, .12); }
html.night #app .dai { background: rgba(18, 26, 62, .92) !important; }
#app .dai.on { background: linear-gradient(90deg, #FFE08A, #FFB938) !important; }
.quay { height: 128px; }
.cua-than .wallet { display: none; }
.cua-than .ex-grid.gem-grid .btn .sp { transform-origin: 50% 100%; }
.cua-than .ex-grid.gem-grid .btn:nth-child(1) .sp { transform: scale(.62); }
.cua-than .ex-grid.gem-grid .btn:nth-child(2) .sp { transform: scale(.74); }
.cua-than .ex-grid.gem-grid .btn:nth-child(3) .sp { transform: scale(.86); }
.cua-than .ex-grid.gem-grid .btn:nth-child(4) .sp { transform: scale(.96); }
.cua-than .ex-grid.gem-grid .btn:nth-child(n+5) .sp { transform: scale(1.08); }
.quay img.q { width: 146px; margin-left: -73px; } .quay img.den { top: 20px; width: 104px; margin-left: -52px; }
/* season card (25/11, anh Victor): the fund number was dark gold on the dark card (v2 redefines --gold for light cards) and the burned line was cut at the right edge */
#app .seasoncard .sfund { flex: none; }
#app .seasoncard .sfund b { color: #FFD45E; text-shadow: 0 0 10px rgba(255, 201, 74, .55); }
#app .seasoncard .sburn { font-size: 12.5px !important; color: #FFC7A6; }
#app .seasoncard .st b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* crop care: a bug on the plot, the spray row */
.o .nhan.sau { background: #C0392B; animation: nhay-nhan 1.2s ease infinite; }
.item.sau-hang { border: 2px solid #C0392B; border-radius: 14px; }

.canh-nut .sau-fab { background: #C0392B; border-color: #fff; animation: nhay-nhan 1.2s ease infinite; }
.canh-nut .sau-fab .sau-ic { font-size: 24px; line-height: 1; }
.canh-nut .sau-fab .sau-so { position: absolute; right: -3px; top: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--vang); color: var(--chu-tren-vang); font: var(--rat-dam) 11px/18px var(--kieu-chu); font-style: normal; text-align: center; }
.canh-nut .sau-fab[hidden] { display: none; }
.sau-khung { border: 2px solid #E0564A; background: rgba(192, 57, 43, .16); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sau-khung p { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.sau-khung p span { font-size: 13.5px; color: var(--muted); }
.sau-khung .btn { width: 100%; }
.sau-ds { display: flex; flex-wrap: wrap; gap: 6px; }
.sau-ds span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 13px; }
.sau-ds span img { width: 18px; height: 18px; }
#app #bugFab { background: #D8432F !important; border: 2px solid #fff; }
#app .o .nhan.sau { background: #D8432F !important; }

/* toast: above the order strip and the action buttons, never over them */
.toast { bottom: calc(var(--tab-cao, 62px) * var(--k, 1) + 150px); }
.seed .mua-dung.don-can { background: #2FBF71; color: #fff; }
#sprout .sp-snow { position: absolute; right: 10px; top: -13px; padding: 3px 9px; border-radius: 10px; background: #3A7BD5; color: #fff; font: var(--rat-dam) 11px/1.4 var(--kieu-chu); border: 1.5px solid #fff; }
.trucks .trw { flex-wrap: wrap; } .trucks .trw b { white-space: nowrap; flex: 1 1 auto; font-size: 12.5px; }
.trucks .trw { flex-wrap: nowrap; } .trucks .trw b { flex: 1 1 0; min-width: 0; font-size: 12px; letter-spacing: -.2px; } .trucks .trw .btn { white-space: nowrap; flex: 0 0 auto; }

/* the news strip keeps to the left of the sky; the sun / moon has the right */
/* while crops have bugs the Spray button takes the Scene button's place, so the column never grows over the plots */
.canh-nut .sau-fab:not([hidden]) ~ #sceneBtn { display: none; }

@keyframes sau-nhip { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
#app #bugFab { animation: sau-nhip 1.2s ease infinite; }
#app .o .nhan.sau { animation: none; }

/* 26/11: the news strip runs inside the golden-hour bar (where the 'Evening · Winter' words were), so the sky and the castle stay clear */
#app .dai .ticker { position: static; display: flex; flex: 1 1 0; min-width: 0; margin: 0 0 0 6px; padding: 0 0 0 8px; min-height: 0; border-radius: 0; background: none !important; border-left: 1px solid var(--vien-noi) !important; overflow: hidden; }
#app .dai .ticker[hidden] { display: none; }
#app .dai .ticker.empty { right: auto; flex: 0 0 auto; margin-left: auto; }
#app .dai .ticker .tk { display: block; flex: 1; min-width: 0; overflow: hidden; }
#app .dai .ticker .tk-in { display: inline-flex; }
#app .dai .ticker .live b { font-weight: var(--rat-dam); }
#app .dai:has(.ticker:not([hidden])) #sceneTag { display: none; }
#app .dai .gv small { display: none; }
/* Bé Mầm's bubble: two lines (tap to read all), so the plots can sit lower and the castle keeps its space */
#sprout .bong .sp-tx { -webkit-line-clamp: 2; }
.dao[data-mat^="dat/nha"] .luoi { top: 64px; }

/* the scene is drawn on a 390-wide stage; on a wider canvas (see fit()) the stage stays in the middle and the ground picture runs to the edges */
.canh-nen, .canh-dao { left: 50%; right: auto; width: 390px; margin-left: -195px; }
.canh-nen { overflow: visible; }
.dao > img.mat { transform: scale(var(--gian, 1)); transform-origin: 50% 12%; }

/* 26/11 (anh Victor, 2nd pass): the feed gets its own full-width line under the golden-hour line, inside the
   same card, and shows one whole event at a time (who bought what, who levelled up) instead of a fast marquee
   squeezed into the space left after the golden-hour clock. */
#app .dai { flex-wrap: wrap; row-gap: 3px; overflow: hidden; }
#app .dai .ticker { flex: 1 1 100%; order: 9; margin: 0; padding: 3px 0 0; border-left: 0 !important; border-top: 1px solid var(--vien-noi) !important; -webkit-mask-image: none; mask-image: none; gap: 8px; min-height: 18px; }
#app .dai .ticker.empty { flex: 1 1 100%; margin-left: 0; }
#app .dai .ticker .tk { -webkit-mask-image: none; mask-image: none; }
#app .dai .ticker .tk-in { animation: none; padding-left: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; transition: opacity .35s ease, transform .35s ease; }
#app .dai .ticker .tk-in.doi { opacity: 0; transform: translateY(4px); }
#app .dai .ticker .live { flex: none; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { #app .dai .ticker .tk-in { transition: none; } }
