/* vui-choi.css — đấu trường (bảng chiêu, VS, chiến thắng), album thẻ, podium. Nạp SAU app.css. */
@keyframes quai-vao { from { transform: translateX(120px) scale(.5); opacity: 0; } 70% { transform: translateX(-10px) scale(1.06); } }
@keyframes nhip { 50% { opacity: .35; } }

/* ===== Đấu trường: bảng chọn chiêu ngay trong màn ===== */
.dau-truong { display: flex; flex-direction: column; padding-bottom: 0; }
.dt-ta::after, .dt-quai::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 70%; height: 16px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(#0008, #0000 70%); z-index: 0; }
.dt-ta { position: relative; } .dt-ta .lv, #anh-boss { position: relative; z-index: 1; }
#anh-boss { display: inline-block; line-height: 0; transform-origin: 50% 100%; } #anh-boss .qv { --co: 200px; }
.dau-truong.gian #anh-boss { filter: drop-shadow(0 0 14px #ff2d2d) saturate(1.5) hue-rotate(-12deg); animation: tho .9s ease-in-out infinite; }
.dau-truong.gian::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 8px #ff2d2d77; animation: nhip 1.2s infinite; }
@keyframes tho { 50% { transform: scale(1.04, .97); } }
.sat-thuong { position: absolute; left: 50%; top: 30%; z-index: 5; font: 900 2.4em var(--tieu-de); color: #fff; -webkit-text-stroke: 2px #c4102f; paint-order: stroke fill; text-shadow: 0 3px 0 #7a0f2d; pointer-events: none; animation: nay-len 1s ease-out forwards; }
@keyframes nay-len { from { transform: translate(-50%, 0) scale(.4); opacity: 0; } 20% { transform: translate(-50%, -20px) scale(1.3); opacity: 1; } to { transform: translate(-50%, -80px) scale(1); opacity: 0; } }
/* Boss: thanh máu to trên đỉnh */
.laboss > .hp { height: 26px; margin: 8px 0 0; max-width: none; border-color: #fff; background: #2a0b14; }
.laboss > .hp i { background: linear-gradient(90deg, #ff2d55, #ff8a3d, #ffd23d); }
.laboss > .hp b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #fff; text-shadow: 0 1px 2px #000; }
.laboss > .hp { position: relative; }
.laboss #anh-boss .qv { --co: 290px; } .laboss .dt-quai { width: 310px; }
/* Bảng chiêu: thẻ câu hỏi dính đáy đấu trường, kính mờ */
.bang-chieu { margin: 0 -14px; border-radius: 0; background: rgba(9,9,10,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 var(--vien2); padding: 14px; }
.bang-chieu:empty { display: none; }
.bang-chieu .pa { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.bang-chieu .pa button { transition: transform .12s; } .bang-chieu .pa button:not(:disabled):hover { transform: translateY(-3px); }
/* Màn VS */
.dt-vs { position: absolute; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; gap: 4%; background: linear-gradient(100deg, rgba(9,9,10,.94) 40%, rgba(40,8,14,.94) 60%); pointer-events: none; }
.dt-vs.hien { display: flex; animation: vs-vao .95s ease-out both; }
.dt-vs b { font: 800 4.5em var(--tieu-de); letter-spacing: .08em; color: var(--vang); text-shadow: 0 0 30px rgba(255,200,0,.8), 0 0 60px rgba(255,110,110,.5); animation: nhay .6s .15s both; }
.dt-vs .qv, .dt-vs .lv { --co: min(170px, 28vw); }
.vs-ta { animation: vs-trai .5s ease-out both; } .vs-quai { text-align: center; animation: vs-phai .5s ease-out both; }
.vs-quai span { display: block; color: #fff; font: 800 1.3em var(--tieu-de); text-shadow: 0 2px 4px #000; }
@keyframes vs-vao { 85% { opacity: 1; } to { opacity: 0; } }
@keyframes vs-trai { from { transform: translateX(-160px); opacity: 0; } } @keyframes vs-phai { from { transform: translateX(160px); opacity: 0; } }
/* Victory */
.ket .vic { display: flex; flex-direction: column; align-items: center; }
.ket .vic .lv { --co: 130px; }
.ket .vic b { font: 800 2.4em var(--tieu-de); letter-spacing: .16em; color: var(--vang); text-shadow: 0 0 26px rgba(255,200,0,.7); animation: nhay .8s .2s both; }
@media (max-width: 720px) { .dt-vs b { font-size: 2.6em; } .laboss #anh-boss .qv { --co: 160px; } .laboss .dt-quai { width: 170px; } .bang-chieu .pa { grid-template-columns: 1fr 1fr; } }

/* ===== Album thẻ bài: thẻ cosmetic kiểu cửa hàng Nos (độ hiếm bằng màu viền, holo khi rê) ===== */
.suu-tap.album { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; perspective: 800px; }
@media (max-width: 760px) { .suu-tap.album { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .the-bai .anh-the { height: 78px; } .the-bai { font-size: .8em; padding: 6px; } }
.the-bai { position: relative; overflow: hidden; border: 0; border-radius: 13px; padding: 10px 10px 12px; background: var(--the); color: var(--chu); box-shadow: 0 0 0 1px var(--vien); transition: transform .3s var(--spring), box-shadow .25s; cursor: pointer; }
.the-bai .anh-the { display: grid; place-items: center; height: 120px; border-radius: 10px; margin-bottom: 8px; background: radial-gradient(circle at 50% 60%, rgba(var(--glow), .28), transparent 70%), #101013; }
.the-bai .anh-the img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(var(--glow), .35)); }
.the-bai.holo { box-shadow: 0 0 0 1px rgba(var(--glow), .45); }
.the-bai.holo::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge; transition: opacity .25s;
  background: linear-gradient(115deg, transparent 20%, #ff6bd666 32%, #6bd6ff66 42%, #fff36b66 52%, #6bffb066 62%, transparent 75%); background-size: 220% 220%; background-position: var(--hx, 50%) var(--hy, 50%); }
.the-bai.holo:hover, .the-bai.holo:focus-visible { transform: translateY(-5px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); box-shadow: 0 0 0 1.5px var(--tg), 0 0 26px rgba(var(--glow), .3), 0 14px 30px rgba(0,0,0,.45); }
.the-bai.holo:hover::before, .the-bai.holo:focus-visible::before { opacity: .9; }
.the-bai.chua .anh-the { background: #101013; } .the-bai.chua .anh-the :is(img, .qv) { filter: brightness(0) opacity(.25); } .the-bai.chua b { color: var(--chu3); }
@media (prefers-reduced-motion: reduce) { .the-bai { transition: none; } }
body.giam .the-bai { transition: none; }

/* ===== Podium ===== */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 18px 0; }
.bac { display: flex; flex-direction: column; align-items: center; width: min(30%, 190px); text-align: center; }
.bac .avatar { width: 76px; height: 76px; margin-bottom: 6px; }
.bac.b1 .avatar { width: 96px; height: 96px; --khung: #ffc800; }
.bac.b2 .avatar { --khung: #c9d2e0; } .bac.b3 .avatar { --khung: #e09a5e; }
.bac b { font: 700 .95em var(--tieu-de); word-break: break-word; } .bac span { font-size: .8em; color: var(--chu3); margin-bottom: 6px; }
.bac .cot { width: 100%; display: grid; place-items: center; font: 800 2em var(--tieu-de); color: var(--toi); border-radius: 10px 10px 0 0; }
.bac.b1 .cot { height: 120px; background: linear-gradient(#ffd84d, #e0a300); box-shadow: 0 0 30px rgba(255,200,0,.35); } .bac.b2 .cot { height: 86px; background: linear-gradient(#e3e8f0, #9aa6bb); } .bac.b3 .cot { height: 62px; background: linear-gradient(#f2b27a, #b5662b); }
.bac.em b { color: var(--tg); }

/* loé trắng dùng hai khung giữ nguyên filter (x%, y%) để KHÔNG nội suy thành xám mờ */
/* ================= chiến đấu: không ai đứng yên.
   Linh vật (SVG) có thế thủ nhún nhanh; ra đòn = lấy đà ngả sau → lao tới duỗi người + tay phải đấm → về chỗ nảy.
   Trúng đòn = loé trắng (bóng trắng kiểu game) + bật ngược + nhắm mắt; quái (ảnh) thở + lắc lư liên tục,
   tấn công = gồng lùi → lao chồm qua màn → về; trúng = loé trắng + bật lùi + bẹp; gục = loé, xoay, rơi. */
.dt-ta .lv { --t: .9s; }                                                   /* thế thủ: nhún nhanh gấp đôi lúc nghỉ */
.dt-ta #anh-ta.ban { animation: ta-lao .62s cubic-bezier(.3, .7, .4, 1); }
@keyframes ta-lao { 0% { transform: none; } 22% { transform: translateX(-16px) rotate(-6deg) scale(1.08, .9); }
  42% { transform: translateX(46px) rotate(5deg) scale(.9, 1.1); } 62% { transform: translateX(38px) rotate(2deg); } 82% { transform: translateX(-4px) scale(1.04, .96); } 100% { transform: none; } }
.dt-ta #anh-ta.ban .lv-tay-p { animation: ta-dam .62s ease-out; }
@keyframes ta-dam { 0%, 18% { transform: rotate(25deg); } 42%, 62% { transform: rotate(-88deg); } 100% { transform: none; } }
.dt-ta #anh-ta.ban .lv-tay-t { animation: ta-dam-t .62s ease-out; }
@keyframes ta-dam-t { 30%, 60% { transform: rotate(30deg); } }
.dt-ta #anh-ta.ban .m-mo { animation: ta-nheo .62s; }                                  /* nheo mắt khi ra đòn */
@keyframes ta-nheo { 20%, 60% { transform: scaleY(.55); } }
.dt-ta #anh-ta.bi-dau { animation: ta-trung .6s cubic-bezier(.2, .8, .3, 1); }
@keyframes ta-trung { 0% { transform: none; } 4%, 18% { filter: brightness(0) invert(1); } 12% { transform: translateX(-30px) rotate(-14deg) scale(1.12, .86); }
  19%, 29% { filter: none; } 30%, 40% { filter: brightness(0) invert(1); } 34% { transform: translateX(-22px) rotate(-9deg); } 41% { filter: none; } 70% { transform: translateX(6px) rotate(3deg); } 100% { transform: none; } }
.dt-ta #anh-ta.bi-dau .m-mo { animation: ta-nham .6s; }
@keyframes ta-nham { 8%, 55% { transform: scaleY(.08); } }
.dt-ta #anh-ta.guc { transform: rotate(-10deg) translateY(10px); filter: grayscale(.5); }
/* vết cào của quái lên linh vật */
.vet-cao { position: absolute; left: 50%; top: 40%; z-index: 3; width: 90px; height: 90px; margin: -45px 0 0 -45px; pointer-events: none;
  background: linear-gradient(135deg, #0000 26%, #fff 28% 31%, #0000 33% 46%, #fff 48% 51%, #0000 53% 66%, #fff 68% 71%, #0000 73%);
  filter: drop-shadow(0 0 6px rgb(255, 110, 110)); animation: cao .45s ease-out both; }
@keyframes cao { from { clip-path: inset(0 100% 100% 0); opacity: 1; } 45% { clip-path: inset(0); opacity: 1; } to { clip-path: inset(0); opacity: 0; transform: scale(1.15); } }

#anh-boss { animation: quai-tho 1.7s ease-in-out infinite; }
@keyframes quai-tho { 0%, 100% { transform: scale(1, 1); } 50% { transform: translateY(-4px) scale(.97, 1.04) rotate(-1.5deg); } }
#anh-boss.vao { animation: quai-vao .55s ease-out, quai-tho 1.7s ease-in-out .55s infinite; }
#anh-boss.trung { animation: quai-trung .5s cubic-bezier(.2, .8, .3, 1), quai-tho 1.7s ease-in-out .5s infinite; }
@keyframes quai-trung { 0% { transform: none; } 3%, 18% { filter: brightness(0) invert(1); } 10% { transform: translateX(24px) rotate(10deg) scale(.86, 1.08); }
  19%, 27% { filter: none; } 28%, 38% { filter: brightness(0) invert(1); } 30% { transform: translateX(18px) rotate(6deg) scale(1.1, .9); } 39% { filter: none; } 65% { transform: translateX(-6px) rotate(-3deg); } 100% { transform: none; } }
.dt-quai.tan-cong { animation: quai-chom .62s cubic-bezier(.4, 0, .2, 1); z-index: 4; }
@keyframes quai-chom { 0% { transform: none; } 28% { transform: translateX(26px) rotate(8deg) scale(.94, 1.06); }
  48%, 58% { transform: translateX(var(--lao, -160px)) rotate(-10deg) scale(1.16, .92); } 80% { transform: translateX(10px) rotate(2deg); } 100% { transform: none; } }
#anh-boss.nga { animation: quai-guc .8s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes quai-guc { 0% { transform: none; } 0%, 12% { filter: brightness(0) invert(1); } 13% { filter: none; } 15% { transform: translateY(-18px) rotate(-10deg) scale(1.1); }
  100% { transform: translateY(60px) rotate(140deg) scale(.3); opacity: 0; } }
.dau-truong.gian #anh-boss:not(.trung):not(.nga) { animation: tho .9s ease-in-out infinite; }

/* ================= SÂN ĐẤU 3D: sân phá khung 800px ra rộng tới 1180px; một "máy quay" CSS 3D (perspective + preserve-3d)
   lia/dí/nghiêng theo diễn biến (data-cam trên #canh, hoc.js `cam()`); trời xa (z âm) + nền lưới phát sáng + bụi ở nhiều độ sâu
   → lia máy là thấy thị sai. Nhân vật vẫn là SVG phẳng đứng trong không gian 3D (như sân khấu giấy). */
.dau-truong { margin-inline: calc(50% - min(590px, 50vw - 16px)); }
.dt-canh { position: relative; height: clamp(270px, 50vh, 470px); margin: 8px -14px 0; perspective: 820px; perspective-origin: 50% 42%; overflow: hidden; }
.dt-cam { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform var(--tcam, 450ms) cubic-bezier(.2, .8, .2, 1); }
.dt-canh[data-cam="mo"] .dt-cam { transform: translateY(-4%) translateZ(-340px) rotateX(9deg); }
.dt-canh[data-cam="ta"] .dt-cam { transform: translateX(7%) translateZ(70px) rotateY(7deg); }
.dt-canh[data-cam="quai"] .dt-cam { transform: translateX(-9%) translateZ(90px) rotateY(-7deg); }
.dt-canh[data-cam="quai-gan"] .dt-cam { transform: translateX(-22%) translateY(3%) translateZ(230px) rotateY(-11deg); }
.dt-canh[data-cam="ta-gan"] .dt-cam { transform: translateX(19%) translateY(3%) translateZ(210px) rotateY(10deg) rotateZ(2deg); }
.dt-canh[data-cam="ko"] .dt-cam { transform: translateX(-25%) translateY(5%) translateZ(300px) rotateY(-15deg) rotateZ(-3deg); }
.dt-troi { position: absolute; inset: -110% -90% 22%; background-size: cover; background-position: center 65%; transform: translateZ(-620px); filter: brightness(.62) saturate(1.15);
  -webkit-mask-image: linear-gradient(#000 70%, #0000); mask-image: linear-gradient(#000 70%, #0000); }
.dt-dat { position: absolute; left: -80%; right: -80%; bottom: 0; height: 190%; transform-origin: 50% 100%; transform: rotateX(82deg);
  background: radial-gradient(ellipse 34% 26% at 30% 88%, rgba(var(--glow), .3), #0000 70%), radial-gradient(ellipse 34% 26% at 70% 84%, rgba(255, 90, 90, .22), #0000 70%),
    repeating-linear-gradient(90deg, rgba(var(--glow), .16) 0 2px, #0000 2px 90px), repeating-linear-gradient(0deg, rgba(var(--glow), .16) 0 2px, #0000 2px 90px),
    linear-gradient(#0000, #0b0b0e 40%);
  -webkit-mask-image: linear-gradient(#0000, #000 45%); mask-image: linear-gradient(#0000, #000 45%); }
.dau-truong.gian .dt-dat { background-color: #1a0709; }
.dt-canh .dt-ta { position: absolute; left: 13%; bottom: 13%; translate: 0 0 50px; }
.dt-canh .dt-quai { position: absolute; right: 9%; bottom: 15%; translate: 0 0 -30px; }
.dt-canh .dt-ta .lv { --co: 170px; }
.bui { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.bui i { position: absolute; left: var(--x); top: var(--y); width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--glow)); box-shadow: 0 0 8px rgb(var(--glow));
  transform: translateZ(var(--z)); animation: bui var(--d) linear var(--tre) infinite; }
@keyframes bui { 0% { transform: translate3d(0, 0, var(--z)); opacity: 0; } 20%, 70% { opacity: .75; } 100% { transform: translate3d(-50px, -70px, var(--z)); opacity: 0; } }
/* sóng xung khi quái xuất hiện */
.song-xung { position: absolute; left: 50%; bottom: 0; width: 46px; height: 14px; margin-left: -23px; border-radius: 50%; border: 3px solid rgb(var(--glow)); opacity: 0; pointer-events: none; }
.song-xung.no { animation: song .9s ease-out; }
@keyframes song { from { transform: scale(.2); opacity: 1; } to { transform: scale(9); opacity: 0; } }
/* loé màn: trắng (chí mạng/kết liễu), nhẹ (trúng), đỏ viền (bị đánh) */
.dt-loe { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; }
.dt-loe.nhe { background: radial-gradient(circle at 70% 58%, #ffffff88, #0000 45%); animation: loe .3s ease-out; }
.dt-loe.trang { background: #fff; animation: loe .4s ease-out; }
.dt-loe.do { background: radial-gradient(ellipse at 50% 50%, #0000 45%, rgba(255, 40, 40, .55)); animation: loe .55s ease-out; }
@keyframes loe { from { opacity: 1; } to { opacity: 0; } }
/* chữ lớn giữa màn */
.dt-chu { position: absolute; left: 50%; top: 34%; z-index: 7; translate: -50% -50%; font: 900 clamp(2.2em, 6vw, 4.4em) var(--tieu-de); letter-spacing: .05em; white-space: nowrap; opacity: 0; pointer-events: none;
  paint-order: stroke fill; -webkit-text-stroke: 6px #09090a; }
.dt-chu.hien { animation: chu-lon 1.15s cubic-bezier(.2, .8, .2, 1) both; }
.dt-chu.chi { color: var(--vang); text-shadow: 0 0 30px rgba(255, 200, 0, .8); } .dt-chu.ko { color: #fff; text-shadow: 0 0 34px rgb(var(--glow)); } .dt-chu.gian { color: #ff5a5a; text-shadow: 0 0 30px rgba(255, 60, 60, .8); font-size: clamp(1.5em, 4vw, 2.8em); }
@keyframes chu-lon { 0% { opacity: 0; transform: scale(2.6) rotate(-8deg); } 14% { opacity: 1; transform: scale(.9) rotate(-4deg); } 24% { transform: scale(1.06) rotate(-4deg); }
  80% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; transform: translateY(-24px) scale(1.08) rotate(-4deg); } }
/* rung máy quay */
.dt-canh.rung-to { animation: rung-to .42s; } .dt-canh.dong-dat { animation: rung-to .14s 6; }
@keyframes rung-to { 20% { transform: translate(-9px, 4px); } 40% { transform: translate(8px, -5px); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(3px, -2px); } }
/* combo + chí mạng */
.dt-combo { font: 800 1.05em var(--tieu-de); color: var(--vang); text-shadow: 0 0 14px rgba(255, 200, 0, .7); letter-spacing: .06em; }
.dt-combo.nay { animation: nhay .4s; }
.sat-thuong.to { font-size: 3.6em; color: var(--vang); -webkit-text-stroke-color: #8a3a00; }
.vien-dan.to { width: 46px; height: 46px; box-shadow: 0 0 40px var(--tg), 0 0 80px var(--tg); }
@media (max-width: 720px) {
  .dt-canh { height: 250px; perspective: 600px; }
  .dt-canh .dt-ta { left: 4%; } .dt-canh .dt-quai { right: 2%; }
  .dt-canh .dt-ta .lv { --co: 100px; } #anh-boss .qv { --co: 120px; } .dt-quai { width: 150px; } }
.dt-combo:empty { display: none; }

/* ===== Chiêu Boss (hoc.js `tungChieu`): tụ lực → né / trúng chiêu. --tx/--ty, --qx/--qy = tâm linh vật / Boss trong #canh; --chieu = màu chiêu. */
.chieu-bao { position: absolute; left: 50%; top: 10px; z-index: 8; translate: -50% 0; max-width: 92%; padding: 6px 14px; border-radius: 999px; background: rgba(9, 9, 10, .82);
  border: 1px solid var(--chieu, #ff5a5a); color: #fff; font: 700 .95em var(--tieu-de); text-align: center; box-shadow: 0 0 18px var(--chieu, #ff5a5a); animation: nhip 1s infinite; pointer-events: none; }
.chieu-bao b { color: var(--chieu, #ffd23d); } .chieu-bao:empty { display: none; }
.dt-quai.tu #anh-boss { animation: tu-luc .5s ease-in-out infinite alternate !important; filter: drop-shadow(0 0 16px var(--chieu)) drop-shadow(0 0 4px #fff); }
@keyframes tu-luc { from { transform: scale(1, 1); } to { transform: translateY(-6px) scale(1.06, .96); } }
.dt-quai.tu::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 120%; aspect-ratio: 1; translate: -50% 30%; border-radius: 50%; z-index: 0; pointer-events: none;
  border: 3px dashed var(--chieu); box-shadow: 0 0 24px var(--chieu), inset 0 0 24px var(--chieu); transform: rotateX(70deg); animation: vong-tu 1.4s linear infinite; }
@keyframes vong-tu { to { transform: rotateX(70deg) rotate(360deg); } }
#anh-boss.xuat-chieu { animation: xuat-chieu .7s cubic-bezier(.3, .7, .3, 1) !important; }
@keyframes xuat-chieu { 0% { transform: none; } 30% { transform: translateY(-14px) scale(1.18, .86); filter: brightness(1.6); } 55% { transform: translateX(-16px) scale(.92, 1.1); } 100% { transform: none; } }
.dt-chu.chieu { color: var(--chieu, #ff5a5a); text-shadow: 0 0 30px var(--chieu, #ff5a5a); font-size: clamp(1.6em, 4.4vw, 3em); }
.dt-chu.ne { color: #7BE36A; text-shadow: 0 0 30px rgba(123, 227, 106, .9); }
.dt-chieu { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.dt-chieu i { position: absolute; display: block; }
/* tơ độc: mạng nhện bay từ Boss trùm lên linh vật + giọt độc rơi */
.dt-chieu[data-kieu="to"] svg { position: absolute; left: var(--tx); top: var(--ty); width: 240px; height: 240px; translate: -50% -50%; overflow: visible;
  fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--chieu)); animation: luoi-bay .55s cubic-bezier(.3, .7, .3, 1) both, mo-dan 1.6s ease-in forwards; }
.dt-chieu[data-kieu="to"] svg path:first-child ~ path:nth-child(n+9) { stroke: var(--chieu); }
@keyframes luoi-bay { from { transform: translateX(calc(var(--qx) - var(--tx))) translateY(calc(var(--qy) - var(--ty))) scale(.1) rotate(-90deg); } }
@keyframes mo-dan { 0%, 70% { opacity: 1; } to { opacity: 0; } }
/* gầm: 3 vòng sóng âm toả từ miệng Boss quét qua sân */
.dt-chieu[data-kieu="gam"] i { left: var(--qx); top: var(--qy); width: 90px; height: 90px; margin: -45px; border-radius: 50%; border: 14px dashed var(--chieu);
  box-shadow: 0 0 22px var(--chieu), inset 0 0 22px var(--chieu); opacity: 0; animation: song-am .9s ease-out calc(var(--i) * .16s) both; }
@keyframes song-am { from { transform: scale(.3); opacity: 1; } to { transform: scale(9); opacity: 0; } }
/* sóng thần: 2 lớp sóng dày có bọt trắng cuộn từ phải sang trái tràn qua linh vật */
.dt-chieu[data-kieu="song"] i { left: 0; bottom: -6%; width: 220%; height: calc(62% - var(--i) * 16%); border-radius: 46% 54% 0 0 / 60% 60% 0 0;
  background: var(--chieu); opacity: calc(1 - var(--i) * .3); box-shadow: inset 0 18px 0 #e6fffb, inset 0 30px 0 #b8f5ea; animation: song-tran 1.25s cubic-bezier(.4, 0, .4, 1) calc(var(--i) * .1s) both; }
.dt-chieu[data-kieu="song"] i:last-child { filter: brightness(.82); }
@keyframes song-tran { from { transform: translateX(60%); } 55% { transform: translateX(-26%); } to { transform: translateX(-60%); opacity: 0; } }
/* mưa sao băng: cầu lửa to có đuôi sáng, rơi chéo xuống chỗ linh vật rồi nổ loé */
.dt-chieu[data-kieu="sao"] i { left: calc(var(--tx) + (var(--i) - 3) * 26px); top: calc(var(--ty) + (var(--i) - 3) * (var(--i) - 3) * 3px - 14px); width: 34px; height: 34px; margin: -17px; border-radius: 50%;
  background: #fff; border: 6px solid var(--chieu); box-shadow: 0 0 18px var(--chieu), 0 0 36px var(--chieu); animation: sao-roi .55s cubic-bezier(.5, 0, 1, .6) calc(var(--i) * .08s) both; }
.dt-chieu[data-kieu="sao"] i::before { content: ""; position: absolute; left: 50%; bottom: 50%; width: 22px; height: 130px; margin-left: -11px; transform-origin: 50% 100%; transform: rotate(45deg);
  border-radius: 11px 11px 50% 50%; background: linear-gradient(#0000, var(--chieu) 60%, #fff); z-index: -1; }
@keyframes sao-roi { from { transform: translate(300px, -300px) scale(.7); opacity: 0; } 15% { opacity: 1; } 85% { transform: none; opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
/* sét: ba tia zigzag dày lõi trắng viền vàng giáng xuống linh vật + nháy màn vàng */
.dt-chieu[data-kieu="set"] i { left: calc(var(--tx) + (var(--i) - 1) * 46px); top: 0; width: 70px; height: calc(var(--ty) + 50px); translate: -50% 0; background: var(--chieu);
  clip-path: polygon(38% 0, 78% 0, 56% 36%, 88% 36%, 26% 100%, 42% 54%, 10% 54%); opacity: 0; animation: set-danh .52s steps(1) calc(var(--i) * .1s) 2 both; }
.dt-chieu[data-kieu="set"] i::before { content: ""; position: absolute; inset: 0; background: #fff; clip-path: polygon(48% 4%, 66% 4%, 50% 40%, 74% 40%, 30% 92%, 44% 50%, 22% 50%); }
@keyframes set-danh { 0% { opacity: 1; } 30% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.dt-chieu[data-kieu="set"]::after { content: ""; position: absolute; inset: 0; background: #fff3a0; animation: loe .4s ease-out .05s both; }
/* bão cát: màn ố vàng đặc dần + các vệt cát dày quét ngang từ phải qua trái */
.dt-chieu[data-kieu="cat"] { background: rgba(232, 176, 74, .5); animation: cat-mu 1.6s ease-in-out forwards; }
@keyframes cat-mu { 0% { opacity: 0; } 25%, 70% { opacity: 1; } to { opacity: 0; } }
.dt-chieu[data-kieu="cat"] i { right: -30%; top: calc(8% + var(--i) * 5.6%); width: calc(90px + (var(--i) - 8) * (var(--i) - 8) * 2px); height: 12px; border-radius: 12px; background: var(--chieu);
  animation: cat-bay .75s linear calc(var(--i) * -.09s) 2 both; }
.dt-chieu[data-kieu="cat"] i:nth-child(odd) { background: #FFF0BF; height: 8px; }
.dt-chieu[data-kieu="cat"] i:nth-child(3n) { background: #C98E2A; height: 16px; }
@keyframes cat-bay { from { transform: translateX(0) rotate(-6deg); } to { transform: translateX(-170vw) rotate(-6deg); } }
