/* Lane S → L → P1 → G (docs/BO_CUC_50.md mục 6, docs/SAN_KHAU_THAT.md): bố cục v4 — đấu trường 260–920 (battle.js; tâm pha thu gọn
   trong container của đấu trường khi không trận: rối/ảnh ở lớp SAU Egret, chữ ở #dai trong lớp DOM #dauTruong), sân tông môn 920–1620
   (#tlt) với 30 người gồm cả top 3. Không còn ba bệ Tam Tôn. Nạp SAU game.css. Toạ độ #dai = trong dải đấu trường (0 = y 260);
   #tlt: 0 = y 920. Chữ trên sân khấu tối thiểu 22 px (xem điện thoại = 1/3). */

/* lớp rối nằm trên #stage, dưới #hud (lane U giữ trong game.css; dòng này chỉ là bảo hiểm) */
#rigHost { z-index: 10; }
/* màn ra tướng có rối: nâng lớp rối lên trên lớp tối của #reveal (40), dưới #fx (50) */
body.sk-rv #rigHost { z-index: 45 !important; }
/* thẻ nhỏ bay từ sân lên đấu trường: #minis được stages.js chuyển ra #shake, nằm trên canvas rối (10) và lớp DOM đấu trường (12) */
#minis.p1 { position: absolute; inset: 0; z-index: 14; pointer-events: none; }

/* ---------- #dai: chữ của tâm pha + khung trận dự phòng (trong #dauTruong của battle.js, dưới mọi phần của battle.js) ---------- */
#dai { position: absolute; left: 0; top: 0; width: 1080px; height: 660px; pointer-events: none; }
#dai.in-dt { z-index: 0; }
#dai.own { z-index: 2; overflow: hidden; }
.dai-pha { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.dai-pha.on { opacity: 1; visibility: visible; transition: opacity .6s; }
#dai.fight .dai-pha { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
/* v5: kết quả lớn diễn trong tâm cảnh → chữ tâm pha (có visibility riêng) ẩn theo lớp DOM đấu trường (battle.js ẩn #dauTruong lúc body.rv-on) */
body.rv-on #dai .dai-pha { visibility: hidden; transition: none; }

/* ---------- tâm pha thu gọn (không trận; chân ≈ 800 sân khấu = 540 trong dải) ----------
   Chiêu Hiền: hai bảng nhỏ hai bên đàn (y 640–750 sân khấu) — dưới bảng "Trận tiếp theo" / thẻ kết quả của battle.js (434–580). */
#dai .side { top: 380px; width: 236px; padding: 4px 12px 8px; }
#dai .side .sd-h { height: 34px; font-size: 22px; line-height: 36px; padding: 0 30px; margin: 0 -2px 2px; }
#dai .side.l { left: 12px; }
#dai .side.r { right: 12px; }
#dai .side .sd-kv { font-size: 24px; line-height: 34px; }
.alt-who { display: flex; align-items: center; gap: 6px; font-size: 24px; line-height: 34px; font-weight: 800; text-shadow: var(--ol); white-space: nowrap; overflow: hidden; }
.alt-who .av { width: 28px !important; height: 28px !important; flex: none; }
.alt-who span { overflow: hidden; text-overflow: ellipsis; }
.alt-hn { font-family: var(--f-title); font-size: 28px; line-height: 34px; font-weight: 800; color: #ffe9a0; text-shadow: var(--ol); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Linh Thú: nhãn dưới ba thú — thú giữa 2 dòng, hai bên 1 dòng (tên chủ) */
.pet-lab { position: absolute; width: 200px; margin-left: -100px; text-align: center; pointer-events: none; transition: opacity .4s; }
.pet-lab.empty { opacity: 0; }
.pet-lab .pn1 { font-size: 24px; line-height: 28px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: var(--ol); }
.pet-lab .pn2 { font-size: 22px; line-height: 26px; font-weight: 700; color: #e8fff6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: var(--ol); }
.pet-lab .pn2:empty { display: none; }
.pet-lab.big { width: 240px; margin-left: -120px; }
.pet-lab.big .pn1 { font-size: 26px; color: #ffe9a0; }
/* Lôi Đài không trận: biển "LÔI ĐÀI" + một dòng (cặp sắp đấu / kết quả ở bảng của battle.js) */
#dai .ar-idle { position: absolute; left: 270px; right: 270px; top: 360px; padding: 0; background: none; border: 0; border-image: none; text-align: center; }
.ar-sign { width: 420px; margin: 0 auto; height: 58px; text-align: center; font-family: var(--f-title); font-weight: 800; font-size: 44px; line-height: 58px; letter-spacing: 8px; color: #ffe9a0;
  background: url(../art/ui/rank/phb_com_y4.png) center / 100% 100% no-repeat; text-shadow: 0 3px 0 #3a0a04, 2px 0 0 #3a0a04, -2px 0 0 #3a0a04, 0 -2px 0 #3a0a04; }
#dai .ar-c { margin-top: 8px; font-size: 26px; line-height: 34px; }

/* ---------- khung trận dự phòng (rối trận hỏng; battle.js ẩn khung này bằng body.bt-band). Đáy .d-cw (368) = chân đấu thủ 860 → top 232 ---------- */
#dai .duel { position: absolute; left: 0; top: 232px; width: 1080px; height: 420px; z-index: 3; display: none; }
#dai .duel.on { display: block; }
#dai .d-round { top: 0; font-size: 38px; line-height: 46px; background-size: 460px 46px; }
#dai .d-sub { top: 52px; left: 470px; right: 470px; height: 34px; font-size: 28px; line-height: 34px; }
#dai .d-f { top: 48px; width: 420px; }
#dai .d-f.a { left: 60px; }
#dai .d-f.b { right: 60px; left: auto; }
#dai .d-name { height: 38px; font-size: 32px; line-height: 38px; max-width: 400px; padding: 0 28px; }
#dai .d-name::before { width: 30px; height: 30px; vertical-align: -7px; }
#dai .d-hp { width: 380px; height: 30px; margin-top: 3px; }
#dai .d-hp span { font-size: 28px; line-height: 28px; }
#dai .d-ch { height: 26px; font-size: 24px; line-height: 28px; }
#dai .d-cw { width: 144px; height: 216px; margin-top: 3px; }
#dai .d-cw .main { width: 144px; height: 216px; border-radius: 10px; }
#dai .d-pow { margin-top: 4px; font-size: 28px; line-height: 36px; padding: 0 22px; }
#dai .duel.won .d-pow { opacity: 0; }
#dai .d-vs { left: 460px; top: 150px; width: 160px; font-size: 84px; line-height: 110px; }
#dai .duel.full::before { left: 465px; top: 130px; width: 150px; height: 150px; }
#dai .d-win { top: 130px; width: 420px; font-size: 104px; line-height: 116px; }
#dai .d-win.a { left: 60px; }
#dai .d-win.b { right: 60px; }
#dai .d-rw { position: absolute; left: 200px; right: 200px; top: 378px; text-align: center; font-size: 30px; line-height: 38px; font-weight: 800; color: #ffe08a; text-shadow: var(--ol); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- sân tông môn 920–1620: nền sân lát đá thật ----------
   mặc định ui/guild/guild_main_bg.jpg (576×1024, sân tông môn vòng tròn lát đá) phóng 2 → 1152×2048, lấy dải nguồn y ≈ 575–925
   (cả vòng sân + hai trống đỏ); ?san=matcanh ui/guild/zmmjBg.jpg (sân đá đêm, đèn lồng); ?san=them ui/wanJieDingZun/wjdzBg1.jpg */
#tlt { position: absolute; left: 0; width: 1080px; z-index: 3; pointer-events: none; }
#tlt::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 8, 22, .5), rgba(10, 8, 22, .1) 8%, rgba(10, 8, 22, 0) 26%, rgba(10, 8, 22, 0) 82%, rgba(10, 8, 22, .38)),
    url(/res/ui/guild/guild_main_bg.jpg) -36px -1150px / 1152px 2048px no-repeat; filter: saturate(.92) brightness(.97); }
#tlt.san-matcanh::before { background: linear-gradient(180deg, rgba(10, 8, 22, .5), rgba(10, 8, 22, 0) 14%, rgba(10, 8, 22, 0) 80%, rgba(10, 8, 22, .35)),
    url(/res/ui/guild/zmmjBg.jpg) 0 -430px / 1080px 1920px no-repeat; filter: none; }
#tlt.san-them::before { background: linear-gradient(180deg, rgba(10, 8, 22, .5), rgba(10, 8, 22, .16) 30%, rgba(10, 8, 22, .1) 70%, rgba(10, 8, 22, .42)),
    url(/res/ui/wanJieDingZun/wjdzBg1.jpg) 0 -900px / 1080px 1920px no-repeat; filter: saturate(.85) brightness(.92); }
/* mép trên: chỉ vàng tách đấu trường với sân */
#tlt::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244, 212, 127, .75) 18%, rgba(255, 240, 190, .9) 50%, rgba(244, 212, 127, .75) 82%, transparent); box-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
/* lane F: .tlt-fx / .ts-col / .ts-fx có mix-blend-mode → chỉ hiện (.fx-on) trong lúc hoạt hình chạy, nghỉ thì display:none */
.tlt-fx:not(.fx-on), .ts-col:not(.fx-on), .ts-fx:not(.fx-on) { display: none !important; }
.tlt-fx { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 60%, var(--gc, rgba(255, 214, 120, .5)), transparent 75%); mix-blend-mode: screen; z-index: 4000; }

/* một người: phần tử 0×0 đặt đúng CHÂN bằng transform translate (stages.js; Web Animations khi đi), z-index = y.
   .ts-b = thân co theo độ sâu (0,71 sau → 1 trước; top 3 1,21); thẻ .ts-lab KHÔNG co (dễ đọc). */
.ts { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity .32s; --rc: #d5dce4; --ra: .35; --tc: #ffd257; }
.ts.out, .ts.empty { opacity: 0; }
.ts.gone { opacity: 0; transition: opacity .45s; }
.ts > * { position: absolute; pointer-events: none; }
.ts-b { left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.ts-b > * { position: absolute; pointer-events: none; }
.ts-sh { left: -38px; top: -9px; width: 76px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
/* ánh linh khí màu cảnh giới (độ sáng --ra theo bậc). Lane F: không mix-blend-mode (30 render pass) — tâm sáng trắng pha màu */
.ts-au { left: -56px; top: -17px; width: 112px; height: 34px; border-radius: 50%; opacity: var(--ra);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), var(--rc) 38%, transparent); animation: tsAu 2.8s ease-in-out infinite; }
.ts:nth-child(3n) .ts-au { animation-delay: -1.1s; }
.ts:nth-child(3n+1) .ts-au { animation-delay: -1.9s; }
/* top 3: hào quang vàng / bạc / đồng dưới chân (DOM dưới canvas → nằm dưới thân rối thật), thay ánh cảnh giới: vòng vàng thật
   (ui/recruit lsjs_bg_004 = san_khau/vong.png) ép dẹt + quầng màu hạng; bạc / đồng = lọc màu của cùng vòng */
.ts-hq { display: none; left: -92px; top: -30px; width: 184px; height: 60px; border-radius: 50%;
  background: url(../art/ui/san_khau/vong.png) center / 100% 100% no-repeat, radial-gradient(closest-side, rgba(255, 255, 255, .9), var(--tc) 45%, rgba(0, 0, 0, 0));
  box-shadow: 0 0 26px 8px var(--tc); animation: tsAu 2.4s ease-in-out infinite; }
.ts.t2 .ts-hq { filter: grayscale(1) brightness(1.35); }
.ts.t3 .ts-hq { filter: sepia(1) saturate(1.8) hue-rotate(-18deg) brightness(.95); }
.ts.top .ts-hq { display: block; }
.ts.top .ts-au { display: none; }
.ts.t1 { --tc: #ffd257; }
.ts.t2 { --tc: #e4ecff; }
.ts.t3 { --tc: #f0a060; }
/* hạt linh khí bay lên (Hoá Thần trở lên) */
.ts-mo { left: 0; top: 0; width: 0; height: 0; display: none; }
.ts.mote .ts-mo { display: block; }
.ts-mo b { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 6px 2px var(--rc); opacity: 0; animation: tsMote 2.4s linear infinite; }
.ts-mo b:nth-child(1) { left: -22px; animation-delay: -.3s; }
.ts-mo b:nth-child(2) { left: 14px; animation-delay: -1.1s; }
.ts-mo b:nth-child(3) { left: -4px; animation-delay: -1.8s; animation-duration: 2.9s; }
/* cột sáng (lên cảnh giới / tiến hoá thú) */
.ts-col { left: -30px; top: -170px; width: 60px; height: 176px; opacity: 0; transform-origin: 50% 100%;
  background: linear-gradient(90deg, transparent, var(--rc) 35%, #fff 50%, var(--rc) 65%, transparent); -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent); mask-image: linear-gradient(0deg, #000 30%, transparent); mix-blend-mode: screen; }
/* vòng vàng 5 s (quà lớn) */
.ts-ring { left: -60px; top: -18px; width: 120px; height: 36px; border-radius: 50%; display: none;
  box-shadow: 0 0 0 3px #ffd257, 0 0 18px 6px rgba(255, 210, 90, .75), inset 0 0 14px rgba(255, 230, 150, .8); animation: tsRing 1s ease-in-out infinite; }
.ts.gift .ts-ring { display: block; }
/* thân: .ts-j nhảy (Web Animations); rối thật đang diễn (.hot) hoặc rối thật của top 3 đã nạp (.rg) thì ẩn sprite */
.ts-j { left: 0; top: 0; width: 0; height: 0; transition: opacity .3s; }
.ts-j.hot { opacity: 0; transition: none; }
.ts-j.rg { opacity: 0; }
.ts-j > * { position: absolute; }
.ts-sil { left: -54px; top: -112px; height: 112px; opacity: .35; transform-origin: 54px 0; }
.ts-sil.off { display: none; }
.ts-sp { overflow: hidden; }
.ts-sp.off { display: none; }
/* ảnh 2 hàng (stand / move) × 8 khung (TM.Art.heroSprite): steps(8) trên transform — luồng hợp thành; đổi hoạt hình = đổi top */
.ts-im { position: absolute; left: 0; top: 0; max-width: none; animation: tsSp 1s steps(8) infinite; }
@keyframes tsSp { to { transform: translateX(-100%); } }
/* loé khi có sự kiện */
.ts-fx { left: -60px; top: -130px; width: 120px; height: 130px; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, var(--fc, #fff3c4), transparent); mix-blend-mode: screen; }
/* Luyện Khí: pháp bảo sáng trên tay; Linh Thú: thú nhỏ cạnh chân */
.ts-bd { left: 16px; top: -88px; width: 30px; height: 30px; display: none; border-radius: 50%; box-shadow: 0 0 10px 3px var(--bc, #ffd257); animation: tsBob 2.2s ease-in-out infinite; }
.ts.flp .ts-bd { left: -46px; }
.ts-bd.on { display: block; }
.ts-bd img { width: 30px; height: 30px; display: block; border-radius: 50%; }
.ts-pet { top: 0; width: 0; height: 0; }
.ts-pet canvas { position: absolute; left: 0; bottom: 0; display: block; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }

/* thẻ tên người thường: trên đầu (stages.js đặt translateY theo chiều cao nhân vật), avatar 24 + tên 7 ký tự chữ 22 px, viền màu cảnh
   giới, nền 50 %. Hai hàng sau (.far) KHÔNG có thẻ — chỉ hiện khi người đó vừa tương tác (.lab quay/quà/cảnh giới, .talk, .gift). */
.ts-lab { left: 0; top: 0; display: flex; align-items: center; gap: 4px; height: 32px; box-sizing: border-box; padding: 0 9px 0 3px; border-radius: 16px; white-space: nowrap;
  background: rgba(14, 10, 26, .5); border: 2px solid var(--rc); transform: translate(-50%, -152px); }
.ts-md, .ts-tt { display: none; }
.ts-tx { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ts-nr { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ts-av { flex: none; width: 24px; height: 24px; }
.ts-av .av { width: 24px !important; height: 24px !important; border-width: 1px; }
.ts-n { font-family: var(--f-title); font-size: 22px; line-height: 26px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: clip; max-width: 100px;
  text-shadow: 0 2px 0 #170a03, 2px 0 0 #170a03, -2px 0 0 #170a03, 0 -1px 0 #170a03; }
.ts.ttl .ts-n::before { content: "★"; color: #ffd257; margin-right: 2px; }
.ts.gift .ts-lab { border-color: #ffd257; background: rgba(60, 38, 6, .8); }
.ts.gift .ts-n { color: #ffe08a; }
.ts.lab .ts-lab, .ts.talk .ts-lab { background: rgba(30, 20, 50, .82); }
.ts.far:not(.lab):not(.talk):not(.gift) .ts-lab { display: none; }
/* top 3: bảng tên DƯỚI chân như bệ — huy chương 1·2·3 + "Trạng Nguyên / Bảng Nhãn / Thám Hoa" (22 px, màu hạng) + avatar + tên 24 px;
   rộng ≤ 186 px (ba người cách nhau 210, đi lại ±8 px) */
.ts.top .ts-lab { height: auto; gap: 4px; padding: 2px 9px 3px 3px; border-radius: 30px; border-width: 2px; border-color: var(--tc);
  background: linear-gradient(180deg, rgba(40, 24, 8, .86), rgba(14, 8, 4, .86)); box-shadow: 0 0 14px rgba(0, 0, 0, .5), 0 0 10px -2px var(--tc); }
.ts.top .ts-md { display: block; flex: none; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.ts.top .ts-tt { display: block; font-family: var(--f-title); font-size: 22px; line-height: 24px; font-weight: 800; letter-spacing: .5px; color: var(--tc);
  text-shadow: 0 2px 0 #170a03, 2px 0 0 #170a03, -2px 0 0 #170a03, 0 -1px 0 #170a03; }
.ts.top .ts-tx { align-items: flex-start; max-width: 126px; }
.ts.top .ts-nr { max-width: 126px; }
.ts.top .ts-av, .ts.top .ts-av .av { width: 22px !important; height: 22px !important; }
.ts.top .ts-n { font-size: 24px; line-height: 28px; max-width: 100px; text-overflow: ellipsis; }
/* hạng 1 ở giữa được rộng hơn (≤ 202 px): tên tới 116 px */
.ts.t1 .ts-tx, .ts.t1 .ts-nr { max-width: 142px; }
.ts.t1 .ts-n { color: #fff1b8; max-width: 116px; }

/* cột sáng khi người lên top 3 (lớp .ts-bubs, trên canvas rối) */
.ts-cotw { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.ts-cot { position: absolute; left: -46px; top: -300px; width: 92px; height: 312px; opacity: 0; transform-origin: 50% 100%;
  background: linear-gradient(90deg, transparent, var(--tc) 30%, #fffbe8 50%, var(--tc) 70%, transparent);
  -webkit-mask-image: linear-gradient(0deg, #000 35%, transparent); mask-image: linear-gradient(0deg, #000 35%, transparent); filter: blur(1px); }

/* bong bóng thoại (sự kiện 'say'): lớp riêng trên mọi người; stages.js đặt transform tại đỉnh thẻ, đi theo khi người đó đang bước */
.ts-bubs { position: absolute; left: 0; top: 920px; width: 0; height: 0; z-index: 13; pointer-events: none; }
.ts-say { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity .3s; }
.ts-say span { position: absolute; left: 0; bottom: 9px; transform: translateX(-50%); padding: 4px 14px; border-radius: 16px; background: #fffdf4; color: #2a1608;
  border: 2px solid #e8c77a; font-size: 22px; line-height: 26px; font-weight: 700; white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis;
  animation: tsSayIn .22s cubic-bezier(.2, 1.4, .4, 1); transform-origin: 50% 100%; }
.ts-say::after { content: ""; position: absolute; left: -7px; top: -11px; border: 7px solid transparent; border-top: 10px solid #e8c77a; border-bottom: 0; }
.ts-say.cmd span { background: #fff1c2; color: #7a2a00; border-color: #ffb347; font-weight: 800; }
.ts-say.cmd::after { border-top-color: #ffb347; }
.ts-say.out { opacity: 0; }

@keyframes tsAu { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.08); } }
@keyframes tsMote { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .95; } 100% { opacity: 0; transform: translateY(-90px) scale(1); } }
@keyframes tsRing { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes tsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tsSayIn { 0% { transform: translateX(-50%) scale(.4); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }

/* ---------- thẻ kết quả nhỏ bay lên từ chân người quay (reveal.js) ---------- */
.mini.gm { width: 160px; margin-left: -80px; animation: none; }
.mini.gm .mo, .mini.gm .mr { max-width: 170px; font-size: 26px; line-height: 28px; }

/* ---------- ra tướng lớn bằng rối (reveal.js) ---------- */
.rv.skh .rv-tag { top: 246px; }
.rv.skh .rv-who { top: 330px; }
.rv.skh .rv-pt { top: 196px; }
.rv.skh .rv-name { top: 1318px; }
.rv.skh.t4 .rv-name, .rv.skh.t5 .rv-name { top: 1322px; }
.rv.skh .rv-name .q { display: block; margin-top: 4px; font-size: 30px; line-height: 38px; font-style: italic; font-weight: 600; color: #f6ead2; text-shadow: var(--ol); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv.skh .rv-name .tt { color: #ffd77a; }
.rv.skh .rv-rays { top: 860px; }
.sk-dj { position: absolute; left: 90px; width: 900px; top: 1196px; height: 100px; object-fit: fill; opacity: 0; transform: scaleX(.3); transition: opacity calc(300ms / var(--sp)), transform calc(500ms / var(--sp)) cubic-bezier(.2, 1.2, .4, 1); pointer-events: none; }
.rv.open .sk-dj { opacity: .95; transform: none; }
.sk-card { position: absolute; left: 360px; top: 650px; width: 360px; height: 540px; opacity: 0; transform: scale(.5); transition: opacity calc(300ms / var(--sp)), transform calc(450ms / var(--sp)) cubic-bezier(.2, 1.3, .4, 1); }
.sk-card canvas { width: 100%; height: 100%; display: block; border-radius: 22px; box-shadow: 0 0 60px var(--glow); }
.sk-card.on { opacity: 1; transform: none; }
.rv.skh .sk-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(255, 246, 214, .9), rgba(255, 220, 140, .35) 35%, rgba(0, 0, 0, 0) 70%); opacity: 0; pointer-events: none; }
.rv.skh .sk-flash.on { animation: skFlash calc(700ms / var(--sp)) ease-out forwards; }
.rv.skh .sk-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity calc(500ms / var(--sp));
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 214, 120, .55), rgba(255, 200, 90, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .6)); }
.rv.skh .sk-veil.on { opacity: 1; }
.rv.skh.t5 .sk-veil { background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 140, 170, .5), rgba(255, 120, 150, 0) 70%), linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .6)); }
/* nở / tiến hoá thú */
.rv.skp .rv-tag { top: 300px; }
.rv.skp .rv-who { top: 384px; }
.rv.skp .rv-name { top: 1240px; }
.rv.skp .sk-isl-rv { position: absolute; left: 216px; top: 1000px; width: 647px; opacity: 0; transform: translateY(60px); transition: all calc(500ms / var(--sp)) cubic-bezier(.2, 1.2, .4, 1); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.rv.skp.card-in .sk-isl-rv { opacity: 1; transform: none; }

@keyframes skFlash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

/* v5 (lane R): thẻ tướng nhỏ bay lên trên đầu người vừa chiêu mộ (TM.Yard theme 'hero', yard.fx(uid, 'card', kếtQuả)) */
.ts-card { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.ts-card canvas { position: absolute; left: -22px; bottom: 0; width: 44px; height: 66px; border-radius: 6px; box-shadow: 0 0 14px rgba(255, 220, 120, .8); }

/* nền sân riêng theo trang (TM.Yard.setBg → --san-bg/--san-pos/--san-size; lane C1/C2 đề nghị) */
#tlt.bg-rieng::before { background: var(--san-bg) var(--san-pos, center top) / var(--san-size, cover) no-repeat; }

/* ===== lane D1 (docs/GIU_CHAN.md): danh hiệu "Tân Tú" cạnh tên, vòng đếm quà online, khoảnh khắc nhập môn, chữ bay quà online ===== */
.ts-bgd { display: none; flex: none; margin-left: 2px; padding: 0 6px; border-radius: 9px; font-size: 20px; line-height: 24px; font-weight: 800; color: #062a1c;
  background: linear-gradient(180deg, #b4ffd8, #3ad692); box-shadow: 0 0 8px rgba(90, 255, 170, .6); }
.ts.tt .ts-bgd { display: inline-block; }
.ts-on { display: none; flex: none; width: 20px; height: 20px; margin-left: 2px; border-radius: 50%; --qp: 0deg;
  background: conic-gradient(#7ff5de var(--qp), rgba(255, 255, 255, .2) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
.ts.qo .ts-on { display: inline-block; }
.ts.qo-hot .ts-on { background: conic-gradient(#ffd257 var(--qp), rgba(255, 255, 255, .25) 0); animation: tsQo .8s ease-in-out infinite; }
@keyframes tsQo { 50% { scale: 1.25; } }
.ts.spot .ts-lab { display: none !important; }
.ts.spot .ts-au { opacity: 1; }
#tlt.spot-on .ts.top .ts-lab { opacity: .25; transition: opacity .3s; }
.ts-sglow { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transition: opacity .35s; }
.ts-sglow .sg-r { position: absolute; left: -140px; top: -40px; width: 280px; height: 80px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 250, 220, .95), rgba(255, 210, 90, .7) 45%, rgba(255, 200, 80, 0)); box-shadow: 0 0 0 3px rgba(255, 220, 120, .8), 0 0 40px 12px rgba(255, 200, 80, .6); animation: tsSg 1.2s ease-in-out infinite; }
.ts-sglow .sg-c { position: absolute; left: -80px; top: -420px; width: 160px; height: 430px; transform-origin: 50% 100%; animation: tsSgIn .5s ease-out;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 150, .35) 30%, rgba(255, 255, 240, .55) 50%, rgba(255, 230, 150, .35) 70%, transparent);
  -webkit-mask-image: linear-gradient(0deg, #000 40%, transparent); mask-image: linear-gradient(0deg, #000 40%, transparent); }
.ts-sglow.out { opacity: 0; }
@keyframes tsSg { 50% { scale: 1.08; opacity: .8; } }
@keyframes tsSgIn { from { opacity: 0; scale: 1 .2; } to { opacity: 1; scale: 1 1; } }
.ts-spl { position: absolute; left: 0; top: 0; z-index: 16; display: flex; flex-direction: column; align-items: center; padding: 4px 22px 6px; border-radius: 18px; pointer-events: none; white-space: nowrap;
  background: linear-gradient(180deg, rgba(40, 24, 6, .88), rgba(14, 8, 4, .88)); box-shadow: 0 0 0 3px #ffd257, 0 0 24px rgba(255, 200, 80, .6); animation: tsPopIn .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .35s; }
.ts-spl b { font-family: var(--f-title); font-size: 42px; line-height: 48px; font-weight: 800; color: #fff3c4; text-shadow: 0 0 12px rgba(255, 210, 90, .9), var(--ol); }
.ts-spl span { font-size: 26px; line-height: 32px; font-weight: 800; color: #fff6e0; text-shadow: var(--ol); }
.ts-spl span i { font-style: normal; }
.ts-spl.out, .ts-ghost.out { opacity: 0; }
.ts-ghost { position: absolute; left: 0; top: 0; z-index: 15; pointer-events: none; animation: tsPopIn .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .35s; }
.ts-ghost .tg-card { display: flex; align-items: flex-end; gap: 8px; }
.ts-ghost canvas { width: 110px; height: 165px; border-radius: 10px; box-shadow: 0 0 24px rgba(255, 210, 90, .8); }
@keyframes tsPopIn { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
.ts-qo { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.ts-qo span { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); white-space: nowrap; padding: 2px 12px; border-radius: 14px; font-size: 26px; line-height: 32px; font-weight: 800; color: #fff3c4;
  background: rgba(6, 40, 44, .84); box-shadow: 0 0 0 2px #7ff5de, 0 0 14px rgba(127, 245, 222, .6); text-shadow: var(--ol); }
body.tt-spot #ui5 .pf { opacity: .2; transition: opacity .3s; }
