/* Bàn cờ Chiến Thuật (board-tactics-ui.js, boss.js, cup.js, boss-board.js; the owner approved 27/11/2026) */
/* a ✨'s turned tiles: a glow, then the new tile pops in */
.bb-cell.is-turning .bb-gem { animation: bt-turning .28s ease-in forwards; }
@keyframes bt-turning { 100% { scale: .2; filter: brightness(2.6); opacity: .3; } }
.bb-cell.is-turned .bb-gem { animation: bt-turned .42s cubic-bezier(.3, 1.5, .5, 1); box-shadow: 0 0 16px #fff, inset 0 -4px 0 #0004; }
@keyframes bt-turned { from { scale: .3; filter: brightness(2.4); } }

/* card marks: role, shield layers (gold: past the cap, Phản Đòn), effects */
.bt-role, .bt-layers, .bt-fx { position: absolute; font-style: normal; font-size: 11px; font-weight: 900; line-height: 1; padding: 2px 4px; border-radius: 8px; background: #061823e6; color: #fff; border: 1px solid #ffffff44; pointer-events: none; z-index: 2; }
.bt-role { left: -4px; top: -4px; }
.bt-layers { right: -4px; top: -4px; color: #a9dcff; border-color: #6cb8ff; }
.bt-layers.is-reflect { color: #ffe08a; border-color: #ffc54a; box-shadow: 0 0 8px #ffc54a99; }
.bt-fx { left: 50%; bottom: -6px; translate: -50% 0; white-space: nowrap; font-size: 10px; }

/* Chiến Ý bar */
.bt-ci { display: inline-grid; grid-template-columns: auto 70px auto; align-items: center; gap: 5px; }
.bt-ci small { font-size: 10.5px; font-weight: 800; color: #ffcfb8; }
.bt-ci > i { display: block; height: 7px; border-radius: 4px; background: #0008; overflow: hidden; border: 1px solid #ff7a5a66; }
.bt-ci > i > i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a5a, #ffd38a); transition: width .4s; }
.bt-ci b { font-size: 13px; font-weight: 900; color: #fff; } .bt-ci b em { font-style: normal; font-size: 11px; color: #ff8a6a; margin-left: 3px; }

/* Tà Long: the team cards are buttons (Đổi ấn), the one holding the seal stands out */
.boss-me .bm-team button.bm-one { all: unset; box-sizing: border-box; position: relative; display: block; cursor: pointer; filter: drop-shadow(0 2px 4px #000c); }
.boss-me .bm-team .bm-one.is-seal { outline: 2.5px solid #ffd447; outline-offset: 1px; border-radius: 12px; box-shadow: 0 0 14px #ffd44799; }
.boss-me .bm-team .bm-one.is-seal::after { content: '🔱'; position: absolute; left: 50%; top: -12px; translate: -50% 0; font-size: 14px; filter: drop-shadow(0 1px 2px #000); }
.boss-me .bm-team button.bm-one:not(.is-seal):hover { filter: drop-shadow(0 0 8px #ffd447aa); }
.boss-me .bm-team button.bm-one:disabled { cursor: default; }
.boss-me .bt-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 11.5px; color: #d7e6e6; margin: 1px 0 3px; }
.boss-me .bt-line b { color: #fff; }
.boss-me .bt-tag { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 8px; background: #0007; border: 1px solid #ffffff33; }
.boss-me .bt-tag.rage { color: #ffb4a8; border-color: #ff7a6a77; }
.boss-me .bt-tag.hint { color: #ffe08a; border-color: #ffd44766; }

/* Siêu Cúp */
.cup-tactics { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 11px; }
.cup-tactics .bt-tag { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 8px; background: #0007; border: 1px solid #ffffff33; color: #ffe08a; }
.cup-tactics .bt-tag.bad { color: #ffb4a8; border-color: #ff7a6a77; }
.cup-chips .g.r { color: #ffe08a; box-shadow: 0 0 6px #ffc54a88; }
.cup-bm .bt-role, .cup-bm .bt-layers { font-size: 9.5px; padding: 1px 3px; }
/* Siêu Cúp · Lối chơi (cup.js playStyles) */
.cup-styles .cup-style { margin: 10px 0; padding: 8px 12px; border-radius: 12px; background: #ffffff0d; border: 1px solid #ffffff22; }
.cup-styles .cup-style h3 { margin: 0 0 4px; } .cup-styles .cup-style h3 small { font-size: 11px; font-weight: 800; color: #ffd38a; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #ffd38a22; }
.cup-styles .cup-style p { margin: 3px 0; } .cup-styles .cup-style-weak { color: #ffc2b8; }
.cup-styles .cup-style-counter { padding: 8px 12px; border-radius: 12px; background: #ffd44718; border: 1px solid #ffd44755; }
.cup-styles .cup-style-lost { font-weight: 800; color: #ffe08a; }
/* a lost match: Tìm trận tiếp across the whole row, Về phòng đợi and 🧭 Lối chơi share the row under it (the owner 28/11) */
.cup-end-actions.has-styles > [data-cup-again] { grid-column: 1 / -1; }
.cup-endcard .cup-end-styles { cursor: pointer; border: 0; color: #10222b; background: linear-gradient(#ffe08a, #ffb93d); box-shadow: 0 3px 0 #a8701a; }
.cup-end { overflow: auto; }
.cup-endcard { max-height: calc(100% - 12px); box-sizing: border-box; }
@media (max-height: 520px) { .cup-end-actions.has-styles button { height: 40px; min-height: 40px; } .cup-endcard .big { font-size: 30px; } }
html.short .cup-end-actions.has-styles button { height: 40px; min-height: 40px; }
html.short .cup-endcard .big { font-size: 30px; }
@media (max-height: 300px) { .cup-endcard .big { display: none; } }
